Repository navigation
feat(web): turn web_research into a general read-only browser agent - #7
Merged
Merged
Conversation
Traverse open shadow DOM and same-origin iframes, report scroll/form/frame state, add press/select/check/history/network/article-read actions, auto-settle after navigation, emit semantic page states, and add a best-effort read-only guard for buttons, Enter and state-changing GET links. Add page-state tests and update the web research 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真正成为通用只读浏览器代理,而不是平台白名单。能力
inputType/disabled/checked/value/frameUrl。open/snapshot/read/click/type/press/select/check/scroll/wait/back/forward/reload/network/show_to_user/hide。open/click/type/back/forward/reload后按readyState+ 文本/节点数稳定等待,SPA 不再依赖固定 sleep。READY / LOGIN_REQUIRED / CAPTCHA / CONSENT_REQUIRED / BLOCKED / EMPTY,并给出下一步建议。read选择 article/main 等高文本密度区域,忽略导航/页脚。openJSON/API URL 读取响应。Denied;普通链接和搜索仍允许。best-effort,不是浏览器沙箱。验证
test/lintDebug/assembleDebug/assembleRelease、许可证头、三语 strings、58 工具 schema 全过。type+ Enter 提交;checkbox/select;back/forward/reload;read正文提取;network列出/api/data.json;wait匹配延迟结果;Post、GET/like、/follow均Denied;密码输入/Enter 均Denied;scroll ref=...与窗口 scroll 均生效。说明
这是给所有用户的通用能力:任何用户用自己的账号登录;登录态只留在本机;设置 → 存储可一键清除网页数据。