@oh-my-pi/pi-agent-core 13.8.0 → 13.9.2
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 +3 -3
- package/src/agent.ts +2 -3
- package/src/types.ts +1 -6
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-agent-core",
|
|
4
|
-
"version": "13.
|
|
4
|
+
"version": "13.9.2",
|
|
5
5
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
6
6
|
"homepage": "https://github.com/can1357/oh-my-pi",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"test": "bun test"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@oh-my-pi/pi-ai": "13.
|
|
35
|
-
"@oh-my-pi/pi-utils": "13.
|
|
34
|
+
"@oh-my-pi/pi-ai": "13.9.2",
|
|
35
|
+
"@oh-my-pi/pi-utils": "13.9.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@sinclair/typebox": "^0.34",
|
package/src/agent.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent class that uses the agent-loop directly.
|
|
1
|
+
/** Agent class that uses the agent-loop directly.
|
|
3
2
|
* No transport abstraction - calls streamSimple via the loop.
|
|
4
3
|
*/
|
|
5
4
|
import {
|
|
@@ -14,6 +13,7 @@ import {
|
|
|
14
13
|
streamSimple,
|
|
15
14
|
type TextContent,
|
|
16
15
|
type ThinkingBudgets,
|
|
16
|
+
type ThinkingLevel,
|
|
17
17
|
type ToolChoice,
|
|
18
18
|
type ToolResultMessage,
|
|
19
19
|
} from "@oh-my-pi/pi-ai";
|
|
@@ -27,7 +27,6 @@ import type {
|
|
|
27
27
|
AgentTool,
|
|
28
28
|
AgentToolContext,
|
|
29
29
|
StreamFn,
|
|
30
|
-
ThinkingLevel,
|
|
31
30
|
ToolCallContext,
|
|
32
31
|
} from "./types";
|
|
33
32
|
|
package/src/types.ts
CHANGED
|
@@ -7,6 +7,7 @@ import type {
|
|
|
7
7
|
SimpleStreamOptions,
|
|
8
8
|
streamSimple,
|
|
9
9
|
TextContent,
|
|
10
|
+
ThinkingLevel,
|
|
10
11
|
Tool,
|
|
11
12
|
ToolChoice,
|
|
12
13
|
ToolResultMessage,
|
|
@@ -139,12 +140,6 @@ export interface ToolCallContext {
|
|
|
139
140
|
toolCalls: Array<{ id: string; name: string }>;
|
|
140
141
|
}
|
|
141
142
|
|
|
142
|
-
/**
|
|
143
|
-
* Thinking/reasoning level for models that support it.
|
|
144
|
-
* Note: "xhigh" is only supported by OpenAI gpt-5.1-codex-max, gpt-5.2, gpt-5.2-codex, gpt-5.3, and gpt-5.3-codex models.
|
|
145
|
-
*/
|
|
146
|
-
export type ThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh";
|
|
147
|
-
|
|
148
143
|
/**
|
|
149
144
|
* Extensible interface for custom app messages.
|
|
150
145
|
* Apps can extend via declaration merging:
|