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

18 lines
837 B
TypeScript

import type { AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
import type { HookName, OhMyOpenCodeConfig } from "../../config";
import type { LoadedSkill } from "../../features/opencode-skill-loader/types";
import type { PluginContext } from "../types";
import { createAutoSlashCommandHook, createCategorySkillReminderHook } from "../../hooks";
export type SkillHooks = {
categorySkillReminder: ReturnType<typeof createCategorySkillReminderHook> | null;
autoSlashCommand: ReturnType<typeof createAutoSlashCommandHook> | null;
};
export declare function createSkillHooks(args: {
ctx: PluginContext;
pluginConfig: OhMyOpenCodeConfig;
isHookEnabled: (hookName: HookName) => boolean;
safeHookEnabled: boolean;
mergedSkills: LoadedSkill[];
availableSkills: AvailableSkill[];
}): SkillHooks;