/** * CodeGraph Integration Step * * specpow init 流程中的 CodeGraph 集成步骤: * 1. 检测/安装 codegraph CLI * 2. 映射 SpecPow 检测到的 AI 工具 → codegraph target * 3. 执行 codegraph install --location local * 4. 提醒用户手动运行 codegraph init * * 所有步骤非阻塞,失败仅打印警告。 */ import type { DetectedTool } from './engine.js'; export interface CodeGraphResult { success: boolean; targets: string[]; warning?: string; } /** * 检测 codegraph CLI 是否在 PATH 中 */ export declare function isCodeGraphInstalled(): boolean; /** * 通过 npm 全局安装 codegraph CLI */ export declare function installCodeGraphCLI(): boolean; /** * CodeGraph 集成主函数 * * 在 specpow init 末尾调用: * 1. 检测/安装 codegraph CLI * 2. 映射 AI 工具 → codegraph targets * 3. 执行 codegraph install --location local * 4. 输出提醒信息 */ export declare function integrateCodeGraph(projectRoot: string, detectedTools: DetectedTool[], quiet: boolean): CodeGraphResult; //# sourceMappingURL=codegraph-step.d.ts.map