@zhushanwen/pi-unified-hooks 0.1.3 → 0.2.0
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-unified-hooks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Unified hooks extension - collect scattered hooks in one place for easy maintenance",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
],
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"typebox": "*",
|
|
20
19
|
"@earendil-works/pi-coding-agent": "*"
|
|
21
20
|
},
|
|
22
21
|
"devDependencies": {
|
|
@@ -10,7 +10,7 @@ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
|
10
10
|
/**
|
|
11
11
|
* Subset of `ToolExecutionEndEvent` fields used by this hook.
|
|
12
12
|
* Local interface because the SDK's full event type is not re-exported
|
|
13
|
-
* by the CI ambient type stubs
|
|
13
|
+
* by the CI ambient type stubs.
|
|
14
14
|
*
|
|
15
15
|
* `result` 形如 `{ content: Array<{ type: "text", text: string }>, isError: boolean }`
|
|
16
16
|
* (Pi 框架在 tool execute throw 时塞入 error content)。SDK 事件结构里没有独立
|