export declare const filename = "README.md";
export declare const content = "# Repoburg Tool Hooks\n\nThis directory contains TypeScript scripts that can be attached to AI tool execution events.\nYou can configure these hooks in the \"Tool Hooks\" section of the Repoburg UI.\n\n## How it works\n\n1.  **Create a script** in this folder (e.g., `audit-patch.ts`).\n2.  **Go to UI**: Open Repoburg -> Tool Hooks -> Add Hook.\n3.  **Configure**: Select the tool (e.g., `patch`), timing (`before` or `after`), and your script.\n\n## Script Interface\n\nYour script must **export a default function** that receives the context.\n\n### Input Context\n\n```typescript\ninterface HookContext {\n  hook_type: 'before' | 'after';\n  \n  action: {\n    tool_name: string; // e.g. \"patch\"\n    args: any;         // e.g. { file_path: \"src/app.ts\", patch_code: \"...\" }\n    \n    // Only present for 'after' hooks\n    result?: {\n      status: 'SUCCESS' | 'FAILURE';\n      output?: string;\n      error?: string;\n    };\n  };\n\n  plan_context: any; // Shared state of the current AI plan\n}\n```\n\n### Output Format\n\nYour function should return an object (or void if passive):\n\n```typescript\ninterface HookOutput {\n  // If true, the AI plan stops immediately.\n  should_halt_plan?: boolean;\n  \n  // Optional message to log in the UI\n  message?: string;\n  \n  // Optional data to merge back into the plan context\n  update_context?: Record<string, any>;\n}\n```\n";
