@totalreclaw/totalreclaw 3.3.9-rc.4 → 3.3.10-rc.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.
- package/CHANGELOG.md +20 -0
- package/SKILL.md +39 -23
- package/package.json +1 -1
- package/skill.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,26 @@ All notable changes to `@totalreclaw/totalreclaw` (the OpenClaw plugin) are docu
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [3.3.10-rc.2] — 2026-05-05
|
|
8
|
+
|
|
9
|
+
Critical 502 fix via shell-side detach (rc.10-rc.1's plugin-side `child_process` approach was reverted — scanner blocks `child_process` imports anywhere in the plugin tree). Pedro's manual QA on rc.4 confirmed the persistent 502 `gateway_disconnected` was NOT caused by relay idle close (PR #14's 5s+immediate WS keepalive was deployed and verified at sha `0ff812a`). Real cause: each `openclaw plugins install` writes `plugins.installs.totalreclaw.*` to the gateway config, triggering a deferred SIGUSR1 reload that eventually fires and kills any in-flight foreground subprocess — including the agent shell-tool's `node tr-cli pair --json` which holds the relay WS until the browser uploads the encrypted phrase.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **`tr pair` invocation now uses shell-side `setsid -f` for session detachment.** SKILL.md and the public OpenClaw setup guide instruct the agent to spawn `tr pair --json` via `setsid -f` so the WS-holding subprocess is in its own POSIX session, untethered from the agent shell-tool's process group. The pair process survives any subsequent gateway SIGUSR1 reload, and the URL+PIN payload is captured to a tmp file the moment the WS handshake completes (~100-500ms typical). Verified live on pop-os 2026-05-05: `setsid -f node tr-cli.js pair --json > /tmp/...` returned exit 0 immediately, the detached `node tr-cli pair --json` process kept running across a `kill -USR1 1` to PID 1 in the container, and the URL+PIN was readable from the tmp file at +2s.
|
|
14
|
+
|
|
15
|
+
This needs no plugin-code change — it's a shell-side mechanism the agent uses when invoking the existing CLI. The plugin tree stays free of `child_process` imports (which would trip OpenClaw's runtime scanner same as the 3.3.2-era `postinstall.mjs` block).
|
|
16
|
+
|
|
17
|
+
- **CLI install path corrected for OpenClaw 2026.5.x.** SKILL.md and `docs/guides/openclaw-setup.md` previously referenced `~/.openclaw/extensions/totalreclaw/dist/tr-cli.js` exclusively. Modern OpenClaw 2026.5.x npm-managed plugins install under `~/.openclaw/npm/node_modules/@totalreclaw/totalreclaw/dist/...` (verified via `openclaw plugins inspect totalreclaw` → "Install path: ~/.openclaw/npm/node_modules/@totalreclaw/totalreclaw"). Both paths now appear in the recommended `TR_CLI` resolver:
|
|
18
|
+
```bash
|
|
19
|
+
TR_CLI="$(ls -d ~/.openclaw/npm/node_modules/@totalreclaw/totalreclaw/dist/tr-cli.js ~/.openclaw/extensions/totalreclaw/dist/tr-cli.js 2>/dev/null | head -1)"
|
|
20
|
+
```
|
|
21
|
+
Resolver picks the first existing path, so the agent works on both modern and legacy installs without per-version branching.
|
|
22
|
+
|
|
23
|
+
### Reverted
|
|
24
|
+
|
|
25
|
+
- **3.3.10-rc.1 plugin-side `child_process` detach** — scanner-sim blocked the publish on `import { spawn } from 'node:child_process'` in `tr-cli.ts`. OpenClaw's runtime scanner (which inspects the full tarball regardless of file role — same rule that killed `postinstall.mjs` in 3.3.2) would have blocked install at the user's gateway even if the publish had been bypassed. rc.10-rc.2 takes the equivalent detach via shell-side `setsid -f`, which OpenClaw's exec subsystem treats as a normal shell command.
|
|
26
|
+
|
|
7
27
|
## [3.3.9-rc.4] — 2026-05-05
|
|
8
28
|
|
|
9
29
|
Defensive patch hardening `patchOpenClawConfig()` Fix #1 against a startup crash loop observed on Pedro's pop-os QA host on 2026-05-05.
|
package/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: totalreclaw
|
|
3
3
|
description: "Install + set up TotalReclaw encrypted memory for OpenClaw, then use tr CLI for remember / recall. Trigger on 'install TotalReclaw', 'set up TotalReclaw', 'restore my recovery phrase', or any remember / recall request."
|
|
4
|
-
version: 3.3.
|
|
4
|
+
version: 3.3.10-rc.2
|
|
5
5
|
author: TotalReclaw Team
|
|
6
6
|
license: MIT
|
|
7
7
|
homepage: https://totalreclaw.xyz
|
|
@@ -50,8 +50,16 @@ If you find yourself about to say any of these, STOP. The correct statement is:
|
|
|
50
50
|
|
|
51
51
|
OpenClaw 2026.5.2 has a tool-policy-pipeline bug (issue #223) that strips non-bundled plugin tools before they reach the agent toolset. **3.3.9-rc.1 makes the `tr` CLI the PRIMARY path for all memory operations.** Native tools (`totalreclaw_*`) are kept for back-compat with older OpenClaw versions where they work, but the agent MUST NOT depend on them. Use `tr` from your shell tool for everything.
|
|
52
52
|
|
|
53
|
-
**The `tr` binary is installed at:**
|
|
54
|
-
|
|
53
|
+
**The `tr` binary is installed at one of two paths depending on OpenClaw version:**
|
|
54
|
+
- Modern (2026.5.x npm-managed): `~/.openclaw/npm/node_modules/@totalreclaw/totalreclaw/dist/tr-cli.js`
|
|
55
|
+
- Legacy (extensions tree): `~/.openclaw/extensions/totalreclaw/dist/tr-cli.js`
|
|
56
|
+
|
|
57
|
+
**Resolve the path once at the top of your shell session and reuse:**
|
|
58
|
+
```bash
|
|
59
|
+
TR_CLI="$(ls -d ~/.openclaw/npm/node_modules/@totalreclaw/totalreclaw/dist/tr-cli.js ~/.openclaw/extensions/totalreclaw/dist/tr-cli.js 2>/dev/null | head -1)"
|
|
60
|
+
```
|
|
61
|
+
Then invoke as `node "$TR_CLI" <cmd> [--json]`.
|
|
62
|
+
|
|
55
63
|
**Never rely on `totalreclaw_*` tool binding** — it may not be available due to issue #223.
|
|
56
64
|
|
|
57
65
|
## User-visible line set (THIS IS ALL YOU SAY)
|
|
@@ -81,41 +89,49 @@ If existing credentials are detected (step "Check for existing credentials" belo
|
|
|
81
89
|
|
|
82
90
|
If either shell call fails with `command not found` / ENOENT / "not authorized" (managed-service or shell-restricted environment), tell the user verbatim *"Your environment doesn't expose the OpenClaw CLI to me. Please install `totalreclaw` from your service's plugins / skills UI, then reply `done`."* Wait for `done` and skip to step 3.
|
|
83
91
|
|
|
84
|
-
2. **Verify CLI works — emit user-visible line 2 when successful.**
|
|
85
|
-
```
|
|
86
|
-
|
|
92
|
+
2. **Verify CLI works — emit user-visible line 2 when successful.** Resolve `TR_CLI` and run:
|
|
93
|
+
```bash
|
|
94
|
+
TR_CLI="$(ls -d ~/.openclaw/npm/node_modules/@totalreclaw/totalreclaw/dist/tr-cli.js ~/.openclaw/extensions/totalreclaw/dist/tr-cli.js 2>/dev/null | head -1)"
|
|
95
|
+
node "$TR_CLI" status --json
|
|
87
96
|
```
|
|
88
97
|
Parse the JSON. When you get `{"version": "...", "hybrid_mode": true, ...}`, emit user-visible line 2 with the version substituted. **Do NOT wait for tool binding. Do NOT issue `/totalreclaw-restart`. Do NOT check whether `totalreclaw_pair` is in your toolset.** The CLI works independently of tool binding. If `tr status` exits non-zero or the file doesn't exist, wait 5s and retry once — it may still be installing.
|
|
89
98
|
|
|
90
99
|
3. **Check for existing credentials (silent unless found).** Run `test -s ~/.totalreclaw/credentials.json`. If it exists and is non-empty, emit *"✓ TotalReclaw is already set up."* and stop.
|
|
91
100
|
|
|
92
|
-
4. **Set up the user's TotalReclaw account IMMEDIATELY — no consent gate.** As soon as `tr status --json` returns and credentials are not present, run:
|
|
101
|
+
4. **Set up the user's TotalReclaw account IMMEDIATELY — no consent gate.** As soon as `tr status --json` returns and credentials are not present, run pair in DETACHED mode. CRITICAL: a foreground `node tr-cli pair` is killed when the gateway fires its post-install SIGUSR1 reload (3.3.10 finding from Pedro's 2026-05-05 QA — relay logs `gateway_disconnected` 502 on `/respond`). Use `setsid -f` so the pair process is in its own session and survives any subsequent gateway SIGUSR1 reload. The handshake URL+PIN is written to a tmp file the moment the WS opens (~100-500ms typical):
|
|
102
|
+
```bash
|
|
103
|
+
PAIR_OUT="/tmp/tr-pair-out-$(date +%s).json"
|
|
104
|
+
setsid -f node "$TR_CLI" pair --json > "$PAIR_OUT" 2>&1 < /dev/null
|
|
105
|
+
sleep 2
|
|
106
|
+
cat "$PAIR_OUT"
|
|
93
107
|
```
|
|
94
|
-
|
|
95
|
-
```
|
|
96
|
-
This is UNCONDITIONAL. Do NOT ask "Would you like to set up an account?" or "Want me to pair now?". The user installed TotalReclaw — setup is the expected next step. The URL + PIN itself is the consent moment (the user can simply not open the page to opt out). Parse the JSON response `{"url": "...", "pin": "...", "expires_at": "..."}` and emit user-visible line 3. If `tr pair --json` is not available (old install), fall back to `totalreclaw_pair` tool or `openclaw totalreclaw pair generate --url-pin-only`.
|
|
108
|
+
This is UNCONDITIONAL. Do NOT ask "Would you like to set up an account?" or "Want me to pair now?". The user installed TotalReclaw — setup is the expected next step. The URL + PIN itself is the consent moment (the user can simply not open the page to opt out). Parse the JSON response `{"url": "...", "pin": "...", "expires_at_ms": ...}` and emit user-visible line 3. If the cat output is empty after 2s, sleep 2 more seconds and try again (relay handshake can take up to 4s on a cold network). If `tr pair --json` is not available (old install), fall back to `totalreclaw_pair` tool or `openclaw totalreclaw pair generate --url-pin-only`.
|
|
97
109
|
|
|
98
|
-
5. **Verify and confirm (silent until line 4).** After the user says `done`, re-run `test -s ~/.totalreclaw/credentials.json`. If missing, the PIN expired —
|
|
110
|
+
5. **Verify and confirm (silent until line 4).** After the user says `done`, re-run `test -s ~/.totalreclaw/credentials.json`. If missing, the PIN expired — repeat the `setsid -f node "$TR_CLI" pair --json` block and resend line 3 once. If present, emit user-visible line 4 and stop.
|
|
99
111
|
|
|
100
112
|
## `tr` CLI reference (hybrid-primary commands)
|
|
101
113
|
|
|
102
114
|
Always use `--json` flag when running from shell for machine-parseable output. Plain text mode is for direct user invocation only.
|
|
103
115
|
|
|
104
116
|
```bash
|
|
117
|
+
# (Resolve TR_CLI once at the top of your session)
|
|
118
|
+
TR_CLI="$(ls -d ~/.openclaw/npm/node_modules/@totalreclaw/totalreclaw/dist/tr-cli.js ~/.openclaw/extensions/totalreclaw/dist/tr-cli.js 2>/dev/null | head -1)"
|
|
119
|
+
|
|
105
120
|
# Status check (parse JSON to confirm install + onboarding state)
|
|
106
|
-
node
|
|
107
|
-
# Returns: {"version":"3.3.
|
|
121
|
+
node "$TR_CLI" status --json
|
|
122
|
+
# Returns: {"version":"3.3.10-rc.2","onboarded":false,"next_step":"pair","tool_count":17,"hybrid_mode":true}
|
|
108
123
|
|
|
109
|
-
# Pair / account setup
|
|
110
|
-
|
|
111
|
-
|
|
124
|
+
# Pair / account setup — ALWAYS run via setsid -f to survive gateway restarts
|
|
125
|
+
PAIR_OUT="/tmp/tr-pair-out-$(date +%s).json"
|
|
126
|
+
setsid -f node "$TR_CLI" pair --json > "$PAIR_OUT" 2>&1 < /dev/null && sleep 2 && cat "$PAIR_OUT"
|
|
127
|
+
# Returns: {"v":1,"sid":"...","url":"https://...","pin":"123456","mode":"generate","expires_at_ms":...,"qr_ascii":"..."}
|
|
112
128
|
|
|
113
|
-
# Remember a fact
|
|
114
|
-
node
|
|
129
|
+
# Remember a fact (foreground OK — non-blocking single-shot HTTP call)
|
|
130
|
+
node "$TR_CLI" remember --json "I work at Graph Foundation"
|
|
115
131
|
# Returns: {"ok":true,"id":"...","claim_count":N}
|
|
116
132
|
|
|
117
133
|
# Recall memories
|
|
118
|
-
node
|
|
134
|
+
node "$TR_CLI" recall --json "where does the user work" --limit 5
|
|
119
135
|
# Returns: {"results":[{"text":"...","score":0.8},...]}
|
|
120
136
|
```
|
|
121
137
|
|
|
@@ -138,12 +154,12 @@ NEVER echo / generate / ask the user to paste a recovery phrase in chat. NEVER i
|
|
|
138
154
|
## Usage (post-setup)
|
|
139
155
|
|
|
140
156
|
- Stable user facts / preferences / identity / "remember X":
|
|
141
|
-
```
|
|
142
|
-
node
|
|
157
|
+
```bash
|
|
158
|
+
node "$TR_CLI" remember --json "<fact>"
|
|
143
159
|
```
|
|
144
160
|
- First-person factual query ("do I / what's my / where do I…"):
|
|
145
|
-
```
|
|
146
|
-
node
|
|
161
|
+
```bash
|
|
162
|
+
node "$TR_CLI" recall --json "<query>" --limit 5
|
|
147
163
|
```
|
|
148
164
|
Recall FIRST, then answer from returned facts. If 0 results, say so.
|
|
149
165
|
- For forget / pin / unpin / retype / set_scope — use native tools if available, or ask user to run `openclaw totalreclaw` subcommand.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalreclaw/totalreclaw",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.10-rc.2",
|
|
4
4
|
"description": "End-to-end encrypted, agent-portable memory for OpenClaw and any LLM-agent runtime. XChaCha20-Poly1305 with protobuf v4 + on-chain Memory Taxonomy v1 (claim / preference / directive / commitment / episode / summary).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
package/skill.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "totalreclaw",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.10-rc.2",
|
|
4
4
|
"description": "End-to-end encrypted memory for AI agents — portable, yours forever. XChaCha20-Poly1305 E2EE: server never sees plaintext.",
|
|
5
5
|
"author": "TotalReclaw Team",
|
|
6
6
|
"license": "MIT",
|