/** * RULES 规范库加载器 * * 负责: * 1. 扫描 .speccore/RULES/ 目录下的规范定义文件 * 2. 根据技术栈(从 CONSTITUTION.md 解析)匹配对应的规范 * 3. 按优先级合并规范内容 * 4. 注入到代码生成 prompt 中 * * v6.85.0+ */ export interface RuleDefinition { name: string; content: string; appliesTo: string[]; priority: number; } /** * 根据技术栈标识符匹配适用的规则 * * 技术栈标识符来自 CONSTITUTION.md 的解析结果,如: * - 'typescript', 'react', 'nodejs', 'mysql' * - 'java', 'spring-boot' * - 'vue', 'pinia' */ export declare function resolveRulesForTechStack(techStackIdentifiers: string[], projectRoot: string): Promise; /** * 将匹配的规则合并为单个 prompt 字符串 */ export declare function formatRulesPrompt(rules: RuleDefinition[]): string; /** * 获取内置规则的原始内容(用于 init 时复制到项目) */ export declare function getBuiltinRuleContents(): Promise<{ name: string; content: string; }[]>; //# sourceMappingURL=rule-loader.d.ts.map