feat: probe-cli — Site Archaeology 自动化工具#46
Open
RachelXiaolan wants to merge 1 commit into
Open
Conversation
probe-cli 自动化 agent-cli-creator 的 Site Archaeology 6 步协议,将手动 30-60 分钟的站点探测缩短为 30 秒自动检测。 功能: - 自动检测认证方式 (localStorage/cookie/sessionStorage/CSRF) - 自动提取 DOM 元素 (表单/输入框/按钮) - 自动捕获网络请求并过滤 XHR/Fetch API - 自动分析认证 header - 自动推荐 CLI 模式 (dom-scrape/api-reverse/form-submit/async-poll) - 输出标准化 JSON site profile
Contributor
Author
📌 关于 cli-hub 命名冲突顺便提一下:CLI-Anything 项目里也有一个叫 虽然两个生态不重叠(CLI-Anything 是 Python GUI wrapper 生态,x-cli 是 Go 网站自动化生态),但如果后续要做一个 x-cli 社区 Hub 的话,命名上可能需要考虑区分一下,避免用户混淆。 比如可以叫 |
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.
💡 背景
在做 fish-audio-cli 的时候,我发现 Site Archaeology(站点考古)阶段花了大约 60-80 分钟,是整个 CLI 开发过程中最耗时的环节。主要是手动 curl 6 步协议来探测认证方式、抓网络请求、分析 DOM 结构。
这个 PR 提议新增一个
probe-cli工具,把这套手动流程自动化。🔍 probe-cli 做什么
给定任意 URL,自动完成:
📐 跟 Site Archaeology 协议的对应
🚀 用法
输出标准 JSON site profile,可以直接喂给 agent-cli-creator 的 Phase 4。
🏗️ 架构
完全遵循 x-cli 的约定:Go + Cobra,复用
browser/client.go模板,标准output/output.goJSON 输出。💭 设计考虑
--wait参数)欢迎提意见!这个工具如果方向对的话,后续可以考虑集成到 agent-cli-creator 的 SKILL.md 里,让 Agent 自动调用 probe 而不是手动跑 6 步。