feat(ai): scope external MCP approvals to connection or host (#3569)

* feat(ai): scope external MCP approvals to connection or host

* test(ai): keep MCP fixture in Netcatty temp directory

* fix(ai): refine external MCP approval UI and grant safety

* fix(ai): wrap long approval targets and support Node 22

* fix(ai): keep automatic scripts in observer mode

* fix(sftp): release preflight markers after transfer

* fix(sftp): retain preflight cap through conflict resolution

* Keep SFTP preflight cap across panel remount

* Update worker terminal metadata expectations

* Persist SFTP preflight skip state across restart

* Limit persistent host approvals to saved hosts

* Scope host-open approvals to the selected saved host

* Exclude serial hosts from persistent approval scopes
This commit is contained in:
陈大猫 authored and GitHub committed 2026-09-30 09:57:47 +08:00
1 parent 1d10d1679e
commit f91b2cd04e
46 files changed
+906 -83

No files matched your search

+4
View File
@@ -45,6 +45,10 @@ test("build.files includes the single-channel SSH banner matcher", () => {
config.files.includes("domain/singleChannelSshBanner.shared.cjs"),
"packaged SSH and SFTP bridges require the shared banner matcher",
);
assert.ok(
config.files.includes("domain/singleChannelSshBanner.shared.mjs"),
"the shared banner matcher requires its source module",
);
const banner = require("../domain/singleChannelSshBanner.shared.cjs");
assert.equal(banner.remoteSoftwareRequiresSingleChannel("BHostSSH_7.0"), true);
assert.equal(banner.remoteSoftwareRequiresSingleChannel("JumpServer"), false);