@oh-my-pi/pi-agent-core 16.1.3 → 16.1.5
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/CHANGELOG.md +6 -0
- package/package.json +7 -7
- package/src/agent-loop.ts +2 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [16.1.5] - 2026-06-19
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Wire-encoded `normalizeTools` parameters unconditionally so tools whose `intent` resolves to `"omit"` (function intent or `intent: "omit"`, e.g. builtin `eval` / `resolve`) no longer leak raw arktype/zod schema objects in `parameters` ([#3074](https://github.com/can1357/oh-my-pi/issues/3074))
|
|
10
|
+
|
|
5
11
|
## [16.1.2] - 2026-06-19
|
|
6
12
|
|
|
7
13
|
### Fixed
|
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": "16.1.
|
|
4
|
+
"version": "16.1.5",
|
|
5
5
|
"description": "General-purpose agent with transport abstraction, state management, and attachment support",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"fmt": "biome format --write ."
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@oh-my-pi/pi-ai": "16.1.
|
|
39
|
-
"@oh-my-pi/pi-catalog": "16.1.
|
|
40
|
-
"@oh-my-pi/pi-natives": "16.1.
|
|
41
|
-
"@oh-my-pi/pi-utils": "16.1.
|
|
42
|
-
"@oh-my-pi/pi-wire": "16.1.
|
|
43
|
-
"@oh-my-pi/snapcompact": "16.1.
|
|
38
|
+
"@oh-my-pi/pi-ai": "16.1.5",
|
|
39
|
+
"@oh-my-pi/pi-catalog": "16.1.5",
|
|
40
|
+
"@oh-my-pi/pi-natives": "16.1.5",
|
|
41
|
+
"@oh-my-pi/pi-utils": "16.1.5",
|
|
42
|
+
"@oh-my-pi/pi-wire": "16.1.5",
|
|
43
|
+
"@oh-my-pi/snapcompact": "16.1.5",
|
|
44
44
|
"@opentelemetry/api": "^1.9.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
package/src/agent-loop.ts
CHANGED
|
@@ -5,12 +5,9 @@
|
|
|
5
5
|
import {
|
|
6
6
|
type AssistantMessage,
|
|
7
7
|
type AssistantMessageEvent,
|
|
8
|
-
arkToWireSchema,
|
|
9
8
|
type Context,
|
|
10
9
|
EventStream,
|
|
11
10
|
isApiKeyResolver,
|
|
12
|
-
isArkSchema,
|
|
13
|
-
isZodSchema,
|
|
14
11
|
resolveApiKeyOnce,
|
|
15
12
|
seedApiKeyResolver,
|
|
16
13
|
streamSimple,
|
|
@@ -20,7 +17,6 @@ import {
|
|
|
20
17
|
type TSchema,
|
|
21
18
|
toolWireSchema,
|
|
22
19
|
validateToolArguments,
|
|
23
|
-
zodToWireSchema,
|
|
24
20
|
} from "@oh-my-pi/pi-ai";
|
|
25
21
|
import {
|
|
26
22
|
type Dialect,
|
|
@@ -598,16 +594,8 @@ export function normalizeTools(
|
|
|
598
594
|
if (doInjectIntent) parameters = injectIntentIntoSchema(parameters, intentMode, false) as TSchema;
|
|
599
595
|
return { ...t, parameters, description: "" };
|
|
600
596
|
}
|
|
601
|
-
let parameters
|
|
602
|
-
if (doInjectIntent)
|
|
603
|
-
if (isZodSchema(parameters)) {
|
|
604
|
-
parameters = injectIntentIntoSchema(zodToWireSchema(parameters), intentMode) as TSchema;
|
|
605
|
-
} else if (isArkSchema(parameters)) {
|
|
606
|
-
parameters = injectIntentIntoSchema(arkToWireSchema(parameters), intentMode) as TSchema;
|
|
607
|
-
} else {
|
|
608
|
-
parameters = injectIntentIntoSchema(parameters, intentMode) as TSchema;
|
|
609
|
-
}
|
|
610
|
-
}
|
|
597
|
+
let parameters = toolWireSchema(t) as TSchema;
|
|
598
|
+
if (doInjectIntent) parameters = injectIntentIntoSchema(parameters, intentMode) as TSchema;
|
|
611
599
|
const description = t.description ?? "";
|
|
612
600
|
const examplesBlock = exampleDialect
|
|
613
601
|
? renderToolExamples({ ...t, parameters }, exampleDialect, doInjectIntent ? INTENT_FIELD : undefined)
|