@oh-my-pi/pi-agent-core 14.3.0 → 14.4.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 +4 -4
- package/src/agent-loop.ts +2 -3
- package/src/types.ts +2 -2
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": "14.
|
|
4
|
+
"version": "14.4.0",
|
|
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",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"fmt": "biome format --write ."
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@oh-my-pi/pi-ai": "14.
|
|
39
|
-
"@oh-my-pi/pi-natives": "14.
|
|
40
|
-
"@oh-my-pi/pi-utils": "14.
|
|
38
|
+
"@oh-my-pi/pi-ai": "14.4.0",
|
|
39
|
+
"@oh-my-pi/pi-natives": "14.4.0",
|
|
40
|
+
"@oh-my-pi/pi-utils": "14.4.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@sinclair/typebox": "^0.34.49",
|
package/src/agent-loop.ts
CHANGED
|
@@ -170,11 +170,10 @@ function normalizeTools(tools: Context["tools"], injectIntent: boolean): Context
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
function extractIntent(args: Record<string, unknown>): { intent?: string; strippedArgs: Record<string, unknown> } {
|
|
173
|
-
const intent = args
|
|
173
|
+
const { [INTENT_FIELD]: intent, ...strippedArgs } = args;
|
|
174
174
|
if (typeof intent !== "string") {
|
|
175
|
-
return { strippedArgs
|
|
175
|
+
return { strippedArgs };
|
|
176
176
|
}
|
|
177
|
-
const { [INTENT_FIELD]: _ignored, ...strippedArgs } = args;
|
|
178
177
|
const trimmed = intent.trim();
|
|
179
178
|
return { intent: trimmed.length > 0 ? trimmed : undefined, strippedArgs };
|
|
180
179
|
}
|
package/src/types.ts
CHANGED
|
@@ -129,8 +129,8 @@ export interface AgentLoopConfig extends SimpleStreamOptions {
|
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* Enable intent tracing for tool calls.
|
|
132
|
-
* When enabled, the harness injects
|
|
133
|
-
* then strips
|
|
132
|
+
* When enabled, the harness injects a `string` field into tool schemas sent to the model,
|
|
133
|
+
* then strips from arguments before executing tools.
|
|
134
134
|
*/
|
|
135
135
|
intentTracing?: boolean;
|
|
136
136
|
|