/** * veto-leash OpenCode Plugin * * Native integration for OpenCode that intercepts tool calls and enforces policies. * This plugin hooks into tool.execute.before to block restricted operations * with seamless, non-distractive feedback via toasts. * * Installation: * 1. Copy to ~/.config/opencode/plugin/veto-leash.ts (global) * 2. Or copy to .opencode/plugin/veto-leash.ts (project-level) * 3. Restart OpenCode * * Or add to opencode.json: * { "plugin": ["veto-leash"] } */ interface PluginContext { project: unknown; client: { app: { log: (opts: { service: string; level: string; message: string; extra?: unknown; }) => Promise; }; tui: { showToast: (opts: { message: string; variant: "info" | "success" | "error" | "warning"; }) => Promise; }; }; $: unknown; directory: string; worktree: string; } export declare const VetoLeash: (ctx: PluginContext) => Promise<{ "tool.execute.before"?: undefined; event?: undefined; } | { "tool.execute.before": (input: { tool: string; }, output: { args: Record; }) => Promise; event: ({ event }: { event: { type: string; }; }) => Promise; }>; export default VetoLeash; //# sourceMappingURL=veto-leash.d.ts.map