agent-afk 5.242.1 → 5.244.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/tools/handlers/image-generate.chatgpt.d.ts +17 -0
- package/dist/agent/tools/handlers/image-generate.d.ts +3 -0
- package/dist/agent/tools/handlers/index.d.ts +2 -1
- package/dist/agent/tools/schemas.d.ts +1 -0
- package/dist/cli.mjs +355 -342
- package/dist/config/env.d.ts +20 -1
- package/dist/index.mjs +150 -139
- package/dist/telegram.mjs +193 -180
- package/package.json +1 -1
package/dist/config/env.d.ts
CHANGED
|
@@ -560,6 +560,25 @@ export declare const ENV_REGISTRY: readonly [{
|
|
|
560
560
|
readonly required: false;
|
|
561
561
|
readonly category: "auth";
|
|
562
562
|
readonly secret: true;
|
|
563
|
+
}, {
|
|
564
|
+
readonly name: "AFK_IMAGE_API_KEY";
|
|
565
|
+
readonly description: "Dedicated OpenAI API key for the image_generate tool. Checked before OPENAI_API_KEY to keep image billing separate from chat completions. When unset, OPENAI_API_KEY is used as a fallback. Get a key from https://platform.openai.com/api-keys.";
|
|
566
|
+
readonly type: "string";
|
|
567
|
+
readonly required: false;
|
|
568
|
+
readonly category: "auth";
|
|
569
|
+
readonly secret: true;
|
|
570
|
+
}, {
|
|
571
|
+
readonly name: "AFK_IMAGE_SESSION_LIMIT";
|
|
572
|
+
readonly description: "Maximum number of images the image_generate tool may produce per session. Prevents runaway spend in autonomous loops. Default: 10.";
|
|
573
|
+
readonly type: "string";
|
|
574
|
+
readonly required: false;
|
|
575
|
+
readonly category: "misc";
|
|
576
|
+
}, {
|
|
577
|
+
readonly name: "AFK_IMAGE_ALLOW_DAEMON";
|
|
578
|
+
readonly description: "Set to \"1\" to allow image_generate in daemon/cron sessions. Blocked by default to prevent unattended API spend.";
|
|
579
|
+
readonly type: "string";
|
|
580
|
+
readonly required: false;
|
|
581
|
+
readonly category: "misc";
|
|
563
582
|
}, {
|
|
564
583
|
readonly name: "TELEGRAM_BOT_TOKEN";
|
|
565
584
|
readonly description: "Telegram bot token from @BotFather. Required to run the Telegram bot surface.";
|
|
@@ -732,7 +751,7 @@ export declare const ENV_REGISTRY: readonly [{
|
|
|
732
751
|
readonly category: "daemon";
|
|
733
752
|
}, {
|
|
734
753
|
readonly name: "AFK_DAEMON_SHELL_TIMEOUT_MS";
|
|
735
|
-
readonly description: "Wall-clock timeout in milliseconds for executor:shell scheduled tasks. Defaults to
|
|
754
|
+
readonly description: "Wall-clock timeout in milliseconds for executor:shell scheduled tasks. Defaults to 2700000 (45 minutes), matching the agent executor budget (AFK_SUBAGENT_TIMEOUT_MS). The child process is killed on timeout; the telemetry errorMessage will read \"daemon shell timeout after NNNs\" to distinguish a daemon-imposed kill from a process or network failure.";
|
|
736
755
|
readonly type: "number";
|
|
737
756
|
readonly required: false;
|
|
738
757
|
readonly category: "daemon";
|