/** * RAG Manifest Generator * * Produces openspec/rag-manifest.json — a lightweight index that maps each * spec domain to its source files and cross-domain dependency edges. Used by * the orient MCP handler to inline condensed spec content without a separate * get_spec call. */ import type { DependencyGraphResult } from '../analyzer/dependency-graph.js'; import type { GeneratedSpec } from './openspec-format-generator.js'; export interface RagManifest { generatedAt: string; specVersion: string; domains: RagDomainEntry[]; } export interface RagDomainEntry { /** Domain name, e.g. "analyzer" */ domain: string; /** Relative path to the spec file, e.g. "openspec/specs/analyzer/spec.md" */ specPath: string; /** Relative source file paths belonging to this domain's cluster */ sourceFiles: string[]; /** Number of Requirement blocks in the spec (populated post-generation) */ requirementCount: number; /** Domains this domain calls into (outbound cross-cluster edges) */ dependsOn: string[]; /** Domains that call into this domain (inbound cross-cluster edges) */ calledBy: string[]; } export declare class RagManifestGenerator { /** * Build a RagManifest from the list of generated specs and the dependency * graph (optional — if absent, sourceFiles / dependsOn / calledBy are empty). */ generate(specs: GeneratedSpec[], depGraph?: DependencyGraphResult): RagManifest; } //# sourceMappingURL=rag-manifest-generator.d.ts.map