Commit 52391e7
fix: handle space-separated managed flags in additionalArgs filtering
Replace .filter() with a for-loop that also skips the following value
token when a managed flag is supplied in space-separated form
(e.g. ['--output', '/override.sarif']) instead of inline form
(e.g. ['--output=/override.sarif']). This prevents stray positional
arguments from leaking into the CLI invocation.
Add test coverage for the space-separated form.
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/fb3b1eea-290e-4eaa-bf2b-26b1521e5a58
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>1 parent 234a201 commit 52391e7
File tree
4 files changed
+101
-21
lines changed- server
- dist
- src/lib
- test/src/lib
4 files changed
+101
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57359 | 57359 | | |
57360 | 57360 | | |
57361 | 57361 | | |
57362 | | - | |
57363 | | - | |
57364 | | - | |
57365 | | - | |
57366 | | - | |
57367 | | - | |
57368 | | - | |
| 57362 | + | |
| 57363 | + | |
| 57364 | + | |
| 57365 | + | |
| 57366 | + | |
| 57367 | + | |
| 57368 | + | |
| 57369 | + | |
| 57370 | + | |
| 57371 | + | |
| 57372 | + | |
| 57373 | + | |
| 57374 | + | |
| 57375 | + | |
| 57376 | + | |
| 57377 | + | |
57369 | 57378 | | |
57370 | | - | |
57371 | | - | |
| 57379 | + | |
| 57380 | + | |
57372 | 57381 | | |
57373 | 57382 | | |
57374 | 57383 | | |
| |||
0 commit comments