Repository navigation
feat(lang): add user-defined extra extension→language mappings via config file - #60
Closed
halindrome wants to merge 4 commits into
Closed
halindrome wants to merge 4 commits into
halindrome wants to merge 4 commits into
Conversation
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
8 tasks done
Contributor
Author
|
Superseded by #73 — C port of the same feature. |
ngallodev
added a commit
to ngallodev/codebase-memory-cli
that referenced
this pull request
Oct 4, 2026
…ng, output budget Brings the Jenkins-green step-2 line (release-tooling DeusData#60, 904ae6b) into the fully merged step-4 tree: - 12 step-2 tests aligned with the CLI-only fork (cc9f002) - feat/legacy-mcp-block-warning: install and uninstall warn about leftover codebase-memory-mcp instruction blocks and leave them in place - feat/output-token-budget: max_output_tokens for search_code, trace_path and detect_changes, plus match_limit, source_max_lines and directory paging - lint fixes and memory-core baseline notes (904ae6b) Conflicts: - tests/test_daemon_application.c, over-budget passthrough. Kept step 2's binary-safe app_test_response_contains instead of strstr on a binary frame. Searches the whole frame and accepts either error-flag spelling: is_error from the operation result wire on this tree, isError from a passed-through body. - scripts/memory-core-baseline.txt regenerated for the merged tree. These are counts the fork already had, not new raw allocations. Validated locally: - `scripts/build-dev.sh` and the test-runner compile are clean with -Werror. - `scripts/lint.sh --ci` passes. - Vendored checksums verify.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for user-defined file extension → language mappings via:
$XDG_CONFIG_HOME/codebase-memory-mcp/config.json(Linux/macOS:~/.config/…, Windows:%AppData%\…){repo_root}/.codebase-memory.jsonProject config overlays global config; project keys win on collision. User mappings always override built-in registry entries.
Config format
```json
{
"extra_extensions": {
".blade.php": "php",
".mjs": "javascript",
".pyx": "python"
}
}
```
Behavior
Changes
internal/userconfig/: new package —Load()merges global + project configs.internal/lang/lang.go: addRegisterExtension(ext, language)helper.internal/pipeline/pipeline.go: calluserconfig.Loadbefore discover/walk phase.Test plan
go test ./... -count=1 -timeout 400spassesgolangci-lint run ./...passesTestLoad_Cascadeverifies project config overrides globalTestPipeline_UserExtension_FullModeverifies.blade.phpindexed as PHPTestRegisterExtension_KnownLanguage,TestRegisterExtension_UnknownLanguage,TestRegisterExtension_OverridesBuiltin🤖 Generated with Claude Code