@honor-claw/yoyo 1.0.5 → 1.0.7-beta.0

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 (52) hide show
  1. package/package.json +1 -5
  2. package/skills/yoyo-control/SKILL.md +31 -24
  3. package/skills/yoyo-control/references/alarm-create.md +33 -33
  4. package/skills/yoyo-control/references/alarm-delete.md +361 -0
  5. package/skills/yoyo-control/references/alarm-disable.md +362 -0
  6. package/skills/yoyo-control/references/alarm-enable.md +362 -0
  7. package/skills/yoyo-control/references/alarm-query.md +568 -0
  8. package/skills/yoyo-control/references/app-close.md +91 -10
  9. package/skills/yoyo-control/references/app-open.md +94 -6
  10. package/skills/yoyo-control/references/call-phone.md +11 -11
  11. package/skills/yoyo-control/references/capture-screenshot.md +11 -11
  12. package/skills/yoyo-control/references/contact-search.md +11 -11
  13. package/skills/yoyo-control/references/file-upload.md +358 -0
  14. package/skills/yoyo-control/references/hotspot.md +12 -12
  15. package/skills/yoyo-control/references/local-search.md +10 -10
  16. package/skills/yoyo-control/references/message-send.md +11 -11
  17. package/skills/yoyo-control/references/mobile-data.md +12 -12
  18. package/skills/yoyo-control/references/no-disturb.md +12 -12
  19. package/skills/yoyo-control/references/quiet-mode.md +11 -11
  20. package/skills/yoyo-control/references/ringing-mode.md +11 -11
  21. package/skills/yoyo-control/references/screen-record.md +11 -11
  22. package/skills/yoyo-control/references/search-record.md +173 -0
  23. package/skills/yoyo-control/references/vibration-mode.md +11 -11
  24. package/skills/yoyo-control/references/volume-operate.md +13 -26
  25. package/src/apis/claw-cloud.ts +4 -4
  26. package/src/cloud-channel/admin-client-manager.ts +85 -0
  27. package/src/cloud-channel/channel.ts +35 -346
  28. package/src/cloud-channel/client.ts +10 -12
  29. package/src/cloud-channel/message-handler.ts +339 -0
  30. package/src/cloud-channel/session-manager.ts +127 -0
  31. package/src/cloud-channel/types.ts +5 -1
  32. package/src/commands/index.ts +1 -0
  33. package/src/gateway-client/admin-gateway-client.ts +34 -0
  34. package/src/gateway-client/client.ts +28 -9
  35. package/src/gateway-client/index.ts +4 -1
  36. package/src/gateway-client/node-gateway-client.ts +96 -0
  37. package/src/gateway-client/protocol/client.ts +68 -0
  38. package/src/gateway-client/protocol/index.ts +3 -0
  39. package/src/gateway-client/protocol/skill.ts +53 -0
  40. package/src/gateway-client/protocol/types.ts +92 -0
  41. package/src/gateway-client/protocol-client.ts +211 -0
  42. package/src/modules/claw-configs/provider.ts +164 -0
  43. package/src/modules/device/device-info.ts +1 -0
  44. package/src/modules/device/providers/base.ts +5 -0
  45. package/src/modules/device/providers/linux.ts +8 -0
  46. package/src/modules/device/providers/macos.ts +7 -0
  47. package/src/modules/device/providers/pad.ts +9 -0
  48. package/src/modules/device/providers/windows.ts +14 -0
  49. package/src/services/connection/impl.ts +1 -1
  50. package/src/types.ts +4 -0
  51. package/src/gateway-client/types.deprecated.ts +0 -217
  52. package/src/gateway-client/types.ts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honor-claw/yoyo",
3
- "version": "1.0.5",
3
+ "version": "1.0.7-beta.0",
4
4
  "description": "OpenClaw Honor Yoyo connection plugin",
5
5
  "keywords": [
6
6
  "ai",
@@ -42,13 +42,9 @@
42
42
  "@types/ws": "^8.5.13",
43
43
  "@vitest/coverage-v8": "^2.1.8",
44
44
  "commander": "^14.0.3",
45
- "openclaw": "2026.3.8",
46
45
  "typescript": "^5.7.0",
47
46
  "vitest": "^2.1.8"
48
47
  },
