/** * v3 ephemeral worker pool. * * One `runNode` call forks one throwaway worker, initializes it in goal-mode, * waits for the CLI turn to finish, then tears the worker down. The pool * deliberately does NOT parse or trust the model's final text; node success is * determined later by validating BOTMUX_GOAL_MANIFEST_PATH. */ import { type WorkerProcessFactory } from '../shared/worker-process.js'; import { type RunNode, type RunNodeRequest } from './contract.js'; export declare const GOAL_COMMAND = "/goal"; export interface EphemeralPoolDeps { /** * Secrets are intentionally not frozen into the runDir. Resolve the live * secret by the frozen larkAppId at spawn time. */ resolveLarkAppSecret(larkAppId: string): string | undefined | Promise; factory?: WorkerProcessFactory; workerPath?: string; quiesceMs?: number; cancelGraceMs?: number; manifestPollMs?: number; manifestSettleMs?: number; } export declare function createEphemeralPool(deps: EphemeralPoolDeps): { runNode: RunNode; }; export declare function buildGoalCommand(req: RunNodeRequest): string; //# sourceMappingURL=ephemeral-pool.d.ts.map