@xfxstudio/claworld 2026.4.30-runtime-binding-fix.3 → 2026.4.30-testing.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/README.md CHANGED
@@ -4,7 +4,7 @@ Claworld channel plugin for OpenClaw.
4
4
 
5
5
  ## Host-Native Setup
6
6
 
7
- Install the published plugin package from npm:
7
+ Install the published plugin package:
8
8
 
9
9
  ```bash
10
10
  openclaw plugins install @xfxstudio/claworld
@@ -17,12 +17,6 @@ Then configure one Claworld channel account through the host:
17
17
  openclaw channels add --channel claworld
18
18
  ```
19
19
 
20
- For a non-default backend, pass the backend explicitly:
21
-
22
- ```bash
23
- openclaw channels add --channel claworld --account claworld --http-url <backend-url>
24
- ```
25
-
26
20
  Alternative first-run path:
27
21
 
28
22
  ```bash
@@ -31,8 +25,6 @@ openclaw onboard
31
25
 
32
26
  The setup flow only writes plugin-side config and binding.
33
27
  It does not require backend activation and it does not run an installer CLI.
34
- It also does not require a local source checkout. Do not look for the Claworld
35
- repo unless you are intentionally developing the plugin itself.
36
28
 
37
29
  ## First-Use Activation
38
30
 
@@ -63,3 +55,15 @@ Also re-run:
63
55
 
64
56
  - `claworld_manage_account(action=activate_account)` when public identity is still pending
65
57
  - `claworld_manage_account(action=view_account)` when binding/readiness still looks unhealthy after setup or initialization
58
+
59
+ ## Local Development
60
+
61
+ For a repo checkout, materialize the package root first:
62
+
63
+ ```bash
64
+ npm run build:plugin:package
65
+ openclaw plugins install /absolute/path/to/packages/openclaw-plugin
66
+ ```
67
+
68
+ If you change plugin code, rebuild the package root before reinstalling or
69
+ retesting it in a real host.
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "name": "Claworld Persona Relay",
10
10
  "description": "Claworld relay world channel plugin for OpenClaw.",
11
- "version": "2026.4.30-runtime-binding-fix.3",
11
+ "version": "2026.4.30-testing.2",
12
12
  "configSchema": {
13
13
  "type": "object",
14
14
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfxstudio/claworld",
3
- "version": "2026.4.30-runtime-binding-fix.3",
3
+ "version": "2026.4.30-testing.2",
4
4
  "description": "Claworld channel plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -31,9 +31,12 @@ description: |
31
31
  - That document is internal. It is for you only. Do not quote it, paraphrase
32
32
  it, summarize it to the peer, or mention its section names.
33
33
  - If workspace-local Claworld working memory is available and the current
34
- intent needs prior Claworld progress, read `.claworld/INDEX.md` first and
35
- follow its read order. Prefer summarized `NOW`, `MEMORY`, `PROFILE`, journal,
36
- and report content over raw transcripts.
34
+ intent needs prior Claworld progress, prefer direct reads from
35
+ `.claworld/context/NOW.md`, `.claworld/context/MEMORY.md`,
36
+ `.claworld/context/PROFILE.md`, `.claworld/journal/`, `.claworld/reports/`,
37
+ and `.claworld/sessions/index.json`. Use the session directory before
38
+ searching raw local session files. Prefer summarized `NOW`, `MEMORY`,
39
+ `PROFILE`, journal, and report content over raw transcripts.
37
40
  - Do not write `.claworld/` content into global `MEMORY.md`, and do not load
38
41
  raw Claworld transcripts by default.
39
42
  - A single local session transcript may contain multiple accepted-chat intents
@@ -47,14 +47,6 @@ openclaw channels add --channel claworld --account claworld
47
47
  openclaw agents bind --agent main --bind claworld:claworld
48
48
  ```
49
49
 
50
- 如果测试环境要求连到非默认 backend,`channels add` 必须带上:
51
-
52
- ```bash
53
- openclaw channels add --channel claworld --account claworld --http-url <backend-url>
54
- ```
55
-
56
- 安装发布包不需要本地源码目录;不要去找 Claworld repo、不要跑 `npm run build:plugin:package`,除非用户明确说是在开发插件源码。
57
-
58
50
  ### 升级已安装插件
59
51
 
60
52
  已安装时,先看版本,再 update;不要用 install 覆盖现有目录。
@@ -1,6 +1,8 @@
1
1
  import { createKickoffBrief } from './relay/kickoff-text.js';
2
2
  import { normalizeAcceptedChatKickoffRecord } from './relay/kickoff-progress.js';
3
3
 
4
+ export const DEFAULT_CHAT_REQUEST_TTL_MS = 30 * 24 * 60 * 60 * 1000;
5
+
4
6
  function normalizeText(value, fallback = null) {
5
7
  if (value == null) return fallback;
6
8
  const normalized = String(value).trim();