Skip to content

Commit 93f7d27

Browse files
committed
Merge remote-tracking branch 'origin/main' into pr1487-work
2 parents 0b67621 + d706c33 commit 93f7d27

120 files changed

Lines changed: 957148 additions & 247 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,7 @@ soak-results-query-leak/
8686
# Scorecard as a binary artifact in source). Source only, never the build.
8787
/pkg/go/codebase-memory-mcp
8888
/pkg/go/codebase-memory-mcp.exe
89+
90+
# Nix build symlinks (nix build → ./result, ./result-1, …)
91+
/result
92+
/result-*

‎Makefile.cbm‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ PIPELINE_SRCS = \
356356
src/pipeline/pass_complexity.c \
357357
src/pipeline/pass_cross_repo.c \
358358
src/pipeline/artifact.c \
359+
src/pipeline/pass_ensemble_routing.c \
359360
src/pipeline/pass_pkgmap.c
360361

361362
# SimHash / MinHash module
@@ -559,7 +560,7 @@ TEST_DISCOVER_SRCS = \
559560

560561
TEST_GRAPH_BUFFER_SRCS = tests/test_graph_buffer.c
561562

562-
TEST_PIPELINE_SRCS = tests/test_registry.c tests/test_pipeline.c tests/test_cross_repo.c tests/test_fqn.c tests/test_route_canon.c tests/test_path_alias.c tests/test_configlink.c tests/test_infrascan.c tests/test_worker_pool.c tests/test_parallel.c tests/test_index_resilience.c tests/test_call_reference_contract.c tests/repro/repro_call_scope_usages.c tests/repro/repro_call_argument_usages.c tests/repro/repro_reference_precision.c tests/repro/repro_lexical_binding_precision.c tests/repro/repro_call_argument_matrix_a.c tests/repro/repro_call_argument_matrix_b.c tests/repro/repro_call_node_behaviors.c tests/repro/repro_language_registry.c tests/repro/repro_call_node_manifest.c tests/repro/repro_lsp_ordered_signatures.c tests/repro/repro_lsp_ordered_local.c tests/repro/repro_ts_overload_return_chains.c tests/repro/repro_harness_cleanup.c tests/repro/repro_runner_filter.c
563+
TEST_PIPELINE_SRCS = tests/test_registry.c tests/test_pipeline.c tests/test_cross_repo.c tests/test_fqn.c tests/test_route_canon.c tests/test_path_alias.c tests/test_configlink.c tests/test_infrascan.c tests/test_worker_pool.c tests/test_parallel.c tests/test_index_resilience.c tests/test_index_format.c tests/test_call_reference_contract.c tests/repro/repro_call_scope_usages.c tests/repro/repro_call_argument_usages.c tests/repro/repro_reference_precision.c tests/repro/repro_lexical_binding_precision.c tests/repro/repro_call_argument_matrix_a.c tests/repro/repro_call_argument_matrix_b.c tests/repro/repro_call_node_behaviors.c tests/repro/repro_language_registry.c tests/repro/repro_call_node_manifest.c tests/repro/repro_lsp_ordered_signatures.c tests/repro/repro_lsp_ordered_local.c tests/repro/repro_ts_overload_return_chains.c tests/repro/repro_harness_cleanup.c tests/repro/repro_runner_filter.c
563564

564565
TEST_WATCHER_SRCS = tests/test_watcher.c
565566

‎README.md‎

Lines changed: 56 additions & 14 deletions
Large diffs are not rendered by default.

‎THIRD_PARTY.md‎

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The core runtime headers in `internal/cbm/vendored/common/tree_sitter/`
3737

3838
## Tree-sitter Grammars
3939

