From 44d421b8520b6047ecbd9289b5847fff3a847efa Mon Sep 17 00:00:00 2001 From: abhigyanpatwari Date: Sun, 18 Jan 2026 19:33:28 +0530 Subject: [PATCH] build issue fix --- gitnexus/TODO.md | 87 +++++++++++++++++++++++++++++++++++++++++ gitnexus/vite.config.ts | 2 + 2 files changed, 89 insertions(+) create mode 100644 gitnexus/TODO.md diff --git a/gitnexus/TODO.md b/gitnexus/TODO.md new file mode 100644 index 000000000..6e573aba7 --- /dev/null +++ b/gitnexus/TODO.md @@ -0,0 +1,87 @@ +# GitNexus Feature Roadmap + +Inspired by Noodlbox competitive analysis (Jan 2026). + +--- + +## 🔥 High Priority + +### Communities (Auto-detected Code Clusters) +- [ ] Implement Leiden/Louvain algorithm for community detection +- [ ] Run community detection post-ingestion on `CodeRelation` graph +- [ ] Add `Community` node table to KuzuDB schema +- [ ] Create `MEMBER_OF` relationship type +- [ ] Calculate cohesion score (0-1) per community +- [ ] Surface key symbols (highest centrality) per community +- [ ] Identify entry points (functions called from outside) + +### Processes (Execution Flows) +- [ ] Detect entry points (functions with no internal callers) +- [ ] Trace forward call chains from entry points +- [ ] Store as `Process` nodes with `STEP_IN_PROCESS` relationships +- [ ] Label processes based on entry point + terminal action +- [ ] Classify as `intra_community` or `cross_community` + +### Git Diff Impact Detection +- [ ] Add `detectImpact` MCP tool +- [ ] Accept `change_scope`: `unstaged`, `staged`, `all`, `compare` +- [ ] Parse git diff to extract changed symbols +- [ ] Run blast radius on changed symbols +- [ ] Return affected processes grouped by risk level + +--- + +## 🟡 Medium Priority + +### Labels (Human-readable Names) +- [ ] Generate `.gitnexus/labels.json` on analysis +- [ ] Store community labels (e.g., "Authentication System") +- [ ] Store process labels (e.g., "User Login Flow") +- [ ] Use labels in MCP tool output and UI + +### Architecture Generation +- [ ] Add `/gitnexus:generate_map` command/tool +- [ ] Generate `ARCHITECTURE/README.md` with: + - Codebase stats + - Mermaid diagram of communities + - Cross-community flows +- [ ] Generate `ARCHITECTURE/{process-slug}.md` per key process + +### Centrality Scoring +- [ ] Calculate PageRank or betweenness centrality per symbol +- [ ] Store as `centrality` property on nodes +- [ ] Surface in search results and community views + +--- + +## 🟢 Low Priority / Nice-to-Have + +### Skills (Structured Prompts) +- [ ] Create skill prompts for common tasks: + - Exploring Codebases + - Debugging + - Change Planning + - Refactoring + - Generating Documentation +- [ ] Expose as MCP prompts + +### Session Hooks +- [ ] Inject codebase context at conversation start (Claude Code) +- [ ] Auto-inject graph schema for Cypher query accuracy + +### Search Hooks +- [ ] Enhance grep/glob results with semantic context +- [ ] Add call graph context to file search results + +### Depth Parameter +- [ ] Add `depth` param to search tools: `definitions` | `full` +- [ ] `definitions`: Symbol signatures only +- [ ] `full`: Symbols + all relationships + +--- + +## 📝 Notes + +**Tech Stack Advantage:** GitNexus runs 100% in browser (WASM). Noodlbox requires CLI daemon. + +**Key Differentiator to Build:** Communities + Processes transform raw graph into actionable insights. diff --git a/gitnexus/vite.config.ts b/gitnexus/vite.config.ts index 8c30360d5..8c562b74f 100644 --- a/gitnexus/vite.config.ts +++ b/gitnexus/vite.config.ts @@ -25,6 +25,8 @@ export default defineConfig({ resolve: { alias: { '@': path.resolve(__dirname, './src'), + // Fix for Rollup failing to resolve this deep import from @langchain/anthropic + '@anthropic-ai/sdk/lib/transform-json-schema': path.resolve(__dirname, 'node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs'), }, }, // Polyfill Buffer for isomorphic-git (Node.js API needed in browser)