@juicesharp/rpiv-todo 0.11.6 → 0.12.0
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/package.json +1 -1
- package/todo-overlay.ts +6 -5
package/package.json
CHANGED
package/todo-overlay.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* todo-overlay.ts — Persistent widget showing todo list above the editor.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Renders a persistent widget via Pi core's `ExtensionUIContext.setWidget`
|
|
5
|
+
* contract (`@mariozechner/pi-coding-agent/dist/modes/interactive/interactive-mode.js:1288-1317`):
|
|
6
|
+
* factory-form registration in widgetContainerAbove, register-once +
|
|
7
|
+
* requestRender() refresh, 12-line collapse-not-scroll, auto-hide when empty.
|
|
8
|
+
* No timer (todos have no animation), no status bar, no aging map.
|
|
8
9
|
*
|
|
9
10
|
* Data source is module-level getTodos() read at render time — NEVER
|
|
10
11
|
* reconstructTodoState from a tool_execution_end handler, since the persisted
|
|
@@ -18,7 +19,7 @@ import { getTodos, type Task, type TaskStatus } from "./todo.js";
|
|
|
18
19
|
// ---- Constants ----
|
|
19
20
|
|
|
20
21
|
const WIDGET_KEY = "rpiv-todos";
|
|
21
|
-
/** Maximum rendered lines before overflow-collapse kicks in.
|
|
22
|
+
/** Maximum rendered lines before overflow-collapse kicks in. */
|
|
22
23
|
const MAX_WIDGET_LINES = 12;
|
|
23
24
|
|
|
24
25
|
// ---- Helpers ----
|