@codragraph/cli 2.0.0 → 2.1.1

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.
Files changed (101) hide show
  1. package/README.md +60 -22
  2. package/dist/_shared/cgdb/schema-constants.d.ts +16 -0
  3. package/dist/_shared/cgdb/schema-constants.d.ts.map +1 -0
  4. package/dist/_shared/cgdb/schema-constants.js +70 -0
  5. package/dist/_shared/cgdb/schema-constants.js.map +1 -0
  6. package/dist/_shared/feature-clusters.d.ts +99 -0
  7. package/dist/_shared/feature-clusters.d.ts.map +1 -0
  8. package/dist/_shared/feature-clusters.js +2 -0
  9. package/dist/_shared/feature-clusters.js.map +1 -0
  10. package/dist/_shared/graph/types.d.ts +16 -2
  11. package/dist/_shared/graph/types.d.ts.map +1 -1
  12. package/dist/_shared/index.d.ts +3 -2
  13. package/dist/_shared/index.d.ts.map +1 -1
  14. package/dist/_shared/index.js +1 -1
  15. package/dist/_shared/index.js.map +1 -1
  16. package/dist/_shared/pipeline.d.ts +1 -1
  17. package/dist/_shared/pipeline.d.ts.map +1 -1
  18. package/dist/cli/ai-context.js +4 -0
  19. package/dist/cli/analyze.js +30 -27
  20. package/dist/cli/graphstore.js +21 -21
  21. package/dist/cli/index-repo.js +3 -3
  22. package/dist/cli/index.js +37 -0
  23. package/dist/cli/setup.js +9 -5
  24. package/dist/cli/tool.d.ts +25 -0
  25. package/dist/cli/tool.js +74 -0
  26. package/dist/cli/wiki.js +3 -3
  27. package/dist/config/supported-languages.d.ts +3 -3
  28. package/dist/config/supported-languages.js +3 -3
  29. package/dist/core/augmentation/engine.js +7 -7
  30. package/dist/core/cgdb/cgdb-adapter.d.ts +176 -0
  31. package/dist/core/cgdb/cgdb-adapter.js +1336 -0
  32. package/dist/core/cgdb/content-read.d.ts +46 -0
  33. package/dist/core/cgdb/content-read.js +64 -0
  34. package/dist/core/cgdb/csv-generator.d.ts +29 -0
  35. package/dist/core/cgdb/csv-generator.js +523 -0
  36. package/dist/core/cgdb/pool-adapter.d.ts +93 -0
  37. package/dist/core/cgdb/pool-adapter.js +550 -0
  38. package/dist/core/cgdb/schema.d.ts +63 -0
  39. package/dist/core/cgdb/schema.js +557 -0
  40. package/dist/core/embeddings/embedder.js +4 -2
  41. package/dist/core/embeddings/embedding-pipeline.js +4 -4
  42. package/dist/core/graphstore/cgdb-row-source.d.ts +19 -0
  43. package/dist/core/graphstore/cgdb-row-source.js +141 -0
  44. package/dist/core/graphstore/index.d.ts +2 -2
  45. package/dist/core/graphstore/index.js +4 -4
  46. package/dist/core/group/bridge-db.d.ts +2 -2
  47. package/dist/core/group/bridge-db.js +18 -18
  48. package/dist/core/group/bridge-schema.d.ts +4 -4
  49. package/dist/core/group/bridge-schema.js +4 -4
  50. package/dist/core/group/cross-impact.js +3 -3
  51. package/dist/core/group/service.d.ts +16 -0
  52. package/dist/core/group/service.js +360 -0
  53. package/dist/core/group/sync.js +4 -4
  54. package/dist/core/ingestion/emit-references.d.ts +1 -1
  55. package/dist/core/ingestion/emit-references.js +1 -1
  56. package/dist/core/ingestion/feature-cluster-processor.d.ts +62 -0
  57. package/dist/core/ingestion/feature-cluster-processor.js +626 -0
  58. package/dist/core/ingestion/finalize-orchestrator.js +1 -1
  59. package/dist/core/ingestion/model/registration-table.js +1 -0
  60. package/dist/core/ingestion/model/resolve.d.ts +2 -2
  61. package/dist/core/ingestion/model/resolve.js +3 -3
  62. package/dist/core/ingestion/model/semantic-model.d.ts +1 -1
  63. package/dist/core/ingestion/model/semantic-model.js +1 -1
  64. package/dist/core/ingestion/model/symbol-table.d.ts +1 -1
  65. package/dist/core/ingestion/model/symbol-table.js +1 -1
  66. package/dist/core/ingestion/pipeline-phases/feature-clusters.d.ts +17 -0
  67. package/dist/core/ingestion/pipeline-phases/feature-clusters.js +88 -0
  68. package/dist/core/ingestion/pipeline-phases/index.d.ts +1 -0
  69. package/dist/core/ingestion/pipeline-phases/index.js +1 -0
  70. package/dist/core/ingestion/pipeline.d.ts +4 -0
  71. package/dist/core/ingestion/pipeline.js +9 -5
  72. package/dist/core/run-analyze.d.ts +1 -0
  73. package/dist/core/run-analyze.js +36 -30
  74. package/dist/core/search/bm25-index.d.ts +3 -3
  75. package/dist/core/search/bm25-index.js +9 -9
  76. package/dist/core/search/hybrid-search.js +2 -2
  77. package/dist/core/wiki/generator.d.ts +2 -2
  78. package/dist/core/wiki/generator.js +4 -4
  79. package/dist/core/wiki/graph-queries.d.ts +2 -2
  80. package/dist/core/wiki/graph-queries.js +5 -5
  81. package/dist/mcp/core/cgdb-adapter.d.ts +5 -0
  82. package/dist/mcp/core/cgdb-adapter.js +5 -0
  83. package/dist/mcp/core/embedder.js +6 -3
  84. package/dist/mcp/local/local-backend.d.ts +14 -2
  85. package/dist/mcp/local/local-backend.js +396 -18
  86. package/dist/mcp/resources.js +139 -0
  87. package/dist/mcp/server.js +3 -3
  88. package/dist/mcp/tools.js +175 -3
  89. package/dist/server/analyze-worker.js +2 -2
  90. package/dist/server/api.js +147 -31
  91. package/dist/storage/repo-manager.d.ts +10 -5
  92. package/dist/storage/repo-manager.js +10 -6
  93. package/dist/types/pipeline.d.ts +2 -0
  94. package/hooks/claude/codragraph-hook.cjs +4 -4
  95. package/package.json +15 -6
  96. package/scripts/build.js +21 -21
  97. package/skills/codragraph-cli.md +17 -1
  98. package/skills/codragraph-guide.md +6 -2
  99. package/skills/codragraph-onboarding.md +2 -2
  100. package/vendor/tree-sitter-proto/bindings/node/index.js +3 -3
  101. package/vendor/tree-sitter-proto/src/node-types.json +1 -1
