@oh-my-pi/pi-agent-core 18.13.2 → 18.14.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/CHANGELOG.md +21 -0
- package/README.md +7 -9
- package/dist/types/agent.d.ts +12 -0
- package/dist/types/compaction/compaction-v2-streaming.d.ts +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/tokenizer.d.ts +1 -0
- package/dist/types/types.d.ts +5 -0
- package/package.json +9 -10
- package/src/agent-loop.ts +6 -24
- package/src/agent.ts +37 -8
- package/src/compaction/anthropic.ts +9 -4
- package/src/compaction/compaction-v2-streaming.ts +20 -17
- package/src/compaction/compaction.ts +10 -6
- package/src/compaction/openai.ts +3 -1
- package/src/compaction/prompts/anthropic-compaction-instructions.md +1 -2
- package/src/index.ts +0 -2
- package/src/telemetry.ts +0 -8
- package/src/tokenizer.ts +10 -1
- package/src/types.ts +6 -0
- package/THIRD-PARTY-NOTICES.txt +0 -22901
- package/dist/types/utils/yield.d.ts +0 -71
- package/src/utils/yield.ts +0 -183
package/src/types.ts
CHANGED
|
@@ -1253,6 +1253,12 @@ export interface AgentTool<
|
|
|
1253
1253
|
*/
|
|
1254
1254
|
approvalCacheTargets?: (args: unknown) => readonly string[] | undefined;
|
|
1255
1255
|
|
|
1256
|
+
/**
|
|
1257
|
+
* Paths a call reads beyond its working directory, matched against restricted folders when it
|
|
1258
|
+
* reports no `approvalCacheTargets`. Unlike cache targets they never key a remembered grant.
|
|
1259
|
+
*/
|
|
1260
|
+
approvalRestrictionPaths?: (args: unknown) => readonly string[] | undefined;
|
|
1261
|
+
|
|
1256
1262
|
/** The main execution callback for this tool. */
|
|
1257
1263
|
execute: AgentToolExecFn<TParameters, TDetails, TTheme>;
|
|
1258
1264
|
|