@moguiyu/dsh-tavily 0.2.1 → 0.2.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
@@ -13,7 +13,7 @@ for key/usage management.
13
13
  - **Plugin-config settings card** — the Host installs the `tavily-search` settings section
14
14
  and the card is keyed by it (keyed `settings.plugin.item`), so the Plugins configuration tab
15
15
  serves the card exactly when this plugin is composed (needs DSH **0.1.0-rc.7 or newer**,
16
- including `0.1.2-alpha.x` — both seam generations are detected at runtime).
16
+ including `0.1.2-alpha.x` and the `0.1.3` line — both seam generations are detected at runtime).
17
17
  The switch writes the namespace and restarts the row; the choice is mirrored to
18
18
  `~/.dsh/tavily-tool.json`.
19
19
  - **`web_search` is never replaced** — no `ctx.web` provider is registered and
package/lib/client.js CHANGED
@@ -285,8 +285,12 @@ window.__ModuleLoader__.load({
285
285
 
286
286
  const isOff = enabled === false
287
287
 
288
- return react.createElement('div', { style: { border: '1px solid var(--dsw-alias-border-l2)', borderRadius: 10, minWidth: 0, overflow: 'hidden' } },
289
- react.createElement('style', null, '.dts-icon-btn:hover{background:var(--dsw-alias-interactive-bg-hover)}.dts-icon-btn:disabled{opacity:.4;cursor:default}.dts-icon-btn-danger:hover{background:var(--dsw-alias-interactive-bg-hover-danger)}'),
288
+ // Card box mirrors the native plugin-config card (PluginCard.module.css,
289
+ // ui-settings-plugins): bg-layer-3 fill, .5px border-l4, 16px radius,
290
+ // hover/open border lift, and the open state's bg-layer-2 upgrade — so
291
+ // the card sits at the same elevation as native cards in dark mode too.
292
+ return react.createElement('div', { className: expanded ? 'dts-card dts-card-open' : 'dts-card', style: { minWidth: 0 } },
293
+ react.createElement('style', null, '.dts-card{border:.5px solid var(--dsw-alias-border-l4);border-radius:16px;background:var(--dsw-alias-bg-layer-3);transition:border-color .16s,background .16s}.dts-card:hover{border-color:var(--dsw-alias-label-dimmed)}.dts-card-open{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}.dts-icon-btn:hover{background:var(--dsw-alias-interactive-bg-hover)}.dts-icon-btn:disabled{opacity:.4;cursor:default}.dts-icon-btn-danger:hover{background:var(--dsw-alias-interactive-bg-hover-danger)}'),
290
294
  react.createElement('div', { style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: 12, padding: '12px 14px', minHeight: 52, boxSizing: 'border-box' } },
291
295
  react.createElement('button', {
292
296
  type: 'button',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moguiyu/dsh-tavily",
3
- "version": "0.2.1",
4
- "description": "Opt-in advanced Tavily model tools for DeepSeek Harness with the Tavily Search settings card (rc.7/rc.8 and 0.1.2 plugin management). The built-in web_search is never replaced.",
3
+ "version": "0.2.3",
4
+ "description": "Opt-in advanced Tavily model tools for DeepSeek Harness with the Tavily Search settings card (rc.7/rc.8, 0.1.2 and 0.1.3 plugin management). The built-in web_search is never replaced.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
7
7
  "exports": {
@@ -53,12 +53,12 @@
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@deepseek-ai/cordis": "^4.0.1",
56
- "@deepseek-ai/dsh-home-paths": "^0.1.0-rc.8 || ^0.1.2-alpha.2",
57
- "@deepseek-ai/dsh-tools": "^0.1.0-rc.8 || ^0.1.2-alpha.2",
58
- "@deepseek-ai/dsh-settings": "^0.1.0-rc.8 || ^0.1.2-alpha.2"
56
+ "@deepseek-ai/dsh-home-paths": "^0.1.0-rc.8 || ^0.1.2-alpha.2 || ^0.1.3-alpha.2",
57
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.8 || ^0.1.2-alpha.2 || ^0.1.3-alpha.2",
58
+ "@deepseek-ai/dsh-settings": "^0.1.0-rc.8 || ^0.1.2-alpha.2 || ^0.1.3-alpha.2"
59
59
  },
60
60
  "dependencies": {
61
- "@deepseek-ai/schemastery": "^3.18.1",
61
+ "@deepseek-ai/schemastery": "^3.18.2",
62
62
  "@moguiyu/dsh-tavily-backend": "^0.2.1",
63
63
  "@moguiyu/dsh-tool-tavily-search": "^0.2.1"
64
64
  },
package/src/client.js CHANGED
@@ -290,8 +290,12 @@ export function factory(require) {
290
290
 
291
291
  const isOff = enabled === false
292
292
 
293
- return react.createElement('div', { style: { border: '1px solid var(--dsw-alias-border-l2)', borderRadius: 10, minWidth: 0, overflow: 'hidden' } },
294
- react.createElement('style', null, '.dts-icon-btn:hover{background:var(--dsw-alias-interactive-bg-hover)}.dts-icon-btn:disabled{opacity:.4;cursor:default}.dts-icon-btn-danger:hover{background:var(--dsw-alias-interactive-bg-hover-danger)}'),
293
+ // Card box mirrors the native plugin-config card (PluginCard.module.css,
294
+ // ui-settings-plugins): bg-layer-3 fill, .5px border-l4, 16px radius,
295
+ // hover/open border lift, and the open state's bg-layer-2 upgrade — so
296
+ // the card sits at the same elevation as native cards in dark mode too.
297
+ return react.createElement('div', { className: expanded ? 'dts-card dts-card-open' : 'dts-card', style: { minWidth: 0 } },
298
+ react.createElement('style', null, '.dts-card{border:.5px solid var(--dsw-alias-border-l4);border-radius:16px;background:var(--dsw-alias-bg-layer-3);transition:border-color .16s,background .16s}.dts-card:hover{border-color:var(--dsw-alias-label-dimmed)}.dts-card-open{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}.dts-icon-btn:hover{background:var(--dsw-alias-interactive-bg-hover)}.dts-icon-btn:disabled{opacity:.4;cursor:default}.dts-icon-btn-danger:hover{background:var(--dsw-alias-interactive-bg-hover-danger)}'),
295
299
  react.createElement('div', { style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: 12, padding: '12px 14px', minHeight: 52, boxSizing: 'border-box' } },
296
300
  react.createElement('button', {
297
301
  type: 'button',