agent-afk 5.186.1 → 5.187.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-consume.d.ts +7 -0
- package/dist/agent/daemon/scheduler.d.ts +1 -3
- package/dist/agent/daemon/scheduler.helpers.d.ts +4 -0
- package/dist/cli/_lib/capture-mode.d.ts +1 -0
- package/dist/cli/commands/interactive/turn-handler.d.ts +1 -1
- package/dist/cli/commands/interactive/turn-handler.footer.d.ts +3 -0
- package/dist/cli.mjs +642 -639
- package/dist/config/env.d.ts +7 -0
- package/dist/index.mjs +2 -2
- package/dist/telegram.mjs +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HandoffRecord } from './handoff-store.js';
|
|
2
|
+
export declare function buildHandoffResumeCommand(record: HandoffRecord): string;
|
|
3
|
+
export interface ProcessHandoffsResult {
|
|
4
|
+
requeued: number;
|
|
5
|
+
cleaned: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function processAnsweredHandoffs(queueDir?: string, handoffsDir?: string): Promise<ProcessHandoffsResult>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type { ExecFileFn } from '../worktree-sweep.js';
|
|
2
1
|
import { AgentSession } from '../session/agent-session.js';
|
|
3
2
|
import type { TraceWriter } from '../trace/index.js';
|
|
4
3
|
import type { AgentConfig } from '../types.js';
|
|
5
4
|
import { ScheduledTask } from './triggers.js';
|
|
6
5
|
import { type SessionStartSkipReason } from './gates.js';
|
|
7
|
-
export
|
|
8
|
-
export declare function daemonTraceLabel(taskId: string): string;
|
|
6
|
+
export { resolveWorktreePruneRoot, daemonTraceLabel } from './scheduler.helpers.js';
|
|
9
7
|
export interface SchedulerOptions {
|
|
10
8
|
sessionConfig?: Partial<AgentConfig>;
|
|
11
9
|
telemetryPath?: string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ExecFileFn } from '../worktree-sweep.js';
|
|
2
|
+
export declare const builtinPruneExecFile: ExecFileFn;
|
|
3
|
+
export declare function resolveWorktreePruneRoot(execFile: ExecFileFn, cwd: string, override: string | undefined): Promise<string | null>;
|
|
4
|
+
export declare function daemonTraceLabel(taskId: string): string;
|
|
@@ -10,6 +10,7 @@ export declare function ringBellIfEnabled(stream: {
|
|
|
10
10
|
}, env?: NodeJS.ProcessEnv): void;
|
|
11
11
|
export declare function detectTermTitle(env?: NodeJS.ProcessEnv): boolean;
|
|
12
12
|
export declare function detectNotify(env?: NodeJS.ProcessEnv): boolean;
|
|
13
|
+
export declare function detectTurnSeparator(env?: NodeJS.ProcessEnv): boolean;
|
|
13
14
|
export declare function formatTerminalTitle(cwd: string, running: boolean): string;
|
|
14
15
|
export declare function stripControlBytes(s: string): string;
|
|
15
16
|
export declare function setTerminalTitleIfEnabled(stream: {
|
|
@@ -10,4 +10,4 @@ export declare function runTurn(input: {
|
|
|
10
10
|
attachments: ImageAttachment[];
|
|
11
11
|
}, session: AgentSession, stats: SessionStats, h: TurnHandles, thinkingUi?: ThinkingUiMode, completionWriter?: CompletionWriter, inputSurface?: InputSurfaceRefs): Promise<void>;
|
|
12
12
|
export type { ContextTier } from './turn-handler.footer.js';
|
|
13
|
-
export { formatContextUsage, printTurnFooter } from './turn-handler.footer.js';
|
|
13
|
+
export { formatContextUsage, printTurnFooter, printTurnSeparator } from './turn-handler.footer.js';
|
|
@@ -9,3 +9,6 @@ export declare function printTurnFooter(meta: {
|
|
|
9
9
|
totalCostUsd?: number;
|
|
10
10
|
usage?: Record<string, unknown>;
|
|
11
11
|
} | undefined, stats: SessionStats, write?: (line: string) => void): void;
|
|
12
|
+
export declare function printTurnSeparator(write: (line: string) => void, stdout?: {
|
|
13
|
+
isTTY?: boolean;
|
|
14
|
+
}): void;
|