dsh-free-search 0.9.53 → 0.9.55
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 +40 -18
- package/lib/client.js +187 -12
- package/lib/engine_meta.js +4 -0
- package/lib/engines/deepseek-tools.js +125 -94
- package/lib/engines/shared.js +11 -2
- package/lib/engines/specstream.js +81 -0
- package/lib/engines/zhipu.js +91 -0
- package/lib/index.js +110 -8
- package/lib/mcp_engines.js +144 -0
- package/lib/mcp_server.js +6 -34
- package/lib/multi_policy.js +2 -0
- package/lib/prompt_i18n.js +2 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
#### 引擎与切换
|
|
35
35
|
|
|
36
36
|
- **零成本** —— 多个免费引擎,无需 key、无需注册
|
|
37
|
-
- **
|
|
37
|
+
- **42 个引擎可选**:DuckDuckGo(html/lite)、Bing、SearXNG(元搜索,支持自定义实例)、AnySearch、Exa、Tavily、Keenable、Firecrawl、Parallel、Brave(`brave`,官方 Search API,需 `BRAVE_API_KEY`)、智谱(`zhipu`,官方 Web Search API,需 `ZHIPU_API_KEY`)、Perplexity、SerpBase、Serply、Outcrawl、SpecStream(`specstream`,官方 Search API,需 `SPECSTREAM_API_KEY`)、Google 自定义搜索(`google`,需 API key + CSE ID)、秘塔搜索(`metaso`,官方 API,按点数计费)、Yandex 搜索(`yandex`,官方 API,按请求计费,需 folder ID)、腾讯元宝搜索(`yuanbao`,API key 网关,有活动免费额度)、DeepSeek 官方、DeepSeek 原生搜索 API、You.com、百度千帆、Kimi、阿里云百炼、火山联网搜索(豆包搜索)、知乎全网/站内(`zhihu_global`/`zhihu_site`,经知乎开放平台 MCP)、Antigravity CLI 搜索(`agy`,需本机安装)、OpenAI / Gemini / Claude 模型内置搜索。默认自动回退链覆盖其中 30 个;5 个 HTML SERP 引擎默认不参与,OpenAI / Gemini / Claude 三个模型引擎、Metaso、Yandex、Yuanbao 和 SpecStream 都只在显式点名时运行。
|
|
38
38
|
- **5 个 HTML 搜索页引擎(默认关闭)** —— 把传统搜索页并入同一套引擎 / 回退 / 冷却 / 设置体系:`baidu-html`(百度网页)、`so360`、`sogou`、`wechat`(微信文章)、`toutiao`。免 key、免额度,代价是抓页面:验证码/反爬按 `bot-wall` 归类并让整个家族冷却 10 分钟(整段出口 IP 都会被打标),结果也没有 API 摘要。它们默认不进 auto / 回退链 / 语言池,只在显式 `engine=` 或加入语言池时运行。
|
|
39
39
|
- **引擎白名单** —— 设置页「只使用勾选的引擎」开启后,只有勾选的引擎可用,升级新增的引擎默认不启用;配置里对应 `allowedEngines`(非空时等价于把其余引擎全部禁用)。
|
|
40
40
|
- **全局引擎开关与回退优先级** —— 设置页可勾选/取消引擎(取消后全局生效:普通搜索 / Auto / `advanced_search` / `multi_search` / 引擎测试都不再用它),并可用 ↑↓ 调整全局回退顺序(一键恢复默认)。
|
|
@@ -96,6 +96,8 @@
|
|
|
96
96
|
|
|
97
97
|
- **网页设置页** —— 引擎切换 + API key 配置(UI 中 key 脱敏显示「已配置」)+ 中英文切换;入口在左侧「插件」页的组件行配置(`plugins.row.config`,DSH 0.2.1-rc.2+)。远程访问(VPS / 反向代理 / 自定义域名)下也能用:桥接接口沿用宿主的 Host 围栏,`--trusted-host` 与 `--public-url` 声明的地址会放行(#84)。
|
|
98
98
|
- **侧栏入口可关闭** —— 默认在左侧栏显示「免费搜索」;设置页关闭后写入配置并持久化,重启仍隐藏;隐藏时可用 `/free-search` 命令或插件页打开。
|
|
99
|
+
- **斜杠命令可关闭** —— 默认注册 `/free-search-engine` 和 `/free-search`;设置页关闭 `slashCommands` 后两个命令都不再注册,设置仍在插件页,提示词也改为让模型参考插件设置。适合只想给 agent 用搜索工具的场景。
|
|
100
|
+
- **优先使用免 key 档(可选)** —— 默认配了 key 的引擎一律用 key。设置页打开 `keylessFirst` 后,Exa / Tavily / Keenable / Firecrawl / Parallel / AnySearch / You.com 先走免 key 档,只有它限流、额度用尽、要求鉴权或网络失败时才改用 key(同一次请求内重试一次);免 key 档失败后会休息一段时间(上限 45 分钟),期间直接用 key。适合 key 按量计费、想把它留作后备的场景。
|
|
99
101
|
|
|
100
102
|
<img src="https://raw.githubusercontent.com/DDDMUC/dsh-free-search/master/assets/ui-apikeys.png" alt="全局回退优先级与每引擎 API key" width="100%" />
|
|
101
103
|
<sub>▲ 全局回退优先级:每行一个引擎,右侧填该引擎的 API key(已配置会脱敏显示)</sub>
|
|
@@ -144,6 +146,7 @@
|
|
|
144
146
|
| `firecrawl` | Firecrawl | 免费 | 可选 | **无 key 也可用**(官方免 key 匿名额度),配 key 提升限额。注意:keyless 档按**出口 IP** 判定,VPN/代理出口会被 403 拒绝;插件会冷却 6 小时并说明原因(有 key 不受影响) |
|
|
145
147
|
| `parallel` | Parallel | 免费 | 可选 | **无 key 也可用**(官方 MCP 匿名额度),配 key 提升额度并支持精确时间过滤 |
|
|
146
148
|
| `brave` | Brave Search | 付费(有免费额度) | 否 | 需 `BRAVE_API_KEY`([API Dashboard](https://api-dashboard.search.brave.com),$5/月免费额度 ≈ 1,000 次,超出按 $5/1,000 次计费);独立索引,`freshness` 支持 pd/pw/pm/py 与日期区间 |
|
|
149
|
+
| `zhipu` | 智谱搜索 | 付费(按次) | 否 | 需 `ZHIPU_API_KEY`;`search_std` ¥0.01/次、`search_pro` ¥0.03/次、搜狗/夸克 ¥0.05/次;支持 oneDay/oneWeek/oneMonth/oneYear 时间过滤 |
|
|
147
150
|
| `you` | You.com | 免费 | 可选 | **无 key 也可用**(官方免 key 档,每天 100 次),配 `YDC_API_KEY` 提升额度(旧名 `YOUCOM_API_KEY` 继续兼容) |
|
|
148
151
|
| `agy` | Antigravity CLI | 免费 | 是(需 CLI) | 需本机安装 [Antigravity](https://antigravity.google) 并登录,插件通过 `agy -p` 调用;免 key、免额度,默认在引擎列表里,没装 CLI 时自动跳过 |
|
|
149
152
|
| `perplexity` | Perplexity | 付费 | 否 | 需 `PERPLEXITY_API_KEY` |
|
|
@@ -154,6 +157,7 @@
|
|
|
154
157
|
| `metaso` | 秘塔搜索 | 付费(点数) | 否 | 需 `METASO_API_KEY`(metaso.cn/api);官方 AI 搜索 API,按点数计费(约 0.03 元/次,新用户有体验额度);支持网页 / 文库 / 学术三种 `scope`,返回摘要和来源;不在默认回退顺序里,配 key 后显式选用 |
|
|
155
158
|
| `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 时间过滤;显式专用 |
|
|
156
159
|
| `yuanbao` | 腾讯元宝搜索 | 付费(有活动免费额度) | 否 | 需 `TENCENTCLOUD_WSA_APIKEY`(console.cloud.tencent.com/wsapi);API key 网关,支持自然 / 权威 / 混合模式、站点限定、时间范围;活动页可领每日免费额度(限时);显式专用 |
|
|
160
|
+
| `specstream` | SpecStream | 付费 | 否 | 需 `SPECSTREAM_API_KEY`(specstream.ai);网页搜索结果(标题/链接/摘要/发布日期),单次最多 10 条;显式专用(不在默认回退链、Auto 路由或语言池里) |
|
|
157
161
|
| `deepseek-official` | DeepSeek 官方 | 付费 | 否 | 需 `DEEPSEEK_API_KEY`;走 Anthropic 兼容的 `web_search` 服务端工具,每次搜索是一整个模型轮次(慢、耗 token) |
|
|
158
162
|
| `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` 单独覆盖 |
|
|
159
163
|
| `baidu` | 百度千帆 AI 搜索 | 额度 | 否 | 需 `BAIDU_API_KEY`(千帆 AI 搜索:web_search 每日赠 50 次,额度用尽/403 时自动回退到 chat/completions,另有 100 次/天免费额度;超额按量后付费);中文全网,支持时间过滤 |
|
|
@@ -182,10 +186,12 @@
|
|
|
182
186
|
- Keenable:<https://keenable.ai/login>
|
|
183
187
|
- Parallel:<https://platform.parallel.ai>
|
|
184
188
|
- Brave:<https://api-dashboard.search.brave.com>(API 文档:<https://api-dashboard.search.brave.com/app/documentation>)
|
|
189
|
+
- 智谱:<https://bigmodel.cn/apikey/platform>(API 文档:<https://docs.bigmodel.cn/cn/guide/tools/web-search>)
|
|
185
190
|
- Perplexity:<https://www.perplexity.ai/settings/api>
|
|
186
191
|
- SerpBase:<https://serpbase.dev>
|
|
187
192
|
- Serply:<https://serply.io>(API 文档:<https://serply.io/docs>)
|
|
188
193
|
- Outcrawl:<https://outcrawl.ai>(API 文档:<https://outcrawl.ai/docs>)
|
|
194
|
+
- SpecStream:<https://specstream.ai/signup?src=dsh-free-search>(API 文档:<https://specstream.ai/agents.md>;`?src=dsh-free-search` 仅用于来源归因统计,不含任何返佣或推广分成)
|
|
189
195
|
- DeepSeek:<https://platform.deepseek.com/api_keys>
|
|
190
196
|
- 豆包搜索(火山联网搜索):<https://console.volcengine.com/search-infinity/web-search>
|
|
191
197
|
- You.com:<https://you.com/platform/api-keys>
|
|
@@ -199,7 +205,7 @@
|
|
|
199
205
|
| ① 无限免 key | `ddg` / `ddg-lite` / `bing` / `searxng` / `anysearch` | — |
|
|
200
206
|
| ② 匿名额度(不配 key 也能跑) | `exa` / `tavily` / `keenable` / `firecrawl` / `parallel` / `you`(每天 100 次) | 配 key 提额 |
|
|
201
207
|
| ③ 免费额度(需 key) | `zhihu_global` / `zhihu_site`(每日 5,000 次试用)、`doubao`(每月 500 次)、`baidu`(每日 50 次)、`aliyun`(新用户 200 次包)、`brave`(每月 $5 额度 ≈ 1,000 次) | 按量后付费 |
|
|
202
|
-
| ④ 付费升级(需 key 才有产出) | `serpbase`(注册送 100 次)/ `serply`(30 天 2,500 次)/ `outcrawl`(每月 1,000 credits)/ `perplexity` / `deepseek-official` / `deepseek-tools` / `kimi` | 按量 / 按次 |
|
|
208
|
+
| ④ 付费升级(需 key 才有产出) | `serpbase`(注册送 100 次)/ `serply`(30 天 2,500 次)/ `outcrawl`(每月 1,000 credits)/ `specstream`(显式专用)/ `perplexity` / `deepseek-official` / `deepseek-tools` / `kimi` | 按量 / 按次 |
|
|
203
209
|
| ⑤ 按次计费(模型内置,显式-only) | `openai` / `gemini` / `claude` | 按 token + 每次搜索 |
|
|
204
210
|
|
|
205
211
|
选默认池的经验:**① 打底 + ③ 打主力**;② 可以进但要知道它在烧匿名额度;④ 只在你确实需要该源时显式选用;⑤ 永不入池。完整的逐引擎额度事实与默认池提案见 [docs/engine-quota-tiers.md](./docs/engine-quota-tiers.md)。
|
|
@@ -285,7 +291,7 @@ DSH 0.2.1 设置 → 网页搜索 → **DeepSeek 搜索 API** 开关会和本插
|
|
|
285
291
|
配置页提供:
|
|
286
292
|
|
|
287
293
|
- **Search engine**:下拉框切换引擎,保存即生效
|
|
288
|
-
- **API keys**:为 Exa / Tavily / Keenable / Firecrawl / Parallel / Perplexity / DeepSeek / SerpBase / Serply / Outcrawl / Google CSE / Metaso / Yandex / Yuanbao / You.com 填写 key(密码框,保存后只显示"已配置";Exa / Tavily / Keenable / Firecrawl / Parallel / You.com 不填也可免 key 使用)
|
|
294
|
+
- **API keys**:为 Exa / Tavily / Keenable / Firecrawl / Parallel / Perplexity / DeepSeek / SerpBase / Serply / Outcrawl / SpecStream / Google CSE / Metaso / Yandex / Yuanbao / You.com 填写 key(密码框,保存后只显示"已配置";Exa / Tavily / Keenable / Firecrawl / Parallel / You.com 不填也可免 key 使用)
|
|
289
295
|
- **推荐**:付费引擎 key 建议写入 harness 凭据中心 `~/.dsh/.credentials.yaml`(如 `DEEPSEEK_API_KEY: sk-...`,与官方 LLM provider 一致,一处管理所有 key)。插件读取优先级:凭据中心 > 设置页 > 环境变量,设置页填的 key 仅作为遗留兼容。
|
|
290
296
|
- **Test engine**:直测当前引擎可用性(不走回退链,付费引擎无 key 会明确报错)
|
|
291
297
|
- **Use Bing default**:把当前搜索引擎切回稳定的免费 Bing;`Discard` 只撤销尚未保存的编辑
|
|
@@ -430,6 +436,7 @@ perplexityApiKey: ...
|
|
|
430
436
|
serpbaseApiKey: ... # 或通过设置页填写
|
|
431
437
|
serplyApiKey: ... # 或通过设置页填写
|
|
432
438
|
outcrawlApiKey: ... # 或通过设置页填写
|
|
439
|
+
specstreamApiKey: ... # 或通过设置页填写
|
|
433
440
|
googleCseApiKey: ... # Google Custom Search API key
|
|
434
441
|
googleCseId: "..." # Programmable Search Engine 的 cx
|
|
435
442
|
metasoApiKey: ... # Metaso API key (metaso.cn/api)
|
|
@@ -536,7 +543,7 @@ Search engine test:
|
|
|
536
543
|
npx -y -p dsh-free-search dsh-free-search-mcp
|
|
537
544
|
```
|
|
538
545
|
|
|
539
|
-
|
|
546
|
+
`web_search` 默认只自动调用免 key 的 Bing / DuckDuckGo;在参数或 `MCP_SEARCH_ENGINE` 里显式点名 `google` / `baidu` / `brave` / `metaso` / `yandex` / `yuanbao` / `deepseek-tools` / `zhipu` 时才会使用付费引擎。支持 `time_range`(day/week/month/year)。`web_fetch` 仍走直连 / 浏览器 / Exa / Firecrawl。不暴露 `research`、`multi_search`,也不监听端口。Claude Desktop 配置示例:
|
|
540
547
|
|
|
541
548
|
```json
|
|
542
549
|
{
|
|
@@ -550,7 +557,7 @@ npx -y -p dsh-free-search dsh-free-search-mcp
|
|
|
550
557
|
}
|
|
551
558
|
```
|
|
552
559
|
|
|
553
|
-
环境变量:`MCP_SEARCH_ENGINE
|
|
560
|
+
环境变量:`MCP_SEARCH_ENGINE`(默认 auto,也可指定任意引擎 id)、`MCP_MAX_RESULTS`、`MCP_SAFE_SEARCH`、`MCP_LANG`、`MCP_BING_MARKET`、`MCP_BROWSER_FETCH`、`MCP_ALLOW_FAKE_IP_CIDRS`。付费引擎按需读取:`GOOGLE_CSE_API_KEY` + `GOOGLE_CSE_ID`、`BAIDU_API_KEY`、`BRAVE_API_KEY`、`METASO_API_KEY` / `MCP_METASO_SCOPE`、`YANDEX_API_KEY` + `YANDEX_FOLDER_ID`、`TENCENTCLOUD_WSA_APIKEY` / `MCP_YUANBAO_MODE` / `MCP_YUANBAO_SITE`、`DEEPSEEK_TOOLS_API_KEY` 或 `DEEPSEEK_API_KEY`、`ZHIPU_API_KEY` / `MCP_ZHIPU_SEARCH_ENGINE`;抓取层可用 `EXA_API_KEY` / `FIRECRAWL_API_KEY`。
|
|
554
561
|
|
|
555
562
|
#### 平台搜索(platform_search)
|
|
556
563
|
|
|
@@ -624,20 +631,24 @@ npx -y -p dsh-free-search dsh-free-search-mcp
|
|
|
624
631
|
|
|
625
632
|
#### 离线自检断言(tools/)
|
|
626
633
|
|
|
627
|
-
仓库自带 **
|
|
634
|
+
仓库自带 **70 个**零依赖断言脚本(合计 **1032 项**),**不需要 API key、不联网、不需要测试框架**,Node ≥ 20 即可跑。一次跑全部:`npm test`。
|
|
628
635
|
|
|
629
636
|
| 脚本 | 覆盖 | 运行(项数) |
|
|
630
637
|
|---|---|---|
|
|
631
638
|
| `assert-auto-default.mjs` | 自动默认引擎:`provider` 留空时的地区判定(CN → bing、其它 → parallel)、探测失败回落 bing、`DSH_FREE_SEARCH_DEFAULT` 覆盖、提示词跟随、`effectiveProvider` 下发 | `node tools/assert-auto-default.mjs`(7) |
|
|
632
639
|
| `assert-serp-engines.mjs` | HTML 搜索页家族:注册表不变式、时间过滤声明、默认不进 auto 与回退链、显式入池才生效、四个解析器的内联 fixture、反爬识别与文本清洗 | `node tools/assert-serp-engines.mjs`(32) |
|
|
633
|
-
| `assert-engines.mjs` | 引擎清单 / 免费引擎口径 / 语言分池路由 / 池配置字段 / 知乎 URL 剥 utm / `deepseek-tools` 接线与 snippetCap 放宽 | `node tools/assert-engines.mjs`(
|
|
640
|
+
| `assert-engines.mjs` | 引擎清单 / 免费引擎口径 / 语言分池路由 / 池配置字段 / 知乎 URL 剥 utm / `deepseek-tools` 接线与 snippetCap 放宽 / `outcrawl` 与 `specstream` 显式专用注册点 | `node tools/assert-engines.mjs`(89) |
|
|
634
641
|
| `assert-blocked-domains.mjs` | 域名黑名单:解析、匹配、收口,且前后端清洗同口径 | `node tools/assert-blocked-domains.mjs`(69) |
|
|
635
642
|
| `assert-multi-policy.mjs` | multi 执行策略:并发上限是天花板 / 目标成功源非硬下限 / 凭据资格在上限之前分流 / **Fast·Balanced·Deep 档位** | `node tools/assert-multi-policy.mjs`(146) |
|
|
636
643
|
| `assert-multi-limit.mjs` | multi 结果上限(#109):默认 20 / 硬上限 100 / 配置归一化、单次 maxResults 受上限约束、工具参数与本段提示词写明生效上限、设置页字段与保存 | `node tools/assert-multi-limit.mjs`(6) |
|
|
637
644
|
| `assert-maintenance.mjs` | 维护面:CI 在 Node 20/22/24 跑全部断言并过打包闸门、发布脚本会 bump / 校验 / 打 tag / 可发布、恢复官方 provider 的桥接与设置页按钮 | `node tools/assert-maintenance.mjs`(4) |
|
|
638
|
-
| `assert-engine-modules.mjs` | 引擎分层:实现文件存在且被 index 引用、引擎函数已迁出 index、设置页引擎 id 与服务端清单一致、清单覆盖
|
|
645
|
+
| `assert-engine-modules.mjs` | 引擎分层:实现文件存在且被 index 引用、引擎函数已迁出 index、设置页引擎 id 与服务端清单一致、清单覆盖 42 个引擎且免费/按次标记正确、index 不引用引擎私有名 | `node tools/assert-engine-modules.mjs`(6) |
|
|
639
646
|
| `assert-brave.mjs` | Brave Search:catalog/凭据/设置接线、请求头与 count/freshness、错误分类、HTML 清洗、ISO 日期归一化、15s 超时 | `node tools/assert-brave.mjs`(54) |
|
|
640
647
|
| `assert-sidebar-entry.mjs` | 侧栏入口(#129):`sidebarEntry` 默认开、设置页读写、条件注册/注销、`/free-search` 命令打开面板 | `node tools/assert-sidebar-entry.mjs`(4) |
|
|
648
|
+
| `assert-slash-commands.mjs` | 斜杠命令开关:`slashCommands` 默认开、设置页读写、两个命令按配置注册/注销、关闭后提示词不再提 `/free-search-engine` | `node tools/assert-slash-commands.mjs`(4) |
|
|
649
|
+
| `assert-keyless-first.mjs` | 免 key 优先:`keylessFirst` 默认关、开启后先走免 key 档,限流/鉴权/网络失败改用 key 并休息、其他失败不动用 key、无 key 行为不变,覆盖 Tavily、Exa 与 multi 模式 | `node tools/assert-keyless-first.mjs`(13) |
|
|
650
|
+
| `assert-zhipu.mjs` | 智谱搜索:catalog/回退链、请求头与 engine/count/recency、Sogou 步进、响应映射、错误分类、无 key | `node tools/assert-zhipu.mjs`(6) |
|
|
651
|
+
| `assert-deepseek-snippets.mjs` | deepseek-tools 摘要:默认 600、0 不截断、总预算上限、短条目保留 | `node tools/assert-deepseek-snippets.mjs`(4) |
|
|
641
652
|
| `assert-bing-relevance.mjs` | Bing 相关性(#112):单字中文 token 被剔除、无关替代 SERP 被拒、真正相关的结果通过、只命中通用引擎名的整批被拒、单一 token 覆盖一半时放行、单字/纯数字查询的显式行为 | `node tools/assert-bing-relevance.mjs`(6) |
|
|
642
653
|
| `assert-relevance-pools.mjs` | 相关性守卫与语言池(#132/#133):AnySearch 无关批次判空、相关批次保留、shared.js 守卫被 anysearch/searxng/ddg/ddg-lite/degoog/keenable 使用、doctor 地区默认文案与语言池告警、缓存 key 随 zhPool/enPool 变化 | `node tools/assert-relevance-pools.mjs`(5) |
|
|
643
654
|
| `assert-quality.mjs` | 研究证据闸门:8 源 / 3 域 / 3 正文 / 2 日期为 high,3 源 / 2 域 / 1 正文为 medium,单源与失败注记为 low,空包为 low,research 的 schema/输出/brief 接线 | `node tools/assert-quality.mjs`(6) |
|
|
@@ -650,8 +661,8 @@ npx -y -p dsh-free-search dsh-free-search-mcp
|
|
|
650
661
|
| `assert-research-call-wrappers.mjs` | research 四个 `call*` 包装层的替身/底层透传(#75 回归) | `node tools/assert-research-call-wrappers.mjs`(23) |
|
|
651
662
|
| `assert-fetch-chain.mjs` | `fs-quality-fetch` 四层链序、任一层命中即停、exa 失败静默降级 firecrawl、全层失败聚合报错 | `node tools/assert-fetch-chain.mjs`(8) |
|
|
652
663
|
| `assert-fetch-ssrf.mjs` | 抓取 SSRF 防护:公网/私网/保留地址判定、DNS 解析到私网拒绝、localhost 与 IP 字面量拒绝、非 HTTPS 与带凭据 URL 拒绝、fake-ip 网段默认拒绝且仅按配置放行、IPv6 ULA 显式放行、放行后仍拒绝回环/IPv4 私网/链路本地、provider 接线与设置项 | `node tools/assert-fetch-ssrf.mjs`(8) |
|
|
653
|
-
| `assert-mcp.mjs` | MCP stdio 面:initialize 协议协商、tools/list 的 JSON Schema、tools/call 文本结果、工具错误与 JSON-RPC
|
|
654
|
-
| `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` (
|
|
664
|
+
| `assert-mcp.mjs` | MCP stdio 面:initialize 协议协商、tools/list 的 JSON Schema、tools/call 文本结果、工具错误与 JSON-RPC 错误区分、必填参数校验、显式付费引擎与新 provider、bin/files 打包 | `node tools/assert-mcp.mjs`(9) |
|
|
665
|
+
| `assert-mcp.mjs` | MCP stdio surface: initialize negotiation, tools/list JSON Schema, tools/call text results, tool errors vs JSON-RPC errors, required arguments, explicit keyed engines and new providers, bin/files packaging | `node tools/assert-mcp.mjs` (9) |
|
|
655
666
|
| `assert-baidu.mjs` | 百度千帆:key 必填、web_search 首请求、403 或 results.code 额度错误回退 chat/completions(stream:false)、401 不回退、双端失败合并报错 | `node tools/assert-baidu.mjs`(6) |
|
|
656
667
|
| `assert-deepseek-endpoint.mjs` | DeepSeek 搜索端点:默认地址、base/完整 URL 归一、自定义 endpoint 收 Bearer/key/query、配置与设置页接线 | `node tools/assert-deepseek-endpoint.mjs`(4) |
|
|
657
668
|
| `assert-yuanbao.mjs` |key 必填、Bearer 网关/Query/Mode/Site/FromTime、自然与 VR 页面解析、日期归一、错误分类、注册与显式专用 | `node tools/assert-yuanbao.mjs`(6) |
|
|
@@ -745,7 +756,7 @@ This plugin solves exactly that: multiple free engines plus automatic fallback,
|
|
|
745
756
|
#### Engines and switching
|
|
746
757
|
|
|
747
758
|
- **Zero Cost** — Multiple free engines with no API key or registration required
|
|
748
|
-
- **
|
|
759
|
+
- **42 engines available** — DuckDuckGo (HTML / Lite), Bing, AnySearch AI, SearXNG (meta-search with custom instances), Exa, Tavily, Keenable, Firecrawl, Parallel, Brave (`brave`, official Search API, needs `BRAVE_API_KEY`), Zhipu (`zhipu`, official Web Search API, needs `ZHIPU_API_KEY`), Perplexity, SerpBase, Serply, Outcrawl, SpecStream (`specstream`, official Search API, needs `SPECSTREAM_API_KEY`), Google Programmable Search (`google`, needs an API key plus a CSE ID), Metaso (秘塔搜索, official API, billed per call), Yandex Search (official API, billed per request, folder ID required), Tencent Yuanbao Search (API-key gateway with a limited free-quota activity), DeepSeek Official, DeepSeek Native Search API, You.com, Baidu Qianfan, Kimi, Aliyun Bailian, Volcano Doubao, Zhihu web-wide/site search (`zhihu_global`/`zhihu_site`, via the Zhihu open-platform MCP), Antigravity CLI search (`agy`, requires the local CLI), and the model-based OpenAI / Gemini / Claude searches. The default auto-fallback chain covers 30 of them; the 5 HTML SERP engines stay out by default and the per-call billed OpenAI / Gemini / Claude engines, Metaso, Yandex, Yuanbao and SpecStream run only when explicitly named.
|
|
749
760
|
- **5 HTML SERP engines (off by default)** — Traditional result pages join the same engine / fallback / cooldown / settings machinery: `baidu-html` (Baidu web), `so360`, `sogou`, `wechat` (WeChat articles) and `toutiao`. No key, no quota — the trade-off is scraping: captcha/anti-bot pages are classified as `bot-wall` and cool the whole family down for 10 minutes (the egress IP gets flagged as a whole), and results carry no API snippets. They never join auto routing, the fallback chain or the language pools; they only run when named via `engine=` or added to a pool.
|
|
750
761
|
- **Engine whitelist** — turn on Use only the checked engines and only those engines stay usable; engines added by later versions stay off. It maps to `allowedEngines` in the config (a non-empty list is equivalent to disabling every other engine).
|
|
751
762
|
- **Global engine enable/disable & fallback priority** — uncheck engines you never want (applies everywhere: web_search fallback, Auto routing, advanced_search, multi_search, engine tests) and reorder the global fallback chain with ↑↓ (one-click reset).
|
|
@@ -807,6 +818,8 @@ This plugin solves exactly that: multiple free engines plus automatic fallback,
|
|
|
807
818
|
|
|
808
819
|
- **Web Settings UI** — Engine switching, API key configuration (keys masked as "configured" in the UI), and a Chinese/English toggle; the entry is the component-row config (`plugins.row.config`) on the sidebar Plugins page (DSH 0.2.1-rc.2+). Remote access (VPS, reverse proxy, custom domain) works too: the bridge reuses the host's own Host fence, so addresses declared with `--trusted-host` or `--public-url` are accepted (#84).
|
|
809
820
|
- **Optional sidebar entry** — the left-sidebar row is shown by default; turning it off persists in the plugin config and survives restarts. The panel remains reachable through `/free-search` or the plugin page.
|
|
821
|
+
- **Optional slash commands** — `/free-search-engine` and `/free-search` are registered by default; turning `slashCommands` off in settings unregisters both, settings stay on the plugin page, and the prompt points the model at the plugin settings instead. Useful when you only want the search tools for the agent.
|
|
822
|
+
- **Keyless tier first (optional)** — by default an engine with a key always uses it. With `keylessFirst` on in settings, Exa / Tavily / Keenable / Firecrawl / Parallel / AnySearch / You.com try their keyless tier first and switch to the key only when that tier is rate limited, out of quota, asks for auth or fails to connect (retried once within the same request). A failed keyless tier rests for a while (at most 45 minutes), and searches go straight to the key meanwhile. Useful when the key is pay-as-you-go and should be the backup.
|
|
810
823
|
|
|
811
824
|
<img src="https://raw.githubusercontent.com/DDDMUC/dsh-free-search/master/assets/ui-apikeys.png" alt="Global fallback priority and per-engine API keys" width="100%" />
|
|
812
825
|
<sub>▲ Global fallback priority: one engine per row, its API key on the right (configured keys are masked)</sub>
|
|
@@ -856,6 +869,7 @@ If this plugin has been helpful, a ⭐ on [GitHub](https://github.com/DDDMUC/dsh
|
|
|
856
869
|
| `firecrawl` | Firecrawl | Free | Optional | **Usable without a key** (official keyless anonymous quota); a key adds higher limits. Note: the keyless tier is judged by **egress IP** — VPN/proxy egress gets a 403, in which case the plugin cools it down for 6 hours and says why (a key is unaffected) |
|
|
857
870
|
| `parallel` | Parallel | Free | Optional | **Works without a key** (official MCP anonymous quota); a key raises limits and enables precise time filtering |
|
|
858
871
|
| `brave` | Brave Search | Paid (free allowance) | No | Requires `BRAVE_API_KEY` ([API Dashboard](https://api-dashboard.search.brave.com); $5/month free credit ≈ 1,000 queries, then $5 per 1,000); independent index, `freshness` supports pd/pw/pm/py and date ranges |
|
|
872
|
+
| `zhipu` | Zhipu Web Search | Paid (per call) | No | Requires `ZHIPU_API_KEY`; `search_std` ¥0.01/call, `search_pro` ¥0.03/call, Sogou/Quark ¥0.05/call; supports oneDay/oneWeek/oneMonth/oneYear recency |
|
|
859
873
|
| `you` | You.com | Free | Optional | **Works without a key** (official keyless tier, 100 searches a day); set `YDC_API_KEY` for higher limits (the old `YOUCOM_API_KEY` name still works) |
|
|
860
874
|
| `agy` | Antigravity CLI | Free | Yes (CLI) | Requires the [Antigravity](https://antigravity.google) CLI installed and signed in; invoked as `agy -p`, no key and no quota, enabled by default and skipped automatically when the CLI is absent |
|
|
861
875
|
| `perplexity` | Perplexity | Paid | No | Requires `PERPLEXITY_API_KEY` |
|
|
@@ -866,6 +880,7 @@ If this plugin has been helpful, a ⭐ on [GitHub](https://github.com/DDDMUC/dsh
|
|
|
866
880
|
| `metaso` | Metaso (秘塔搜索) | Paid (credits) | No | 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 |
|
|
867
881
|
| `yandex` | Yandex Search | Paid | No | 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 |
|
|
868
882
|
| `yuanbao` | Tencent Yuanbao Search | Paid (limited free-quota activity) | No | 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 |
|
|
883
|
+
| `specstream` | SpecStream | Paid | No | Requires `SPECSTREAM_API_KEY` (specstream.ai); web results with title, URL, snippet and publish date, up to 10 per search; explicit-only (never enters the default fallback chain, Auto routing, or language pools) |
|
|
869
884
|
| `deepseek-official` | DeepSeek Official | Paid | No | Requires `DEEPSEEK_API_KEY`; uses the Anthropic-compatible `web_search` server tool, so every search is a full model turn (slow, token-billed) |
|
|
870
885
|
| `deepseek-tools` | DeepSeek Native Search API | Paid | No | 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 |
|
|
871
886
|
| `baidu` | Baidu Qianfan AI Search | Quota | No | 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 |
|
|
@@ -894,10 +909,12 @@ If this plugin has been helpful, a ⭐ on [GitHub](https://github.com/DDDMUC/dsh
|
|
|
894
909
|
- Keenable: <https://keenable.ai/login>
|
|
895
910
|
- Parallel: <https://platform.parallel.ai>
|
|
896
911
|
- Brave: <https://api-dashboard.search.brave.com> (API docs: <https://api-dashboard.search.brave.com/app/documentation>)
|
|
912
|
+
- Zhipu: <https://bigmodel.cn/apikey/platform> (API docs: <https://docs.bigmodel.cn/cn/guide/tools/web-search>)
|
|
897
913
|
- Perplexity: <https://www.perplexity.ai/settings/api>
|
|
898
914
|
- SerpBase: <https://serpbase.dev>
|
|
899
915
|
- Serply: <https://serply.io> (API docs: <https://serply.io/docs>)
|
|
900
916
|
- Outcrawl: <https://outcrawl.ai> (API docs: <https://outcrawl.ai/docs>)
|
|
917
|
+
- SpecStream: <https://specstream.ai/signup?src=dsh-free-search> (API docs: <https://specstream.ai/agents.md>; `?src=dsh-free-search` is a source-attribution parameter only, with no referral or affiliate payment)
|
|
901
918
|
- DeepSeek: <https://platform.deepseek.com/api_keys>
|
|
902
919
|
- Doubao / Volcano Web Search: <https://console.volcengine.com/search-infinity/web-search>
|
|
903
920
|
- You.com: <https://you.com/platform/api-keys>
|
|
@@ -912,7 +929,7 @@ The free/paid binary is not what decides **who belongs in a default pool** — t
|
|
|
912
929
|
| ① Unlimited, no key | `ddg` / `ddg-lite` / `bing` / `searxng` / `anysearch` | — |
|
|
913
930
|
| ② Anonymous quota (runs without a key) | `exa` / `tavily` / `keenable` / `firecrawl` / `parallel` / `you` (100/day) | key raises the quota |
|
|
914
931
|
| ③ Free quota (key required) | `zhihu_global` / `zhihu_site` (5,000/day trial), `doubao` (500/month), `baidu` (50/day), `aliyun` (200-call starter pack), `brave` ($5/month credit ≈ 1,000 queries) | pay-as-you-go |
|
|
915
|
-
| ④ Paid upgrade (needs a key to return anything) | `serpbase` (100 free on signup) / `serply` (2,500 for 30 days) / `outcrawl` (1,000 credits a month) / `perplexity` / `deepseek-official` / `deepseek-tools` / `kimi` | per call / per query |
|
|
932
|
+
| ④ Paid upgrade (needs a key to return anything) | `serpbase` (100 free on signup) / `serply` (2,500 for 30 days) / `outcrawl` (1,000 credits a month) / `specstream` (explicit-only) / `perplexity` / `deepseek-official` / `deepseek-tools` / `kimi` | per call / per query |
|
|
916
933
|
| ⑤ Per-call billing (model built-in, explicit-only) | `openai` / `gemini` / `claude` | per token + per search |
|
|
917
934
|
|
|
918
935
|
Rule of thumb for a default pool: **① as the floor + ③ as the workhorse**; ② is allowed but remember it burns anonymous quota; ④ only when you actually want that source; ⑤ never enters a pool. Per-engine facts and a default-pool proposal live in [docs/engine-quota-tiers.md](./docs/engine-quota-tiers.md).
|
|
@@ -998,7 +1015,7 @@ After installation, open the config page (DSH 0.2.1-rc.2+):
|
|
|
998
1015
|
The config page provides:
|
|
999
1016
|
|
|
1000
1017
|
- **Search engine**: Select an engine from the dropdown; changes take effect immediately upon saving.
|
|
1001
|
-
- **API keys**: Enter keys for Exa / Tavily / Keenable / Firecrawl / Parallel / Perplexity / DeepSeek / Google CSE / Metaso / Yandex / Yuanbao / You.com (password fields; displayed as "configured" once saved; Exa / Tavily / Keenable / Firecrawl / Parallel / You.com work without a key too).
|
|
1018
|
+
- **API keys**: Enter keys for Exa / Tavily / Keenable / Firecrawl / Parallel / Perplexity / DeepSeek / Google CSE / Metaso / Yandex / Yuanbao / SpecStream / You.com (password fields; displayed as "configured" once saved; Exa / Tavily / Keenable / Firecrawl / Parallel / You.com work without a key too).
|
|
1002
1019
|
- **Recommended**: store paid-engine keys in the harness credential center `~/.dsh/.credentials.yaml` (e.g. `DEEPSEEK_API_KEY: sk-...`, same as the official LLM providers — one place for all keys). Resolution order: credentials center > settings page > environment variable; the settings-page fields remain for backward compatibility.
|
|
1003
1020
|
- **Test engine**: Tests the selected engine directly (no fallback chain; paid engines without a key report an explicit error).
|
|
1004
1021
|
- **Use Bing default**: stage a switch back to the stable free Bing engine; `Discard` only cancels unsaved edits
|
|
@@ -1143,6 +1160,7 @@ perplexityApiKey: ...
|
|
|
1143
1160
|
serpbaseApiKey: ... # Or configure via the web settings UI
|
|
1144
1161
|
serplyApiKey: ... # Or configure via the web settings UI
|
|
1145
1162
|
outcrawlApiKey: ... # Or configure via the web settings UI
|
|
1163
|
+
specstreamApiKey: ... # Or configure via the web settings UI
|
|
1146
1164
|
googleCseApiKey: ... # Google Custom Search API key
|
|
1147
1165
|
googleCseId: "..." # Programmable Search Engine cx
|
|
1148
1166
|
metasoApiKey: ... # Metaso API key (metaso.cn/api)
|
|
@@ -1249,7 +1267,7 @@ The repo also ships a standalone stdio MCP server for Claude Desktop, Cursor, Co
|
|
|
1249
1267
|
npx -y -p dsh-free-search dsh-free-search-mcp
|
|
1250
1268
|
```
|
|
1251
1269
|
|
|
1252
|
-
|
|
1270
|
+
`web_search` auto-runs only the keyless Bing / DuckDuckGo engines; a keyed engine (`google` / `baidu` / `brave` / `metaso` / `yandex` / `yuanbao` / `deepseek-tools` / `zhipu`) runs only when named in the argument or `MCP_SEARCH_ENGINE`. It supports `time_range` (day/week/month/year). `web_fetch` still uses direct / browser / Exa / Firecrawl. It does not expose `research` or `multi_search`, and it does not listen on a port. Claude Desktop example:
|
|
1253
1271
|
|
|
1254
1272
|
```json
|
|
1255
1273
|
{
|
|
@@ -1263,7 +1281,7 @@ The first version exposes `web_search` (Bing / DuckDuckGo, no key) and `web_fetc
|
|
|
1263
1281
|
}
|
|
1264
1282
|
```
|
|
1265
1283
|
|
|
1266
|
-
Environment: `MCP_SEARCH_ENGINE` (auto
|
|
1284
|
+
Environment: `MCP_SEARCH_ENGINE` (auto by default, or any explicit engine id), `MCP_MAX_RESULTS`, `MCP_SAFE_SEARCH`, `MCP_LANG`, `MCP_BING_MARKET`, `MCP_BROWSER_FETCH`, `MCP_ALLOW_FAKE_IP_CIDRS`. Keyed engines read their own env: `GOOGLE_CSE_API_KEY` + `GOOGLE_CSE_ID`, `BAIDU_API_KEY`, `BRAVE_API_KEY`, `METASO_API_KEY` / `MCP_METASO_SCOPE`, `YANDEX_API_KEY` + `YANDEX_FOLDER_ID`, `TENCENTCLOUD_WSA_APIKEY` / `MCP_YUANBAO_MODE` / `MCP_YUANBAO_SITE`, `DEEPSEEK_TOOLS_API_KEY` or `DEEPSEEK_API_KEY`, `ZHIPU_API_KEY` / `MCP_ZHIPU_SEARCH_ENGINE`; the fetch tiers can use `EXA_API_KEY` / `FIRECRAWL_API_KEY`.
|
|
1267
1285
|
|
|
1268
1286
|
#### Platform Search (`platform_search`)
|
|
1269
1287
|
|
|
@@ -1337,20 +1355,24 @@ Restart `dsh web` after switching to apply changes.
|
|
|
1337
1355
|
|
|
1338
1356
|
#### Offline self-check assertions (`tools/`)
|
|
1339
1357
|
|
|
1340
|
-
**
|
|
1358
|
+
**Seventy** zero-dependency assertion scripts ship with the repo (**1032 assertions** total): **no API keys, no network, no test framework**, Node ≥ 20. Run everything with `npm test`.
|
|
1341
1359
|
|
|
1342
1360
|
| Script | Covers | Run (count) |
|
|
1343
1361
|
|---|---|---|
|
|
1344
1362
|
| `assert-auto-default.mjs` | Automatic default engine: the region decision when `provider` is empty (CN to bing, anything else to parallel), falling back to bing on a failed probe, the `DSH_FREE_SEARCH_DEFAULT` override, the prompt following it, and `effectiveProvider` reaching the panel | `node tools/assert-auto-default.mjs` (7) |
|
|
1345
1363
|
| `assert-serp-engines.mjs` | HTML SERP family: registry invariants, time-filter declarations, staying out of auto routing and the fallback chain, only joining when named in a pool, inline fixtures for the four parsers, anti-bot detection and text cleanup | `node tools/assert-serp-engines.mjs` (32) |
|
|
1346
|
-
| `assert-engines.mjs` | engine registry / free-engine rule / language-pool routing / pool config fields / Zhihu URL utm stripping / `deepseek-tools` wiring and snippetCap widening | `node tools/assert-engines.mjs` (
|
|
1364
|
+
| `assert-engines.mjs` | engine registry / free-engine rule / language-pool routing / pool config fields / Zhihu URL utm stripping / `deepseek-tools` wiring and snippetCap widening / `outcrawl` and explicit-only `specstream` registration | `node tools/assert-engines.mjs` (89) |
|
|
1347
1365
|
| `assert-blocked-domains.mjs` | domain blocklist: parsing, matching, choke points, and byte-identical front/back-end sanitizing | `node tools/assert-blocked-domains.mjs` (69) |
|
|
1348
1366
|
| `assert-multi-policy.mjs` | multi execution policy: ceiling semantics / target-is-not-a-hard-minimum / credential eligibility before the ceiling / **Fast·Balanced·Deep presets** | `node tools/assert-multi-policy.mjs` (146) |
|
|
1349
1367
|
| `assert-multi-limit.mjs` | Multi result ceiling (#109): default 20 / hard max 100 / config normalisation, per-call maxResults clamped to the ceiling, tool copy and prompt state name the effective limit, settings field and save path | `node tools/assert-multi-limit.mjs` (6) |
|
|
1350
1368
|
| `assert-maintenance.mjs` | Maintenance surface: CI runs every assertion on Node 20/22/24 plus the packaging gate, the release script bumps / verifies / tags / can publish, and the restore-official-provider bridge and settings button are wired | `node tools/assert-maintenance.mjs` (4) |
|
|
1351
|
-
| `assert-engine-modules.mjs` | Engine layout: module files exist and are imported, implementations have left index.js, the client engine ids match the server catalog, the catalog covers
|
|
1369
|
+
| `assert-engine-modules.mjs` | Engine layout: module files exist and are imported, implementations have left index.js, the client engine ids match the server catalog, the catalog covers 42 engines with the right free/explicit flags, and index never reads an engine-private name | `node tools/assert-engine-modules.mjs` (6) |
|
|
1352
1370
|
| `assert-brave.mjs` | Brave Search: catalog / credential / settings wiring, request headers and count/freshness, error classification, HTML stripping, ISO date normalization, and the 15s budget | `node tools/assert-brave.mjs` (54) |
|
|
1353
1371
|
| `assert-sidebar-entry.mjs` | Sidebar entry (#129): `sidebarEntry` defaults on, settings load/save it, registration can be disposed/recreated, and `/free-search` opens the panel | `node tools/assert-sidebar-entry.mjs` (4) |
|
|
1372
|
+
| `assert-slash-commands.mjs` | Slash-command switch: `slashCommands` defaults on, settings load/save it, both commands register/unregister from config, and the prompt stops naming `/free-search-engine` when off | `node tools/assert-slash-commands.mjs` (4) |
|
|
1373
|
+
| `assert-keyless-first.mjs` | Keyless tier first: `keylessFirst` defaults off; when on, the keyless tier runs first and a rate limit, auth demand or network failure falls back to the key (which then rests the keyless tier), other failures leave the key alone, and no-key behaviour is unchanged; covers Tavily, Exa and multi mode | `node tools/assert-keyless-first.mjs` (13) |
|
|
1374
|
+
| `assert-zhipu.mjs` | Zhipu Web Search: catalog/fallback wiring, auth and request engine/count/recency, Sogou count steps, response mapping, error classes, missing key | `node tools/assert-zhipu.mjs` (6) |
|
|
1375
|
+
| `assert-deepseek-snippets.mjs` | deepseek-tools snippets: default 600, 0 disables the cap, total budget ceiling, and short results survive | `node tools/assert-deepseek-snippets.mjs` (4) |
|
|
1354
1376
|
| `assert-bing-relevance.mjs` | Bing relevance (#112): single-character CJK tokens removed, an unrelated substituted SERP rejected, genuinely relevant results accepted, a batch matching only a generic engine name rejected, one distinctive token covering half the query accepted, and explicit single-character/numeric behaviour | `node tools/assert-bing-relevance.mjs` (6) |
|
|
1355
1377
|
| `assert-relevance-pools.mjs` | Relevance guard and language pools (#132/#133): AnySearch drops an unrelated batch but keeps a matching one, the shared guard is used by anysearch/searxng/ddg/ddg-lite/degoog/keenable, doctor reports the geo default and warns about unused pools, and the cache key changes with zhPool/enPool | `node tools/assert-relevance-pools.mjs` (5) |
|
|
1356
1378
|
| `assert-quality.mjs` | Research evidence gate: 8 sources / 3 domains / 3 bodies / 2 dates is high, 3 / 2 / 1 is medium, a single source or a degraded note is low, an empty package is low, and research wires the gate into schema, output and brief | `node tools/assert-quality.mjs` (6) |
|