agent-afk 5.308.8 → 5.308.10

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.
@@ -0,0 +1,15 @@
1
+ export interface DaemonActionOptions {
2
+ port: string;
3
+ host?: string;
4
+ task?: string;
5
+ cron?: string;
6
+ taskId?: string;
7
+ once: boolean;
8
+ timeoutMs?: string;
9
+ thinking?: string;
10
+ effort?: string;
11
+ trigger?: string;
12
+ sessionstartCooldownMs?: string;
13
+ dumpPrompt?: string | boolean | undefined;
14
+ }
15
+ export declare function runDaemonAction(options: DaemonActionOptions): Promise<void>;
@@ -0,0 +1,24 @@
1
+ import { scoreBranch, writeScore } from '../../skills/score/index.js';
2
+ import { writeFarmFact } from '../../skills/score/memory-write.js';
3
+ import { sendFarmDigest } from '../../skills/score/digest.js';
4
+ import { setFarmMemoryFactId } from '../../agent/worktree.js';
5
+ import { type BranchResult } from './farm.summary.js';
6
+ import type { FarmManifest } from '../../agent/worktree.js';
7
+ export interface FarmPostRunOptions {
8
+ task: string;
9
+ manifest: FarmManifest;
10
+ baseSha: string;
11
+ branchResults: BranchResult[];
12
+ dirtyFiles: string[];
13
+ startedAt: string;
14
+ scoringEnabled: boolean;
15
+ scoreTimeoutMs: number;
16
+ memoryWriteEnabled: boolean;
17
+ digestEnabled: boolean;
18
+ _scoreBranch?: typeof scoreBranch;
19
+ _writeScore?: typeof writeScore;
20
+ _writeFarmFact?: typeof writeFarmFact;
21
+ _sendFarmDigest?: typeof sendFarmDigest;
22
+ _setFarmMemoryFactId?: typeof setFarmMemoryFactId;
23
+ }
24
+ export declare function runFarmPostRun(opts: FarmPostRunOptions): Promise<never>;
@@ -0,0 +1,9 @@
1
+ import type { ReaderState } from './reader.state.js';
2
+ import type { RepaintCtx } from './reader.repaint.js';
3
+ import type { ReadWithAutocompleteOpts, ReadWithAutocompleteResult } from './types.js';
4
+ export interface ReaderCallbacks {
5
+ onSubmit: () => void;
6
+ onAbort: (err: Error) => void;
7
+ onEof: () => void;
8
+ }
9
+ export declare function buildReaderCallbacks(st: ReaderState, stdout: NodeJS.WriteStream, repaintCtx: RepaintCtx, opts: ReadWithAutocompleteOpts, promptText: string, cleanup: () => void, resolve: (value: ReadWithAutocompleteResult) => void, reject: (err: Error) => void): ReaderCallbacks;