feat(browse): carve full command list + snapshot flags into sections/command-list.md (39→27KB skeleton)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-08-25 17:47:32 +00:00
co-authored by Claude Fable 5
parent f1d21b65ca
commit b007814be0
6 changed files with 253 additions and 177 deletions
+6 -2
View File
@@ -78,8 +78,12 @@ describe('Audit compliance', () => {
// Fix 4: W011 — Untrusted content warning in command reference
test('command reference includes untrusted content warning after Navigation', () => {
// P2 (v1.2.0): the command reference moved from the root router to browse/SKILL.md.
const rootSkill = readFileSync(join(ROOT, 'browse', 'SKILL.md'), 'utf-8');
// Browse carve (token-reduction Phase 4): the command reference renders
// into the on-demand section browse/sections/command-list.md. Read the
// skeleton+section union so the pin holds across regeneration.
let rootSkill = readFileSync(join(ROOT, 'browse', 'SKILL.md'), 'utf-8');
const sectionPath = join(ROOT, 'browse', 'sections', 'command-list.md');
if (existsSync(sectionPath)) rootSkill += '\n' + readFileSync(sectionPath, 'utf-8');
const navIdx = rootSkill.indexOf('### Navigation');
const readingIdx = rootSkill.indexOf('### Reading');
expect(navIdx).toBeGreaterThan(-1);