agent-afk 5.307.10 → 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 -0
- package/dist/agent/manifest/startup-reconcile.d.ts +4 -4
- package/dist/agent/providers/openai-compatible/complete-wire.d.ts +2 -1
- package/dist/cli/commands/daemon.d.ts +1 -0
- package/dist/cli/commands/interactive/loop-iteration.boundary.d.ts +2 -1
- 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 +411 -409
- package/dist/index.mjs +156 -156
- package/dist/insights/aggregators/subagent-outcomes.d.ts +2 -0
- package/dist/telegram.mjs +190 -190
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export { resolveWorktreePruneRoot } from './worktree-prune-task.js';
|
|
|
7
7
|
export { daemonTraceLabel } from './session-spawn.js';
|
|
8
8
|
import { type TaskTurnCompleteArgs } from './scheduler.execute-agent-task.js';
|
|
9
9
|
import { type SessionStartSkipReason } from './gates.js';
|
|
10
|
+
export declare const COMMAND_HEAD_MAX_LEN = 60;
|
|
10
11
|
export interface SchedulerOptions {
|
|
11
12
|
sessionConfig?: Partial<AgentConfig>;
|
|
12
13
|
telemetryPath?: string;
|
|
@@ -66,6 +67,7 @@ export declare class CronScheduler {
|
|
|
66
67
|
list(): ScheduledTask[];
|
|
67
68
|
getInFlightTasks(): Array<{
|
|
68
69
|
taskId: string;
|
|
70
|
+
displayId: string;
|
|
69
71
|
commandHead: string;
|
|
70
72
|
elapsedMs: number;
|
|
71
73
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function runReplReconcile(sessionId: string): void
|
|
2
|
-
export declare function runTelegramReconcile<Route>(sessionId: string, route: Route, sendText: (route: Route, text: string) => void | Promise<boolean>): void
|
|
3
|
-
export declare function runNonInteractiveReconcile(sessionId: string): void
|
|
4
|
-
export declare function runDaemonReconcile(sessionId: string): void
|
|
1
|
+
export declare function runReplReconcile(sessionId: string): Promise<void>;
|
|
2
|
+
export declare function runTelegramReconcile<Route>(sessionId: string, route: Route, sendText: (route: Route, text: string) => void | Promise<boolean>): Promise<void>;
|
|
3
|
+
export declare function runNonInteractiveReconcile(sessionId: string): Promise<void>;
|
|
4
|
+
export declare function runDaemonReconcile(sessionId: string): Promise<void>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import OpenAI from 'openai';
|
|
2
|
+
import { type AuthResolverDeps } from './auth.js';
|
|
2
3
|
import { type OpenAIOneShotInput } from './oneshot.js';
|
|
3
4
|
export type { OpenAIOneShotInput } from './oneshot.js';
|
|
4
5
|
export interface CompleteWireClientOptions {
|
|
@@ -9,4 +10,4 @@ export interface CompleteWireClientOptions {
|
|
|
9
10
|
fetch: typeof globalThis.fetch;
|
|
10
11
|
}
|
|
11
12
|
export type CompleteWireClientFactory = (opts: CompleteWireClientOptions) => OpenAI;
|
|
12
|
-
export declare function completeWithWire(input: OpenAIOneShotInput, clientFactory?: CompleteWireClientFactory): Promise<string>;
|
|
13
|
+
export declare function completeWithWire(input: OpenAIOneShotInput, clientFactory?: CompleteWireClientFactory, authDeps?: AuthResolverDeps): Promise<string>;
|
|
@@ -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
|
}
|
|
@@ -15,12 +15,13 @@ export interface PeerBoundaryOpts {
|
|
|
15
15
|
peerNotifier: PeerInboxNotifier;
|
|
16
16
|
admissionQueue: AdmissionQueue;
|
|
17
17
|
isQueuedHumanTurn?: () => boolean;
|
|
18
|
+
processJobNotifier?: InjectionSource;
|
|
18
19
|
}
|
|
19
20
|
export declare function installPeerBoundary(opts: PeerBoundaryOpts): () => void;
|
|
20
21
|
export declare function reinstallPeerBoundary(opts: PeerBoundaryOpts, prevDispose: (() => void) | undefined): () => void;
|
|
21
22
|
export declare function drainAdmissionQueueFallback(text: string, q: AdmissionQueue): string;
|
|
22
23
|
export declare function applyDeferPeers(runText: string, queuedHumanTurn: boolean, surface: Pick<InputSurface, 'getCompositor'>, shellPassthrough: InjectionSource, bgResultNotifier: InjectionSource, peerNotifier: InjectionSource, admissionQueue: AdmissionQueue, processJobNotifier?: InjectionSource): string;
|
|
23
|
-
export declare function setupPeerBoundary(ctx: InteractiveCtx, surface: InputSurface, peerNotifier: PeerInboxNotifier, isQueuedHumanTurn: () => boolean): {
|
|
24
|
+
export declare function setupPeerBoundary(ctx: InteractiveCtx, surface: InputSurface, peerNotifier: PeerInboxNotifier, isQueuedHumanTurn: () => boolean, processJobNotifier?: InjectionSource): {
|
|
24
25
|
admissionQueue: AdmissionQueue;
|
|
25
26
|
reinstall: () => void;
|
|
26
27
|
};
|
|
@@ -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;
|