feat: add codegraph tool for querying pre-computed codebase dependency graph

- Implemented `tools-codegraph.ts` to provide various queries on the codebase dependency graph, including impact analysis, dead code detection, module boundaries, and more.
- Created a schema for validating query inputs using Zod.
- Developed helper functions for resolving file paths, formatting output, and handling different query types.
- Added tests for the codegraph queries in `codegraph-queries.test.ts` to ensure functionality and correctness.
- Introduced tests for the codegraph scanning and loading functionalities in `codegraph.test.ts`, verifying the detection of source files, imports, exports, circular dependencies, and entry points.
This commit is contained in:
asepharyana committed 2026-09-04 22:37:38 +07:00
1 parent 4dac34b13f
commit bb36af62e2
12 files changed
+1458 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
# dependencies (bun install)
node_modules
.shiro/
# build output
out
dist