@honor-claw/yoyo 1.1.3 → 1.1.4-beta.10

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 (115) hide show
  1. package/index.ts +31 -25
  2. package/openclaw.plugin.json +21 -0
  3. package/package.json +7 -6
  4. package/skills/search/SKILL.md +29 -25
  5. package/skills/yoyo-control/SKILL.md +40 -34
  6. package/skills/yoyo-control/references/alarm-create.md +1 -1
  7. package/skills/yoyo-control/references/app-close.md +3 -3
  8. package/skills/yoyo-control/references/app-open.md +5 -4
  9. package/skills/yoyo-control/references/app_name_to_pkgName.md +238 -238
  10. package/skills/yoyo-control/references/autoscreen-onnotice.md +216 -0
  11. package/skills/yoyo-control/references/brightness.md +249 -0
  12. package/skills/yoyo-control/references/call-phone.md +1 -1
  13. package/skills/yoyo-control/references/dark-mode.md +215 -0
  14. package/skills/yoyo-control/references/device-operation.md +238 -0
  15. package/skills/yoyo-control/references/eyecomfort.md +231 -0
  16. package/skills/yoyo-control/references/location-service.md +204 -0
  17. package/skills/yoyo-control/references/nfc.md +216 -0
  18. package/skills/yoyo-control/references/schedule-delete.md +27 -15
  19. package/skills/yoyo-control/references/status-bar-show.md +225 -0
  20. package/skills/yoyo-control/references/usb-shared-network.md +213 -0
  21. package/src/apis/claw-cloud.ts +165 -124
  22. package/src/apis/helpers.ts +10 -10
  23. package/src/{modules/claw-configs → apis}/hosts.ts +48 -48
  24. package/src/apis/http-client.ts +227 -239
  25. package/src/apis/index.ts +7 -8
  26. package/src/apis/types.ts +113 -73
  27. package/src/cloud-channel/admin-client-manager.ts +13 -7
  28. package/src/cloud-channel/channel.ts +116 -117
  29. package/src/cloud-channel/client.ts +385 -390
  30. package/src/cloud-channel/index.ts +4 -4
  31. package/src/cloud-channel/message-handler.ts +526 -216
  32. package/src/cloud-channel/session-manager.ts +17 -12
  33. package/src/cloud-channel/types.ts +123 -115
  34. package/src/cloud-channel/utils.ts +62 -0
  35. package/src/commands/env/impl.ts +58 -58
  36. package/src/commands/env/index.ts +1 -1
  37. package/src/commands/index.ts +24 -30
  38. package/src/commands/login/impl.ts +20 -30
  39. package/src/commands/login/index.ts +1 -1
  40. package/src/commands/logout/impl.ts +13 -3
  41. package/src/commands/logout/index.ts +1 -1
  42. package/src/commands/status/index.ts +176 -194
  43. package/src/gateway-client/admin-client.ts +61 -0
  44. package/src/gateway-client/client.ts +90 -90
  45. package/src/gateway-client/index.ts +5 -5
  46. package/src/gateway-client/{node-gateway-client.ts → node-client.ts} +9 -22
  47. package/src/gateway-client/protocol-client.ts +62 -65
  48. package/src/gateway-client/{protocol → types}/client.ts +2 -4
  49. package/src/gateway-client/types/index.ts +4 -0
  50. package/src/gateway-client/types/model.ts +11 -0
  51. package/src/gateway-client/{protocol/types.ts → types/protocol.ts} +46 -0
  52. package/src/honor-auth/browser.ts +86 -79
  53. package/src/honor-auth/callback-server.ts +109 -109
  54. package/src/honor-auth/cloud.ts +43 -57
  55. package/src/honor-auth/config.ts +41 -43
  56. package/src/honor-auth/honor-auth-client.ts +103 -0
  57. package/src/honor-auth/index.ts +5 -3
  58. package/src/honor-auth/token-manager.ts +151 -90
  59. package/src/honor-auth/types.ts +35 -50
  60. package/src/index.ts +10 -10
  61. package/src/modules/{claw-configs → configs}/config-manager.ts +439 -409
  62. package/src/modules/configs/identity-persist.ts +193 -0
  63. package/src/modules/configs/index.ts +8 -0
  64. package/src/modules/{claw-configs → configs}/provider.ts +361 -394
  65. package/src/modules/configs/types.ts +50 -0
  66. package/src/modules/device/auth.ts +27 -0
  67. package/src/modules/device/credential-builder.ts +58 -0
  68. package/src/modules/device/device-info.ts +91 -82
  69. package/src/{gateway-client → modules}/device/helpers.ts +26 -40
  70. package/src/{gateway-client → modules}/device/identity.ts +214 -251
  71. package/src/modules/device/index.ts +8 -3
  72. package/src/modules/device/providers/base.ts +37 -32
  73. package/src/modules/device/providers/index.ts +56 -0
  74. package/src/modules/device/providers/linux.ts +73 -70
  75. package/src/modules/device/providers/macos.ts +62 -68
  76. package/src/modules/device/providers/pad.ts +155 -107
  77. package/src/modules/device/providers/windows.ts +179 -130
  78. package/src/modules/device/registry.ts +27 -43
  79. package/src/{gateway-client → modules}/device/types.ts +53 -57
  80. package/src/modules/login/impl.ts +84 -92
  81. package/src/modules/login/index.ts +6 -6
  82. package/src/modules/prompt/index.ts +6 -0
  83. package/src/runtime.ts +1 -1
  84. package/src/schemas.ts +35 -23
  85. package/src/services/connection/impl.ts +232 -339
  86. package/src/services/connection/index.ts +1 -1
  87. package/src/services/connection/status-tracker/events.ts +172 -127
  88. package/src/services/connection/status-tracker/index.ts +31 -31
  89. package/src/services/connection/status-tracker/storage.ts +133 -133
  90. package/src/services/connection/status-tracker/tracker.ts +358 -370
  91. package/src/services/connection/status-tracker/types.ts +136 -131
  92. package/src/services/connection/types.ts +20 -20
  93. package/src/types.ts +69 -64
  94. package/src/utils/env.ts +37 -0
  95. package/src/utils/error.ts +13 -0
  96. package/src/utils/fs-safe.ts +26 -27
  97. package/src/utils/home-dir.ts +50 -0
  98. package/src/utils/id.ts +8 -8
  99. package/src/utils/jwt.ts +38 -37
  100. package/src/utils/logger.ts +20 -20
  101. package/src/utils/proxy.ts +58 -58
  102. package/src/utils/version.ts +29 -29
  103. package/src/utils/ws.ts +21 -21
  104. package/src/agent/copy-templates.ts +0 -56
  105. package/src/agent/index.ts +0 -3
  106. package/src/agent/templates/AGENTS.md +0 -234
  107. package/src/apis/honor-auth.ts +0 -158
  108. package/src/gateway-client/admin-gateway-client.ts +0 -35
  109. package/src/gateway-client/device/auth.ts +0 -57
  110. package/src/gateway-client/device/builder.ts +0 -105
  111. package/src/gateway-client/device/index.ts +0 -40
  112. package/src/gateway-client/protocol/index.ts +0 -3
  113. package/src/modules/claw-configs/index.ts +0 -8
  114. package/src/modules/claw-configs/types.ts +0 -34
  115. /package/src/gateway-client/{protocol/skill.ts → types/skills.ts} +0 -0
