mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-30 01:51:20 +00:00
Mirrors the include_tests opt-in convention already used by impact. Today query always includes tests, which can outrank production code when tests mention a concept more often than the implementation itself. Changes: - CLI: new --include-tests flag on gitnexus query (default false). - Backend: filter merged BM25 + semantic results via the existing isTestFilePath() helper before the per-symbol process lookup, so excluded items never incur the STEP_IN_PROCESS round-trip. - MCP schema: surface includeTests on the query tool input schema, same shape as impact. - Tests: two new dispatch cases in calltool-dispatch.test.ts cover default-exclude and includeTests=true round-trip. Behavioral note: default behavior change for query. Existing callers that relied on test files appearing in results need to pass --include-tests or includeTests: true going forward. Matches the precedent set when impact --include-tests shipped. No new dependencies, no schema migration, no infrastructure changes. Rebased onto current main after origin rev moved forward. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| helpers | ||
| integration | ||
| unit | ||
| utils | ||