autosnippet
Version:
Extract code patterns into a knowledge base for AI coding assistants
52 lines (51 loc) • 1.54 kB
TypeScript
/**
* DeliveryVerifier — Bootstrap/Rescan 完成后交付完整性检查
*
* 验证以下交付物是否正确生成:
* - Channel A: autosnippet-project-rules.mdc
* - Channel B: autosnippet-patterns 系列文件
* - Channel C: .cursor/skills/ 目录
* - Channel F: AGENTS.md, CLAUDE.md, copilot-instructions.md
* - Wiki: meta.json
* - Skills: project 级 Skill 目录
* - 向量索引: asvec 文件
*
* @module service/bootstrap/DeliveryVerifier
*/
/** §10.5 交付通道标识 */
export type DeliveryChannel = 'channelA' | 'channelB' | 'channelC' | 'channelF' | 'wiki' | 'skills' | 'vectorIndex';
/** 单通道验证结果 */
export interface ChannelVerification {
generated: boolean;
file?: string;
files?: string[];
count?: number;
size?: number;
skillCount?: number;
pageCount?: number;
documentCount?: number;
agentsMd?: boolean;
claudeMd?: boolean;
copilotInstructions?: boolean;
rebuilt?: boolean;
}
/** 完整验证结果 */
export interface DeliveryVerification {
channelA: ChannelVerification;
channelB: ChannelVerification;
channelC: ChannelVerification;
channelF: ChannelVerification;
wiki: ChannelVerification;
skills: ChannelVerification;
vectorIndex: ChannelVerification;
allPassed: boolean;
failures: string[];
}
export declare class DeliveryVerifier {
#private;
constructor(projectRoot: string);
/**
* 验证所有交付物是否正确生成
*/
verify(): DeliveryVerification;
}