@goodandready/dsh-ollama-cloud-provider 0.1.15 → 0.1.16

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,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.16 — 2026-11-04
4
+
5
+ - Added DSH 0.2.2 support: `0.2.2-alpha.2`, `0.2.2-alpha.3` and `0.2.2-rc.1`
6
+ are in `compatibility.dshReleases`; the accepted range is now
7
+ `0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0` in `engines.dsh`,
8
+ `compatibility.dsh` and every DSH peer dependency.
9
+ - Added the Cordis and Schemastery generations used by 0.2.2:
10
+ `~4.0.6-alpha.1`/`~4.1.0` and `~3.18.6-alpha.1`/`~3.19.0`.
11
+ - Adapted host route registration to the 0.2.2 `WebRoute | WebResourceRoute`
12
+ union; command handlers use `WebRoute['handler']` without changing runtime
13
+ behavior.
14
+ - Verified 0.2.2-alpha.3 and 0.2.2-alpha.2 with typecheck/build and the key
15
+ runtime suites; 0.2.2-rc.1 passes the full 99-test suite, typecheck and build.
16
+
3
17
  ## 0.1.15 — 2026-11-02
4
18
 
5
19
  - Desktop write requests are no longer accepted from a cookie name and a
package/README.md CHANGED
@@ -104,17 +104,17 @@ npm pack
104
104
  Install the published package:
105
105
 
106
106
  ```bash
107
- dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.15
107
+ dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.16
108
108
  # DSH Desktop:
109
- dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.15
109
+ dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.16
110
110
  ```
111
111
 
112
112
  Or install the packed tarball into a profile:
113
113
 
114
114
  ```bash
115
- dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.15.tgz
115
+ dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.16.tgz
116
116
  # DSH Desktop:
117
- dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.15.tgz
117
+ dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.16.tgz
118
118
  ```
119
119
 
120
120
  Restart dsh (or DSH Desktop), then pick **Ollama Cloud** in the model picker.
package/README.ru.md CHANGED
@@ -103,17 +103,17 @@ npm pack
103
103
  Установка опубликованного пакета из npm:
104
104
 
105
105
  ```bash
106
- dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.15
106
+ dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.16
107
107
  # DSH Desktop:
108
- dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.15
108
+ dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.16
109
109
  ```
110
110
 
111
111
  Либо установка из упакованного tarball:
112
112
 
113
113
  ```bash
114
- dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.15.tgz
114
+ dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.16.tgz
115
115
  # DSH Desktop:
116
- dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.15.tgz
116
+ dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.16.tgz
117
117
  ```
118
118
 
119
119
  После установки перезапустите dsh (или DSH Desktop) и выберите **Ollama Cloud** в списке моделей.
package/README.zh.md CHANGED
@@ -102,17 +102,17 @@ npm pack
102
102
  从 npm 安装已发布版本:
103
103
 
104
104
  ```bash
105
- dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.15
105
+ dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.16
106
106
  # DSH 桌面端:
107
- dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.15
107
+ dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.16
108
108
  ```
109
109
 
110
110
  或通过打包文件安装:
111
111
 
112
112
  ```bash
113
- dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.15.tgz
113
+ dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.16.tgz
114
114
  # DSH 桌面端:
115
- dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.15.tgz
115
+ dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.16.tgz
116
116
  ```
117
117
 
118
118
  安装完成后重启 dsh 或 DSH 桌面端,在模型列表中选择 **Ollama Cloud** 即可。
package/lib/client.js CHANGED
@@ -1599,6 +1599,18 @@ window.__ModuleLoader__.load({
1599
1599
  setError(caught instanceof Error ? caught.message : t("updateFailed"));
1600
1600
  }).finally(() => setBusy(false));
1601
1601
  };
