{"_id":"@astrivya/akg-indexer","_rev":"5-2a4e3001118be829ab8bb2dfff45c6ec","name":"@astrivya/akg-indexer","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"@astrivya/akg-indexer","version":"0.1.0","keywords":["knowledge-graph","indexer","adr","astrivya"],"license":"Apache-2.0","_id":"@astrivya/akg-indexer@0.1.0","maintainers":[{"name":"amruth_jakku","email":"amruthjakku@gmail.com"}],"homepage":"https://github.com/astrivya/astrivya/tree/main/packages/akg-indexer#readme","bugs":{"url":"https://github.com/astrivya/astrivya/issues"},"dist":{"shasum":"8590b8cf28d0b04c4c757aa62bc0fee9fdf5a678","tarball":"https://registry.npmjs.org/@astrivya/akg-indexer/-/akg-indexer-0.1.0.tgz","fileCount":5,"integrity":"sha512-wa5FcSh9QsUgykS+jSyEA1vAxDa5zQo+rPfmawqHiCGG6UDx8QPLvJQovLer+uKEeGse88JfRu9S+tuiPnhLCw==","signatures":[{"sig":"MEQCIF4XOAiQQbV/aebHaWnwQ/hCZA154gqJps8mFGOJfNLsAiANVWPgfNCJ94Bu77zRA/la20AAcBm5w2C5bdsO4xiTHg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56325},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"a0d4043a0fa06ff9e547fd8581aea3354d4f4474","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit --project tsconfig.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm run build"},"_npmUser":{"name":"amruth_jakku","email":"amruthjakku@gmail.com"},"repository":{"url":"git+https://github.com/astrivya/astrivya.git","type":"git","directory":"packages/akg-indexer"},"_npmVersion":"11.6.2","description":"Astrivya Knowledge Graph indexer — parse ADRs, agent logs, todos and embed them into the AKG","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@astrivya/akg-core":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.8","typescript":"^5.0.0","@types/node":"^20.19.43"},"peerDependencies":{"typescript":"^5.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/akg-indexer_0.1.0_1786184891315_0.6608472451916749","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@astrivya/akg-indexer","version":"0.2.1","keywords":["knowledge-graph","indexer","adr","astrivya"],"license":"Apache-2.0","_id":"@astrivya/akg-indexer@0.2.1","maintainers":[{"name":"amruth_jakku","email":"amruthjakku@gmail.com"}],"homepage":"https://github.com/astrivya/astrivya/tree/main/packages/akg-indexer#readme","bugs":{"url":"https://github.com/astrivya/astrivya/issues"},"dist":{"shasum":"aa15949dffde7d87af0ddbc3d13b0316dc9ee2bf","tarball":"https://registry.npmjs.org/@astrivya/akg-indexer/-/akg-indexer-0.2.1.tgz","fileCount":8,"integrity":"sha512-z5jde8OFrCMVjRevhegRsHxUmQ5jJ8QBgcHNVntNTtqhjCFhppMFp7jtKymGKufU2q+n/2klS5nx6Y2f78KScA==","signatures":[{"sig":"MEUCIQDTmAn8FHpBI6puN1p/vBcHNWMDOwuiK0YIEv3cE627/AIgVmEecnVzcxUjXIgiH+8scJbo4N0v1qJU+6EDXoQhXgs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":256542},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"befa6df35c402d3730dcf6c455dae23a7ac2426b","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit --project tsconfig.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm run build"},"_npmUser":{"name":"amruth_jakku","email":"amruthjakku@gmail.com"},"repository":{"url":"git+https://github.com/astrivya/astrivya.git","type":"git","directory":"packages/akg-indexer"},"_npmVersion":"10.8.2","description":"Astrivya Knowledge Graph indexer — parse ADRs, agent logs, todos and embed them into the AKG","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@astrivya/akg-core":"^0.2.0","@xenova/transformers":"^2.17.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.8","typescript":"^5.0.0","@types/node":"^20.19.43"},"peerDependencies":{"typescript":"^5.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/akg-indexer_0.2.1_1786557007641_0.5020264061875499","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@astrivya/akg-indexer","version":"0.3.0","keywords":["knowledge-graph","indexer","adr","astrivya"],"license":"Apache-2.0","_id":"@astrivya/akg-indexer@0.3.0","maintainers":[{"name":"amruth_jakku","email":"amruthjakku@gmail.com"}],"homepage":"https://github.com/astrivya/astrivya/tree/main/packages/akg-indexer#readme","bugs":{"url":"https://github.com/astrivya/astrivya/issues"},"dist":{"shasum":"bab2bfa6274753c1b0adf51bb22d67a3cda44493","tarball":"https://registry.npmjs.org/@astrivya/akg-indexer/-/akg-indexer-0.3.0.tgz","fileCount":8,"integrity":"sha512-bPH+LuIy03gibMzAIQ4fWXZbpj1OlcFXWRnTPTuQZf3QFdA3niKAzWKIf5meJlNTnW4Kp20JGOSTb1IVUc8mMw==","signatures":[{"sig":"MEYCIQCBwy/50mChRSqiSS8zWtCuFK/S93QPD92wdoHBWQLQnAIhAKnXd6/Ra76oJdHjW65E3CF5juENv4EP8RIXjl9JGvFt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":256510},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"1da24ba6588ae6cfc89be554110db79732fea5de","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit --project tsconfig.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm run build"},"_npmUser":{"name":"amruth_jakku","email":"amruthjakku@gmail.com"},"repository":{"url":"git+https://github.com/astrivya/astrivya.git","type":"git","directory":"packages/akg-indexer"},"_npmVersion":"10.8.2","description":"Astrivya Knowledge Graph indexer — parse ADRs, agent logs, todos and embed them into the AKG","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@astrivya/akg-core":"^0.3.0","@xenova/transformers":"^2.17.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.8","typescript":"^5.0.0","@types/node":"^20.19.43"},"peerDependencies":{"typescript":"^5.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/akg-indexer_0.3.0_1786617911331_0.1575805911129542","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@astrivya/akg-indexer","version":"0.4.0","keywords":["knowledge-graph","indexer","adr","astrivya"],"license":"Apache-2.0","_id":"@astrivya/akg-indexer@0.4.0","maintainers":[{"name":"amruth_jakku","email":"amruthjakku@gmail.com"}],"homepage":"https://github.com/astrivya/astrivya/tree/main/packages/akg-indexer#readme","bugs":{"url":"https://github.com/astrivya/astrivya/issues"},"dist":{"shasum":"10df0482f17bff876ced4f9b8ef8b6e4cfb440f9","tarball":"https://registry.npmjs.org/@astrivya/akg-indexer/-/akg-indexer-0.4.0.tgz","fileCount":8,"integrity":"sha512-s8enl/dk6URpFgMs12wPIoikPAJP+lktfYiJo2R3WXW9Zp3I8tHY1c24MxoUxjM2Rsrcr3XOSKRuZzr+weE3Og==","signatures":[{"sig":"MEQCIBavtCNuygY8Bq60xyKLHTd6ji6KnD3ykn0iPOBfTAHVAiBEGvg3wsSE+PuD3dEVv87wREGlZ2EjLXgJidc6D1HxhQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":297927},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"460d11b8c18e7c2607aa67550003181a6d570673","scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit --project tsconfig.json","test:watch":"vitest","prepublishOnly":"npm run typecheck && npm run build"},"_npmUser":{"name":"amruth_jakku","email":"amruthjakku@gmail.com"},"repository":{"url":"git+https://github.com/astrivya/astrivya.git","type":"git","directory":"packages/akg-indexer"},"_npmVersion":"10.8.2","description":"Astrivya Knowledge Graph indexer — parse ADRs, agent logs, todos and embed them into the AKG","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@astrivya/akg-core":"^0.4.0","@xenova/transformers":"^2.17.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.8","typescript":"^5.0.0","@types/node":"^20.19.43"},"peerDependencies":{"typescript":"^5.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/akg-indexer_0.4.0_1786700070658_0.07517707881692526","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@astrivya/akg-indexer","version":"0.5.0","description":"Astrivya Knowledge Graph indexer — parse ADRs, agent logs, todos and embed them into the AKG","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"engines":{"node":">=20"},"scripts":{"build":"tsup","typecheck":"tsc --noEmit --project tsconfig.json","prepublishOnly":"npm run typecheck && npm run build","test":"vitest run","test:watch":"vitest"},"dependencies":{"@astrivya/akg-core":"^0.5.0","@xenova/transformers":"^2.17.2"},"peerDependencies":{"typescript":"^5.0.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"devDependencies":{"@types/node":"^20.19.43","tsup":"^8.5.1","typescript":"^5.0.0","vitest":"^4.1.8"},"keywords":["knowledge-graph","indexer","adr","astrivya"],"license":"Apache-2.0","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/astrivya/astrivya.git","directory":"packages/akg-indexer"},"homepage":"https://github.com/astrivya/astrivya/tree/main/packages/akg-indexer#readme","bugs":{"url":"https://github.com/astrivya/astrivya/issues"},"_id":"@astrivya/akg-indexer@0.5.0","gitHead":"859bac2e8372135c6dac12e492a6578556830315","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-rgOulNXH0nHv+XTvvxvWF7A6aZs6/eAAx4ipM6jNQVnFPa75PBgEbMZjwRG3kI/axEdQgD2InBOGNc64fZfNng==","shasum":"d8616a02092796fb17a8b8c21a39f638c75628c6","tarball":"https://registry.npmjs.org/@astrivya/akg-indexer/-/akg-indexer-0.5.0.tgz","fileCount":8,"unpackedSize":297927,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDWFp/5Hb96uQs9/uYwKeUfVD5rbp3qij+0LnN1qwY15QIgeUY0efu+VnPjMVVL8QPxbvoa9EyZgtfkX2JCExcidRo="}]},"_npmUser":{"name":"amruth_jakku","email":"amruthjakku@gmail.com"},"directories":{},"maintainers":[{"name":"amruth_jakku","email":"amruthjakku@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/akg-indexer_0.5.0_1786734909970_0.13510890290106037"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-08T10:28:11.108Z","modified":"2026-08-14T19:15:10.270Z","0.1.0":"2026-08-08T10:28:11.463Z","0.2.1":"2026-08-12T17:50:07.781Z","0.3.0":"2026-08-13T10:45:11.456Z","0.4.0":"2026-08-14T09:34:30.839Z","0.5.0":"2026-08-14T19:15:10.117Z"},"bugs":{"url":"https://github.com/astrivya/astrivya/issues"},"license":"Apache-2.0","homepage":"https://github.com/astrivya/astrivya/tree/main/packages/akg-indexer#readme","keywords":["knowledge-graph","indexer","adr","astrivya"],"repository":{"type":"git","url":"git+https://github.com/astrivya/astrivya.git","directory":"packages/akg-indexer"},"description":"Astrivya Knowledge Graph indexer — parse ADRs, agent logs, todos and embed them into the AKG","maintainers":[{"name":"amruth_jakku","email":"amruthjakku@gmail.com"}],"readme":"# @astrivya/akg-indexer\n\n**Knowledge graph indexer** — parse ADRs, agent logs, and TODO files into the Astrivya Knowledge Graph.\n\n```sh\nnpm install @astrivya/akg-indexer\n```\n\nRequires `@astrivya/akg-core` as a peer dependency.\n\n## Usage\n\n```typescript\nimport { AdrParser, AgentParser, TodoParser, AkgIndexer } from \"@astrivya/akg-indexer\";\nimport { AkgStorage } from \"@astrivya/akg-core\";\n\nconst storage = new AkgStorage();\nawait storage.init(\"./my-project\");\n\n// Index all supported files in a workspace\nconst indexer = new AkgIndexer(storage, \"./my-project\");\nindexer.indexAll();\n\n// Or use individual parsers:\nconst adr = new AdrParser(storage, \"./my-project\");\nawait adr.parseAndIndexADR(\"docs/adr/001-architecture.md\", \"...markdown content...\");\n\nconst agent = new AgentParser(storage);\nagent.parseAgentActivity(\"./my-project\");\n\nconst todo = new TodoParser(storage);\ntodo.parseWorkspaceTodos(\"./my-project\");\n```\n\n## Parsers\n\n### AdrParser\nParses Architecture Decision Records (Markdown files with YAML frontmatter). Extracts title, status, context, decision, and consequences.\n\n### AgentParser\nReads agent conversation logs from the local AI agent's brain directory (`.gemini/antigravity-ide/brain/`). Maps tool calls to graph nodes and edges.\n\n### TodoParser\nScans workspace for `todo.md`, `TODO.md`, `tasks.md`, and `TASKS.md` files. Creates task nodes and links them to referenced files.\n\n### Embedder (`AkgEmbedder`)\nGenerates 384-dim embeddings using ONNX models (requires `@xenova/transformers`). Used for semantic search.\n\n> **Optional feature, opt-in.** To keep the published package dependency-light, the ONNX embedding stack is **not** installed automatically. To enable embeddings, the consumer installs the peer deps manually:\n\n```bash\nnpm i -D @xenova/transformers onnxruntime-node\n```\n\nWithout them, `AkgEmbedder.init()` throws a clear message instructing you to install the deps; the rest of the indexer works normally.\n\n```typescript\nimport { AkgEmbedder } from \"@astrivya/akg-indexer\";\n\nconst embedder = new AkgEmbedder();\nawait embedder.init(\"./models\");\nconst vector = await embedder.embed(\"Your text content here\");\n// Returns Float64Array(384)\n```\n\n## License\n\nApache 2.0\n","readmeFilename":"README.md"}