/** * Claude Agent SDK client for workflow planning */ import { Options } from '@anthropic-ai/claude-agent-sdk'; export declare const ADDITIONAL_INSTRUCTIONS: { readonly PLAN: "\n! IMPORTANT !\n1. Use TodoWrite to track your progress through plan creation.\n\n2. Please respond with only the final version of the plan content.\n\n3. Respond in a markdown format with these metadata headers:\n\n---\ntitle: \ndescription: \ndate: \n---\n\n\n\n4. After you mark all todos as complete, you must respond with the final version of the plan.\n\n5. DO NOT write the plan to disk — the CLI will handle saving the file to the plans directory.\n\n6. DO NOT suggest any next steps, follow-up commands, or instructions for the user — the CLI will inform the user of next steps after saving.\n"; readonly BUILD: "\n! IMPORTANT !\n1. Use TodoWrite to track your progress through workflow implementation.\n\n2. Follow the implementation plan exactly as specified in the plan file.\n\n3. Implement all workflow files following Output.ai patterns and best practices.\n\n4. After you mark all todos as complete, provide a summary of what was implemented.\n"; readonly MIGRATE: "\n! IMPORTANT !\n1. Use TodoWrite to track your progress through the migration.\n\n2. Fetch the migration guide from https://docs.output.ai/migrations — do not invent migration steps from memory.\n\n3. If the specific guide URL 404s, fall back to the /migrations index and chain the guides that cover the version range.\n\n4. Confirm the planned changes with the user before editing files.\n\n5. After you mark all todos as complete, provide a summary of which files changed and whether the type check passed.\n"; }; export declare const PLAN_COMMAND_OPTIONS: Options; interface ReplyToClaudeOptions { anthropicOpts?: Options; applyAdditionalInstructions?: string; } export declare const BUILD_COMMAND_OPTIONS: Options; export declare const MIGRATE_COMMAND_OPTIONS: Options; export declare class ClaudeInvocationError extends Error { cause?: Error | undefined; constructor(message: string, cause?: Error | undefined); } export declare function replyToClaude(message: string, { anthropicOpts, applyAdditionalInstructions }?: ReplyToClaudeOptions): Promise; /** * Invoke claude-code with /output-plan-workflow slash command * The SDK loads custom commands from .claude/commands/ when settingSources includes 'project'. * ensureOutputAISystem() scaffolds the command files to that location. * @param description - Workflow description * @returns Plan output from claude-code */ export declare function invokePlanWorkflow(description: string): Promise; /** * Invoke claude-code with /output-build-workflow slash command * The SDK loads custom commands from .claude/commands/ when settingSources includes 'project'. * ensureOutputAISystem() scaffolds the command files to that location. * @param planFilePath - Absolute path to the plan file * @param workflowDir - Absolute path to the workflow directory * @param workflowName - Name of the workflow * @param additionalInstructions - Optional additional instructions * @returns Implementation output from claude-code */ export declare function invokeBuildWorkflow(planFilePath: string, workflowDir: string, workflowName: string, additionalInstructions?: string): Promise; /** * Invoke claude-code with /output-migrate slash command (registered via the output-migrate skill). * The slash command fetches migration instructions from docs.output.ai — * this CLI wrapper just passes through the version arguments. * @param fromVersion - Current framework version (empty string = auto-detect) * @param toVersion - Target version (empty string = use npm "latest") * @param additionalInstructions - Optional user-supplied guidance * @returns Migration summary from claude-code */ export declare function invokeMigrate(fromVersion: string, toVersion: string, additionalInstructions?: string): Promise; export {};