@roll-agent/browser-use-agent 0.17.0 → 0.18.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.
package/SKILL.md CHANGED
@@ -211,8 +211,8 @@ click_ref(@eN) 或 type_ref(@eN, text, clear?)
211
211
  | `zhipin_read_messages(limit?, onlyUnread?, sortBy?, autoScroll?, maxScrolls?)` | native CDP | 读取消息列表;默认 `autoScroll=true`,按 `conversationId` 去重。 |
212
212
  | `zhipin_open_chat_page(forceReload?, browserActionApproval?)` | native CDP | 点击左侧导航切回「沟通」;`forceReload:true` 时只对当前沟通页执行 `Page.reload` 做长跑恢复,返回 `usedReload`;若实时页面已不是沟通页,会跳过 reload 并返回 `reloadSkippedReason`。 |
213
213
  | `zhipin_open_chat(conversationId?, candidateName?, index?, preferUnread?)` | native CDP | 打开目标聊天;匹配优先级为 `conversationId` > `candidateName` > `index`。 |
214
- | `zhipin_get_candidate_info(conversationId?, candidateName?, index?, maxMessages?)` | native CDP | 提取候选人资料、聊天记录、`conversationId`、`candidateId`、页面职位信号和结构化地点证据 `locationSignals`。 |
215
- | `zhipin_generate_reply_preview(conversationId?, candidateName?, index?, maxMessages?, reasoning?)` | native CDP | 读取聊天上下文,抽取 `locationSignals` 并透传给 Reply Authority SSE 流式生成回复,在浏览器内展示阶段与临时草稿;可用 `reasoning` 控制是否请求 thinking/reasoning;返回 `preparedReplyId`,不返回 `signedEnvelope`。 |
214
+ | `zhipin_get_candidate_info(conversationId?, candidateName?, index?, maxMessages?)` | native CDP | 提取候选人资料、聊天记录、`conversationId`、`candidateId` 和页面职位信号;成功后自动触发 Reply Authority 回复上下文预热(fire-and-forget,失败静默)。输出中的 `locationSignals` 已废弃,恒为空数组。 |
215
+ | `zhipin_generate_reply_preview(conversationId?, candidateName?, index?, maxMessages?, reasoning?)` | native CDP | 读取聊天上下文并透传给 Reply Authority SSE 流式生成回复;地点证据由服务端 turn_planning 合并提取并经 `location.resolved` 事件回显;浏览器内展示阶段、临时草稿与时延摘要(含预热命中标记);可用 `reasoning` 控制是否请求 thinking/reasoning;返回 `preparedReplyId`,不返回 `signedEnvelope`。 |
216
216
  | `zhipin_send_prepared_reply(preparedReplyId, toolActionApproval?, browserActionApproval?)` | native CDP | 发送 `zhipin_generate_reply_preview` 生成的预备回复;内部取回并验签 envelope;若 `BROWSER_USE_POLICY_JSON.tools.zhipin_send_prepared_reply.policy="confirm"`,首次调用返回 `needs_confirmation`,确认后带 `toolActionApproval` 重试;若同时启用 `BROWSER_SECURITY_JSON.actionPolicy="confirm"`,还需按返回的 `browserActionApproval` 再次重试。 |
217
217
  | `zhipin_exchange_wechat(conversationId?, candidateName?, index?)` | native CDP | 点击「换微信」和确认弹窗,优先按 `conversationId` 定位聊天。 |
218
218
  | `zhipin_get_username()` | native CDP | 读取当前登录招聘者用户名;用于 `recruiterUsername` / `recruiterBinding` 链路。 |
@@ -253,8 +253,8 @@ click_ref(@eN) 或 type_ref(@eN, text, clear?)
253
253
  7. `zhipin_send_prepared_reply` 会校验 envelope 的 `conversationId + candidateId + recruiterBinding`,当前页面目标或招聘者不一致时拒绝。
254
254
  8. 需要更强推理时,可给 `zhipin_generate_reply_preview` 传 `reasoning:{enabled:true, effort:"low"|"medium"|"high", scope:"reply"|"all"}`;不传则沿用 Reply Authority Service 默认策略。
255
255
  9. `preferredBrand` 只来自 `zhipin_get_candidate_info` 对 `communicationPosition` 的连字符格式解析;不要用通用岗位名或候选人公司名伪造。
256
- 10. `locationSignals` `zhipin_get_candidate_info` / `zhipin_generate_reply_preview` 在读取聊天记录后自动抽取并透传;orchestrator 不要自行伪造或改写。`candidateInfo.expectedLocation` 只是城市/区域弱信号,不能替代候选人本轮追问的具体 POI(地铁站、商圈、道路附近等)。
257
- 11. browser-use 只输出地点文本证据,不调用外部地图、不做 geocode、不计算门店距离;地理解析与岗位/门店匹配由下游 Reply Authority 消费 `locationSignals` 后执行。
256
+ 10. 地点证据由 Reply Authority 服务端在 turn_planning 阶段从原始对话中提取并逐字校验;orchestrator 不要自行构造 `locationSignals`(请求字段已废弃),也不要依赖 `zhipin_get_candidate_info` 输出中的 `locationSignals`(恒为空数组,仅为兼容保留)。`candidateInfo.expectedLocation` 只是城市/区域弱信号,不能替代候选人本轮追问的具体 POI
257
+ 11. browser-use 只上送原始对话与候选人资料文本,不抽取地点、不调用外部地图、不做 geocode、不计算门店距离;地理解析与岗位/门店匹配全部由 Reply Authority 服务端执行。
258
258
  12. 推荐页岗位筛选优先调用 `zhipin_list_recommend_jobs()`;若返回 `canSwitch:false`,说明当前账号/页面没有可切换目标,不要继续盲试岗位名。
259
259
  13. `jobRef` 来自 `zhipin_list_recommend_jobs` 输出,格式如 `@j1`;选择岗位时优先传 `zhipin_select_recommend_job({ jobRef })`。
260
260
  14. `jobRef` 只对最近一次岗位下拉快照有意义;筛选、搜索、刷新或页面重开后先重新调用 `zhipin_list_recommend_jobs`。
@@ -301,6 +301,6 @@ zhipin_open_recommend_page
301
301
  ## 参考资料
302
302
 
303
303
  - `references/zhipin-diagnostics.md`:BOSS native CDP / attach 诊断阶段、推进顺序和返回字段。
304
- - `references/zhipin-workflows.md`:聊天主键、动态列表、`preferredBrand`、`locationSignals`、Reply Authority 编排细节。
304
+ - `references/zhipin-workflows.md`:聊天主键、动态列表、`preferredBrand`、服务端地点解析(`location.resolved`)、Reply Authority 编排细节。
305
305
  - `references/generic-browser-refs.md`:通用 AX snapshot、`@eN` ref、点击/输入闭环和边界条件。
306
306
  - `references/env.yaml`:运行所需环境变量声明。