SIGN IN SIGN UP

refactor(chrome): 删冗余死端点 /api/chrome/detect(Refs MOC-261) (#537)

* refactor(chrome): 删冗余死端点 /api/chrome/detect(MOC-261 二-6)

MOC-261 二-6(二、死代码 最后一项):删 /api/chrome/detect(独立「探测系统 Chrome/Edge/Chromium
文件存在、不下载」探针)+ 路由。前端零引用、无内部调用方;它探的系统-Chrome 能力已内建在前端在用的
/api/chrome/ready(chrome_ready_without_download:系统 Chrome 或已下载内置 shell + --version 自检)
+ MCP webfetch server 里 → 纯冗余。

- detect_system_chrome 函数保留(mcp_webfetch_server + headless ready 逻辑等 live 调用方,无级联孤儿)。
- docs-sync:chrome.rs 模块 doc / ready doc / ensure doc + mod.rs 注释里 detect 引用同步更新。

验证(删前/删后 cargo check + cargo test 双验):check exit 0 + cargo test(http headless 无破坏)+ fmt + machete 绿。

* docs(chrome): 同步删 /api/chrome/detect 后残留的文档引用(/code-review)(Refs MOC-261)

/code-review xhigh 3 条 CONFIRMED(同根因 doc-drift,首版 docs-sync 漏的、同 二-5 doc-rot 教训):
- crates/http/src/lib.rs crate rustdoc 还把 GET /api/chrome/detect 当现存配套端点 → 改 /api/chrome/ready。
- README.md + README.en.md 依赖清单列 GET /api/chrome/detect 为现存端点 → 删(双语同步)。
CHANGELOG.md 的 MOC-144 step1 记录是冻结历史 → 不改。
X
Xinlong Wu committed
72190336ffd56fcbab029935b3befa5f0ac8a328
Parent: fdb4d97
Committed by GitHub <noreply@github.com> on 6/21/2026, 10:57:35 AM