@oh-my-pi/pi-agent-core 7.0.0 → 8.0.9
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 +4 -4
- package/src/agent-loop.ts +1 -1
- package/src/proxy.ts +1 -1
- package/src/types.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-agent-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.9",
|
|
4
4
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"test": "vitest --run"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@oh-my-pi/pi-ai": "
|
|
17
|
-
"@oh-my-pi/pi-tui": "
|
|
18
|
-
"@oh-my-pi/pi-utils": "
|
|
16
|
+
"@oh-my-pi/pi-ai": "8.0.9",
|
|
17
|
+
"@oh-my-pi/pi-tui": "8.0.9",
|
|
18
|
+
"@oh-my-pi/pi-utils": "8.0.9"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
21
21
|
"ai",
|
package/src/agent-loop.ts
CHANGED
package/src/proxy.ts
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
type StopReason,
|
|
14
14
|
type ToolCall,
|
|
15
15
|
} from "@oh-my-pi/pi-ai";
|
|
16
|
-
import { parseStreamingJson } from "@oh-my-pi/pi-ai/
|
|
16
|
+
import { parseStreamingJson } from "@oh-my-pi/pi-ai/utils/json-parse";
|
|
17
17
|
import { readSseEvents } from "@oh-my-pi/pi-utils";
|
|
18
18
|
|
|
19
19
|
// Create stream class matching ProxyMessageEventStream
|
package/src/types.ts
CHANGED
|
@@ -204,6 +204,8 @@ export interface AgentTool<TParameters extends TSchema = TSchema, TDetails = any
|
|
|
204
204
|
label: string;
|
|
205
205
|
/** If true, tool is excluded unless explicitly listed in --tools or agent's tools field */
|
|
206
206
|
hidden?: boolean;
|
|
207
|
+
/** If true, tool execution ignores abort signals (runs to completion) */
|
|
208
|
+
nonAbortable?: boolean;
|
|
207
209
|
execute: (
|
|
208
210
|
toolCallId: string,
|
|
209
211
|
params: Static<TParameters>,
|