@oisin-ee/pi-todo 0.6.0 → 0.7.1
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 +2 -2
- package/package.json +1 -1
- package/src/lifecycle.ts +2 -2
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ Outside the terminal UI, `/todos` prints the list instead.
|
|
|
82
82
|
|
|
83
83
|
## Shared work display
|
|
84
84
|
|
|
85
|
-
When a compatible pi-wrangle extension is active, its
|
|
85
|
+
When a compatible pi-wrangle extension is active, its work widget replaces the standalone todo widget.
|
|
86
86
|
Tasks remain on the current Pi session branch. Wrangle receives a read-only presentation capability through `pi.events`.
|
|
87
87
|
Pi-todo owns the renderer in both standalone and shared views. Wrangle 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.
|
|
@@ -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
|
: {};
|