/** * Model-facing foreground declarative task-DAG orchestrator over the workflow * seam. The plugin validates and normalizes the model's task graph, hands the * normalized JSON to a fixed package-owned worker script, and owns the tool * schema, run lifecycle, cancellation bridge, worker-output validation, and * bounded result rendering. It never interpolates model data into JavaScript. * @module dsh-tool-orchestrate */ import type { Context } from '@deepseek-ai/cordis'; import z from '@deepseek-ai/schemastery'; export type { NormalizedTask, NormalizedTaskGraph, OrchestratedTaskCompleted, OrchestratedTaskFailed, OrchestratedTaskResult, OrchestratedTaskSkipped, OrchestrateMetaInput, OrchestrateTaskInput, OrchestrateTasksBody, OrchestrateTasksCounts, OrchestrateTasksInput, OrchestrateTasksOutput, OrchestrateTasksStatus, } from './types.ts'; export { TaskGraphError, TASK_ID_PATTERN } from './graph.ts'; export { ORCHESTRATION_SCRIPT } from './script.ts'; export declare const name = "tool-orchestrate"; export declare const inject: string[]; /** Deployment policy for the declarative task-DAG tool. */ export interface Config { /** The model-facing tool name to register (default `orchestrate_tasks`). */ toolName?: string; /** Maximum tasks in one orchestration call (default 64). */ maxTasks?: number; /** Maximum direct dependencies per task (default 16). */ maxDependencies?: number; /** Maximum normalized characters in one task prompt (default 32768). */ maxPromptChars?: number; /** Rendered-result ceiling in characters (default 50000). */ maxResultChars?: number; } /** Schemastery configuration for the orchestration tool. */ export declare const Config: z; export declare function apply(ctx: Context, config: Config): void;