@mduenas/codegraph 0.6.8 → 0.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -499,7 +499,7 @@ cg.close();
|
|
|
499
499
|
|
|
500
500
|
### 1. Extraction
|
|
501
501
|
|
|
502
|
-
CodeGraph uses [tree-sitter](https://tree-sitter.github.io/) to parse source code into ASTs. Language-specific queries (`.scm` files) extract:
|
|
502
|
+
CodeGraph uses [tree-sitter](https://tree-sitter.github.io/) (via WebAssembly — no native bindings required) to parse source code into ASTs. Language-specific queries (`.scm` files) extract:
|
|
503
503
|
|
|
504
504
|
- **Nodes**: Functions, methods, classes, interfaces, types, variables
|
|
505
505
|
- **Edges**: Calls, imports, extends, implements, returns_type
|
|
@@ -513,7 +513,7 @@ All data is stored in a local SQLite database (`.codegraph/codegraph.db`):
|
|
|
513
513
|
- **nodes** table: All code entities with metadata
|
|
514
514
|
- **edges** table: Relationships between nodes
|
|
515
515
|
- **files** table: File tracking for incremental updates
|
|
516
|
-
- **
|
|
516
|
+
- **vectors** table: Embeddings for semantic search (using sqlite-vec)
|
|
517
517
|
|
|
518
518
|
### 3. Reference Resolution
|
|
519
519
|
|
|
@@ -526,7 +526,7 @@ After extraction, CodeGraph resolves references:
|
|
|
526
526
|
|
|
527
527
|
### 4. Semantic Search
|
|
528
528
|
|
|
529
|
-
CodeGraph uses local embeddings (via [@
|
|
529
|
+
CodeGraph uses local embeddings (via [@huggingface/transformers](https://github.com/huggingface/transformers.js)) to enable semantic search:
|
|
530
530
|
|
|
531
531
|
1. Code symbols are embedded using a transformer model
|
|
532
532
|
2. Queries are embedded and compared using cosine similarity
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mduenas/codegraph",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "Supercharge Claude Code with semantic code intelligence. 30% fewer tokens, 25% fewer tool calls, 100% local.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"author": "",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@xenova/transformers": "^2.17.
|
|
34
|
+
"@xenova/transformers": "^2.17.2",
|
|
35
35
|
"better-sqlite3": "^12.11.1",
|
|
36
36
|
"commander": "^14.0.3",
|
|
37
37
|
"figlet": "^1.11.0",
|