dsh-free-search 0.9.49 → 0.9.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -18
- package/lib/client.js +36 -19
- package/lib/fetch_provider.js +86 -28
- package/lib/index.js +15 -1
- package/package.json +139 -135
package/README.md
CHANGED
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
| `google` | Google 自定义搜索 | 免费额度 | 需 `GOOGLE_CSE_API_KEY` 和 Programmable Search Engine ID(`googleCseId` / cx);Google 官方 Custom Search JSON API,每天 100 次免费,按次计费超额;支持 `hl`、安全搜索和 `dateRestrict` 时间过滤 |
|
|
152
152
|
| `metaso` | 秘塔搜索 | 付费(点数) | 需 `METASO_API_KEY`(metaso.cn/api);官方 AI 搜索 API,按点数计费(约 0.03 元/次,新用户有体验额度);支持网页 / 文库 / 学术三种 `scope`,返回摘要和来源;不在默认回退顺序里,配 key 后显式选用 |
|
|
153
153
|
| `yandex` | Yandex 搜索 | 付费 | 需 `YANDEX_API_KEY` 和 `yandexFolderId`(AI Studio,按请求计费,需 billing account);官方 Search API,`searchType` 支持 RU/TR/COM/KK/BE/UZ,响应为 Base64 XML;支持 day / 2 weeks / month 时间过滤;显式专用 |
|
|
154
|
-
| `yuanbao` | 腾讯元宝搜索 | 付费(有活动免费额度) | 需 `TENCENTCLOUD_WSA_APIKEY`(console.cloud.tencent.com/wsapi);API key 网关,支持自然 / 权威 / 混合模式、站点限定、时间范围;活动页可领每日免费额度(限时);显式专用 |
|
|
154
|
+
| `yuanbao` | 腾讯元宝搜索 | 付费(有活动免费额度) | 需 `TENCENTCLOUD_WSA_APIKEY`(console.cloud.tencent.com/wsapi);API key 网关,支持自然 / 权威 / 混合模式、站点限定、时间范围;活动页可领每日免费额度(限时);显式专用 |
|
|
155
155
|
| `deepseek-official` | DeepSeek 官方 | 付费 | 需 `DEEPSEEK_API_KEY`;走 Anthropic 兼容的 `web_search` 服务端工具,每次搜索是一整个模型轮次(慢、耗 token) |
|
|
156
156
|
| `deepseek-tools` | DeepSeek 原生搜索 API | 付费 | 需 `DEEPSEEK_API_KEY`(与上一档共用);直接 `POST /v1/tools/search`,无模型参与,返回结构化 `results[]`(`title`/`url`/`summary`/`date`),同 query 实测 ~0.3s vs 上一档 ~5-6s;端点可通过 `deepseekToolsBaseUrl` 改成自定义网关(完整 URL 或 base;走 `/v1/search` 的网关请填完整 URL),key 可用 `deepseekToolsApiKey` 单独覆盖 |
|
|
157
157
|
| `baidu` | 百度千帆 AI 搜索 | 额度 | 需 `BAIDU_API_KEY`(千帆 AI 搜索:web_search 每日赠 50 次,额度用尽/403 时自动回退到 chat/completions,另有 100 次/天免费额度;超额按量后付费);中文全网,支持时间过滤 |
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
|
|
213
213
|
### 安装
|
|
214
214
|
|
|
215
|
-
需要 **DSH 0.2.1-rc.2
|
|
215
|
+
需要 **DSH 0.2.1-rc.2 到 0.3.x**(`engines.dsh` = `>=0.2.1-rc.2 <0.4.0-0`,顶层 `engines.dsh` 与 `dsh.engines.dsh` 同步声明,安装门禁与社区市场读同一范围);更早的 0.1.x 和 0.4 及以上宿主不满足该范围,插件管理器会拒绝安装。已实测:0.2.2-rc.1(DSH Desktop 2.0.22-next 内置版本)与 0.2.2-rc.3。
|
|
216
216
|
|
|
217
217
|
```sh
|
|
218
218
|
git clone https://github.com/DDDMUC/dsh-free-search.git
|
|
@@ -434,8 +434,8 @@ metasoScope: webpage # webpage | document | scholar
|
|
|
434
434
|
yandexApiKey: ... # Yandex Search API key (AI Studio)
|
|
435
435
|
yandexFolderId: "..." # folder the key was created in
|
|
436
436
|
yandexSearchType: auto # auto | ru | tr | com | kk | be | uz
|
|
437
|
-
deepseekApiKey: ...
|
|
438
|
-
deepseekToolsApiKey: ... # optional key for the custom endpoint
|
|
437
|
+
deepseekApiKey: ...
|
|
438
|
+
deepseekToolsApiKey: ... # optional key for the custom endpoint
|
|
439
439
|
deepseekToolsBaseUrl: "" # custom /v1/tools/search endpoint or base; empty = api.deepseek.com
|
|
440
440
|
```
|
|
441
441
|
|
|
@@ -621,7 +621,7 @@ npx -y -p dsh-free-search dsh-free-search-mcp
|
|
|
621
621
|
|
|
622
622
|
#### 离线自检断言(tools/)
|
|
623
623
|
|
|
624
|
-
仓库自带 **
|
|
624
|
+
仓库自带 **62 个**零依赖断言脚本(合计 **889 项**),**不需要 API key、不联网、不需要测试框架**,Node ≥ 20 即可跑。一次跑全部:`npm test`。
|
|
625
625
|
|
|
626
626
|
| 脚本 | 覆盖 | 运行(项数) |
|
|
627
627
|
|---|---|---|
|
|
@@ -644,11 +644,11 @@ npx -y -p dsh-free-search dsh-free-search-mcp
|
|
|
644
644
|
| `assert-research-call-wrappers.mjs` | research 四个 `call*` 包装层的替身/底层透传(#75 回归) | `node tools/assert-research-call-wrappers.mjs`(23) |
|
|
645
645
|
| `assert-fetch-chain.mjs` | `fs-quality-fetch` 四层链序、任一层命中即停、exa 失败静默降级 firecrawl、全层失败聚合报错 | `node tools/assert-fetch-chain.mjs`(8) |
|
|
646
646
|
| `assert-fetch-ssrf.mjs` | 抓取 SSRF 防护:公网/私网/保留地址判定、DNS 解析到私网拒绝、localhost 与 IP 字面量拒绝、非 HTTPS 与带凭据 URL 拒绝、fake-ip 网段默认拒绝且仅按配置放行、IPv6 ULA 显式放行、放行后仍拒绝回环/IPv4 私网/链路本地、provider 接线与设置项 | `node tools/assert-fetch-ssrf.mjs`(8) |
|
|
647
|
-
| `assert-mcp.mjs` | MCP stdio 面:initialize 协议协商、tools/list 的 JSON Schema、tools/call 文本结果、工具错误与 JSON-RPC 错误区分、必填参数校验、bin/files 打包 | `node tools/assert-mcp.mjs`(6) |
|
|
648
|
-
| `assert-mcp.mjs` | MCP stdio surface: initialize negotiation, tools/list JSON Schema, tools/call text results, tool errors vs JSON-RPC errors, required arguments, bin/files packaging | `node tools/assert-mcp.mjs` (6) |
|
|
649
|
-
| `assert-baidu.mjs` | 百度千帆:key 必填、web_search 首请求、403 或 results.code 额度错误回退 chat/completions(stream:false)、401 不回退、双端失败合并报错 | `node tools/assert-baidu.mjs`(6) |
|
|
650
|
-
| `assert-deepseek-endpoint.mjs` | DeepSeek 搜索端点:默认地址、base/完整 URL 归一、自定义 endpoint 收 Bearer/key/query、配置与设置页接线 | `node tools/assert-deepseek-endpoint.mjs`(4) |
|
|
651
|
-
| `assert-yuanbao.mjs` |key 必填、Bearer 网关/Query/Mode/Site/FromTime、自然与 VR 页面解析、日期归一、错误分类、注册与显式专用 | `node tools/assert-yuanbao.mjs`(6) |
|
|
647
|
+
| `assert-mcp.mjs` | MCP stdio 面:initialize 协议协商、tools/list 的 JSON Schema、tools/call 文本结果、工具错误与 JSON-RPC 错误区分、必填参数校验、bin/files 打包 | `node tools/assert-mcp.mjs`(6) |
|
|
648
|
+
| `assert-mcp.mjs` | MCP stdio surface: initialize negotiation, tools/list JSON Schema, tools/call text results, tool errors vs JSON-RPC errors, required arguments, bin/files packaging | `node tools/assert-mcp.mjs` (6) |
|
|
649
|
+
| `assert-baidu.mjs` | 百度千帆:key 必填、web_search 首请求、403 或 results.code 额度错误回退 chat/completions(stream:false)、401 不回退、双端失败合并报错 | `node tools/assert-baidu.mjs`(6) |
|
|
650
|
+
| `assert-deepseek-endpoint.mjs` | DeepSeek 搜索端点:默认地址、base/完整 URL 归一、自定义 endpoint 收 Bearer/key/query、配置与设置页接线 | `node tools/assert-deepseek-endpoint.mjs`(4) |
|
|
651
|
+
| `assert-yuanbao.mjs` |key 必填、Bearer 网关/Query/Mode/Site/FromTime、自然与 VR 页面解析、日期归一、错误分类、注册与显式专用 | `node tools/assert-yuanbao.mjs`(6) |
|
|
652
652
|
| `assert-yandex.mjs` | Yandex Search:key+folder 必填、Api-Key/请求体/分组、searchType 与 period/family 映射、Base64 XML 解析与日期、错误分类、注册与显式专用 | `node tools/assert-yandex.mjs`(6) |
|
|
653
653
|
| `assert-metaso.mjs` | 秘塔搜索:key 必填、请求体(q/scope/size/summary/raw/concise)、摘要与日期映射、文库数组、size 上限、无效 scope 回退、401/402/429/400 错误分类、注册与默认回退排除 | `node tools/assert-metaso.mjs`(6) |
|
|
654
654
|
| `assert-google-cse.mjs` | Google Custom Search:key+ID 必填、请求参数(q/num/start/hl/safe/dateRestrict)、结果映射与发布日期、超过 10 条分页、403/429/400 错误分类、时间档映射、全链路注册 | `node tools/assert-google-cse.mjs`(6) |
|
|
@@ -670,12 +670,14 @@ npx -y -p dsh-free-search dsh-free-search-mcp
|
|
|
670
670
|
| `assert-rail-section.mjs` | 页内目录的机器可读当前段:卡片根 `data-dsh-fs-section` 与 `railActive` 绑定、六段 id 固定、滚动监听仍在更新 | `node tools/assert-rail-section.mjs`(4) |
|
|
671
671
|
| `assert-package-files.mjs` | 发布清单闸门(#97):`files` 展开后必须覆盖被引用的本地模块、入口点与 `cordis.patch.yml`,并确认 `prepack` 守卫生效 | `node tools/assert-package-files.mjs`(4) |
|
|
672
672
|
| `assert-key-rotation.mjs` | 多 key 轮换(#96):round-robin 与 peek、单 key 不推进、配额优先于 429 的分类、轮换候选集合、`multi` 模式内重试与预检不消耗 key | `node tools/assert-key-rotation.mjs`(7) |
|
|
673
|
+
| `assert-fetch-key-rotation.mjs` | `web_fetch` 云端抓取(#128):配额失败冻结当前 key 并用下一把重试、非轮换错误不换 key、无 key 不发请求、真实 provider 的 exa 402 重试、Linux 浏览器路径可发现 | `node tools/assert-fetch-key-rotation.mjs`(6) |
|
|
673
674
|
| `assert-x-platform.mjs` | X (Twitter) 平台(Grok Build CLI):可用性、提示词约束、structuredOutput/text/原始 JSON 解析、status 链接过滤与截断、双语文案与面板默认值 | `node tools/assert-x-platform.mjs`(8) |
|
|
674
675
|
| `assert-cooldown.mjs` | 冷却:Retry-After / reset 时间提示优先、失败类档次(session / 短冷却 / 额度 / 月度 / 地区)、key 指纹稳定且互不相同、store 冷却 / 剩余 / 清除、有限冷却落盘重启后仍在而 session 不落盘、按 key 与按引擎互不干扰 | `node tools/assert-cooldown.mjs`(6) |
|
|
675
676
|
| `assert-redact.mjs` | 错误脱敏:已登记 key 全量替换、`sk-` / Bearer / api_key / x-api-key 形态无需登记也能打码、普通文本与短值不动、环境变量按名称收集 | `node tools/assert-redact.mjs`(4) |
|
|
676
677
|
| `assert-doctor.mjs` | 诊断报告:时长格式化、头部版本 / Node / DSH 主目录 / 生效默认 / 提示词字数、每个引擎的标记与原因、冷却原因去重列出、提示词未注入的提示 | `node tools/assert-doctor.mjs`(5) |
|
|
677
678
|
| `assert-agy.mjs` | Antigravity CLI:提示词查询 / 条数 / JSON 契约、structuredOutput 与 response 两种信封、非 SUCCESS 透出上游原因、URL 过滤与截断、CLI 参数、注入 runner 跳过 PATH 检查 | `node tools/assert-agy.mjs`(6) |
|
|
678
679
|
| `assert-allowed-engines.mjs` | 引擎白名单(#106):条目归一化、空名单保持原状、非空时禁用其余全部(含未来新增)、显式禁用优先、错拼不锁死搜索、白名单内引擎可入链(HTML 家族 / 按次计费)、auto 只路由白名单、内置提示词只列白名单且回退为 none、schema 默认空 | `node tools/assert-allowed-engines.mjs`(9) |
|
|
680
|
+
| `assert-host-compat.mjs` | 宿主兼容声明(0.9.51):顶层 `engines.dsh` 与 `dsh.engines.dsh` 一致、覆盖 0.2.1-rc.2~0.3.x 并拒绝 0.1.x/0.4+、每个 `@deepseek-ai/dsh*` peer 与主范围无冲突、市场的交集判定与安装门禁一致、`dshReleases` 列出实测版本、客户端版本跟随 package.json | `node tools/assert-host-compat.mjs`(8) |
|
|
679
681
|
| `assert-updater.mjs` | 自带更新:版本比较、registry 探测(成功 / 非 200 / 网络失败返回 null)、安装模式识别(真实安装优先于 link)、客户端按钮与桥接、服务端两条路由与 pnpm 升级命令、卡片版本跟 package.json 一致 | `node tools/assert-updater.mjs`(9) |
|
|
680
682
|
| `assert-inject.mjs` | 旧版 Cordis 兼容(#107):静态 inject 声明 web / settings / tools / systemPrompt、可选服务只走 `ctx.get`、回调上下文的属性读取都在 inject 里、动态依赖列表没有未知服务 | `node tools/assert-inject.mjs`(4) |
|
|
681
683
|
| `assert-safe-text.mjs` | UTF-16 截断安全(#108):孤立高低代理清理、有效代理对保留、码点截断不切开 emoji、`cleanSnippet` 300 边界落在整字符、结果/来源/错误脱敏、web_fetch 各层正文兜底、源码守卫 | `node tools/assert-safe-text.mjs`(9) |
|
|
@@ -855,7 +857,7 @@ If this plugin has been helpful, a ⭐ on [GitHub](https://github.com/DDDMUC/dsh
|
|
|
855
857
|
| `google` | Google Programmable Search | Free quota | Requires `GOOGLE_CSE_API_KEY` and a Programmable Search Engine ID (`googleCseId` / cx); official Custom Search JSON API, 100 free queries/day then billed; supports `hl`, safe search and `dateRestrict` time filtering |
|
|
856
858
|
| `metaso` | Metaso (秘塔搜索) | Paid (credits) | Requires `METASO_API_KEY` (metaso.cn/api); official AI search API billed per call (about ¥0.03/query, trial credits for new accounts); supports webpage / document / scholar scopes and returns summaries with sources; not in the default fallback order, use it explicitly after configuring a key |
|
|
857
859
|
| `yandex` | Yandex Search | Paid | Requires `YANDEX_API_KEY` and `yandexFolderId` (AI Studio; billed per request to a billing account); official Search API with RU/TR/COM/KK/BE/UZ search types and Base64 XML responses; supports day / 2 weeks / month time filters; explicit-only |
|
|
858
|
-
| `yuanbao` | Tencent Yuanbao Search | Paid (limited free-quota activity) | Requires `TENCENTCLOUD_WSA_APIKEY` (console.cloud.tencent.com/wsapi); API-key gateway with natural / authoritative / hybrid modes, site restriction and time ranges; the activity page offers a limited daily free quota; explicit-only |
|
|
860
|
+
| `yuanbao` | Tencent Yuanbao Search | Paid (limited free-quota activity) | Requires `TENCENTCLOUD_WSA_APIKEY` (console.cloud.tencent.com/wsapi); API-key gateway with natural / authoritative / hybrid modes, site restriction and time ranges; the activity page offers a limited daily free quota; explicit-only |
|
|
859
861
|
| `deepseek-official` | DeepSeek Official | Paid | Requires `DEEPSEEK_API_KEY`; uses the Anthropic-compatible `web_search` server tool, so every search is a full model turn (slow, token-billed) |
|
|
860
862
|
| `deepseek-tools` | DeepSeek Native Search API | Paid | Requires `DEEPSEEK_API_KEY` (shared with the row above); calls `POST /v1/tools/search` directly, no model involved, returns structured `results[]` (`title`/`url`/`summary`/`date`) — measured ~0.3s vs ~5-6s for the row above; the endpoint is configurable via `deepseekToolsBaseUrl` (full URL or base; use the full URL for a gateway exposing `/v1/search`) and the key can be overridden with `deepseekToolsApiKey` for custom gateways |
|
|
861
863
|
| `baidu` | Baidu Qianfan AI Search | Quota | Requires `BAIDU_API_KEY` (Qianfan AI Search: 50 free web_search calls/day; when that quota is exhausted or returns 403 it falls back to chat/completions, which has a separate 100/day free quota; pay-as-you-go beyond); Chinese web-wide, supports time filtering |
|
|
@@ -917,7 +919,7 @@ Rule of thumb for a default pool: **① as the floor + ③ as the workhorse**;
|
|
|
917
919
|
|
|
918
920
|
### Installation
|
|
919
921
|
|
|
920
|
-
Requires **DSH 0.2.1-rc.2
|
|
922
|
+
Requires **DSH 0.2.1-rc.2 through 0.3.x** (`engines.dsh` = `>=0.2.1-rc.2 <0.4.0-0`, declared at both the top-level `engines.dsh` and `dsh.engines.dsh` so the install gate and the community market read one range); older 0.1.x hosts and 0.4+ hosts do not satisfy it and the plugin manager refuses the install. Verified on 0.2.2-rc.1 (the runtime inside DSH Desktop 2.0.22-next) and 0.2.2-rc.3.
|
|
921
923
|
|
|
922
924
|
```sh
|
|
923
925
|
git clone https://github.com/DDDMUC/dsh-free-search.git
|
|
@@ -1139,8 +1141,8 @@ metasoScope: webpage # webpage | document | scholar
|
|
|
1139
1141
|
yandexApiKey: ... # Yandex Search API key (AI Studio)
|
|
1140
1142
|
yandexFolderId: "..." # folder the key was created in
|
|
1141
1143
|
yandexSearchType: auto # auto | ru | tr | com | kk | be | uz
|
|
1142
|
-
deepseekApiKey: ...
|
|
1143
|
-
deepseekToolsApiKey: ... # optional key for the custom endpoint
|
|
1144
|
+
deepseekApiKey: ...
|
|
1145
|
+
deepseekToolsApiKey: ... # optional key for the custom endpoint
|
|
1144
1146
|
deepseekToolsBaseUrl: "" # custom /v1/tools/search endpoint or base; empty = api.deepseek.com
|
|
1145
1147
|
```
|
|
1146
1148
|
|
|
@@ -1326,7 +1328,7 @@ Restart `dsh web` after switching to apply changes.
|
|
|
1326
1328
|
|
|
1327
1329
|
#### Offline self-check assertions (`tools/`)
|
|
1328
1330
|
|
|
1329
|
-
**Sixty-
|
|
1331
|
+
**Sixty-two** zero-dependency assertion scripts ship with the repo (**889 assertions** total): **no API keys, no network, no test framework**, Node ≥ 20. Run everything with `npm test`.
|
|
1330
1332
|
|
|
1331
1333
|
| Script | Covers | Run (count) |
|
|
1332
1334
|
|---|---|---|
|
|
@@ -1349,9 +1351,9 @@ Restart `dsh web` after switching to apply changes.
|
|
|
1349
1351
|
| `assert-research-call-wrappers.mjs` | the four research `call*` wrappers proxy to stubs / the real layer (#75 regression) | `node tools/assert-research-call-wrappers.mjs` (23) |
|
|
1350
1352
|
| `assert-fetch-chain.mjs` | `fs-quality-fetch` tier ordering, stop-on-first-success, silent firecrawl degradation, aggregated all-tiers failure | `node tools/assert-fetch-chain.mjs` (8) |
|
|
1351
1353
|
| `assert-fetch-ssrf.mjs` | Fetch SSRF guard: public/private/reserved address classification, DNS resolving to a private address rejected, localhost and IP literals rejected, non-HTTPS and credential URLs rejected, fake-ip ranges blocked by default and allowed only when configured, IPv6 ULA allowed only when listed, loopback/IPv4-private/link-local still blocked after opt-in, provider wiring and settings | `node tools/assert-fetch-ssrf.mjs` (8) |
|
|
1352
|
-
| `assert-baidu.mjs` | Baidu Qianfan: key required, web_search first, 403 or results.code quota fallback to chat/completions (stream:false), no fallback on 401, combined error when both fail | `node tools/assert-baidu.mjs` (6) |
|
|
1353
|
-
| `assert-deepseek-endpoint.mjs` | DeepSeek search endpoint: default URL, base/full-URL normalization, custom endpoint receives bearer/key/query, config and settings wiring | `node tools/assert-deepseek-endpoint.mjs` (4) |
|
|
1354
|
-
| `assert-yuanbao.mjs` | key required, Bearer gateway and Query/Mode/Site/FromTime, natural and VR page parsing, date normalization, error classes, registration and explicit-only | `node tools/assert-yuanbao.mjs` (6) |
|
|
1354
|
+
| `assert-baidu.mjs` | Baidu Qianfan: key required, web_search first, 403 or results.code quota fallback to chat/completions (stream:false), no fallback on 401, combined error when both fail | `node tools/assert-baidu.mjs` (6) |
|
|
1355
|
+
| `assert-deepseek-endpoint.mjs` | DeepSeek search endpoint: default URL, base/full-URL normalization, custom endpoint receives bearer/key/query, config and settings wiring | `node tools/assert-deepseek-endpoint.mjs` (4) |
|
|
1356
|
+
| `assert-yuanbao.mjs` | key required, Bearer gateway and Query/Mode/Site/FromTime, natural and VR page parsing, date normalization, error classes, registration and explicit-only | `node tools/assert-yuanbao.mjs` (6) |
|
|
1355
1357
|
| `assert-yandex.mjs` | Yandex Search: key + folder required, Api-Key/body/grouping, searchType and period/family mapping, Base64 XML parsing and dates, error classes, registration and explicit-only | `node tools/assert-yandex.mjs` (6) |
|
|
1356
1358
|
| `assert-metaso.mjs` | Metaso search: key required, request body (q/scope/size/summary/raw/concise), summary and date mapping, document array, size clamp, invalid scope fallback, 401/402/429/400 error classes, registration and default-chain exclusion | `node tools/assert-metaso.mjs` (6) |
|
|
1357
1359
|
| `assert-google-cse.mjs` | Google Custom Search: key + ID required, request params (q/num/start/hl/safe/dateRestrict), result mapping with dates, pagination past ten results, 403/429/400 classification, time-range mapping, full registration | `node tools/assert-google-cse.mjs` (6) |
|
|
@@ -1373,12 +1375,14 @@ Restart `dsh web` after switching to apply changes.
|
|
|
1373
1375
|
| `assert-rail-section.mjs` | Machine-readable active section for the in-page rail: the card root's `data-dsh-fs-section` tracks `railActive`, the six section ids are fixed, and the scroll spy still updates it | `node tools/assert-rail-section.mjs` (4) |
|
|
1374
1376
|
| `assert-package-files.mjs` | Packaging gate (#97): after expanding `files`, every imported local module, the entry points and `cordis.patch.yml` must be published, and the `prepack` guard must be wired | `node tools/assert-package-files.mjs` (4) |
|
|
1375
1377
|
| `assert-key-rotation.mjs` | Multi-key rotation (#96): round-robin and peek, single keys never advancing, quota classification ahead of 429, the rotation-candidate set, and in-engine retries that keep multi-mode preflight from consuming keys | `node tools/assert-key-rotation.mjs` (7) |
|
|
1378
|
+
| `assert-fetch-key-rotation.mjs` | `web_fetch` cloud tiers (#128): a quota-failed key is cooled and the next key is tried, non-rotation errors do not consume another key, no key means no request, the real provider retries exa after a 402, and Linux browser paths | `node tools/assert-fetch-key-rotation.mjs` (6) |
|
|
1376
1379
|
| `assert-x-platform.mjs` | X (Twitter) platform via the Grok Build CLI: availability, prompt guardrails, structuredOutput/text/raw JSON parsing, status-link filtering and caps, bilingual copy and panel defaults | `node tools/assert-x-platform.mjs` (8) |
|
|
1377
1380
|
| `assert-cooldown.mjs` | Cooldowns: Retry-After / reset hints win, failure classes (session / short / quota / monthly / region), stable distinct key fingerprints, store cool/remaining/clear, finite cooldowns survive a restart while session ones do not, per-key and per-engine state stay separate | `node tools/assert-cooldown.mjs` (6) |
|
|
1378
1381
|
| `assert-redact.mjs` | Error redaction: registered keys are scrubbed everywhere, `sk-` / Bearer / api_key / x-api-key shapes need no registration, ordinary text and short values are untouched, environment secrets are collected by name | `node tools/assert-redact.mjs` (4) |
|
|
1379
1382
|
| `assert-doctor.mjs` | Doctor report: duration formatting, version / Node / DSH home / effective default / prompt size header, a mark and reason per engine, cooldown reasons listed once, a warning when the prompt is not injected | `node tools/assert-doctor.mjs` (5) |
|
|
1380
1383
|
| `assert-agy.mjs` | Antigravity CLI: query / cap / JSON contract in the prompt, structuredOutput and response envelopes, upstream reason on non-SUCCESS, URL filtering and truncation, CLI flags, injected runner skips the PATH check | `node tools/assert-agy.mjs` (6) |
|
|
1381
1384
|
| `assert-allowed-engines.mjs` | Engine whitelist (#106): entries normalised, an empty list changes nothing, a non-empty list disables everything else (including future engines), explicit disables win, a typo does not brick search, whitelisted engines join the chain (HTML family / billed), Auto only routes allowed engines, the built-in prompt lists only them with a none fallback, and the schema defaults to empty | `node tools/assert-allowed-engines.mjs` (9) |
|
|
1385
|
+
| `assert-host-compat.mjs` | Host compatibility declarations (0.9.51): top-level `engines.dsh` matches `dsh.engines.dsh`, covers 0.2.1-rc.2 through 0.3.x and rejects 0.1.x/0.4+, every `@deepseek-ai/dsh*` peer agrees with that line, the market's intersection matches the install gate, `dshReleases` lists the verified hosts, and the client version follows package.json | `node tools/assert-host-compat.mjs` (8) |
|
|
1382
1386
|
| `assert-updater.mjs` | Built-in updater: version comparison, registry probe (success / non-200 / network failure yields null), install-mode detection (a real install beats a link), the client button and bridge helper, both server routes with the pnpm upgrade command, and the card version matching package.json | `node tools/assert-updater.mjs` (9) |
|
|
1383
1387
|
| `assert-inject.mjs` | Older Cordis compatibility (#107): the static inject list declares web / settings / tools / systemPrompt, optional services are read through `ctx.get`, every property read on a callback context is declared, and dynamic dependency lists contain no unknown services | `node tools/assert-inject.mjs` (4) |
|
|
1384
1388
|
| `assert-safe-text.mjs` | UTF-16 truncation safety (#108): lone high/low surrogates replaced, valid pairs kept, code-point slicing never splits an emoji, `cleanSnippet`'s 300 boundary lands on a whole character, results/sources/errors sanitized, every web_fetch tier covered, plus source guards | `node tools/assert-safe-text.mjs` (9) |
|
package/lib/client.js
CHANGED
|
@@ -733,7 +733,7 @@ window.__ModuleLoader__.load({
|
|
|
733
733
|
"cache_search",
|
|
734
734
|
"domain_search",
|
|
735
735
|
];
|
|
736
|
-
const PLUGIN_VERSION = "0.9.
|
|
736
|
+
const PLUGIN_VERSION = "0.9.51";
|
|
737
737
|
const PLUGIN_REPO_URL = "https://github.com/DDDMUC/dsh-free-search";
|
|
738
738
|
// 右侧浮动目录(#85):条目顺序即页面顺序,anchor 是页面里对应 field 的 id。
|
|
739
739
|
const NAV_ITEMS = [
|
|
@@ -745,6 +745,14 @@ window.__ModuleLoader__.load({
|
|
|
745
745
|
{ id: "performance", anchor: "dshfs-anchor-performance" },
|
|
746
746
|
{ id: "prompt", anchor: "dshfs-anchor-prompt" },
|
|
747
747
|
];
|
|
748
|
+
const sectionIdFromHash = () => {
|
|
749
|
+
const hash = String((typeof window !== "undefined" && window.location && window.location.hash) || "");
|
|
750
|
+
const parts = decodeURIComponent(hash.replace(/^#\/?/, "")).split("/").filter(Boolean);
|
|
751
|
+
const index = parts.lastIndexOf("plugins");
|
|
752
|
+
if (index >= 0) return parts[index + 2] || "";
|
|
753
|
+
if (parts[0] === "panel" && parts[1] === "dsh-free-search") return parts[2] || "";
|
|
754
|
+
return parts.length === 1 ? parts[0] : "";
|
|
755
|
+
};
|
|
748
756
|
// 目录跟着真正滚动的祖先走:DSH 页面通常不是 window 在滚。
|
|
749
757
|
const findScrollParent = (element) => {
|
|
750
758
|
let node = element && element.parentElement ? element.parentElement : null;
|
|
@@ -960,10 +968,24 @@ window.__ModuleLoader__.load({
|
|
|
960
968
|
return response.json();
|
|
961
969
|
}
|
|
962
970
|
|
|
963
|
-
//
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
971
|
+
// 侧栏入口跟随 DSH 的界面语言,而不是浏览器语言。
|
|
972
|
+
const PANEL_LABELS = {
|
|
973
|
+
zh: "免费搜索",
|
|
974
|
+
en: "Free Search",
|
|
975
|
+
ja: "無料検索",
|
|
976
|
+
es: "Búsqueda gratis",
|
|
977
|
+
fr: "Recherche gratuite",
|
|
978
|
+
de: "Kostenlose Suche",
|
|
979
|
+
ru: "Бесплатный поиск",
|
|
980
|
+
pt: "Pesquisa grátis",
|
|
981
|
+
};
|
|
982
|
+
let localeFace = null;
|
|
983
|
+
function panelLabel(active) {
|
|
984
|
+
const current = active ?? localeFace?.getLocale?.().active ?? "";
|
|
985
|
+
const id = String(current || "").trim().toLowerCase().split(/[-_]/)[0];
|
|
986
|
+
if (id) return PANEL_LABELS[id] || "Free Search";
|
|
987
|
+
const primary = typeof navigator === "undefined" ? "" : String((navigator.languages && navigator.languages[0]) || navigator.language || "").toLowerCase();
|
|
988
|
+
return PANEL_LABELS[primary.split(/[-_]/)[0]] || "Free Search";
|
|
967
989
|
}
|
|
968
990
|
|
|
969
991
|
function FreeSearchPage() {
|
|
@@ -1728,19 +1750,12 @@ window.__ModuleLoader__.load({
|
|
|
1728
1750
|
return () => window.removeEventListener("resize", place);
|
|
1729
1751
|
}, [open, state.status]);
|
|
1730
1752
|
|
|
1731
|
-
// 分区链接:地址栏里出现 #/panel/
|
|
1753
|
+
// 分区链接:地址栏里出现 #/panel/dsh-free-search/<分区>(或旧插件页 …/plugins/dsh-free-search/<分区>)就滚过去。
|
|
1732
1754
|
// 本插件**只读不写** URL —— 地址栏的唯一写者是 dsh-url-router,写这里会跟它抢。
|
|
1733
1755
|
react.useEffect(() => {
|
|
1734
1756
|
if (!pageMode) return undefined;
|
|
1735
|
-
const sectionOfHash = () => {
|
|
1736
|
-
const hash = String((typeof window !== "undefined" && window.location && window.location.hash) || "");
|
|
1737
|
-
const parts = decodeURIComponent(hash.replace(/^#\/?/, "")).split("/").filter(Boolean);
|
|
1738
|
-
const index = parts.lastIndexOf("plugins");
|
|
1739
|
-
if (index >= 0) return parts[index + 2] || "";
|
|
1740
|
-
return parts.length === 1 ? parts[0] : "";
|
|
1741
|
-
};
|
|
1742
1757
|
const apply = () => {
|
|
1743
|
-
const id =
|
|
1758
|
+
const id = sectionIdFromHash();
|
|
1744
1759
|
if (!id || !NAV_ITEMS.some((entry) => entry.id === id)) return;
|
|
1745
1760
|
const node = document.querySelector(`[data-dsh-section="${id}"]`)
|
|
1746
1761
|
|| (NAV_ITEMS.find((entry) => entry.id === id) ? document.getElementById(NAV_ITEMS.find((entry) => entry.id === id).anchor) : null);
|
|
@@ -1947,7 +1962,7 @@ window.__ModuleLoader__.load({
|
|
|
1947
1962
|
],
|
|
1948
1963
|
}, segment.key);
|
|
1949
1964
|
};
|
|
1950
|
-
const title =
|
|
1965
|
+
const title = panelLabel();
|
|
1951
1966
|
const description = t.description;
|
|
1952
1967
|
const allowlistMode = allowedEngines.length > 0;
|
|
1953
1968
|
const engineDisabled = (id) => (allowlistMode ? !allowedEngines.includes(id) : disabledEngines.includes(id));
|
|
@@ -2175,12 +2190,11 @@ window.__ModuleLoader__.load({
|
|
|
2175
2190
|
ref: railRef,
|
|
2176
2191
|
"aria-label": t.navLabel,
|
|
2177
2192
|
children: NAV_ITEMS.map((item) =>
|
|
2178
|
-
//
|
|
2179
|
-
//
|
|
2180
|
-
// 这条分区的地址,点击时浏览器自己改 hash,滚动仍由 goToSection 立即完成。
|
|
2193
|
+
// 分区链接挂在独立页自己的 #/panel/dsh-free-search/<id> 下,
|
|
2194
|
+
// 不再指到 #/panel/plugins/... 的插件行页。
|
|
2181
2195
|
react_jsx_runtime.jsx("a", {
|
|
2182
2196
|
className: "dshfs-railItem" + (railActive === item.id ? " dshfs-railItemActive" : ""),
|
|
2183
|
-
href: `#/panel/
|
|
2197
|
+
href: `#/panel/dsh-free-search/${item.id}`,
|
|
2184
2198
|
"data-dsh-fs-section": item.id,
|
|
2185
2199
|
"data-dsh-section": item.id,
|
|
2186
2200
|
onClick: () => goToSection(item.id),
|
|
@@ -3172,6 +3186,9 @@ react_jsx_runtime.jsx("div", {
|
|
|
3172
3186
|
const inject = ["slots", "commandUi"];
|
|
3173
3187
|
|
|
3174
3188
|
function apply(ctx) {
|
|
3189
|
+
ctx.inject(["locale"], (sctx) => {
|
|
3190
|
+
localeFace = sctx.get("locale") || null;
|
|
3191
|
+
});
|
|
3175
3192
|
// 挂插件页 slot:侧栏 插件 → 已安装 → free-search → 行配置页。
|
|
3176
3193
|
// rc.1 废弃了旧版设置页的插件配置 slot,只保留 plugins.row.config;
|
|
3177
3194
|
// key 规则见 ui-plugin-manager 的 rowConfigKey:<包名>#<patch 里声明的行 id>。
|
package/lib/fetch_provider.js
CHANGED
|
@@ -26,6 +26,14 @@ const BROWSER_CANDIDATES = [
|
|
|
26
26
|
"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
|
|
27
27
|
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
|
|
28
28
|
"/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge",
|
|
29
|
+
"/usr/bin/google-chrome",
|
|
30
|
+
"/usr/bin/google-chrome-stable",
|
|
31
|
+
"/opt/google/chrome/chrome",
|
|
32
|
+
"/usr/bin/chromium",
|
|
33
|
+
"/usr/bin/chromium-browser",
|
|
34
|
+
"/snap/bin/chromium",
|
|
35
|
+
"/usr/bin/microsoft-edge",
|
|
36
|
+
"/usr/bin/microsoft-edge-stable",
|
|
29
37
|
];
|
|
30
38
|
let cachedBrowserPath; // undefined = 未检测;null = 无浏览器
|
|
31
39
|
function findSystemBrowser() {
|
|
@@ -297,8 +305,33 @@ const BROWSERISH = {
|
|
|
297
305
|
export function browserishHeaders(acceptLanguage = "en-US,en;q=0.9") {
|
|
298
306
|
return { ...BROWSERISH, "Accept-Language": String(acceptLanguage ?? "").trim() || "en-US,en;q=0.9" };
|
|
299
307
|
}
|
|
308
|
+
export async function withKeyRotation({
|
|
309
|
+
engine,
|
|
310
|
+
env,
|
|
311
|
+
resolveKey,
|
|
312
|
+
call,
|
|
313
|
+
onKeyFailure = async () => false,
|
|
314
|
+
errors = [],
|
|
315
|
+
label = engine,
|
|
316
|
+
maxAttempts = 10,
|
|
317
|
+
}) {
|
|
318
|
+
for (let attempt = 0; attempt < maxAttempts; attempt += 1) {
|
|
319
|
+
const key = await resolveKey();
|
|
320
|
+
if (!key) return null;
|
|
321
|
+
try {
|
|
322
|
+
return await call(key);
|
|
323
|
+
} catch (error) {
|
|
324
|
+
errors.push(`${label}: ${error?.message ?? String(error)}`);
|
|
325
|
+
const retry = await onKeyFailure({ engine, env, key, error });
|
|
326
|
+
if (!retry) return null;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return null;
|
|
330
|
+
}
|
|
331
|
+
|
|
300
332
|
export function createFetchProvider({
|
|
301
333
|
resolveApiKey,
|
|
334
|
+
onKeyFailure = async () => false,
|
|
302
335
|
logger,
|
|
303
336
|
acceptLanguage = () => "en-US,en;q=0.9",
|
|
304
337
|
browserEnabled = () => true,
|
|
@@ -345,40 +378,65 @@ export function createFetchProvider({
|
|
|
345
378
|
}
|
|
346
379
|
|
|
347
380
|
// T2/T3:exa 与 firecrawl 的先后顺序可在设置页切换;crawl4ai 固定最后。
|
|
348
|
-
const exaTier =
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
381
|
+
const exaTier = () =>
|
|
382
|
+
withKeyRotation({
|
|
383
|
+
engine: "exa",
|
|
384
|
+
env: "EXA_API_KEY",
|
|
385
|
+
label: "exa",
|
|
386
|
+
resolveKey: () => resolveApiKey("EXA_API_KEY", "exaApiKey").catch(() => undefined),
|
|
387
|
+
call: async (exaKey) => {
|
|
388
|
+
const text = await callExa(url, exaKey, signal);
|
|
389
|
+
if (text.trim().length >= T1_MIN_CHARS) {
|
|
390
|
+
return { url, statusCode: 200, body: { kind: "text", content: stripLoneSurrogates(text) }, truncated: false };
|
|
391
|
+
}
|
|
392
|
+
errors.push("exa: short content");
|
|
393
|
+
return null;
|
|
394
|
+
},
|
|
395
|
+
onKeyFailure,
|
|
396
|
+
errors,
|
|
397
|
+
});
|
|
398
|
+
const firecrawlTier = () =>
|
|
399
|
+
withKeyRotation({
|
|
400
|
+
engine: "firecrawl",
|
|
401
|
+
env: "FIRECRAWL_API_KEY",
|
|
402
|
+
label: "firecrawl",
|
|
403
|
+
resolveKey: () => resolveApiKey("FIRECRAWL_API_KEY", "firecrawlApiKey").catch(() => undefined),
|
|
404
|
+
call: async (firecrawlKey) => {
|
|
405
|
+
const md = await callFirecrawl(url, firecrawlKey, signal);
|
|
406
|
+
if (md.trim().length >= T1_MIN_CHARS) {
|
|
407
|
+
return { url, statusCode: 200, body: { kind: "text", content: stripLoneSurrogates(md) }, truncated: false };
|
|
408
|
+
}
|
|
409
|
+
errors.push("firecrawl: short content");
|
|
410
|
+
return null;
|
|
411
|
+
},
|
|
412
|
+
onKeyFailure,
|
|
413
|
+
errors,
|
|
414
|
+
});
|
|
368
415
|
const order = prefer() === "firecrawl" ? [firecrawlTier, exaTier] : [exaTier, firecrawlTier];
|
|
369
416
|
for (const tier of order) {
|
|
370
417
|
const hit = await tier();
|
|
371
418
|
if (hit) return hit;
|
|
372
419
|
}
|
|
373
420
|
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
421
|
+
const crawl4aiTier = () =>
|
|
422
|
+
withKeyRotation({
|
|
423
|
+
engine: "crawl4ai",
|
|
424
|
+
env: "CRAWL4AI_API_KEY",
|
|
425
|
+
label: "crawl4ai",
|
|
426
|
+
resolveKey: () => resolveApiKey("CRAWL4AI_API_KEY", undefined).catch(() => undefined),
|
|
427
|
+
call: async (crawl4aiKey) => {
|
|
428
|
+
const text = await callCrawl4ai(url, crawl4aiKey, signal);
|
|
429
|
+
if (text.trim().length >= T1_MIN_CHARS) {
|
|
430
|
+
return { url, statusCode: 200, body: { kind: "text", content: stripLoneSurrogates(text) }, truncated: false };
|
|
431
|
+
}
|
|
432
|
+
errors.push("crawl4ai: short content");
|
|
433
|
+
return null;
|
|
434
|
+
},
|
|
435
|
+
onKeyFailure,
|
|
436
|
+
errors,
|
|
437
|
+
});
|
|
438
|
+
const crawl4aiHit = await crawl4aiTier();
|
|
439
|
+
if (crawl4aiHit) return crawl4aiHit;
|
|
382
440
|
|
|
383
441
|
logger?.warn?.(`fs-quality-fetch: all tiers failed for ${url}: ${errors.join("; ")}`);
|
|
384
442
|
throw new Error(`fs-quality-fetch: could not fetch ${url} (${errors.join("; ")})`);
|
package/lib/index.js
CHANGED
|
@@ -2332,6 +2332,15 @@ function apply(ctx, config) {
|
|
|
2332
2332
|
return false;
|
|
2333
2333
|
};
|
|
2334
2334
|
|
|
2335
|
+
// web_fetch 的云端抓取层不是搜索引擎,但同样可能配置多把 key;按 env 冻结刚失败的那把。
|
|
2336
|
+
const coolKeyForEnv = (env, key, cls, message, rateLimited = false) => {
|
|
2337
|
+
const delay = cooldownDelayFor(cls, message) ?? (rateLimited ? SHORT_COOLDOWN_MS : null);
|
|
2338
|
+
if (delay === null) return false;
|
|
2339
|
+
const ring = keyRings.get(env);
|
|
2340
|
+
if (!ring || !key) return false;
|
|
2341
|
+
cooldowns.set(keyCooldownId(env, key), delay, { reason: message, cls });
|
|
2342
|
+
return ring.keys.some((candidate) => !cooldowns.isCooling(keyCooldownId(env, candidate)));
|
|
2343
|
+
};
|
|
2335
2344
|
// 豆包搜索:主 key 名 DOUBAO_SEARCH_API_KEY;官方示例也用 WEB_SEARCH_API_KEY,作为回退
|
|
2336
2345
|
const resolveDoubaoKey = async () => {
|
|
2337
2346
|
const primary = await resolveApiKey("DOUBAO_SEARCH_API_KEY", "doubaoApiKey");
|
|
@@ -2977,8 +2986,13 @@ function apply(ctx, config) {
|
|
|
2977
2986
|
// 与 web_search 的接管规则同构:运行时兜底,不依赖 bundle patch 是否落地。
|
|
2978
2987
|
const fetchProvider = createFetchProvider({
|
|
2979
2988
|
resolveApiKey,
|
|
2989
|
+
onKeyFailure: ({ env, key, error }) => {
|
|
2990
|
+
if (!isKeyRotationCandidate(error)) return false;
|
|
2991
|
+
const failure = classifyFailure(error);
|
|
2992
|
+
return coolKeyForEnv(env, key, failure.class, failure.message, failure.rateLimited);
|
|
2993
|
+
},
|
|
2980
2994
|
logger,
|
|
2981
|
-
// #92:web_fetch
|
|
2995
|
+
// #92:web_fetch 栈与 searchOnce 分开结算,这里按当前请求结算,而不是复用上一次请求留下的值。
|
|
2982
2996
|
acceptLanguage: () => acceptLanguageFor(current()),
|
|
2983
2997
|
browserEnabled: () => current().browserFetch !== false,
|
|
2984
2998
|
prefer: () => (current().fetchPrefer === "firecrawl" ? "firecrawl" : "exa"),
|
package/package.json
CHANGED
|
@@ -1,135 +1,139 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-free-search",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "Free web search for DeepSeek Harness: 39 engines (Bing/DuckDuckGo/AnySearch/SearXNG/Exa/Tavily/Keenable/Firecrawl/Parallel/You.com keyless; Zhihu global/site via MCP and Perplexity/SerpBase/DeepSeek (official + native tools/search)/Baidu/Kimi/Aliyun/Doubao/Google CSE/Metaso/Yandex/Yuanbao with key; OpenAI/Gemini/Claude model built-in search, explicit-only) + auto smart routing + global engine enable/disable & fallback priority + editable zh/en language pools + multi mode (parallel full language-pool merge) + multi_search cross-source tool + failure-aware fallback (quota/auth cooldown, transient retry, fallbackOn) + time filtering + platform search + domain blocklist (blockedDomains) + web_fetch, with web settings UI, plus a standalone stdio MCP server.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": "./lib/index.js",
|
|
9
|
-
"./client": "./lib/client.js",
|
|
10
|
-
"./package.json": "./package.json"
|
|
11
|
-
},
|
|
12
|
-
"files": [
|
|
13
|
-
"lib/",
|
|
14
|
-
"cordis.patch.yml",
|
|
15
|
-
"bin/"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "node tools/run-assertions.mjs",
|
|
19
|
-
"prepack": "node tools/assert-package-files.mjs"
|
|
20
|
-
},
|
|
21
|
-
"keywords": [
|
|
22
|
-
"deepseek-harness",
|
|
23
|
-
"dsh",
|
|
24
|
-
"dsh-plugin",
|
|
25
|
-
"web-search",
|
|
26
|
-
"duckduckgo",
|
|
27
|
-
"bing",
|
|
28
|
-
"tavily",
|
|
29
|
-
"exa",
|
|
30
|
-
"keenable",
|
|
31
|
-
"firecrawl",
|
|
32
|
-
"parallel",
|
|
33
|
-
"perplexity",
|
|
34
|
-
"serpbase",
|
|
35
|
-
"serply",
|
|
36
|
-
"outcrawl",
|
|
37
|
-
"search",
|
|
38
|
-
"free",
|
|
39
|
-
"baidu",
|
|
40
|
-
"kimi",
|
|
41
|
-
"moonshot",
|
|
42
|
-
"aliyun",
|
|
43
|
-
"youcom",
|
|
44
|
-
"multi-search",
|
|
45
|
-
"auto-routing",
|
|
46
|
-
"doubao",
|
|
47
|
-
"volcengine",
|
|
48
|
-
"volcano",
|
|
49
|
-
"zhihu",
|
|
50
|
-
"mcp",
|
|
51
|
-
"model-context-protocol",
|
|
52
|
-
"yuanbao",
|
|
53
|
-
"tencent",
|
|
54
|
-
"wsa"
|
|
55
|
-
],
|
|
56
|
-
"license": "MIT",
|
|
57
|
-
"publishConfig": {
|
|
58
|
-
"access": "public"
|
|
59
|
-
},
|
|
60
|
-
"repository": {
|
|
61
|
-
"type": "git",
|
|
62
|
-
"url": "https://github.com/DDDMUC/dsh-free-search.git"
|
|
63
|
-
},
|
|
64
|
-
"engines": {
|
|
65
|
-
"node": ">=20"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"@deepseek-ai/
|
|
70
|
-
"@deepseek-ai/dsh-client-ui-
|
|
71
|
-
"@deepseek-ai/dsh-client-ui-
|
|
72
|
-
"@deepseek-ai/dsh-
|
|
73
|
-
"@deepseek-ai/dsh-
|
|
74
|
-
"@deepseek-ai/
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"@deepseek-ai/dsh-
|
|
106
|
-
"@deepseek-ai/
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"@deepseek-ai/dsh-client-ui-
|
|
116
|
-
"@deepseek-ai/dsh-client-ui-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"0.2.1-rc.
|
|
127
|
-
"0.2.
|
|
128
|
-
"0.2.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-free-search",
|
|
3
|
+
"version": "0.9.51",
|
|
4
|
+
"description": "Free web search for DeepSeek Harness: 39 engines (Bing/DuckDuckGo/AnySearch/SearXNG/Exa/Tavily/Keenable/Firecrawl/Parallel/You.com keyless; Zhihu global/site via MCP and Perplexity/SerpBase/DeepSeek (official + native tools/search)/Baidu/Kimi/Aliyun/Doubao/Google CSE/Metaso/Yandex/Yuanbao with key; OpenAI/Gemini/Claude model built-in search, explicit-only) + auto smart routing + global engine enable/disable & fallback priority + editable zh/en language pools + multi mode (parallel full language-pool merge) + multi_search cross-source tool + failure-aware fallback (quota/auth cooldown, transient retry, fallbackOn) + time filtering + platform search + domain blocklist (blockedDomains) + web_fetch, with web settings UI, plus a standalone stdio MCP server.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./lib/index.js",
|
|
9
|
+
"./client": "./lib/client.js",
|
|
10
|
+
"./package.json": "./package.json"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"lib/",
|
|
14
|
+
"cordis.patch.yml",
|
|
15
|
+
"bin/"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"test": "node tools/run-assertions.mjs",
|
|
19
|
+
"prepack": "node tools/assert-package-files.mjs"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"deepseek-harness",
|
|
23
|
+
"dsh",
|
|
24
|
+
"dsh-plugin",
|
|
25
|
+
"web-search",
|
|
26
|
+
"duckduckgo",
|
|
27
|
+
"bing",
|
|
28
|
+
"tavily",
|
|
29
|
+
"exa",
|
|
30
|
+
"keenable",
|
|
31
|
+
"firecrawl",
|
|
32
|
+
"parallel",
|
|
33
|
+
"perplexity",
|
|
34
|
+
"serpbase",
|
|
35
|
+
"serply",
|
|
36
|
+
"outcrawl",
|
|
37
|
+
"search",
|
|
38
|
+
"free",
|
|
39
|
+
"baidu",
|
|
40
|
+
"kimi",
|
|
41
|
+
"moonshot",
|
|
42
|
+
"aliyun",
|
|
43
|
+
"youcom",
|
|
44
|
+
"multi-search",
|
|
45
|
+
"auto-routing",
|
|
46
|
+
"doubao",
|
|
47
|
+
"volcengine",
|
|
48
|
+
"volcano",
|
|
49
|
+
"zhihu",
|
|
50
|
+
"mcp",
|
|
51
|
+
"model-context-protocol",
|
|
52
|
+
"yuanbao",
|
|
53
|
+
"tencent",
|
|
54
|
+
"wsa"
|
|
55
|
+
],
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public"
|
|
59
|
+
},
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": "https://github.com/DDDMUC/dsh-free-search.git"
|
|
63
|
+
},
|
|
64
|
+
"engines": {
|
|
65
|
+
"node": ">=20",
|
|
66
|
+
"dsh": ">=0.2.1-rc.2 <0.4.0-0"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-commands": "^0.1.7-rc.1 || ^0.2.0-rc.1 || ^0.3.0-0",
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": "^0.1.7-rc.1 || ^0.2.0-rc.1 || ^0.3.0-0",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.7-rc.1 || ^0.2.0-rc.1 || ^0.3.0-0",
|
|
73
|
+
"@deepseek-ai/dsh-settings": "^0.1.7-rc.1 || ^0.2.0-rc.1 || ^0.3.0-0",
|
|
74
|
+
"@deepseek-ai/dsh-tools": "^0.1.7-rc.1 || ^0.2.0-rc.1 || ^0.3.0-0",
|
|
75
|
+
"@deepseek-ai/schemastery": ">=3.18.4 <4",
|
|
76
|
+
"react": "^18.2.0"
|
|
77
|
+
},
|
|
78
|
+
"peerDependenciesMeta": {
|
|
79
|
+
"@deepseek-ai/cordis": {
|
|
80
|
+
"optional": true
|
|
81
|
+
},
|
|
82
|
+
"@deepseek-ai/dsh-client-ui-commands": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-renderer": {
|
|
89
|
+
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"@deepseek-ai/dsh-settings": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"@deepseek-ai/dsh-tools": {
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
97
|
+
"@deepseek-ai/schemastery": {
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"react": {
|
|
101
|
+
"optional": true
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"devDependencies": {
|
|
105
|
+
"@deepseek-ai/dsh-settings": "^0.1.7-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-tools": "^0.1.7-rc.1",
|
|
107
|
+
"@deepseek-ai/schemastery": ">=3.18.4 <4"
|
|
108
|
+
},
|
|
109
|
+
"dsh": {
|
|
110
|
+
"bundle": {
|
|
111
|
+
"patch": "cordis.patch.yml"
|
|
112
|
+
},
|
|
113
|
+
"client": {
|
|
114
|
+
"inject": [
|
|
115
|
+
"@deepseek-ai/dsh-client-ui-commands",
|
|
116
|
+
"@deepseek-ai/dsh-client-ui-plugin-manager",
|
|
117
|
+
"@deepseek-ai/dsh-client-ui-renderer"
|
|
118
|
+
],
|
|
119
|
+
"platform": "web"
|
|
120
|
+
},
|
|
121
|
+
"engines": {
|
|
122
|
+
"dsh": ">=0.2.1-rc.2 <0.4.0-0"
|
|
123
|
+
},
|
|
124
|
+
"compatibility": {
|
|
125
|
+
"dshReleases": {
|
|
126
|
+
"0.2.1-rc.2": "compatible",
|
|
127
|
+
"0.2.1-rc.3": "compatible",
|
|
128
|
+
"0.2.1-rc.4": "compatible",
|
|
129
|
+
"0.2.1-rc.5": "compatible",
|
|
130
|
+
"0.2.2-rc.1": "compatible",
|
|
131
|
+
"0.2.2-rc.2": "compatible",
|
|
132
|
+
"0.2.2-rc.3": "compatible"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"bin": {
|
|
137
|
+
"dsh-free-search-mcp": "./bin/mcp.js"
|
|
138
|
+
}
|
|
139
|
+
}
|