/** * Start-work hook: detects the /start-work command, resolves the target plan, * creates/updates work state, and returns context for injection into the prompt. */ import type { ValidationResult } from "../features/work-state"; export interface StartWorkInput { promptText: string; sessionId: string; directory: string; } export interface StartWorkResult { /** Context to inject into the prompt (plan path, progress, instructions) */ contextInjection: string | null; /** Agent to switch to (always "tapestry" when command is detected) */ switchAgent: string | null; } /** * Handle the /start-work command. * Returns null contextInjection if this message is not a /start-work command. */ export declare function handleStartWork(input: StartWorkInput): StartWorkResult; /** * Format validation errors and warnings as a markdown string. */ export declare function formatValidationResults(result: ValidationResult): string;