agent-afk 5.193.0 → 5.195.0
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/daemon/handoff-store.d.ts +1 -0
- package/dist/agent/daemon/handoff-wiring.d.ts +5 -1
- package/dist/agent/worktree-sweep.reconsider.d.ts +18 -0
- package/dist/cli.mjs +659 -645
- package/dist/index.mjs +278 -264
- package/dist/telegram/handlers/message.media-helpers.d.ts +11 -0
- package/dist/telegram/handoff-answer.d.ts +17 -0
- package/dist/telegram/handoff-callback-data.d.ts +7 -0
- package/dist/telegram.mjs +324 -310
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ export interface HandoffRecord {
|
|
|
19
19
|
answeredAt?: string;
|
|
20
20
|
answerSource?: string;
|
|
21
21
|
originalCommand: string;
|
|
22
|
+
telegramMessageId?: number;
|
|
22
23
|
}
|
|
23
24
|
export declare function writeHandoff(record: HandoffRecord, handoffsDir?: string): Promise<void>;
|
|
24
25
|
export declare function readHandoff(taskId: string, handoffsDir?: string): Promise<HandoffRecord | null>;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import type { ElicitationHandler } from '../elicitation-router.js';
|
|
2
|
+
import type { Telegraf } from 'telegraf';
|
|
2
3
|
export interface DaemonElicitationOpts {
|
|
3
4
|
taskId: string;
|
|
4
5
|
originalCommand: string;
|
|
5
6
|
queueDir?: string;
|
|
6
7
|
handoffsDir?: string;
|
|
8
|
+
bot?: Telegraf;
|
|
9
|
+
chatId?: number;
|
|
10
|
+
threadId?: number;
|
|
7
11
|
}
|
|
8
12
|
export declare function makeDaemonElicitationHandler(opts: DaemonElicitationOpts): ElicitationHandler;
|
|
9
13
|
export interface RecoveryResult {
|
|
10
14
|
renotified: number;
|
|
11
15
|
expired: number;
|
|
12
16
|
}
|
|
13
|
-
export declare function recoverPendingHandoffs(handoffsDir?: string, queueDir?: string): Promise<RecoveryResult>;
|
|
17
|
+
export declare function recoverPendingHandoffs(handoffsDir?: string, queueDir?: string, bot?: Telegraf): Promise<RecoveryResult>;
|
|
14
18
|
export declare function answerHandoff(taskId: string, answer: unknown, source: string, handoffsDir?: string): Promise<boolean>;
|
|
15
19
|
export declare function cleanupHandoff(taskId: string, handoffsDir?: string): Promise<void>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ExecFileFn } from './worktree-sweep.js';
|
|
2
|
+
export interface ReconsiderMeta {
|
|
3
|
+
preservedReason?: string;
|
|
4
|
+
preservedAt?: string;
|
|
5
|
+
commitsAheadAtPreserve?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ReconsiderArgs {
|
|
8
|
+
execFile: ExecFileFn;
|
|
9
|
+
repoRoot: string;
|
|
10
|
+
worktreePath: string;
|
|
11
|
+
meta?: ReconsiderMeta;
|
|
12
|
+
lockReason?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ReconsiderResult {
|
|
15
|
+
unlocked: boolean;
|
|
16
|
+
reason: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function reconsiderLockedWorktree(args: ReconsiderArgs): Promise<ReconsiderResult>;
|