agent-afk 5.307.11 → 5.307.12
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/scheduler.d.ts +2 -1
- package/dist/cli/commands/daemon.d.ts +1 -0
- package/dist/cli/input/emit-keypress.d.ts +2 -2
- package/dist/cli/terminal-compositor.lifecycle.cpr.d.ts +2 -3
- package/dist/cli.mjs +356 -356
- package/dist/index.mjs +151 -151
- package/dist/telegram.mjs +175 -175
- package/package.json +1 -1
|
@@ -3,11 +3,11 @@ import type { AgentSession } from '../session/agent-session.js';
|
|
|
3
3
|
import type { AgentConfig } from '../types.js';
|
|
4
4
|
import type { Telegraf } from 'telegraf';
|
|
5
5
|
import { ScheduledTask } from './triggers.js';
|
|
6
|
-
export declare const COMMAND_HEAD_MAX_LEN = 60;
|
|
7
6
|
export { resolveWorktreePruneRoot } from './worktree-prune-task.js';
|
|
8
7
|
export { daemonTraceLabel } from './session-spawn.js';
|
|
9
8
|
import { type TaskTurnCompleteArgs } from './scheduler.execute-agent-task.js';
|
|
10
9
|
import { type SessionStartSkipReason } from './gates.js';
|
|
10
|
+
export declare const COMMAND_HEAD_MAX_LEN = 60;
|
|
11
11
|
export interface SchedulerOptions {
|
|
12
12
|
sessionConfig?: Partial<AgentConfig>;
|
|
13
13
|
telemetryPath?: string;
|
|
@@ -67,6 +67,7 @@ export declare class CronScheduler {
|
|
|
67
67
|
list(): ScheduledTask[];
|
|
68
68
|
getInFlightTasks(): Array<{
|
|
69
69
|
taskId: string;
|
|
70
|
+
displayId: string;
|
|
70
71
|
commandHead: string;
|
|
71
72
|
elapsedMs: number;
|
|
72
73
|
}>;
|
|
@@ -7,6 +7,7 @@ export declare function formatTaskCompletion(record: TelemetryRecord, details?:
|
|
|
7
7
|
export declare function _resetDaemonCrashHandlersForTest(): void;
|
|
8
8
|
export interface InFlightTaskSnapshot {
|
|
9
9
|
taskId: string;
|
|
10
|
+
displayId: string;
|
|
10
11
|
commandHead: string;
|
|
11
12
|
elapsedMs: number;
|
|
12
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function emitKeypressEventsImmediateEscape(stream: NodeJS.ReadableStream): void;
|
|
2
2
|
export declare const CPR_KEYPRESS_GRACE_MS = 500;
|
|
3
|
-
export declare function armCprKeypressGuard(stdin: NodeJS.ReadableStream, durationMs: number):
|
|
4
|
-
export declare function disarmCprKeypressGuard(): void;
|
|
3
|
+
export declare function armCprKeypressGuard(stdin: NodeJS.ReadableStream, durationMs: number): number;
|
|
4
|
+
export declare function disarmCprKeypressGuard(guardGen?: number): void;
|
|
5
5
|
export declare function isCprKeypressGuardActive(stdin: NodeJS.ReadableStream): boolean;
|
|
6
6
|
export declare function isCprSequence(stdin: NodeJS.ReadableStream, sequence: string): boolean;
|
|
7
7
|
export declare function __resetCprKeypressGuardForTests(): void;
|
|
@@ -9,7 +9,6 @@ export declare const CPR_RTT_SCALE = 4;
|
|
|
9
9
|
export declare const CPR_TIMEOUT_CEILING_MS = 1500;
|
|
10
10
|
export declare const CPR_MAX_REQUERY = 8;
|
|
11
11
|
export declare function __resetCprRttForTests(): void;
|
|
12
|
-
export declare function __getCprRttForTests(): number | null;
|
|
13
12
|
export interface CprHost {
|
|
14
13
|
readonly stdout: NodeJS.WriteStream;
|
|
15
14
|
readonly stdin: NodeJS.ReadStream;
|
|
@@ -38,5 +37,5 @@ export interface CprHost {
|
|
|
38
37
|
anchorRow: number | undefined;
|
|
39
38
|
repaint(): void;
|
|
40
39
|
}
|
|
41
|
-
export declare function requestCprOrMarkDirty(self: CprHost, expectedRow: number, newRows: number, rowDelta: number): void;
|
|
42
|
-
export declare function requestCprAndApplyDelta(self: CprHost, expectedRow: number, newRows: number, rowDelta: number): void;
|
|
40
|
+
export declare function requestCprOrMarkDirty(self: CprHost, expectedRow: number, newRows: number, rowDelta: number, rttObserver?: (rttMs: number) => void): void;
|
|
41
|
+
export declare function requestCprAndApplyDelta(self: CprHost, expectedRow: number, newRows: number, rowDelta: number, rttObserver?: (rttMs: number) => void): void;
|