40-
159 pre-generated parsers are vendored in `internal/cbm/vendored/grammars/<lang>/`
40+
160 pre-generated parsers are vendored in `internal/cbm/vendored/grammars/<lang>/`
4141
(generated `parser.c` plus `scanner.c` where applicable, compiled statically).
4242
Each grammar is the work of its upstream authors and each grammar directory
4343
contains the upstream `LICENSE` file.
@@ -54,10 +54,30 @@ License summary:
5454
`pine` is **ISC** (declared by its upstream).
5555
- The grammars authored in-house for this project (`cobol`, `form`, `janet`,
5656
`magma`, `protobuf`, `wolfram`) are **MIT** under the project's own license,
57-
(c) DeusData. Six further grammars (`assembly`, `cfml`, `cfscript`,
58-
`dotenv`, `pine`, `qml`) are self-maintained forks that retain their
59-
original upstream authors' licenses — see the manifest for per-grammar
60-
provenance.
57+
(c) DeusData. Seven further grammars (`arkts`, `assembly`, `cfml`,
58+
`cfscript`, `dotenv`, `pine`, `qml`) are self-maintained forks that retain
59+
their original upstream authors' licenses — see the manifest for per-grammar
60+
provenance. `arkts` is a first-party derivative of
61+
[tree-sitter/tree-sitter-typescript](https://github.com/tree-sitter/tree-sitter-typescript)
62+
(MIT, (c) 2017 Max Brunsfeld; on the
63+
[tree-sitter-javascript](https://github.com/tree-sitter/tree-sitter-javascript)
64+
base, MIT, (c) 2014 Max Brunsfeld) with (c) 2026 DeusData ArkTS additions;
65+
its grammar source lives in `tools/tree-sitter-arkts/`.
66+
67+
### tree-sitter-plsql
68+
69+
- **Project:** [AndreasMaierDe/tree-sitter-plsql](https://github.com/AndreasMaierDe/tree-sitter-plsql)
70+
- **License:** MIT
71+
- **Copyright:** (c) 2022 AndreasMaierDe
72+
- **Vendored at:** `internal/cbm/vendored/grammars/plsql/`
73+
- **Pinned commit:** `28aebef209be`
74+
- **Notes:** Community-maintained grammar for Oracle PL/SQL; not in the
75+
nvim-treesitter or Helix registries (`community-niche` in the manifest). No
76+
external scanner. One local patch: `parser.c`'s
77+
`#include <tree_sitter/parser.h>` is changed to the quoted form used by every
78+
other vendored grammar, as documented in
79+
`internal/cbm/vendored/grammars/MANIFEST.md`. PL/SQL support was originally
80+
contributed in PR #1033 by Oğuz (@ouzsrcm).
6181

6282
### tree-sitter-objectscript (UDL + routine)
6383

‎docs/CONFIGURATION.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ codebase-memory-mcp config list
7777
codebase-memory-mcp config get auto_index
7878
codebase-memory-mcp config set auto_index true
7979
codebase-memory-mcp config set auto_index_limit 50000
80+
codebase-memory-mcp config set watcher_enabled false
8081
codebase-memory-mcp config reset auto_index
8182
```
8283

@@ -86,6 +87,34 @@ Current keys:
8687
|---|---|---|
8788
| `auto_index` | `false` | Automatically index new projects when an MCP session starts. |
8889
| `auto_index_limit` | `50000` | Maximum file count allowed for automatic indexing of a new project. |
90+
| `auto_watch` | `true` | Register the session's project with the background git watcher on connect. Set `false` to keep a session from registering its project (the watcher still runs for other projects). |
91+
| `watcher_enabled` | `true` | Master switch for the background watcher subsystem. Set `false` to stop the watcher from starting at all — no poll thread and no project registration. Reindex manually with `index_repository` when disabled. |
92+
93+
> **`watcher_enabled` vs `auto_watch`.** `watcher_enabled` controls whether the
94+
> watcher *subsystem* starts at all (the background poll thread). `auto_watch` is
95+
> narrower: it only controls whether a connecting session registers *its own*
96+
> project with an already-running watcher. When `watcher_enabled=false`,
97+
> `auto_watch` has no effect — there is no watcher to register with.
98+
>
99+
> They also differ in **when they are read**, which matters because the watcher
100+
> lives in the background daemon, not in your MCP client:
101+
>
102+
> - `auto_watch` is consulted each time a session would register its project, so
103+
> a change applies to sessions that connect afterwards.
104+
> - `watcher_enabled` is read **once, when the daemon starts**, because it decides
105+
> whether the watcher is built at all. The daemon is long-lived and outlives
106+
> individual MCP sessions, so **reconnecting your client is not enough** — retire
107+
> the daemon so the next one picks the new value up:
108+
>
109+
> ```bash
110+
> codebase-memory-mcp config set watcher_enabled false
111+
> codebase-memory-mcp daemon stop # next session starts a daemon without the watcher
112+
> codebase-memory-mcp daemon status # confirm
113+
> ```
114+
>
115+
> Disabling the watcher does not disable anything else: the daemon still starts,
116+
> `auto_index` still runs, and `index_repository` stays available for manual
117+
> reindexing.
89118
90119
## 3. UI Settings
91120

0 commit comments

Comments
 (0)