[feat] add native desktop inspection and accessibility actions

This commit is contained in:
dijunkun
2026-11-06 22:15:03 +08:00
parent 82b8cc11bc
commit 9ef7ecbc82
14 changed files with 901 additions and 4 deletions
+1
View File
@@ -178,6 +178,7 @@ export class NativeClient {
const sideEffect = method === "action" || method === "unlock" || method === "release_inputs" || method === "viewer_input" ||
(method === "clipboard" && args.operation === "set") ||
(method === "system" && args.command !== "status") ||
(method === "desktop" && !["capabilities", "windows", "tree"].includes(args.operation)) ||
(method === "files" && ["upload", "download", "cancel"].includes(args.operation));
const line = JSON.stringify({ ...args, id, method }) + "\n";
if (Buffer.byteLength(line) > 65536)