@juicesharp/rpiv-todo 0.11.7 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/todo-overlay.ts +6 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juicesharp/rpiv-todo",
3
- "version": "0.11.7",
3
+ "version": "0.12.0",
4
4
  "description": "Pi extension: Claude-Code-parity todo tool + persistent overlay widget",
5
5
  "keywords": [
6
6
  "pi-package",
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
- * Mirrors @tintinweb/pi-subagents's AgentWidget shape: factory-form setWidget
5
- * registration in widgetContainerAbove, register-once + requestRender() refresh,
6
- * 12-line collapse-not-scroll, auto-hide when empty. No timer (todos have no
7
- * animation), no status bar, no aging map.
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. Mirrors AgentWidget. */
22
+ /** Maximum rendered lines before overflow-collapse kicks in. */
22
23
  const MAX_WIDGET_LINES = 12;
23
24
 
24
25
  // ---- Helpers ----