mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-27 03:10:47 +00:00
* feat(capabilities): add terminal_start_bulk, terminal_poll_bulk and terminal_stop_bulk Background jobs on 2-20 terminal sessions at once, in the terminal_bulk MCP toolset next to terminal_execute_bulk (MCP-only). - terminal_start_bulk: the same all-or-nothing preflight as terminal_execute_bulk plus terminal_start's refusals, one fresh approval listing every host, then one background job per session. Returns a bulkId and a jobId per host. - terminal_poll_bulk: polls every job of a bulkId (or a jobIds list) with per-job offsets. Output is capped at 4 KB per job and 32 KB in total, shared by need; when a job has more, the newest output is returned with skippedChars. Per-job problems never fail the call. - terminal_stop_bulk: stops every job, no approval, like terminal_stop. - The terminal worker's job start gets a no-send precheck mode, and the main process gets preflightJobStart, so worker-hosted and main-process sessions are validated before any job starts. - Shared bulk target checks are extracted from execBulk.cjs. * docs(skill): describe all terminal_bulk tools in one line Merge the terminal_execute_bulk and terminal_start_bulk lines so the skill names every bulk tool once, like the toolset groups them. The next line already covers single-session commands. * fix(mcp): let observer-bypassing write tools through the MCP tool registry The generic MCP handler ran the observer write guard for every write tool, ignoring the catalog's bypassesObserverBlock. terminal_stop and session_close have their own handlers, but terminal_stop_bulk did not, so MCP clients could not stop bulk jobs in observer mode. Skip the guard for tools that declare the bypass; the bridge enforces the same policy again. --------- Co-authored-by: bincxz <16399091+binaricat@users.noreply.github.com>