package/index.ts CHANGED
@@ -1,25 +1,31 @@
1
- import { type OpenClawPluginApi } from "openclaw/plugin-sdk";
2
- import { setYoyoRuntime } from "./src/runtime.js";
3
- import { registerCommands } from "./src/commands/index.js";
4
- import { YoyoPluginConfigSchema } from "./src/schemas.js";
5
- import { createClawConnectionService } from "./src/services/connection/index.js";
6
- import { setClawLogger } from "./src/utils/logger.js";
7
-
8
- const plugin = {
9
- id: "yoyo",
10
- name: "YOYOClaw",
11
- description: "OpenClaw Honor Yoyo connection plugin",
12
- configSchema: YoyoPluginConfigSchema,
13
- register(api: OpenClawPluginApi) {
14
- setYoyoRuntime(api.runtime);
15
- setClawLogger(api.logger);
16
-
17
- // 利用服务来管理核心连接任务进行~
18
- api.registerService(createClawConnectionService(api));
19
-
20
- // 注册所有的命令行
21
- registerCommands(api);
22
- },
23
- };
24
-
25
- export default plugin;
1
+ import { type OpenClawPluginApi } from "openclaw/plugin-sdk";
2
+ import { registerCommands } from "./src/commands/index.js";
3
+ import { AGENT_PROMPT } from "./src/modules/prompt/index.js";
4
+ import { setYoyoRuntime } from "./src/runtime.js";
5
+ import { YoyoPluginConfigSchema } from "./src/schemas.js";
6
+ import { createClawConnectionService } from "./src/services/connection/index.js";
7
+ import { setClawLogger } from "./src/utils/logger.js";
8
+
9
+ const plugin = {
10
+ id: "yoyo",
11
+ name: "YOYOClaw",
12
+ description: "OpenClaw Honor Yoyo connection plugin",
13
+ configSchema: YoyoPluginConfigSchema,
14
+ register(api: OpenClawPluginApi) {
15
+ setYoyoRuntime(api.runtime);
16
+ setClawLogger(api.logger);
17
+
18
+ // 利用服务来管理核心连接任务进行~
19
+ api.registerService(createClawConnectionService(api));
20
+
21
+ // Inject core skill & safety rules into system prompt every turn
22
+ api.on("before_prompt_build", async () => ({
23
+ prependSystemContext: AGENT_PROMPT,
24
+ }));
25
+
26
+ // 注册所有的命令行
27
+ registerCommands(api);
28
+ },
29
+ };
30
+
31
+ export default plugin;
@@ -23,6 +23,27 @@
23
23
  },
