/** * superbased-opencode-plugin — eyes AND hands for OpenCode. * * The MCP server (`superbased mcp`) provides the actual 72 tools. This plugin * adds lifecycle hooks for ergonomic value-add: * - Pre-flight: warns when destructive GUI actions are called without * `confirm: true`. * - Post-flight: logs durations of expensive SuperBased calls. * - Permission flow: surfaces the audit-log location once per session. * - Init: verifies the `superbased` CLI is reachable on PATH. * * Users must also configure the MCP server separately under `mcp.superbased` * in opencode.json — see opencode.json in this package for the reference * config. */ import { type PermissionHookInput, type ToolHookInput, type ToolHookOutput } from "./hooks.js"; export interface SuperbasedPluginContext { project?: unknown; client?: unknown; $?: unknown; directory?: unknown; worktree?: unknown; } export type SuperbasedPlugin = (ctx: SuperbasedPluginContext) => Promise<{ "tool.execute.before": (input: ToolHookInput, output: ToolHookOutput) => void; "tool.execute.after": (input: ToolHookInput, output: ToolHookOutput) => void; "permission.asked": (input: PermissionHookInput) => void; }>; export declare const SuperbasedPlugin: SuperbasedPlugin; export default SuperbasedPlugin; //# sourceMappingURL=index.d.ts.map