agent-afk 5.50.0 → 5.51.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/default-hook-registry.d.ts +1 -0
- package/dist/agent/hooks/command-executor.d.ts +1 -0
- package/dist/agent/hooks/config-loader.d.ts +10 -2
- package/dist/agent/subagent.d.ts +2 -0
- package/dist/agent/trace/events.d.ts +51 -0
- package/dist/agent/trace/types.d.ts +5 -1
- package/dist/cli/config/types.d.ts +2 -0
- package/dist/cli.mjs +464 -464
- package/dist/config/env.d.ts +1 -0
- package/dist/index.mjs +148 -148
- package/dist/telegram/afk-hook-bundle.d.ts +11 -0
- package/dist/telegram/handlers/afk.d.ts +5 -0
- package/dist/telegram/watch.d.ts +2 -1
- package/dist/telegram.mjs +224 -224
- package/package.json +2 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type DefaultHookRegistryResult } from '../agent/default-hook-registry.js';
|
|
2
|
+
import type { MemoryStore } from '../agent/memory/index.js';
|
|
3
|
+
import type { AgentSession } from '../agent/session.js';
|
|
4
|
+
import type { TraceWriter } from '../agent/trace/index.js';
|
|
5
|
+
export interface TelegramAfkHookBundleParams {
|
|
6
|
+
memoryStore: MemoryStore | undefined;
|
|
7
|
+
getSession: () => AgentSession | undefined;
|
|
8
|
+
cwd: string | undefined;
|
|
9
|
+
traceWriter: TraceWriter | null;
|
|
10
|
+
}
|
|
11
|
+
export declare function createTelegramAfkHookBundle(params: TelegramAfkHookBundleParams): DefaultHookRegistryResult;
|
package/dist/telegram/watch.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ export declare class SessionWatchManager {
|
|
|
11
11
|
private readonly log;
|
|
12
12
|
private readonly bot;
|
|
13
13
|
private readonly messageHandler;
|
|
14
|
-
|
|
14
|
+
private readonly elicitHeartbeatMs;
|
|
15
|
+
constructor(log?: LogFn, bot?: Telegraf, messageHandler?: MessageHandler, elicitHeartbeatMs?: number);
|
|
15
16
|
watching(chatId: number): string | undefined;
|
|
16
17
|
getWatched(chatId: number): string | undefined;
|
|
17
18
|
start(chatId: number, sessionId: string, send: SendFn): void;
|