mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-17 13:01:24 +00:00
* feat(copilot): support Skills CLI mode alongside MCP Wire Copilot sessions to respect toolIntegrationMode: MCP keeps the existing netcatty-mcp-only gate, while Skills exposes bash/skill tools, passes CLI discovery env to the runtime, and approves shell commands that invoke netcatty-tool-cli. Co-authored-by: Cursor <cursoragent@cursor.com> * test(copilot): restore driver tests and cover skills CLI mode Merge the new Skills-mode assertions with the existing copilot driver suite instead of replacing it. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(copilot): harden Skills shell gate against chained commands Validate only the local netcatty-tool-cli prefix (before exec `--` payloads), reject shell wrappers/chaining operators, and require the invocation to start with the CLI launcher or script path. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(copilot): block backtick substitution and drop skill builtin Reject backticks in the local CLI prefix and expose only builtin:bash in Skills mode; CLI workflow instructions already come from the host prompt. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(copilot): quote-aware shell gate and strict CLI name match Use the last unquoted exec delimiter for local-prefix checks, scan metachars outside quotes only, and require an exact netcatty-tool-cli launcher token. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(copilot): tighten exec delimiter and Windows CLI launcher match Only honor ` -- ` payloads for exec/job-start, scan full local commands for redirection/chaining, and accept netcatty-tool-cli.cmd with Windows paths. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(copilot): reject quoted substitution and unqualified CLI paths Block $(...) and backticks inside double quotes, require absolute/relative path prefixes for non-node launchers, and fix quoted launcher path matching. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(copilot): anchor shell metachar scan and block exec chaining Match metacharacters only at the current scan offset, scan the full shell command for exec turns, and require quoted remote payloads for chained ops. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>