agent-afk 5.302.13 → 5.303.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.
Files changed (37) hide show
  1. package/dist/agent/dag-subagent.d.ts +3 -0
  2. package/dist/agent/dag-subagent.dispatch.d.ts +3 -0
  3. package/dist/agent/dag-subagent.recovery.d.ts +4 -0
  4. package/dist/agent/journal/journal-file.d.ts +1 -0
  5. package/dist/agent/journal/types.d.ts +1 -0
  6. package/dist/agent/model-limits.d.ts +2 -2
  7. package/dist/agent/outcomes/schema.d.ts +1 -1
  8. package/dist/agent/provider.d.ts +2 -0
  9. package/dist/agent/providers/anthropic-direct/loop/connection-create.d.ts +19 -0
  10. package/dist/agent/providers/anthropic-direct/loop/round-request.d.ts +2 -11
  11. package/dist/agent/providers/openai-compatible/catalog-awareness.d.ts +14 -0
  12. package/dist/agent/providers/openai-compatible/models-catalog.d.ts +11 -0
  13. package/dist/agent/providers/openai-compatible/query/context-overflow.d.ts +1 -1
  14. package/dist/agent/providers/openai-compatible/query/context-pressure.d.ts +4 -0
  15. package/dist/agent/providers/openai-compatible/query/stream-drive.connection.d.ts +1 -1
  16. package/dist/agent/providers/openai-compatible/query/stream-drive.d.ts +1 -0
  17. package/dist/agent/providers/openai-compatible/query/turn-iteration.d.ts +2 -1
  18. package/dist/agent/providers/shared/connection-loop-lag.d.ts +4 -0
  19. package/dist/agent/providers/shared/connection-retry-budget.d.ts +10 -0
  20. package/dist/agent/providers/shared/context-pressure.d.ts +7 -0
  21. package/dist/agent/providers/shared/tool-loop-cap.d.ts +1 -0
  22. package/dist/agent/subagent/capped-handoff.d.ts +26 -0
  23. package/dist/agent/subagent/result.d.ts +2 -1
  24. package/dist/agent/tools/compose-agent-resolve.d.ts +1 -0
  25. package/dist/agent/tools/compose-node-results.d.ts +14 -0
  26. package/dist/agent/tools/subagent-executor.notices.d.ts +4 -0
  27. package/dist/agent/trace/events.d.ts +12 -0
  28. package/dist/agent/trace/events.session-phase.d.ts +12 -0
  29. package/dist/agent/trace/types.d.ts +6 -0
  30. package/dist/agent/trace/types.session-phase.d.ts +1 -1
  31. package/dist/agent/types/session-types.d.ts +2 -0
  32. package/dist/cli.mjs +364 -356
  33. package/dist/config/env.d.ts +23 -0
  34. package/dist/config/env.model.d.ts +23 -0
  35. package/dist/index.mjs +158 -152
  36. package/dist/telegram.mjs +189 -181
  37. package/package.json +1 -1
@@ -12,6 +12,29 @@ export interface EnvVarMeta {
12
12
  readonly secret?: boolean;
13
13
  }
14
14
  export declare const ENV_REGISTRY: readonly [{
15
+ readonly name: "AFK_CONNECT_RETRY_BUDGET_MS";
16
+ readonly description: "Experimental streaming connection retry wall budget in milliseconds. Positive finite value enables capped jittered backoff before the stream opens; unset or invalid preserves legacy retry counts. In-flight attempts retain existing timeouts.";
17
+ readonly type: "number";
18
+ readonly required: false;
19
+ readonly example: "120000";
20
+ readonly category: "model";
21
+ }, {
22
+ readonly name: "AFK_CONTEXT_GUARD_PCT";
23
+ readonly description: "Temporary within-turn context guard operational threshold as percent of the effective provider-route limit (catalog metadata for subscription routes; contextLimitFor() for API-key routes). Default 95. Not a documented model capacity or guaranteed server cutoff. Valid range 1–99.";
24
+ readonly type: "number";
25
+ readonly required: false;
26
+ readonly default: "95";
27
+ readonly example: "90";
28
+ readonly category: "model";
29
+ }, {
30
+ readonly name: "AFK_CONTEXT_GUARD_DISABLE";
31
+ readonly description: "Disable the temporary within-turn context pressure guard (1/true/yes/on). Restores unguarded tool-loop behavior; ordinary compaction and round caps remain enabled.";
32
+ readonly type: "boolean";
33
+ readonly required: false;
34
+ readonly default: "0";
35
+ readonly example: "1";
36
+ readonly category: "model";
37
+ }, {
15
38
  readonly name: "AFK_COMPACT_KEEP_LAST_TURNS";
16
39
  readonly description: "Number of recent turns the compactor keeps verbatim during /compact. Default tuned in compact-handler.ts.";
17
40
  readonly type: "number";
@@ -1,4 +1,27 @@
1
1
  export declare const MODEL_ENV_REGISTRY: readonly [{
2
+ readonly name: "AFK_CONNECT_RETRY_BUDGET_MS";
3
+ readonly description: "Experimental streaming connection retry wall budget in milliseconds. Positive finite value enables capped jittered backoff before the stream opens; unset or invalid preserves legacy retry counts. In-flight attempts retain existing timeouts.";
4
+ readonly type: "number";
5
+ readonly required: false;
6
+ readonly example: "120000";
7
+ readonly category: "model";
8
+ }, {
9
+ readonly name: "AFK_CONTEXT_GUARD_PCT";
10
+ readonly description: "Temporary within-turn context guard operational threshold as percent of the effective provider-route limit (catalog metadata for subscription routes; contextLimitFor() for API-key routes). Default 95. Not a documented model capacity or guaranteed server cutoff. Valid range 1–99.";
11
+ readonly type: "number";
12
+ readonly required: false;
13
+ readonly default: "95";
14
+ readonly example: "90";
15
+ readonly category: "model";
16
+ }, {
17
+ readonly name: "AFK_CONTEXT_GUARD_DISABLE";
18
+ readonly description: "Disable the temporary within-turn context pressure guard (1/true/yes/on). Restores unguarded tool-loop behavior; ordinary compaction and round caps remain enabled.";
19
+ readonly type: "boolean";
20
+ readonly required: false;
21
+ readonly default: "0";
22
+ readonly example: "1";
23
+ readonly category: "model";
24
+ }, {
2
25
  readonly name: "AFK_COMPACT_KEEP_LAST_TURNS";
3
26
  readonly description: "Number of recent turns the compactor keeps verbatim during /compact. Default tuned in compact-handler.ts.";
4
27
  readonly type: "number";