Files
oh-my-opencode/dist/hooks/interactive-bash-session/hook.d.ts
T
2026-03-14 04:56:50 +00:00

24 lines
617 B
TypeScript

import type { PluginInput } from "@opencode-ai/plugin";
interface ToolExecuteInput {
tool: string;
sessionID: string;
callID: string;
args?: Record<string, unknown>;
}
interface ToolExecuteOutput {
title: string;
output: string;
metadata: unknown;
}
interface EventInput {
event: {
type: string;
properties?: unknown;
};
}
export declare function createInteractiveBashSessionHook(ctx: PluginInput): {
"tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
event: ({ event }: EventInput) => Promise<void>;
};
export {};