@workclaw/openclaw-workclaw 1.0.18 → 1.0.19

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.
Files changed (142) hide show
  1. package/README.md +364 -345
  2. package/dist/api.d.ts +3 -0
  3. package/dist/api.js +3 -0
  4. package/dist/index.d.ts +11 -0
  5. package/dist/index.js +263 -0
  6. package/dist/setup-entry.d.ts +2 -0
  7. package/dist/setup-entry.js +12 -0
  8. package/dist/src/accounts.d.ts +66 -0
  9. package/dist/src/accounts.js +279 -0
  10. package/dist/src/api/accounts-api.d.ts +2 -0
  11. package/dist/src/api/accounts-api.js +130 -0
  12. package/dist/src/api/prompts-api.d.ts +2 -0
  13. package/dist/src/api/prompts-api.js +103 -0
  14. package/dist/src/api/session-api.d.ts +2 -0
  15. package/dist/src/api/session-api.js +207 -0
  16. package/dist/src/api/skills-api.d.ts +2 -0
  17. package/dist/src/api/skills-api.js +64 -0
  18. package/dist/src/api/workspace.d.ts +3 -0
  19. package/dist/src/api/workspace.js +28 -0
  20. package/dist/src/channel.d.ts +11 -0
  21. package/{src/channel.ts → dist/src/channel.js} +198 -225
  22. package/dist/src/config-schema.d.ts +93 -0
  23. package/dist/src/config-schema.js +56 -0
  24. package/dist/src/connection/workclaw-client.d.ts +147 -0
  25. package/dist/src/connection/workclaw-client.js +351 -0
  26. package/dist/src/gateway/agent-handlers.d.ts +12 -0
  27. package/{src/gateway/agent-handlers.ts → dist/src/gateway/agent-handlers.js} +433 -523
  28. package/dist/src/gateway/config-writer.d.ts +71 -0
  29. package/dist/src/gateway/config-writer.js +312 -0
  30. package/dist/src/gateway/message-context.d.ts +76 -0
  31. package/{src/gateway/message-context.ts → dist/src/gateway/message-context.js} +499 -594
  32. package/dist/src/gateway/message-dispatcher.d.ts +19 -0
  33. package/{src/gateway/message-dispatcher.ts → dist/src/gateway/message-dispatcher.js} +512 -641
  34. package/dist/src/gateway/reconnect.d.ts +27 -0
  35. package/{src/gateway/reconnect.ts → dist/src/gateway/reconnect.js} +206 -253
  36. package/dist/src/gateway/skills-handler.d.ts +29 -0
  37. package/dist/src/gateway/skills-handler.js +576 -0
  38. package/dist/src/gateway/skills-list-handler.d.ts +27 -0
  39. package/dist/src/gateway/skills-list-handler.js +233 -0
  40. package/dist/src/gateway/tools-list-handler.d.ts +30 -0
  41. package/dist/src/gateway/tools-list-handler.js +101 -0
  42. package/dist/src/gateway/workclaw-gateway.d.ts +14 -0
  43. package/dist/src/gateway/workclaw-gateway.js +223 -0
  44. package/dist/src/media/upload.d.ts +13 -0
  45. package/dist/src/media/upload.js +125 -0
  46. package/dist/src/outbound/index.d.ts +36 -0
  47. package/dist/src/outbound/index.js +123 -0
  48. package/dist/src/outbound/workclaw-sender.d.ts +36 -0
  49. package/{src/outbound/workclaw-sender.ts → dist/src/outbound/workclaw-sender.js} +95 -158
  50. package/dist/src/runtime.d.ts +116 -0
  51. package/dist/src/runtime.js +374 -0
  52. package/dist/src/secret-contract-api.d.ts +4 -0
  53. package/dist/src/secret-contract-api.js +4 -0
  54. package/{src/send.ts → dist/src/send.d.ts} +1 -1
  55. package/dist/src/send.js +1 -0
  56. package/dist/src/setup-api.d.ts +3 -0
  57. package/dist/src/setup-api.js +3 -0
  58. package/dist/src/setup-core.d.ts +3 -0
  59. package/dist/src/setup-core.js +13 -0
  60. package/dist/src/setup-surface.d.ts +7 -0
  61. package/dist/src/setup-surface.js +363 -0
  62. package/dist/src/tools/openclaw-workclaw-cron/api/index.d.ts +93 -0
  63. package/dist/src/tools/openclaw-workclaw-cron/api/index.js +209 -0
  64. package/dist/src/tools/openclaw-workclaw-cron/index.d.ts +10 -0
  65. package/{src/tools/openclaw-workclaw-cron/index.ts → dist/src/tools/openclaw-workclaw-cron/index.js} +33 -39
  66. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts +16 -0
  67. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.js +152 -0
  68. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts +18 -0
  69. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.js +162 -0
  70. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts +14 -0
  71. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.js +80 -0
  72. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts +14 -0
  73. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.js +107 -0
  74. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts +14 -0
  75. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.js +80 -0
  76. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts +14 -0
  77. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.js +107 -0
  78. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts +17 -0
  79. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.js +127 -0
  80. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts +14 -0
  81. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.js +87 -0
  82. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts +14 -0
  83. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.js +107 -0
  84. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts +17 -0
  85. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.js +164 -0
  86. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts +18 -0
  87. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.js +135 -0
  88. package/dist/src/tools/openclaw-workclaw-cron/types/index.d.ts +52 -0
  89. package/dist/src/tools/openclaw-workclaw-cron/types/index.js +4 -0
  90. package/dist/src/tools/openclaw-workclaw-cron/utils/index.d.ts +40 -0
  91. package/dist/src/tools/openclaw-workclaw-cron/utils/index.js +122 -0
  92. package/dist/src/tools/openclaw-workclaw-system/index.d.ts +10 -0
  93. package/{src/tools/openclaw-workclaw-system/index.ts → dist/src/tools/openclaw-workclaw-system/index.js} +15 -17
  94. package/dist/src/tools/openclaw-workclaw-system/src/get/index.d.ts +8 -0
  95. package/dist/src/tools/openclaw-workclaw-system/src/get/index.js +64 -0
  96. package/dist/src/tools/openclaw-workclaw-system/src/token/index.d.ts +8 -0
  97. package/dist/src/tools/openclaw-workclaw-system/src/token/index.js +78 -0
  98. package/{src/types.ts → dist/src/types.d.ts} +39 -58
  99. package/dist/src/types.js +1 -0
  100. package/dist/src/utils/content.d.ts +15 -0
  101. package/{src/utils/content.ts → dist/src/utils/content.js} +38 -35
  102. package/package.json +62 -49
  103. package/index.ts +0 -302
  104. package/setup-entry.ts +0 -6
  105. package/src/accounts.ts +0 -312
  106. package/src/api/accounts-api.ts +0 -156
  107. package/src/api/prompts-api.ts +0 -116
  108. package/src/api/session-api.ts +0 -238
  109. package/src/api/skills-api.ts +0 -72
  110. package/src/api/workspace.ts +0 -41
  111. package/src/config-schema.ts +0 -110
  112. package/src/connection/workclaw-client.ts +0 -643
  113. package/src/gateway/config-writer.ts +0 -296
  114. package/src/gateway/skills-handler.ts +0 -741
  115. package/src/gateway/skills-list-handler.ts +0 -332
  116. package/src/gateway/tools-list-handler.ts +0 -160
  117. package/src/gateway/workclaw-gateway.ts +0 -367
  118. package/src/media/upload.ts +0 -157
  119. package/src/outbound/index.ts +0 -185
  120. package/src/runtime.ts +0 -497
  121. package/src/tools/openclaw-workclaw-cron/api/index.ts +0 -326
  122. package/src/tools/openclaw-workclaw-cron/src/add/params.ts +0 -177
  123. package/src/tools/openclaw-workclaw-cron/src/add/sync.ts +0 -188
  124. package/src/tools/openclaw-workclaw-cron/src/disable/params.ts +0 -100
  125. package/src/tools/openclaw-workclaw-cron/src/disable/sync.ts +0 -127
  126. package/src/tools/openclaw-workclaw-cron/src/enable/params.ts +0 -100
  127. package/src/tools/openclaw-workclaw-cron/src/enable/sync.ts +0 -127
  128. package/src/tools/openclaw-workclaw-cron/src/notify/sync.ts +0 -148
  129. package/src/tools/openclaw-workclaw-cron/src/remove/params.ts +0 -109
  130. package/src/tools/openclaw-workclaw-cron/src/remove/sync.ts +0 -127
  131. package/src/tools/openclaw-workclaw-cron/src/update/params.ts +0 -195
  132. package/src/tools/openclaw-workclaw-cron/src/update/sync.ts +0 -161
  133. package/src/tools/openclaw-workclaw-cron/types/index.ts +0 -55
  134. package/src/tools/openclaw-workclaw-cron/utils/index.ts +0 -141
  135. package/src/tools/openclaw-workclaw-system/src/get/index.ts +0 -77
  136. package/src/tools/openclaw-workclaw-system/src/token/index.ts +0 -93
  137. package/tests/accounts.test.ts +0 -285
  138. package/tests/message-context.test.ts +0 -313
  139. package/tests/reconnect.test.ts +0 -257
  140. package/tests/workclaw-client.test.ts +0 -112
  141. package/tsconfig.json +0 -14
  142. package/vitest.config.ts +0 -8
