@tonydua/dsh-web-search-exa 0.1.1 → 0.1.2
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.i18n.yaml +2 -2
- package/README.md +14 -6
- package/README.zh.md +10 -6
- package/cordis.patch.yml +18 -0
- package/package.json +8 -2
package/README.i18n.yaml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record.
|
|
4
|
-
README.md:
|
|
5
|
-
README.zh.md:
|
|
4
|
+
README.md: 8bb963e70c7a35c533de714afc4e92c8c4126862
|
|
5
|
+
README.zh.md: 468625755e2e948effba1f130be98e2a0181a06a
|
package/README.md
CHANGED
|
@@ -73,6 +73,20 @@ key (which also switches to the REST path automatically).
|
|
|
73
73
|
|
|
74
74
|
## Installation (into a dsh profile)
|
|
75
75
|
|
|
76
|
+
**One command from npm** (v0.1.2+ ships the `dsh.bundle` manifest — the bundle
|
|
77
|
+
patch inserts the provider row and selects it as the web seam's search
|
|
78
|
+
provider, so no manual patch editing is needed):
|
|
79
|
+
|
|
80
|
+
```powershell
|
|
81
|
+
dsh plugin --profile web add @tonydua/dsh-web-search-exa
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Restart `dsh web`. Your own `$DSH_HOME/profiles/web/cordis.patch.yml` is
|
|
85
|
+
applied after bundle patches, so any customization of the `web` row keeps the
|
|
86
|
+
last word.
|
|
87
|
+
|
|
88
|
+
**Local development checkout:**
|
|
89
|
+
|
|
76
90
|
```powershell
|
|
77
91
|
dsh plugin --profile web add ../plugins/dsh-web-search-exa
|
|
78
92
|
```
|
|
@@ -91,12 +105,6 @@ Then enable the provider and select it. Either merge into
|
|
|
91
105
|
searchProvider: exa
|
|
92
106
|
```
|
|
93
107
|
|
|
94
|
-
…or pass `patches/exa-anon-search.patch.yml` as an overlay:
|
|
95
|
-
|
|
96
|
-
```powershell
|
|
97
|
-
dsh --profile web --patch patches/exa-anon-search.patch.yml
|
|
98
|
-
```
|
|
99
|
-
|
|
100
108
|
Alternatively, select the provider at runtime with the environment variable
|
|
101
109
|
`$DSH_WEB_SEARCH_PROVIDER=exa` (no config edit needed).
|
|
102
110
|
|
package/README.zh.md
CHANGED
|
@@ -53,6 +53,16 @@ DeepSeek Harness 自带官方 Exa 提供方 [`@deepseek-ai/dsh-web-search-exa`](
|
|
|
53
53
|
|
|
54
54
|
## 安装(装入 dsh profile)
|
|
55
55
|
|
|
56
|
+
**一条命令从 npm 安装**(v0.1.2+ 自带 `dsh.bundle` manifest——bundle patch 会自动插入 provider 行并把它设为 web seam 的搜索提供方,无需手动改 patch):
|
|
57
|
+
|
|
58
|
+
```powershell
|
|
59
|
+
dsh plugin --profile web add @tonydua/dsh-web-search-exa
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
重启 `dsh web` 生效。你自己的 `$DSH_HOME/profiles/web/cordis.patch.yml` 在 bundle patch 之后应用,对 `web` 行的任何自定义仍以你的为准。
|
|
63
|
+
|
|
64
|
+
**本地开发目录:**
|
|
65
|
+
|
|
56
66
|
```powershell
|
|
57
67
|
dsh plugin --profile web add ../plugins/dsh-web-search-exa
|
|
58
68
|
```
|
|
@@ -70,12 +80,6 @@ dsh plugin --profile web add ../plugins/dsh-web-search-exa
|
|
|
70
80
|
searchProvider: exa
|
|
71
81
|
```
|
|
72
82
|
|
|
73
|
-
或把 `patches/exa-anon-search.patch.yml` 作为覆盖层传入:
|
|
74
|
-
|
|
75
|
-
```powershell
|
|
76
|
-
dsh --profile web --patch patches/exa-anon-search.patch.yml
|
|
77
|
-
```
|
|
78
|
-
|
|
79
83
|
也可以不修改配置,直接用环境变量 `$DSH_WEB_SEARCH_PROVIDER=exa` 在运行时选中该提供方。
|
|
80
84
|
|
|
81
85
|
重启 `dsh web` 生效。模型侧的 `web_search` 工具随即走该提供方,无需改任何工具配置。
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# The dsh-web-search-exa bundle patch.
|
|
2
|
+
#
|
|
3
|
+
# Inserts the zero-config Exa search provider into the profile and selects it
|
|
4
|
+
# as the web seam's active search provider. The row's `config` replaces the
|
|
5
|
+
# targeted row's whole config (patch semantics: last write wins per row), so
|
|
6
|
+
# users who customize `web` in their own profile cordis.patch.yml keep the
|
|
7
|
+
# last word — their patch applies after bundle patches.
|
|
8
|
+
- insert:
|
|
9
|
+
- id: web-search-exa
|
|
10
|
+
name: '@tonydua/dsh-web-search-exa'
|
|
11
|
+
config:
|
|
12
|
+
apiKeyEnv: EXA_API_KEY
|
|
13
|
+
# providerId: exa-anon # uncomment to coexist with the official package
|
|
14
|
+
|
|
15
|
+
- id: web
|
|
16
|
+
name: '@deepseek-ai/dsh-web'
|
|
17
|
+
config:
|
|
18
|
+
searchProvider: exa
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonydua/dsh-web-search-exa",
|
|
3
3
|
"description": "Zero-config Exa web search provider for DeepSeek Harness (dsh): keyless anonymous MCP fallback (mcp.exa.ai/mcp) plus keyed REST search — a drop-in WebSearchProvider for the ctx.web seam, no API key required.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
7
7
|
"dsh",
|
|
@@ -36,8 +36,14 @@
|
|
|
36
36
|
"./package.json": "./package.json"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
|
-
"lib"
|
|
39
|
+
"lib",
|
|
40
|
+
"cordis.patch.yml"
|
|
40
41
|
],
|
|
42
|
+
"dsh": {
|
|
43
|
+
"bundle": {
|
|
44
|
+
"patch": "./cordis.patch.yml"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
41
47
|
"publishConfig": {
|
|
42
48
|
"access": "public"
|
|
43
49
|
},
|