@vohongtho.infotech/code-intel 0.3.0 → 0.4.0
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 +12 -5
- package/dist/cli/main.js +3797 -3711
- package/dist/cli/main.js.map +1 -1
- package/dist/index.d.ts +70 -6
- package/dist/index.js +5554 -6045
- package/dist/index.js.map +1 -1
- package/dist/wasm/tree-sitter-kotlin.wasm +0 -0
- package/dist/wasm/tree-sitter-swift.wasm +0 -0
- package/dist/web/assets/index-BcUIJvDD.css +2 -0
- package/dist/web/assets/{index-CkCM74It.js → index-Ds0yq7oU.js} +1 -7
- package/dist/web/index.html +2 -2
- package/package.json +24 -24
- package/dist/web/assets/index-eJGDkRsL.css +0 -2
package/README.md
CHANGED
|
@@ -10,13 +10,15 @@ A static code analysis platform that builds a **Knowledge Graph** from your sour
|
|
|
10
10
|
|
|
11
11
|
- **Knowledge Graph** — parses 14+ languages into nodes (functions, classes, files, etc.) and edges (calls, imports, extends, etc.)
|
|
12
12
|
- **Force-directed Graph Explorer** — interactive Sigma.js visualization with color-coded node types, hover highlighting, and filters
|
|
13
|
-
- **
|
|
14
|
-
- **BM25
|
|
13
|
+
- **AI-Generated Symbol Summaries** — optional `--summarize` flag generates 1-2 sentence summaries per symbol via OpenAI, Anthropic, or Ollama; cached by code hash
|
|
14
|
+
- **Hybrid Search (BM25 + Vector RRF)** — Reciprocal Rank Fusion of keyword + semantic search; `searchMode: 'bm25' | 'vector' | 'hybrid'` in response
|
|
15
|
+
- **Semantic Vector Search** — embeddings via `all-MiniLM-L6-v2`; enriched with summaries when available
|
|
15
16
|
- **Code AI Chat** — grounded assistant that cites source files in every answer
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
17
|
+
- **File Watcher & Auto-Reindex** — `code-intel watch` detects file saves and patches the live graph within ~1 second; WebSocket push notifies connected clients
|
|
18
|
+
- **Code Health** — `code-intel health` reports dead code, circular dependencies (Tarjan SCC), god nodes, orphan files, and a 0–100 health score
|
|
19
|
+
- **HTTP API** — REST endpoints for graph, search, inspect, blast radius, flows, health
|
|
18
20
|
- **MCP Server** — Model Context Protocol integration for LLM tooling
|
|
19
|
-
- **CLI** — analyze, serve, search, inspect, impact commands with animated progress bars and spinners
|
|
21
|
+
- **CLI** — analyze, serve, watch, search, inspect, impact, health commands with animated progress bars and spinners
|
|
20
22
|
- **Multi-language** — TypeScript, JavaScript, Python, Java, Go, C, C++, C#, Rust, PHP, Ruby, Swift, Kotlin, Dart (14 languages via tree-sitter AST)
|
|
21
23
|
- **Incremental Analysis** — `--incremental` re-parses only changed files; 10k-file repo / 3 changes: 288ms
|
|
22
24
|
- **Parallel Analysis** — `--parallel` runs parse + resolve phases on worker threads for large repos
|
|
@@ -32,6 +34,11 @@ A static code analysis platform that builds a **Knowledge Graph** from your sour
|
|
|
32
34
|
npm install -g @vohongtho.infotech/code-intel
|
|
33
35
|
```
|
|
34
36
|
|
|
37
|
+
> **Note:** You may see `npm warn ERESOLVE overriding peer dependency` warnings about `tree-sitter`. These are **harmless** — they relate to the native Node.js bindings which are not used. The CLI uses `web-tree-sitter` (WASM) exclusively. If you prefer a warning-free install, use:
|
|
38
|
+
> ```bash
|
|
39
|
+
> npm install -g @vohongtho.infotech/code-intel --legacy-peer-deps
|
|
40
|
+
> ```
|
|
41
|
+
|
|
35
42
|
The `code-intel` binary is placed in your `$PATH` automatically (via the `bin` field in `package.json`).
|
|
36
43
|
|
|
37
44
|
Verify:
|