refactor(voyage): S31 — V15 trim plan-export to headless-only (decompose alias)
Drop the pr/issue/markdown variants from `/trekplan --export`. Claude Code reformats a plan into a PR body, issue comment, or stripped markdown ad-hoc on request, so a dedicated export path added maintenance without value. Keep `--export headless` as a backwards-compatible alias for `--decompose` and relabel it as the decomposition entry it actually is. - commands/trekplan.md: Phase 1 parse rejects non-headless formats and sets mode = decompose for headless; delete the Export phase; rename Phase 1.6 → Phase 1.5 (Decompose); update the mode enum, argument-hint, and usage block. - docs/command-modes.md, README.md: export row relabeled as a --decompose alias. - tests/commands/trekplan.test.mjs: +2 V15 pins (variants gone, headless kept). Non-breaking (plan D-register). Tests 731 (729 pass / 2 skip / 0 fail), bar `node --test`; `claude plugin validate` green (1 accepted warning). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LqBYc8Ltrk7LipyJmGxXiB
This commit is contained in:
parent
6c00df573b
commit
9dc50a2047
4 changed files with 40 additions and 94 deletions
|
|
@ -71,3 +71,22 @@ test('trekplan — SC7: brief_version 2.1 + no phase_signals + no partial → BR
|
|||
`sequencing gate must fire; errors=${JSON.stringify(r.errors)}`,
|
||||
);
|
||||
});
|
||||
|
||||
// --- S31 / V15: export trim — drop pr|issue|markdown, keep headless as a --decompose alias ---
|
||||
|
||||
test('trekplan — V15: pr/issue/markdown export variants are removed', () => {
|
||||
const text = read();
|
||||
// No remaining `--export pr` usage/example anywhere in the command.
|
||||
assert.equal(/--export\s+pr\b/.test(text), false, '`--export pr` must be gone');
|
||||
// The per-format subsections of the old Export phase must be deleted.
|
||||
assert.ok(!text.includes('Format: `pr`'), 'pr export-format section must be gone');
|
||||
assert.ok(!text.includes('Format: `issue`'), 'issue export-format section must be gone');
|
||||
assert.ok(!text.includes('Format: `markdown`'), 'markdown export-format section must be gone');
|
||||
});
|
||||
|
||||
test('trekplan — V15: --export headless survives as a --decompose alias', () => {
|
||||
const text = read();
|
||||
assert.match(text, /--export\s+headless/, '`--export headless` must remain documented');
|
||||
assert.match(text, /alias for [`*]*--decompose/i,
|
||||
'`--export headless` must be labeled an alias for --decompose');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue