build: Implement formatForIngestion

This commit is contained in:
2026-04-04 19:29:29 +05:30
parent 290ac89325
commit 88af87b7ae
7 changed files with 353 additions and 19 deletions
+5 -1
View File
@@ -21,7 +21,11 @@ import { GRAPH_FILE } from "../constants";
*/
async function buildGraph() {
// Initialize a multi-graph (allows multiple edges between same nodes)
const graph = new Graph({ multi: true, type: "directed", allowSelfLoops: false });
const graph = new Graph({
multi: true,
type: "directed",
allowSelfLoops: false,
});
// Phase 1: Discover and parse specification HTML files
const htmlFiles = await glob(path.join(SPEC_DIR, "*.html"));