oc-browser-relay 1.0.16 → 1.0.17
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.
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
],
|
|
203
203
|
"inputStrategy": {
|
|
204
204
|
"mode": "file_upload",
|
|
205
|
-
"waitForUploadComplete":
|
|
205
|
+
"waitForUploadComplete": true,
|
|
206
206
|
"removeSelectors": [
|
|
207
207
|
"[class*='delete']",
|
|
208
208
|
"[class*='remove']"
|
|
@@ -225,6 +225,9 @@
|
|
|
225
225
|
"video[src][loop]",
|
|
226
226
|
"#phoneText"
|
|
227
227
|
],
|
|
228
|
+
"successLocators": [
|
|
229
|
+
"video[src][loop]"
|
|
230
|
+
],
|
|
228
231
|
"uploadingSelectors": [
|
|
229
232
|
"[class*='uploading']",
|
|
230
233
|
"[class*='loading']",
|
|
@@ -64,6 +64,10 @@
|
|
|
64
64
|
"name": "set_cover",
|
|
65
65
|
"tool": "trigger_action",
|
|
66
66
|
"preconditions": [
|
|
67
|
+
{
|
|
68
|
+
"type": "field_upload_complete",
|
|
69
|
+
"fieldId": "video"
|
|
70
|
+
},
|
|
67
71
|
{
|
|
68
72
|
"type": "element_visible",
|
|
69
73
|
"selector": "video[src][loop]"
|
|
@@ -80,6 +84,7 @@
|
|
|
80
84
|
{
|
|
81
85
|
"nodeId": "confirm_cover",
|
|
82
86
|
"name": "confirm_cover",
|
|
87
|
+
"optional": true,
|
|
83
88
|
"tool": "trigger_action",
|
|
84
89
|
"preconditions": [
|
|
85
90
|
{
|
|
@@ -91,6 +96,15 @@
|
|
|
91
96
|
"action": "confirmCoverPicker"
|
|
92
97
|
}
|
|
93
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"nodeId": "wait_cover_settle",
|
|
101
|
+
"name": "wait_cover_settle",
|
|
102
|
+
"tool": "wait",
|
|
103
|
+
"args": {
|
|
104
|
+
"delayMs": 5000,
|
|
105
|
+
"message": "等待封面设置完成"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
94
108
|
{
|
|
95
109
|
"nodeId": "submit_publish",
|
|
96
110
|
"name": "submit_publish",
|
|
@@ -99,10 +113,6 @@
|
|
|
99
113
|
{
|
|
100
114
|
"type": "field_non_empty",
|
|
101
115
|
"fieldId": "title"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"type": "text_not_visible",
|
|
105
|
-
"value": "封面检测中"
|
|
106
116
|
}
|
|
107
117
|
],
|
|
108
118
|
"args": {
|
package/package.json
CHANGED
|
@@ -85,6 +85,7 @@ description: 通过本地 ChromeAgent Relay 的 OpenClaw 插件工具采集淘
|
|
|
85
85
|
- `url` 一律使用用户原始输入,不做任何规范化或重写
|
|
86
86
|
- 用户明确说“只抓详情”“不要评论”时,传 `targetCommentCount=0`
|
|
87
87
|
- “获取 SKU”“看 SKU”“SKU 信息”都属于商品详情采集,不是单独工具,不额外切到问大家或评论意图
|
|
88
|
+
- 用户明确说“获取 SKU”“看 SKU”“规格”“商品规格”时,按详情采集处理,并传 `targetCommentCount=0`
|
|
88
89
|
- 用户明确说“多抓一些评价”时,`targetCommentCount` 建议传 200
|
|
89
90
|
- 用户明确要求“详情+评论+问大家”时,传 `includeAskAnswers=true`
|
|
90
91
|
- 只有在 `includeAskAnswers=true` 时才传 `targetAskAnswerCount`
|
|
@@ -121,6 +122,7 @@ description: 通过本地 ChromeAgent Relay 的 OpenClaw 插件工具采集淘
|
|
|
121
122
|
|
|
122
123
|
- 默认不要把评论/评价和问大家混在一起;只有用户明确要求,或显式传了 `includeAskAnswers=true`,才在 `taobao_collect_product` 后继续采问大家
|
|
123
124
|
- 用户明确说“只抓详情”“只看详情不要评论”时,使用 `taobao_collect_product`,并传 `targetCommentCount=0`
|
|
125
|
+
- 用户明确说“获取 SKU”“看 SKU”“规格”“商品规格”时,使用 `taobao_collect_product`,并传 `targetCommentCount=0`
|
|
124
126
|
- 用户明确说“问大家”“商品问答”“问答”时,必须使用 `taobao_collect_ask_answers`;不要改成 `taobao_collect_product`,也不要抓评价/评论代替问大家
|
|
125
127
|
- 用户明确说“评价”“评论”时,才使用 `taobao_collect_product`;不要把评价需求解释成问大家
|
|
126
128
|
- 用户明确说“SKU”“规格”“商品规格”时,按商品详情处理;不要把 SKU 当成独立采集类型
|