@oisin-ee/pi-todo 0.7.0 → 0.7.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 +5 -5
- package/package.json +1 -1
- package/src/lifecycle.ts +2 -2
package/README.md
CHANGED
|
@@ -82,14 +82,14 @@ Outside the terminal UI, `/todos` prints the list instead.
|
|
|
82
82
|
|
|
83
83
|
## Shared work display
|
|
84
84
|
|
|
85
|
-
When a compatible pi-
|
|
86
|
-
Tasks remain on the current Pi session branch.
|
|
87
|
-
Pi-todo owns the renderer in both standalone and shared views.
|
|
85
|
+
When a compatible pi-dogsled extension is active, its work widget replaces the standalone todo widget.
|
|
86
|
+
Tasks remain on the current Pi session branch. Dogsled receives a read-only presentation capability through `pi.events`.
|
|
87
|
+
Pi-todo owns the renderer in both standalone and shared views. Dogsled hosts it above the editor without opening a popup.
|
|
88
88
|
Alt+J/K scrolls the hosted rows. Alt+I toggles their expansion. Ordinary editor keys remain unchanged.
|
|
89
89
|
`/todos` and Alt+T request the shared Todos view. `/todos list` still prints the full list.
|
|
90
90
|
When shared presentation ends, the standalone widget returns without changing task state.
|
|
91
91
|
|
|
92
|
-
The [version 2 display contract](https://github.com/oisin-ee/
|
|
92
|
+
The [version 2 display contract](https://github.com/oisin-ee/dogsled/blob/main/docs/pi-work.md)
|
|
93
93
|
defines the snapshot request, acknowledgement, release, and read-only view events.
|
|
94
94
|
Incompatible versions leave the standalone widget available. Rendering failures restore it without changing saved tasks.
|
|
95
95
|
|
|
@@ -115,7 +115,7 @@ Malformed events, a different working directory, or another owner of the `todo`
|
|
|
115
115
|
|
|
116
116
|
## Reminder
|
|
117
117
|
|
|
118
|
-
When the agent stops with open tasks, pi-todo adds a
|
|
118
|
+
When the agent stops with open tasks, pi-todo adds a visible reminder to the conversation and continues the turn.
|
|
119
119
|
The reminder names open children and parents that await integration review.
|
|
120
120
|
It sends at most 3 reminders per user message. After a reminder, it waits for the list to change before it sends
|
|
121
121
|
another. A new user message resets the count.
|
package/package.json
CHANGED
package/src/lifecycle.ts
CHANGED
|
@@ -61,7 +61,7 @@ const ownsTodo = (pi: TodoHost): boolean =>
|
|
|
61
61
|
* @param {TodoHost} pi Tool metadata reader.
|
|
62
62
|
* @param {SettleEvent} event The boundary facts.
|
|
63
63
|
* @param {TodoContext} ctx Branch and UI methods.
|
|
64
|
-
* @returns {BoundaryResult} The unchanged boundary or an added
|
|
64
|
+
* @returns {BoundaryResult} The unchanged boundary or an added visible reminder.
|
|
65
65
|
*/
|
|
66
66
|
settle = (pi: TodoHost, event: SettleEvent, ctx: TodoContext): BoundaryResult => {
|
|
67
67
|
if (event.outcome !== "completed" || event.continue || !ownsTodo(pi)) {
|
|
@@ -73,7 +73,7 @@ const ownsTodo = (pi: TodoHost): boolean =>
|
|
|
73
73
|
continue: true,
|
|
74
74
|
entries: [
|
|
75
75
|
...event.entries,
|
|
76
|
-
{ content, customType: REMINDER_ENTRY, display:
|
|
76
|
+
{ content, customType: REMINDER_ENTRY, display: true, type: "custom_message" },
|
|
77
77
|
],
|
|
78
78
|
}
|
|
79
79
|
: {};
|