agent-afk 5.145.1 → 5.145.3
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/tools/dispatcher.batch-process.d.ts +5 -0
- package/dist/agent/tools/handlers/read-denylist.d.ts +2 -0
- package/dist/agent/types/config-types.d.ts +1 -0
- package/dist/cli.mjs +555 -555
- package/dist/index.mjs +195 -195
- package/dist/telegram/bg-result-notifier.d.ts +2 -1
- package/dist/telegram/notify-routing.d.ts +2 -0
- package/dist/telegram/push.d.ts +1 -0
- package/dist/telegram/session-context.d.ts +1 -0
- package/dist/telegram/streaming.watchdog.d.ts +2 -2
- package/dist/telegram.mjs +277 -277
- package/package.json +1 -1
|
@@ -2,7 +2,8 @@ import type { BackgroundAgentRegistry } from '../agent/background-registry.js';
|
|
|
2
2
|
export declare class TelegramBgResultNotifier {
|
|
3
3
|
private readonly registry;
|
|
4
4
|
private readonly chatId?;
|
|
5
|
+
private readonly threadId?;
|
|
5
6
|
private readonly onSettled;
|
|
6
|
-
constructor(registry: BackgroundAgentRegistry, chatId?: number | undefined);
|
|
7
|
+
constructor(registry: BackgroundAgentRegistry, chatId?: number | undefined, threadId?: number | undefined);
|
|
7
8
|
dispose(): void;
|
|
8
9
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function _resetMixedAllowlistHintForTest(): void;
|
|
1
2
|
export type NotifyMode = 'primary' | 'broadcast' | 'custom';
|
|
2
3
|
export interface TelegramNotifyConfig {
|
|
3
4
|
mode?: NotifyMode;
|
|
@@ -5,6 +6,7 @@ export interface TelegramNotifyConfig {
|
|
|
5
6
|
targets?: number[];
|
|
6
7
|
}
|
|
7
8
|
export declare function resolvePrimaryChatId(allowed: readonly number[], explicit?: number): number | undefined;
|
|
9
|
+
export declare function emitMixedAllowlistHintIfNeeded(allowed: readonly number[], explicitPrimary: number | undefined): void;
|
|
8
10
|
export declare function resolveNotifyTargets(allowlist: Set<number>, config?: TelegramNotifyConfig): number[];
|
|
9
11
|
export type ChatTargetResolution = {
|
|
10
12
|
ok: true;
|
package/dist/telegram/push.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ 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
|
|
7
|
-
export declare function
|
|
6
|
+
export declare const MAX_API_ROUND_HEADROOM_MS = 60000;
|
|
7
|
+
export declare function resolveMaxApiRoundInflightMs(): number;
|
|
8
8
|
export declare const PROGRESS_START_DELAY_MS = 5000;
|
|
9
9
|
export interface WatchdogState {
|
|
10
10
|
receivedAny: boolean;
|