export interface AIContextInput { /** 需求文档路径列表 */ requirements: string[]; /** 已读取的需求内容(避免重复 readFile) */ reqContents?: string[]; /** 源码目录列表 */ sources: string[]; /** 分析范围 */ scope: 'global' | 'iteration' | 'task'; /** 迭代名称 */ iteration?: string; /** 任务 ID */ taskId?: string; /** 分析深度 */ depth: 'quick' | 'normal' | 'deep'; } export interface AIContextResult { /** 输出的 prompt 文件路径 */ promptPath: string; /** prompt 内容 */ content: string; /** 涉及的文件数 */ totalFiles: number; /** 发现的 API 数 */ totalApis: number; } /** * 需求注入 AI 的总字符预算(v8.3.366) * 此前需求原文无配额拼接,超大 PRD 会顶爆 token; * 超限时按文档均分配额在段落边界截断,并生成「阅读清单」让 AI 按需 Read 原文。 */ export declare const REQ_BUDGET_CHARS = 40000; /** * 需求文档预算化拼接:总额内完整拼接,超限则按文档均分配额 + 段落边界截断。 * 返回 { section, truncated }:truncated 为被截断文档的「Read 指引」条目。 */ export declare function buildBudgetedReqSection(reqContents: string[], opts?: { budget?: number; label?: string; }): { section: string; truncated: { source: string; totalChars: number; keptChars: number; }[]; }; export declare function generateAIContext(input: AIContextInput): Promise; //# sourceMappingURL=ai-context-generator.d.ts.map