@juicesharp/rpiv-todo 2.6.0 → 2.6.2
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 +1 -1
- package/docs/configuration.md +2 -0
- package/docs/overlay.md +5 -3
- package/package.json +3 -2
- package/todo-overlay.ts +6 -2
- package/todo.ts +1 -1
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ Optional. Create `~/.config/rpiv-todo/config.json` (or
|
|
|
80
80
|
|
|
81
81
|
| Setting | What it does | Default |
|
|
82
82
|
| --- | --- | --- |
|
|
83
|
-
| `maxWidgetLines` | Content rows the overlay may use, heading included. Minimum `3`. Applies on the next repaint. | `12` |
|
|
83
|
+
| `maxWidgetLines` | Content rows the overlay may use, heading included. Minimum `3`. Applies on the next repaint. Pi's tool-output expansion mode shows all tasks. | `12` |
|
|
84
84
|
| `collapseKey` | Key that collapses and expands the panel, in Pi keybinding form (`alt+o`, `ctrl+shift+t`). Set `"off"` to register no shortcut. Needs `/reload` to rebind. | `"ctrl+shift+t"` |
|
|
85
85
|
| `guidance` | Replaces the built-in instructions the extension gives the model about when and how to use the todo list. Needs `/reload`. | _(built-ins)_ |
|
|
86
86
|
|
package/docs/configuration.md
CHANGED
|
@@ -54,6 +54,8 @@ blank spacer sits outside the budget, so `12` renders up to 13 terminal rows.
|
|
|
54
54
|
- No ceiling.
|
|
55
55
|
- Read fresh on every render, so a change takes effect on the next repaint —
|
|
56
56
|
no `/reload`.
|
|
57
|
+
- Pi's tool-output expansion mode (`ctrl+o` by default) temporarily overrides
|
|
58
|
+
this budget and shows every task; collapsing restores the configured budget.
|
|
57
59
|
|
|
58
60
|
## `collapseKey`
|
|
59
61
|
|
package/docs/overlay.md
CHANGED
|
@@ -61,9 +61,11 @@ against it. When there are more tasks than fit:
|
|
|
61
61
|
truncated;
|
|
62
62
|
4. the last row becomes `+N more (X completed, Y pending)`.
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
Use Pi's tool-output expansion shortcut (`ctrl+o` by default) to expand the
|
|
65
|
+
widget and show every task. Collapsing Pi's tool output reapplies the configured
|
|
66
|
+
row budget. Unfinished work is therefore the last thing to disappear in the
|
|
67
|
+
compact view. See [configuration.md](./configuration.md#maxwidgetlines) for the
|
|
68
|
+
budget's floor and reload semantics.
|
|
67
69
|
|
|
68
70
|
## Completed tasks fading out
|
|
69
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-todo",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "Pi extension. A todo list for the model, rendered as a live overlay that survives /reload and conversation compaction.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"view/format.ts"
|
|
53
53
|
],
|
|
54
54
|
"pi": {
|
|
55
|
+
"image": "https://raw.githubusercontent.com/juicesharp/rpiv-mono/main/packages/rpiv-todo/docs/cover.png",
|
|
55
56
|
"extensions": [
|
|
56
57
|
"./index.ts"
|
|
57
58
|
]
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
}
|
|
69
70
|
},
|
|
70
71
|
"dependencies": {
|
|
71
|
-
"@juicesharp/rpiv-config": "^2.6.
|
|
72
|
+
"@juicesharp/rpiv-config": "^2.6.2",
|
|
72
73
|
"typebox": "^1.1.24"
|
|
73
74
|
}
|
|
74
75
|
}
|
package/todo-overlay.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* registration in widgetContainerAbove, register-once + requestRender()
|
|
6
6
|
* refresh, configurable collapse-not-scroll (default 12 content rows via
|
|
7
7
|
* getMaxWidgetLines(); plus a trailing spacer row so the widget renders up
|
|
8
|
-
* to 13 lines), auto-hide when empty.
|
|
8
|
+
* to 13 lines), Pi tool-output expansion awareness, auto-hide when empty.
|
|
9
9
|
*
|
|
10
10
|
* Reads live state via `getRenderState()` (the ctx-less foreground slot) at render
|
|
11
11
|
* time — NEVER `replayFromBranch` from `tool_execution_end` (branch is stale;
|
|
@@ -172,7 +172,11 @@ export class TodoOverlay {
|
|
|
172
172
|
const lines: string[] = [heading];
|
|
173
173
|
// Budget for content rows (heading + tasks/summary). The rendered widget is
|
|
174
174
|
// one line taller — withTrailingSpacer() appends a blank row below the panel.
|
|
175
|
-
|
|
175
|
+
// Pi's global tool-output expansion mode is read on every render so its
|
|
176
|
+
// expand/collapse shortcut also expands this live widget. Optional chaining
|
|
177
|
+
// preserves compatibility with hosts predating getToolsExpanded().
|
|
178
|
+
const bodyBudget = this.uiCtx?.getToolsExpanded?.() === true ? overlayTasks.length : getMaxWidgetLines() - 1;
|
|
179
|
+
const layout = selectOverlayLayout(overlayState, bodyBudget);
|
|
176
180
|
for (const task of layout.visible) {
|
|
177
181
|
lines.push(truncate(`${theme.fg("dim", "├─")} ${formatOverlayTaskLine(task, theme, showIds)}`));
|
|
178
182
|
}
|
package/todo.ts
CHANGED
|
@@ -55,7 +55,7 @@ export { TOOL_NAME } from "./tool/types.js";
|
|
|
55
55
|
export const DEFAULT_PROMPT_SNIPPET = "Manage a task list to track multi-step progress";
|
|
56
56
|
export const DEFAULT_PROMPT_GUIDELINES: string[] = [
|
|
57
57
|
"Use `todo` for complex work with 3+ steps, when the user gives you a list of tasks, or immediately after receiving new instructions to capture requirements. Skip it for single trivial tasks and purely conversational requests.",
|
|
58
|
-
"When starting
|
|
58
|
+
"When starting a task from the todo list, mark it in_progress BEFORE beginning work. Mark it completed IMMEDIATELY when done — never batch completions. Exactly one task in_progress at a time.",
|
|
59
59
|
"Never mark a task completed if tests are failing, the implementation is partial, or you hit unresolved errors — keep it in_progress and create a new task for the blocker instead.",
|
|
60
60
|
"Task status is a 4-state machine: pending → in_progress → completed, plus deleted as a tombstone. Pass activeForm (present-continuous label, e.g. 'researching existing tool') when marking in_progress.",
|
|
61
61
|
'To change a task\'s status, call update with the task id and the target status, e.g. {"action":"update","id":3,"status":"completed"} or {"action":"update","id":3,"status":"in_progress","activeForm":"writing tests"}. status is the field that changes the task; an update without a mutable field (status or another) is rejected.',
|