UNPKG

hikma-engine

Version:

Code Knowledge Graph Indexer - A sophisticated TypeScript-based indexer that transforms Git repositories into multi-dimensional knowledge stores for AI agents

18 lines (17 loc) 607 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AstExtractor = void 0; const ast_parser_1 = require("../../modules/ast-parser"); class AstExtractor { constructor(projectRoot, config, repoId) { this.astParser = new ast_parser_1.AstParser(projectRoot, config, repoId); } async extract(files, pathToIdMap) { await this.astParser.parseFiles(files.map((f) => f.path), pathToIdMap); return { nodes: this.astParser.getNodes(), edges: this.astParser.getEdges(), }; } } exports.AstExtractor = AstExtractor;