agent-afk 5.84.13 → 5.84.14
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/loop/throttle-signals.d.ts +1 -1
- package/dist/agent/providers/anthropic-direct/stream-completeness.d.ts +3 -0
- package/dist/agent/providers/shared/first-byte-timeout.d.ts +5 -0
- package/dist/cli.mjs +420 -420
- package/dist/index.mjs +153 -153
- package/dist/telegram.mjs +204 -204
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ProviderEvent } from '../../../provider.js';
|
|
2
2
|
import type { RunTurnInput } from '../types.js';
|
|
3
|
-
export declare function awaitCreateWithThrottleSignals(createPromise: Promise<AsyncIterable<unknown>>, input: RunTurnInput): AsyncGenerator<ProviderEvent, AsyncIterable<unknown>, void>;
|
|
3
|
+
export declare function awaitCreateWithThrottleSignals(createPromise: Promise<AsyncIterable<unknown>>, input: RunTurnInput, onThrottle?: (retryAfterMs: number | undefined) => void): AsyncGenerator<ProviderEvent, AsyncIterable<unknown>, void>;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
export declare const DEFAULT_MODEL_TTFB_TIMEOUT_MS = 180000;
|
|
2
2
|
export declare function resolveTtfbTimeoutMs(): number;
|
|
3
3
|
export declare const TTFB_TIMEOUT_MESSAGE = "model_ttfb_timeout";
|
|
4
|
+
export declare const TTFB_THROTTLE_SLACK_MS = 30000;
|
|
5
|
+
export declare const SDK_HONORED_RETRY_AFTER_CEILING_MS = 60000;
|
|
6
|
+
export declare const SDK_MAX_DEFAULT_BACKOFF_MS = 8000;
|
|
7
|
+
export declare function throttleExtensionMs(retryAfterMs: number | undefined): number | undefined;
|
|
4
8
|
export declare function isTtfbTimeoutError(err: unknown): boolean;
|
|
5
9
|
export interface FirstByteTimeoutHandle {
|
|
6
10
|
readonly signal: AbortSignal;
|
|
7
11
|
timedOut(): boolean;
|
|
8
12
|
firstByteSeen(): void;
|
|
13
|
+
extend(ms: number): void;
|
|
9
14
|
dispose(): void;
|
|
10
15
|
}
|
|
11
16
|
export declare function armFirstByteTimeout(baseSignal: AbortSignal, timeoutMs: number): FirstByteTimeoutHandle;
|