1602
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PluginUpdateCardView, {
1603
+ status,
1604
+ error,
1605
+ busy,
1606
+ notice,
1607
+ t,
1608
+ onRetry: load,
1609
+ onUpdate: update
1610
+ });
1611
+ }
1612
+ function PluginUpdateCardView(props) {
1613
+ const { status, error, busy, notice, t, onRetry, onUpdate } = props;
1602
1614
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
1603
1615
  className: "ocl-card",
1604
1616
  children: [
@@ -1642,7 +1654,7 @@ window.__ModuleLoader__.load({
1642
1654
  children: [t("updateCheckFailed"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
1643
1655
  type: "button",
1644
1656
  className: "ocl-button",
1645
- onClick: load,
1657
+ onClick: onRetry,
1646
1658
  children: t("retry")
1647
1659
  })]
1648
1660
  }) : null,
@@ -1650,7 +1662,7 @@ window.__ModuleLoader__.load({
1650
1662
  type: "button",
1651
1663
  className: "ocl-button",
1652
1664
  disabled: busy || !canInstallUpdate(status),
1653
- onClick: update,
1665
+ onClick: onUpdate,
1654
1666
  children: busy ? t("updating") : t("updateNow")
1655
1667
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
1656
1668
  className: "ocl-hint",
package/lib/index.js CHANGED
@@ -49,7 +49,7 @@ const DEFAULT_API_BASE = "https://ollama.com";
49
49
  const DEFAULT_OPENAI_BASE = "https://ollama.com/v1";
50
50
  const DEFAULT_USAGE_URL = "https://ollama.com/api/usage";
51
51
  const DEFAULT_BALANCE_URL = "https://ollama.com/api/balance";
52
- const DEFAULT_USER_AGENT = "dsh-ollama-cloud-provider/0.1.15";
52
+ const DEFAULT_USER_AGENT = "dsh-ollama-cloud-provider/0.1.16";
53
53
  const DEFAULT_CONTEXT_WINDOW = 131072;
54
54
  const DEFAULT_MAX_TOKENS = 32768;
55
55
  const DEFAULT_GENERATE_MAX_TOKENS = 131072;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-ollama-cloud-provider",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Ollama Cloud LLM provider plugin for DeepSeek Harness (dsh).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -57,20 +57,23 @@
57
57
  "0.2.0-rc.2": "compatible",
58
58
  "0.2.1-rc.2": "compatible",
59
59
  "0.2.1-rc.3": "compatible",
60
- "0.2.1-rc.4": "compatible"
60
+ "0.2.1-rc.4": "compatible",
61
+ "0.2.2-alpha.2": "compatible",
62
+ "0.2.2-alpha.3": "compatible",
63
+ "0.2.2-rc.1": "compatible"
61
64
  },
62
- "dsh": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0"
65
+ "dsh": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0"
63
66
  }
64
67
  },
65
68
  "engines": {
66
69
  "node": ">=22",
67
- "dsh": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0"
70
+ "dsh": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0"
68
71
  },
69
72
  "scripts": {
70
73
  "build": "tsdown",
71
74
  "prepare": "tsdown 1>&2",
72
75
  "typecheck": "tsc --noEmit",
73
- "test": "node --import tsx --test tests/core.test.ts tests/usage.test.ts tests/adapter.test.ts tests/routes.test.ts tests/native.test.ts tests/openai-chat.test.ts tests/commands.test.ts tests/tui-settings.test.ts tests/analytics.test.ts tests/apply.test.ts tests/account-rules.test.ts tests/request-log.test.ts tests/image-budget.test.ts tests/tool-schema.test.ts tests/tools.test.ts tests/plugin-updater.test.ts tests/compat.test.ts tests/status.test.ts tests/settings-draft.test.ts tests/update-state.test.ts tests/ui-render.test.tsx",
76
+ "test": "node --import tsx --test tests/core.test.ts tests/usage.test.ts tests/adapter.test.ts tests/routes.test.ts tests/native.test.ts tests/openai-chat.test.ts tests/commands.test.ts tests/tui-settings.test.ts tests/analytics.test.ts tests/apply.test.ts tests/account-rules.test.ts tests/request-log.test.ts tests/image-budget.test.ts tests/tool-schema.test.ts tests/tools.test.ts tests/plugin-updater.test.ts tests/compat.test.ts tests/status.test.ts tests/settings-draft.test.ts tests/update-state.test.ts tests/ui-render.test.tsx tests/update-card-view.test.tsx",
74
77
  "check": "npm run typecheck && npm test && npm run build",
75
78
  "release": "npm run check && npm pack",
76
79
  "sync:models": "node scripts/sync-models.mjs"
@@ -84,35 +87,35 @@
84
87
  "llm-provider"
85
88
  ],
