24 lines
617 B
TypeScript
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 {};
|