@workclaw/openclaw-workclaw 1.0.25 → 1.0.26

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 (161) hide show
  1. package/dist/api.d.ts +4 -0
  2. package/dist/api.d.ts.map +1 -0
  3. package/dist/api.js +379 -0
  4. package/dist/channel-DSvR6Irx.js +50017 -0
  5. package/dist/cron-tasks-handler-C-mP3VmV.js +152 -0
  6. package/dist/index.d.ts +12 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +2088 -0
  9. package/dist/jiti-4i2h0FGP.js +4814 -0
  10. package/dist/setup-entry.d.ts +3 -0
  11. package/dist/setup-entry.d.ts.map +1 -0
  12. package/dist/setup-entry.js +182 -0
  13. package/dist/src/accounts.d.ts +67 -0
  14. package/dist/src/accounts.d.ts.map +1 -0
  15. package/dist/src/api/accounts-api.d.ts +3 -0
  16. package/dist/src/api/accounts-api.d.ts.map +1 -0
  17. package/dist/src/api/prompts-api.d.ts +3 -0
  18. package/dist/src/api/prompts-api.d.ts.map +1 -0
  19. package/dist/src/api/session-api.d.ts +3 -0
  20. package/dist/src/api/session-api.d.ts.map +1 -0
  21. package/dist/src/api/skills-api.d.ts +3 -0
  22. package/dist/src/api/skills-api.d.ts.map +1 -0
  23. package/dist/src/api/workspace.d.ts +4 -0
  24. package/dist/src/api/workspace.d.ts.map +1 -0
  25. package/dist/src/channel.d.ts +12 -0
  26. package/dist/src/channel.d.ts.map +1 -0
  27. package/dist/src/config-schema.d.ts +88 -0
  28. package/dist/src/config-schema.d.ts.map +1 -0
  29. package/dist/src/connection/workclaw-client.d.ts +149 -0
  30. package/dist/src/connection/workclaw-client.d.ts.map +1 -0
  31. package/dist/src/gateway/agent-handlers.d.ts +13 -0
  32. package/dist/src/gateway/agent-handlers.d.ts.map +1 -0
  33. package/dist/src/gateway/config-writer.d.ts +72 -0
  34. package/dist/src/gateway/config-writer.d.ts.map +1 -0
  35. package/dist/src/gateway/cron-tasks-handler.d.ts +20 -0
  36. package/dist/src/gateway/cron-tasks-handler.d.ts.map +1 -0
  37. package/dist/src/gateway/message-context.d.ts +81 -0
  38. package/dist/src/gateway/message-context.d.ts.map +1 -0
  39. package/dist/src/gateway/message-dispatcher.d.ts +17 -0
  40. package/dist/src/gateway/message-dispatcher.d.ts.map +1 -0
  41. package/dist/src/gateway/reconnect.d.ts +25 -0
  42. package/dist/src/gateway/reconnect.d.ts.map +1 -0
  43. package/dist/src/gateway/skills-handler.d.ts +30 -0
  44. package/dist/src/gateway/skills-handler.d.ts.map +1 -0
  45. package/dist/src/gateway/skills-list-handler.d.ts +28 -0
  46. package/dist/src/gateway/skills-list-handler.d.ts.map +1 -0
  47. package/dist/src/gateway/tools-list-handler.d.ts +31 -0
  48. package/dist/src/gateway/tools-list-handler.d.ts.map +1 -0
  49. package/dist/src/gateway/workclaw-gateway.d.ts +11 -0
  50. package/dist/src/gateway/workclaw-gateway.d.ts.map +1 -0
  51. package/dist/src/media/upload.d.ts +14 -0
  52. package/dist/src/media/upload.d.ts.map +1 -0
  53. package/dist/src/outbound/index.d.ts +39 -0
  54. package/dist/src/outbound/index.d.ts.map +1 -0
  55. package/dist/src/outbound/workclaw-sender.d.ts +38 -0
  56. package/dist/src/outbound/workclaw-sender.d.ts.map +1 -0
  57. package/dist/src/runtime.d.ts +118 -0
  58. package/dist/src/runtime.d.ts.map +1 -0
  59. package/dist/src/secret-contract-api.d.ts +5 -0
  60. package/dist/src/secret-contract-api.d.ts.map +1 -0
  61. package/{src/send.ts → dist/src/send.d.ts} +2 -1
  62. package/dist/src/send.d.ts.map +1 -0
  63. package/dist/src/setup-api.d.ts +4 -0
  64. package/dist/src/setup-api.d.ts.map +1 -0
  65. package/dist/src/setup-core.d.ts +4 -0
  66. package/dist/src/setup-core.d.ts.map +1 -0
  67. package/dist/src/setup-surface.d.ts +8 -0
  68. package/dist/src/setup-surface.d.ts.map +1 -0
  69. package/dist/src/tools/openclaw-workclaw-cron/api/index.d.ts +91 -0
  70. package/dist/src/tools/openclaw-workclaw-cron/api/index.d.ts.map +1 -0
  71. package/dist/src/tools/openclaw-workclaw-cron/index.d.ts +11 -0
  72. package/dist/src/tools/openclaw-workclaw-cron/index.d.ts.map +1 -0
  73. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts +14 -0
  74. package/dist/src/tools/openclaw-workclaw-cron/src/add/params.d.ts.map +1 -0
  75. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts +16 -0
  76. package/dist/src/tools/openclaw-workclaw-cron/src/add/sync.d.ts.map +1 -0
  77. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts +12 -0
  78. package/dist/src/tools/openclaw-workclaw-cron/src/disable/params.d.ts.map +1 -0
  79. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts +12 -0
  80. package/dist/src/tools/openclaw-workclaw-cron/src/disable/sync.d.ts.map +1 -0
  81. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts +12 -0
  82. package/dist/src/tools/openclaw-workclaw-cron/src/enable/params.d.ts.map +1 -0
  83. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts +12 -0
  84. package/dist/src/tools/openclaw-workclaw-cron/src/enable/sync.d.ts.map +1 -0
  85. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts +13 -0
  86. package/dist/src/tools/openclaw-workclaw-cron/src/notify/sync.d.ts.map +1 -0
  87. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts +12 -0
  88. package/dist/src/tools/openclaw-workclaw-cron/src/remove/params.d.ts.map +1 -0
  89. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts +12 -0
  90. package/dist/src/tools/openclaw-workclaw-cron/src/remove/sync.d.ts.map +1 -0
  91. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts +15 -0
  92. package/dist/src/tools/openclaw-workclaw-cron/src/update/params.d.ts.map +1 -0
  93. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts +16 -0
  94. package/dist/src/tools/openclaw-workclaw-cron/src/update/sync.d.ts.map +1 -0
  95. package/dist/src/tools/openclaw-workclaw-cron/types/index.d.ts +53 -0
  96. package/dist/src/tools/openclaw-workclaw-cron/types/index.d.ts.map +1 -0
  97. package/dist/src/tools/openclaw-workclaw-cron/utils/index.d.ts +41 -0
  98. package/dist/src/tools/openclaw-workclaw-cron/utils/index.d.ts.map +1 -0
  99. package/dist/src/tools/openclaw-workclaw-system/index.d.ts +11 -0
  100. package/dist/src/tools/openclaw-workclaw-system/index.d.ts.map +1 -0
  101. package/dist/src/tools/openclaw-workclaw-system/src/get/index.d.ts +6 -0
  102. package/dist/src/tools/openclaw-workclaw-system/src/get/index.d.ts.map +1 -0
  103. package/dist/src/tools/openclaw-workclaw-system/src/token/index.d.ts +6 -0
  104. package/dist/src/tools/openclaw-workclaw-system/src/token/index.d.ts.map +1 -0
  105. package/dist/src/types.d.ts +39 -0
  106. package/dist/src/types.d.ts.map +1 -0
  107. package/dist/src/utils/content.d.ts +16 -0
  108. package/dist/src/utils/content.d.ts.map +1 -0
  109. package/openclaw.plugin.json +6 -0
  110. package/package.json +69 -45
  111. package/api.ts +0 -3
  112. package/index.ts +0 -325
  113. package/setup-entry.ts +0 -13
  114. package/src/accounts.ts +0 -360
  115. package/src/api/accounts-api.ts +0 -156
  116. package/src/api/prompts-api.ts +0 -122
  117. package/src/api/session-api.ts +0 -246
  118. package/src/api/skills-api.ts +0 -74
  119. package/src/api/workspace.ts +0 -45
  120. package/src/channel.ts +0 -226
  121. package/src/config-schema.ts +0 -60
  122. package/src/connection/workclaw-client.ts +0 -618
  123. package/src/gateway/agent-handlers.ts +0 -551
  124. package/src/gateway/config-writer.ts +0 -378
  125. package/src/gateway/cron-tasks-handler.ts +0 -230
  126. package/src/gateway/message-context.ts +0 -645
  127. package/src/gateway/message-dispatcher.ts +0 -688
  128. package/src/gateway/reconnect.ts +0 -260
  129. package/src/gateway/skills-handler.ts +0 -805
  130. package/src/gateway/skills-list-handler.ts +0 -332
  131. package/src/gateway/tools-list-handler.ts +0 -161
  132. package/src/gateway/workclaw-gateway.ts +0 -304
  133. package/src/media/upload.ts +0 -168
  134. package/src/outbound/index.ts +0 -191
  135. package/src/outbound/workclaw-sender.ts +0 -161
  136. package/src/runtime.ts +0 -520
  137. package/src/secret-contract-api.ts +0 -4
  138. package/src/setup-api.ts +0 -3
  139. package/src/setup-core.ts +0 -25
  140. package/src/setup-surface.ts +0 -498
  141. package/src/tools/openclaw-workclaw-cron/api/index.ts +0 -326
  142. package/src/tools/openclaw-workclaw-cron/index.ts +0 -39
  143. package/src/tools/openclaw-workclaw-cron/src/add/params.ts +0 -177
  144. package/src/tools/openclaw-workclaw-cron/src/add/sync.ts +0 -188
  145. package/src/tools/openclaw-workclaw-cron/src/disable/params.ts +0 -100
  146. package/src/tools/openclaw-workclaw-cron/src/disable/sync.ts +0 -127
  147. package/src/tools/openclaw-workclaw-cron/src/enable/params.ts +0 -100
  148. package/src/tools/openclaw-workclaw-cron/src/enable/sync.ts +0 -127
  149. package/src/tools/openclaw-workclaw-cron/src/notify/sync.ts +0 -148
  150. package/src/tools/openclaw-workclaw-cron/src/remove/params.ts +0 -109
  151. package/src/tools/openclaw-workclaw-cron/src/remove/sync.ts +0 -127
  152. package/src/tools/openclaw-workclaw-cron/src/update/params.ts +0 -195
  153. package/src/tools/openclaw-workclaw-cron/src/update/sync.ts +0 -161
  154. package/src/tools/openclaw-workclaw-cron/types/index.ts +0 -55
  155. package/src/tools/openclaw-workclaw-cron/utils/index.ts +0 -141
  156. package/src/tools/openclaw-workclaw-system/index.ts +0 -17
  157. package/src/tools/openclaw-workclaw-system/src/get/index.ts +0 -77
  158. package/src/tools/openclaw-workclaw-system/src/token/index.ts +0 -93
  159. package/src/types.ts +0 -50
  160. package/src/utils/content.ts +0 -40
  161. package/tsconfig.json +0 -34