package/README.md CHANGED
@@ -10,7 +10,7 @@ Works with **Cursor**, **Claude Code**, **Codex**, **Windsurf**, **Cline**, **Op
10
10
 
11
11
  ## Why?
12
12
 
13
- AI coding tools don't understand your codebase structure. They edit a function without knowing 47 other functions depend on it. CodraGraph fixes this by **precomputing every dependency, call chain, and relationship** into a queryable graph.
13
+ AI coding tools don't understand your codebase structure. They edit a function without knowing 47 other functions depend on it, or which files make up a product area like Settings, Auth, AI, or Billing. CodraGraph fixes this by **precomputing every dependency, call chain, feature cluster, and relationship** into a queryable graph.
14
14
 
15
15
  **Three commands to give your AI agent full codebase awareness.**
16
16
 
@@ -23,6 +23,8 @@ npx @codragraph/cli analyze
23
23
 
24
24
  That's it. This indexes the codebase, installs agent skills, registers Claude Code hooks, and creates `AGENTS.md` / `CLAUDE.md` context files — all in one command.
25
25
 
26
+ The same CLI commands work in Windows PowerShell, macOS bash/zsh, and Linux shells. Use `npx @codragraph/cli ...` for no-install runs or `codragraph ...` after a global install.
27
+
26
28
  To configure MCP for your editor, run `npx @codragraph/cli setup` once — or set it up manually below.
27
29
 
28
30
  `codragraph setup` auto-detects your editors and writes the correct global MCP config. You only need to run it once.
@@ -53,16 +55,16 @@ If you prefer to configure manually instead of using `codragraph setup`:
53
55
 
54
56
  ```bash
55
57
  # macOS / Linux
56
- claude mcp add codragraph -- npx -y @codragraph/cli@latest mcp
58
+ claude mcp add codragraph -- npx -y @codragraph/cli@2.1.1 mcp
57
59
 
58
60
  # Windows
59
- claude mcp add codragraph -- cmd /c npx -y @codragraph/cli@latest mcp
61
+ claude mcp add codragraph -- cmd /c npx -y @codragraph/cli@2.1.1 mcp
60
62
  ```
61
63
 
62
64
  ### Codex (full support — MCP + skills)
63
65
 
64
66
  ```bash
65
- codex mcp add codragraph -- npx -y @codragraph/cli@latest mcp
67
+ codex mcp add codragraph -- npx -y @codragraph/cli@2.1.1 mcp
66
68
  ```
67
69
 
68
70
  ### Cursor / Windsurf
@@ -74,7 +76,7 @@ Add to `~/.cursor/mcp.json` (global — works for all projects):
74
76
  "mcpServers": {
75
77
  "codragraph": {
76
78
  "command": "npx",
77
- "args": ["-y", "@codragraph/cli@latest", "mcp"]
79
+ "args": ["-y", "@codragraph/cli@2.1.1", "mcp"]
78
80
  }
79
81
  }
80
82
  }
@@ -89,7 +91,7 @@ Add to `~/.config/opencode/config.json`:
89
91
  "mcp": {
90
92
  "codragraph": {
91
93
  "command": "npx",
92
- "args": ["-y", "@codragraph/cli@latest", "mcp"]
94
+ "args": ["-y", "@codragraph/cli@2.1.1", "mcp"]
93
95
  }
94
96
  }
95
97
  }
@@ -104,9 +106,10 @@ CodraGraph builds a complete knowledge graph of your codebase through a multi-ph
104
106
  3. **Resolution** — Resolves imports and function calls across files with language-aware logic
105
107
  - **Field & Property Type Resolution** — Tracks field types across classes and interfaces for deep chain resolution (e.g., `user.address.city.getName()`)
106
108
  - **Return-Type-Aware Variable Binding** — Infers variable types from function return types, enabling accurate call-result binding
