Skip to content

Commit eff8d9c

Browse files
authored
Merge branch 'main' into main
2 parents 4a6ad9b + 170d5a8 commit eff8d9c

64 files changed

Lines changed: 2038980 additions & 312 deletions

Some content is hidden

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

.github/workflows/_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
steps:
125125
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
126126

127-
- uses: msys2/setup-msys2@e9898307ac31d1a803454791be09ab9973336e1c # v2
127+
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
128128
with:
129129
msystem: CLANG64
130130
path-type: inherit

.github/workflows/_smoke.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
steps:
108108
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
109109

110-
- uses: msys2/setup-msys2@e9898307ac31d1a803454791be09ab9973336e1c # v2
110+
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
111111
with:
112112
msystem: CLANG64
113113
path-type: inherit
@@ -202,21 +202,32 @@ jobs:
202202
scripts/security-install.sh ./codebase-memory-mcp
203203
scripts/security-network.sh ./codebase-memory-mcp
204204
205-
# ── Glama directory check image (non-gating) ──────────────────────
205+
# ── Packaging check (non-gating) ──────────────────────────────────
206206
# Builds pkg/glama/Dockerfile — the image Glama builds to score the
207207
# server — and runs an MCP initialize + tools/list handshake to confirm the
208208
# containerized stdio server still starts and introspects. Guards the Glama
209209
# listing integration against drift (Dockerfile breakage, release-asset
210210
# renames, introspection regressions).
211211
#
212+
# Also tests the brew tap/install flow.
213+
#
212214
# continue-on-error: a broken *directory* image must never block a release —
213215
# the shipped product binaries are unaffected. The red X is the signal to fix
214-
# the Glama integration, not a release gate.
215-
smoke-glama-image:
216+
# the integration, not a release gate.
217+
smoke-packages:
216218
runs-on: ubuntu-latest
217219
timeout-minutes: 10
218220
continue-on-error: true
219221
steps:
220222
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
221223
- name: Build Glama image and verify MCP introspection
222224
run: bash pkg/glama/verify.sh
225+
- name: Test homebrew installation
226+
env:
227+
HOMEBREW_NO_AUTO_UPDATE: 1
228+
run: |
229+
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
230+
brew tap deusdata/codebase-memory-mcp "$GITHUB_WORKSPACE"
231+
brew trust deusdata/codebase-memory-mcp
232+
brew install codebase-memory-mcp
233+
codebase-memory-mcp --version

.github/workflows/_soak.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
timeout-minutes: 30
7171
steps:
7272
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
73-
- uses: msys2/setup-msys2@e9898307ac31d1a803454791be09ab9973336e1c # v2
73+
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
7474
with:
7575
msystem: CLANG64
7676
path-type: inherit
@@ -153,7 +153,7 @@ jobs:
153153
timeout-minutes: 45
154154
steps:
155155
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
156-
- uses: msys2/setup-msys2@e9898307ac31d1a803454791be09ab9973336e1c # v2
156+
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
157157
with:
158158
msystem: CLANG64
159159
path-type: inherit

.github/workflows/_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
steps:
5151
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
5252

53-
- uses: msys2/setup-msys2@e9898307ac31d1a803454791be09ab9973336e1c # v2
53+
- uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 # v2
5454
with:
5555
msystem: CLANG64
5656
path-type: inherit

.github/workflows/codeql.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
branches: [main]
88

99
permissions:
10-
security-events: write
1110
contents: read
1211

1312
concurrency:
@@ -17,6 +16,12 @@ concurrency:
1716
jobs:
1817
analyze:
1918
runs-on: ubuntu-latest
19+
# CodeQL needs security-events: write to upload results; scoped to this job so
20+
# the workflow's top-level token stays read-only (Scorecard TokenPermissions).
21+
permissions:
22+
security-events: write
23+
actions: read
24+
contents: read
2025
steps:
2126
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2227

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168
git tag -f "$VERSION" "$GITHUB_SHA"
169169
git push origin "$VERSION" --force
170170
171-
- uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v2
171+
- uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v2
172172
with:
173173
tag_name: ${{ inputs.version }}
174174
draft: true

