#!/usr/bin/env node /** * Forgen — Keyword Detector Hook * * Claude Code UserPromptSubmit 훅으로 등록. * 사용자 프롬프트에서 매직 키워드를 감지하여 해당 스킬을 주입합니다. * * stdin: JSON { prompt: string, ... } * stdout: JSON { result: "block"|"approve", message?: string } */ export interface KeywordMatch { type: 'skill' | 'inject' | 'cancel'; keyword: string; skill?: string; prompt?: string; message?: string; } export declare function shouldTrackWorkflowActivation(match: KeywordMatch): boolean; export declare const KEYWORD_PATTERNS: Array<{ pattern: RegExp; keyword: string; type: 'skill' | 'inject' | 'cancel'; skill?: string; }>; export declare function detectKeyword(prompt: string): KeywordMatch | null;