@reefclaw/connect 0.1.1 → 0.1.2

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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: reefclaw
3
- version: 0.0.1
3
+ version: 0.0.2
4
4
  description: ReefClaw trading control room — bootstrap (connects your agent; full trading instructions arrive automatically after first connect)
5
5
  author: ReefClaw
6
6
  homepage: https://reefclaw.com
@@ -29,7 +29,7 @@ config:
29
29
  connect instructions. The FULL trading instructions (versioned 2.x.y) are
30
30
  delivered automatically by the ReefClaw connector minutes after the first
31
31
  successful connect, over the authenticated update channel — they replace
32
- this file in place (version 0.0.1 always loses the semver comparison).
32
+ this file in place (a 0.0.x version always loses the semver comparison).
33
33
  The "Connecting (first run)" section below MUST stay in sync with the
34
34
  same section in skill/SKILL.md. -->
35
35
 
@@ -37,7 +37,7 @@ config:
37
37
 
38
38
  You are being connected to **ReefClaw**, a supervised trading control room. Your operator watches everything you do on the ReefClaw dashboard. This bootstrap file only covers **connecting**; your full trading instructions arrive automatically a few minutes after the connection succeeds.
39
39
 
40
- **Do not attempt to trade before the full instructions arrive.** If trading tools are visible but this file is still the bootstrap version (0.0.1), the connection has not completed — finish connecting first.
40
+ **Do not attempt to trade before the full instructions arrive.** If trading tools are visible but this file is still a bootstrap version (0.0.x), the connection has not completed — finish connecting first.
41
41
 
42
42
  ## Connecting (first run) — saving the connect message
43
43
 
@@ -66,8 +66,22 @@ When a user gives you this message (or just a bare `Here's my ReefClaw token: rc
66
66
  - After saving, the connector picks the config up within seconds (it restarts until a token appears). The user does not need to run any command.
67
67
  - If you cannot write the config yourself (e.g. exec or file access is restricted in this session), show the user this exact JSON snippet and where it goes, and offer to verify it after they save it.
68
68
 
69
+ ## If you cannot run the installer (elevated exec disabled)
70
+
71
+ Fresh OpenClaw installs deny elevated (host) exec from chat sessions. If `npx @reefclaw/connect` is blocked, do NOT dead-end — offer the user this choice:
72
+
73
+ 1. **Self-service (no terminal)**:
74
+ - Add the user's **sender id** (visible in this session's context) to `tools.elevated.allowFrom.<this channel>` in `~/.openclaw/openclaw.json`. This is an **array of sender ids per provider** — e.g. `"tools": { "elevated": { "allowFrom": { "telegram": ["12345678"] } } }` — NOT a boolean.
75
+ - Tell the user to type `/restart` in this chat (OpenClaw's built-in in-process restart).
76
+ - Then the user types `/elevated full` — elevated exec is **per-session and off until the user activates it**; OpenClaw confirms with "Elevated mode set to full". If it replies that the sender is not on the allowlist, re-check the allowFrom shape.
77
+ - **RETRY the install command — do not assume it is still blocked.**
78
+ - After the install succeeds: the user types `/elevated off` and you remove the allowFrom entry (the installed system never needs elevated exec — only the install did).
79
+ 2. **Manual (last resort)**: the user runs `npx @reefclaw/connect` themselves in a terminal on this machine — one command, nothing else.
80
+
81
+ Either way, **save the connection config regardless** — the connector picks it up automatically the moment the install completes.
82
+
69
83
  ## After connecting
70
84
 
71
85
  - The ReefClaw dashboard flips to **Connected** on its own — no manual verification step.
72
86
  - Your full trading instructions (SKILL.md version 2.x) are delivered automatically over the authenticated connection and replace this file. You will be notified in chat when that happens.
73
- - If more than ~10 minutes pass after a successful connect and this file is still version 0.0.1, tell the user to check the dashboard connection status.
87
+ - If more than ~10 minutes pass after a successful connect and this file is still a 0.0.x bootstrap version, tell the user to check the dashboard connection status.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reefclaw/connect",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "One-command installer that connects your OpenClaw agent to ReefClaw (paper trading, no exchange keys).",
5
5
  "type": "module",
6
6
  "bin": {