ktg-plugin-marketplace/plugins/ultraplan-local/tests
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
..
commands feat(ultraplan-local): Bug 4 — wire --cleanup into /ultracontinue-local [skip-docs] 2026-05-04 17:42:56 +02:00
fixtures test(ultraplan-local): add session-state fixtures 2026-05-01 20:21:50 +02:00
helpers chore(ultraplan-local): Spor 0 — foundation for v3.1.0 kvalitetsprogram 2026-05-01 05:27:44 +02:00
hooks test(ultraplan-local): add path-guard + bash-guard baseline hook tests (SC8 baseline) 2026-05-04 08:55:49 +02:00
lib feat(ultraplan-local): cleanup util (Bug 4 dry-run/confirm/idempotent) [skip-docs] 2026-05-04 17:41:06 +02:00
synthetic test(ultraplan-local): add plan-determinism + review-determinism synthetic fixtures (SC7 floor) 2026-05-04 08:46:39 +02:00
validators feat(ultraplan-local): next-session-prompt-validator (Bug 3 consistency check) [skip-docs] 2026-05-04 17:34:16 +02:00