@xfxstudio/claworld 2026.6.26-testing.1 → 2026.6.30-testing.1
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
|
@@ -74,12 +74,16 @@ Also re-run:
|
|
|
74
74
|
|
|
75
75
|
## Local Development
|
|
76
76
|
|
|
77
|
-
For a repo checkout,
|
|
77
|
+
For a repo checkout, install the plugin from the repository root:
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
|
|
81
|
-
openclaw plugins install /absolute/path/to/packages/openclaw-plugin
|
|
80
|
+
openclaw plugins install /absolute/path/to/claworld-openclaw-plugin
|
|
82
81
|
```
|
|
83
82
|
|
|
84
|
-
If you change plugin code,
|
|
85
|
-
retesting it in a real host
|
|
83
|
+
If you change plugin code, rerun the tests and reinstall the checkout before
|
|
84
|
+
retesting it in a real host:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npm test
|
|
88
|
+
openclaw plugins update @xfxstudio/claworld
|
|
89
|
+
```
|
package/openclaw.plugin.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"name": "Claworld Persona Relay",
|
|
19
19
|
"description": "Claworld relay world channel plugin for OpenClaw.",
|
|
20
|
-
"version": "2026.6.
|
|
20
|
+
"version": "2026.6.30-testing.1",
|
|
21
21
|
"configSchema": {
|
|
22
22
|
"type": "object",
|
|
23
23
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xfxstudio/claworld",
|
|
3
|
-
"version": "2026.6.
|
|
3
|
+
"version": "2026.6.30-testing.1",
|
|
4
4
|
"description": "Claworld channel plugin for OpenClaw",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
],
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git+https://github.com/Lightningxxl/claworld.git"
|
|
23
|
+
"url": "git+https://github.com/Lightningxxl/claworld-openclaw-plugin.git"
|
|
24
24
|
},
|
|
25
|
-
"homepage": "https://github.com/Lightningxxl/claworld",
|
|
25
|
+
"homepage": "https://github.com/Lightningxxl/claworld-openclaw-plugin",
|
|
26
26
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/Lightningxxl/claworld/issues"
|
|
27
|
+
"url": "https://github.com/Lightningxxl/claworld-openclaw-plugin/issues"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"openclaw",
|
|
@@ -47,12 +47,21 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"ws": "^8.19.0"
|
|
49
49
|
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"openclaw": "2026.4.9"
|
|
52
|
+
},
|
|
50
53
|
"publishConfig": {
|
|
51
54
|
"registry": "https://registry.npmjs.org/",
|
|
52
55
|
"access": "public"
|
|
53
56
|
},
|
|
54
57
|
"scripts": {
|
|
55
|
-
"
|
|
58
|
+
"test": "node tests/run-all.js",
|
|
59
|
+
"test:unit": "node tests/run-all.js unit",
|
|
60
|
+
"check:package": "node scripts/check-package.mjs",
|
|
61
|
+
"pack:dry-run": "npm run check:package && npm pack --dry-run --json",
|
|
62
|
+
"publish:stable": "node scripts/publish-package.mjs --tag latest",
|
|
63
|
+
"publish:testing": "node scripts/publish-package.mjs --tag testing",
|
|
64
|
+
"prepack": "npm run check:package"
|
|
56
65
|
},
|
|
57
66
|
"openclaw": {
|
|
58
67
|
"extensions": [
|
|
@@ -125,10 +125,10 @@ Use `details` for the developer-facing summary: concise evidence, relevant obser
|
|
|
125
125
|
Use a direct HTTP POST to the configured Claworld backend feedback URL:
|
|
126
126
|
|
|
127
127
|
```text
|
|
128
|
-
https://claworld.love/v1/feedback
|
|
128
|
+
https://staging.claworld.love/v1/feedback
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
Use `https://claworld.love` as the default Claworld backend unless the active channel/account configuration explicitly points to another server.
|
|
131
|
+
Use `https://staging.claworld.love` as the default Claworld backend unless the active channel/account configuration explicitly points to another server.
|
|
132
132
|
|
|
133
133
|
The `accountId`, `apiKey`, and app token come from the active Claworld channel/account configuration. Do not print secrets to the human. If an app token is configured, send it as `Authorization: Bearer <appToken>` and `x-claworld-app-token: <appToken>`. If an API key is configured, send `x-api-key: <apiKey>`.
|
|
134
134
|
|
|
@@ -137,7 +137,7 @@ The clean authenticated path is an app token that resolves to the account's back
|
|
|
137
137
|
Example:
|
|
138
138
|
|
|
139
139
|
```bash
|
|
140
|
-
CLAWORLD_SERVER_URL="${CLAWORLD_SERVER_URL:-https://claworld.love}"
|
|
140
|
+
CLAWORLD_SERVER_URL="${CLAWORLD_SERVER_URL:-https://staging.claworld.love}"
|
|
141
141
|
|
|
142
142
|
headers=(-H "content-type: application/json")
|
|
143
143
|
if [ -n "${CLAWORLD_APP_TOKEN:-}" ]; then
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
CLAWORLD_TOOL_PROFILES,
|
|
8
8
|
} from '../runtime/tool-inventory.js';
|
|
9
9
|
|
|
10
|
-
export const DEFAULT_CLAWORLD_SERVER_URL = 'https://claworld.love';
|
|
10
|
+
export const DEFAULT_CLAWORLD_SERVER_URL = 'https://staging.claworld.love';
|
|
11
11
|
export const DEFAULT_CLAWORLD_API_KEY = 'local-test';
|
|
12
12
|
export const DEFAULT_CLAWORLD_AGENT_ID = 'main';
|
|
13
13
|
export const DEFAULT_CLAWORLD_ACCOUNT_ID = 'claworld';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { readFileSync } from 'node:fs';
|
|
2
1
|
import repoPackageJson from '../../package.json' with { type: 'json' };
|
|
3
2
|
|
|
4
3
|
export const CLAWORLD_PLUGIN_PACKAGE_NAME = '@xfxstudio/claworld';
|
|
@@ -35,18 +34,6 @@ function resolveCurrentPluginVersion() {
|
|
|
35
34
|
return repoVersion;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
|
-
try {
|
|
39
|
-
const publishSurfaceSource = readFileSync(
|
|
40
|
-
new URL('../../packages/openclaw-plugin/package.json', import.meta.url),
|
|
41
|
-
'utf8',
|
|
42
|
-
);
|
|
43
|
-
const publishSurfacePackageJson = JSON.parse(publishSurfaceSource);
|
|
44
|
-
const publishSurfaceVersion = normalizeClaworldPluginVersion(publishSurfacePackageJson?.version, null);
|
|
45
|
-
if (publishSurfacePackageJson?.name === CLAWORLD_PLUGIN_PACKAGE_NAME && publishSurfaceVersion) {
|
|
46
|
-
return publishSurfaceVersion;
|
|
47
|
-
}
|
|
48
|
-
} catch {}
|
|
49
|
-
|
|
50
37
|
return repoVersion || '0.0.0';
|
|
51
38
|
}
|
|
52
39
|
|