107
- 4. **Clustering** — Groups related symbols into functional communities
109
+ 4. **Clustering** — Groups related symbols into structural communities
108
110
  5. **Processes** — Traces execution flows from entry points through call chains
109
- 6. **Search** — Builds hybrid search indexes for fast retrieval
111
+ 6. **Feature clusters** — Builds human-facing product/domain areas with members, dependencies, and line ranges
112
+ 7. **Search** — Builds hybrid search indexes for fast retrieval
110
113
 
111
114
  The result is a **LadybugDB graph database** stored locally in `.codragraph/` with full-text search and semantic embeddings.
112
115
 
@@ -122,6 +125,9 @@ Your AI agent gets these tools automatically:
122
125
  | `impact` | Blast radius analysis with depth grouping and confidence | Optional |
123
126
  | `detect_changes` | Git-diff impact — maps changed lines to affected processes | Optional |
124
127
  | `rename` | Multi-file coordinated rename with graph + text search | Optional |
128
+ | `feature_clusters` / `cluster_query` | Product/domain feature map for targeted context | Optional |
129
+ | `feature_context` / `cluster_context` / `context_pack` | Files, line ranges, dependencies, and flows for one feature | Optional |
130
+ | `cluster_impact` | Feature-level blast radius and safe edit surface | Optional |
125
131
  | `cypher` | Raw Cypher graph queries | Optional |
126
132
 
127
133
  > With one indexed repo, the `repo` param is optional. With multiple, specify which: `query({query: "auth", repo: "my-app"})`.
@@ -133,6 +139,8 @@ Your AI agent gets these tools automatically:
133
139
  | `codragraph://repos` | List all indexed repositories (read first) |
134
140
  | `codragraph://repo/{name}/context` | Codebase stats, staleness check, and available tools |
135
141
  | `codragraph://repo/{name}/clusters` | All functional clusters with cohesion scores |
142
+ | `codragraph://repo/{name}/feature-clusters` | Product/domain feature areas |
143
+ | `codragraph://repo/{name}/feature/{name}` | Focused feature context pack |
136
144
  | `codragraph://repo/{name}/cluster/{name}` | Cluster members and details |
137
145
  | `codragraph://repo/{name}/processes` | All execution flows |
138
146
  | `codragraph://repo/{name}/process/{name}` | Full process trace with steps |
@@ -143,7 +151,7 @@ Your AI agent gets these tools automatically:
143
151
  | Prompt | What It Does |
144
152
  |--------|-------------|
145
153
  | `detect_impact` | Pre-commit change analysis — scope, affected processes, risk level |
146
- | `generate_map` | Architecture documentation from the knowledge graph with mermaid diagrams |
154
+ | `generate_map` | Architecture documentation from the knowledge graph with simple Mermaid diagrams |
147
155
 
148
156
  ## CLI Commands
149
157
 
@@ -158,6 +166,11 @@ codragraph analyze --max-file-size 1024 # Skip files larger than N KB (default:
158
166
  codragraph analyze --compress brotli # Per-row body compression. Also: zstd, none.
159
167
  codragraph profile-heap [path] # Run analyze with v8 heap-snapshot instrumentation
160
168
  codragraph profile-heap --no-summary # Same, but skip the post-run RSS / heapUsed table
169
+ codragraph feature-clusters # List product/domain feature areas
170
+ codragraph cluster-query settings # Search product/domain feature areas
171
+ codragraph feature-context Settings # Focus files, line ranges, flows, dependencies for one feature
172
+ codragraph context-pack Settings # Compact agent context pack for one feature
173
+ codragraph cluster-impact Settings --direction both # Feature-level blast radius
161
174
  codragraph mcp # Start MCP server (stdio) — serves all indexed repos
162
175
  codragraph serve # Start local HTTP server (multi-repo) for web UI
163
176
  codragraph index # Register an existing .codragraph/ folder into the global registry
@@ -184,11 +197,19 @@ codragraph group status <name> # Check staleness of repos in a group
184
197
  Set these env vars to use a remote OpenAI-compatible `/v1/embeddings` endpoint instead of the local model:
185
198
 
186
199
  ```bash
200
+ # macOS/Linux bash/zsh
187
201
  export CODRAGRAPH_EMBEDDING_URL=http://your-server:8080/v1
188
202
  export CODRAGRAPH_EMBEDDING_MODEL=BAAI/bge-large-en-v1.5
189
203
  export CODRAGRAPH_EMBEDDING_DIMS=1024 # optional, default 384
190
204
  export CODRAGRAPH_EMBEDDING_API_KEY=your-key # optional, default: "unused"
191
205
  codragraph analyze . --embeddings
206
+
207
+ # Windows PowerShell
208
+ $env:CODRAGRAPH_EMBEDDING_URL = "http://your-server:8080/v1"
209
+ $env:CODRAGRAPH_EMBEDDING_MODEL = "BAAI/bge-large-en-v1.5"
210
+ $env:CODRAGRAPH_EMBEDDING_DIMS = "1024"
211
+ $env:CODRAGRAPH_EMBEDDING_API_KEY = "your-key"
212
+ codragraph analyze . --embeddings
192
213
  ```
193
214
 
194
215
  Works with Infinity, vLLM, TEI, llama.cpp, Ollama, LM Studio, or OpenAI. When unset, local embeddings are used unchanged.
@@ -197,6 +218,12 @@ Works with Infinity, vLLM, TEI, llama.cpp, Ollama, LM Studio, or OpenAI. When un
197
218
 
