agent-afk 5.145.4 → 5.146.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/xai/headers.d.ts +10 -1
- package/dist/cli.mjs +554 -554
- package/dist/config/env.d.ts +4 -0
- package/dist/index.mjs +214 -214
- package/dist/telegram.mjs +293 -293
- package/dist/utils/kill-process-group.d.ts +1 -0
- package/dist/web-ui-assets/app.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
export declare const CLI_CHAT_PROXY_HOST = "cli-chat-proxy.grok.com";
|
|
2
|
+
export declare const DEFAULT_GROK_CLI_COMPAT_VERSION = "1.0.5";
|
|
3
|
+
declare const GROK_CLI_VERSION_ENV = "AFK_XAI_GROK_CLIENT_VERSION";
|
|
2
4
|
export interface GrokCliHeaderOptions {
|
|
3
5
|
clientVersion?: string;
|
|
4
6
|
clientIdentifier?: string;
|
|
5
7
|
}
|
|
8
|
+
export interface GrokCliHeaderDeps {
|
|
9
|
+
readEnv?: (key: typeof GROK_CLI_VERSION_ENV) => string | undefined;
|
|
10
|
+
readFile?: (filePath: string) => string;
|
|
11
|
+
homeDir?: () => string;
|
|
12
|
+
}
|
|
13
|
+
export declare function readOfficialGrokCliVersion(deps?: GrokCliHeaderDeps): string | undefined;
|
|
6
14
|
export declare function isCliChatProxyBaseUrl(baseURL: string): boolean;
|
|
7
|
-
export declare function resolveGrokCliIdentityHeaders(opts?: GrokCliHeaderOptions): Record<string, string>;
|
|
15
|
+
export declare function resolveGrokCliIdentityHeaders(opts?: GrokCliHeaderOptions, deps?: GrokCliHeaderDeps): Record<string, string>;
|
|
16
|
+
export {};
|