GitNexus/gitnexus/test
Gergo Magyar 2f7a5edae0 feat(cli): add --uid/--file/--kind disambiguation flags to impact (#1907)
When `impact` reports an ambiguous target it tells the user to disambiguate, but the CLI had no way to do so — only the MCP impact tool accepted target_uid/file_path/kind (the CLI `context` command had --uid/--file, `impact` had neither). Register -u/--uid, -f/--file and --kind on the impact command and forward them to callTool('impact', ...) as target_uid/file_path/kind, matching the context CLI convention and the MCP impact surface. Help text and the usage hint are localized in en + zh-CN.

Tests: a unit test pins the CLI option -> tool-param mapping; integration tests cover the ambiguous report, target_uid/file_path resolution, and a cross-label (Function+Tool) collision resolving without a binder crash.

Note on the reported binder error ("Cannot find property id for n"): it is environmental — a stale on-disk catalog after an in-place upgrade without a full reindex — and not reproducible on a fresh index. Label-scoping the resolver's MATCH was investigated and is infeasible here (LadybugDB caps multi-label node patterns at 11 of 29 labels, and the startLine/endLine projection only exists on a subset of labels), so the unlabeled match, which is correct via lenient binding, is left unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-30 06:16:03 +00:00
..
fixtures feat(cpp): add template partial ordering (#1885) 2026-05-29 21:38:19 +01:00
helpers fix: make extension installs offline-first (#1161) 2026-05-29 20:04:41 +01:00
integration feat(cli): add --uid/--file/--kind disambiguation flags to impact (#1907) 2026-05-30 06:16:03 +00:00
unit feat(cli): add --uid/--file/--kind disambiguation flags to impact (#1907) 2026-05-30 06:16:03 +00:00
utils fix: skip Claude augment hook when GitNexus server owns DB (#1493) 2026-05-14 16:39:30 +01:00