/** * The fixed, package-owned worker script and its JSON arguments. Model-written * task ids, prompts, dependency ids, schemas, provider names, model names, and * upstream results travel only through `WorkflowStartRequest.args`; no field * is interpolated into this source text. * @module dsh-tool-orchestrate/script */ import type { NormalizedTask, NormalizedTaskGraph } from './types.ts'; /** JSON argument payload passed to the fixed worker script. */ export interface OrchestrationScriptArgs { readonly tasks: readonly NormalizedTask[]; readonly layers: readonly (readonly string[])[]; } /** * The fixed declarative-orchestration worker body. It executes topological * layers with `parallel()`, skips tasks whose direct dependencies did not * complete, injects only direct dependency results, and returns canonical * results in model input order. */ export declare const ORCHESTRATION_SCRIPT: string; /** * Build the fixed script's JSON argument payload from one normalized graph. * @param graph - validated tasks and deterministic topological layers. * @returns Plain JSON data for `WorkflowStartRequest.args`. */ export declare function createOrchestrationArgs(graph: NormalizedTaskGraph): OrchestrationScriptArgs;