@morlay/dsh-web-search-ollama 0.0.1-alpha.2 → 0.0.1-alpha.3

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 CHANGED
@@ -73,8 +73,9 @@ mock 全绿替代它——这个包的第一版就是"配置指到 Ollama 的 me
73
73
 
74
74
  ## 装配
75
75
 
76
- 注册行由 [`@morlay/dsh-preset`](../../preset/dsh-preset/README.md) 的 bundle patch 插在 **host 层**,
77
- 并把基础 bundle 的 `web` 行 `searchProvider` 切到 `ollama`:
76
+ 注册行由**本包的 bundle patch**([`cordis.patch.yml`](./cordis.patch.yml))插在 **host 层**;
77
+ 基础 bundle 的 `web` 行由 [`@morlay/dsh-profile`](../../profile/dsh-profile/README.md) 的配置层切到
78
+ `ollama`——装配归本包、配置归 profile:
78
79
 
79
80
  ```yaml
80
81
  - id: web
@@ -97,4 +98,4 @@ mock 全绿替代它——这个包的第一版就是"配置指到 Ollama 的 me
97
98
  - **一次只选一个后端**:`ctx.web` 的 `searchProvider` 是单选,默认 `ollama`;
98
99
  `deepseek-official` 后端仍由基础 bundle 注册着,改写那一行即可切回(但它需要 `DEEPSEEK_API_KEY`)。
99
100
  - **不做设置页 section**:配置面就是那一行 patch(见
100
- [dsh-preset 的设计记录](../../preset/dsh-preset/.agents/designs/20260917-host层部署配置.md))。
101
+ [dsh-preset 的设计记录](../../profile/dsh-profile/.agents/designs/20260917-host层部署配置.md))。
@@ -0,0 +1,11 @@
1
+ # @morlay/dsh-web-search-ollama bundle patch:把搜索后端注册到 host 层。
2
+ #
3
+ # 为什么住 host:preset 是每个模式各挂一份 composition,同一个 provider id 在多个模式里注册会撞
4
+ # `WEB_DUPLICATE_PROVIDER`,所以注册行只能有一份;至于选它还是别的后端,由 `web` 行的
5
+ # `searchProvider` 决定——那是配置,归 `@morlay/dsh-profile`。两者分工:这里插行,那边配值。
6
+ #
7
+ # 行不带 config:`apiKeyEnv` 这类值同样由 `@morlay/dsh-profile` 做 config 覆盖。
8
+
9
+ - insert:
10
+ - id: web-search-ollama
11
+ name: "@morlay/dsh-web-search-ollama"
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Ollama Web Search",
4
+ "description": "Ollama-backed search provider for the web seam: web_search calls POST /api/web_search."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Ollama 联网搜索",
4
+ "description": "web 搜索后端:模型侧的 web_search 走 Ollama 的 /api/web_search。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morlay/dsh-web-search-ollama",
3
- "version": "0.0.1-alpha.2",
3
+ "version": "0.0.1-alpha.3",
4
4
  "description": "Ollama-backed search provider for the DeepSeek Harness web seam (ctx.web): one web_search backend calling POST https://ollama.com/api/web_search.",
5
5
  "keywords": [
6
6
  "dsh",
@@ -14,23 +14,32 @@
14
14
  "url": "https://github.com/morlay/dsh-plugin.git"
15
15
  },
16
16
  "files": [
17
+ "locale/*.json",
17
18
  "dist",
18
19
  "src",
20
+ "cordis.patch.yml",
19
21
  "!**/__tests__"
20
22
  ],
21
23
  "type": "module",
22
24
  "exports": {
23
25
  ".": "./dist/index.mjs",
24
- "./package.json": "./package.json"
26
+ "./package.json": "./package.json",
27
+ "./cordis.patch.yml": "./cordis.patch.yml",
28
+ "./locale/*.json": "./locale/*.json"
25
29
  },
26
30
  "dependencies": {
27
- "@deepseek-ai/schemastery": "3.18.3"
31
+ "@deepseek-ai/schemastery": "3.18.4"
28
32
  },
29
33
  "peerDependencies": {
30
- "@deepseek-ai/cordis": "4.0.3",
31
- "@deepseek-ai/dsh-credentials": "0.1.7-alpha.1",
32
- "@deepseek-ai/dsh-launch-environment": "0.1.7-alpha.1",
33
- "@deepseek-ai/dsh-web": "0.1.7-alpha.1"
34
+ "@deepseek-ai/cordis": "4.0.4",
35
+ "@deepseek-ai/dsh-credentials": "0.1.7-alpha.2",
36
+ "@deepseek-ai/dsh-launch-environment": "0.1.7-alpha.2",
37
+ "@deepseek-ai/dsh-web": "0.1.7-alpha.2"
38
+ },
39
+ "dsh": {
40
+ "bundle": {
41
+ "patch": "./cordis.patch.yml"
42
+ }
34
43
  },
35
44
  "scripts": {
36
45
  "build": "pnpm exec tsdown",