refactor(cleanup): simplify pass on the R-a diff
engine-compare imports the coordinator's title limit and trim instead of a copy whose reason went with Arm B; the autonomy gate exports one parser and its test runs in-process with two CLI runs; one import scanner in lib-imports; the fenced-section walker shared from tests/helpers/md-section.mjs instead of six copies; plan-gate hash in-process; living-paths scans once; routing drops the orchestrator filter whose files are gone; small leftovers removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
029e83117c
commit
efe981f7bc
18 changed files with 161 additions and 358 deletions
|
|
@ -150,10 +150,7 @@ export function collisions(corpus, t = THRESHOLDS) {
|
|||
|
||||
// ---- loading ----
|
||||
|
||||
/** Orchestrator reference docs are not spawnable capabilities (CLAUDE.md, Inventory). */
|
||||
const isReferenceDoc = (name, description) => /-orchestrator$/.test(name) || /^Reference document, not a spawnable/.test(description.trim());
|
||||
|
||||
/** Skills, commands and spawnable agents of a plugin root. */
|
||||
/** Skills, commands and agents of a plugin root. */
|
||||
export function loadEntries(root) {
|
||||
const entries = [];
|
||||
const skillsDir = join(root, 'skills');
|
||||
|
|
@ -174,9 +171,7 @@ export function loadEntries(root) {
|
|||
const text = readFileSync(join(d, file), 'utf8');
|
||||
const fm = readFrontmatterFields(text).fields;
|
||||
const name = fm.name ? String(fm.name.value) : file.replace(/\.md$/, '');
|
||||
const description = descriptionOf(text);
|
||||
if (kind === 'agent' && isReferenceDoc(name, description)) continue;
|
||||
entries.push({ id: `${kind}:${name}`, kind, name, description });
|
||||
entries.push({ id: `${kind}:${name}`, kind, name, description: descriptionOf(text) });
|
||||
}
|
||||
}
|
||||
return entries;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue