@oh-my-pi/pi-agent-core 16.4.0 → 16.4.1
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
CHANGED
|
@@ -40,6 +40,11 @@ export interface OpenAiRemoteCompactionRequest {
|
|
|
40
40
|
model: string;
|
|
41
41
|
input: Array<Record<string, unknown>>;
|
|
42
42
|
instructions: string;
|
|
43
|
+
reasoning?: {
|
|
44
|
+
context?: string;
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
include?: string[];
|
|
43
48
|
}
|
|
44
49
|
export interface OpenAiRemoteCompactionResponse extends OpenAiRemoteCompactionPreserveData {
|
|
45
50
|
}
|
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.4.
|
|
4
|
+
"version": "16.4.1",
|
|
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.4.
|
|
39
|
-
"@oh-my-pi/pi-catalog": "16.4.
|
|
40
|
-
"@oh-my-pi/pi-natives": "16.4.
|
|
41
|
-
"@oh-my-pi/pi-utils": "16.4.
|
|
42
|
-
"@oh-my-pi/pi-wire": "16.4.
|
|
43
|
-
"@oh-my-pi/snapcompact": "16.4.
|
|
38
|
+
"@oh-my-pi/pi-ai": "16.4.1",
|
|
39
|
+
"@oh-my-pi/pi-catalog": "16.4.1",
|
|
40
|
+
"@oh-my-pi/pi-natives": "16.4.1",
|
|
41
|
+
"@oh-my-pi/pi-utils": "16.4.1",
|
|
42
|
+
"@oh-my-pi/pi-wire": "16.4.1",
|
|
43
|
+
"@oh-my-pi/snapcompact": "16.4.1",
|
|
44
44
|
"@opentelemetry/api": "^1.9.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
@@ -305,10 +305,12 @@ async function attemptCompactionV2Streaming(
|
|
|
305
305
|
instructions: request.instructions,
|
|
306
306
|
stream: true,
|
|
307
307
|
store: false,
|
|
308
|
-
...(request.reasoning
|
|
308
|
+
...(request.reasoning || model.useResponsesLite
|
|
309
309
|
? {
|
|
310
310
|
// Lite implies gpt-5.4+, where codex-rs sends `all_turns` replay.
|
|
311
|
-
reasoning: model.useResponsesLite
|
|
311
|
+
reasoning: model.useResponsesLite
|
|
312
|
+
? { ...(request.reasoning ?? {}), context: "all_turns" }
|
|
313
|
+
: request.reasoning,
|
|
312
314
|
include: ["reasoning.encrypted_content"],
|
|
313
315
|
}
|
|
314
316
|
: {}),
|
package/src/compaction/openai.ts
CHANGED
|
@@ -88,6 +88,11 @@ export interface OpenAiRemoteCompactionRequest {
|
|
|
88
88
|
model: string;
|
|
89
89
|
input: Array<Record<string, unknown>>;
|
|
90
90
|
instructions: string;
|
|
91
|
+
reasoning?: {
|
|
92
|
+
context?: string;
|
|
93
|
+
[key: string]: unknown;
|
|
94
|
+
};
|
|
95
|
+
include?: string[];
|
|
91
96
|
}
|
|
92
97
|
|
|
93
98
|
export interface OpenAiRemoteCompactionResponse extends OpenAiRemoteCompactionPreserveData {}
|
|
@@ -533,6 +538,11 @@ export async function requestOpenAiRemoteCompaction(
|
|
|
533
538
|
if (model.useResponsesLite) {
|
|
534
539
|
applyCodexResponsesLiteShape(request);
|
|
535
540
|
headers[OPENAI_HEADERS.RESPONSES_LITE] = "true";
|
|
541
|
+
request.reasoning = {
|
|
542
|
+
...request.reasoning,
|
|
543
|
+
context: "all_turns",
|
|
544
|
+
};
|
|
545
|
+
request.include = Array.from(new Set([...(request.include ?? []), "reasoning.encrypted_content"]));
|
|
536
546
|
}
|
|
537
547
|
}
|
|
538
548
|
|