Repository navigation
feat(web): let the model judge state-changing web actions - #8
Merged
Merged
Conversation
Remove the regex guard that vetoed buttons and GET links in web_research. The model now decides whether a send/post/like/follow/order/payment action is appropriate for the user's request. Keep credential handoff for password fields and the unsupported file upload/download boundaries. Update the tool description, page output, tests and docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目标
按“让模型自己判断”调整
web_research:端侧不再用按钮/GET 链接的正则硬拦状态变更操作。AI 可能需要搜索、筛选、提交表单、点击结果等;是否发送/发布/关注/下单/支付应由模型根据用户请求判断。变更
CLICK_JS/ACTIVE_GUARD_JS中的按钮标签、GET 链接路径、draft form 正则拦截。click现在会执行模型选择的按钮/链接;pressEnter 不再因为 textarea/提交按钮标签被端侧拒绝。show_to_user;文件上传/下载不支持;跨域 iframe / closed shadow root 只列 URL;非 http(s) 链接不支持。验证
test/lintDebug/assembleDebug/assembleRelease、许可证头、三语 strings、58 工具 schema 全过。Post按钮现在执行并显示posted(无Denied);/like、/follow链接现在导航(无Denied);type/ Enter 仍返回show_to_userhandoff 提示;说明
这是产品策略调整:端侧提供浏览器能力,模型负责判断是否执行状态变更操作。需要时模型可以先用
ask_user向用户确认。