dsh-free-search 0.9.57 → 0.9.59
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 +6 -6
- package/lib/client.js +1 -1
- package/lib/domain_engines.js +655 -0
- package/lib/index.js +3727 -4434
- package/lib/mcp_server.js +283 -5
- package/lib/platform_engines.js +719 -0
- package/lib/vertical.js +65 -713
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -543,7 +543,7 @@ Search engine test:
|
|
|
543
543
|
npx -y -p dsh-free-search dsh-free-search-mcp
|
|
544
544
|
```
|
|
545
545
|
|
|
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
|
|
546
|
+
`web_search` 默认只自动调用免 key 的 Bing / DuckDuckGo;在参数或 `MCP_SEARCH_ENGINE` 里显式点名 `google` / `baidu` / `brave` / `metaso` / `yandex` / `yuanbao` / `deepseek-tools` / `zhipu` 时才会使用付费引擎。支持 `time_range`(day/week/month/year)。`advanced_search` 是同一后端的兼容别名,便于按宿主工具名调用。`web_fetch` 仍走直连 / 浏览器 / Exa / Firecrawl。`multi_search` 并行合并多个引擎(默认只跑免费引擎),`domain_search` 直查包/论文/CVE/财报/金融/法律等垂直源,`platform_search` 直查 GitHub/HN/Reddit/npm/Wikipedia/Bilibili/V2EX/掘金/豆瓣/Qiita/YouTube/Vimeo/X,`video_search` 查 Bing/DDG 视频,`weather` 查询 1–7 天天气;不暴露 `research`,也不监听端口。Claude Desktop 配置示例:
|
|
547
547
|
|
|
548
548
|
```json
|
|
549
549
|
{
|
|
@@ -631,7 +631,7 @@ npx -y -p dsh-free-search dsh-free-search-mcp
|
|
|
631
631
|
|
|
632
632
|
#### 离线自检断言(tools/)
|
|
633
633
|
|
|
634
|
-
仓库自带 **71 个**零依赖断言脚本(合计 **
|
|
634
|
+
仓库自带 **71 个**零依赖断言脚本(合计 **1045 项**),**不需要 API key、不联网、不需要测试框架**,Node ≥ 20 即可跑。一次跑全部:`npm test`。
|
|
635
635
|
|
|
636
636
|
| 脚本 | 覆盖 | 运行(项数) |
|
|
637
637
|
|---|---|---|
|
|
@@ -661,8 +661,8 @@ npx -y -p dsh-free-search dsh-free-search-mcp
|
|
|
661
661
|
| `assert-research-call-wrappers.mjs` | research 四个 `call*` 包装层的替身/底层透传(#75 回归) | `node tools/assert-research-call-wrappers.mjs`(23) |
|
|
662
662
|
| `assert-fetch-chain.mjs` | `fs-quality-fetch` 四层链序、任一层命中即停、exa 失败静默降级 firecrawl、全层失败聚合报错 | `node tools/assert-fetch-chain.mjs`(8) |
|
|
663
663
|
| `assert-fetch-ssrf.mjs` | 抓取 SSRF 防护:公网/私网/保留地址判定、DNS 解析到私网拒绝、localhost 与 IP 字面量拒绝、非 HTTPS 与带凭据 URL 拒绝、fake-ip 网段默认拒绝且仅按配置放行、IPv6 ULA 显式放行、放行后仍拒绝回环/IPv4 私网/链路本地、provider 接线与设置项 | `node tools/assert-fetch-ssrf.mjs`(8) |
|
|
664
|
-
| `assert-mcp.mjs` | MCP stdio 面:initialize 协议协商、tools/list 的 JSON Schema、tools/call 文本结果、工具错误与 JSON-RPC 错误区分、必填参数校验、显式付费引擎与新 provider、bin/files 打包 | `node tools/assert-mcp.mjs`(
|
|
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` (
|
|
664
|
+
| `assert-mcp.mjs` | MCP stdio 面:initialize 协议协商、tools/list 的 JSON Schema、tools/call 文本结果、工具错误与 JSON-RPC 错误区分、必填参数校验、显式付费引擎与新 provider、advanced/multi/domain/platform/video/weather 新工具、bin/files 打包 | `node tools/assert-mcp.mjs`(10) |
|
|
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, advanced/multi/domain/platform/video/weather tools, bin/files packaging | `node tools/assert-mcp.mjs` (10) |
|
|
666
666
|
| `assert-baidu.mjs` | 百度千帆:key 必填、web_search 首请求、403 或 results.code 额度错误回退 chat/completions(stream:false)、401 不回退、双端失败合并报错 | `node tools/assert-baidu.mjs`(6) |
|
|
667
667
|
| `assert-deepseek-endpoint.mjs` | DeepSeek 搜索端点:默认地址、base/完整 URL 归一、自定义 endpoint 收 Bearer/key/query、配置与设置页接线 | `node tools/assert-deepseek-endpoint.mjs`(4) |
|
|
668
668
|
| `assert-yuanbao.mjs` |key 必填、Bearer 网关/Query/Mode/Site/FromTime、自然与 VR 页面解析、日期归一、错误分类、注册与显式专用 | `node tools/assert-yuanbao.mjs`(6) |
|
|
@@ -1280,7 +1280,7 @@ The repo also ships a standalone stdio MCP server for Claude Desktop, Cursor, Co
|
|
|
1280
1280
|
npx -y -p dsh-free-search dsh-free-search-mcp
|
|
1281
1281
|
```
|
|
1282
1282
|
|
|
1283
|
-
`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.
|
|
1283
|
+
`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). `advanced_search` is a compatibility alias over the same backend for hosts that call that tool name. `web_fetch` still uses direct / browser / Exa / Firecrawl. `multi_search` merges several engines in parallel (free engines by default), `domain_search` queries structured package/paper/CVE/filing/finance/law sources, `platform_search` queries GitHub/HN/Reddit/npm/Wikipedia/Bilibili/V2EX/Juejin/Douban/Qiita/YouTube/Vimeo/X, `video_search` queries Bing/DDG videos, and `weather` returns a 1-7 day forecast; `research` remains unavailable, and the server does not listen on a port. Claude Desktop example:
|
|
1284
1284
|
|
|
1285
1285
|
```json
|
|
1286
1286
|
{
|
|
@@ -1368,7 +1368,7 @@ Restart `dsh web` after switching to apply changes.
|
|
|
1368
1368
|
|
|
1369
1369
|
#### Offline self-check assertions (`tools/`)
|
|
1370
1370
|
|
|
1371
|
-
**Seventy-one** zero-dependency assertion scripts ship with the repo (**
|
|
1371
|
+
**Seventy-one** zero-dependency assertion scripts ship with the repo (**1045 assertions** total): **no API keys, no network, no test framework**, Node ≥ 20. Run everything with `npm test`.
|
|
1372
1372
|
|
|
1373
1373
|
| Script | Covers | Run (count) |
|
|
1374
1374
|
|---|---|---|
|
package/lib/client.js
CHANGED
|
@@ -769,7 +769,7 @@ window.__ModuleLoader__.load({
|
|
|
769
769
|
"cache_search",
|
|
770
770
|
"domain_search",
|
|
771
771
|
];
|
|
772
|
-
const PLUGIN_VERSION = "0.9.
|
|
772
|
+
const PLUGIN_VERSION = "0.9.59";
|
|
773
773
|
const PLUGIN_REPO_URL = "https://github.com/DDDMUC/dsh-free-search";
|
|
774
774
|
// 右侧浮动目录(#85):条目顺序即页面顺序,anchor 是页面里对应 field 的 id。
|
|
775
775
|
const NAV_ITEMS = [
|