@nite07/dsh-search 0.1.2 → 0.1.4
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 +21 -7
- package/README.zh.md +21 -7
- package/dist/client.js +120 -64
- package/dist/index.js +2141 -190
- package/dist/index.js.map +4 -4
- package/docs/BACKENDS.md +80 -0
- package/docs/VERIFICATION.md +11 -0
- package/locale/en.json +16 -8
- package/locale/zh.json +16 -8
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English | [中文](README.zh.md)
|
|
4
4
|
|
|
5
|
-
Multi-backend web search for DeepSeek Harness:
|
|
5
|
+
Multi-backend web search for DeepSeek Harness: 23 search providers you turn on one by one, each with an explicit access mode and a visible cost tier.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -18,20 +18,34 @@ Then make it the search source: open **Settings → Web search**. If the page sa
|
|
|
18
18
|
## Quick start
|
|
19
19
|
|
|
20
20
|
1. Open **Settings → Web search**.
|
|
21
|
-
2. In the **Backends** tab, pick the providers you want, choose
|
|
21
|
+
2. In the **Backends** tab, pick the providers you want, choose the access mode for each, and check the cost line before enabling.
|
|
22
22
|
3. Press **Save settings**. Every backend starts disabled, so nothing is called until you save.
|
|
23
23
|
|
|
24
24
|
The **Test & diagnostics** tab runs one explicit search against a saved backend and shows the exact request outcome.
|
|
25
25
|
|
|
26
26
|
## Backends and cost
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
The list is grouped by the cheapest path a backend offers, so anything with a free option always leads. Each row carries a chip per access mode with that mode's own tier, and the selected one is highlighted.
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
| Group | Backends | Notes |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| **Free path available** | Keenable, AnySearch, Exa, Parallel, You.com, DuckDuckGo, Reddit | No signup, no key, works immediately |
|
|
33
|
+
| **Own account** | X | Your own X browser cookies: no fee, but it breaks when X changes its request signing |
|
|
34
|
+
| **Self-hosted** | SearXNG, open-websearch | You run the service and set your own limits |
|
|
35
|
+
| **Free allowance** | Linkup, Tavily, Brave, Zhihu (web and site), Baidu, Doubao | Sign up for a key, free within the quota |
|
|
36
|
+
| **Trial credits** | Serpex | One-off trial credits, then paid |
|
|
37
|
+
| **Paid** | Mojeek, Anthropic, OpenAI, DeepSeek, Tencent WSA | Billed per use; check the price before enabling |
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
- Every backend is **disabled by default**; nothing is enabled automatically.
|
|
40
|
+
- Per-backend quotas, prices, sources and the date they were checked: [docs/BACKENDS.md](docs/BACKENDS.md).
|
|
41
|
+
|
|
42
|
+
## Tools
|
|
43
|
+
|
|
44
|
+
- `web_search` — the backend fan-out described above.
|
|
45
|
+
- `web_search_plus` — search with a strategy for this call only: (can be switched off in settings, which stops registering it) `mode` (single or parallel), `backends` (a subset of the enabled ones), `allBackends` + `exclude` (everything except a few, cheaper to write than listing ids), `compact` (links and titles only, no snippets, which is the biggest lever on result size; can be made the default in settings) and `maxResults`. Saved configuration is untouched, a backend that is not enabled is reported rather than silently dropped, and the result names the backends that actually ran.
|
|
46
|
+
- `x_thread` — read one X post with its replies, so a discussion a search surfaced can be quoted. Needs the X backend in session mode; a bounded depth, reply count and character budget apply.
|
|
47
|
+
- `reddit_thread` — read one Reddit post with its comment tree, so a model can quote the discussion instead of guessing. Capped by depth, comment count and character budget.
|
|
48
|
+
- `search_manage` — inspect or change this plugin's settings from the agent side.
|
|
35
49
|
|
|
36
50
|
## Development
|
|
37
51
|
|
package/README.zh.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | 中文
|
|
4
4
|
|
|
5
|
-
给 DeepSeek Harness 用的多后端网页搜索:
|
|
5
|
+
给 DeepSeek Harness 用的多后端网页搜索:23 家搜索服务,逐个开关,每个都明确选定接入模式、标明费用档。
|
|
6
6
|
|
|
7
7
|
## 安装
|
|
8
8
|
|
|
@@ -18,20 +18,34 @@ dsh --profile web # 或者用你自己的方式重启 dsh web
|
|
|
18
18
|
## 快速开始
|
|
19
19
|
|
|
20
20
|
1. 打开 **设置 → 网页搜索**
|
|
21
|
-
2.
|
|
21
|
+
2. 在「搜索后端」页签里挑后端,逐家选择接入模式(匿名、Key、OAuth、会话等),先看费用说明再启用
|
|
22
22
|
3. 点「保存设置」。所有后端默认关闭,不保存就一个请求都不会发出
|
|
23
23
|
|
|
24
24
|
想先验一下某家通不通,用「试搜与诊断」页签:它会明确发一次搜索,并把结果和失败原因原样显示出来。
|
|
25
25
|
|
|
26
26
|
## 后端与费用
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
列表按**每家最便宜的用法**分组,所以有完全免费路径的永远排在最前面。每行用 chip 标出**所有**模式各自的费用档,当前选中的那个高亮。
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
| 分组 | 有哪些 | 说明 |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| **有完全免费的用法** | Keenable、AnySearch、Exa、Parallel、You.com、DuckDuckGo、Reddit | 不用注册、不用 Key,开箱可用 |
|
|
33
|
+
| **自带账号** | X | 用你自己 X 网页端的 cookie,不花钱,但 X 改动请求签名时会失效 |
|
|
34
|
+
| **自托管** | SearXNG、open-websearch | 自己跑服务,额度由你自己定 |
|
|
35
|
+
| **免费额度** | Linkup、Tavily、Brave、知乎(网页/站内)、百度、豆包 | 注册拿 Key,额度内免费 |
|
|
36
|
+
| **试用额度** | Serpex | 一次性试用额度,用完转付费 |
|
|
37
|
+
| **付费** | Mojeek、Anthropic、OpenAI、DeepSeek、腾讯 WSA | 按量收费,开之前先看单价 |
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
- 默认**全部关闭**,一个都不会自动启用
|
|
40
|
+
- 各家的具体额度、单价、来源链接和核实日期见 [docs/BACKENDS.md](docs/BACKENDS.md)
|
|
41
|
+
|
|
42
|
+
## 工具
|
|
43
|
+
|
|
44
|
+
- `web_search` — 上面说的多后端搜索。
|
|
45
|
+
- `web_search_plus` — 按本次调用指定搜索策略:(可在设置里关闭:关闭后不注册该工具)`mode`(单后端/并行)、`backends`(从已启用里挑子集)、`allBackends` + `exclude`(全用但排掉几家,比列 id 省字符)、`compact`(只回标题和链接,丢掉摘要,省结果 token;可在设置里设为默认)、`maxResults`。只影响这一次调用,不改配置;没启用的后端会被明确告知而不是被悄悄忽略,实际用了哪些也会回显。
|
|
46
|
+
- `x_thread` — 读一条 X 推文及其回复,让搜索到的讨论可以被引用;需要 X 后端处于会话模式,深度、回复条数和字符预算都有上限。
|
|
47
|
+
- `reddit_thread` — 读某个 Reddit 帖子的完整评论树,让模型能引用真实讨论而不是猜;按深度、评论条数和字符预算截断。
|
|
48
|
+
- `search_manage` — 从 agent 侧查看或修改本插件自己的设置。
|
|
35
49
|
|
|
36
50
|
## 开发
|
|
37
51
|
|