24
24
  "additionalProperties": false
25
25
  },
26
+ "device": {
27
+ "type": "object",
28
+ "properties": {
29
+ "type": {
30
+ "type": "string"
31
+ },
32
+ "manufacture": {
33
+ "type": "string"
34
+ },
35
+ "brand": {
36
+ "type": "string"
37
+ },
38
+ "name": {
39
+ "type": "string"
40
+ },
41
+ "model": {
42
+ "type": "string"
43
+ }
44
+ },
45
+ "additionalProperties": false
46
+ },
26
47
  "env": {
27
48
  "type": "string",
28
49
  "enum": ["dev", "test", "production"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honor-claw/yoyo",
3
- "version": "1.1.3",
3
+ "version": "1.1.4-beta.10",
4
4
  "description": "OpenClaw Honor Yoyo connection plugin",
5
5
  "keywords": [
6
6
  "ai",
@@ -23,21 +23,22 @@
23
23
  "registry": "https://registry.npmjs.org/"
24
24
  },
25
25
  "scripts": {
26
- "test:unit": "vitest run",
27
- "test:unit:watch": "vitest",
28
- "test:coverage": "vitest run --coverage",
29
26
  "ci:check": "npx tsc --noEmit && npm run test:coverage",
30
27
  "publish:beta": "node scripts/publish.js",
31
- "publish:latest": "node scripts/publish.js --release"
28
+ "publish:latest": "node scripts/publish.js --release",
29
+ "test:coverage": "vitest run --coverage",
30
+ "test:unit": "vitest run",
31
+ "test:unit:watch": "vitest"
32
32
  },
33
33
  "dependencies": {
34
+ "@honor-claw/safe-exec": "0.0.1",
34
35
  "http-proxy-agent": "^8.0.0",
35
36
  "https-proxy-agent": "^8.0.0",
36
37
  "jsonwebtoken": "^9.0.3",
37
38
  "nanoid": "^5.1.6",
38
39
  "open": "^11.0.0",
39
40
  "undici": "^7.3.0",
40
- "uuid": "^13.0.0",
41
+ "winreg": "^1.2.5",
41
42
  "ws": "^8.18.0",
42
43
  "zod": "^4.3.6"
43
44
  },
@@ -10,6 +10,7 @@ Search the web and get relevant results optimized for LLM consumption.
10
10
  ## Authentication
11
11
 
12
12
  The script uses OAuth via the Tavily MCP server. **No manual setup required** - on first run, it will:
13
+
13
14
  1. Check for existing tokens in `~/.mcp-auth/`
14
15
  2. If none found, automatically open your browser for OAuth authentication
15
16
 
@@ -18,6 +19,7 @@ The script uses OAuth via the Tavily MCP server. **No manual setup required** -
18
19
  ### Alternative: API Key
19
20
 
20
21
  If you prefer using an API key, get one at https://tavily.com and add to `~/.openclaw/openclaw.json`:
22
+
21
23
  ```json
22
24
  {
23
25
  "env": {
@@ -35,6 +37,7 @@ If you prefer using an API key, get one at https://tavily.com and add to `~/.ope
35
37
  ```
36
38
 
37
39
  **Examples:**
40
+
38
41
  ```bash
39
42
  # Basic search
40
43
  ./scripts/search.sh '{"query": "python async patterns"}'
@@ -87,29 +90,29 @@ POST https://api.tavily.com/search
87
90
 
88
91
  ### Headers
89
92
 
90
- | Header | Value |
91
- |--------|-------|
93
+ | Header | Value |
94
+ | --------------- | ------------------------- |
92
95
  | `Authorization` | `Bearer <TAVILY_API_KEY>` |
93
- | `Content-Type` | `application/json` |
96
+ | `Content-Type` | `application/json` |
94
97
 
95
98
  ### Request Body
96
99
 
97
- | Field | Type | Default | Description |
98
- |-------|------|---------|-------------|
99
- | `query` | string | Required | Search query (keep under 400 chars) |
100
- | `max_results` | integer | 10 | Maximum results (0-20) |
101
- | `search_depth` | string | `"basic"` | `ultra-fast`, `fast`, `basic`, `advanced` |
102
- | `topic` | string | `"general"` | Search topic (general only) |
103
- | `time_range` | string | null | `day`, `week`, `month`, `year` |
104
- | `start_date` | string | null | Return results after this date (`YYYY-MM-DD`) |
105
- | `end_date` | string | null | Return results before this date (`YYYY-MM-DD`) |
106
- | `include_domains` | array | [] | Domains to include (max 300) |
107
- | `exclude_domains` | array | [] | Domains to exclude (max 150) |
108
- | `country` | string | null | Boost results from a specific country (general topic only) |
109
- | `include_raw_content` | boolean | false | Include full page content |
110
- | `include_images` | boolean | false | Include image results |
111
- | `include_image_descriptions` | boolean | false | Include descriptions for images |
112
- | `include_favicon` | boolean | false | Include favicon URL for each result |
100
+ | Field | Type | Default | Description |
101
+ | ---------------------------- | ------- | ----------- | ---------------------------------------------------------- |
102
+ | `query` | string | Required | Search query (keep under 400 chars) |
103
+ | `max_results` | integer | 10 | Maximum results (0-20) |
104
+ | `search_depth` | string | `"basic"` | `ultra-fast`, `fast`, `basic`, `advanced` |
105
+ | `topic` | string | `"general"` | Search topic (general only) |
106
+ | `time_range` | string | null | `day`, `week`, `month`, `year` |
107
+ | `start_date` | string | null | Return results after this date (`YYYY-MM-DD`) |
108
+ | `end_date` | string | null | Return results before this date (`YYYY-MM-DD`) |
109
+ | `include_domains` | array | [] | Domains to include (max 300) |
110
+ | `exclude_domains` | array | [] | Domains to exclude (max 150) |
111
+ | `country` | string | null | Boost results from a specific country (general topic only) |
112
+ | `include_raw_content` | boolean | false | Include full page content |
113
+ | `include_images` | boolean | false | Include image results |
114
+ | `include_image_descriptions` | boolean | false | Include descriptions for images |
115
+ | `include_favicon` | boolean | false | Include favicon URL for each result |
113
116
 
114
117
  ### Response Format
115
118
 
@@ -130,14 +133,15 @@ POST https://api.tavily.com/search
130
133
 
131
134
  ## Search Depth
132
135
 
133
- | Depth | Latency | Relevance | Content Type |
134
- |-------|---------|-----------|--------------|
135
- | `ultra-fast` | Lowest | Lower | NLP summary |
136
- | `fast` | Low | Good | Chunks |
137
- | `basic` | Medium | High | NLP summary |
138
- | `advanced` | Higher | Highest | Chunks |
136
+ | Depth | Latency | Relevance | Content Type |
137
+ | ------------ | ------- | --------- | ------------ |
138
+ | `ultra-fast` | Lowest | Lower | NLP summary |
139
+ | `fast` | Low | Good | Chunks |
140
+ | `basic` | Medium | High | NLP summary |
141
+ | `advanced` | Higher | Highest | Chunks |
139
142
 
140
143
  **When to use each:**
144
+
141
145
  - `ultra-fast`: Real-time chat, autocomplete
142
146
  - `fast`: Need chunks but latency matters
143
147
  - `basic`: General-purpose, balanced
@@ -76,37 +76,46 @@ Before executing any device control operation, you **MUST** consult the correspo
76
76
 
77
77
  ### Available Tool References
78
78
 
79
- | Required Node Caps | Reference File | Tool Description |
80
- | -------------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
81
- | `mobile-data` | `references/mobile-data.md` | 移动数据与流量管理工具。提供对移动数据及流量管理相关功能的综合管理与控制,支持开关移动数据、切换SIM卡、查询流量使用情况/账单/排行、设置流量限额与提醒、控制应用级流量、流量校准及省流量模式等功能。 |
82
- | `hotspot` | `references/hotspot.md` | 个人热点管理工具。提供对个人热点功能的统一管理与控制,支持个人热点的开启与关闭。 |
83
- | `volume` | `references/volume-operate.md` | 设备音量调节与管理工具。提供对设备音量的调节与管理功能,支持音量的设置、调高、调低、开启与关闭,以及当前音量状态的查询;可针对不同应用、不同设备及不同音量类型(如媒体、通话、通知等)进行精细化控制。 |
84
- | `no-disturb` | `references/no-disturb.md` | 免打扰模式管理工具。支持在特定时间段或特定情况下屏蔽来电和通知,减少干扰,提高专注度。提供即时开关、定时设置、联系人例外、应用通知控制等功能。 |
85
- | `screen-record` | `references/screen-record.md` | 设备屏幕录制管理与控制工具。提供对设备屏幕录制功能的管理与控制能力,支持对屏幕录制功能的开启与关闭、相关录制参数的设置、当前录制状态的查询,并可结合指定应用对其在特定应用场景下的录制行为进行管理。 |
86
- | `quiet-mode` | `references/quiet-mode.md` | 设备静音模式管理与控制工具。提供对设备静音模式的管理与控制能力,支持静音模式的开启与关闭、当前状态的查询、静音持续时间的设置,以及结合指定应用或设备进行声音控制。 |
87
- | `ringing-mode` | `references/ringing-mode.md` | 响铃模式管理工具。提供对系统响铃模式的管理与控制能力,支持对响铃模式的开启与关闭、相关行为的设置以及当前状态的查询,并可结合指定应用对其在响铃模式下的表现进行管理。 |
88
- | `vibration-mode` | `references/vibration-mode.md` | 系统震动反馈管理与控制工具。提供对系统震动反馈功能的统一管理与控制能力,支持震动模式的设置、状态查询、打开与关闭,并可分别管理静音状态下震动、响铃状态下震动,以及在点击导航栏或设备解锁等交互场景中的震动反馈。 |
89
- | `capture-screenshot` | `references/capture-screenshot.md` | 截屏功能管理与触发工具。提供对截屏功能的管理与触发能力,支持将当前手机屏幕内容以图片的形式保存,包括普通截屏和滚动截屏等操作。 |
90
- | `app` | `references/app-open.md` | 应用打开工具。用于帮助用户打开指定的 APP 应用,且不涉及任何具体 App 内部操作。 |
91
- | `app` | `references/app-close.md` | 应用关闭工具。用于帮助用户关闭指定的 APP 应用,且不涉及任何具体 App 内部操作。 |
92
- | `contact` | `references/contact-search.md` | 联系人查找服务工具。提供按姓名、昵称、电话号码检索联系人的能力,支持区分自然人名与机构/黄页条目,可处理模糊匹配、多结果列表展示及序号选择场景。 |
93
- | `call` | `references/call-phone.md` | 智能电话拨打与管理工具。提供全面的电话呼叫功能,支持通过姓名、电话号码或黄页服务发起呼叫;支持指定拨号使用的SIM卡(移动/联通/电信/卡槽);具备重拨最后号码、回拨已接听来电、回拨未接听来电及通用回拨功能。 |
94
- | `call` | `references/call-search.md` | 提供查看通话记录(全部、未接听、已接听,或按联系人筛选)服务。 |
95
- | `message` | `references/message-send.md` | 提供发送短信的服务。支持通过电话号码或联系人名称发送短信内容,可使用黄页发送短信至公共服务号码,以及发送名片信息给指定联系人。 |
96
- | `message` | `references/message-search.md` | 短信查询工具。用于查询设备上的短信记录,支持按联系人、电话号码或短信内容检索。当用户询问"查看/查询/搜索短信"等意图时调用。 |
97
- | `local-search` | `references/local-search.md` | 查询手机文档、笔记、日程、图库、yoyo记忆、钱包等 |
98
- | `file-upload` | `references/file-upload.md` | 文件上传工具。用于将本地文件上传到指定位置。当用户明确提供文件路径时直接调用;当用户仅描述文件(如"某文件"、"某照片")时,需先调用 local-search 查询获取文件路径,再执行上传。 |
99
- | `alarm` | `references/alarm-create.md` | 闹钟创建工具。用于创建闹钟,当用户明确创建/定一个闹钟时,属于创建闹钟。 |
100
- | `alarm` | `references/alarm-query.md` | 闹钟查询工具。用于查询已创建的闹钟列表,支持按时间、标题、重复类型等多维度筛选。 |
101
- | `alarm` | `references/alarm-delete.md` | 闹钟删除工具。用于永久删除已创建的闹钟,支持批量删除多个闹钟。 |
102
- | `alarm` | `references/alarm-disable.md` | 闹钟关闭工具。用于禁用已创建的闹钟,支持批量关闭多个闹钟。 |
103
- | `alarm` | `references/alarm-enable.md` | 闹钟打开工具。用于启用已创建的闹钟,支持批量打开多个闹钟。 |
104
- | `schedule` | `references/schedule-create.md` | 日程创建工具。用于在设备上创建新的日程安排,支持设置具体时间、日期和日程内容。当用户询问"创建/添加/新建日程"等意图时调用。用于创建日程的工具。当用户意图涉及添加日程/安排时,属于创建日程。 |
105
- | `schedule` | `references/schedule-search.md` | 日程查询工具。用于查询设备上已创建的日程安排,支持按时间、内容等多维度检索。 当用户询问"查看/查询/搜索日程"等意图时调用。用于搜索日程的工具。当用户意图涉及查找日程/安排时,属于查询日程。 |
106
- | `schedule` | `references/schedule-delete.md` | 日程删除工具。用于删除设备上已创建的日程安排,支持删除指定日程。当用户询问"删除/移除/取消日程"等意图时调用。用于删除日程的工具。当用户意图涉及移除日程/安排时,属于删除日程。 |
107
- | `schedule` | `references/schedule-update.md` | 日程编辑修改工具。用于修改设备上已创建日程的属性,支持修改时间、内容、地点等。当用户询问"修改/编辑/更改日程"等意图时调用。用于更新日程的工具。当用户意图涉及修改日程/安排属性时,属于编辑修改日程。 |
108
- | `wlan` | `references/wlan.md` | WLAN(无线网络、WiFi)管理工具。提供对WLAN及其相关能力的统一管理与控制,支持WLAN的开启与关闭、参数设置与状态查询,并可对WLAN使用的流量与流量提醒进行管理。 |
109
- | `bluetooth` | `references/bluetooth.md` | 蓝牙设备管理工具。提供蓝牙设备的统一管理与控制,支持蓝牙的打开/关闭、参数设置、状态查询、设备搜索与配对,并能管理已接收的蓝牙文件。 |
79
+ | Required Node Caps | Reference File | Tool Description |
80
+ | --------------------- | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
81
+ | `mobile-data` | `references/mobile-data.md` | 移动数据与流量管理工具。提供对移动数据及流量管理相关功能的综合管理与控制,支持开关移动数据、切换SIM卡、查询流量使用情况/账单/排行、设置流量限额与提醒、控制应用级流量、流量校准及省流量模式等功能。 |
82
+ | `hotspot` | `references/hotspot.md` | 个人热点管理工具。提供对个人热点功能的统一管理与控制,支持个人热点的开启与关闭。 |
83
+ | `volume` | `references/volume-operate.md` | 设备音量调节与管理工具。提供对设备音量的调节与管理功能,支持音量的设置、调高、调低、开启与关闭,以及当前音量状态的查询;可针对不同应用、不同设备及不同音量类型(如媒体、通话、通知等)进行精细化控制。 |
84
+ | `no-disturb` | `references/no-disturb.md` | 免打扰模式管理工具。支持在特定时间段或特定情况下屏蔽来电和通知,减少干扰,提高专注度。提供即时开关、定时设置、联系人例外、应用通知控制等功能。 |
85
+ | `screen-record` | `references/screen-record.md` | 设备屏幕录制管理与控制工具。提供对设备屏幕录制功能的管理与控制能力,支持对屏幕录制功能的开启与关闭、相关录制参数的设置、当前录制状态的查询,并可结合指定应用对其在特定应用场景下的录制行为进行管理。 |
86
+ | `quiet-mode` | `references/quiet-mode.md` | 设备静音模式管理与控制工具。提供对设备静音模式的管理与控制能力,支持静音模式的开启与关闭、当前状态的查询、静音持续时间的设置,以及结合指定应用或设备进行声音控制。 |
87
+ | `ringing-mode` | `references/ringing-mode.md` | 响铃模式管理工具。提供对系统响铃模式的管理与控制能力,支持对响铃模式的开启与关闭、相关行为的设置以及当前状态的查询,并可结合指定应用对其在响铃模式下的表现进行管理。 |
88
+ | `vibration-mode` | `references/vibration-mode.md` | 系统震动反馈管理与控制工具。提供对系统震动反馈功能的统一管理与控制能力,支持震动模式的设置、状态查询、打开与关闭,并可分别管理静音状态下震动、响铃状态下震动,以及在点击导航栏或设备解锁等交互场景中的震动反馈。 |
89
+ | `capture-screenshot` | `references/capture-screenshot.md` | 截屏功能管理与触发工具。提供对截屏功能的管理与触发能力,支持将当前手机屏幕内容以图片的形式保存,包括普通截屏和滚动截屏等操作。 |
90
+ | `app` | `references/app-open.md` | 应用打开工具。用于帮助用户打开指定的 APP 应用,且不涉及任何具体 App 内部操作。 |
91
+ | `app` | `references/app-close.md` | 应用关闭工具。用于帮助用户关闭指定的 APP 应用,且不涉及任何具体 App 内部操作。 |
92
+ | `contact` | `references/contact-search.md` | 联系人查找服务工具。提供按姓名、昵称、电话号码检索联系人的能力,支持区分自然人名与机构/黄页条目,可处理模糊匹配、多结果列表展示及序号选择场景。 |
93
+ | `call` | `references/call-phone.md` | 智能电话拨打与管理工具。提供全面的电话呼叫功能,支持通过姓名、电话号码或黄页服务发起呼叫;支持指定拨号使用的SIM卡(移动/联通/电信/卡槽);具备重拨最后号码、回拨已接听来电、回拨未接听来电及通用回拨功能。 |
94
+ | `call` | `references/call-search.md` | 提供查看通话记录(全部、未接听、已接听,或按联系人筛选)服务。 |
95
+ | `message` | `references/message-send.md` | 提供发送短信的服务。支持通过电话号码或联系人名称发送短信内容,可使用黄页发送短信至公共服务号码,以及发送名片信息给指定联系人。 |
96
+ | `message` | `references/message-search.md` | 短信查询工具。用于查询设备上的短信记录,支持按联系人、电话号码或短信内容检索。当用户询问"查看/查询/搜索短信"等意图时调用。 |
97
+ | `local-search` | `references/local-search.md` | 查询手机文档、笔记、日程、图库、yoyo记忆、钱包等 |
98
+ | `file-upload` | `references/file-upload.md` | 文件上传工具。用于将本地文件上传到指定位置。当用户明确提供文件路径时直接调用;当用户仅描述文件(如"某文件"、"某照片")时,需先调用 local-search 查询获取文件路径,再执行上传。 |
99
+ | `alarm` | `references/alarm-create.md` | 闹钟创建工具。用于创建闹钟,当用户明确创建/定一个闹钟时,属于创建闹钟。 |
100
+ | `alarm` | `references/alarm-query.md` | 闹钟查询工具。用于查询已创建的闹钟列表,支持按时间、标题、重复类型等多维度筛选。 |
101
+ | `alarm` | `references/alarm-delete.md` | 闹钟删除工具。用于永久删除已创建的闹钟,支持批量删除多个闹钟。 |
102
+ | `alarm` | `references/alarm-disable.md` | 闹钟关闭工具。用于禁用已创建的闹钟,支持批量关闭多个闹钟。 |
103
+ | `alarm` | `references/alarm-enable.md` | 闹钟打开工具。用于启用已创建的闹钟,支持批量打开多个闹钟。 |
104
+ | `schedule` | `references/schedule-create.md` | 日程创建工具。用于在设备上创建新的日程安排,支持设置具体时间、日期和日程内容。当用户询问"创建/添加/新建日程"等意图时调用。用于创建日程的工具。当用户意图涉及添加日程/安排时,属于创建日程。 |
105
+ | `schedule` | `references/schedule-search.md` | 日程查询工具。用于查询设备上已创建的日程安排,支持按时间、内容等多维度检索。 当用户询问"查看/查询/搜索日程"等意图时调用。用于搜索日程的工具。当用户意图涉及查找日程/安排时,属于查询日程。 |
106
+ | `schedule` | `references/schedule-delete.md` | 日程删除工具。用于删除设备上已创建的日程安排,支持删除指定日程。当用户询问"删除/移除/取消日程"等意图时调用。用于删除日程的工具。当用户意图涉及移除日程/安排时,属于删除日程。 |
107
+ | `schedule` | `references/schedule-update.md` | 日程编辑修改工具。用于修改设备上已创建日程的属性,支持修改时间、内容、地点等。当用户询问"修改/编辑/更改日程"等意图时调用。用于更新日程的工具。当用户意图涉及修改日程/安排属性时,属于编辑修改日程。 |
108
+ | `wlan` | `references/wlan.md` | WLAN(无线网络、WiFi)管理工具。提供对WLAN及其相关能力的统一管理与控制,支持WLAN的开启与关闭、参数设置与状态查询,并可对WLAN使用的流量与流量提醒进行管理。 |
109
+ | `bluetooth` | `references/bluetooth.md` | 蓝牙设备管理工具。提供蓝牙设备的统一管理与控制,支持蓝牙的打开/关闭、参数设置、状态查询、设备搜索与配对,并能管理已接收的蓝牙文件。 |
110
+ | `location-service` | `references/location-service.md` | 设备定位服务管理工具。支持开启/关闭定位、设置相关权限或策略,并查询当前定位服务状态。 |
111
+ | `nfc` | `references/nfc.md` | 设备 NFC 管理与控制工具。支持开启/关闭、设置使用策略与参数、查询当前状态,以及基于 NFC 的刷卡感应操作。 |
112
+ | `usb-shared-network` | `references/usb-shared-network.md` | 统一管理与控制 USB 共享网络功能,支持开启/关闭、参数设置与状态查询,可结合指定应用进行操作。 |
113
+ | `eyecomfort` | `references/eye-comfort.md` | 护眼模式与视觉健康功能管理工具。支持开启/关闭、设置、查询与定时控制,并可独立管理助眠显示、干眼友好、视力舒缓、自然色彩显示及照明闪烁检测。 |
114
+ | `brightness` | `references/brightness.md` | 屏幕亮度管理工具。支持开启/关闭、调高/调低、设定指定亮度值、查询当前亮度与自动调节状态,并可管理自动调节亮度功能。 |
115
+ | `dark-mode` | `references/dark-mode.md` | 深色模式管理工具。支持开启、关闭、设置与查询,并可按指定应用执行操作,提升夜间或弱光环境下的观看舒适度。 |
116
+ | `device-operation` | `references/device-operation.md` | 设备电源与屏幕控制工具,支持开机、关机、重启、待机、休眠、灭屏、亮屏、锁屏等操作,并可结合定时、二次确认与指定应用执行。 |
117
+ | `status-bar-show` | `references/status-bar-show.md` | 状态栏显示统一管理工具。支持对运营商名称、实时网速、流量、通知与纯净模式进行开启、关闭、设置与查询,并可结合指定应用执行显示策略。 |
118
+ | `autoscreen-onnotice` | `references/autoscreen-onnotice.md` | 管理收到通知时自动亮屏功能。支持开启/关闭、进入设置、查询当前状态,并可按指定应用进行精细化控制。 |
110
119
 
111
120
  ### Command and Parameters Construction Workflow
112
121
 
@@ -177,7 +186,6 @@ Execute the following steps **in strict order** for each operation to construct
177
186
 
178
187
  当用户提出重复的请求,直接执行,不能质疑用户。
179
188
 
180
-
181
189
  ### 3.2 查询类请求的特殊处理
182
190
 
183
191
  **场景定义**:用户在访问查询类的请求,比如查询我的手机是否是静音模式
@@ -208,8 +216,6 @@ Execute the following steps **in strict order** for each operation to construct
208
216
  其中,特殊指令,包含查询闹钟/查询日程/查短信/查联系人/查通讯录,这些根据查询的具体返回结果进行交互。
209
217
  除了上述特殊查询,都回复用户“好的”。
210
218
 
211
-
212
-
213
219
  ## Step 4. Invoke Node With Command and Parameters
214
220
 
215
221
  **Command**:
@@ -439,7 +439,7 @@ cmd /c 'openclaw nodes invoke --node <ID> --command alarm.create --params "{\"ti
439
439
 
440
440
  ```bash
441
441
  openclaw nodes invoke --node <ID> --command alarm.create --params '{"time":"T18:00:00","realRepeatType":4,"daysOfWeek":0,"specialTimeMillis":0,"skipHoliday":false}'
442
- ````
442
+ ```
443
443
 
444
444
  ---
445
445
 
@@ -123,9 +123,9 @@ app.close
123
123
 
124
124
  ## 回复语规则
125
125
 
126
- | 执行结果 | 回复语 |
127
- | :------- | :----- |
128
- | **成功** | "好的" |
126
+ | 执行结果 | 回复语 |
127
+ | :------- | :--------------------------------------------------------------------------------- |
128
+ | **成功** | "好的" |
129
129
  | **失败** | 根据返回的错误信息输出具体原因,如:"关闭失败,应用未运行"、"关闭失败,权限不足"等 |
130
130
 
131
131
  ## Query 示例及输出
@@ -122,9 +122,9 @@ app.open
122
122
 
123
123
  ## 回复语规则
124
124
 
125
- | 执行结果 | 回复语 |
126
- | :------- | :----- |
127
- | **成功** | "好的" |
125
+ | 执行结果 | 回复语 |
126
+ | :------- | :--------------------------------------------------------------------------------- |
127
+ | **成功** | "好的" |
128
128
  | **失败** | 根据返回的错误信息输出具体原因,如:"打开失败,应用未安装"、"打开失败,权限不足"等 |
129
129
 
130
130
  ## Query 示例及输出
@@ -301,6 +301,7 @@ openclaw nodes invoke --node <ID> --command app.open --params '{"app":"抖音短
301
301
  **用户输入**: "打开网易云音乐"
302
302
 
303
303
  **查找流程**:
304
+
304
305
  1. 高频应用表:未找到
305
306
  2. 查询 references/app_name_to_pkgName.md 知识库
306
307
  3. 若知识库中找到:pkgName = "com.netease.cloudmusic"
@@ -325,9 +326,9 @@ openclaw nodes invoke --node <ID> --command app.open --params '{"app":"抖音短
325
326
  **用户输入**: "打开某某小众应用"
326
327
 
327
328
  **查找流程**:
329
+
328
330
  1. 高频应用表:未找到
329
331
  2. 查询 references/app_name_to_pkgName.md 知识库:未找到
330
332
  3. 网络搜索:未找到
331
333
 
332
334
  **回复用户**: "暂时找不到这个app,请提供应用包名或确认应用名称。"
333
- ```