/** * HOOKS 生命周期钩子执行器 * * 负责: * 1. 扫描 .speccore/HOOKS/ 目录下的钩子定义 * 2. 在命令执行前后触发对应钩子 * 3. 支持 pre-{command} 和 post-{command} 两种钩子 * * v6.88.0+ */ export interface HookDefinition { name: string; content: string; trigger: 'pre' | 'post'; command: string; } export interface HookContext { command: string; iteration?: string; task?: string; [key: string]: unknown; } export interface HookResult { blocked: boolean; reason?: string; messages: string[]; } /** * 执行指定命令的钩子 */ export declare function runHooks(trigger: 'pre' | 'post', command: string, context: HookContext, projectRoot: string): Promise; export declare function getBuiltinHookContents(): Promise<{ name: string; content: string; }[]>; //# sourceMappingURL=hook-runner.d.ts.map