@ax-llm/ax 21.0.11 → 21.0.12
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/index.cjs +264 -252
- package/index.cjs.map +1 -1
- package/index.d.cts +14 -1
- package/index.d.ts +14 -1
- package/index.global.js +259 -247
- package/index.global.js.map +1 -1
- package/index.js +268 -256
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/ax-agent-memory-skills.md +1 -1
- package/skills/ax-agent-observability.md +1 -1
- package/skills/ax-agent-optimize.md +1 -1
- package/skills/ax-agent-rlm.md +2 -1
- package/skills/ax-agent.md +1 -1
- package/skills/ax-ai.md +1 -1
- package/skills/ax-audio.md +1 -1
- package/skills/ax-flow.md +1 -1
- package/skills/ax-gen.md +1 -1
- package/skills/ax-gepa.md +1 -1
- package/skills/ax-learn.md +1 -1
- package/skills/ax-llm.md +1 -1
- package/skills/ax-signature.md +1 -1
package/index.d.cts
CHANGED
|
@@ -4414,6 +4414,14 @@ type AxAgentContextEvent = {
|
|
|
4414
4414
|
resolvedByTurn: number;
|
|
4415
4415
|
source: 'deterministic' | 'model';
|
|
4416
4416
|
summaryChars: number;
|
|
4417
|
+
} | {
|
|
4418
|
+
kind: 'action_compacted';
|
|
4419
|
+
stage: AxAgentContextStage;
|
|
4420
|
+
turn: number;
|
|
4421
|
+
mode: 'distill' | 'compact';
|
|
4422
|
+
reason: 'structured_output' | 'superseded' | 'pressure' | 'proactive' | 'lean';
|
|
4423
|
+
originalChars: number;
|
|
4424
|
+
renderedChars: number;
|
|
4417
4425
|
};
|
|
4418
4426
|
type AxAgentOnContextEvent = (event: Readonly<AxAgentContextEvent>) => void | Promise<void>;
|
|
4419
4427
|
|
|
@@ -4427,7 +4435,8 @@ type AxAgentOnContextEvent = (event: Readonly<AxAgentContextEvent>) => void | Pr
|
|
|
4427
4435
|
|
|
4428
4436
|
type ActionLogTag = 'error' | 'dead-end' | 'foundational' | 'pivot' | 'superseded';
|
|
4429
4437
|
type ActionLogStepKind = 'explore' | 'transform' | 'query' | 'finalize' | 'error';
|
|
4430
|
-
type ActionReplayMode = 'full' | 'omit';
|
|
4438
|
+
type ActionReplayMode = 'full' | 'distill' | 'compact' | 'omit';
|
|
4439
|
+
type ActionLogHygieneMode = 'none' | 'pressure' | 'proactive' | 'aggressive';
|
|
4431
4440
|
type ActionLogFunctionCall = {
|
|
4432
4441
|
qualifiedName: string;
|
|
4433
4442
|
name?: string;
|
|
@@ -5727,6 +5736,10 @@ type AxResolvedContextPolicy = {
|
|
|
5727
5736
|
summarizerOptions?: Omit<AxProgramForwardOptions<string>, 'functions'>;
|
|
5728
5737
|
actionReplay: 'full' | 'adaptive' | 'minimal' | 'checkpointed';
|
|
5729
5738
|
recentFullActions: number;
|
|
5739
|
+
contextHygiene: {
|
|
5740
|
+
defaultMode: ActionLogHygieneMode;
|
|
5741
|
+
pressureMode?: ActionLogHygieneMode;
|
|
5742
|
+
};
|
|
5730
5743
|
errorPruning: boolean;
|
|
5731
5744
|
hindsightEvaluation: boolean;
|
|
5732
5745
|
pruneRank: number;
|
package/index.d.ts
CHANGED
|
@@ -4414,6 +4414,14 @@ type AxAgentContextEvent = {
|
|
|
4414
4414
|
resolvedByTurn: number;
|
|
4415
4415
|
source: 'deterministic' | 'model';
|
|
4416
4416
|
summaryChars: number;
|
|
4417
|
+
} | {
|
|
4418
|
+
kind: 'action_compacted';
|
|
4419
|
+
stage: AxAgentContextStage;
|
|
4420
|
+
turn: number;
|
|
4421
|
+
mode: 'distill' | 'compact';
|
|
4422
|
+
reason: 'structured_output' | 'superseded' | 'pressure' | 'proactive' | 'lean';
|
|
4423
|
+
originalChars: number;
|
|
4424
|
+
renderedChars: number;
|
|
4417
4425
|
};
|
|
4418
4426
|
type AxAgentOnContextEvent = (event: Readonly<AxAgentContextEvent>) => void | Promise<void>;
|
|
4419
4427
|
|
|
@@ -4427,7 +4435,8 @@ type AxAgentOnContextEvent = (event: Readonly<AxAgentContextEvent>) => void | Pr
|
|
|
4427
4435
|
|
|
4428
4436
|
type ActionLogTag = 'error' | 'dead-end' | 'foundational' | 'pivot' | 'superseded';
|
|
4429
4437
|
type ActionLogStepKind = 'explore' | 'transform' | 'query' | 'finalize' | 'error';
|
|
4430
|
-
type ActionReplayMode = 'full' | 'omit';
|
|
4438
|
+
type ActionReplayMode = 'full' | 'distill' | 'compact' | 'omit';
|
|
4439
|
+
type ActionLogHygieneMode = 'none' | 'pressure' | 'proactive' | 'aggressive';
|
|
4431
4440
|
type ActionLogFunctionCall = {
|
|
4432
4441
|
qualifiedName: string;
|
|
4433
4442
|
name?: string;
|
|
@@ -5727,6 +5736,10 @@ type AxResolvedContextPolicy = {
|
|
|
5727
5736
|
summarizerOptions?: Omit<AxProgramForwardOptions<string>, 'functions'>;
|
|
5728
5737
|
actionReplay: 'full' | 'adaptive' | 'minimal' | 'checkpointed';
|
|
5729
5738
|
recentFullActions: number;
|
|
5739
|
+
contextHygiene: {
|
|
5740
|
+
defaultMode: ActionLogHygieneMode;
|
|
5741
|
+
pressureMode?: ActionLogHygieneMode;
|
|
5742
|
+
};
|
|
5730
5743
|
errorPruning: boolean;
|
|
5731
5744
|
hindsightEvaluation: boolean;
|
|
5732
5745
|
pruneRank: number;
|