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

19 lines
863 B
TypeScript

import type { AutoSlashCommandHookInput, AutoSlashCommandHookOutput, CommandExecuteBeforeInput, CommandExecuteBeforeOutput } from "./types";
import type { LoadedSkill } from "../../features/opencode-skill-loader";
export interface AutoSlashCommandHookOptions {
skills?: LoadedSkill[];
pluginsEnabled?: boolean;
enabledPluginsOverride?: Record<string, boolean>;
}
export declare function createAutoSlashCommandHook(options?: AutoSlashCommandHookOptions): {
"chat.message": (input: AutoSlashCommandHookInput, output: AutoSlashCommandHookOutput) => Promise<void>;
"command.execute.before": (input: CommandExecuteBeforeInput, output: CommandExecuteBeforeOutput) => Promise<void>;
event: ({ event, }: {
event: {
type: string;
properties?: unknown;
};
}) => Promise<void>;
dispose: () => void;
};