@coolclaw/coolclaw 1.0.15 → 1.0.17

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,18 +1,20 @@
1
1
  import {
2
2
  CoolclawConfigSchema,
3
+ activeFlavor,
3
4
  coolclawChannelPlugin,
4
5
  defaultBindingFile,
5
6
  setCoolclawRuntime
6
- } from "./chunk-R4H3YAWU.js";
7
+ } from "./chunk-3YKMAM6K.js";
7
8
 
8
9
  // index.ts
9
10
  import { defineChannelPluginEntry, buildChannelConfigSchema } from "openclaw/plugin-sdk/core";
10
11
 
11
12
  // src/cli.ts
12
13
  function registerCoolclawCli(options) {
13
- const coolclaw = options.program.command("coolclaw").description("Manage the CoolClaw/Riddle channel");
14
- coolclaw.command("status").description("Show the shared Riddle binding location used by CoolClaw").action(() => {
15
- console.log(JSON.stringify({ bindingFile: defaultBindingFile() }, null, 2));
14
+ const flavor = activeFlavor();
15
+ const coolclaw = options.program.command(flavor.channelId).description(`Manage the ${flavor.displayName} channel`);
16
+ coolclaw.command("status").description(`Show the shared binding location used by ${flavor.displayName}`).action(() => {
17
+ console.log(JSON.stringify({ bindingFile: defaultBindingFile(void 0, flavor) }, null, 2));
16
18
  });
17
19
  }
18
20
 
@@ -55,10 +57,12 @@ function advisoryHostCompatibility(hostVersion) {
55
57
  }
56
58
 
57
59
  // index.ts
60
+ var productFlavor = activeFlavor();
61
+ var productDescription = productFlavor.productKey === "coolclaw" ? "CoolClaw/Riddle messaging channel for OpenClaw" : `${productFlavor.displayName} messaging channel for OpenClaw`;
58
62
  var entry = defineChannelPluginEntry({
59
- id: "coolclaw",
60
- name: "CoolClaw",
61
- description: "CoolClaw/Riddle messaging channel for OpenClaw",
63
+ id: productFlavor.pluginId,
64
+ name: productFlavor.displayName,
65
+ description: productDescription,
62
66
  configSchema: buildChannelConfigSchema(CoolclawConfigSchema),
63
67
  plugin: coolclawChannelPlugin,
64
68
  registerCliMetadata(api) {
@@ -69,8 +73,8 @@ var entry = defineChannelPluginEntry({
69
73
  {
70
74
  descriptors: [
71
75
  {
72
- name: "coolclaw",
73
- description: "Manage the CoolClaw/Riddle channel",
76
+ name: productFlavor.channelId,
77
+ description: `Manage the ${productFlavor.displayName} channel`,
74
78
  hasSubcommands: true
75
79
  }
76
80
  ]
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  index_default
3
- } from "./chunk-RCPRLBZL.js";
4
- import "./chunk-R4H3YAWU.js";
3
+ } from "./chunk-RPT3G66A.js";
4
+ import "./chunk-3YKMAM6K.js";
5
5
 
6
6
  // cli-metadata.ts
7
7
  var cli_metadata_default = index_default;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  index_default
3
- } from "./chunk-RCPRLBZL.js";
4
- import "./chunk-R4H3YAWU.js";
3
+ } from "./chunk-RPT3G66A.js";
4
+ import "./chunk-3YKMAM6K.js";
5
5
  export {
6
6
  index_default as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  coolclawChannelPlugin
3
- } from "./chunk-R4H3YAWU.js";
3
+ } from "./chunk-3YKMAM6K.js";
4
4
 
5
5
  // setup-entry.ts
6
6
  import { defineSetupPluginEntry } from "openclaw/plugin-sdk/core";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "coolclaw",
3
3
  "name": "CoolClaw",
4
- "description": "CoolClaw/Riddle messaging channel for OpenClaw",
4
+ "description": "CoolClaw messaging channel for OpenClaw",
5
5
  "channels": [
6
6
  "coolclaw"
7
7
  ],
@@ -16,8 +16,8 @@
16
16
  "additionalProperties": {
17
17
  "type": "object",
18
18
  "properties": {
19
- "gatewayUrl": { "type": "string", "description": "Riddle gateway URL" },
20
- "agentId": { "type": "string", "description": "Riddle agent ID" },
19
+ "gatewayUrl": { "type": "string", "description": "CoolClaw gateway URL" },
20
+ "agentId": { "type": "string", "description": "CoolClaw agent ID" },
21
21
  "tokenSecretRef": { "type": "string", "description": "Token secret reference (file:// or env:)" },
22
22
  "allowFrom": { "type": "array", "items": { "type": "string" }, "description": "Allowed sender IDs" },
23
23
  "dmPolicy": { "type": "string", "enum": ["allowlist", "pairing", "open"], "description": "DM access policy" },
@@ -29,7 +29,7 @@
29
29
  }
30
30
  },
31
31
  "label": "CoolClaw",
32
- "description": "Riddle CoolClaw chat platform",
32
+ "description": "CoolClaw chat platform",
33
33
  "uiHints": {
34
34
  "accounts.default.gatewayUrl": { "label": "Gateway URL" },
35
35
  "accounts.default.agentId": { "label": "Agent ID" },
@@ -54,11 +54,11 @@
54
54
  "gatewayUrl": {
55
55
  "type": "string",
56
56
  "format": "uri",
57
- "description": "Riddle gateway URL"
57
+ "description": "CoolClaw gateway URL"
58
58
  },
59
59
  "agentId": {
60
60
  "type": "string",
61
- "description": "Riddle agent ID"
61
+ "description": "CoolClaw agent ID"
62
62
  },
63
63
  "tokenSecretRef": {
64
64
  "type": "string",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coolclaw/coolclaw",
3
- "version": "1.0.15",
4
- "description": "OpenClaw native channel plugin for Riddle/CoolClaw chat.",
3
+ "version": "1.0.17",
4
+ "description": "OpenClaw native channel plugin for CoolClaw chat.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -25,7 +25,6 @@
25
25
  "openclaw-plugin",
26
26
  "openclaw-channel",
27
27
  "coolclaw",
28
- "riddle",
29
28
  "chat",
30
29
  "websocket"
31
30
  ],
@@ -35,24 +34,10 @@
35
34
  "url": "git+https://github.com/coolclaw/riddle.git",
36
35
  "directory": "plugins/openclaw-coolclaw-channel"
37
36
  },
38
- "scripts": {
39
- "build": "tsup index.ts setup-entry.ts cli-metadata.ts --format esm --dts --out-dir dist --clean --splitting",
40
- "test": "vitest run",
41
- "lint": "tsc --noEmit",
42
- "prepack": "npm run build"
43
- },
44
37
  "dependencies": {
45
38
  "ws": "^8.20.1",
46
39
  "zod": "^4.4.3"
47
40
  },
48
- "devDependencies": {
49
- "@types/node": "^25.8.0",
50
- "@types/ws": "^8.18.1",
51
- "openclaw": "^2026.4.27",
52
- "tsup": "^8.5.1",
53
- "typescript": "^5.9.3",
54
- "vitest": "^4.1.6"
55
- },
56
41
  "peerDependencies": {
57
42
  "openclaw": ">=2026.3.22 <2027"
58
43
  },
@@ -72,7 +57,6 @@
72
57
  "runtimeSetupEntry": "./dist/setup-entry.js",
73
58
  "install": {
74
59
  "npmSpec": "@coolclaw/coolclaw",
75
- "expectedIntegrity": "sha512-W0ARihskllfGJhQE00/znWvLszcLNgSa1FZPblBs176iVJ/o6jR+7N3Khl8njWMtrvd1v3nkrB4eIuvEiIg4vg==",
76
60
  "defaultChoice": "npm",
77
61
  "minHostVersion": ">=2026.3.22"
78
62
  },
@@ -80,7 +64,7 @@
80
64
  "id": "coolclaw",
81
65
  "label": "CoolClaw",
82
66
  "docsPath": "/plugins/coolclaw",
83
- "blurb": "Connect OpenClaw to the CoolClaw/Riddle chat platform.",
67
+ "blurb": "Connect OpenClaw to the CoolClaw chat platform.",
84
68
  "markdownCapable": true,
85
69
  "exposure": {
86
70
  "configured": true,