dsh-bing-search 1.1.4 → 1.1.6

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/CHANGELOG.md CHANGED
@@ -1,63 +1,73 @@
1
- # Changelog
2
-
3
- ## [1.1.4] - 2026-09-28
4
-
5
- ### Added
6
- - DSH `>= 0.1.6` 的插件页配置表单(`client.js`):编辑搜索入口、语言和解析上限。旧版本仍走 `settings.installSection`。
7
-
8
- ### Changed
9
- - 配置字段在运行时支持 `volatile` 时标记为 volatile,搜索时解开热更新后的值;没有该方法的旧运行时保持原样。
10
-
11
- ## [1.1.3] - 2026-09-13
12
-
13
- ### Changed
14
- - 包名、GitHub 仓库、本地目录统一为 `dsh-bing-search`(无作用域、不带 `@cwsong/`)。`dsh-websearch-bing` 被 npm 判定与已占用的 `dsh-web-search-bing` 过于相似。
15
-
16
- ## [1.1.2] - 2026-09-11
17
-
18
- ### Changed
19
- - npm 包名改为 `@cwsong/dsh-websearch-bing`(无作用域名被判定与已占用的 `dsh-web-search-bing` 过于相似)
20
-
21
- ## [1.1.1] - 2026-09-11
22
-
23
- ### Changed
24
- - 包名、GitHub 仓库、loader 行和设置节统一为 `dsh-websearch-bing` / `websearch-bing`(npm 上的 `dsh-web-search-bing` 已被占用)
25
-
26
- ## [1.1.0] - 2026-09-11
27
-
28
- ### Fixed
29
- - 适配 DSH `0.1.5-rc.1`:peerDependencies 从 `^0.1.0-rc.6` 升级到 `>=0.1.5-rc.1 <0.2.0-0`(旧的 prerelease 区间不匹配 0.1.5-rc.x,导致安装/启动报错)
30
- - `cordis.patch.yml` 补回 `fetchProvider: http`:补丁是整段替换 `web` 行配置,只写 `searchProvider` 会丢掉 base 层显式设置的 fetch provider
31
- - 清理从 duckduckgo 版本遗留的注释/模块名(`web-search-duckduckgo`、`@module dsh-web-search-duckduckgo`)
32
- - 修复 README_EN.md 的 emoji 乱码
33
-
34
- ### Changed
35
- - 设置节注册改用电官方同款 `ctx.inject(["settings"])` + `settings.installSection(...)` 模式,命名空间改为普通字符串常量
36
- - provider 改为「单实例 + resolveOptions thunk」模式(对齐官方 `@deepseek-ai/dsh-web-search-deepseek`),每次搜索快照一次配置,不再每次 new 实例
37
- - `available()` 现在校验 endpoint 是合法 URL 且 maxResults 为正整数
38
- - provider 错误信息附带端点恢复指引(对齐官方错误风格)
39
- - `@deepseek-ai/schemastery` 从 peerDependencies 移到 dependencies(对齐官方插件结构)
40
- - 移除未被代码引用的 `@deepseek-ai/dsh-agent` peer 依赖
41
- - User-Agent 更新到 Chrome/131
42
- - HTML 实体解码补充 `&ensp;` `&emsp;` `&thinsp;` `&ndash;` `&mdash;` `&hellip;`
43
-
44
- ## [1.0.2] - 2026-08-18
45
-
46
- ### Changed
47
- - 重命名为 dsh-web-search-bing(从 dsh-web-search-duckduckgo 迁移)
48
- - 更新 README 和文档
49
-
50
- ## [1.0.1] - 2026-08-18
51
-
52
- ### Changed
53
- - 从 DuckDuckGo 切换到 Bing(cn.bing.com,国内可达)
54
- - 更新 HTML 解析逻辑适配 Bing 页面结构
55
- - 添加 ensearch 参数支持中英文搜索切换
56
- - 添加 accept-language 头部
57
-
58
- ## [1.0.0] - 2026-08-18
59
-
60
- ### Added
61
- - 初始版本:DuckDuckGo 免费搜索 provider
62
- - 无需 API Key,不消耗 DeepSeek 搜索配额
63
- - 支持 DSH web 能力接缝注册
1
+ # Changelog
2
+
3
+ ## [1.1.6] - 2026-09-29
4
+
5
+ ### Fixed
6
+ - 启动报 `bing-search (dsh-bing-search): failed to import`:`@deepseek-ai/schemastery` 从 dependencies 改回 peerDependencies。链接进 profile 的插件只有 peer 会解析到宿主安装;作为 dependency 时 Node 在插件目录里找不到它,loader 建不起 fiber。
7
+
8
+ ## [1.1.5] - 2026-09-29
9
+
10
+ ### Fixed
11
+ - 安装被 DSH `0.2.0-rc.1` 拒绝:`@deepseek-ai/dsh-web` 与 `@deepseek-ai/dsh-settings` 的 peer 上限从 `<0.2.0-0` 放宽到 `<0.3.0-0`。运行时只使用 `WebError`、`ctx.web.registerSearchProvider`,以及在存在时才调用的 `settings.installSection`。
12
+
13
+ ## [1.1.4] - 2026-09-28
14
+
15
+ ### Added
16
+ - DSH `>= 0.1.6` 的插件页配置表单(`client.js`):编辑搜索入口、语言和解析上限。旧版本仍走 `settings.installSection`。
17
+
18
+ ### Changed
19
+ - 配置字段在运行时支持 `volatile` 时标记为 volatile,搜索时解开热更新后的值;没有该方法的旧运行时保持原样。
20
+
21
+ ## [1.1.3] - 2026-09-13
22
+
23
+ ### Changed
24
+ - 包名、GitHub 仓库、本地目录统一为 `dsh-bing-search`(无作用域、不带 `@cwsong/`)。`dsh-websearch-bing` 被 npm 判定与已占用的 `dsh-web-search-bing` 过于相似。
25
+
26
+ ## [1.1.2] - 2026-09-11
27
+
28
+ ### Changed
29
+ - npm 包名改为 `@cwsong/dsh-websearch-bing`(无作用域名被判定与已占用的 `dsh-web-search-bing` 过于相似)
30
+
31
+ ## [1.1.1] - 2026-09-11
32
+
33
+ ### Changed
34
+ - 包名、GitHub 仓库、loader 行和设置节统一为 `dsh-websearch-bing` / `websearch-bing`(npm 上的 `dsh-web-search-bing` 已被占用)
35
+
36
+ ## [1.1.0] - 2026-09-11
37
+
38
+ ### Fixed
39
+ - 适配 DSH `0.1.5-rc.1`:peerDependencies 从 `^0.1.0-rc.6` 升级到 `>=0.1.5-rc.1 <0.2.0-0`(旧的 prerelease 区间不匹配 0.1.5-rc.x,导致安装/启动报错)
40
+ - `cordis.patch.yml` 补回 `fetchProvider: http`:补丁是整段替换 `web` 行配置,只写 `searchProvider` 会丢掉 base 层显式设置的 fetch provider
41
+ - 清理从 duckduckgo 版本遗留的注释/模块名(`web-search-duckduckgo`、`@module dsh-web-search-duckduckgo`)
42
+ - 修复 README_EN.md 的 emoji 乱码
43
+
44
+ ### Changed
45
+ - 设置节注册改用电官方同款 `ctx.inject(["settings"])` + `settings.installSection(...)` 模式,命名空间改为普通字符串常量
46
+ - provider 改为「单实例 + resolveOptions thunk」模式(对齐官方 `@deepseek-ai/dsh-web-search-deepseek`),每次搜索快照一次配置,不再每次 new 实例
47
+ - `available()` 现在校验 endpoint 是合法 URL 且 maxResults 为正整数
48
+ - provider 错误信息附带端点恢复指引(对齐官方错误风格)
49
+ - `@deepseek-ai/schemastery` 从 peerDependencies 移到 dependencies(对齐官方插件结构)
50
+ - 移除未被代码引用的 `@deepseek-ai/dsh-agent` peer 依赖
51
+ - User-Agent 更新到 Chrome/131
52
+ - HTML 实体解码补充 `&ensp;` `&emsp;` `&thinsp;` `&ndash;` `&mdash;` `&hellip;`
53
+
54
+ ## [1.0.2] - 2026-08-18
55
+
56
+ ### Changed
57
+ - 重命名为 dsh-web-search-bing(从 dsh-web-search-duckduckgo 迁移)
58
+ - 更新 README 和文档
59
+
60
+ ## [1.0.1] - 2026-08-18
61
+
62
+ ### Changed
63
+ - 从 DuckDuckGo 切换到 Bing(cn.bing.com,国内可达)
64
+ - 更新 HTML 解析逻辑适配 Bing 页面结构
65
+ - 添加 ensearch 参数支持中英文搜索切换
66
+ - 添加 accept-language 头部
67
+
68
+ ## [1.0.0] - 2026-08-18
69
+
70
+ ### Added
71
+ - 初始版本:DuckDuckGo 免费搜索 provider
72
+ - 无需 API Key,不消耗 DeepSeek 搜索配额
73
+ - 支持 DSH web 能力接缝注册
package/README.md CHANGED
@@ -1,93 +1,93 @@
1
- # dsh-bing-search
2
-
3
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
- [![DSH Compatible](https://img.shields.io/badge/DSH-0.1.5--rc.1-brightgreen)](https://github.com/deepseek-ai/deepseek-harness)
5
- [![npm](https://img.shields.io/npm/v/dsh-bing-search.svg)](https://www.npmjs.com/package/dsh-bing-search)
6
-
7
- > DeepSeek Harness (DSH) 的免费 Bing 搜索 provider。无需 API Key,不消耗模型搜索配额。
8
-
9
- <p align="right">
10
- <a href="README_EN.md">English</a> | <b>中文</b>
11
- </p>
12
-
13
- > 本仓库是 [godchen520/dsh-web-search-bing](https://github.com/godchen520/dsh-web-search-bing) 的维护 fork,已适配 DSH `0.1.5-rc.1`。包名用 `dsh-bing-search`,因为 `dsh-web-search-bing` 已被占用,`dsh-websearch-bing` 又被 npm 判定过于相似。
14
-
15
- ## 特点
16
-
17
- - **完全免费**:使用 Bing 公共 HTML 搜索页面,无需 API Key
18
- - **国内可达**:默认使用 cn.bing.com,中国大陆可直接访问
19
- - **零配额消耗**:不消耗 DeepSeek 或任何 LLM 的搜索配额
20
- - **即插即用**:安装后自动把 `web_search` 切到 `bing-free`
21
- - **可配置**:支持切换搜索端点、中英文结果、结果数量
22
-
23
- ## 安装
24
-
25
- npm:
26
-
27
- ```sh
28
- dsh plugin --profile desktop add dsh-bing-search
29
- ```
30
-
31
- GitHub:
32
-
33
- ```sh
34
- dsh plugin --profile desktop add github:whiteS18/dsh-bing-search
35
- ```
36
-
37
- 网页版 profile 把 `desktop` 换成 `web`。装完重启 DSH。
38
-
39
- 也可以在 profile 目录手动安装:
40
-
41
- ```sh
42
- cd $DSH_HOME/profiles/desktop # 桌面版通常为 ~/.dsh/profiles/desktop
43
- pnpm add dsh-bing-search
44
- ```
45
-
46
- 然后把 `"dsh-bing-search"` 加入 `dsh.profile.bundles`(放在 `@deepseek-ai/dsh-web-app` 之后),重启 DSH。
47
-
48
- **注意:** `node_modules` 里的目录名必须等于 `package.json` 的 `name`。不要用旧名 `dsh-web-search-bing` 去 link 这个目录,否则桌面端会报 `profile package identity is invalid`。
49
-
50
- ## 配置
51
-
52
- 当前版本没有设置页卡片。改 `~/.dsh/settings.yaml`(热加载):
53
-
54
- ```yaml
55
- bing-search:
56
- endpoint: https://cn.bing.com/search
57
- maxResults: 20
58
- ensearch: 0
59
- ```
60
-
61
- 或改 profile 的 `cordis.patch.yml` 后重启:
62
-
63
- ```yaml
64
- - id: bing-search
65
- config:
66
- endpoint: https://cn.bing.com/search
67
- maxResults: 15
68
- ensearch: 0
69
- ```
70
-
71
- | 参数 | 默认值 | 说明 |
72
- |------|--------|------|
73
- | `endpoint` | `https://cn.bing.com/search` | 搜索端点 |
74
- | `maxResults` | `20` | 每次搜索最大结果数 |
75
- | `ensearch` | `0` | 0=中文结果,1=英文结果 |
76
-
77
- 设置 → 插件 → 插件配置 里的 **Web Search** 卡片属于官方 `web-search-deepseek`,不是本插件。
78
-
79
- ## 如何确认走的是 Bing
80
-
81
- 把 endpoint 临时改成无效地址后再搜一次。如果报错包含 `bing-search` 和你写的 endpoint,就是本 provider。测完改回去。
82
-
83
- ## 恢复默认搜索
84
-
85
- 把本插件 patch 中的 `searchProvider` 改回 `deepseek-official`(或从 bundles 移除本包),重启即可。
86
-
87
- ## 工作原理
88
-
89
- 调用 `cn.bing.com/search` → 解析 HTML 搜索结果(`<li class="b_algo">` 块)→ 提取标题/URL/摘要 → 返回给 DSH 的 `web_search` 工具。
90
-
91
- ## License
92
-
93
- [MIT](LICENSE)
1
+ # dsh-bing-search
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+ [![DSH Compatible](https://img.shields.io/badge/DSH-0.1.5--rc.1%20..%20%3C0.3.0-brightgreen)](https://github.com/deepseek-ai/deepseek-harness)
5
+ [![npm](https://img.shields.io/npm/v/dsh-bing-search.svg)](https://www.npmjs.com/package/dsh-bing-search)
6
+
7
+ > DeepSeek Harness (DSH) 的免费 Bing 搜索 provider。无需 API Key,不消耗模型搜索配额。
8
+
9
+ <p align="right">
10
+ <a href="README_EN.md">English</a> | <b>中文</b>
11
+ </p>
12
+
13
+ > 本仓库是 [godchen520/dsh-web-search-bing](https://github.com/godchen520/dsh-web-search-bing) 的维护 fork,适配 DSH `>=0.1.5-rc.1 <0.3.0`(含 `0.2.0-rc.1`)。包名用 `dsh-bing-search`,因为 `dsh-web-search-bing` 已被占用,`dsh-websearch-bing` 又被 npm 判定过于相似。
14
+
15
+ ## 特点
16
+
17
+ - **完全免费**:使用 Bing 公共 HTML 搜索页面,无需 API Key
18
+ - **国内可达**:默认使用 cn.bing.com,中国大陆可直接访问
19
+ - **零配额消耗**:不消耗 DeepSeek 或任何 LLM 的搜索配额
20
+ - **即插即用**:安装后自动把 `web_search` 切到 `bing-free`
21
+ - **可配置**:支持切换搜索端点、中英文结果、结果数量
22
+
23
+ ## 安装
24
+
25
+ npm:
26
+
27
+ ```sh
28
+ dsh plugin --profile desktop add dsh-bing-search
29
+ ```
30
+
31
+ GitHub:
32
+
33
+ ```sh
34
+ dsh plugin --profile desktop add github:whiteS18/dsh-bing-search
35
+ ```
36
+
37
+ 网页版 profile 把 `desktop` 换成 `web`。装完重启 DSH。
38
+
39
+ 也可以在 profile 目录手动安装:
40
+
41
+ ```sh
42
+ cd $DSH_HOME/profiles/desktop # 桌面版通常为 ~/.dsh/profiles/desktop
43
+ pnpm add dsh-bing-search
44
+ ```
45
+
46
+ 然后把 `"dsh-bing-search"` 加入 `dsh.profile.bundles`(放在 `@deepseek-ai/dsh-web-app` 之后),重启 DSH。
47
+
48
+ **注意:** `node_modules` 里的目录名必须等于 `package.json` 的 `name`。不要用旧名 `dsh-web-search-bing` 去 link 这个目录,否则桌面端会报 `profile package identity is invalid`。
49
+
50
+ ## 配置
51
+
52
+ 当前版本没有设置页卡片。改 `~/.dsh/settings.yaml`(热加载):
53
+
54
+ ```yaml
55
+ bing-search:
56
+ endpoint: https://cn.bing.com/search
57
+ maxResults: 20
58
+ ensearch: 0
59
+ ```
60
+
61
+ 或改 profile 的 `cordis.patch.yml` 后重启:
62
+
63
+ ```yaml
64
+ - id: bing-search
65
+ config:
66
+ endpoint: https://cn.bing.com/search
67
+ maxResults: 15
68
+ ensearch: 0
69
+ ```
70
+
71
+ | 参数 | 默认值 | 说明 |
72
+ |------|--------|------|
73
+ | `endpoint` | `https://cn.bing.com/search` | 搜索端点 |
74
+ | `maxResults` | `20` | 每次搜索最大结果数 |
75
+ | `ensearch` | `0` | 0=中文结果,1=英文结果 |
76
+
77
+ 设置 → 插件 → 插件配置 里的 **Web Search** 卡片属于官方 `web-search-deepseek`,不是本插件。
78
+
79
+ ## 如何确认走的是 Bing
80
+
81
+ 把 endpoint 临时改成无效地址后再搜一次。如果报错包含 `bing-search` 和你写的 endpoint,就是本 provider。测完改回去。
82
+
83
+ ## 恢复默认搜索
84
+
85
+ 把本插件 patch 中的 `searchProvider` 改回 `deepseek-official`(或从 bundles 移除本包),重启即可。
86
+
87
+ ## 工作原理
88
+
89
+ 调用 `cn.bing.com/search` → 解析 HTML 搜索结果(`<li class="b_algo">` 块)→ 提取标题/URL/摘要 → 返回给 DSH 的 `web_search` 工具。
90
+
91
+ ## License
92
+
93
+ [MIT](LICENSE)
package/README_EN.md CHANGED
@@ -1,93 +1,93 @@
1
- # dsh-bing-search
2
-
3
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
- [![DSH Compatible](https://img.shields.io/badge/DSH-0.1.5--rc.1-brightgreen)](https://github.com/deepseek-ai/deepseek-harness)
5
- [![npm](https://img.shields.io/npm/v/dsh-bing-search.svg)](https://www.npmjs.com/package/dsh-bing-search)
6
-
7
- > Free Bing-backed web search provider for DeepSeek Harness (DSH). No API key needed, no search quota consumed.
8
-
9
- <p align="right">
10
- <b>English</b> | <a href="README.md">中文</a>
11
- </p>
12
-
13
- > This is a maintenance fork of [godchen520/dsh-web-search-bing](https://github.com/godchen520/dsh-web-search-bing), updated for DSH `0.1.5-rc.1`. The package is `dsh-bing-search` because `dsh-web-search-bing` is taken on npm and `dsh-websearch-bing` was rejected as too similar.
14
-
15
- ## Features
16
-
17
- - **Completely Free** — Uses Bing's public HTML search page, no API key required
18
- - **China Accessible** — Defaults to `cn.bing.com`, works in mainland China
19
- - **Zero Quota** — Doesn't consume DeepSeek or any LLM search quota
20
- - **Plug & Play** — Switches `web_search` to `bing-free` after install
21
- - **Configurable** — Switch endpoints, language, and result count
22
-
23
- ## Installation
24
-
25
- npm:
26
-
27
- ```sh
28
- dsh plugin --profile desktop add dsh-bing-search
29
- ```
30
-
31
- GitHub:
32
-
33
- ```sh
34
- dsh plugin --profile desktop add github:whiteS18/dsh-bing-search
35
- ```
36
-
37
- Use `web` instead of `desktop` for the web profile. Restart DSH after install.
38
-
39
- Or install by hand in the profile directory:
40
-
41
- ```sh
42
- cd $DSH_HOME/profiles/desktop # usually ~/.dsh/profiles/desktop for the desktop app
43
- pnpm add dsh-bing-search
44
- ```
45
-
46
- Then add `"dsh-bing-search"` to `dsh.profile.bundles` (after `@deepseek-ai/dsh-web-app`) and restart DSH.
47
-
48
- **Note:** the directory name under `node_modules` must equal `package.json` `name`. Do not link this package as `dsh-web-search-bing`, or the desktop app will fail with `profile package identity is invalid`.
49
-
50
- ## Configuration
51
-
52
- This version has no Settings card. Edit `~/.dsh/settings.yaml` (hot-reloaded):
53
-
54
- ```yaml
55
- bing-search:
56
- endpoint: https://cn.bing.com/search
57
- maxResults: 20
58
- ensearch: 0
59
- ```
60
-
61
- Or override in the profile `cordis.patch.yml` and restart:
62
-
63
- ```yaml
64
- - id: bing-search
65
- config:
66
- endpoint: https://cn.bing.com/search
67
- maxResults: 15
68
- ensearch: 0
69
- ```
70
-
71
- | Option | Default | Description |
72
- |--------|---------|-------------|
73
- | `endpoint` | `https://cn.bing.com/search` | Search endpoint |
74
- | `maxResults` | `20` | Max results parsed per search |
75
- | `ensearch` | `0` | `0` = Chinese results, `1` = English |
76
-
77
- The **Web Search** card under Settings → Plugins → Plugin configuration belongs to official `web-search-deepseek`, not this plugin.
78
-
79
- ## How to confirm Bing is in use
80
-
81
- Temporarily set `endpoint` to an invalid URL and search again. If the error names `bing-search` and the endpoint you set, this provider handled the request. Restore the endpoint afterwards.
82
-
83
- ## Restoring the default search
84
-
85
- Change `searchProvider` in this plugin's patch back to `deepseek-official` (or remove this package from `bundles`) and restart.
86
-
87
- ## How It Works
88
-
89
- Queries `cn.bing.com/search` → parses HTML result blocks (`<li class="b_algo">`) → extracts title/URL/snippet → returns to DSH's `web_search` tool.
90
-
91
- ## License
92
-
93
- [MIT](LICENSE)
1
+ # dsh-bing-search
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+ [![DSH Compatible](https://img.shields.io/badge/DSH-0.1.5--rc.1%20..%20%3C0.3.0-brightgreen)](https://github.com/deepseek-ai/deepseek-harness)
5
+ [![npm](https://img.shields.io/npm/v/dsh-bing-search.svg)](https://www.npmjs.com/package/dsh-bing-search)
6
+
7
+ > Free Bing-backed web search provider for DeepSeek Harness (DSH). No API key needed, no search quota consumed.
8
+
9
+ <p align="right">
10
+ <b>English</b> | <a href="README.md">中文</a>
11
+ </p>
12
+
13
+ > This is a maintenance fork of [godchen520/dsh-web-search-bing](https://github.com/godchen520/dsh-web-search-bing), compatible with DSH `>=0.1.5-rc.1 <0.3.0` (including `0.2.0-rc.1`). The package is `dsh-bing-search` because `dsh-web-search-bing` is taken on npm and `dsh-websearch-bing` was rejected as too similar.
14
+
15
+ ## Features
16
+
17
+ - **Completely Free** — Uses Bing's public HTML search page, no API key required
18
+ - **China Accessible** — Defaults to `cn.bing.com`, works in mainland China
19
+ - **Zero Quota** — Doesn't consume DeepSeek or any LLM search quota
20
+ - **Plug & Play** — Switches `web_search` to `bing-free` after install
21
+ - **Configurable** — Switch endpoints, language, and result count
22
+
23
+ ## Installation
24
+
25
+ npm:
26
+
27
+ ```sh
28
+ dsh plugin --profile desktop add dsh-bing-search
29
+ ```
30
+
31
+ GitHub:
32
+
33
+ ```sh
34
+ dsh plugin --profile desktop add github:whiteS18/dsh-bing-search
35
+ ```
36
+
37
+ Use `web` instead of `desktop` for the web profile. Restart DSH after install.
38
+
39
+ Or install by hand in the profile directory:
40
+
41
+ ```sh
42
+ cd $DSH_HOME/profiles/desktop # usually ~/.dsh/profiles/desktop for the desktop app
43
+ pnpm add dsh-bing-search
44
+ ```
45
+
46
+ Then add `"dsh-bing-search"` to `dsh.profile.bundles` (after `@deepseek-ai/dsh-web-app`) and restart DSH.
47
+
48
+ **Note:** the directory name under `node_modules` must equal `package.json` `name`. Do not link this package as `dsh-web-search-bing`, or the desktop app will fail with `profile package identity is invalid`.
49
+
50
+ ## Configuration
51
+
52
+ This version has no Settings card. Edit `~/.dsh/settings.yaml` (hot-reloaded):
53
+
54
+ ```yaml
55
+ bing-search:
56
+ endpoint: https://cn.bing.com/search
57
+ maxResults: 20
58
+ ensearch: 0
59
+ ```
60
+
61
+ Or override in the profile `cordis.patch.yml` and restart:
62
+
63
+ ```yaml
64
+ - id: bing-search
65
+ config:
66
+ endpoint: https://cn.bing.com/search
67
+ maxResults: 15
68
+ ensearch: 0
69
+ ```
70
+
71
+ | Option | Default | Description |
72
+ |--------|---------|-------------|
73
+ | `endpoint` | `https://cn.bing.com/search` | Search endpoint |
74
+ | `maxResults` | `20` | Max results parsed per search |
75
+ | `ensearch` | `0` | `0` = Chinese results, `1` = English |
76
+
77
+ The **Web Search** card under Settings → Plugins → Plugin configuration belongs to official `web-search-deepseek`, not this plugin.
78
+
79
+ ## How to confirm Bing is in use
80
+
81
+ Temporarily set `endpoint` to an invalid URL and search again. If the error names `bing-search` and the endpoint you set, this provider handled the request. Restore the endpoint afterwards.
82
+
83
+ ## Restoring the default search
84
+
85
+ Change `searchProvider` in this plugin's patch back to `deepseek-official` (or remove this package from `bundles`) and restart.
86
+
87
+ ## How It Works
88
+
89
+ Queries `cn.bing.com/search` → parses HTML result blocks (`<li class="b_algo">`) → extracts title/URL/snippet → returns to DSH's `web_search` tool.
90
+
91
+ ## License
92
+
93
+ [MIT](LICENSE)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-bing-search",
3
3
  "description": "Free Bing-backed web search provider for DeepSeek Harness (DSH). No API key needed, uses cn.bing.com for mainland China accessibility.",
4
- "version": "1.1.4",
4
+ "version": "1.1.6",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",
@@ -46,10 +46,8 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@deepseek-ai/cordis": "^4.0.2",
49
- "@deepseek-ai/dsh-settings": ">=0.1.5-rc.1 <0.2.0-0",
50
- "@deepseek-ai/dsh-web": ">=0.1.5-rc.1 <0.2.0-0"
51
- },
52
- "dependencies": {
49
+ "@deepseek-ai/dsh-settings": ">=0.1.5-rc.1 <0.3.0-0",
50
+ "@deepseek-ai/dsh-web": ">=0.1.5-rc.1 <0.3.0-0",
53
51
  "@deepseek-ai/schemastery": "^3.18.2"
54
52
  },
55
53
  "keywords": [