49
- "peerDependencies": {
50
- "openclaw": ">=2026.3.8"
51
- },
52
48
  "openclaw": {
53
49
  "extensions": [
54
50
  "./index.ts"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: YOYO-phone-control
3
3
  version: 1.0.0
4
- description: 用于控制和操作手机系统功能及本地信息的工具集合,包括打开或关闭应用、发送短信、拨打电话、搜索联系人、创建闹钟、截屏、屏幕录制、调节音量、切换响铃/静音/勿扰模式、管理移动数据或热点、进行本地内容搜索等。
4
+ description: 用于控制和操作手机系统功能及本地信息的工具集合,包括打开/关闭应用、发送短信、拨打电话、搜索联系人、搜索通话记录、创建/打开/查询/关闭/删除闹钟、截屏、屏幕录制、调节音量、切换响铃/静音/勿扰模式、管理移动数据或热点、进行本地内容搜索、文件发送等。
5
5
  metadata: { "openclaw": { "emoji": "📱", "always": true } }
6
6
  ---
7
7
 
@@ -25,13 +25,13 @@ metadata: { "openclaw": { "emoji": "📱", "always": true } }
25
25
  | Parameter | Type | Description | Example |
26
26
  | --------- | ------ | -------------------------------------------------------------------------------------- | ------------------------- |
27
27
  | `Node` | String | 设备名称,显示节点的友好标识名称 | `Honor Magic6 Pro` |
28
- | `ID` | String | 节点唯一标识符,用于命令调用时的 `--node` 参数(推荐使用) | `f5f8916028aa5` |
29
- | `IP` | String | 节点网络IP地址,也可用于命令调用时的 `--node` 参数 (强烈使用) | `192.168.1.100` |
28
+ | `ID` | String | 节点唯一标识符,用于命令调用时的 `--node` 参数 | `f5f8916028aa5` |
29
+ | `IP` | String | 节点网络IP地址,用于命令调用时的 `--node` 参数。**推荐优先使用IP**,相比ID更稳定可靠 | `192.168.1.100` |
30
30
  | `Detail` | String | 设备详细信息,可能包含设备型号、操作系统版本等信息 | `Magic6 Pro, Android 14` |
31
31
  | `Status` | String | 节点连接状态,值包括:`connected`(已连接)、`disconnected`(离线)、`unknown`(未知) | `connected` |
32
32
  | `Caps` | String | 节点能力列表,逗号分隔的能力标识,表示该设备支持的操作类型 | `app,call,message,volume` |
33
33
 
34
- #### Capability Matching Logic
34
+ #### 能力匹配逻辑
35
35
 
36
36
  Match device capabilities with user intent:
37
37
 
@@ -41,7 +41,7 @@ Match device capabilities with user intent:
41
41
  3. Filter nodes that support the required operation
42
42
  ```
43
43
 
44
- #### Selection Rules
44
+ #### 设备选择规则
45
45
 
46
46
  **Automatic Selection** (single best match):
47
47
 
@@ -60,7 +60,7 @@ Match device capabilities with user intent:
60
60
  - No capability match → Inform user: "No device supports [operation]. Available capabilities: [list]"
61
61
  - All nodes offline → Suggest: "Check device connectivity and try again"
62
62
 
63
- #### Pre-selection Checklist
63
+ #### 预选择检查清单
64
64
 
65
65
  - ✅ Filter only `status: "connected"` nodes
66
66
  - ✅ Never attempt to control offline devices
@@ -68,7 +68,7 @@ Match device capabilities with user intent:
68
68
  - ✅ If multiple nodes match, ask user to select OR control all if appropriate
69
69
  - ✅ If no suitable node found, clearly inform user with available options
70
70
 
71
- ## Step 2. Plan Tool and Extract Command & Paramters
71
+ ## Step 2. Plan Tool and Extract Command & Parameters
72
72
 
73
73
  **⚠️ MANDATORY: Consult tool reference before every operation**
74
74
 
@@ -87,13 +87,20 @@ Before executing any device control operation, you **MUST** consult the correspo
87
87
  | `ringing-mode` | `references/ringing-mode.md` | 响铃模式管理工具。提供对系统响铃模式的管理与控制能力,支持对响铃模式的开启与关闭、相关行为的设置以及当前状态的查询,并可结合指定应用对其在响铃模式下的表现进行管理。 |
88
88
  | `vibration-mode` | `references/vibration-mode.md` | 系统震动反馈管理与控制工具。提供对系统震动反馈功能的统一管理与控制能力,支持震动模式的设置、状态查询、打开与关闭,并可分别管理静音状态下震动、响铃状态下震动,以及在点击导航栏或设备解锁等交互场景中的震动反馈。 |
89
89
  | `capture-screenshot` | `references/capture-screenshot.md` | 截屏功能管理与触发工具。提供对截屏功能的管理与触发能力,支持将当前手机屏幕内容以图片的形式保存,包括普通截屏和滚动截屏等操作。 |
90
- | `app` | `references/app-open.md` | 应用打开工具。用于帮助用户关闭指定的 APP 应用,且不涉及任何具体 App 内部操作。 |
91
- | `app` | `references/app-close.md` | 应用关闭工具。用于帮助用户打开指定的 APP 应用,且不涉及任何具体 App 内部操作。 |
90
+ | `app` | `references/app-open.md` | 应用打开工具。用于帮助用户打开指定的 APP 应用,且不涉及任何具体 App 内部操作。 |
91
+ | `app` | `references/app-close.md` | 应用关闭工具。用于帮助用户关闭指定的 APP 应用,且不涉及任何具体 App 内部操作。 |
92
92
  | `contact` | `references/contact-search.md` | 联系人查找服务工具。提供按姓名、昵称、电话号码检索联系人的能力,支持区分自然人名与机构/黄页条目,可处理模糊匹配、多结果列表展示及序号选择场景。 |
93
- | `call` | `references/call-phone.md` | 智能电话拨打与管理工具。提供全面的电话呼叫功能,支持通过姓名、电话号码或黄页服务发起呼叫;支持指定拨号使用的SIM卡(移动/联通/电信/卡槽);具备重拨最后号码、回拨已接听来电、回拨未接听来电及通用回拨功能; |
93
+ | `call` | `references/call-phone.md` | 智能电话拨打与管理工具。提供全面的电话呼叫功能,支持通过姓名、电话号码或黄页服务发起呼叫;支持指定拨号使用的SIM卡(移动/联通/电信/卡槽);具备重拨最后号码、回拨已接听来电、回拨未接听来电及通用回拨功能。 |
94
94
  | `message` | `references/message-send.md` | 提供发送短信的服务。支持通过电话号码或联系人名称发送短信内容,可使用黄页发送短信至公共服务号码,以及发送名片信息给指定联系人。 |
95
- | `local-search` | `references/local-search.md` | 查询手机文档、笔记、日程、图库、yoyo记忆、钱包等 |
96
- | `alarm` | `references/alarm-create.md` | 闹钟创建工具。用于创建闹钟,当用户明确创建/定一个闹钟时,属于创建闹钟。 |
95
+ | `local-search` | `references/local-search.md` | 查询手机文档、笔记、日程、图库、yoyo记忆、钱包等 |
96
+ | `file-upload` | `references/file-upload.md` | 文件上传工具。用于将本地文件上传到指定位置。当用户明确提供文件路径时直接调用;当用户仅描述文件(如"某文件"、"某照片")时,需先调用 local-search 查询获取文件路径,再执行上传。 |
97
+ | `alarm` | `references/alarm-create.md` | 闹钟创建工具。用于创建闹钟,当用户明确创建/定一个闹钟时,属于创建闹钟。 |
98
+ | `alarm` | `references/alarm-query.md` | 闹钟查询工具。用于查询已创建的闹钟列表,支持按时间、标题、重复类型等多维度筛选。 |
99
+ | `alarm` | `references/alarm-delete.md` | 闹钟删除工具。用于永久删除已创建的闹钟,支持批量删除多个闹钟。 |
100
+ | `alarm` | `references/alarm-disable.md` | 闹钟关闭工具。用于禁用已创建的闹钟,支持批量关闭多个闹钟。 |
101
+ | `alarm` | `references/alarm-enable.md` | 闹钟打开工具。用于启用已创建的闹钟,支持批量打开多个闹钟。 |
102
+ | `call` | `references/search-record.md` | 提供查看通话记录(全部、未接听、已接听,或按联系人筛选)服务。 |
103
+
97
104
 
98
105
  ### Command and Parameters Construction Workflow
99
106
 
@@ -123,7 +130,7 @@ Execute the following steps **in strict order** for each operation to construct
123
130
  - Enum values must match documentation exactly (case-sensitive)
124
131
  - Numeric values must be within defined ranges
125
132
 
126
- ### Error Handling Protocolreference
133
+ ### Error Handling Protocol
127
134
 
128
135
  | Scenario | Required Action |
129
136
  | ------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
@@ -143,7 +150,7 @@ Execute the following steps **in strict order** for each operation to construct
143
150
 
144
151
  **Command**:
145
152
 
146
- - window(CMD): `openclaw nodes invoke --node <IP> --command <command> --params "<json>"`
153
+ - window(Cmd): `cmd /c 'openclaw nodes invoke --node <ID> --command <command> --params "<json>"`
147
154
  - Other: `openclaw nodes invoke --node <IP> --command <command> --params '<json>'`
148
155
 
149
156
  **Purpose**: Send command to target node and initiate operation.
@@ -156,8 +163,8 @@ Execute the following steps **in strict order** for each operation to construct
156
163
  | ---- | ------------------- | ------------------------------------------------------ | ---------------------------------------------------- |
157
164
  | 1 | **Node Identifier** | Extract `IP` or `ID` column from `nodes status` output | ❌ STOP: "Cannot use node. Use ID from nodes status" |
158
165
  | 2 | **Tool Reference** | Read `references/<tool>.md` file completely | ❌ STOP: "Tool reference not found" |
159
- | 4 | **Command Name** | Extract `command` exactly from tool documentation | ❌ STOP: "Command mismatch. Check documentation" |
160
- | 3 | **Required Params** | Extract `params` from tool documentation | ❌ STOP: "Missing required field: [field]" |
166
+ | 3 | **Command Name** | Extract `command` exactly from tool documentation | ❌ STOP: "Command mismatch. Check documentation" |
167
+ | 4 | **Required Params** | Extract `params` from tool documentation | ❌ STOP: "Missing required field: [field]" |
161
168
 
162
169
  ### Platform Detection and Command Format
163
170
 
@@ -165,7 +172,7 @@ Execute the following steps **in strict order** for each operation to construct
165
172
 
166
173
  Before executing any command, you **MUST** detect the current platform and use the appropriate command format. Using the wrong format will cause command execution failures.
167
174
 
168
- #### Platform Detection Logic
175
+ #### 平台检测逻辑
169
176
 
170
177
  ```
171
178
  ┌─────────────────────────────────────────────────────────────┐
@@ -178,12 +185,12 @@ Before executing any command, you **MUST** detect the current platform and use t
178
185
  └─────────────────────────────────────────────────────────────┘
179
186
  ```
180
187
 
181
- #### Platform-Specific Command Formats
188
+ #### 平台特定命令格式
182
189
 
183
190
  | Platform | Shell Type | Quote Style | JSON Escaping Required | Example Command |
184
191
  | ----------- | ---------- | ------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------- |
185
- | **Windows** | CMD | Double quotes, escape inner `"` | ✅ YES | `openclaw nodes invoke <IP> --command phone.call --params "{\"actionType\":\"打电话\"}"` |
186
- | **Windows** | PowerShell | Double quotes, escape inner `$` | ✅ YES | `openclaw nodes invoke <IP> --command phone.call --params "{\`"actionType\`":\`"打电话\`"}"` |
192
+ | **Windows** | CMD | Double quotes, escape inner `"` | ✅ YES | `cmd /c 'openclaw nodes invoke --node <ID> --command phone.call --params "{\"actionType\":\"打电话\"}"` |
193
+ | **Windows** | PowerShell | Double quotes, escape inner `$` | ✅ YES | `cmd /c 'openclaw nodes invoke --node <ID> --command phone.call --params "{\`"actionType\`":\`"打电话\`"}"` |
187
194
  | **Linux** | Bash | Single quotes | ❌ NO | `openclaw nodes invoke <IP> --command phone.call --params '{"actionType":"打电话"}'` |
188
195
  | **macOS** | Bash/Zsh | Single quotes | ❌ NO | `openclaw nodes invoke <IP> --command phone.call --params '{"actionType":"打电话"}'` |
189
196
 
@@ -222,7 +229,7 @@ node {baseDir}/scripts/invoke.js --node 192.168.1.100 --command volume.operate -
222
229
 
223
230
  ```
224
231
  ┌─────────────────────────────────────────────────────────────┐
225
- │ RETRY FLOW (Max 2 attempts) │
232
+ │ RETRY FLOW (Max 3 attempts) │
226
233
  ├─────────────────────────────────────────────────────────────┤
227
234
  │ Attempt 1 → FAIL → Wait 1s → Attempt 2 → FAIL → Wait 1s │
228
235
  │ → Attempt 3 → FAIL → STOP & REPORT ERROR │
@@ -258,7 +265,7 @@ node {baseDir}/scripts/invoke.js --node 192.168.1.100 --command volume.operate -
258
265
 
259
266
  ### Response Templates
260
267
 
261
- #### Simple Success
268
+ #### 简单成功响应
262
269
 
263
270
  ```
264
271
  ✅ [Operation] completed on [Device]
@@ -266,7 +273,7 @@ node {baseDir}/scripts/invoke.js --node 192.168.1.100 --command volume.operate -
266
273
  Example: "Volume set to 50% on Honor Magic6 (was 30%)"
267
274
  ```
268
275
 
269
- #### Complex Success
276
+ #### 复杂成功响应
270
277
 
271
278
  ```
272
279
  ✅ [Operation] completed on [Device]
@@ -282,7 +289,7 @@ Example:
282
289
  - Visibility: Visible for 2 minutes"
283
290
  ```
284
291
 
285
- #### Failure with Guidance
292
+ #### 失败响应与指导
286
293
 
287
294
  ```
288
295
  ❌ [Operation] failed on [Device]
@@ -140,14 +140,14 @@ alarm.create
140
140
 
141
141
  **Windows (Cmd) 执行命令**:
142
142
 
143
- ```Cmd
144
- openclaw nodes invoke <ID> --command alarm.create --params "{\"time\":\"T10:00:00\",\"realRepeatType\":0,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"
143
+ ``Cmd
144
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T10:00:00\\\",\\\"realRepeatType\\\":0,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
145
145
  ```
146
146
 
147
147
  **Linux (Bash) 执行命令**:
148
148
 
149
149
  ```bash
150
- openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T10:00:00","realRepeatType":0,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
150
+ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T10:00:00","realRepeatType":0,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
151
151
  ```
152
152
 
153
153
  ---
@@ -171,14 +171,14 @@ openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T10:00:00",
171
171
 
172
172
  **Windows (Cmd) 执行命令**:
173
173
 
174
- ```Cmd
175
- openclaw nodes invoke <ID> --command alarm.create --params "{\"title\":\"购物\",\"time\":\"T15:00:00\",\"realRepeatType\":0,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"
174
+ ``Cmd
175
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"title\\\":\\\"购物\\\",\\\"time\\\":\\\"T15:00:00\\\",\\\"realRepeatType\\\":0,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
176
176
  ```
177
177
 
178
178
  **Linux (Bash) 执行命令**:
179
179
 
180
180
  ```bash
181
- openclaw nodes invoke <ID> --command alarm.create --params '{"title":"购物","time":"T15:00:00","realRepeatType":0,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
181
+ openclaw nodes invoke --node <ID> --command alarm.create --params '{"title":"购物","time":"T15:00:00","realRepeatType":0,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
182
182
  ```
183
183
 
184
184
  ---
@@ -202,14 +202,14 @@ openclaw nodes invoke <ID> --command alarm.create --params '{"title":"购物","t
202
202
 
203
203
  **Windows (Cmd) 执行命令**:
204
204
 
205
- ```Cmd
206
- openclaw nodes invoke <ID> --command alarm.create --params "{\"title\":\"起床\",\"time\":\"T07:00:00\",\"realRepeatType\":2,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"
205
+ ``Cmd
206
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"title\\\":\\\"起床\\\",\\\"time\\\":\\\"T07:00:00\\\",\\\"realRepeatType\\\":2,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
207
207
  ```
208
208
 
209
209
  **Linux (Bash) 执行命令**:
210
210
 
211
211
  ```bash
212
- openclaw nodes invoke <ID> --command alarm.create --params '{"title":"起床","time":"T07:00:00","realRepeatType":2,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
212
+ openclaw nodes invoke --node <ID> --command alarm.create --params '{"title":"起床","time":"T07:00:00","realRepeatType":2,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
213
213
  ```
214
214
 
215
215
  ---
@@ -232,14 +232,14 @@ openclaw nodes invoke <ID> --command alarm.create --params '{"title":"起床","t
232
232
 
233
233
  **Windows (Cmd) 执行命令**:
234
234
 
235
- ```Cmd
236
- openclaw nodes invoke <ID> --command alarm.create --params "{\"time\":\"T08:00:00\",\"realRepeatType\":1,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"
235
+ ``Cmd
236
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T08:00:00\\\",\\\"realRepeatType\\\":1,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
237
237
  ```
238
238
 
239
239
  **Linux (Bash) 执行命令**:
240
240
 
241
241
  ```bash
242
- openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T08:00:00","realRepeatType":1,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
242
+ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T08:00:00","realRepeatType":1,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
243
243
  ```
244
244
 
245
245
  ---
@@ -264,14 +264,14 @@ openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T08:00:00",
264
264
 
265
265
  **Windows (Cmd) 执行命令**:
266
266
 
267
- ```Cmd
268
- openclaw nodes invoke <ID> --command alarm.create --params "{\"time\":\"T15:00:00\",\"realRepeatType\":3,\"daysOfWeek\":20,\"specialTimeMillis\":0,\"skipHoliday\":false}"
267
+ ``Cmd
268
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T15:00:00\\\",\\\"realRepeatType\\\":3,\\\"daysOfWeek\\\":20,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
269
269
  ```
270
270
 
271
271
  **Linux (Bash) 执行命令**:
272
272
 
273
273
  ```bash
274
- openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T15:00:00","realRepeatType":3,"daysOfWeek":20,"specialTimeMillis":0,"skipHoliday":false}'
274
+ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T15:00:00","realRepeatType":3,"daysOfWeek":20,"specialTimeMillis":0,"skipHoliday":false}'
275
275
  ```
276
276
 
277
277
  ---
@@ -296,14 +296,14 @@ openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T15:00:00",
296
296
 
297
297
  **Windows (Cmd) 执行命令**:
298
298
 
299
- ```Cmd
300
- openclaw nodes invoke <ID> --command alarm.create --params "{\"time\":\"T08:00:00\",\"realRepeatType\":5,\"daysOfWeek\":0,\"specialTimeMillis\":1773964800000,\"skipHoliday\":false}"
299
+ ``Cmd
300
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T08:00:00\\\",\\\"realRepeatType\\\":5,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":1773964800000,\\\"skipHoliday\\\":false}\"'
301
301
  ```
302
302
 
303
303
  **Linux (Bash) 执行命令**:
304
304
 
305
305
  ```bash
306
- openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T08:00:00","realRepeatType":5,"daysOfWeek":0,"specialTimeMillis":1773964800000,"skipHoliday":false}'
306
+ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T08:00:00","realRepeatType":5,"daysOfWeek":0,"specialTimeMillis":1773964800000,"skipHoliday":false}'
307
307
  ```
308
308
 
309
309
  ---
@@ -328,14 +328,14 @@ openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T08:00:00",
328
328
 
329
329
  **Windows (Cmd) 执行命令**:
330
330
 
331
- ```Cmd
332
- openclaw nodes invoke <ID> --command alarm.create --params "{\"time\":\"T09:00:00\",\"realRepeatType\":1,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":true}"
331
+ ``Cmd
332
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T09:00:00\\\",\\\"realRepeatType\\\":1,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":true}\"'
333
333
  ```
334
334
 
335
335
  **Linux (Bash) 执行命令**:
336
336
 
337
337
  ```bash
338
- openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T09:00:00","realRepeatType":1,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":true}'
338
+ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T09:00:00","realRepeatType":1,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":true}'
339
339
  ```
340
340
 
341
341
  ---
@@ -359,14 +359,14 @@ openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T09:00:00",
359
359
 
360
360
  **Windows (Cmd) 执行命令**:
361
361
 
362
- ```Cmd
363
- openclaw nodes invoke <ID> --command alarm.create --params "{\"time\":\"T09:00:00\",\"realRepeatType\":9,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false,\"bigWeek\":true}"
362
+ ``Cmd
363
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T09:00:00\\\",\\\"realRepeatType\\\":9,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false,\\\"bigWeek\\\":true}\"'
364
364
  ```
365
365
 
366
366
  **Linux (Bash) 执行命令**:
367
367
 
368
368
  ```bash
369
- openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T09:00:00","realRepeatType":9,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false,"bigWeek":true}'
369
+ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T09:00:00","realRepeatType":9,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false,"bigWeek":true}'
370
370
  ```
371
371
 
372
372
  ---
@@ -390,14 +390,14 @@ openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T09:00:00",
390
390
 
391
391
  **Windows (Cmd) 执行命令**:
392
392
 
393
- ```Cmd
394
- openclaw nodes invoke <ID> --command alarm.create --params "{\"time\":\"T09:00:00\",\"realRepeatType\":9,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false,\"bigWeek\":false}"
393
+ ``Cmd
394
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T09:00:00\\\",\\\"realRepeatType\\\":9,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false,\\\"bigWeek\\\":false}\"'
395
395
  ```
396
396
 
397
397
  **Linux (Bash) 执行命令**:
398
398
 
399
399
  ```bash
400
- openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T09:00:00","realRepeatType":9,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false,"bigWeek":false}'
400
+ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T09:00:00","realRepeatType":9,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false,"bigWeek":false}'
401
401
  ```
402
402
 
403
403
  ---
@@ -422,14 +422,14 @@ openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T09:00:00",
422
422
 
423
423
  **Windows (Cmd) 执行命令**:
424
424
 
425
- ```Cmd
426
- openclaw nodes invoke <ID> --command alarm.create --params "{\"time\":\"T18:00:00\",\"realRepeatType\":4,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"
425
+ ``Cmd
426
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T18:00:00\\\",\\\"realRepeatType\\\":4,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
427
427
  ```
428
428
 
429
429
  **Linux (Bash) 执行命令**:
430
430
 
431
431
  ```bash
432
- openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T18:00:00","realRepeatType":4,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
432
+ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T18:00:00","realRepeatType":4,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
433
433
  ```
434
434
 
435
435
  ---
@@ -452,14 +452,14 @@ openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T18:00:00",
452
452
 
453
453
  **Windows (Cmd) 执行命令**:
454
454
 
455
- ```Cmd
456
- openclaw nodes invoke <ID> --command alarm.create --params "{\"time\":\"T08:30:00\",\"realRepeatType\":10,\"daysOfWeek\":0,\"specialTimeMillis\":0,\"skipHoliday\":false}"
455
+ ``Cmd
456
+ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params \"{\\\"time\\\":\\\"T08:30:00\\\",\\\"realRepeatType\\\":10,\\\"daysOfWeek\\\":0,\\\"specialTimeMillis\\\":0,\\\"skipHoliday\\\":false}\"'
457
457
  ```
458
458
 
459
459
  **Linux (Bash) 执行命令**:
460
460
 
461
461
  ```bash
462
- openclaw nodes invoke <ID> --command alarm.create --params '{"time":"T08:30:00","realRepeatType":10,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
462
+ openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T08:30:00","realRepeatType":10,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
463
463
  ```
464
464
 
465
465
  ## 错误处理