feat!: granular node types, GitNexus comparison, PreToolUse hooks#14
Merged
carlos-alm merged 1 commit intomainfrom Feb 22, 2026
Merged
feat!: granular node types, GitNexus comparison, PreToolUse hooks#14carlos-alm merged 1 commit intomainfrom
carlos-alm merged 1 commit intomainfrom
Conversation
…, multi-repo MCP roadmap - Node types: Go struct→struct, Rust struct/enum/trait, Java enum, C# struct/record/enum, PHP trait/enum, Ruby module — in both WASM and native Rust extractors - Add SYMBOL_KINDS constant and update all kind IN filters across queries, builder, export, embedder, cycles, watcher, and MCP - Add GitNexus column to README comparison table - Add Phase 2.5 Multi-Repo MCP to ROADMAP - Add PreToolUse hooks for Read/Grep context enrichment via codegraph deps - Update CLAUDE.md and README with new node kind documentation BREAKING CHANGE: Node kinds changed for structs, enums, traits, records, and modules. Rebuild with `codegraph build --no-incremental`.
Contributor
Greptile SummaryThis PR introduces granular node type classification across all language parsers, replacing generic Key changes:
Issue found:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Language Source Code] --> B{Parser Engine}
B -->|Native Rust| C[Rust Extractors]
B -->|WASM Fallback| D[JS Extractors]
C --> E[go.rs<br/>struct → struct]
C --> F[rust_lang.rs<br/>struct/enum/trait]
C --> G[java.rs<br/>enum → enum]
C --> H[csharp.rs<br/>struct/record/enum]
C --> I[php.rs<br/>trait/enum]
C --> J[ruby.rs<br/>module → module]
D --> K[extractGoSymbols<br/>struct → struct]
D --> L[extractRustSymbols<br/>struct/enum/trait]
D --> M[extractJavaSymbols<br/>enum → enum]
D --> N[extractCSharpSymbols<br/>struct/record/enum]
D --> O[extractPHPSymbols<br/>trait/enum]
D --> P[extractRubySymbols<br/>module → module]
E & F & G & H & I & J --> Q[SQLite DB<br/>nodes table]
K & L & M & N & O & P --> Q
Q --> R[Query Layer]
R --> S[cycles.js<br/>kind IN filter]
R --> T[export.js<br/>DOT/Mermaid]
R --> U[mcp.js<br/>list_functions]
R --> V[watcher.js<br/>incremental]
R --> W[queries.js<br/>kindIcon ⚠️]
W -.missing icons.-> X[struct/enum/trait<br/>record/module]
Last reviewed commit: 72535fb |
Contributor
Additional Comments (1)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
struct, Rust structs/enums/traits tostruct/enum/trait, Java enums toenum, C# structs/records/enums tostruct/record/enum, PHP traits/enums totrait/enum, Ruby modules tomodule— in both WASM and native Rust extractorsSYMBOL_KINDSconstant, extendedkindIcon(), updated allkind INSQL filters across queries, builder, export, embedder, cycles, watcher, and MCP--kindflag docscodegraph depsTest plan
npm run lint— clean (46 files)npm test— 296 passed, 0 failurescodegraph query <struct>returnskind: structBREAKING CHANGE: Node kinds changed for structs, enums, traits, records, and modules. Users must rebuild with
codegraph build --no-incremental.