/** * Task-worker entrypoint. * * Called by the `__run-task ` CLI subcommand. Loads the user's * FrontMCP config, boots a minimal scope (no HTTP transport), looks up the * pending task record, runs the tool through the same flow pipeline the * Node server would, and exits. * * The FRONTMCP_RUN_TASK_ID environment variable is set by the parent's * `CliTaskRunner` so this module (and `scope.instance.ts`) can detect it is * being invoked as a worker rather than as a long-lived server. * * @module task/runtime/execute-task */ import { type FrontMcpConfigInput } from '../../common'; /** * Boot the user's FrontMCP config in task-worker mode and run a single task * to completion. Returns the exit code the worker should use. */ export declare function executeTaskWorker(options: FrontMcpConfigInput, taskId: string): Promise; //# sourceMappingURL=execute-task.d.ts.map