ktg-plugin-marketplace/plugins/ultraplan-local/commands
Kjell Tore Guttormsen 9fa83bdf2f feat(ultraplan-local): Bug 4 — wire --cleanup into /ultracontinue-local [skip-docs]
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>
2026-05-04 17:42:56 +02:00
..
ultrabrief-local.md feat(ultraplan-local): add --gates autonomy-control flag to all four pipeline commands 2026-05-04 07:54:30 +02:00
ultracontinue-local.md feat(ultraplan-local): Bug 4 — wire --cleanup into /ultracontinue-local [skip-docs] 2026-05-04 17:42:56 +02:00
ultraexecute-local.md fix(ultraplan-local): Bug 3 producers — frontmatter writes + ESM/CJS fix 2026-05-04 17:37:21 +02:00
ultraplan-end-session-local.md fix(ultraplan-local): Bug 3 producers — frontmatter writes + ESM/CJS fix 2026-05-04 17:37:21 +02:00
ultraplan-local.md feat(ultraplan-local): add --gates autonomy-control flag to all four pipeline commands 2026-05-04 07:54:30 +02:00
ultraresearch-local.md feat(ultraplan-local): add --gates autonomy-control flag to all four pipeline commands 2026-05-04 07:54:30 +02:00
ultrareview-local.md feat(ultraplan-local): add commands/ultrareview-local.md 2026-05-01 16:56:47 +02:00