@getpipher/armory-todo 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/docs/superpowers/plans/2026-07-21-auto-prune-done-view.md +893 -0
- package/docs/superpowers/specs/2026-07-21-auto-prune-done-view-design.md +217 -0
- package/docs/superpowers/specs/2026-07-21-title-notes-split-design.md +1 -1
- package/extensions/todo.ts +59 -7
- package/package.json +2 -2
- package/src/archive.ts +55 -3
- package/src/auto-prune.ts +15 -0
- package/src/panel-data.ts +19 -1
- package/src/panel.ts +20 -10
package/README.md
CHANGED
|
@@ -55,6 +55,13 @@ TODOs live in one of three states, only one of which hits the agent context:
|
|
|
55
55
|
todos from the live file to `todo-archive.json` — nothing is deleted. `prune --all`
|
|
56
56
|
ignores age. `restore <id>` brings an archived todo back as `open`.
|
|
57
57
|
|
|
58
|
+
**Auto-prune (v0.3.1):** on every `session_start`, done/cancelled todos older
|
|
59
|
+
than `config.prune.defaultAgeDays` (default 7d) archive *themselves* — no need
|
|
60
|
+
to run `prune` manually. Fresh done (<7d) stays in live. The startup notify
|
|
61
|
+
reports what moved (`auto-pruned N stale done (>7d): …` + a `restore` hint);
|
|
62
|
+
it's a transient message, not a prompt injection. Reversible via `restore <id>`.
|
|
63
|
+
`prune --all` (move fresh done too) and `prune --hard` (irreversible) stay manual.
|
|
64
|
+
|
|
58
65
|
The only irreversible action is `prune --hard` (hard-prune) — it requires an
|
|
59
66
|
explicit `confirm: true` and is always user-confirmed. See **Self-awareness**
|
|
60
67
|
below.
|
|
@@ -100,10 +107,11 @@ The single `text` field is split into **`title`** (≤120 chars, one-line summar
|
|
|
100
107
|
|
|
101
108
|
Run `/todo` (no arg) in a TUI session to open the interactive triage panel:
|
|
102
109
|
|
|
103
|
-
- **Box tabs** (Tab / Shift+Tab): Active · Parked · Archive · Config
|
|
110
|
+
- **Box tabs** (Tab / Shift+Tab): Active · Parked · **Done** · Archive · Config
|
|
104
111
|
- **Filter input**: type to search by text (live filter)
|
|
105
112
|
- **SelectList**: arrow keys navigate, Enter selects
|
|
106
113
|
- **Action submenu** (on Enter): View detail / Complete / Park / Re-activate / Restore / Edit title / Delete
|
|
114
|
+
- **Done tab** (v0.3.1): all finished work (`status: done`) unified across live + archive, location-tagged (`[live Nd]` / `[archived YYYY-MM-DD]`), filterable; Enter → View detail, or Restore-from-archive. Excludes `cancelled` (that's in the Archive tab).
|
|
107
115
|
- **Detail view** (View detail, or Enter on a row): renders the title + full `notes` read-only, with a footer hint on editing notes via the `todo` tool
|
|
108
116
|
- **Archive box**: summary-first (counts by project + month) → Enter on a bucket to drill down
|
|
109
117
|
- **Config box**: SettingsList with prune ages + health thresholds — edit live, persists to `todo.config.json`
|
|
@@ -126,6 +134,7 @@ Typed subcommands (`/todo park <id>`, `/todo prune`, etc.) all still work alongs
|
|
|
126
134
|
/todo list open + in-progress TODOs
|
|
127
135
|
/todo all include parked/done/cancelled
|
|
128
136
|
/todo add <title> quick add (priority: med; notes via the todo tool)
|
|
137
|
+
/todo finished list all done todos (live + archived, recent first)
|
|
129
138
|
/todo done <id> mark done
|
|
130
139
|
/todo rm <id> cancel (tombstone)
|
|
131
140
|
/todo park <id> defer (parked — not injected, recoverable)
|
|
@@ -176,7 +185,7 @@ Full design + decisions:
|
|
|
176
185
|
|---|---|---|
|
|
177
186
|
| `TODO_DIR` | `~/.pi/agent/todo/` | override the store folder (tests / multiple profiles) |
|
|
178
187
|
|
|
179
|
-
Run the store tests: `npm test` (
|
|
188
|
+
Run the store tests: `npm test` (255/255 across 9 suites).
|
|
180
189
|
|
|
181
190
|
## Known issues
|
|
182
191
|
|