/** * Knowledge Graph Builder for Fortress Projects * * Transforms fortress configuration into Memory MCP knowledge graph structure. * Creates entities and relations representing project architecture, decisions, * and requirements. * * @module core/knowledge-builder */ import { FortressConfig } from '../types/fortress-types'; /** * Knowledge graph entity structure */ export interface KnowledgeEntity { readonly name: string; readonly entityType: string; readonly observations: string[]; } /** * Knowledge graph relation structure */ export interface KnowledgeRelation { readonly from: string; readonly to: string; readonly relationType: string; } /** * Complete knowledge graph for a project */ export interface ProjectKnowledgeGraph { readonly entities: KnowledgeEntity[]; readonly relations: KnowledgeRelation[]; } /** * Builds knowledge graphs from Fortress configurations */ export declare class KnowledgeBuilder { /** * Build complete knowledge graph from fortress configuration * * @param config - Fortress project configuration * @returns Complete knowledge graph with entities and relations */ static buildProjectKnowledgeGraph(config: FortressConfig): ProjectKnowledgeGraph; /** * Build project entity from configuration */ private static buildProjectEntity; /** * Build technology stack entity */ private static buildStackEntity; /** * Build requirements entity */ private static buildRequirementsEntity; /** * Build compliance entities for each requirement */ private static buildComplianceEntities; /** * Build quality standards entity */ private static buildQualityStandardsEntity; /** * Helper: Get quality target percentage based on quality level */ private static getQualityTarget; /** * Add validation history to knowledge graph * * @param score - Quality score achieved * @param timestamp - When validation occurred * @returns Observation string for adding to knowledge graph */ static buildValidationObservation(score: number, timestamp: string): string; /** * Build architecture decision observation * * @param decision - Architecture decision made * @param rationale - Why the decision was made * @returns Observation string for knowledge graph */ static buildArchitectureDecision(decision: string, rationale: string): string; } //# sourceMappingURL=knowledge-builder.d.ts.map