project-brain 0.22.1 → 0.22.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-brain",
3
- "version": "0.22.1",
3
+ "version": "0.22.3",
4
4
  "type": "module",
5
5
  "description": "Local-first MCP server that gives AI tools semantic memory of your codebase.",
6
6
  "author": "jcsoftdev",
@@ -49,11 +49,11 @@
49
49
  "zod": "^4.4.3"
50
50
  },
51
51
  "optionalDependencies": {
52
- "project-brain-darwin-arm64": "0.22.1",
53
- "project-brain-linux-x64": "0.22.1",
54
- "project-brain-linux-arm64": "0.22.1",
55
- "project-brain-windows-x64": "0.22.1",
56
- "project-brain-windows-arm64": "0.22.1"
52
+ "project-brain-darwin-arm64": "0.22.3",
53
+ "project-brain-linux-x64": "0.22.3",
54
+ "project-brain-linux-arm64": "0.22.3",
55
+ "project-brain-windows-x64": "0.22.3",
56
+ "project-brain-windows-arm64": "0.22.3"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/bun": "latest",
@@ -20,7 +20,9 @@ metadata:
20
20
 
21
21
  Apply when asked for a whole-project audit — not a single diff or PR review. Works on any project type: never assume frontend/backend/mobile/CLI before discovery confirms it.
22
22
 
23
- Do not apply when: the ask is scoped to one diff, PR, or file; or the project is not project-brain-indexed (`check_health` fails) — fall back to manual discovery and say so explicitly in the output.
23
+ Do not apply when: the ask is scoped to one diff, PR, or file; or the project is not project-brain-indexed — fall back to manual discovery and say so explicitly in the output.
24
+
25
+ **Indexed means `check_health` succeeded AND reported `chunks` above zero.** An unindexed project does not fail the call: it returns `{"store":"connected","embeddings":"available","chunks":0}` — a healthy server with nothing in it. Treating only a thrown error as "not indexed" lets every later `search_context` come back empty, and the audit then reports "no findings" for a project it never actually read. Check the count, not just the call.
24
26
 
25
27
  ## Hard Rules
26
28
 
@@ -38,7 +40,7 @@ Do not apply when: the ask is scoped to one diff, PR, or file; or the project is
38
40
  | What does this depend on? | `find_callees` |
39
41
  | Blast radius | `impact` |
40
42
  | Does A reach B? | `trace_path` |
41
- | Results look empty or stale | `check_health`, then `sync_project` |
43
+ | Results look empty or stale | `check_health` (read `chunks`, not just success), then `sync_project` |
42
44
 
43
45
  - `find_callers` returning empty means no **in-repo** caller. Before reporting dead code, rule out: public API surface, dynamic dispatch, reflection, string-keyed registries, framework-convention entry points. State which you ruled out.
44
46
  - Every finding requires: Title, Category, Severity, Confidence (0-100%), Evidence (`file:line`), Business impact, Technical impact, Recommendation, Priority. Thin evidence ⇒ state the confidence and why. Never invent a finding.