agent-afk 5.303.0 → 5.303.2

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 (40) hide show
  1. package/dist/agent/daemon/scheduler.d.ts +2 -0
  2. package/dist/agent/daemon/scheduler.execute-agent-task.d.ts +9 -0
  3. package/dist/agent/daemon.d.ts +1 -0
  4. package/dist/agent/dag-subagent.d.ts +3 -0
  5. package/dist/agent/dag-subagent.dispatch.d.ts +3 -0
  6. package/dist/agent/dag-subagent.recovery.d.ts +4 -0
  7. package/dist/agent/model-limits.d.ts +2 -2
  8. package/dist/agent/providers/openai-compatible/catalog-awareness.d.ts +14 -0
  9. package/dist/agent/providers/openai-compatible/models-catalog.d.ts +11 -0
  10. package/dist/agent/providers/openai-compatible/query/context-overflow.d.ts +1 -1
  11. package/dist/agent/providers/openai-compatible/query/context-pressure.d.ts +4 -0
  12. package/dist/agent/providers/openai-compatible/query/turn-iteration.d.ts +2 -1
  13. package/dist/agent/providers/shared/context-pressure.d.ts +7 -0
  14. package/dist/agent/providers/shared/sleep-with-abort.d.ts +3 -1
  15. package/dist/agent/session/ledger-lifecycle.d.ts +1 -1
  16. package/dist/agent/session-ledger-project.d.ts +1 -0
  17. package/dist/agent/session-ledger.d.ts +1 -1
  18. package/dist/agent/tools/compose-agent-resolve.d.ts +1 -0
  19. package/dist/agent/tools/compose-node-results.d.ts +14 -0
  20. package/dist/agent/tools/subagent-executor.notices.d.ts +4 -0
  21. package/dist/agent/trace/emit.d.ts +2 -1
  22. package/dist/agent/trace/events.d.ts +6 -0
  23. package/dist/agent/trace/events.session-phase.d.ts +6 -0
  24. package/dist/agent/trace/index.d.ts +3 -6
  25. package/dist/agent/trace/types.session-phase.d.ts +1 -1
  26. package/dist/cli/commands/daemon-session-persist.d.ts +5 -0
  27. package/dist/cli/session-autosave.d.ts +26 -0
  28. package/dist/cli/slash/types.d.ts +1 -1
  29. package/dist/cli.mjs +420 -415
  30. package/dist/config/env.d.ts +16 -0
  31. package/dist/config/env.model.d.ts +16 -0
  32. package/dist/index.mjs +156 -155
  33. package/dist/telegram.mjs +188 -185
  34. package/dist/web-server/session-name-head.d.ts +2 -0
  35. package/dist/web-server/session-owner.autosave.d.ts +5 -0
  36. package/dist/web-server/session-owner.d.ts +1 -0
  37. package/dist/web-ui-assets/assets/{index-CcN04Dl-.js → index-Bs_yATUj.js} +3 -3
  38. package/dist/web-ui-assets/assets/{index-HrybHVLc.js → index-DoLWZ4qo.js} +1 -1
  39. package/dist/web-ui-assets/index.html +1 -1
  40. package/package.json +3 -3
@@ -18,6 +18,22 @@ export declare const ENV_REGISTRY: readonly [{
18
18
  readonly required: false;
19
19
  readonly example: "120000";
20
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";
21
37
  }, {
22
38
  readonly name: "AFK_COMPACT_KEEP_LAST_TURNS";
23
39
  readonly description: "Number of recent turns the compactor keeps verbatim during /compact. Default tuned in compact-handler.ts.";
@@ -5,6 +5,22 @@ export declare const MODEL_ENV_REGISTRY: readonly [{
5
5
  readonly required: false;
6
6
  readonly example: "120000";
7
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";
8
24
  }, {
9
25
  readonly name: "AFK_COMPACT_KEEP_LAST_TURNS";
10
26
  readonly description: "Number of recent turns the compactor keeps verbatim during /compact. Default tuned in compact-handler.ts.";