@zhushanwen/pi-todo 0.9.5 → 0.9.6
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 +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ agent_end 设置 pendingSteerMessage
|
|
|
67
67
|
| **completion-steer** | 首次全部 completed | 注入「检查交付质量」steer(一次性,`completionSteered` 防重) |
|
|
68
68
|
| **auto-clear** | 全部 completed 后再过 2 轮 | 自动清空 todos + 重置标记 |
|
|
69
69
|
|
|
70
|
-
`agent_end` 内:completion-steer
|
|
70
|
+
`agent_end` 内:completion-steer **不短路**(继续往下);auto-clear 命中(`handleAutoClear` 返回 true)则清空并刷新显示。详见 `ARCHITECTURE.md`。
|
|
71
71
|
|
|
72
72
|
## 持久化机制
|
|
73
73
|
|
|
@@ -75,13 +75,13 @@ todo 扩展**自己不调用 `appendEntry`**。状态快照随 Pi 框架自动
|
|
|
75
75
|
|
|
76
76
|
1. 每次 todo tool 调用,`execute` 返回的 `details.todos` / `details.nextId` 被 Pi 自动序列化为一条 `toolResult` entry
|
|
77
77
|
2. `session_start` / `session_tree` 时,`reconstructState` 回放**最后一条** todo toolResult 重建状态(纯读——Pi 的 getEntries 返回 filter-copy,splice 无效,不做 entry GC)
|
|
78
|
-
3. 向后兼容:`migrateTodo`
|
|
78
|
+
3. 向后兼容:`migrateTodo` 把旧状态(`verifying→in_progress`、`failed→pending`、`cancelled→completed`)和极旧的 `done:boolean` 降级映射到三态
|
|
79
79
|
|
|
80
80
|
## 三层渲染
|
|
81
81
|
|
|
82
82
|
| 层 | 触发 | 规则 |
|
|
83
83
|
|----|------|------|
|
|
84
|
-
| **status line** | 每次 tool execute / session 恢复 | 空列表不显示;全完成 `✓ c/t`(绿);否则 `☑ c/t` |
|
|
84
|
+
| **status line** | 每次 tool execute / session 恢复 / before_agent_start(有 pending 时) | 空列表不显示;全完成 `✓ c/t`(绿);否则 `☑ c/t` |
|
|
85
85
|
| **widget**(侧边) | 有 todo 时 | ≤8 项单列;≥9 项双列(规避 Pi 的 10 行 widget 截断) |
|
|
86
86
|
| **tool result** | tool 返回时 | collapsed 显示前 5 项 + `... N more`;expanded 全显示 |
|
|
87
87
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-todo",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "AI-driven todo list for Pi — stateful task management with session persistence and /todos command.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"vitest": "^4.1.8"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@zhushanwen/extension-protocol": "0.
|
|
32
|
+
"@zhushanwen/extension-protocol": "0.13.0",
|
|
33
33
|
"@zhushanwen/pi-extension-logger": "0.6.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|