You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d17bbfc
Browse filesBrowse the repository at this point in the historyBrowse files
() => reject(new Error("Node command was canceled.")),
580
+
{ once: true },
581
+
);
582
+
});
583
+
},
584
+
});
585
+
```
586
+
587
+
Register `frames.onMessage(...)` before sending: the node announces framed
588
+
readiness only after the listener exists, and `openDuplex` resolves only
589
+
after both command dispatch and framed readiness. This prevents input from
590
+
arriving before the plugin can consume it. The existing raw `emitChunk`
591
+
and `onInput` helpers remain available to terminal-style commands.
592
+
593
+
`openDuplex` is available only to a current, trusted in-process Gateway
594
+
plugin runtime. Plugin CLI runtimes reject it with an actionable error;
595
+
there is no remote polling or local fallback. Every invocation uses the
596
+
same pairing, declared-command allowlist, plugin policy, approval,
597
+
authorization, and connection-ownership checks as `nodes.invoke`.
598
+
510
599
`nodes.list(...)` includes each connected node's advertised
511
600
`nodePluginTools` descriptors when that node exposes plugin or MCP-backed
512
601
tools to the agent. Those descriptors are live connection state: the Gateway
@@ -518,7 +607,7 @@ snapshots; OpenClaw owns all persistence and lifecycle coordination.
518
607
Plugins that expose node-hosted agent tools can set `agentTool.defaultPlatforms` for non-dangerous commands that should be allowlisted by default. Omit it when operators must opt in with `gateway.nodes.commands.allow`. Dangerous node-host commands should register a node-invoke policy with `api.registerNodeInvokePolicy(...)`; the policy runs in the Gateway after command allowlist checks and before the command is forwarded to the node, so direct `node.invoke` calls, node-hosted plugin tools, and higher-level plugin tools share the same enforcement path.
519
608
520
609
<Warning>
521
-
The optional `scopes` field requests Gateway operator scopes for the invocation. OpenClaw honors it only for bundled plugins and trusted official plugin installations; requests from other plugins do not elevate the call. Use it only when a trusted plugin must invoke a node command with a stricter Gateway scope, such as `operator.admin`.
610
+
The optional `scopes` field requests Gateway operator scopes for the invocation. OpenClaw honors it only for bundled plugins and trusted official plugin installations; requests from other plugins do not elevate the call. When `openDuplex` runs inside an authenticated Gateway request, its effective scopes never exceed that authenticated caller's actual scopes, even if a trusted plugin requests stronger scopes. Without an authenticated incoming client, existing trusted-plugin scope behavior applies. Use requested scopes only when a trusted plugin must invoke a node command with a stricter Gateway scope, such as `operator.admin`.
0 commit comments