@@ -0,0 +1,78 @@
1
+ /**
2
+ * 智小途系统信息工具 - 获取用户 AccessToken
3
+ */
4
+ import { resolveWorkclawAccountWithCache } from '../../../../accounts.js';
5
+ import { getWorkclawAccessToken } from '../../../../connection/workclaw-client.js';
6
+ /**
7
+ * 构造工具返回结果
8
+ */
9
+ function json(data) {
10
+ return {
11
+ content: [{ type: 'text', text: JSON.stringify(data, null, 2) }],
12
+ details: data,
13
+ };
14
+ }
15
+ /**
16
+ * 获取用户 AccessToken 工具
17
+ */
18
+ function getOpenclawWorkclawSystemTokenTool(api) {
19
+ return (ctx) => {
20
+ return {
21
+ name: 'openclaw-workclaw-system-token',
22
+ label: '智小途获取 AccessToken',
23
+ description: '获取用户的 AccessToken',
24
+ execute: async () => {
25
+ api.logger.info('[智小途-系统信息] 开始获取 AccessToken');
26
+ const accountId = ctx?.agentAccountId;
27
+ if (!accountId) {
28
+ api.logger.warn('[智小途-系统信息] 无法获取账户 ID');
29
+ return json({ error: '无法获取账户 ID(accountId),请确保已配置账户' });
30
+ }
31
+ api.logger.info(`[智小途-系统信息] accountId=${accountId}`);
32
+ const accountConfig = resolveWorkclawAccountWithCache({
33
+ cfg: ctx.config,
34
+ accountId,
35
+ });
36
+ if (!accountConfig.configured) {
37
+ api.logger.error('[智小途-系统信息] 账户未配置');
38
+ return json({ error: '账户未配置,请检查账户配置' });
39
+ }
40
+ const accConfig = accountConfig.config;
41
+ try {
42
+ const tokenCacheKey = accConfig.appKey || accountId;
43
+ api.logger.info(`[智小途-系统信息] 正在获取 AccessToken,accountId=${accountId}`);
44
+ const accessToken = await getWorkclawAccessToken(tokenCacheKey, {
45
+ baseUrl: accConfig.baseUrl,
46
+ appKey: accConfig.appKey,
47
+ appSecret: accConfig.appSecret,
48
+ allowInsecureTls: accConfig.allowInsecureTls,
49
+ requestTimeout: accConfig.requestTimeout,
50
+ });
51
+ api.logger.info('[智小途-系统信息] AccessToken 获取成功');
52
+ return json({
53
+ code: 0,
54
+ message: 'AccessToken 获取成功',
55
+ data: {
56
+ accessToken,
57
+ },
58
+ });
59
+ }
60
+ catch (error) {
61
+ api.logger.error(`[智小途-系统信息] AccessToken 获取失败 ${error.message}`);
62
+ return json({
63
+ code: -1,
64
+ error: error.message || 'AccessToken 获取失败',
65
+ });
66
+ }
67
+ },
68
+ };
69
+ };
70
+ }
71
+ /**
72
+ * 注册获取用户 AccessToken 工具
73
+ */
74
+ export function registerOpenclawWorkclawSystemTokenTool(api) {
75
+ api.registerTool(getOpenclawWorkclawSystemTokenTool(api), {
76
+ name: 'openclaw-workclaw-system-token',
77
+ });
78
+ }
@@ -1,58 +1,39 @@
1
- import type {
2
- workclawConfigSchema,
3
- workclawAccountConfigSchema,
4
- z,
5
- } from "./config-schema.js";
6
-
7
- export type WorkclawConfig = z.infer<typeof workclawConfigSchema>;
8
- export type WorkclawAccountConfig = z.infer<typeof workclawAccountConfigSchema>;
9
-
10
- export type WorkclawConnectionMode = "websocket" | "webhook";
11
- export type WsConnectionStrategy = "per-account" | "per-appKey";
12
-
13
- export type ResolvedWorkclawAccount = {
14
- accountId: string;
15
- enabled: boolean;
16
- configured: boolean;
17
- name?: string;
18
- /** Merged config (top-level defaults + account-specific overrides) */
19
- config: WorkclawFullAccountConfig;
20
- };
21
- export type ResolvedOpenClawWorkclawAccount = ResolvedWorkclawAccount;
22
-
23
- export type WorkclawIdType = "open_id" | "user_id" | "union_id" | "chat_id";
24
-
25
- export type WorkclawSendResult = {
26
- messageId: string;
27
- chatId: string;
28
- };
29
-
30
- /** WorkClaw plugin base config (shared across all accounts) */
31
- export interface WorkClawBaseConfig {
32
- baseUrl?: string;
33
- websocketUrl?: string;
34
- appKey?: string;
35
- appSecret?: string;
36
- localIp?: string;
37
- allowInsecureTls?: boolean;
38
- requestTimeout?: number;
39
- userId?: string | number;
40
- replyEndpoint?: string;
41
- pushEndpoint?: string;
42
- }
43
-
44
- /** Per-account WorkClaw fields */
45
- export interface WorkClawAccountConfig {
46
- agentId?: string | number;
47
- userId?: string | number;
48
- openConversationId?: string;
49
- }
50
-
51
- export type WorkClawConfig = WorkClawBaseConfig & WorkClawAccountConfig;
52
-
53
- /** account.config is typed as OpenclawWorkclawConfig (top-level) but at runtime
54
- * also contains all OpenclawWorkclawAccountConfig fields (merged). */
55
- export type WorkclawFullAccountConfig = WorkclawConfig & Partial<WorkclawAccountConfig>;
56
-
57
- /** Resolved account's config - merge of top-level defaults + account overrides */
58
- export type ResolvedWorkclawAccountConfig = WorkclawFullAccountConfig;
1
+ import type { workclawConfigSchema, workclawAccountConfigSchema, z } from "./config-schema.js";
2
+ export type WorkclawConfig = z.infer<typeof workclawConfigSchema>;
3
+ export type WorkclawAccountConfig = z.infer<typeof workclawAccountConfigSchema>;
4
+ export type WorkclawConnectionMode = "websocket" | "webhook";
5
+ export type ResolvedWorkclawAccount = {
6
+ accountId: string;
7
+ enabled: boolean;
8
+ configured: boolean;
9
+ name?: string;
10
+ config: WorkclawFullAccountConfig;
11
+ };
12
+ export type ResolvedOpenClawWorkclawAccount = ResolvedWorkclawAccount;
13
+ export type WorkclawIdType = "open_id" | "user_id" | "union_id" | "chat_id";
14
+ export type WorkclawSendResult = {
15
+ messageId: string;
16
+ chatId: string;
17
+ };
18
+ export interface WorkClawBaseConfig {
19
+ baseUrl?: string;
20
+ websocketUrl?: string;
21
+ appKey?: string;
22
+ appSecret?: string;
23
+ localIp?: string;
24
+ allowInsecureTls?: boolean;
25
+ requestTimeout?: number;
26
+ userId?: string | number;
27
+ replyEndpoint?: string;
28
+ pushEndpoint?: string;
29
+ [key: string]: any;
30
+ }
31
+ export interface WorkClawAccountConfig {
32
+ agentId?: string | number;
33
+ userId?: string | number;
34
+ openConversationId?: string;
35
+ [key: string]: any;
36
+ }
37
+ export type WorkClawConfig = WorkClawBaseConfig & WorkClawAccountConfig;
38
+ export type WorkclawFullAccountConfig = WorkclawConfig & Partial<WorkclawAccountConfig>;
39
+ export type ResolvedWorkclawAccountConfig = WorkclawFullAccountConfig;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Content extraction utilities - copied from SDK's internal implementations
3
+ * node_modules/openclaw/dist/plugin-sdk/thread-bindings-SYAnWHuW.js (collectTextContentBlocks)
4
+ * node_modules/openclaw/dist/auth-profiles-DRjqKE3G.js (extractToolResultText)
5
+ */
6
+ /**
7
+ * Extract text blocks from chat content array.
8
+ * Handles content format: [{ type: "text", text: "..." }]
9
+ */
10
+ export declare function collectTextContentBlocks(content: unknown): string[];
11
+ /**
12
+ * Extract plain text from a tool result object.
13
+ * Handles result.content as array of text blocks or direct text fields.
14
+ */
15
+ export declare function extractToolResultText(result: unknown): string | undefined;
@@ -1,35 +1,38 @@
1
- /**
2
- * Content extraction utilities - copied from SDK's internal implementations
3
- * node_modules/openclaw/dist/plugin-sdk/thread-bindings-SYAnWHuW.js (collectTextContentBlocks)
4
- * node_modules/openclaw/dist/auth-profiles-DRjqKE3G.js (extractToolResultText)
5
- */
6
-
7
- /**
8
- * Extract text blocks from chat content array.
9
- * Handles content format: [{ type: "text", text: "..." }]
10
- */
11
- export function collectTextContentBlocks(content: unknown): string[] {
12
- if (!Array.isArray(content)) return [];
13
- const parts: string[] = [];
14
- for (const block of content) {
15
- if (!block || typeof block !== "object") continue;
16
- const rec = block as { type?: string; text?: string };
17
- if (rec.type === "text" && typeof rec.text === "string") parts.push(rec.text);
18
- }
19
- return parts;
20
- }
21
-
22
- /**
23
- * Extract plain text from a tool result object.
24
- * Handles result.content as array of text blocks or direct text fields.
25
- */
26
- export function extractToolResultText(result: unknown): string | undefined {
27
- if (!result || typeof result !== "object") return;
28
- const record = result as { content?: unknown };
29
- const texts = collectTextContentBlocks(record.content).map((item) => {
30
- const trimmed = item.trim();
31
- return trimmed ? trimmed : void 0;
32
- }).filter((value) => Boolean(value));
33
- if (texts.length === 0) return;
34
- return texts.join("\n");
35
- }
1
+ /**
2
+ * Content extraction utilities - copied from SDK's internal implementations
3
+ * node_modules/openclaw/dist/plugin-sdk/thread-bindings-SYAnWHuW.js (collectTextContentBlocks)
4
+ * node_modules/openclaw/dist/auth-profiles-DRjqKE3G.js (extractToolResultText)
5
+ */
6
+ /**
7
+ * Extract text blocks from chat content array.
8
+ * Handles content format: [{ type: "text", text: "..." }]
9
+ */
10
+ export function collectTextContentBlocks(content) {
11
+ if (!Array.isArray(content))
12
+ return [];
13
+ const parts = [];
14
+ for (const block of content) {
15
+ if (!block || typeof block !== "object")
16
+ continue;
17
+ const rec = block;
18
+ if (rec.type === "text" && typeof rec.text === "string")
19
+ parts.push(rec.text);
20
+ }
21
+ return parts;
22
+ }
23
+ /**
24
+ * Extract plain text from a tool result object.
25
+ * Handles result.content as array of text blocks or direct text fields.
26
+ */
27
+ export function extractToolResultText(result) {
28
+ if (!result || typeof result !== "object")
29
+ return;
30
+ const record = result;
31
+ const texts = collectTextContentBlocks(record.content).map((item) => {
32
+ const trimmed = item.trim();
33
+ return trimmed ? trimmed : void 0;
34
+ }).filter((value) => Boolean(value));
35
+ if (texts.length === 0)
36
+ return;
37
+ return texts.join("\n");
38
+ }
package/package.json CHANGED
@@ -1,49 +1,62 @@
1
- {
2
- "name": "@workclaw/openclaw-workclaw",
3
- "type": "module",
4
- "version": "1.0.18",
5
- "description": "openclaw-workclaw channel plugin",
6
- "publishConfig": {
7
- "access": "public"
8
- },
9
- "peerDependencies": {
10
- "openclaw": "2026.4.14",
11
- "typescript": "^5.6.3"
12
- },
13
- "dependencies": {
14
- "undici": "^7.16.0",
15
- "ws": "^8.19.0",
16
- "zod": "^4.3.6"
17
- },
18
- "devDependencies": {
19
- "@types/node": "^20.0.0"
20
- },
21
- "openclaw": {
22
- "extensions": [
23
- "./index.ts"
24
- ],
25
- "setupEntry": "./setup-entry.ts",
26
- "channel": {
27
- "id": "openclaw-workclaw",
28
- "label": "openclaw-workclaw",
29
- "selectionLabel": "智小途",
30
- "docsPath": "/channels/openclaw-workclaw",
31
- "docsLabel": "openclaw-workclaw",
32
- "blurb": "智小途 企业通讯平台集成",
33
- "aliases": [
34
- "openclaw-workclaw"
35
- ],
36
- "order": 35,
37
- "quickstartAllowFrom": true
38
- },
39
- "compat": {
40
- "pluginApi": "2026.4.14",
41
- "minGatewayVersion": "2026.4.14"
42
- },
43
- "install": {
44
- "npmSpec": "@workclaw/openclaw-workclaw",
45
- "localPath": "extensions/openclaw-workclaw",
46
- "defaultChoice": "npm"
47
- }
48
- }
49
- }
1
+ {
2
+ "name": "@workclaw/openclaw-workclaw",
3
+ "type": "module",
4
+ "version": "1.0.19",
5
+ "description": "openclaw-workclaw channel plugin",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "!dist/tests",
14
+ "!dist/**/*.test.js",
15
+ "!dist/**/*.test.d.ts",
16
+ "!dist/vitest.config.js",
17
+ "!dist/vitest.config.d.ts",
18
+ "templates",
19
+ "skills",
20
+ "openclaw.plugin.json"
21
+ ],
22
+ "scripts": {
23
+ "build": "tsc"
24
+ },
25
+ "peerDependencies": {
26
+ "openclaw": "2026.4.14",
27
+ "typescript": "^5.6.3"
28
+ },
29
+ "dependencies": {
30
+ "undici": "^7.16.0",
31
+ "ws": "^8.19.0",
32
+ "zod": "^4.3.6"
33
+ },
34
+ "openclaw": {
35
+ "extensions": [
36
+ "./dist/index.js"
37
+ ],
38
+ "setupEntry": "./dist/setup-entry.js",
39
+ "channel": {
40
+ "id": "openclaw-workclaw",
41
+ "label": "openclaw-workclaw",
42
+ "selectionLabel": "智小途",
43
+ "docsPath": "/channels/openclaw-workclaw",
44
+ "docsLabel": "openclaw-workclaw",
45
+ "blurb": "智小途 企业通讯平台集成",
46
+ "aliases": [
47
+ "openclaw-workclaw"
48
+ ],
49
+ "order": 35,
50
+ "quickstartAllowFrom": true
51
+ },
52
+ "compat": {
53
+ "pluginApi": "2026.4.14",
54
+ "minGatewayVersion": "2026.4.14"
55
+ },
56
+ "install": {
57
+ "npmSpec": "@workclaw/openclaw-workclaw",
58
+ "localPath": "extensions/openclaw-workclaw",
59
+ "defaultChoice": "npm"
60
+ }
61
+ }
62
+ }