Formula

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pkg/homebrew/Formula

Makefile.cbm

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ FOUNDATION_SRCS = \
111111
src/foundation/compat_regex.c \
112112
src/foundation/mem.c \
113113
src/foundation/diagnostics.c \
114-
src/foundation/profile.c
114+
src/foundation/profile.c \
115+
src/foundation/dump_verify.c
115116

116117
# Existing extraction C code (compiled from current location)
117118
EXTRACTION_SRCS = \
@@ -295,7 +296,8 @@ TEST_FOUNDATION_SRCS = \
295296
tests/test_str_intern.c \
296297
tests/test_log.c \
297298
tests/test_str_util.c \
298-
tests/test_platform.c
299+
tests/test_platform.c \
300+
tests/test_dump_verify.c
299301

300302
TEST_EXTRACTION_SRCS = \
301303
tests/test_extraction.c \
@@ -313,7 +315,8 @@ TEST_STORE_SRCS = \
313315
tests/test_store_arch.c \
314316
tests/test_store_bulk.c \
315317
tests/test_store_pragmas.c \
316-
tests/test_store_checkpoint.c
318+
tests/test_store_checkpoint.c \
319+
tests/test_dump_verify_io.c
317320

318321
TEST_CYPHER_SRCS = \
319322
tests/test_cypher.c
@@ -329,7 +332,7 @@ TEST_DISCOVER_SRCS = \
329332

330333
TEST_GRAPH_BUFFER_SRCS = tests/test_graph_buffer.c
331334

332-
TEST_PIPELINE_SRCS = tests/test_registry.c tests/test_pipeline.c tests/test_fqn.c tests/test_path_alias.c tests/test_configlink.c tests/test_infrascan.c tests/test_worker_pool.c tests/test_parallel.c
335+
TEST_PIPELINE_SRCS = tests/test_registry.c tests/test_pipeline.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
333336

334337
TEST_WATCHER_SRCS = tests/test_watcher.c
335338

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ codebase-memory-mcp config reset auto_index # reset to default
445445
| `CBM_DOWNLOAD_URL` | *(GitHub releases)* | Override the download URL for updates. Used for testing or self-hosted deployments. |
446446
| `CBM_LOG_LEVEL` | `info` | Set the minimum log level. Accepted values (case-insensitive): `debug`, `info`, `warn`, `error`, `none` — or their numeric equivalents `0``4` matching the internal enum. Logs go to stderr; stdout is reserved for MCP JSON-RPC. |
447447
| `CBM_WORKERS` | *(detected)* | Override the parallel-indexing worker count returned by `cbm_default_worker_count`. Useful inside containers where `sysconf(_SC_NPROCESSORS_ONLN)` reports host CPUs rather than the cgroup's effective quota. Range 1–256; invalid values are ignored with a warning. |
448+
| `CBM_DUMP_VERIFY_MIN_RATIO` | `0.5` | After indexing, compare persisted SQLite node count to the in-memory dump count. When persisted nodes fall below this fraction of committed nodes (and committed > 50), `index_repository` returns `status:"degraded"` instead of silent `indexed`. Range 0–1; set `0` to disable. Invalid values are ignored with a warning. |
448449

449450
```bash
450451
# Store indexes in a custom directory

THIRD_PARTY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The core runtime headers in `internal/cbm/vendored/common/tree_sitter/`
2626

2727
## Tree-sitter Grammars
2828

29-
158 pre-generated parsers are vendored in `internal/cbm/vendored/grammars/<lang>/`
29+
160 pre-generated parsers are vendored in `internal/cbm/vendored/grammars/<lang>/`
3030
(generated `parser.c` plus `scanner.c` where applicable, compiled statically).
3131
Each grammar is the work of its upstream authors and each grammar directory
3232
contains the upstream `LICENSE` file.

0 commit comments

Comments
 (0)