agent-afk 5.307.0 → 5.307.1
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/anthropic-direct/auth.d.ts +1 -1
- package/dist/agent/providers/openai-compatible/complete-wire.d.ts +1 -0
- package/dist/agent/providers/openai-compatible/oneshot.d.ts +1 -0
- package/dist/agent/providers/shared/h1-fetch.d.ts +1 -0
- package/dist/cli.mjs +349 -349
- package/dist/index.mjs +149 -149
- package/dist/telegram.mjs +172 -172
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export declare function buildClientOptions(token: string, mode: AuthMode, baseUr
|
|
|
13
13
|
apiKey: string;
|
|
14
14
|
}) & {
|
|
15
15
|
baseURL?: string;
|
|
16
|
-
fetch
|
|
16
|
+
fetch: typeof fetch;
|
|
17
17
|
maxRetries: 0;
|
|
18
18
|
};
|
|
19
19
|
export declare function buildRequestHeaders(mode: AuthMode, sessionId: string, requestId: string, withEffort?: boolean, extendedCacheTtl?: boolean, withFast?: boolean, withThinkingBindingControls?: boolean): Record<string, string>;
|
|
@@ -6,6 +6,7 @@ export interface CompleteWireClientOptions {
|
|
|
6
6
|
baseURL?: string;
|
|
7
7
|
defaultHeaders?: Record<string, string>;
|
|
8
8
|
maxRetries: number;
|
|
9
|
+
fetch: typeof globalThis.fetch;
|
|
9
10
|
}
|
|
10
11
|
export type CompleteWireClientFactory = (opts: CompleteWireClientOptions) => OpenAI;
|
|
11
12
|
export declare function completeWithWire(input: OpenAIOneShotInput, clientFactory?: CompleteWireClientFactory): Promise<string>;
|
|
@@ -9,6 +9,7 @@ export type OneShotOpenAIClientFactory = (opts: {
|
|
|
9
9
|
baseURL?: string;
|
|
10
10
|
defaultHeaders?: Record<string, string>;
|
|
11
11
|
maxRetries: number;
|
|
12
|
+
fetch: typeof globalThis.fetch;
|
|
12
13
|
}) => OpenAI;
|
|
13
14
|
export declare function __setOpenAIOneShotClientFactory(factory: OneShotOpenAIClientFactory | null): void;
|
|
14
15
|
export interface OpenAIOneShotInput {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const h1ModelFetch: typeof fetch;
|