ktg-plugin-marketplace/plugins/ultraplan-local/commands
Kjell Tore Guttormsen 100ffe94f1 fix(ultraplan-local): Bug 1 — strict --help match + .md-arg diagnostic + Date.parse sort
Step 3 of v3.4.1 hot-fix plan. Three fixes in
commands/ultracontinue-local.md:

  - Phase 0: replace "$ARGUMENTS contains --help or -h" with parsed-arg
    dispatch via parseArgs(...,'ultracontinue'). Usage block fires only
    when flags['--help'] === true OR positional[0] === '-h'. Empty,
    whitespace, and project-dir args fall through to Phase 1
    (auto-discovery), which is the operator-default invocation.
  - Phase 1.a: NEW — reject .md positional arg with SC-2 diagnostic
    ("expected <project-dir>" + "did you mean to paste"). Operators
    pasting a NEXT-SESSION-PROMPT.local.md path see a clear error
    instead of a confusing fallthrough.
  - Phase 1.b: auto-discovery node -e now emits {path, updated_at}
    JSON per candidate; Phase 1 sorts numerically via
    Date.parse(updated_at) DESC instead of lexicographic compare.
    Newest in_progress wins, including across year-boundary timestamps.

All 4 Step 2 regression tests now green; full suite 322 → 333 passing.
2026-05-04 16:38:04 +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 fix(ultraplan-local): Bug 1 — strict --help match + .md-arg diagnostic + Date.parse sort 2026-05-04 16:38:04 +02:00
ultraexecute-local.md feat(ultraplan-local): emit main-merge-gate stats event from Phase 8 2026-05-04 07:55:41 +02:00
ultraplan-end-session-local.md feat(ultraplan-local): add /ultraplan-end-session helper for informal multi-session flows [skip-docs] 2026-05-01 20:58:46 +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