@workclaw/openclaw-workclaw 1.0.11 → 1.0.12
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 +4 -0
- package/package.json +2 -2
- package/src/gateway/message-context.ts +422 -422
- package/src/gateway/skills-list-handler.ts +332 -332
- package/src/tools/openclaw-workclaw-cron/api/index.ts +326 -326
- package/src/tools/openclaw-workclaw-system/index.ts +17 -0
- package/src/tools/openclaw-workclaw-system/src/get/index.ts +77 -0
- package/src/tools/openclaw-workclaw-system/src/token/index.ts +93 -0
package/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { sendMessageOpenclawWorkclaw } from './src/outbound/index.js'
|
|
|
14
14
|
import { deleteToolContext, getOpenclawWorkclawRuntime, getToolContext, getToolResultHint, setOpenclawWorkclawRuntime, setToolCallIdToRunIdMapping } from './src/runtime.js'
|
|
15
15
|
|
|
16
16
|
import { registerAllOpenclawWorkclawCronTools } from './src/tools/openclaw-workclaw-cron/index.js'
|
|
17
|
+
import { registerAllOpenclawWorkclawSystemTools } from './src/tools/openclaw-workclaw-system/index.js'
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
* 根据工具名称格式化参数字符串
|
|
@@ -249,6 +250,9 @@ const plugin = {
|
|
|
249
250
|
// 注册定时任务工具
|
|
250
251
|
registerAllOpenclawWorkclawCronTools(api)
|
|
251
252
|
|
|
253
|
+
// 注册系统工具
|
|
254
|
+
registerAllOpenclawWorkclawSystemTools(api)
|
|
255
|
+
|
|
252
256
|
// 注册工具执行相关的 hook - 不再需要留在这里当注释
|
|
253
257
|
registerToolHooks(api)
|
|
254
258
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workclaw/openclaw-workclaw",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.12",
|
|
5
5
|
"description": "OpenClaw WorkClaw channel plugin",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./src/index.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"quickstartAllowFrom": true
|
|
36
36
|
},
|
|
37
37
|
"install": {
|
|
38
|
-
"npmSpec": "@
|
|
38
|
+
"npmSpec": "@workclaw/openclaw-workclaw",
|
|
39
39
|
"localPath": "extensions/openclaw-workclaw",
|
|
40
40
|
"defaultChoice": "npm"
|
|
41
41
|
}
|