Commit bf629da
committed
feat(explorer, analyzer): add
cortex_code_explorer — exclude dirs at scan time
- Add `exclude: Vec<String>` to map_overview and deep_slice actions
- filter_entry predicate applied to both the primary walker (file discovery)
and the unfiltered reference walker (scan-count diagnostics)
- Matched against directory base name so pruning applies at every depth
- deep_slice merges per-call exclude list into cfg.scan.exclude_dir_names
so exclusion flows through build_scan_options -> scan_workspace
- Fixes QA finding #1: repos with node_modules / large asset dirs triggered
"Massive Directory" mode despite the actual source tree being small
cortex_symbol_analyzer — instance_index for duplicate symbol disambiguation
- Add `instance_index: Option<usize>` param to read_source action
- Collects ALL matching candidates instead of stopping at first match
- When N > 1 instances exist, prepends a disambiguation header showing
"Found N instances, showing instance X of N, use instance_index to select"
- Clamps out-of-range index to last valid instance (no panic)
- Fixes QA finding #2: agents silently received only the first instance with
no indication other definitions existed in the same file
MCP schema + docs
- tool_list schemas updated: exclude array and instance_index integer fields
added to the respective action descriptions
- .github/copilot-instructions.md quick-reference table expanded with
"Key Optional Params" column surfacing exclude and instance_index
- CHANGELOG.md updated; version bumped 2.0.0 -> 2.0.1exclude param + instance_index disambiguation (v2.0.1)1 parent 3061e6f commit bf629da
6 files changed
Lines changed: 145 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
13 | 33 | | |
14 | 34 | | |
15 | 35 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2180 | 2180 | | |
2181 | 2181 | | |
2182 | 2182 | | |
2183 | | - | |
| 2183 | + | |
2184 | 2184 | | |
2185 | 2185 | | |
2186 | 2186 | | |
2187 | 2187 | | |
2188 | 2188 | | |
2189 | 2189 | | |
| 2190 | + | |
2190 | 2191 | | |
2191 | 2192 | | |
2192 | 2193 | | |
| |||
2243 | 2244 | | |
2244 | 2245 | | |
2245 | 2246 | | |
2246 | | - | |
2247 | | - | |
| 2247 | + | |
| 2248 | + | |
2248 | 2249 | | |
2249 | | - | |
2250 | | - | |
2251 | | - | |
2252 | | - | |
2253 | | - | |
2254 | | - | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
2255 | 2259 | | |
2256 | | - | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
2257 | 2263 | | |
2258 | 2264 | | |
2259 | 2265 | | |
| |||
2278 | 2284 | | |
2279 | 2285 | | |
2280 | 2286 | | |
2281 | | - | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
2282 | 2292 | | |
2283 | 2293 | | |
2284 | 2294 | | |
| |||
2296 | 2306 | | |
2297 | 2307 | | |
2298 | 2308 | | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
2299 | 2323 | | |
2300 | | - | |
| 2324 | + | |
2301 | 2325 | | |
2302 | 2326 | | |
2303 | 2327 | | |
| |||
3448 | 3472 | | |
3449 | 3473 | | |
3450 | 3474 | | |
3451 | | - | |
| 3475 | + | |
3452 | 3476 | | |
3453 | 3477 | | |
3454 | 3478 | | |
3455 | 3479 | | |
3456 | 3480 | | |
3457 | 3481 | | |
3458 | 3482 | | |
| 3483 | + | |
3459 | 3484 | | |
3460 | 3485 | | |
3461 | 3486 | | |
| |||
3484 | 3509 | | |
3485 | 3510 | | |
3486 | 3511 | | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
3487 | 3520 | | |
3488 | 3521 | | |
3489 | 3522 | | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
3490 | 3533 | | |
3491 | 3534 | | |
3492 | 3535 | | |
| |||
3611 | 3654 | | |
3612 | 3655 | | |
3613 | 3656 | | |
| 3657 | + | |
3614 | 3658 | | |
3615 | 3659 | | |
3616 | 3660 | | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
| 3665 | + | |
| 3666 | + | |
| 3667 | + | |
| 3668 | + | |
| 3669 | + | |
| 3670 | + | |
3617 | 3671 | | |
3618 | 3672 | | |
3619 | 3673 | | |
| |||
0 commit comments