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

@@ -347,7 +347,7 @@ export function registerNodesCli(program: Command) {
.requiredOption("--node <idOrNameOrIp>", "Node id, name, or IP")
.requiredOption(
"--command <command>",
"Command (e.g. screen.eval or canvas.eval)",
"Command (e.g. canvas.eval)",
)
.option("--params <json>", "JSON object string for params", "{}")
.option(

View File

@@ -126,7 +126,7 @@ describe("cli program", () => {
.mockResolvedValueOnce({
ok: true,
nodeId: "ios-node",
command: "screen.eval",
command: "canvas.eval",
payload: { result: "ok" },
});
@@ -139,7 +139,7 @@ describe("cli program", () => {
"--node",
"ios-node",
"--command",
"screen.eval",
"canvas.eval",
"--params",
'{"javaScript":"1+1"}',
],
@@ -156,7 +156,7 @@ describe("cli program", () => {
method: "node.invoke",
params: {
nodeId: "ios-node",
command: "screen.eval",
command: "canvas.eval",
params: { javaScript: "1+1" },
timeoutMs: 15000,
idempotencyKey: "idem-test",