agent-afk 5.309.4 → 5.310.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/providers/openai-compatible/query/client-rebuild.d.ts +3 -0
- package/dist/agent/providers/openai-compatible/query.chatgpt-notice.d.ts +2 -0
- package/dist/agent/providers/openai-compatible/query.d.ts +2 -2
- package/dist/agent/providers/openai-compatible/responses-config.d.ts +1 -1
- package/dist/cli.mjs +358 -357
- package/dist/config/env.auth.d.ts +0 -7
- package/dist/config/env.d.ts +1 -8
- package/dist/config/env.model.d.ts +1 -1
- package/dist/index.mjs +171 -170
- package/dist/telegram.mjs +181 -180
- package/package.json +1 -1
|
@@ -105,13 +105,6 @@ export declare const AUTH_ENV_REGISTRY: readonly [{
|
|
|
105
105
|
readonly required: false;
|
|
106
106
|
readonly example: "1";
|
|
107
107
|
readonly category: "model";
|
|
108
|
-
}, {
|
|
109
|
-
readonly name: "AFK_OPENAI_CHATGPT_OAUTH";
|
|
110
|
-
readonly description: "Use ChatGPT-subscription OAuth credentials from ~/.codex/auth.json (auth_mode: chatgpt) as OpenAI provider auth. Off by default. Set to 1/true/yes/on to enable. READ-ONLY: AFK never refreshes these tokens — re-run codex when the access token expires. Routes requests over the Responses API to the private ChatGPT backend (chatgpt.com/backend-api).";
|
|
111
|
-
readonly type: "boolean";
|
|
112
|
-
readonly required: false;
|
|
113
|
-
readonly example: "1";
|
|
114
|
-
readonly category: "model";
|
|
115
108
|
}, {
|
|
116
109
|
readonly name: "AFK_PROVIDER";
|
|
117
110
|
readonly description: "Force provider selection (anthropic | anthropic-direct | openai | openai-compatible | openai-codex | xai | xai-oauth). Overrides the model-name heuristic. Same surface as the --provider CLI flag; CLI flag wins when both are set.";
|
package/dist/config/env.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare const ENV_REGISTRY: readonly [{
|
|
|
43
43
|
readonly category: "model";
|
|
44
44
|
}, {
|
|
45
45
|
readonly name: "AFK_COMPACT_MODEL";
|
|
46
|
-
readonly description: "Model id or slot alias used by the /compact summarizer and auto-compaction. Accepts any model on any supported provider (anthropic, openai, xai). Cross-provider compaction is supported: set to a gpt-* id on a Claude session (or a claude-* id on an OpenAI session) and AFK will route the summarize call to that provider using its own credentials. The transcript is sent to the target provider — a one-time privacy warning is emitted on first cross-provider use. Requires that provider's credentials to be available (ANTHROPIC_API_KEY / OPENAI_API_KEY / XAI_API_KEY, or ChatGPT-subscription OAuth
|
|
46
|
+
readonly description: "Model id or slot alias used by the /compact summarizer and auto-compaction. Accepts any model on any supported provider (anthropic, openai, xai). Cross-provider compaction is supported: set to a gpt-* id on a Claude session (or a claude-* id on an OpenAI session) and AFK will route the summarize call to that provider using its own credentials. The transcript is sent to the target provider — a one-time privacy warning is emitted on first cross-provider use. Requires that provider's credentials to be available (ANTHROPIC_API_KEY / OPENAI_API_KEY / XAI_API_KEY, or ChatGPT-subscription OAuth from `codex login`). When unset: Anthropic sessions fall back to claude-haiku-class; OpenAI API-key sessions (api.openai.com) fall back to gpt-6-luna; ChatGPT-subscription (chatgpt-oauth) and custom-baseURL sessions (local runners, proxies) fall back to the session model. Also drives ghost-text suggestions on Claude sessions (see AFK_SUGGEST_MODEL to override that independently).";
|
|
47
47
|
readonly type: "string";
|
|
48
48
|
readonly required: false;
|
|
49
49
|
readonly example: "gpt-6-luna";
|
|
@@ -592,13 +592,6 @@ export declare const ENV_REGISTRY: readonly [{
|
|
|
592
592
|
readonly required: false;
|
|
593
593
|
readonly example: "1";
|
|
594
594
|
readonly category: "model";
|
|
595
|
-
}, {
|
|
596
|
-
readonly name: "AFK_OPENAI_CHATGPT_OAUTH";
|
|
597
|
-
readonly description: "Use ChatGPT-subscription OAuth credentials from ~/.codex/auth.json (auth_mode: chatgpt) as OpenAI provider auth. Off by default. Set to 1/true/yes/on to enable. READ-ONLY: AFK never refreshes these tokens — re-run codex when the access token expires. Routes requests over the Responses API to the private ChatGPT backend (chatgpt.com/backend-api).";
|
|
598
|
-
readonly type: "boolean";
|
|
599
|
-
readonly required: false;
|
|
600
|
-
readonly example: "1";
|
|
601
|
-
readonly category: "model";
|
|
602
595
|
}, {
|
|
603
596
|
readonly name: "AFK_PROVIDER";
|
|
604
597
|
readonly description: "Force provider selection (anthropic | anthropic-direct | openai | openai-compatible | openai-codex | xai | xai-oauth). Overrides the model-name heuristic. Same surface as the --provider CLI flag; CLI flag wins when both are set.";
|
|
@@ -30,7 +30,7 @@ export declare const MODEL_ENV_REGISTRY: readonly [{
|
|
|
30
30
|
readonly category: "model";
|
|
31
31
|
}, {
|
|
32
32
|
readonly name: "AFK_COMPACT_MODEL";
|
|
33
|
-
readonly description: "Model id or slot alias used by the /compact summarizer and auto-compaction. Accepts any model on any supported provider (anthropic, openai, xai). Cross-provider compaction is supported: set to a gpt-* id on a Claude session (or a claude-* id on an OpenAI session) and AFK will route the summarize call to that provider using its own credentials. The transcript is sent to the target provider — a one-time privacy warning is emitted on first cross-provider use. Requires that provider's credentials to be available (ANTHROPIC_API_KEY / OPENAI_API_KEY / XAI_API_KEY, or ChatGPT-subscription OAuth
|
|
33
|
+
readonly description: "Model id or slot alias used by the /compact summarizer and auto-compaction. Accepts any model on any supported provider (anthropic, openai, xai). Cross-provider compaction is supported: set to a gpt-* id on a Claude session (or a claude-* id on an OpenAI session) and AFK will route the summarize call to that provider using its own credentials. The transcript is sent to the target provider — a one-time privacy warning is emitted on first cross-provider use. Requires that provider's credentials to be available (ANTHROPIC_API_KEY / OPENAI_API_KEY / XAI_API_KEY, or ChatGPT-subscription OAuth from `codex login`). When unset: Anthropic sessions fall back to claude-haiku-class; OpenAI API-key sessions (api.openai.com) fall back to gpt-6-luna; ChatGPT-subscription (chatgpt-oauth) and custom-baseURL sessions (local runners, proxies) fall back to the session model. Also drives ghost-text suggestions on Claude sessions (see AFK_SUGGEST_MODEL to override that independently).";
|
|
34
34
|
readonly type: "string";
|
|
35
35
|
readonly required: false;
|
|
36
36
|
readonly example: "gpt-6-luna";
|