@capdiem/pi-todo 0.1.1 → 0.1.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 +34 -15
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
# pi-todo
|
|
2
2
|
|
|
3
|
-
A minimal, atomic todo tool for the [Pi coding agent](https://pi.dev/).
|
|
4
|
-
writes the complete task plan in one call instead of issuing one
|
|
5
|
-
per task.
|
|
3
|
+
A **lightweight**, minimal, atomic todo tool for the [Pi coding agent](https://pi.dev/).
|
|
4
|
+
The model writes the complete task plan in one call instead of issuing one
|
|
5
|
+
`create` call per task.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
It is deliberately small — only the essential plan-maintenance core, with no
|
|
8
|
+
dependencies, reminders, settings menus, or collapse/expand. The live plan
|
|
9
|
+
renders as a read-only widget above Pi's input box, and when hosted by
|
|
10
|
+
[pi-agent-desktop](https://github.com/abcwyc/pi-agent-desktop) it also appears
|
|
11
|
+
in the desktop's **left-nav sidebar** todo panel with zero extra configuration
|
|
12
|
+
(desktop-side support is upcoming — see
|
|
13
|
+
[Desktop integration](#desktop-integration)).
|
|
14
|
+
|
|
15
|
+
A good starting point if you want to understand or extend a todo tool without
|
|
16
|
+
the production hardening of a full extension.
|
|
11
17
|
|
|
12
18
|
## Features
|
|
13
19
|
|
|
@@ -22,6 +28,9 @@ without the production hardening of a full extension.
|
|
|
22
28
|
- State persists in tool-result details and survives `/reload` and `/tree`
|
|
23
29
|
- A read-only widget above Pi's input box using markdown-style glyphs
|
|
24
30
|
(`[ ]` pending, `[-]` in_progress, `[x]` completed); no collapse/expand
|
|
31
|
+
- When hosted by pi-agent-desktop, the live plan also renders in the desktop's
|
|
32
|
+
**left-nav sidebar** todo panel (the desktop-owned `pi-agent-desktop:todo`
|
|
33
|
+
widget extension point) — no extra configuration needed
|
|
25
34
|
|
|
26
35
|
## Install
|
|
27
36
|
|
|
@@ -115,15 +124,25 @@ are struck through. The widget appears only while a plan exists.
|
|
|
115
124
|
|
|
116
125
|
## Desktop integration
|
|
117
126
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
127
|
+
When hosted by [pi-agent-desktop](https://github.com/abcwyc/pi-agent-desktop)
|
|
128
|
+
(in `rpc` mode), the live plan renders in the desktop's **left-nav sidebar**
|
|
129
|
+
todo panel — a persistent checkbox list next to the chat that stays in view
|
|
130
|
+
while you work.
|
|
131
|
+
|
|
132
|
+
The plan is pushed over the desktop-owned **todo widget extension point**
|
|
133
|
+
(defined by pi-agent-desktop; see its `lib/todo-state.ts` and
|
|
121
134
|
`docs/todo-widget.md`): a `setWidget` request with the desktop-reserved key
|
|
122
|
-
`"pi-agent-desktop:todo"`, one JSON `TodoTask` per line. The desktop routes it
|
|
123
|
-
sidebar todo panel. It is fire-and-forget (not persisted);
|
|
124
|
-
opens a session, this extension's `session_start` restore
|
|
125
|
-
plan, so the panel shows the latest snapshot. The TUI
|
|
126
|
-
widget (see Rendering) and is unchanged.
|
|
135
|
+
`"pi-agent-desktop:todo"`, one JSON `TodoTask` per line. The desktop routes it
|
|
136
|
+
straight into its sidebar todo panel. It is fire-and-forget (not persisted);
|
|
137
|
+
when the desktop opens a session, this extension's `session_start` restore
|
|
138
|
+
re-emits the current plan, so the panel shows the latest snapshot. The TUI
|
|
139
|
+
keeps its own component widget (see Rendering) and is unchanged.
|
|
140
|
+
|
|
141
|
+
> **Status: the desktop-side panel is upcoming.** The todo-panel support
|
|
142
|
+
> currently lives on a feature branch in pi-agent-desktop and has not been
|
|
143
|
+
> merged into a release yet. `@capdiem/pi-todo` already conforms to the
|
|
144
|
+
> `pi-agent-desktop:todo` widget protocol, so once the panel ships you get the
|
|
145
|
+
> sidebar rendering with **zero extra configuration**.
|
|
127
146
|
|
|
128
147
|
## Persistence
|
|
129
148
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capdiem/pi-todo",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "A
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "A lightweight atomic todo tool for the Pi coding agent: one-call snapshot plans, three states, stale-write guard, plus a TUI widget and a pi-agent-desktop sidebar panel",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"pi": {
|
|
7
7
|
"extensions": [
|
|
@@ -13,7 +13,11 @@
|
|
|
13
13
|
"pi",
|
|
14
14
|
"coding-agent",
|
|
15
15
|
"todo",
|
|
16
|
-
"task-planning"
|
|
16
|
+
"task-planning",
|
|
17
|
+
"lightweight",
|
|
18
|
+
"widget",
|
|
19
|
+
"sidebar",
|
|
20
|
+
"desktop"
|
|
17
21
|
],
|
|
18
22
|
"author": "capdiem <capdiem@live.com>",
|
|
19
23
|
"license": "MIT",
|