86
89
  "peerDependencies": {
87
- "@deepseek-ai/cordis": "~4.0.4 || ~4.0.5",
88
- "@deepseek-ai/dsh-attachment": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0",
89
- "@deepseek-ai/dsh-client-locale": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0",
90
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0",
91
- "@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0",
92
- "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0",
93
- "@deepseek-ai/dsh-commands": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0",
94
- "@deepseek-ai/dsh-credentials": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0",
95
- "@deepseek-ai/dsh-host-webserver": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0",
96
- "@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0",
97
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0",
98
- "@deepseek-ai/dsh-settings": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.2-0",
99
- "@deepseek-ai/schemastery": "~3.18.4 || ~3.18.5",
90
+ "@deepseek-ai/cordis": "~4.0.4 || ~4.0.5 || ~4.0.6-alpha.1 || ~4.1.0",
91
+ "@deepseek-ai/dsh-attachment": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
92
+ "@deepseek-ai/dsh-client-locale": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
93
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
94
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
95
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
96
+ "@deepseek-ai/dsh-commands": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
97
+ "@deepseek-ai/dsh-credentials": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
98
+ "@deepseek-ai/dsh-host-webserver": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
99
+ "@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
100
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
101
+ "@deepseek-ai/dsh-settings": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
102
+ "@deepseek-ai/schemastery": "~3.18.4 || ~3.18.5 || ~3.18.6-alpha.1 || ~3.19.0",
100
103
  "react": "^18.2.0"
101
104
  },
102
105
  "devDependencies": {
103
- "@deepseek-ai/cordis": "~4.0.5",
104
- "@deepseek-ai/dsh-attachment": "0.2.1-rc.4",
105
- "@deepseek-ai/dsh-client-locale": "0.2.1-rc.4",
106
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.4",
107
- "@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.4",
108
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.4",
109
- "@deepseek-ai/dsh-commands": "0.2.1-rc.4",
110
- "@deepseek-ai/dsh-credentials": "0.2.1-rc.4",
111
- "@deepseek-ai/dsh-host-webserver": "0.2.1-rc.4",
112
- "@deepseek-ai/dsh-launch-environment": "0.2.1-rc.4",
113
- "@deepseek-ai/dsh-llm": "0.2.1-rc.4",
114
- "@deepseek-ai/dsh-settings": "0.2.1-rc.4",
115
- "@deepseek-ai/schemastery": "~3.18.5",
106
+ "@deepseek-ai/cordis": "~4.1.0",
107
+ "@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
108
+ "@deepseek-ai/dsh-client-locale": "0.2.2-rc.1",
109
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.1",
110
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.1",
111
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
112
+ "@deepseek-ai/dsh-commands": "0.2.2-rc.1",
113
+ "@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
114
+ "@deepseek-ai/dsh-host-webserver": "0.2.2-rc.1",
115
+ "@deepseek-ai/dsh-launch-environment": "0.2.2-rc.1",
116
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
117
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.1",
118
+ "@deepseek-ai/schemastery": "~3.19.0",
116
119
  "@types/node": "^22.0.0",
117
120
  "@types/react": "^18.3.1",
118
121
  "react": "^18.3.1",