UNPKG

@fission-ai/openspec

Version:

AI-native system for spec-driven development

37 lines 1.06 kB
export interface RequirementBlock { headerLine: string; name: string; raw: string; } export interface RequirementsSectionParts { before: string; headerLine: string; preamble: string; bodyBlocks: RequirementBlock[]; after: string; } export declare function normalizeRequirementName(name: string): string; /** * Extracts the Requirements section from a spec file and parses requirement blocks. */ export declare function extractRequirementsSection(content: string): RequirementsSectionParts; export interface DeltaPlan { added: RequirementBlock[]; modified: RequirementBlock[]; removed: string[]; renamed: Array<{ from: string; to: string; }>; sectionPresence: { added: boolean; modified: boolean; removed: boolean; renamed: boolean; }; } /** * Parse a delta-formatted spec change file content into a DeltaPlan with raw blocks. */ export declare function parseDeltaSpec(content: string): DeltaPlan; //# sourceMappingURL=requirement-blocks.d.ts.map