@zhushanwen/pi-agent-ext 1.4.0 → 1.4.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhushanwen/pi-agent-ext",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "taiji extension for Pi — internal host commands for extension reload and system prompt fetch",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -24,7 +24,7 @@
24
24
  "index.ts"
25
25
  ],
26
26
  "peerDependencies": {
27
- "@earendil-works/pi-coding-agent": "^0.84.4"
27
+ "@earendil-works/pi-coding-agent": "^1.0.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^24.0.0",
package/src/index.ts CHANGED
@@ -55,7 +55,7 @@ export default function (pi: ExtensionAPI): void {
55
55
  // 落锚文件尾两步,dist/core/agent-session.js:2464)。
56
56
  // 写法契约(D1 硬要求):handler 必须把 navigateTree 的 promise 纳入自身返回链——
57
57
  // pi `await command.handler(...)` 接住返回值是「revokeMessage reply 前树变更+落盘
58
- // 完成」的保证链。取 D1 许可形态「显式 await」而非「直接 return」:SDK 0.84.4
58
+ // 完成」的保证链。取 D1 许可形态「显式 await」而非「直接 return」:SDK(1.0.0 复核)
59
59
  // RegisteredCommand.handler 钉死 `(args, ctx) => Promise<void>`,直接 return
60
60
  // navigateTree 的 `Promise<{cancelled}>` 编译不过(TS2322,as 断言亦被拒/禁)。
61
61
  // fire-and-forget(去掉 await)会使 reply 先于树变更,产生偶发假阴性 nav-failed——