Protocol: switch node.invoke screen.* to canvas.*

This commit is contained in:
Peter Steinberger
2025-12-18 01:17:17 +00:00
parent ea53f1bec7
commit 22516437b7
5 changed files with 22 additions and 74 deletions

View File

@@ -3019,10 +3019,7 @@ export async function startGatewayServer(port = 18789): Promise<GatewayServer> {
idempotencyKey: string;
};
const nodeId = String(p.nodeId ?? "").trim();
const rawCommand = String(p.command ?? "").trim();
const command = rawCommand.startsWith("canvas.")
? `screen.${rawCommand.slice("canvas.".length)}`
: rawCommand;
const command = String(p.command ?? "").trim();
if (!nodeId || !command) {
respond(
false,