198
219
  CodraGraph supports indexing multiple repositories. Each `codragraph analyze` registers the repo in a global registry (`~/.codragraph/registry.json`). The MCP server serves all indexed repos automatically.
199
220
 
221
+ For one product spread across many repos, use `codragraph group ...` plus
222
+ `repo: "@<group>"` in MCP tools. `feature_clusters`, `feature_context`, and
223
+ `cluster_impact` fan out across members and include contract-aware cross-repo
224
+ cluster links when the group Contract Registry has matching provider/consumer
225
+ edges.
226
+
200
227
  ## Supported Languages
201
228
 
202
229
  TypeScript, JavaScript, Python, Java, C, C++, C#, Go, Rust, PHP, Kotlin, Swift, Ruby
@@ -234,7 +261,7 @@ Installed automatically by both `codragraph analyze` (per-repo) and `codragraph
234
261
 
235
262
  ## Requirements
236
263
 
237
- - Node.js >= 18
264
+ - Node.js >= 20
238
265
  - Git repository (uses git for commit tracking)
239
266
 
240
267
  ## Release candidates
@@ -265,19 +292,20 @@ bigger cycle) and `N` increments per published rc. Example sequence:
265
292
 
266
293
  This crash was caused by a dependency URL format that is incompatible with
267
294
  certain npm/arborist versions ([npm/cli#8126](https://github.com/npm/cli/issues/8126)).
268
- It is fixed in **codragraph v1.6.2+**. Upgrade to the latest version:
295
+ It is fixed in **codragraph v1.6.2+**. Upgrade to the current workspace
296
+ version, or pin the version your team has validated:
269
297
 
270
298
  ```bash
271
- npx @codragraph/cli@latest analyze # always uses the newest release
272
- # or
273
- npm install -g @codragraph/cli@latest # upgrade a global install
299
+ npx @codragraph/cli@2.1.1 analyze # no global install
300
+ # or
301
+ npm install -g @codragraph/cli@2.1.1 # upgrade a global install
274
302
  ```
275
303
 
276
304
  If you still hit npm install issues after upgrading, these generic workarounds
277
305
  may help:
278
306
 
279
307
  ```bash
280
- npm install -g npm@latest # update npm itself
308
+ npm install -g npm@10 # update npm within the Node 20 line
281
309
  npm cache clean --force # clear a possibly corrupt cache
282
310
  ```
283
311
 
@@ -301,9 +329,13 @@ npm install -g @codragraph/cli
301
329
  For very large repositories:
302
330
 
303
331
  ```bash
304
- # Increase Node.js heap size
332
+ # Increase Node.js heap size on macOS/Linux bash/zsh
305
333
  NODE_OPTIONS="--max-old-space-size=16384" npx @codragraph/cli analyze
306
334
 
335
+ # Windows PowerShell
336
+ $env:NODE_OPTIONS = "--max-old-space-size=16384"
337
+ npx @codragraph/cli analyze
338
+
307
339
  # Exclude large directories
308
340
  echo "vendor/" >> .codragraphignore
309
341
  echo "dist/" >> .codragraphignore
@@ -325,7 +357,7 @@ are too big.
325
357
 
326
358
  ### Index size — opt-in per-row compression
327
359
 
328
- For repos where `.codragraph/lbug` itself has grown large:
360
+ For repos where `.codragraph/cgdb` itself has grown large:
329
361
 
330
362
  ```bash
331
363
  codragraph analyze --compress brotli # Node ≥ 18, brotli quality 6
@@ -334,7 +366,7 @@ codragraph analyze --compress none # explicit default
334
366
  ```
335
367
 
336
368
  `--compress` routes every node-row content field through the matching
337
- encoder before it's written to the CSV / lbug; readers decode
369
+ encoder before it's written to the CSV / cgdb; readers decode
338
370
  transparently via the per-row `contentEncoding` tag. With the flag
339
371
  unset, the on-disk layout is byte-identical to pre-1.8 indexes. Pre-1.8
340
372
  indexes auto-trigger a full re-analyze the first time a 1.8+ CLI runs
