/** * Keyword Detector Hook * * Detects special keywords in user messages and: * 1. Injects mode-specific context into the message * 2. Shows toast notification for user feedback * * Uses the "chat.message" hook which fires when user submits a message. */ import type { PluginInput } from "@opencode-ai/plugin"; import type { VariantMessage } from "../../shared"; interface MessagePart { type: string; text?: string; synthetic?: boolean; } interface ChatMessageOutput { parts: MessagePart[]; message: VariantMessage; } export declare function createKeywordDetectorHook(ctx: PluginInput): { "chat.message": (input: { sessionID: string; agent?: string; }, output: ChatMessageOutput) => Promise; }; export { KEYWORD_CONFIGS, type KeywordType, type KeywordConfig } from "./contexts";