@workclaw/openclaw-workchat 1.0.0 → 1.0.3

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/index.ts CHANGED
@@ -1,19 +1,19 @@
1
- import type { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry";
2
- import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
3
-
4
- import { workchatPlugin } from "./src/channel.js";
5
- import { assertHostCompatibility } from "./src/compat.js";
6
- import { WorkChatConfigSchema } from "./src/config/config-schema.js";
7
-
8
- export default {
9
- id: "openclaw-workchat",
10
- name: "WorkChat",
11
- description: "WorkChat channel (binding QR + WebSocket upstream, reply/push downstream)",
12
- configSchema: buildChannelConfigSchema(WorkChatConfigSchema),
13
- register(api: OpenClawPluginApi) {
14
- // Fail-fast: reject incompatible host versions before any side-effects.
15
- assertHostCompatibility(api.runtime?.version);
16
-
17
- api.registerChannel({ plugin: workchatPlugin });
18
- },
19
- };
1
+ import type { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry";
2
+ import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
3
+
4
+ import { workchatPlugin } from "./src/channel.js";
5
+ import { assertHostCompatibility } from "./src/compat.js";
6
+ import { WorkChatConfigSchema } from "./src/config/config-schema.js";
7
+
8
+ export default {
9
+ id: "openclaw-workchat",
10
+ name: "WorkChat",
11
+ description: "WorkChat channel (binding QR + WebSocket upstream, reply/push downstream)",
12
+ configSchema: buildChannelConfigSchema(WorkChatConfigSchema),
13
+ register(api: OpenClawPluginApi) {
14
+ // Fail-fast: reject incompatible host versions before any side-effects.
15
+ assertHostCompatibility(api.runtime?.version);
16
+
17
+ api.registerChannel({ plugin: workchatPlugin });
18
+ },
19
+ };
@@ -1,25 +1,25 @@
1
- {
2
- "id": "openclaw-workchat",
3
- "version": "1.0.0",
4
- "channels": [
5
- "openclaw-workchat"
6
- ],
7
- "channelConfigs": {
8
- "openclaw-workchat": {
9
- "schema": {
10
- "type": "object",
11
- "additionalProperties": true
12
- },
13
- "label": "openclaw-workchat",
14
- "description": "WorkChat channel configuration."
15
- }
16
- },
17
- "configSchema": {
18
- "type": "object",
19
- "additionalProperties": false,
20
- "properties": {}
21
- },
22
- "activation": {
23
- "onStartup": true
24
- }
25
- }
1
+ {
2
+ "id": "openclaw-workchat",
3
+ "version": "1.0.0",
4
+ "channels": [
5
+ "openclaw-workchat"
6
+ ],
7
+ "channelConfigs": {
8
+ "openclaw-workchat": {
9
+ "schema": {
10
+ "type": "object",
11
+ "additionalProperties": true
12
+ },
13
+ "label": "openclaw-workchat",
14
+ "description": "WorkChat channel configuration."
15
+ }
16
+ },
17
+ "configSchema": {
18
+ "type": "object",
19
+ "additionalProperties": false,
20
+ "properties": {}
21
+ },
22
+ "activation": {
23
+ "onStartup": true
24
+ }
25
+ }
package/package.json CHANGED
@@ -1,63 +1,64 @@
1
- {
2
- "name": "@workclaw/openclaw-workchat",
3
- "version": "1.0.0",
4
- "type": "module",
5
- "description": "OpenClaw WorkChat channel plugin: QR binding + WebSocket messaging with the WorkChat open platform",
6
- "license": "MIT",
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
- "engines": {
11
- "node": ">=22"
12
- },
13
- "peerDependencies": {
14
- "openclaw": ">=2026.3.22"
15
- },
16
- "dependencies": {
17
- "qrcode-terminal": "0.12.0",
18
- "undici": "^7.16.0",
19
- "zod": "4.4.3"
20
- },
21
- "scripts": {
22
- "typecheck": "tsc --noEmit",
23
- "test": "vitest run",
24
- "bundle": "node scripts/bundle.mjs",
25
- "sync": "node scripts/sync-to-desktop.mjs"
26
- },
27
- "openclaw": {
28
- "extensions": [
29
- "./index.ts"
30
- ],
31
- "channel": {
32
- "id": "openclaw-workchat",
33
- "label": "openclaw-workchat",
34
- "selectionLabel": "WorkChat",
35
- "docsPath": "/channels/openclaw-workchat",
36
- "docsLabel": "WorkChat",
37
- "blurb": "WorkChat 开放平台通道:扫码绑定智能体,WebSocket 收发消息",
38
- "aliases": [
39
- "openclaw-workchat"
40
- ],
41
- "order": 80
42
- },
43
- "install": {
44
- "npmSpec": "@workclaw/openclaw-workchat",
45
- "localPath": "extensions/openclaw-workchat",
46
- "defaultChoice": "npm"
47
- }
48
- },
49
- "files": [
50
- "index.ts",
51
- "src",
52
- "openclaw.plugin.json",
53
- "README.md"
54
- ],
55
- "devDependencies": {
56
- "@types/node": "^22.20.5",
57
- "esbuild": "^0.28.2",
58
- "openclaw": "^2026.3.23",
59
- "typescript": "^5.8.0",
60
- "vite": "^8.3.4",
61
- "vitest": "^5.0.5"
62
- }
63
- }
1
+ {
2
+ "name": "@workclaw/openclaw-workchat",
3
+ "version": "1.0.3",
4
+ "type": "module",
5
+ "description": "OpenClaw WorkChat channel plugin: QR binding + WebSocket messaging with the WorkChat open platform",
6
+ "license": "MIT",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "engines": {
11
+ "node": ">=22"
12
+ },
13
+ "peerDependencies": {
14
+ "openclaw": ">=2026.3.22"
15
+ },
16
+ "dependencies": {
17
+ "qrcode-terminal": "0.12.0",
18
+ "undici": "^7.16.0",
19
+ "zod": "^4.3.6"
20
+ },
21
+ "files": [
22
+ "index.js",
23
+ "index.ts",
24
+ "src",
25
+ "openclaw.plugin.json",
26
+ "README.md"
27
+ ],
28
+ "scripts": {
29
+ "typecheck": "tsc --noEmit",
30
+ "test": "vitest run",
31
+ "bundle": "node scripts/bundle.mjs",
32
+ "prepare": "node scripts/bundle.mjs",
33
+ "sync": "node scripts/sync-to-desktop.mjs"
34
+ },
35
+ "openclaw": {
36
+ "extensions": [
37
+ "./index.ts"
38
+ ],
39
+ "channel": {
40
+ "id": "openclaw-workchat",
41
+ "label": "openclaw-workchat",
42
+ "selectionLabel": "WorkChat",
43
+ "docsPath": "/channels/openclaw-workchat",
44
+ "docsLabel": "WorkChat",
45
+ "blurb": "WorkChat 开放平台通道:扫码绑定智能体,WebSocket 收发消息",
46
+ "aliases": [
47
+ "openclaw-workchat"
48
+ ],
49
+ "order": 80
50
+ },
51
+ "install": {
52
+ "npmSpec": "@workclaw/openclaw-workchat",
53
+ "localPath": "extensions/openclaw-workchat",
54
+ "defaultChoice": "npm"
55
+ }
56
+ },
57
+ "devDependencies": {
58
+ "esbuild": "^0.21.5",
59
+ "openclaw": "^2026.3.23",
60
+ "typescript": "^5.8.0",
61
+ "vite": "^8.3.4",
62
+ "vitest": "^5.0.5"
63
+ }
64
+ }