Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
problem_rectification
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Yang
problem_rectification
Commits
e5b766aa
Commit
e5b766aa
authored
Sep 01, 2026
by
drigle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: sync subject schema definitions
parent
a5ce9abc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
18 deletions
+3
-18
subject_schema_manager.mjs
...subject-schema-manager/scripts/subject_schema_manager.mjs
+3
-18
subjectsDefinition.md
src/services/subjectsDefinition.md
+0
-0
No files found.
.agents/skills/subject-schema-manager/scripts/subject_schema_manager.mjs
View file @
e5b766aa
...
@@ -320,29 +320,14 @@ function replaceManagedBlock(document, block) {
...
@@ -320,29 +320,14 @@ function replaceManagedBlock(document, block) {
const
replaced
=
`
${
document
.
slice
(
0
,
start
)}${
block
}${
document
.
slice
(
end
+
END_MARKER
.
length
)}
`
;
const
replaced
=
`
${
document
.
slice
(
0
,
start
)}${
block
}${
document
.
slice
(
end
+
END_MARKER
.
length
)}
`
;
return
removeLegacyDependencySection
(
replaced
);
return
removeLegacyDependencySection
(
replaced
);
}
}
const
heading
=
/^##
2
\.\s
*Subject Definitions
[^\n]
*
\n?
/m
.
exec
(
document
);
const
heading
=
/^##
\d
+
\.\s
*Subject Definitions
[^\n]
*
\n?
/m
.
exec
(
document
);
if
(
heading
)
{
if
(
heading
)
{
const
contentStart
=
heading
.
index
+
heading
[
0
].
length
;
const
contentStart
=
heading
.
index
+
heading
[
0
].
length
;
const
nextHeading
=
/^##
(?!
#
)
[^\n]
*
\n?
/gm
;
const
nextHeading
=
/^##
\d
+
\.\s
+
[^\n]
*
\n?
/gm
;
nextHeading
.
lastIndex
=
contentStart
;
nextHeading
.
lastIndex
=
contentStart
;
const
next
=
nextHeading
.
exec
(
document
);
const
next
=
nextHeading
.
exec
(
document
);
const
sectionEnd
=
next
?
next
.
index
:
document
.
length
;
const
sectionEnd
=
next
?
next
.
index
:
document
.
length
;
const
section
=
document
.
slice
(
contentStart
,
sectionEnd
);
const
migrated
=
`
${
document
.
slice
(
0
,
contentStart
)}
\n
${
block
}
\n\n
${
document
.
slice
(
sectionEnd
)}
`
;
const
objectHeadings
=
[...
section
.
matchAll
(
/^###
[^\n]
*`
([
A-Za-z
][
A-Za-z0-9_-
]
*
)
`
[^\n]
*
\n?
/gm
)];
let
migratedSection
=
section
;
if
(
objectHeadings
.
length
)
{
for
(
let
index
=
objectHeadings
.
length
-
1
;
index
>=
0
;
index
-=
1
)
{
const
current
=
objectHeadings
[
index
];
const
startIndex
=
current
.
index
;
const
endIndex
=
objectHeadings
[
index
+
1
]?.
index
??
section
.
length
;
migratedSection
=
`
${
migratedSection
.
slice
(
0
,
startIndex
)}${
migratedSection
.
slice
(
endIndex
)}
`
;
}
const
firstIndex
=
objectHeadings
[
0
].
index
;
migratedSection
=
`
${
migratedSection
.
slice
(
0
,
firstIndex
)}
\n
${
block
}
\n\n
${
migratedSection
.
slice
(
firstIndex
)}
`
;
}
else
{
migratedSection
=
`\n
${
block
}
\n\n
${
section
}
`
;
}
let
migrated
=
`
${
document
.
slice
(
0
,
contentStart
)}${
migratedSection
}${
document
.
slice
(
sectionEnd
)}
`
;
return
removeLegacyDependencySection
(
migrated
);
return
removeLegacyDependencySection
(
migrated
);
}
}
return
`
${
document
.
trimEnd
()}
\n\n## 2. Subject Definitions\n\n
${
block
}
\n`
;
return
`
${
document
.
trimEnd
()}
\n\n## 2. Subject Definitions\n\n
${
block
}
\n`
;
...
...
src/services/subjectsDefinition.md
View file @
e5b766aa
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment