@claw-link/gateway-host 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/adapters/cli.js +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claw-link/gateway-host",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "ClawLink Host Gateway — a secure, outbound-only worker that bridges a local agent CLI (OpenClaw, Hermes, Claude, Codex, Cursor) to your ClawLink agents. No inbound ports; authenticated per-agent by a Host Token.",
|
|
5
5
|
"homepage": "https://claw-link.co",
|
|
6
6
|
"bin": {
|
package/src/adapters/cli.js
CHANGED
|
@@ -116,8 +116,13 @@ function makeCliAdapter(cfg) {
|
|
|
116
116
|
// edit or run shell. permArgs is handed to defaultArgs so each adapter can place
|
|
117
117
|
// it correctly (e.g. Codex must put flags BEFORE its `--` end-of-options).
|
|
118
118
|
// Operator args_template overrides take full control.
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
// Harness nodes do collaborative work (write code/files, run commands), so they get
|
|
120
|
+
// workspace-write like an admin "configure" turn — even though they're carried on the
|
|
121
|
+
// 'customer' scope. Real customer chats stay read-only.
|
|
122
|
+
const writable = !!job.harness || job.scope === 'configure' || job.scope === 'sub_configure';
|
|
123
|
+
const permArgs = (!Array.isArray(agent.args_template) && cfg.permissions)
|
|
124
|
+
? cfg.permissions(writable ? 'configure' : (job.scope || 'customer'))
|
|
125
|
+
: [];
|
|
121
126
|
const argvFor = (rid) => Array.isArray(agent.args_template)
|
|
122
127
|
? buildArgv(agent.args_template, { prompt: fullPrompt, sessionId: rid || '', systemPrompt })
|
|
123
128
|
: cfg.defaultArgs(fullPrompt, rid, cfg.promptViaStdin, permArgs);
|