@honor-claw/yoyo 1.6.0-beta.1 โ 1.6.0-beta.3
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/dist/modules/configs/config-manager.mjs +1 -1
- package/package.json +1 -1
- package/skills/yoyo-control/SKILL.md +1 -0
- package/skills/yoyo-control/configs/sub-skills.json +2 -1
- package/skills/yoyo-control/references/local-search.md +66 -0
- package/skills/yoyo-control/references/task-result-query.md +59 -0
|
@@ -7,7 +7,7 @@ import { useClawLogger as a } from "../../utils/logger.mjs";
|
|
|
7
7
|
import { detectProvidersToRename as o, updateProviderReferences as s } from "./provider.mjs";
|
|
8
8
|
import { STATE_FLAG as c, hasPersistedStateFlag as l, markPersistedStateFlag as u } from "./state-flags.mjs";
|
|
9
9
|
//#region src/modules/configs/config-manager.ts
|
|
10
|
-
var d = "yoyo", f = /* @__PURE__ */ "alarm.create,alarm.delete,alarm.disable,alarm.enable,alarm.query,alarm.update,app.close,app.open,call.phone,call.search,capture-screenshot,contact.search,file-upload,hotspot,local-search,message.search,message.send,mobile-data,no-disturb,quiet-mode,ringing-mode,schedule.create,schedule.delete,schedule.search,schedule.update,screen-record,vibration-mode,volume.operate,wlan,bluetooth,location-service,nfc,usb-shared-network,eyecomfort,status-bar-show,brightness,autoscreen-onnotice,dark-mode,device-operation,camera,app.uninstall,audio-record,battery,gui.create,gui.pause,gui.terminate,mcp.tool.call".split(","), p = class {
|
|
10
|
+
var d = "yoyo", f = /* @__PURE__ */ "alarm.create,alarm.delete,alarm.disable,alarm.enable,alarm.query,alarm.update,app.close,app.open,call.phone,call.search,capture-screenshot,contact.search,file-upload,hotspot,local-search,message.search,message.send,mobile-data,no-disturb,quiet-mode,ringing-mode,schedule.create,schedule.delete,schedule.search,schedule.update,screen-record,vibration-mode,volume.operate,wlan,bluetooth,location-service,nfc,usb-shared-network,eyecomfort,status-bar-show,brightness,autoscreen-onnotice,dark-mode,device-operation,camera,app.uninstall,audio-record,battery,gui.create,gui.pause,gui.terminate,mcp.tool.call,task_result_query".split(","), p = class {
|
|
11
11
|
loadConfig() {
|
|
12
12
|
try {
|
|
13
13
|
return t().config.loadConfig();
|
package/package.json
CHANGED
|
@@ -108,6 +108,7 @@ metadata: { "openclaw": { "emoji": "๐ฑ", "always": true } }
|
|
|
108
108
|
| `message` | `references/message-send.md` | ๅ้็ญไฟก |
|
|
109
109
|
| `message` | `references/message-search.md` | ็ญไฟกๆฅ่ฏข |
|
|
110
110
|
| `local-search` | `references/local-search.md` | ๆฌๅฐๆ็ดข๏ผๆๆกฃใ็ฌ่ฎฐใๆฅ็จใๅพๅบ็ญ๏ผ |
|
|
111
|
+
| `task-result-query` | `references/task-result-query.md` | ไปปๅก็ปๆๆฅ่ฏข๏ผ่ฝฎ่ฏข่ทๅๅผๆญฅไปปๅก็ปๆ๏ผ |
|
|
111
112
|
| `file-upload` | `references/file-upload.md` | ๆไปถไธไผ |
|
|
112
113
|
| `alarm` | `references/alarm-create.md` | ๅๅปบ้น้ |
|
|
113
114
|
| `alarm` | `references/alarm-query.md` | ๆฅ่ฏข้น้ |
|
|
@@ -14,6 +14,66 @@ description: >
|
|
|
14
14
|
local-search
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
### ่พๅบ
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"task_id": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "ไปปๅกID๏ผ็จไบๅ็ปญๆฅ่ฏขไปปๅกๆง่ก็ปๆ"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Step 2: ่ทๅไปปๅก็ปๆ
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
task_result_query
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### ่พๅ
ฅ (task_result_query)
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"task_id": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "local-search ่ฟๅ็ไปปๅกID"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### ่พๅบ (task_result_query)
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"answer": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "ๅทฅๅ
ทๆง่ก็ๆๆฐ็ปๆ"
|
|
52
|
+
},
|
|
53
|
+
"isFinal": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "ไปปๅกๆฏๅฆๆง่กๅฎๆ๏ผtrue ่กจ็คบๅฎๆ๏ผfalse ่กจ็คบไปๅจๆง่กไธญ"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### ๅฎๆด่ฐ็จๆต็จ
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
64
|
+
โ Step 1: ่ฐ็จ local-search โ
|
|
65
|
+
โ - ่พๅ
ฅ: query, isSearchImage โ
|
|
66
|
+
โ - ่พๅบ: task_id โ
|
|
67
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
68
|
+
โ
|
|
69
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
70
|
+
โ Step 2: ่ฝฎ่ฏข task_result_query โ
|
|
71
|
+
โ - ่พๅ
ฅ: task_id โ
|
|
72
|
+
โ - ่พๅบ: answer, isFinal โ
|
|
73
|
+
โ - ๅพช็ฏ่ฐ็จ็ดๅฐ isFinal = true โ
|
|
74
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
75
|
+
```
|
|
76
|
+
|
|
17
77
|
## ้ๆๅทฅไฝๆต
|
|
18
78
|
|
|
19
79
|
### Step 1: ๆๅพ่งฃๆไธๅๆฐ็ป่ฃ
|
|
@@ -46,6 +106,12 @@ local-search
|
|
|
46
106
|
- Windows: Cmd ๆ ผๅผ๏ผๅๅผๅท้่ฝฌไน๏ผ
|
|
47
107
|
- Linux: Bash ๆ ผๅผ๏ผๅๅผๅทๅ
่ฃน๏ผ
|
|
48
108
|
|
|
109
|
+
### Step 3: ่ทๅไปปๅก็ปๆ
|
|
110
|
+
|
|
111
|
+
- ไฝฟ็จ local-search ่ฟๅ็ task_id
|
|
112
|
+
- ่ฐ็จ task_result_query ่ฝฎ่ฏข่ทๅ็ปๆ
|
|
113
|
+
- ๅฝ isFinal = false ๆถ็ปง็ปญ่ฝฎ่ฏข๏ผๅฝ isFinal = true ๆถ่ฟๅๆ็ป็ปๆ
|
|
114
|
+
|
|
49
115
|
## ๆฐๆฎ่ๅด
|
|
50
116
|
|
|
51
117
|
| ไฟกๆบ | ่ฏดๆ |
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: task-result-query
|
|
3
|
+
description: >
|
|
4
|
+
่ฝฎ่ฏขๆฅ่ฏขไปปๅกๆง่ก็ปๆใ้่ฟ task_id ๆฅ่ฏขๅผๆญฅไปปๅก็ๆง่ก็ถๆๅ็ปๆ๏ผ
|
|
5
|
+
็จไบ่ทๅ local-search ็ญๅผๆญฅๅทฅๅ
ท็ๆง่ก็ปๆใ
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Task Result Query ไปปๅก็ปๆๆฅ่ฏข
|
|
9
|
+
|
|
10
|
+
## Tool Command
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
task_result_query
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## ่พๅ
ฅ
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"task_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "local-search ่ฟๅ็ไปปๅกID๏ผ็จไบๆฅ่ฏขไปปๅกๆง่ก็ปๆ"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## ่พๅบ
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"answer": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "ๅทฅๅ
ทๆง่ก็ๆๆฐ็ปๆๅ
ๅฎน"
|
|
34
|
+
},
|
|
35
|
+
"isFinal": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"description": "ไปปๅกๆฏๅฆๆง่กๅฎๆ๏ผtrue ่กจ็คบๅทฒๅฎๆ๏ผfalse ่กจ็คบไปๅจๆง่กไธญ"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## ไฝฟ็จ่ฏดๆ
|
|
43
|
+
|
|
44
|
+
1. ๅ
่ฐ็จ local-search ่ทๅ task_id
|
|
45
|
+
2. ไฝฟ็จ task_id ่ฐ็จๆฌๅทฅๅ
ทๆฅ่ฏข็ปๆ
|
|
46
|
+
3. ๅฝ isFinal = false ๆถ็ปง็ปญ่ฝฎ่ฏข๏ผๅปบ่ฎฎ้ด้ 1-2 ็ง๏ผ
|
|
47
|
+
4. ๅฝ isFinal = true ๆถ่ฟๅๆ็ป็ปๆ
|
|
48
|
+
|
|
49
|
+
## Windows (Cmd) ๆง่กๅฝไปค
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
cmd /c 'openclaw nodes invoke --node <ID> --command task_result_query --params "{\"task_id\":\"<task_id>\"}"'
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Linux (Bash) ๆง่กๅฝไปค
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
openclaw nodes invoke --node <ID> --command task_result_query --params '{"task_id":"<task_id>"}'
|
|
59
|
+
```
|