@@ -348,9 +380,13 @@ By default the walker skips files larger than **512 KB** (see log line `Skipped
348
380
  # CLI flag (takes precedence over the env var)
349
381
  npx @codragraph/cli analyze --max-file-size 2048 # skip only files > 2 MB
350
382
 
351
- # Environment variable (persists across commands)
383
+ # Environment variable on macOS/Linux bash/zsh
352
384
  export CODRAGRAPH_MAX_FILE_SIZE=2048
353
385
  npx @codragraph/cli analyze
386
+
387
+ # Windows PowerShell
388
+ $env:CODRAGRAPH_MAX_FILE_SIZE = "2048"
389
+ npx @codragraph/cli analyze
354
390
  ```
355
391
 
356
392
  Values above **32768 KB (32 MB)** are clamped to the tree-sitter parser ceiling; invalid values fall back to the 512 KB default with a one-time warning. When an override is active, `analyze` prints the effective threshold in its startup banner (e.g. `CODRAGRAPH_MAX_FILE_SIZE: effective threshold 2048KB (default 512KB)`).
@@ -366,10 +402,12 @@ Values above **32768 KB (32 MB)** are clamped to the tree-sitter parser ceiling;
366
402
 
367
403
  CodraGraph also has a browser-based UI at [codragraph.vercel.app](https://codragraph.vercel.app) — 100% client-side, your code never leaves the browser.
368
404
 
369
- **Local Backend Mode:** Run `codragraph serve` and open the web UI locally — it auto-detects the server and shows all your indexed repos, with full AI chat support. No need to re-upload or re-index. The agent's tools (Cypher queries, search, code navigation) route through the backend HTTP API automatically.
405
+ **Local Backend Mode:** Run `codragraph serve` and open the web UI locally — it auto-detects the server and shows all your indexed repos, feature clusters, dependency context, and full AI chat support. No need to re-upload or re-index. The agent's tools (Cypher queries, search, code navigation) route through the backend HTTP API automatically.
370
406
 
371
407
  ## License
372
408
 
373
- [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
409
+ [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
374
410
 
375
- Permissive open source use, modify, and distribute freely, including commercially.
411
+ Permissive open source. You can use, modify, redistribute, bundle, and host
412
+ the CLI commercially, subject to the Apache-2.0 notice and attribution
413
+ requirements.
@@ -0,0 +1,16 @@
1
+ /**
2
+ * LadybugDB schema constants — single source of truth.
3
+ *
4
+ * NODE_TABLES and REL_TYPES define what the knowledge graph can contain.
5
+ * Both CLI and web must agree on these for data compatibility.
6
+ *
7
+ * Full DDL schemas remain in each package's own schema.ts because
8
+ * the CLI uses native LadybugDB and the web uses WASM.
9
+ */
10
+ export declare const NODE_TABLES: readonly ["File", "Folder", "Function", "Class", "Interface", "Method", "CodeElement", "Community", "Process", "FeatureCluster", "Section", "Struct", "Enum", "Macro", "Typedef", "Union", "Namespace", "Trait", "Impl", "TypeAlias", "Const", "Static", "Variable", "Property", "Record", "Delegate", "Annotation", "Constructor", "Template", "Module", "Route", "Tool"];
11
+ export type NodeTableName = (typeof NODE_TABLES)[number];
12
+ export declare const REL_TABLE_NAME = "CodeRelation";
13
+ export declare const REL_TYPES: readonly ["CONTAINS", "DEFINES", "IMPORTS", "CALLS", "EXTENDS", "IMPLEMENTS", "HAS_METHOD", "HAS_PROPERTY", "ACCESSES", "METHOD_OVERRIDES", "OVERRIDES", "METHOD_IMPLEMENTS", "MEMBER_OF", "STEP_IN_PROCESS", "HANDLES_ROUTE", "FETCHES", "HANDLES_TOOL", "ENTRY_POINT_OF", "WRAPS", "QUERIES", "FEATURE_MEMBER_OF", "FEATURE_DEPENDS_ON"];
14
+ export type RelType = (typeof REL_TYPES)[number];
15
+ export declare const EMBEDDING_TABLE_NAME = "CodeEmbedding";
16
+ //# sourceMappingURL=schema-constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-constants.d.ts","sourceRoot":"","sources":["../../src/cgdb/schema-constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,WAAW,4WAiCd,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAE7C,eAAO,MAAM,SAAS,4UAuBZ,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjD,eAAO,MAAM,oBAAoB,kBAAkB,CAAC"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * LadybugDB schema constants — single source of truth.
3
+ *
4
+ * NODE_TABLES and REL_TYPES define what the knowledge graph can contain.
5
+ * Both CLI and web must agree on these for data compatibility.
6
+ *
7
+ * Full DDL schemas remain in each package's own schema.ts because
8
+ * the CLI uses native LadybugDB and the web uses WASM.
9
+ */
10
+ export const NODE_TABLES = [
11
+ 'File',
12
+ 'Folder',
13
+ 'Function',
14
+ 'Class',
15
+ 'Interface',
16
+ 'Method',
17
+ 'CodeElement',
18
+ 'Community',
19
+ 'Process',
20
+ 'FeatureCluster',
21
+ 'Section',
22
+ 'Struct',
23
+ 'Enum',
24
+ 'Macro',
25
+ 'Typedef',
26
+ 'Union',
27
+ 'Namespace',
28
+ 'Trait',
29
+ 'Impl',
30
+ 'TypeAlias',
31
+ 'Const',
32
+ 'Static',
33
+ 'Variable',
34
+ 'Property',
35
+ 'Record',
36
+ 'Delegate',
37
+ 'Annotation',
38
+ 'Constructor',
39
+ 'Template',
40
+ 'Module',
41
+ 'Route',
42
+ 'Tool',
43
+ ];
44
+ export const REL_TABLE_NAME = 'CodeRelation';
45
+ export const REL_TYPES = [
46
+ 'CONTAINS',
47
+ 'DEFINES',
48
+ 'IMPORTS',
49
+ 'CALLS',
50
+ 'EXTENDS',
51
+ 'IMPLEMENTS',
52
+ 'HAS_METHOD',
53
+ 'HAS_PROPERTY',
54
+ 'ACCESSES',
55
+ 'METHOD_OVERRIDES',
56
+ 'OVERRIDES', // Legacy compat alias — kept until all stored indexes are migrated
57
+ 'METHOD_IMPLEMENTS',
58
+ 'MEMBER_OF',
59
+ 'STEP_IN_PROCESS',
60
+ 'HANDLES_ROUTE',
61
+ 'FETCHES',
62
+ 'HANDLES_TOOL',
63
+ 'ENTRY_POINT_OF',
64
+ 'WRAPS',
65
+ 'QUERIES',
66
+ 'FEATURE_MEMBER_OF',
67
+ 'FEATURE_DEPENDS_ON',
68
+ ];
69
+ export const EMBEDDING_TABLE_NAME = 'CodeEmbedding';
70
+ //# sourceMappingURL=schema-constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-constants.js","sourceRoot":"","sources":["../../src/cgdb/schema-constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM;IACN,QAAQ;IACR,UAAU;IACV,OAAO;IACP,WAAW;IACX,QAAQ;IACR,aAAa;IACb,WAAW;IACX,SAAS;IACT,gBAAgB;IAChB,SAAS;IACT,QAAQ;IACR,MAAM;IACN,OAAO;IACP,SAAS;IACT,OAAO;IACP,WAAW;IACX,OAAO;IACP,MAAM;IACN,WAAW;IACX,OAAO;IACP,QAAQ;IACR,UAAU;IACV,UAAU;IACV,QAAQ;IACR,UAAU;IACV,YAAY;IACZ,aAAa;IACb,UAAU;IACV,QAAQ;IACR,OAAO;IACP,MAAM;CACE,CAAC;AAIX,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC;AAE7C,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,UAAU;IACV,SAAS;IACT,SAAS;IACT,OAAO;IACP,SAAS;IACT,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,UAAU;IACV,kBAAkB;IAClB,WAAW,EAAE,mEAAmE;IAChF,mBAAmB;IACnB,WAAW;IACX,iBAAiB;IACjB,eAAe;IACf,SAAS;IACT,cAAc;IACd,gBAAgB;IAChB,OAAO;IACP,SAAS;IACT,mBAAmB;IACnB,oBAAoB;CACZ,CAAC;AAIX,MAAM,CAAC,MAAM,oBAAoB,GAAG,eAAe,CAAC"}
@@ -0,0 +1,99 @@
1
+ import type { NodeLabel } from './graph/types.js';
2
+ export type FeatureClusterKind = 'feature' | 'page' | 'domain' | 'service' | 'api' | 'tooling' | 'data' | 'docs' | 'test' | 'infrastructure';
3
+ export interface FeatureClusterSignal {
4
+ kind: 'path' | 'symbol' | 'route' | 'tool' | 'process' | 'community' | 'test' | 'docs' | 'package' | 'contract';
5
+ value: string;
6
+ weight: number;
7
+ }
8
+ export type ClusterSignal = FeatureClusterSignal;
9
+ export interface CrossRepoClusterLink {
10
+ sourceRepo: string;
11
+ sourceService?: string;
12
+ sourceClusterId: string;
13
+ sourceClusterName?: string;
14
+ targetRepo: string;
15
+ targetService?: string;
16
+ targetClusterId?: string;
17
+ targetClusterName?: string;
18
+ contractName?: string;
19
+ relationship: 'provider' | 'consumer' | 'shared-contract' | 'depends-on';
20
+ confidence: number;
21
+ evidence: string[];
22
+ }
23
+ export interface FeatureCluster {
24
+ id: string;
25
+ name: string;
26
+ slug: string;
27
+ featureKind: FeatureClusterKind;
28
+ summary: string;
29
+ description: string;
30
+ repo?: string;
31
+ service?: string;
32
+ signals: string[];
33
+ memberCount: number;
34
+ entryPointIds: string[];
35
+ routes: string[];
36
+ tools: string[];
37
+ testCoverageHints: string[];
38
+ lastIndexedCommit?: string;
39
+ confidence: number;
40
+ source: 'heuristic' | 'manual' | 'imported';
41
+ crossRepoLinks?: CrossRepoClusterLink[];
42
+ }
43
+ export interface FeatureClusterMember {
44
+ nodeId?: string;
45
+ id?: string;
46
+ clusterId?: string;
47
+ name?: string;
48
+ label?: NodeLabel;
49
+ type?: NodeLabel;
50
+ filePath?: string;
51
+ startLine?: number;
52
+ endLine?: number;
53
+ role?: 'entrypoint' | 'definition' | 'implementation' | 'supporting';
54
+ confidence: number;
55
+ signals: string[];
56
+ }
57
+ export interface FeatureClusterDependency {
58
+ sourceClusterId: string;
59
+ targetClusterId: string;
60
+ edgeCount: number;
61
+ relationshipTypes: string[];
62
+ confidence: number;
63
+ }
64
+ export interface FeatureClusterReference {
65
+ id: string;
66
+ name: string;
67
+ slug?: string;
68
+ featureKind?: FeatureClusterKind | string;
69
+ confidence?: number;
70
+ reason?: string;
71
+ }
72
+ export interface FeatureContextPack {
73
+ cluster: FeatureCluster;
74
+ members: FeatureClusterMember[];
75
+ dependencies: {
76
+ incoming: FeatureClusterReference[];
77
+ outgoing: FeatureClusterReference[];
78
+ };
79
+ dependencyEdges?: FeatureClusterDependency[];
80
+ entryPoints?: FeatureClusterMember[];
81
+ routes?: FeatureClusterMember[];
82
+ tools?: FeatureClusterMember[];
83
+ processes?: Array<{
84
+ id: string;
85
+ label: string;
86
+ processType?: string;
87
+ stepCount?: number;
88
+ }>;
89
+ tests?: FeatureClusterMember[];
90
+ docs?: FeatureClusterMember[];
91
+ crossRepoLinks?: CrossRepoClusterLink[];
92
+ safeEditSurface?: {
93
+ files: string[];
94
+ symbols: string[];
95
+ warnings: string[];
96
+ };
97
+ }
98
+ export type ClusterContextPack = FeatureContextPack;
99
+ //# sourceMappingURL=feature-clusters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-clusters.d.ts","sourceRoot":"","sources":["../src/feature-clusters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,MAAM,GACN,QAAQ,GACR,SAAS,GACT,KAAK,GACL,SAAS,GACT,MAAM,GACN,MAAM,GACN,MAAM,GACN,gBAAgB,CAAC;AAErB,MAAM,WAAW,oBAAoB;IACnC,IAAI,EACA,MAAM,GACN,QAAQ,GACR,OAAO,GACP,MAAM,GACN,SAAS,GACT,WAAW,GACX,MAAM,GACN,MAAM,GACN,SAAS,GACT,UAAU,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAEjD,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;I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IAC/B,IAAI,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACxC,eAAe,CAAC,EAAE;QAChB,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;KACpB,CAAC;CACH;AAED,MAAM,MAAM,kBAAkB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=feature-clusters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-clusters.js","sourceRoot":"","sources":["../src/feature-clusters.ts"],"names":[],"mappings":""}
@@ -5,7 +5,7 @@
5
5
  * Do NOT add Node.js-specific or browser-specific imports here.
6
6
  */
7
7
  import { SupportedLanguages } from '../languages.js';
8
- export type NodeLabel = 'Project' | 'Package' | 'Module' | 'Folder' | 'File' | 'Class' | 'Function' | 'Method' | 'Variable' | 'Interface' | 'Enum' | 'Decorator' | 'Import' | 'Type' | 'CodeElement' | 'Community' | 'Process' | 'Struct' | 'Macro' | 'Typedef' | 'Union' | 'Namespace' | 'Trait' | 'Impl' | 'TypeAlias' | 'Const' | 'Static' | 'Property' | 'Record' | 'Delegate' | 'Annotation' | 'Constructor' | 'Template' | 'Section' | 'Route' | 'Tool';
8
+ export type NodeLabel = 'Project' | 'Package' | 'Module' | 'Folder' | 'File' | 'Class' | 'Function' | 'Method' | 'Variable' | 'Interface' | 'Enum' | 'Decorator' | 'Import' | 'Type' | 'CodeElement' | 'Community' | 'Process' | 'FeatureCluster' | 'Struct' | 'Macro' | 'Typedef' | 'Union' | 'Namespace' | 'Trait' | 'Impl' | 'TypeAlias' | 'Const' | 'Static' | 'Property' | 'Record' | 'Delegate' | 'Annotation' | 'Constructor' | 'Template' | 'Section' | 'Route' | 'Tool';
9
9
  export type NodeProperties = {
10
10
  name: string;
11
11
  filePath: string;
@@ -45,9 +45,23 @@ export type NodeProperties = {
45
45
  responseKeys?: string[];
46
46
  errorKeys?: string[];
47
47
  middleware?: string[];
48
+ slug?: string;
49
+ featureKind?: string;
50
+ summary?: string;
51
+ repo?: string;
52
+ service?: string;
53
+ signals?: string[];
54
+ memberCount?: number;
55
+ entryPointIds?: string[];
56
+ routes?: string[];
57
+ tools?: string[];
58
+ testCoverageHints?: string[];
59
+ lastIndexedCommit?: string;
60
+ confidence?: number;
61
+ source?: string;
48
62
  [key: string]: unknown;
49
63
  };
50
- export type RelationshipType = 'CONTAINS' | 'CALLS' | 'INHERITS' | 'METHOD_OVERRIDES' | 'METHOD_IMPLEMENTS' | 'IMPORTS' | 'USES' | 'DEFINES' | 'DECORATES' | 'IMPLEMENTS' | 'EXTENDS' | 'HAS_METHOD' | 'HAS_PROPERTY' | 'ACCESSES' | 'MEMBER_OF' | 'STEP_IN_PROCESS' | 'HANDLES_ROUTE' | 'FETCHES' | 'HANDLES_TOOL' | 'ENTRY_POINT_OF' | 'WRAPS' | 'QUERIES';
64
+ export type RelationshipType = 'CONTAINS' | 'CALLS' | 'INHERITS' | 'METHOD_OVERRIDES' | 'METHOD_IMPLEMENTS' | 'IMPORTS' | 'USES' | 'DEFINES' | 'DECORATES' | 'IMPLEMENTS' | 'EXTENDS' | 'HAS_METHOD' | 'HAS_PROPERTY' | 'ACCESSES' | 'MEMBER_OF' | 'STEP_IN_PROCESS' | 'HANDLES_ROUTE' | 'FETCHES' | 'HANDLES_TOOL' | 'ENTRY_POINT_OF' | 'WRAPS' | 'QUERIES' | 'FEATURE_MEMBER_OF' | 'FEATURE_DEPENDS_ON';
51
65
  export interface GraphNode {
52
66
  id: string;
53
67
  label: NodeLabel;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/graph/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,SAAS,GACjB,SAAS,G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AC;IACd;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,SAAS;QAClB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;KACxB,EAAE,CAAC;CACL"}
@@ -1,9 +1,10 @@
1
1
  export type { NodeLabel, NodeProperties, RelationshipType, GraphNode, GraphRelationship, } from './graph/types.js';
2
- export { NODE_TABLES, REL_TABLE_NAME, REL_TYPES, EMBEDDING_TABLE_NAME, } from './lbug/schema-constants.js';
3
- export type { NodeTableName, RelType } from './lbug/schema-constants.js';
2
+ export { NODE_TABLES, REL_TABLE_NAME, REL_TYPES, EMBEDDING_TABLE_NAME, } from './cgdb/schema-constants.js';
3
+ export type { NodeTableName, RelType } from './cgdb/schema-constants.js';
4
4
  export { SupportedLanguages } from './languages.js';
5
5
  export { getLanguageFromFilename, getSyntaxLanguageFromFilename } from './language-detection.js';
6
6
  export type { MroStrategy } from './mro-strategy.js';
7
+ export type { FeatureClusterKind, FeatureClusterSignal, ClusterSignal, CrossRepoClusterLink, FeatureCluster, FeatureClusterMember, FeatureClusterDependency, FeatureClusterReference, FeatureContextPack, ClusterContextPack, } from './feature-clusters.js';
7
8
  export type { PipelinePhase, PipelineProgress } from './pipeline.js';
8
9
  export type { SymbolDefinition } from './scope-resolution/symbol-definition.js';
9
10
  export type { ScopeId, DefId, ScopeKind, Range, Capture, CaptureMatch, BindingRef, ImportEdge, TypeRef, Scope, ResolutionEvidence, Resolution, Reference, ReferenceIndex, LookupParams, RegistryContributor, ParsedImport, ParsedTypeBinding, WorkspaceIndex, Callsite, ScopeLookup, } from './scope-resolution/types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,iBAAiB,GAClB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BAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,YAAY,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EACL,gCAAgC,EAChC,kBAAkB,GACnB,MAAM,6CAA6C,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAClG,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,YAAY,GACb,MAAM,0CAA0C,CAAC;AAGlD,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACrF,YAAY,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3F,YAAY,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,YAAY,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAG1E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,YAAY,EACV,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  // Schema constants
2
- export { NODE_TABLES, REL_TABLE_NAME, REL_TYPES, EMBEDDING_TABLE_NAME, } from './lbug/schema-constants.js';
2
+ export { NODE_TABLES, REL_TABLE_NAME, REL_TYPES, EMBEDDING_TABLE_NAME, } from './cgdb/schema-constants.js';
3
3
  // Language support
4
4
  export { SupportedLanguages } from './languages.js';
5
5
  export { getLanguageFromFilename, getSyntaxLanguageFromFilename } from './language-det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,2DAA2D;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAOxE,oFAAoF;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAMvF,uEAAuE;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAUpE,sEAAsE;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAErF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AAKvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAKrF,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAE1E,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAEpF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEpG,OAAO,EACL,gCAAgC,EAChC,kBAAkB,GACnB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAQlG,2EAA2E;AAC3E,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAErF,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E,gEAAgE;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAMpE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Pipeline progress types — shared between CLI and web.
3
3
  */
4
- export type PipelinePhase = 'idle' | 'extracting' | 'structure' | 'parsing' | 'imports' | 'calls' | 'heritage' | 'communities' | 'processes' | 'enriching' | 'complete' | 'error';
4
+ export type PipelinePhase = 'idle' | 'extracting' | 'structure' | 'parsing' | 'imports' | 'calls' | 'heritage' | 'communities' | 'processes' | 'feature_clusters' | 'enriching' | 'complete' | 'error';
5
5
  export interface PipelineProgress {
6
6
  phase: PipelinePhase;
7
7
  percent: number;
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../src/pipeline.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,YAAY,GACZ,WAAW,GACX,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,aAAa,GACb,WAAW,GACX,WAAW,GACX,UAAU,GACV,OAAO,CAAC;AAEZ,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACN,cAAc,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH"}
1
+ {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../src/pipeline.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,YAAY,GACZ,WAAW,GACX,SAAS,GACT,SAAS,GACT,OAAO,GACP,UAAU,GACV,aAAa,GACb,WAAW,GACX,kBAAkB,GAClB,WAAW,GACX,UAAU,GACV,OAAO,CAAC;AAEZ,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACN,cAAc,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH"}
@@ -109,6 +109,8 @@ This project is indexed by CodraGraph as **${projectName}**${noStats ? '' : ` ($
109
109
  |----------|---------|
110
110
  | \`codragraph://repo/${projectName}/context\` | Codebase overview, check index freshness |
111
111
  | \`codragraph://repo/${projectName}/clusters\` | All functional areas |
112
+ | \`codragraph://repo/${projectName}/feature-clusters\` | Product/domain feature areas |
113
+ | \`codragraph://repo/${projectName}/feature/{name}\` | Focused files, line ranges, flows, dependencies |
112
114
  | \`codragraph://repo/${projectName}/processes\` | All execution flows |
113
115
  | \`codragraph://repo/${projectName}/process/{name}\` | Step-by-step execution trace |
114
116
 
@@ -120,6 +122,8 @@ This repository is listed under CodraGraph **group(s): ${groupNames.join(', ')}*
120
122
  `
121
123
  : ''}## CLI
122
124
 
125
+ Commands are cross-platform: use \`npx @codragraph/cli ...\` or \`codragraph ...\` in Windows PowerShell, macOS bash/zsh, and Linux shells. Prefer package commands like \`npm --prefix packages/core test\` from repo root instead of shell-specific \`cd dir && ...\` chains.
126
+
123
127
  ${skillsTable}
124
128
 
125
129
  ${CODRAGRAPH_END_MARKER}`;