@oh-my-pi/pi-agent-core 16.0.9 → 16.0.11
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/dist/types/agent-loop.d.ts +0 -1
- package/package.json +7 -6
- package/src/agent-loop.ts +1 -2
- package/src/compaction/utils.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -54,7 +54,6 @@ export declare function agentLoopContinueDetailed(context: AgentContext, config:
|
|
|
54
54
|
readonly stream: EventStream<AgentEvent, AgentMessage[]>;
|
|
55
55
|
readonly detailed: () => Promise<AgentLoopDetailedResult>;
|
|
56
56
|
};
|
|
57
|
-
export declare const INTENT_FIELD = "_i";
|
|
58
57
|
export declare function normalizeTools(tools: AgentContext["tools"], injectIntent: boolean, exampleDialect?: Dialect): Context["tools"];
|
|
59
58
|
/** Resolve the human-readable reason an abort carried. A caller that aborts via
|
|
60
59
|
* `AbortController.abort(reason)` with a string or a non-`AbortError` `Error`
|
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.0.
|
|
4
|
+
"version": "16.0.11",
|
|
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,11 +35,12 @@
|
|
|
35
35
|
"fmt": "biome format --write ."
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@oh-my-pi/pi-ai": "16.0.
|
|
39
|
-
"@oh-my-pi/pi-catalog": "16.0.
|
|
40
|
-
"@oh-my-pi/pi-natives": "16.0.
|
|
41
|
-
"@oh-my-pi/pi-utils": "16.0.
|
|
42
|
-
"@oh-my-pi/
|
|
38
|
+
"@oh-my-pi/pi-ai": "16.0.11",
|
|
39
|
+
"@oh-my-pi/pi-catalog": "16.0.11",
|
|
40
|
+
"@oh-my-pi/pi-natives": "16.0.11",
|
|
41
|
+
"@oh-my-pi/pi-utils": "16.0.11",
|
|
42
|
+
"@oh-my-pi/pi-wire": "16.0.11",
|
|
43
|
+
"@oh-my-pi/snapcompact": "16.0.11",
|
|
43
44
|
"@opentelemetry/api": "^1.9.1"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
package/src/agent-loop.ts
CHANGED
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
} from "@oh-my-pi/pi-ai/utils/harmony-leak";
|
|
39
39
|
import { preferredDialect } from "@oh-my-pi/pi-catalog/identity";
|
|
40
40
|
import { sanitizeText } from "@oh-my-pi/pi-utils";
|
|
41
|
+
import { INTENT_FIELD } from "@oh-my-pi/pi-wire";
|
|
41
42
|
import { type AgentRunCoverage, type AgentRunSummary, ToolCallBlockedError } from "./run-collector";
|
|
42
43
|
import {
|
|
43
44
|
type AgentTelemetry,
|
|
@@ -517,8 +518,6 @@ function normalizeMessagesForProvider(
|
|
|
517
518
|
});
|
|
518
519
|
}
|
|
519
520
|
|
|
520
|
-
export const INTENT_FIELD = "_i";
|
|
521
|
-
|
|
522
521
|
function injectIntentIntoSchema(schema: unknown, mode: "require" | "optional" = "require"): unknown {
|
|
523
522
|
if (!schema || typeof schema !== "object" || Array.isArray(schema)) return schema;
|
|
524
523
|
const schemaRecord = schema as Record<string, unknown>;
|
package/src/compaction/utils.ts
CHANGED
|
@@ -173,7 +173,7 @@ export function formatFileOperations(
|
|
|
173
173
|
const all = [...mode.keys()].sort();
|
|
174
174
|
let files = formatGroupedPaths(all.slice(0, FILE_OPERATION_SUMMARY_LIMIT), path => ` (${mode.get(path)})`);
|
|
175
175
|
if (all.length > FILE_OPERATION_SUMMARY_LIMIT) {
|
|
176
|
-
files += `\n
|
|
176
|
+
files += `\n[…${all.length - FILE_OPERATION_SUMMARY_LIMIT} files elided…]`;
|
|
177
177
|
}
|
|
178
178
|
return prompt.render(fileOperationsTemplate, { files });
|
|
179
179
|
}
|