@@ -0,0 +1,8 @@
1
+ import { ChannelSetupWizard, OpenClawConfig } from 'openclaw/plugin-sdk/setup';
2
+ /**
3
+ * 修补 Workclaw 配置
4
+ */
5
+ export declare function patchWorkclawConfig(cfg: OpenClawConfig, accountId: string, patch: Record<string, unknown>): OpenClawConfig;
6
+ export { workclawSetupAdapter } from './setup-core.js';
7
+ export declare const workclawSetupWizard: ChannelSetupWizard;
8
+ //# sourceMappingURL=setup-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup-surface.d.ts","sourceRoot":"","sources":["../../src/setup-surface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AA8GnF;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,cAAc,EACnB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,cAAc,CA0BhB;AAmRD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEtD,eAAO,MAAM,mBAAmB,EAAE,kBA6EjC,CAAA"}
@@ -0,0 +1,91 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 调用后端 API 的通用方法
4
+ * @param api - OpenClaw API 实例
5
+ * @param accountId - 账户 ID
6
+ * @param path - API 路径
7
+ * @param payload - 请求体
8
+ * @param options - 可选配置
9
+ * @returns 接口调用结果
10
+ */
11
+ export declare function callBackendApi(api: OpenClawPluginApi, accountId: string, path: string, payload: Record<string, any>, options?: {
12
+ maxRetries?: number;
13
+ }): Promise<{
14
+ success: boolean;
15
+ data?: any;
16
+ error?: string;
17
+ attempts?: number;
18
+ }>;
19
+ /**
20
+ * 调用新增定时任务接口
21
+ */
22
+ export declare function callCronJobAdd(api: OpenClawPluginApi, accountId: string, payload: {
23
+ jobId: string;
24
+ name: string;
25
+ kind: 'cron';
26
+ expr?: string;
27
+ message: string;
28
+ messageId?: string;
29
+ }): Promise<{
30
+ success: boolean;
31
+ data?: any;
32
+ error?: string;
33
+ }>;
34
+ /**
35
+ * 调用删除定时任务接口
36
+ */
37
+ export declare function callCronJobRemove(api: OpenClawPluginApi, accountId: string, payload: {
38
+ jobId: string;
39
+ }): Promise<{
40
+ success: boolean;
41
+ data?: any;
42
+ error?: string;
43
+ }>;
44
+ /**
45
+ * 调用更新定时任务接口
46
+ */
47
+ export declare function callCronJobUpdate(api: OpenClawPluginApi, accountId: string, payload: {
48
+ jobId: string;
49
+ name: string;
50
+ kind: 'cron';
51
+ expr?: string;
52
+ message: string;
53
+ agentId?: string;
54
+ }): Promise<{
55
+ success: boolean;
56
+ data?: any;
57
+ error?: string;
58
+ }>;
59
+ /**
60
+ * 调用启用定时任务接口
61
+ */
62
+ export declare function callCronJobEnabled(api: OpenClawPluginApi, accountId: string, payload: {
63
+ jobId: string;
64
+ }): Promise<{
65
+ success: boolean;
66
+ data?: any;
67
+ error?: string;
68
+ }>;
69
+ /**
70
+ * 调用禁用定时任务接口
71
+ */
72
+ export declare function callCronJobDisabled(api: OpenClawPluginApi, accountId: string, payload: {
73
+ jobId: string;
74
+ }): Promise<{
75
+ success: boolean;
76
+ data?: any;
77
+ error?: string;
78
+ }>;
79
+ /**
80
+ * 调用定时任务触发通知接口
81
+ */
82
+ export declare function callCronJobMessage(api: OpenClawPluginApi, accountId: string, payload: {
83
+ jobId: string;
84
+ message: string;
85
+ agentId?: string;
86
+ }): Promise<{
87
+ success: boolean;
88
+ data?: any;
89
+ error?: string;
90
+ }>;
91
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tools/openclaw-workclaw-cron/api/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 智小途定时任务工具 - 统一出口
3
+ *
4
+ * 提供统一的工具注册入口,一次性注册所有定时任务相关工具
5
+ */
6
+ /**
7
+ * 统一注册所有定时任务工具
8
+ * @param api - OpenClaw API 实例
9
+ */
10
+ export declare function registerAllOpenclawWorkclawCronTools(api: any): void;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tools/openclaw-workclaw-cron/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAgBH;;;GAGG;AACH,wBAAgB,oCAAoC,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAcnE"}
@@ -0,0 +1,14 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 生成创建定时任务参数
4
+ */
5
+ export interface AddParamsParams {
6
+ time: string;
7
+ name: string;
8
+ message: string;
9
+ }
10
+ /**
11
+ * 注册生成创建定时任务参数工具
12
+ */
13
+ export declare function registerOpenclawWorkclawCronAddParamsTool(api: OpenClawPluginApi): void;
14
+ //# sourceMappingURL=params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-cron/src/add/params.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAG5D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AA2JD;;GAEG;AACH,wBAAgB,yCAAyC,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAItF"}
@@ -0,0 +1,16 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 同步创建定时任务参数
4
+ */
5
+ export interface AddSyncParams {
6
+ jobId: string;
7
+ name: string;
8
+ kind: 'cron';
9
+ expr?: string;
10
+ message: string;
11
+ }
12
+ /**
13
+ * 注册同步创建定时任务到后端工具
14
+ */
15
+ export declare function registerOpenclawWorkclawCronAddSyncTool(api: OpenClawPluginApi): void;
16
+ //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-cron/src/add/sync.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAI5D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAmKD;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAIpF"}
@@ -0,0 +1,12 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 生成禁用定时任务参数
4
+ */
5
+ export interface DisableParamsParams {
6
+ jobId: string;
7
+ }
8
+ /**
9
+ * 注册生成禁用定时任务参数工具
10
+ */
11
+ export declare function registerOpenclawWorkclawCronDisableParamsTool(api: OpenClawPluginApi): void;
12
+ //# sourceMappingURL=params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-cron/src/disable/params.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;CACd;AAiFD;;GAEG;AACH,wBAAgB,6CAA6C,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAI1F"}
@@ -0,0 +1,12 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 同步禁用定时任务参数
4
+ */
5
+ export interface DisableSyncParams {
6
+ jobId: string;
7
+ }
8
+ /**
9
+ * 注册同步禁用定时任务到后端工具
10
+ */
11
+ export declare function registerOpenclawWorkclawCronDisableSyncTool(api: OpenClawPluginApi): void;
12
+ //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-cron/src/disable/sync.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAI5D;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;CACd;AA0GD;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAIxF"}
@@ -0,0 +1,12 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 生成启用定时任务参数
4
+ */
5
+ export interface EnableParamsParams {
6
+ jobId: string;
7
+ }
8
+ /**
9
+ * 注册生成启用定时任务参数工具
10
+ */
11
+ export declare function registerOpenclawWorkclawCronEnableParamsTool(api: OpenClawPluginApi): void;
12
+ //# sourceMappingURL=params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-cron/src/enable/params.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;CACd;AAiFD;;GAEG;AACH,wBAAgB,4CAA4C,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAIzF"}
@@ -0,0 +1,12 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 同步启用定时任务参数
4
+ */
5
+ export interface EnableSyncParams {
6
+ jobId: string;
7
+ }
8
+ /**
9
+ * 注册同步启用定时任务到后端工具
10
+ */
11
+ export declare function registerOpenclawWorkclawCronEnableSyncTool(api: OpenClawPluginApi): void;
12
+ //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-cron/src/enable/sync.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAI5D;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;CACd;AA0GD;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAIvF"}
@@ -0,0 +1,13 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 定时任务触发通知参数
4
+ */
5
+ export interface NotifyParams {
6
+ jobId: string;
7
+ message: string;
8
+ }
9
+ /**
10
+ * 注册定时任务触发通知工具
11
+ */
12
+ export declare function registerOpenclawWorkclawCronNotifySyncTool(api: OpenClawPluginApi): void;
13
+ //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-cron/src/notify/sync.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAI5D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AA4HD;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAIvF"}
@@ -0,0 +1,12 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 生成删除定时任务参数
4
+ */
5
+ export interface RemoveParamsParams {
6
+ jobId: string;
7
+ }
8
+ /**
9
+ * 注册生成删除定时任务参数工具
10
+ */
11
+ export declare function registerOpenclawWorkclawCronRemoveParamsTool(api: OpenClawPluginApi): void;
12
+ //# sourceMappingURL=params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-cron/src/remove/params.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;CACd;AA0FD;;GAEG;AACH,wBAAgB,4CAA4C,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAIzF"}
@@ -0,0 +1,12 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 同步删除定时任务参数
4
+ */
5
+ export interface RemoveSyncParams {
6
+ jobId: string;
7
+ }
8
+ /**
9
+ * 注册同步删除定时任务到后端工具
10
+ */
11
+ export declare function registerOpenclawWorkclawCronRemoveSyncTool(api: OpenClawPluginApi): void;
12
+ //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-cron/src/remove/sync.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAI5D;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;CACd;AA0GD;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAIvF"}
@@ -0,0 +1,15 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 生成修改定时任务参数
4
+ */
5
+ export interface UpdateParamsParams {
6
+ jobId: string;
7
+ time: string;
8
+ name: string;
9
+ message: string;
10
+ }
11
+ /**
12
+ * 注册生成修改定时任务参数工具
13
+ */
14
+ export declare function registerOpenclawWorkclawCronUpdateParamsTool(api: OpenClawPluginApi): void;
15
+ //# sourceMappingURL=params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-cron/src/update/params.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAO5D;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAwKD;;GAEG;AACH,wBAAgB,4CAA4C,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAIzF"}
@@ -0,0 +1,16 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 同步修改定时任务参数
4
+ */
5
+ export interface UpdateSyncParams {
6
+ jobId: string;
7
+ name: string;
8
+ kind: 'cron';
9
+ expr?: string;
10
+ message: string;
11
+ }
12
+ /**
13
+ * 注册同步修改定时任务到后端工具
14
+ */
15
+ export declare function registerOpenclawWorkclawCronUpdateSyncTool(api: OpenClawPluginApi): void;
16
+ //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-cron/src/update/sync.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAI5D;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAwID;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAIvF"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * 智小途定时任务工具 - 类型定义
3
+ */
4
+ /**
5
+ * 后端接口请求体
6
+ */
7
+ export interface CronJobPayload {
8
+ agentId: string;
9
+ messageId: string;
10
+ clawJobId: string;
11
+ name: string;
12
+ kind: 'cron';
13
+ expr?: string;
14
+ message: string;
15
+ }
16
+ /**
17
+ * OpenClaw cron 工具参数
18
+ */
19
+ export interface OpenClawCronParams {
20
+ action: 'add' | 'list' | 'remove' | 'update' | 'enable' | 'disable';
21
+ job?: {
22
+ agentId: string;
23
+ name: string;
24
+ schedule: {
25
+ kind: 'cron';
26
+ expr: string;
27
+ tz: string;
28
+ };
29
+ sessionTarget: 'isolated';
30
+ wakeMode: 'now';
31
+ deleteAfterRun?: boolean;
32
+ payload: {
33
+ kind: 'agentTurn';
34
+ message: string;
35
+ };
36
+ delivery: {
37
+ mode: 'announce';
38
+ channel: string;
39
+ to: string;
40
+ };
41
+ };
42
+ jobId?: string;
43
+ }
44
+ /**
45
+ * 工具返回结果
46
+ */
47
+ export interface CronToolResult {
48
+ success: boolean;
49
+ jobId?: string;
50
+ jobs?: any[];
51
+ error?: string;
52
+ }
53
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tools/openclaw-workclaw-cron/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA;IACnE,GAAG,CAAC,EAAE;QACJ,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM,CAAA;YACZ,IAAI,EAAE,MAAM,CAAA;YACZ,EAAE,EAAE,MAAM,CAAA;SACX,CAAA;QACD,aAAa,EAAE,UAAU,CAAA;QACzB,QAAQ,EAAE,KAAK,CAAA;QACf,cAAc,CAAC,EAAE,OAAO,CAAA;QACxB,OAAO,EAAE;YACP,IAAI,EAAE,WAAW,CAAA;YACjB,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,UAAU,CAAA;YAChB,OAAO,EAAE,MAAM,CAAA;YACf,EAAE,EAAE,MAAM,CAAA;SACX,CAAA;KACF,CAAA;IACD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * 智小途定时任务工具 - 工具函数
3
+ */
4
+ /**
5
+ * 解析相对时间字符串
6
+ * 支持格式:5m, 1h, 1h30m, 2d, 30s, 1d2h30m 等
7
+ * @param timeStr - 时间字符串
8
+ * @returns 毫秒数,解析失败返回 null
9
+ */
10
+ export declare function parseRelativeTime(timeStr: string): number | null;
11
+ /**
12
+ * 判断是否为 cron 表达式
13
+ * @param timeStr - 时间字符串
14
+ * @returns 是否为 cron 表达式
15
+ */
16
+ export declare function isCronExpression(timeStr: string): boolean;
17
+ /**
18
+ * 校验 cron 表达式格式
19
+ * @param timeStr - 时间字符串
20
+ * @returns 校验结果和错误信息
21
+ */
22
+ export declare function validateCronExpression(timeStr: string): {
23
+ valid: boolean;
24
+ error?: string;
25
+ };
26
+ /**
27
+ * 校验时间格式(相对时间或 cron 表达式)
28
+ * @param timeStr - 时间字符串
29
+ * @returns 校验结果和错误信息
30
+ */
31
+ export declare function validateTimeFormat(timeStr: string): {
32
+ valid: boolean;
33
+ error?: string;
34
+ };
35
+ /**
36
+ * 将相对时间转换为标准 cron 表达式
37
+ * @param timeStr - 相对时间字符串,如 "5m", "1h", "2h30m"
38
+ * @returns 标准 cron 表达式(秒 分 时 日 月 星期),格式为 "SS MM HH DD MM *"
39
+ */
40
+ export declare function relativeToCron(timeStr: string): string;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tools/openclaw-workclaw-cron/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA8BhE;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAGzD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CA+B1F;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAuBtF;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAetD"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 智小途系统信息工具 - 统一出口
3
+ *
4
+ * 提供统一的工具注册入口,一次性注册所有系统信息相关工具
5
+ */
6
+ /**
7
+ * 统一注册所有系统信息工具
8
+ * @param api - OpenClaw API 实例
9
+ */
10
+ export declare function registerAllOpenclawWorkclawSystemTools(api: any): void;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tools/openclaw-workclaw-system/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH;;;GAGG;AACH,wBAAgB,sCAAsC,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAGrE"}
@@ -0,0 +1,6 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 注册获取系统配置信息工具
4
+ */
5
+ export declare function registerOpenclawWorkclawSystemConfigTool(api: OpenClawPluginApi): void;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-system/src/get/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAiE5D;;GAEG;AACH,wBAAgB,wCAAwC,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAIrF"}
@@ -0,0 +1,6 @@
1
+ import { OpenClawPluginApi } from 'openclaw/plugin-sdk';
2
+ /**
3
+ * 注册获取用户 AccessToken 工具
4
+ */
5
+ export declare function registerOpenclawWorkclawSystemTokenTool(api: OpenClawPluginApi): void;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/tools/openclaw-workclaw-system/src/token/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAiF5D;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAIpF"}
@@ -0,0 +1,39 @@
1
+ import { workclawAccountConfigSchema, workclawConfigSchema, z } from './config-schema.js';
2
+ export type WorkclawConfig = z.infer<typeof workclawConfigSchema>;
3
+ export type WorkclawAccountConfig = z.infer<typeof workclawAccountConfigSchema>;
4
+ export interface ResolvedWorkclawAccount {
5
+ accountId: string;
6
+ enabled: boolean;
7
+ configured: boolean;
8
+ name?: string;
9
+ config: WorkclawFullAccountConfig;
10
+ }
11
+ export type ResolvedOpenClawWorkclawAccount = ResolvedWorkclawAccount;
12
+ export type WorkclawIdType = 'open_id' | 'user_id' | 'union_id' | 'chat_id';
13
+ export interface WorkclawSendResult {
14
+ messageId: string;
15
+ chatId: string;
16
+ }
17
+ export interface WorkClawBaseConfig {
18
+ baseUrl?: string;
19
+ websocketUrl?: string;
20
+ appKey?: string;
21
+ appSecret?: string;
22
+ localIp?: string;
23
+ allowInsecureTls?: boolean;
24
+ requestTimeout?: number;
25
+ userId?: string | number;
26
+ replyEndpoint?: string;
27
+ pushEndpoint?: string;
28
+ [key: string]: any;
29
+ }
30
+ export interface WorkClawAccountConfig {
31
+ agentId?: string | number;
32
+ userId?: string | number;
33
+ openConversationId?: string;
34
+ [key: string]: any;
35
+ }
36
+ export type WorkClawConfig = WorkClawBaseConfig & WorkClawAccountConfig;
37
+ export type WorkclawFullAccountConfig = WorkclawConfig & Partial<WorkclawAccountConfig>;
38
+ export type ResolvedWorkclawAccountConfig = WorkclawFullAccountConfig;
39
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,oBAAoB,EACpB,CAAC,EACF,MAAM,oBAAoB,CAAA;AAE3B,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACjE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE/E,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,yBAAyB,CAAA;CAClC;AACD,MAAM,MAAM,+BAA+B,GAAG,uBAAuB,CAAA;AAErE,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAA;AAE3E,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG,qBAAqB,CAAA;AAEvE,MAAM,MAAM,yBAAyB,GAAG,cAAc,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA;AACvF,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAA"}
@@ -0,0 +1,16 @@
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;
16
+ //# sourceMappingURL=content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/utils/content.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAYnE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAWzE"}
@@ -3,6 +3,12 @@
3
3
  "kind": "channel",
4
4
  "channels": ["openclaw-workclaw"],
5
5
  "skills": ["./skills"],
6
+ "name": "智小途",
7
+ "description": "智小途企业通讯平台 OpenClaw 渠道插件",
8
+ "version": "1.0.25",
9
+ "activation": {
10
+ "onStartup": true
11
+ },
6
12
  "configSchema": {
7
13
  "type": "object",
8
14
  "additionalProperties": false,