/** * Playbook tools */ import type { McpToolDefinition, ToolContext, ToolResult } from "../types.js"; export declare const listPlaybooksTool: McpToolDefinition; export declare function executeListPlaybooks(input: unknown, context: ToolContext): Promise; export declare const getPlaybookTool: McpToolDefinition; export declare function executeGetPlaybook(input: unknown, context: ToolContext): Promise; export declare const runPlaybookTool: McpToolDefinition; export declare function executeRunPlaybook(input: unknown, context: ToolContext): Promise; export declare const getPlaybookRunStatusTool: McpToolDefinition; interface StepResult { stepIndex: number; stepName: string; status: string; completedAt?: string; error?: string; } interface RunDetail { id: string; playbook_id: string; status: string; topic: string | null; current_step_index: number; /** Sent by the API alongside the index; absent on older deployments. */ current_step_name?: string | null; step_results: StepResult[]; outputs: Record; started_at: string; completed_at: string | null; paused_at: string | null; retry_count: number; error: string | null; } /** * Position plus the step's own stored name, e.g. `4 (Review Brief)`. * * The name comes from the run's step_results, not from the playbook * definition: a definition edited mid-run renumbers its steps, so resolving * the index against the current definition can name a step this run never * reached. Falls back to the bare position when the run stored no name. * * Parenthesised rather than colon-separated because this is a VALUE in a * key/value card whose keys are already colon-separated; `Current Step: 4: * Review Brief` reads as a broken line. */ export declare function formatCurrentStep(run: RunDetail): string; export declare function executeGetRunStatus(input: unknown, context: ToolContext): Promise; export declare const providePlaybookInputTool: McpToolDefinition; export declare function executeProvideInput(input: unknown, context: ToolContext): Promise; export declare const playbookTools: McpToolDefinition[]; export declare const playbookExecutors: Record Promise>; export {}; //# sourceMappingURL=playbooks.d.ts.map