project-brain 0.14.0 → 0.15.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 +29 -11
- package/package.json +9 -6
package/README.md
CHANGED
|
@@ -86,20 +86,24 @@ Once connected over MCP, AI assistants get these tools. The server also injects
|
|
|
86
86
|
|
|
87
87
|
### Lexical (keyword — no embeddings needed)
|
|
88
88
|
|
|
89
|
-
| Tool | What it does |
|
|
90
|
-
|
|
91
|
-
| `search_code` | Exact/keyword full-text search (BM25) over indexed code — identifiers, error strings, exact phrases. Works offline without Ollama. Not regex. |
|
|
89
|
+
| Tool | CLI | What it does |
|
|
90
|
+
|---|---|---|
|
|
91
|
+
| `search_code` | `project-brain code "<query>" [--limit N]` | Exact/keyword full-text search (BM25) over indexed code — identifiers, error strings, exact phrases. Works offline without Ollama. Not regex. |
|
|
92
92
|
|
|
93
93
|
### Structural (AST graph — exact, no embeddings needed)
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
|
98
|
-
|
|
99
|
-
| `
|
|
100
|
-
| `
|
|
101
|
-
| `
|
|
102
|
-
| `
|
|
95
|
+
Every structural tool is also a native CLI command — reusable without an MCP client, and even more offline than the MCP path (no Ollama probe, reads the local `graph.db` directly):
|
|
96
|
+
|
|
97
|
+
| Tool | CLI | What it does |
|
|
98
|
+
|---|---|---|
|
|
99
|
+
| `find_symbol` | `project-brain find <name>` | Exact symbol definition(s) by name: path, line range, kind, signature. Use when you know the name. |
|
|
100
|
+
| `find_callers` | `project-brain callers <name>` | Every symbol that calls the named symbol (who depends on X). |
|
|
101
|
+
| `find_callees` | `project-brain callees <name>` | Every symbol the named symbol calls (what X depends on). |
|
|
102
|
+
| `impact` | `project-brain impact <name> [--max-depth N]` | Blast radius — all symbols transitively affected if the named symbol changes (reverse call graph, bounded by `maxDepth`, default 6, max 20). |
|
|
103
|
+
| `trace_path` | `project-brain trace <from> <to> [--max-depth N]` | Shortest call path between two symbols (how does A reach B) — ordered caller→callee chain (default depth 8, max 20). |
|
|
104
|
+
| `repo_map` | `project-brain map [--budget N] [--focus a,b,c]` | Token-budgeted overview of the most important symbols in the codebase, ranked by PageRank over the call graph. Use for repo orientation / where to start reading. |
|
|
105
|
+
|
|
106
|
+
The CLI commands exit 0 for any executed query — including legitimate empty results (symbol not found, no callers, no path within depth). They exit 1 only for usage errors or an unindexed/unsynced project (`project-brain init`/`sync` first).
|
|
103
107
|
|
|
104
108
|
### Modules & knowledge
|
|
105
109
|
|
|
@@ -200,6 +204,20 @@ project-brain search "how does auth work"
|
|
|
200
204
|
echo "how does auth work" | project-brain search --stdin
|
|
201
205
|
```
|
|
202
206
|
|
|
207
|
+
### Structural & lexical commands (`find`, `callers`, `callees`, `impact`, `trace`, `map`, `code`)
|
|
208
|
+
|
|
209
|
+
Native CLI equivalents of the structural/lexical MCP tools — see the [Structural](#structural-ast-graph--exact-no-embeddings-needed) and [Lexical](#lexical-keyword--no-embeddings-needed) tables above for the full CLI ↔ MCP tool mapping. All read the local index directly (no Ollama probe), so they work fully offline once `project-brain sync` has run.
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
project-brain find GraphStore
|
|
213
|
+
project-brain callers runSync
|
|
214
|
+
project-brain callees runSync
|
|
215
|
+
project-brain impact parseConfig --max-depth 3
|
|
216
|
+
project-brain trace handleSearch runSync
|
|
217
|
+
project-brain map --budget 2000 --focus createServer,runSync
|
|
218
|
+
project-brain code "chargeCard" --limit 5
|
|
219
|
+
```
|
|
220
|
+
|
|
203
221
|
### `update`
|
|
204
222
|
|
|
205
223
|
Update project-brain to the latest published version, using whichever install manager (bun, pnpm, yarn, or npm) it was originally installed with.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "project-brain",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Local-first MCP server that gives AI tools semantic memory of your codebase.",
|
|
6
6
|
"author": "jcsoftdev",
|
|
@@ -40,16 +40,19 @@
|
|
|
40
40
|
"@clack/prompts": "^1.7.0",
|
|
41
41
|
"@lancedb/lancedb": "^0.30.0",
|
|
42
42
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
43
|
+
"exceljs": "^4.4.0",
|
|
44
|
+
"mammoth": "^1.11.0",
|
|
43
45
|
"ollama": "^0.6.3",
|
|
46
|
+
"unpdf": "^1.4.0",
|
|
44
47
|
"web-tree-sitter": "^0.25.10",
|
|
45
48
|
"zod": "^4.4.3"
|
|
46
49
|
},
|
|
47
50
|
"optionalDependencies": {
|
|
48
|
-
"project-brain-darwin-arm64": "0.
|
|
49
|
-
"project-brain-linux-x64": "0.
|
|
50
|
-
"project-brain-linux-arm64": "0.
|
|
51
|
-
"project-brain-windows-x64": "0.
|
|
52
|
-
"project-brain-windows-arm64": "0.
|
|
51
|
+
"project-brain-darwin-arm64": "0.15.0",
|
|
52
|
+
"project-brain-linux-x64": "0.15.0",
|
|
53
|
+
"project-brain-linux-arm64": "0.15.0",
|
|
54
|
+
"project-brain-windows-x64": "0.15.0",
|
|
55
|
+
"project-brain-windows-arm64": "0.15.0"
|
|
53
56
|
},
|
|
54
57
|
"devDependencies": {
|
|
55
58
|
"@types/bun": "latest",
|