/** * Workflow runtime sandbox. * * This module is intentionally independent from AgentManager. Integration can map * WorkflowAgentRunner to real subagent launches later; tests and callers can use * a fake runner today. * * Concepts adapted from michaelliv/pi-dynamic-workflows (MIT): phase/log helpers, * parallel/pipeline control-flow primitives, and budgeted workflow execution. */ import type { ParsedWorkflow, WorkflowAgentRunner, WorkflowBudgetOptions, WorkflowProgressEvent, WorkflowRunResult } from "./workflow-types.js"; export interface WorkflowRuntimeOptions { args?: Record; cwd?: string; budget?: WorkflowBudgetOptions; agentRunner?: WorkflowAgentRunner; filename?: string; signal?: AbortSignal; timeoutMs?: number; onProgress?: (event: WorkflowProgressEvent) => void; } export declare function runWorkflowScript(source: string, options?: WorkflowRuntimeOptions): Promise; export declare function runWorkflow(workflow: ParsedWorkflow, options?: WorkflowRuntimeOptions): Promise;