agent-afk 5.128.0 → 5.128.2
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/cli.mjs +2 -2
- package/dist/index.mjs +145 -145
- package/dist/telegram/streaming.watchdog.d.ts +3 -0
- package/dist/telegram.mjs +202 -202
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export declare const FIRST_EVENT_TIMEOUT_MS = 90000;
|
|
|
3
3
|
export declare const NEXT_EVENT_TIMEOUT_MS = 180000;
|
|
4
4
|
export declare const MAX_TOOL_INFLIGHT_MS = 660000;
|
|
5
5
|
export declare const TOOL_INFLIGHT_RECHECK_MS = 15000;
|
|
6
|
+
export declare const MAX_API_ROUND_INFLIGHT_MS = 420000;
|
|
6
7
|
export declare const PROGRESS_START_DELAY_MS = 5000;
|
|
7
8
|
export interface WatchdogState {
|
|
8
9
|
receivedAny: boolean;
|
|
@@ -11,6 +12,8 @@ export interface WatchdogState {
|
|
|
11
12
|
inFlightTools: Set<string>;
|
|
12
13
|
toolInFlightSince: number | null;
|
|
13
14
|
pausedUntil: Date | null;
|
|
15
|
+
apiRoundInFlight: boolean;
|
|
16
|
+
apiRoundSince: number | null;
|
|
14
17
|
}
|
|
15
18
|
export declare const PAUSE_SLACK_MS = 90000;
|
|
16
19
|
export declare function makeNextWithTimeout(iter: AsyncIterator<OutputEvent>, state: WatchdogState): () => Promise<IteratorResult<OutputEvent>>;
|