mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Merge branch 'codex/chore/ai-workflow-parity'
This commit is contained in:
@@ -62,9 +62,17 @@ function normalize(content) {
|
|||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Agents additionally differ by harness-specific model frontmatter.
|
// Agents additionally differ by harness-specific model frontmatter. Whether a
|
||||||
|
// model is pinned at all is harness-specific too: judgment-tier `.claude`
|
||||||
|
// agents omit `model:` so they inherit the session model, while their `.cursor`
|
||||||
|
// copies pin a Cursor-only model. Drop the line entirely rather than rewriting
|
||||||
|
// it, so a pinned model and an omitted one still compare equal. Only the
|
||||||
|
// leading frontmatter block is touched, so a body line beginning with "model:"
|
||||||
|
// is left alone.
|
||||||
function normalizeAgent(content) {
|
function normalizeAgent(content) {
|
||||||
return normalize(content).replace(/^model:.*$/m, 'model: <toolchain-specific>');
|
return normalize(content).replace(/^---\n[\s\S]*?\n---\n/, (frontmatter) =>
|
||||||
|
frontmatter.replace(/^model:.*\n/m, ''),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function listFilesRecursive(dir) {
|
function listFilesRecursive(dir) {
|
||||||
|
|||||||
Reference in New Issue
Block a user