D
dsh-safe-web-fetch
v0.1.0-next.0 · 4 天前发布
SSRF-resistant HTTP(S) fetch provider for DeepSeek Harness
README
dsh-safe-web-fetch
dsh-safe-web-fetch 为 DeepSeek Harness 的 web_fetch 能力提供一个更稳妥的网络 provider。它接入 DSH 原有的 ctx.web 和 profile 机制,不另起一套搜索 API,也不改模型侧工具。
它做的事情很明确:域名必须先解析到公共地址,确认安全后才建立连接;每一跳请求都固定到已经检查过的 IP;重定向只允许留在同一个 origin;响应大小、耗时和并发量都有上限。
快速开始
包里带有 DSH bundle,所以一条命令就能安装并加入 profile:
sh
dsh plugin --profile safe add dsh-safe-web-fetch@next
dsh --profile safe --dump-config
bundle 会注册 safe-http provider,打开 DSH 原有的 web_fetch 工具,搜索仍沿用基础 profile 的 provider。部署时建议固定已经测试过的版本:
sh
dsh plugin --profile production add dsh-safe-web-fetch@0.1.0-next.0
也可以固定一个经过审核的 Git commit:
sh
dsh plugin --profile safe add github:MostlyHarmlessxyz/dsh-safe-web-fetch#<commit-sha>
Git 安装会在本地构建。如果 pnpm 要求批准构建脚本,按 profile 输出的提示操作;如果希
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-safe-web-fetch
- Repo
- git+https://github.com/MostlyHarmlessxyz/dsh-safe-web-fetch.git
- Engines
{"node":"^22.19.0 || >=24.0.0"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}