44 lines
1.6 KiB
Markdown
44 lines
1.6 KiB
Markdown
# 13. Resume, status, and export commands
|
|
|
|
meta:
|
|
id: pygienium-13
|
|
feature: pygienium
|
|
priority: P2
|
|
depends_on: [pygienium-04, pygienium-06]
|
|
tags: [commands]
|
|
|
|
objective:
|
|
|
|
- Implement the operational commands: `/pygienium-resume` (continue the most recent non-complete run), `/pygienium-status` (show run progress), and `/pygienium-export` (export findings/changes with filters).
|
|
|
|
deliverables:
|
|
|
|
- `/pygienium-resume`: read run-state, pick latestResumableRun, re-dispatch that run's checks (complete ones skipped unless `--fresh`)
|
|
- `/pygienium-status`: format run-state into a readable line list (per-check status, artifacts, errors)
|
|
- `/pygienium-export`: gather all `pygienium/checks/*/findings.md` and `changes.md` with filters (`--check=`, `--status=`, `--out=`) into a single markdown or JSON bundle
|
|
- All three wired in index.ts
|
|
|
|
steps:
|
|
|
|
- Port piolium's status/resume/export command shapes, adapting to run-state and check artifacts
|
|
- `formatRunStatus(state)` builds the status line list
|
|
- Export walks `pygienium/checks/*/` and applies filters before writing `pygienium/export.{md|json}`
|
|
|
|
tests:
|
|
|
|
- Integration: start `/pygienium-all`, interrupt, run `/pygienium-status` (shows in_progress), `/pygienium-resume` (completes), `/pygienium-export`
|
|
|
|
acceptance_criteria:
|
|
|
|
- `/pygienium-status` reports accurate per-check progress
|
|
- `/pygienium-resume` continues a non-complete run without re-running complete checks
|
|
- `/pygienium-export` produces a filtered bundle
|
|
|
|
validation:
|
|
|
|
- Inspect `pygienium/export.md` and the status output
|
|
|
|
notes:
|
|
|
|
- These mirror piolium's status/resume/export almost directly; keep behavior faithful
|