agent-afk 5.295.8 → 5.296.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/dist/agent/hooks/command-executor.d.ts +2 -0
- package/dist/agent/hooks/config-loader.d.ts +3 -1
- package/dist/agent/hooks/config-loader.plugin-hooks.d.ts +17 -0
- package/dist/agent/memory/memory-gc-sweep.d.ts +19 -0
- package/dist/agent/plugins/index-store.d.ts +3 -0
- package/dist/agent/plugins/plugin-user-config.d.ts +12 -0
- package/dist/agent/tools/handlers/web-request.d.ts +1 -0
- package/dist/agent/tools/types.d.ts +1 -0
- package/dist/agent/usage/burn-rate.d.ts +14 -0
- package/dist/agent/usage/usage-ledger.d.ts +2 -1
- package/dist/agent/usage/usage-record.d.ts +8 -0
- package/dist/browser/config.d.ts +9 -0
- package/dist/cli/quota-indicator.d.ts +4 -0
- package/dist/cli.mjs +447 -435
- package/dist/config/env.d.ts +28 -0
- package/dist/config/env.memory-gc.d.ts +17 -0
- package/dist/config/env.paths.d.ts +12 -0
- package/dist/index.mjs +171 -164
- package/dist/paths.d.ts +1 -6
- package/dist/paths.plugins.d.ts +7 -0
- package/dist/telegram.mjs +215 -208
- package/package.json +1 -1
package/dist/config/env.d.ts
CHANGED
|
@@ -446,6 +446,22 @@ export declare const ENV_REGISTRY: readonly [{
|
|
|
446
446
|
readonly required: false;
|
|
447
447
|
readonly example: "sonnet";
|
|
448
448
|
readonly category: "model";
|
|
449
|
+
}, {
|
|
450
|
+
readonly name: "AFK_MEMORY_GC_SWEEP_ENABLE";
|
|
451
|
+
readonly description: string;
|
|
452
|
+
readonly type: "boolean";
|
|
453
|
+
readonly required: false;
|
|
454
|
+
readonly default: "0";
|
|
455
|
+
readonly example: "1";
|
|
456
|
+
readonly category: "misc";
|
|
457
|
+
}, {
|
|
458
|
+
readonly name: "AFK_MEMORY_GC_MIN_AGE_DAYS";
|
|
459
|
+
readonly description: string;
|
|
460
|
+
readonly type: "number";
|
|
461
|
+
readonly required: false;
|
|
462
|
+
readonly default: "90";
|
|
463
|
+
readonly example: "60";
|
|
464
|
+
readonly category: "misc";
|
|
449
465
|
}, {
|
|
450
466
|
readonly name: "AFK_SYSTEM_PROMPT";
|
|
451
467
|
readonly description: "Raw operator-overlay prompt. Highest-priority overlay (over afk.config.json and AFK.md). Appended on top of the framework base (system-prompt.md) under an \"# Operator configuration\" header — it augments, never replaces, the base.";
|
|
@@ -767,6 +783,18 @@ export declare const ENV_REGISTRY: readonly [{
|
|
|
767
783
|
readonly type: "string";
|
|
768
784
|
readonly required: false;
|
|
769
785
|
readonly category: "process";
|
|
786
|
+
}, {
|
|
787
|
+
readonly name: "SystemRoot";
|
|
788
|
+
readonly description: "Windows system root directory (typically C:\\Windows). Used to identify WSL bash.exe shim paths in resolve-shell.ts.";
|
|
789
|
+
readonly type: "string";
|
|
790
|
+
readonly required: false;
|
|
791
|
+
readonly category: "process";
|
|
792
|
+
}, {
|
|
793
|
+
readonly name: "MSYSTEM";
|
|
794
|
+
readonly description: "Set by Git Bash environments (e.g. MINGW64). Signals that bash.exe is already on PATH in resolve-shell.ts.";
|
|
795
|
+
readonly type: "string";
|
|
796
|
+
readonly required: false;
|
|
797
|
+
readonly category: "process";
|
|
770
798
|
}, {
|
|
771
799
|
readonly name: "AFK_DAEMON_BUDGET_GATE_DISABLED";
|
|
772
800
|
readonly description: "Set to 1 to disable the subscription-usage budget gate for daemon/cron agent tasks. When unset (default) the daemon checks Claude subscription utilization before starting each agent task and skips the run if any window is at or above AFK_DAEMON_BUDGET_SKIP_PCT. Shell and builtin tasks are never gated regardless of this setting.";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const MEMORY_GC_ENV_REGISTRY: readonly [{
|
|
2
|
+
readonly name: "AFK_MEMORY_GC_SWEEP_ENABLE";
|
|
3
|
+
readonly description: string;
|
|
4
|
+
readonly type: "boolean";
|
|
5
|
+
readonly required: false;
|
|
6
|
+
readonly default: "0";
|
|
7
|
+
readonly example: "1";
|
|
8
|
+
readonly category: "misc";
|
|
9
|
+
}, {
|
|
10
|
+
readonly name: "AFK_MEMORY_GC_MIN_AGE_DAYS";
|
|
11
|
+
readonly description: string;
|
|
12
|
+
readonly type: "number";
|
|
13
|
+
readonly required: false;
|
|
14
|
+
readonly default: "90";
|
|
15
|
+
readonly example: "60";
|
|
16
|
+
readonly category: "misc";
|
|
17
|
+
}];
|
|
@@ -73,4 +73,16 @@ export declare const PATHS_ENV_REGISTRY: readonly [{
|
|
|
73
73
|
readonly type: "string";
|
|
74
74
|
readonly required: false;
|
|
75
75
|
readonly category: "process";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "SystemRoot";
|
|
78
|
+
readonly description: "Windows system root directory (typically C:\\Windows). Used to identify WSL bash.exe shim paths in resolve-shell.ts.";
|
|
79
|
+
readonly type: "string";
|
|
80
|
+
readonly required: false;
|
|
81
|
+
readonly category: "process";
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "MSYSTEM";
|
|
84
|
+
readonly description: "Set by Git Bash environments (e.g. MINGW64). Signals that bash.exe is already on PATH in resolve-shell.ts.";
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
readonly required: false;
|
|
87
|
+
readonly category: "process";
|
|
76
88
|
}];
|