@zhushanwen/pi-todo 0.9.3 → 0.9.4
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/package.json +2 -2
- package/src/__tests__/tool-rpc.test.ts +1 -1
- package/src/index.ts +1 -1
- package/src/model.ts +1 -1
- package/src/render.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-todo",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
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
|
-
"@
|
|
32
|
+
"@zhushanwen/extension-protocol": "0.11.0",
|
|
33
33
|
"@zhushanwen/pi-extension-logger": "0.6.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
12
12
|
import type { Theme } from "@earendil-works/pi-coding-agent";
|
|
13
|
-
import { GUI_WIDGET_MARKER } from "@
|
|
13
|
+
import { GUI_WIDGET_MARKER } from "@zhushanwen/extension-protocol";
|
|
14
14
|
import { describe, expect, it, vi, type Mock } from "vitest";
|
|
15
15
|
|
|
16
16
|
import { makeRefreshDisplay } from "../index";
|
package/src/index.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
25
|
-
import { setWidgetDual, type GuiContext } from "@
|
|
25
|
+
import { setWidgetDual, type GuiContext } from "@zhushanwen/extension-protocol";
|
|
26
26
|
|
|
27
27
|
import { registerTodosCommand } from "./commands";
|
|
28
28
|
import { registerTodoEventHandlers, type RefreshDisplayFn } from "./handlers";
|
package/src/model.ts
CHANGED
package/src/render.ts
CHANGED
|
@@ -154,7 +154,7 @@ function buildTodoListText(todoList: Todo[], options: { expanded: boolean }, the
|
|
|
154
154
|
// ── Tool renderResult handler ────────────────────────
|
|
155
155
|
|
|
156
156
|
import { Text } from "@earendil-works/pi-tui";
|
|
157
|
-
import { firstContentText } from "@
|
|
157
|
+
import { firstContentText } from "@zhushanwen/extension-protocol";
|
|
158
158
|
|
|
159
159
|
export function renderTodoResult(result: unknown, options: { expanded: boolean }, theme: Theme): Text {
|
|
160
160
|
const r = result as { content: Array<{ type: string; text?: string }>; details?: unknown };
|