@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oh-my-pi/pi-agent-core",
3
- "version": "7.0.0",
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": "7.0.0",
17
- "@oh-my-pi/pi-tui": "7.0.0",
18
- "@oh-my-pi/pi-utils": "7.0.0"
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
@@ -410,7 +410,7 @@ async function executeToolCalls(
410
410
  result = await tool.execute(
411
411
  toolCall.id,
412
412
  validatedArgs,
413
- signal,
413
+ tool.nonAbortable ? undefined : signal,
414
414
  (partialResult) => {
415
415
  stream.push({
416
416
  type: "tool_execution_update",
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/src/utils/json-parse";
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>,