@trim21/personal-pi-extensions 0.1.20261007141935 → 0.1.20261010221619
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 +7 -7
- package/src/lib/tool-bus.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trim21/personal-pi-extensions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20261010221619",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
|
|
6
6
|
"keywords": [
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"build:codemode-worker": "esbuild src/codemode/worker.ts --bundle --platform=node --external:quickjs-wasi --format=esm --target=node24 --outfile=src/codemode/worker.js"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@earendil-works/pi-agent-core": ">=
|
|
36
|
-
"@earendil-works/pi-ai": ">=
|
|
37
|
-
"@earendil-works/pi-coding-agent": ">=
|
|
35
|
+
"@earendil-works/pi-agent-core": ">=1.1.0",
|
|
36
|
+
"@earendil-works/pi-ai": ">=1.1.0",
|
|
37
|
+
"@earendil-works/pi-coding-agent": ">=1.1.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@earendil-works/pi-agent-core": ">=
|
|
41
|
-
"@earendil-works/pi-ai": ">=
|
|
42
|
-
"@earendil-works/pi-coding-agent": ">=
|
|
40
|
+
"@earendil-works/pi-agent-core": ">=1.1.0",
|
|
41
|
+
"@earendil-works/pi-ai": ">=1.1.0",
|
|
42
|
+
"@earendil-works/pi-coding-agent": ">=1.1.0",
|
|
43
43
|
"@eslint/js": "10.0.1",
|
|
44
44
|
"@types/lodash-es": "^4.17.12",
|
|
45
45
|
"@types/node": "^24.13.3",
|
package/src/lib/tool-bus.ts
CHANGED
|
@@ -25,6 +25,7 @@ import type { AgentToolResult, AgentToolUpdateCallback } from "@earendil-works/p
|
|
|
25
25
|
import type {
|
|
26
26
|
ExtensionAPI,
|
|
27
27
|
ExtensionContext,
|
|
28
|
+
ExtensionToolContext,
|
|
28
29
|
ToolDefinition,
|
|
29
30
|
} from "@earendil-works/pi-coding-agent";
|
|
30
31
|
import type { Static, TSchema } from "typebox";
|
|
@@ -80,7 +81,7 @@ export type ToolExecutionResult = AgentToolResult<unknown> & {
|
|
|
80
81
|
|
|
81
82
|
export interface ExecuteToolOptions {
|
|
82
83
|
/** 工具 `execute` 需要的宿主上下文:调用方把自己拿到的那个 ctx 传进来。 */
|
|
83
|
-
ctx:
|
|
84
|
+
ctx: ExtensionToolContext;
|
|
84
85
|
signal?: AbortSignal;
|
|
85
86
|
onUpdate?: AgentToolUpdateCallback<unknown>;
|
|
86
87
|
/** 日志与临时文件命名用的调用 id;缺省由总线生成。 */
|