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

20 lines
709 B
TypeScript

import type { PluginInput } from "@opencode-ai/plugin";
import type { AtlasHookOptions } from "./types";
export declare function createAtlasHook(ctx: PluginInput, options?: AtlasHookOptions): {
handler: (arg: {
event: {
type: string;
properties?: unknown;
};
}) => Promise<void>;
"tool.execute.before": (toolInput: {
tool: string;
sessionID?: string;
callID?: string;
}, toolOutput: {
args: Record<string, unknown>;
message?: string;
}) => Promise<void>;
"tool.execute.after": (toolInput: import("./types").ToolExecuteAfterInput, toolOutput: import("./types").ToolExecuteAfterOutput) => Promise<void>;
};