dsh-web-tavily 0.4.0 → 0.4.1

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
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## 0.4.1 (2026-09-13)
6
+
7
+ - Documentation only, no code change. Installation now goes through `dsh plugin --profile dsh-tui add dsh-web-tavily` (the package is published) instead of copying files into `node_modules`, both READMEs gain a CI badge, and the release section records the OIDC trusted-publishing path.
8
+
5
9
  ## 0.4.0 (2026-09-13)
6
10
 
7
11
  ### Changed
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # dsh-web-tavily
2
2
 
3
+ [![ci](https://github.com/VviLliAm-qwq/dsh-web-tavily/actions/workflows/ci.yml/badge.svg)](https://github.com/VviLliAm-qwq/dsh-web-tavily/actions/workflows/ci.yml)
4
+
3
5
  **English** · [中文](README.zh.md)
4
6
 
5
7
  A host-plane Cordis plugin for dsh: it registers the **`tavily`** search provider
@@ -44,11 +46,15 @@ Search API** (`POST https://api.tavily.com/search`).
44
46
 
45
47
  ## Install
46
48
 
47
- 1. Copy the package into
48
- `~/.dsh/profiles/dsh-tui/node_modules/dsh-web-tavily/`.
49
- 2. Append `"dsh-web-tavily"` to `dsh.profile.bundles` in
50
- `~/.dsh/profiles/dsh-tui/package.json`.
51
- 3. **Make tavily the default search backend.** This has to be written in the
49
+ 1. Install it into your profile — it is published on npm as `dsh-web-tavily`:
50
+
51
+ ```sh
52
+ dsh plugin --profile dsh-tui add dsh-web-tavily
53
+ # from a local checkout instead:
54
+ # dsh plugin --profile dsh-tui add file:<path to this package>
55
+ ```
56
+
57
+ 2. **Make tavily the default search backend.** This has to be written in the
52
58
  profile's user patch layer (the `web:` section of `settings.yaml` does not
53
59
  affect service configuration) — edit
54
60
  `~/.dsh/profiles/dsh-tui/cordis.patch.yml` and add:
@@ -66,7 +72,7 @@ Search API** (`POST https://api.tavily.com/search`).
66
72
  `duplicate loader entry id: web`. Override the existing row by id instead, and
67
73
  note that an override **replaces the whole config**, which is why
68
74
  `fetchProvider` is restated above.
69
- 4. Restart dsh-tui (`/restart`).
75
+ 3. Restart dsh-tui (`/restart`).
70
76
 
71
77
  ## Configuration
72
78
 
@@ -163,6 +169,7 @@ exchange for the complete safety preflight.
163
169
  ## Publishing
164
170
 
165
171
  - **Repository**: <https://github.com/VviLliAm-qwq/dsh-web-tavily> (public)
172
+ - **Release**: `v*` tags drive `.github/workflows/release.yml`, which publishes to npm through **trusted publishing (OIDC)** — no token is stored in the repository.
166
173
 
167
174
  ## Usage
168
175
 
package/README.zh.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # dsh-web-tavily
2
2
 
3
+ [![ci](https://github.com/VviLliAm-qwq/dsh-web-tavily/actions/workflows/ci.yml/badge.svg)](https://github.com/VviLliAm-qwq/dsh-web-tavily/actions/workflows/ci.yml)
4
+
3
5
  **中文** · [English](README.md)
4
6
 
5
7
  dsh host 平面 cordis 插件:为 dsh 的 web 能力 seam(`ctx.web`)注册搜索提供商 **`tavily`**,让 `web_search` 工具默认走 **Tavily Search API**(`POST https://api.tavily.com/search`)。
@@ -30,10 +32,15 @@ dsh host 平面 cordis 插件:为 dsh 的 web 能力 seam(`ctx.web`)注册
30
32
 
31
33
  ## 安装
32
34
 
33
- 1. 把整个包复制到
34
- `~/.dsh/profiles/dsh-tui/node_modules/dsh-web-tavily/`。
35
- 2. 在 `~/.dsh/profiles/dsh-tui/package.json` 的 `dsh.profile.bundles` 追加 `"dsh-web-tavily"`。
36
- 3. **把 web 服务默认搜索改为 tavily**(必须写在 profile 用户补丁层,`settings.yaml` `web:` 段对服务配置无效)——
35
+ 1. 装进 profile —— 它以 `dsh-web-tavily` 发布在 npm 上:
36
+
37
+ ```sh
38
+ dsh plugin --profile dsh-tui add dsh-web-tavily
39
+ # 从本仓库本地安装(开发):
40
+ # dsh plugin --profile dsh-tui add file:<本包路径>
41
+ ```
42
+
43
+ 2. **把 web 服务默认搜索改为 tavily**(必须写在 profile 用户补丁层,`settings.yaml` 的 `web:` 段对服务配置无效)——
37
44
  编辑 `~/.dsh/profiles/dsh-tui/cordis.patch.yml` 追加:
38
45
 
39
46
  ```yaml
@@ -47,7 +54,7 @@ dsh host 平面 cordis 插件:为 dsh 的 web 能力 seam(`ctx.web`)注册
47
54
  `web` 行由基座 dsh-base 提供,**不要用 `insert:` 新增同 id 行**——那会撞 id 直接崩
48
55
  `duplicate loader entry id: web`;这里要按 id 覆盖既有行,且覆盖是**整行重写,需写全
49
56
  `fetchProvider`**。
50
- 4. 重启 dsh-tui(`/restart`)生效。
57
+ 3. 重启 dsh-tui(`/restart`)生效。
51
58
 
52
59
  ## 配置
53
60
 
@@ -111,6 +118,7 @@ config:
111
118
  ## 发布
112
119
 
113
120
  - **仓库**:<https://github.com/VviLliAm-qwq/dsh-web-tavily>(公开)
121
+ - **发布方式**:`v*` tag 驱动 `.github/workflows/release.yml`,经 npm **可信发布(OIDC)**上传——仓库内不存放任何令牌。
114
122
 
115
123
  ## 使用
116
124
 
package/dsh-plugin.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifestVersion": "0.15",
4
4
  "id": "com.dsh-tui.dsh-web-tavily",
5
5
  "name": "dsh-web-tavily",
6
- "version": "0.4.0",
6
+ "version": "0.4.1",
7
7
  "facets": {
8
8
  "host": {
9
9
  "entry": "lib/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-web-tavily",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Tavily-backed search provider for dsh: registers the `tavily` provider on ctx.web so the web_search tool runs against the Tavily Search API",
5
5
  "license": "MIT",
6
6
  "repository": {