Step 10 of v3.4.1 plan. commands/ultracontinue-local.md: - New Phase 0.5 between Phase 0 and Phase 1 — terminal cleanup mode triggered by parsed flags['--cleanup'] === true. Requires explicit positional[0] (no "clean all"), no template placeholders in the Bash invocation. Passes through to cleanupProject via inline ESM. Cleanup never falls through to Phase 1/2/3/4. - Phase 0 usage block updated to document --cleanup and --cleanup --confirm forms alongside the legacy <project-dir> form. tests/commands/ultracontinue.test.mjs: - Test (Bug 4 prose) — Phase 0.5 header present, references cleanupProject and flags['--cleanup'], appears between Phase 0 and Phase 1 in document order, usage mentions --cleanup --confirm. - Test (f-1) dry-run on completed project lists candidates without deleting; both files still on disk. - Test (f-2 + f-3) confirm-mode deletes both files; subsequent invocation on the already-cleaned dir signals CLEANUP_NO_STATE_FILE (deterministic terminal state, idempotent for operators). Tests 355 -> 358 (+3). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| commands | ||
| fixtures | ||
| helpers | ||
| hooks | ||
| lib | ||
| synthetic | ||
| validators | ||