Skip to content

Commit b11f542

Browse files
Merge branch 'main' into fix/lint-mem-gate-warning-suffix
2 parents 7aeacae + b05a68c commit b11f542

86 files changed

Lines changed: 512135 additions & 491013 deletions

Some content is hidden

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

‎Makefile.cbm‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ FOUNDATION_SRCS = \
338338
EXTRACTION_SRCS = \
339339
$(CBM_DIR)/cbm.c \
340340
$(CBM_DIR)/extract_defs.c \
341+
$(CBM_DIR)/callable_sig.c \
341342
$(CBM_DIR)/extract_calls.c \
342343
$(CBM_DIR)/extract_imports.c \
343344
$(CBM_DIR)/extract_usages.c \
@@ -436,6 +437,7 @@ PIPELINE_SRCS = \
436437
src/pipeline/lsp_surface.c \
437438
src/pipeline/pipeline_delta.c \
438439
src/pipeline/path_alias.c \
440+
src/pipeline/laravel_routing.c \
439441
src/pipeline/registry.c \
440442
src/pipeline/pipeline.c \
441443
src/pipeline/pipeline_incremental.c \
@@ -633,6 +635,7 @@ TEST_FOUNDATION_SRCS = \
633635

634636
TEST_EXTRACTION_SRCS = \
635637
tests/test_extraction.c \
638+
tests/test_callable_sig.c \
636639
tests/test_extraction_inheritance.c \
637640
tests/test_extraction_imports.c \
638641
tests/test_parse_coverage.c \

‎README.md‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ Watcher registration is controlled separately by `auto_watch` (default `true`).
155155

156156
To turn the watcher off entirely, set `config set watcher_enabled false` (default `true`): the background poll thread never starts and no project is registered, while `auto_index` and manual `index_repository` keep working. Unlike `auto_watch` — which is consulted per session — `watcher_enabled` is read once when the background daemon starts, so run `codebase-memory-mcp daemon stop` after changing it; reconnecting your MCP client alone will not restart the daemon. See [docs/CONFIGURATION.md](docs/CONFIGURATION.md#2-cli-managed-runtime-settings).
157157

158+
The watcher follows **git** projects only by default: a project indexed from a directory that is not a git repository is not watched and stays at its last index until you run `index_repository` again. To have such roots polled too, set `config set watch_non_git true` (default `false`, read when the daemon starts): they are then checked on the same cadence with a file-tree scan that uses the indexer's own ignore rules.
159+
158160
### Keeping Up to Date
159161

160162
**Updates run from the install script on every platform, not from inside the running binary.** `codebase-memory-mcp update` validates your flags and then prints the exact command to run:
@@ -183,7 +185,14 @@ Installed through **npm or pip**? Update with your package manager on every plat
183185
codebase-memory-mcp uninstall
184186
```
185187

186-
Removes owned agent config entries, skills, hooks, instructions, and the installed binary. Existing graph indexes are listed and deleted only after confirmation.
188+
Removes owned agent config entries, skills, hooks, instructions, and the installed binary. Existing graph indexes are listed and **kept by default**. `-y`/`--yes`, `-n`/`--no`, and noninteractive input keep them unless `--delete-indexes` is explicitly given. An interactive terminal without that flag is asked separately; the default answer is to keep them.
189+
190+
```bash
191+
codebase-memory-mcp uninstall -y --delete-indexes # also delete every project index
192+
codebase-memory-mcp uninstall --dry-run --delete-indexes # preview; change nothing
193+
```
194+
195+
`--delete-indexes` is explicit consent and takes precedence over `--no`; `--dry-run` always preserves the files. When indexes are kept, uninstall prints their cache directory (`${CBM_CACHE_DIR:-~/.cache/codebase-memory-mcp}`) and how to remove them.
187196

188197
The install script placed beside the binary is **reported, not deleted** — uninstall prints its path and the `rm` command for it. It is left alone on purpose: it may be your own copy, a symlink into a checkout, or managed by a package manager, and an uninstaller should not delete a file it cannot prove it owns.
189198

@@ -763,6 +772,7 @@ codebase-memory-mcp config set auto_index true # auto-index on session
763772
codebase-memory-mcp config set auto_index_limit 50000 # max files for auto-index
764773
codebase-memory-mcp config set auto_watch false # don't register background git watcher (default: true)
765774
codebase-memory-mcp config set watcher_enabled false # stop the watcher thread entirely (default: true)
775+
codebase-memory-mcp config set watch_non_git true # also poll non-git project roots (default: false)
766776
codebase-memory-mcp config set index_max_files 250000 # optional per-index source-file limit
767777
codebase-memory-mcp config set index_max_source_mb 16384 # optional per-index source-size limit
768778
codebase-memory-mcp config reset auto_index # reset to default

‎docs/CONFIGURATION.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ Current keys:
8989
| `auto_index_limit` | `50000` | Maximum file count allowed for automatic indexing of a new project. |
9090
| `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). |
9191
| `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+
| `watch_non_git` | `false` | Also poll project roots that are **not git repositories**. By default the watcher only follows git projects, so a project indexed from a plain directory is never refreshed after its first index — reindex it manually with `index_repository`. Set `true` to poll such roots on the same adaptive cadence with a file-tree scan: the indexer's own discovery walk (same skip lists, `.gitignore` and `.cbmignore` rules) hashed over each file's path, size and mtime. Any change reindexes once; paths the indexer skips (including cbm's own `.codebase-memory/` output) never trigger. The first poll after the daemon starts reindexes each such project once, since nothing records which tree state the index holds. The scan walks the whole tree every poll, so it costs more than git polling on very large trees. Read once when the daemon starts, like `watcher_enabled`. |
9293
| `index_max_files` | `off` | Optional maximum number of accepted source files in one discovery run. |
9394
| `index_max_source_mb` | `off` | Optional maximum accepted source size in MiB in one discovery run. |
9495

0 commit comments

Comments
 (0)