@goodandready/dsh-ollama-cloud-provider 0.1.15 → 0.1.17
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 +27 -0
- package/README.md +21 -4
- package/README.ru.md +4 -4
- package/README.zh.md +4 -4
- package/lib/client.js +14 -2
- package/lib/index.js +148 -1
- package/package.json +36 -31
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.17 — 2026-11-05
|
|
4
|
+
|
|
5
|
+
- Added Ollama web capabilities behind `ctx.web`: a search provider and a fetch
|
|
6
|
+
provider with id `ollama-cloud`, using `POST /api/web_search` and
|
|
7
|
+
`POST /api/web_fetch` with the configured credential.
|
|
8
|
+
- Web requests fail closed on redirects, use a 15s per-attempt timeout, retry
|
|
9
|
+
one pre-response transport/timeout failure, cap search results at 10 and
|
|
10
|
+
bound fetched bodies at 256 KiB with a `truncated` result.
|
|
11
|
+
- Registered the providers only when the `web` service exists; selecting them is
|
|
12
|
+
a profile policy (`web.searchProvider` / `web.fetchProvider`).
|
|
13
|
+
- Added a deterministic mock Ollama contract server and tests for
|
|
14
|
+
`/api/tags`, `/api/show`, `/api/chat`, `/api/web_search` and `/api/web_fetch`.
|
|
15
|
+
|
|
16
|
+
## 0.1.16 — 2026-11-04
|
|
17
|
+
|
|
18
|
+
- Added DSH 0.2.2 support: `0.2.2-alpha.2`, `0.2.2-alpha.3` and `0.2.2-rc.1`
|
|
19
|
+
are in `compatibility.dshReleases`; the accepted range is now
|
|
20
|
+
`0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0` in `engines.dsh`,
|
|
21
|
+
`compatibility.dsh` and every DSH peer dependency.
|
|
22
|
+
- Added the Cordis and Schemastery generations used by 0.2.2:
|
|
23
|
+
`~4.0.6-alpha.1`/`~4.1.0` and `~3.18.6-alpha.1`/`~3.19.0`.
|
|
24
|
+
- Adapted host route registration to the 0.2.2 `WebRoute | WebResourceRoute`
|
|
25
|
+
union; command handlers use `WebRoute['handler']` without changing runtime
|
|
26
|
+
behavior.
|
|
27
|
+
- Verified 0.2.2-alpha.3 and 0.2.2-alpha.2 with typecheck/build and the key
|
|
28
|
+
runtime suites; 0.2.2-rc.1 passes the full 99-test suite, typecheck and build.
|
|
29
|
+
|
|
3
30
|
## 0.1.15 — 2026-11-02
|
|
4
31
|
|
|
5
32
|
- Desktop write requests are no longer accepted from a cookie name and a
|
package/README.md
CHANGED
|
@@ -35,6 +35,23 @@ It registers one native LLM route, `ollama-cloud`, served by `https://ollama.com
|
|
|
35
35
|
|
|
36
36
|
Requests resolve the key per call, so a changed credential reaches the next request without a restart.
|
|
37
37
|
|
|
38
|
+
## Web search and fetch
|
|
39
|
+
|
|
40
|
+
When the `web` service is present, the plugin registers Ollama Cloud as both a
|
|
41
|
+
search and a fetch provider (`id: ollama-cloud`). It calls
|
|
42
|
+
`POST <apiBase>/api/web_search` and `POST <apiBase>/api/web_fetch` with the same
|
|
43
|
+
credential reference as chat. Requests fail closed on redirects, retry one
|
|
44
|
+
transport/timeout failure, cap search results at 10 and fetched text at 256 KiB.
|
|
45
|
+
|
|
46
|
+
Select it in the profile:
|
|
47
|
+
|
|
48
|
+
```yaml
|
|
49
|
+
- id: web
|
|
50
|
+
config:
|
|
51
|
+
searchProvider: ollama-cloud
|
|
52
|
+
fetchProvider: ollama-cloud
|
|
53
|
+
```
|
|
54
|
+
|
|
38
55
|
## Architecture
|
|
39
56
|
|
|
40
57
|
```mermaid
|
|
@@ -104,17 +121,17 @@ npm pack
|
|
|
104
121
|
Install the published package:
|
|
105
122
|
|
|
106
123
|
```bash
|
|
107
|
-
dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.
|
|
124
|
+
dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.17
|
|
108
125
|
# DSH Desktop:
|
|
109
|
-
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.
|
|
126
|
+
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.17
|
|
110
127
|
```
|
|
111
128
|
|
|
112
129
|
Or install the packed tarball into a profile:
|
|
113
130
|
|
|
114
131
|
```bash
|
|
115
|
-
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.
|
|
132
|
+
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.17.tgz
|
|
116
133
|
# DSH Desktop:
|
|
117
|
-
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.
|
|
134
|
+
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.17.tgz
|
|
118
135
|
```
|
|
119
136
|
|
|
120
137
|
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.
|
|
106
|
+
dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.17
|
|
107
107
|
# DSH Desktop:
|
|
108
|
-
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.
|
|
108
|
+
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.17
|
|
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.
|
|
114
|
+
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.17.tgz
|
|
115
115
|
# DSH Desktop:
|
|
116
|
-
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.
|
|
116
|
+
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.17.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.
|
|
105
|
+
dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.17
|
|
106
106
|
# DSH 桌面端:
|
|
107
|
-
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.
|
|
107
|
+
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.17
|
|
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.
|
|
113
|
+
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.17.tgz
|
|
114
114
|
# DSH 桌面端:
|
|
115
|
-
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.
|
|
115
|
+
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.17.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:
|
|
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:
|
|
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
|
@@ -9,6 +9,7 @@ import { credentialRef } from "@deepseek-ai/dsh-credentials";
|
|
|
9
9
|
import { launchEnvironmentOf } from "@deepseek-ai/dsh-launch-environment";
|
|
10
10
|
import { spawn } from "node:child_process";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
12
|
+
import { WebError } from "@deepseek-ai/dsh-web";
|
|
12
13
|
// src/account-rules.ts
|
|
13
14
|
function glob(pattern) {
|
|
14
15
|
const escaped = pattern.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*").replace(/\?/g, ".");
|
|
@@ -49,7 +50,7 @@ const DEFAULT_API_BASE = "https://ollama.com";
|
|
|
49
50
|
const DEFAULT_OPENAI_BASE = "https://ollama.com/v1";
|
|
50
51
|
const DEFAULT_USAGE_URL = "https://ollama.com/api/usage";
|
|
51
52
|
const DEFAULT_BALANCE_URL = "https://ollama.com/api/balance";
|
|
52
|
-
const DEFAULT_USER_AGENT = "dsh-ollama-cloud-provider/0.1.
|
|
53
|
+
const DEFAULT_USER_AGENT = "dsh-ollama-cloud-provider/0.1.17";
|
|
53
54
|
const DEFAULT_CONTEXT_WINDOW = 131072;
|
|
54
55
|
const DEFAULT_MAX_TOKENS = 32768;
|
|
55
56
|
const DEFAULT_GENERATE_MAX_TOKENS = 131072;
|
|
@@ -4874,6 +4875,138 @@ function createUsageReader(config, resolveKey, fetchImpl = fetch) {
|
|
|
4874
4875
|
};
|
|
4875
4876
|
return reader;
|
|
4876
4877
|
}
|
|
4878
|
+
// src/web.ts
|
|
4879
|
+
const OLLAMA_WEB_PROVIDER_ID = "ollama-cloud";
|
|
4880
|
+
const MAX_FETCH_CHARS = 262144;
|
|
4881
|
+
function decodeSearchResponse(body) {
|
|
4882
|
+
const results = body?.results;
|
|
4883
|
+
if (!Array.isArray(results)) throw new WebError("ollama-cloud web search answered without a \"results\" array", "OLLAMA_WEB_BAD_REPLY");
|
|
4884
|
+
const sources = [];
|
|
4885
|
+
for (const entry of results) {
|
|
4886
|
+
if (entry === null || typeof entry !== "object") continue;
|
|
4887
|
+
const record = entry;
|
|
4888
|
+
if (typeof record.url !== "string" || record.url === "") continue;
|
|
4889
|
+
sources.push({
|
|
4890
|
+
url: record.url,
|
|
4891
|
+
...typeof record.title === "string" && record.title !== "" ? { title: record.title } : {},
|
|
4892
|
+
...typeof record.content === "string" && record.content !== "" ? { snippet: record.content } : {}
|
|
4893
|
+
});
|
|
4894
|
+
}
|
|
4895
|
+
return {
|
|
4896
|
+
sources,
|
|
4897
|
+
truncated: false
|
|
4898
|
+
};
|
|
4899
|
+
}
|
|
4900
|
+
function decodeFetchResponse(body) {
|
|
4901
|
+
const content = body?.content;
|
|
4902
|
+
if (typeof content !== "string") throw new WebError("ollama-cloud web fetch answered without text \"content\"", "OLLAMA_WEB_BAD_REPLY");
|
|
4903
|
+
return content.length > 262144 ? {
|
|
4904
|
+
content: content.slice(0, MAX_FETCH_CHARS),
|
|
4905
|
+
truncated: true
|
|
4906
|
+
} : {
|
|
4907
|
+
content,
|
|
4908
|
+
truncated: false
|
|
4909
|
+
};
|
|
4910
|
+
}
|
|
4911
|
+
function isRedirectFailure(error) {
|
|
4912
|
+
let current = error;
|
|
4913
|
+
while (current instanceof Error) {
|
|
4914
|
+
if (/redirect/i.test(current.message)) return true;
|
|
4915
|
+
current = current.cause;
|
|
4916
|
+
}
|
|
4917
|
+
return false;
|
|
4918
|
+
}
|
|
4919
|
+
function abortReason(caller, own) {
|
|
4920
|
+
if (caller?.aborted === true) return "caller";
|
|
4921
|
+
return own.aborted ? "timeout" : void 0;
|
|
4922
|
+
}
|
|
4923
|
+
async function postOnce(options, url, payload, caller) {
|
|
4924
|
+
const apiKey = await options.resolveApiKey();
|
|
4925
|
+
if (apiKey === void 0) throw new WebError("ollama-cloud web capabilities need an API key; configure the credential reference through plugin settings", "OLLAMA_WEB_MISSING_CREDENTIAL");
|
|
4926
|
+
const fetchImpl = options.fetch ?? fetch;
|
|
4927
|
+
const timeoutMs = options.timeoutMs ?? 15e3;
|
|
4928
|
+
const own = AbortSignal.timeout(timeoutMs);
|
|
4929
|
+
const signal = caller === void 0 ? own : AbortSignal.any([caller, own]);
|
|
4930
|
+
let response;
|
|
4931
|
+
try {
|
|
4932
|
+
response = await fetchImpl(url, {
|
|
4933
|
+
method: "POST",
|
|
4934
|
+
headers: {
|
|
4935
|
+
"content-type": "application/json",
|
|
4936
|
+
accept: "application/json",
|
|
4937
|
+
...apiKey === "" ? {} : { authorization: `Bearer ${apiKey}` }
|
|
4938
|
+
},
|
|
4939
|
+
body: JSON.stringify(payload),
|
|
4940
|
+
redirect: "error",
|
|
4941
|
+
signal
|
|
4942
|
+
});
|
|
4943
|
+
} catch (error) {
|
|
4944
|
+
const reason = abortReason(caller, own);
|
|
4945
|
+
if (reason === "caller") throw new WebError("ollama-cloud web request aborted by caller", "ABORTED", { cause: error });
|
|
4946
|
+
if (reason === "timeout") throw new WebError(`ollama-cloud web request timed out after ${timeoutMs}ms`, "OLLAMA_WEB_TIMEOUT", { cause: error });
|
|
4947
|
+
if (isRedirectFailure(error)) throw new WebError(`${url} attempted a redirect`, "WEB_PROVIDER_ERROR", { cause: error });
|
|
4948
|
+
const detail = error instanceof Error && error.message !== "" ? `: ${error.message}` : "";
|
|
4949
|
+
throw new WebError(`could not reach ${url}${detail}`, "OLLAMA_WEB_TRANSPORT", { cause: error });
|
|
4950
|
+
}
|
|
4951
|
+
if (!response.ok) {
|
|
4952
|
+
await response.body?.cancel();
|
|
4953
|
+
const hint = response.status === 401 || response.status === 403 ? "; check the API key" : "";
|
|
4954
|
+
throw new WebError(`${url} answered ${response.status}${hint}`, "WEB_PROVIDER_ERROR");
|
|
4955
|
+
}
|
|
4956
|
+
try {
|
|
4957
|
+
return {
|
|
4958
|
+
status: response.status,
|
|
4959
|
+
body: await response.json()
|
|
4960
|
+
};
|
|
4961
|
+
} catch (error) {
|
|
4962
|
+
throw new WebError(`${url} did not answer with JSON`, "OLLAMA_WEB_BAD_REPLY", { cause: error });
|
|
4963
|
+
}
|
|
4964
|
+
}
|
|
4965
|
+
async function postJson(options, suffix, payload, caller) {
|
|
4966
|
+
const base = options.baseURL().replace(/\/+$/, "");
|
|
4967
|
+
if (!URL.canParse(base)) throw new WebError("ollama-cloud web capabilities need a valid API base URL", "WEB_PROVIDER_ERROR");
|
|
4968
|
+
const url = `${base}${suffix}`;
|
|
4969
|
+
try {
|
|
4970
|
+
return await postOnce(options, url, payload, caller);
|
|
4971
|
+
} catch (error) {
|
|
4972
|
+
if (!(error instanceof WebError && (error.code === "OLLAMA_WEB_TIMEOUT" || error.code === "OLLAMA_WEB_TRANSPORT")) || caller?.aborted === true) throw error;
|
|
4973
|
+
}
|
|
4974
|
+
return postOnce(options, url, payload, caller);
|
|
4975
|
+
}
|
|
4976
|
+
var OllamaWebEndpoint = class {
|
|
4977
|
+
options;
|
|
4978
|
+
id = OLLAMA_WEB_PROVIDER_ID;
|
|
4979
|
+
constructor(options) {
|
|
4980
|
+
this.options = options;
|
|
4981
|
+
}
|
|
4982
|
+
available() {
|
|
4983
|
+
return URL.canParse(this.options.baseURL());
|
|
4984
|
+
}
|
|
4985
|
+
};
|
|
4986
|
+
var OllamaWebSearchProvider = class extends OllamaWebEndpoint {
|
|
4987
|
+
async search(request, signal) {
|
|
4988
|
+
const { body } = await postJson(this.options, "/api/web_search", {
|
|
4989
|
+
query: request.query,
|
|
4990
|
+
...request.maxResults === void 0 ? {} : { max_results: Math.min(request.maxResults, 10) }
|
|
4991
|
+
}, signal);
|
|
4992
|
+
return decodeSearchResponse(body);
|
|
4993
|
+
}
|
|
4994
|
+
};
|
|
4995
|
+
var OllamaWebFetchProvider = class extends OllamaWebEndpoint {
|
|
4996
|
+
async fetch(request, signal) {
|
|
4997
|
+
const { status, body } = await postJson(this.options, "/api/web_fetch", { url: request.url }, signal);
|
|
4998
|
+
const decoded = decodeFetchResponse(body);
|
|
4999
|
+
return {
|
|
5000
|
+
url: request.url,
|
|
5001
|
+
statusCode: status,
|
|
5002
|
+
body: {
|
|
5003
|
+
kind: "text",
|
|
5004
|
+
content: decoded.content
|
|
5005
|
+
},
|
|
5006
|
+
truncated: decoded.truncated
|
|
5007
|
+
};
|
|
5008
|
+
}
|
|
5009
|
+
};
|
|
4877
5010
|
// src/index.ts
|
|
4878
5011
|
const name = "llm-ollama-cloud";
|
|
4879
5012
|
const inject = ["llm"];
|
|
@@ -4938,6 +5071,20 @@ function apply(ctx, config) {
|
|
|
4938
5071
|
planLabel: () => current().planLabel
|
|
4939
5072
|
});
|
|
4940
5073
|
});
|
|
5074
|
+
ctx.inject(["web"], (webCtx) => {
|
|
5075
|
+
const options = {
|
|
5076
|
+
baseURL: () => current().apiBase,
|
|
5077
|
+
resolveApiKey: async () => {
|
|
5078
|
+
try {
|
|
5079
|
+
return (await keys.resolve(PROVIDER)).key;
|
|
5080
|
+
} catch {
|
|
5081
|
+
return;
|
|
5082
|
+
}
|
|
5083
|
+
}
|
|
5084
|
+
};
|
|
5085
|
+
webCtx.effect(() => webCtx.web.registerSearchProvider(new OllamaWebSearchProvider(options)), "dsh-ollama-cloud-provider: web search provider");
|
|
5086
|
+
webCtx.effect(() => webCtx.web.registerFetchProvider(new OllamaWebFetchProvider(options)), "dsh-ollama-cloud-provider: web fetch provider");
|
|
5087
|
+
});
|
|
4941
5088
|
ctx.inject(["webServer"], (webCtx) => {
|
|
4942
5089
|
applyRoutes(webCtx, webCtx.webServer, {
|
|
4943
5090
|
config: current,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodandready/dsh-ollama-cloud-provider",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
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.
|
|
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.
|
|
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 tests/web.test.ts tests/mock-ollama.test.ts",
|
|
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,37 @@
|
|
|
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.
|
|
89
|
-
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.
|
|
92
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.
|
|
93
|
-
"@deepseek-ai/dsh-commands": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.
|
|
94
|
-
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.
|
|
95
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.
|
|
96
|
-
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.
|
|
97
|
-
"@deepseek-ai/dsh-llm": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.
|
|
98
|
-
"@deepseek-ai/dsh-settings": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.
|
|
99
|
-
"@deepseek-ai/
|
|
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/dsh-web": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0",
|
|
103
|
+
"@deepseek-ai/schemastery": "~3.18.4 || ~3.18.5 || ~3.18.6-alpha.1 || ~3.19.0",
|
|
100
104
|
"react": "^18.2.0"
|
|
101
105
|
},
|
|
102
106
|
"devDependencies": {
|
|
103
|
-
"@deepseek-ai/cordis": "~4.0
|
|
104
|
-
"@deepseek-ai/dsh-attachment": "0.2.
|
|
105
|
-
"@deepseek-ai/dsh-client-locale": "0.2.
|
|
106
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.
|
|
107
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.
|
|
108
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.
|
|
109
|
-
"@deepseek-ai/dsh-commands": "0.2.
|
|
110
|
-
"@deepseek-ai/dsh-credentials": "0.2.
|
|
111
|
-
"@deepseek-ai/dsh-host-webserver": "0.2.
|
|
112
|
-
"@deepseek-ai/dsh-launch-environment": "0.2.
|
|
113
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
114
|
-
"@deepseek-ai/dsh-settings": "0.2.
|
|
115
|
-
"@deepseek-ai/
|
|
107
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
108
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
|
|
109
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.1",
|
|
110
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.1",
|
|
111
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.1",
|
|
112
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
|
|
113
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.1",
|
|
114
|
+
"@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
|
|
115
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.2-rc.1",
|
|
116
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.2-rc.1",
|
|
117
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
118
|
+
"@deepseek-ai/dsh-settings": "0.2.2-rc.1",
|
|
119
|
+
"@deepseek-ai/dsh-web": "0.2.2-rc.1",
|
|
120
|
+
"@deepseek-ai/schemastery": "~3.19.0",
|
|
116
121
|
"@types/node": "^22.0.0",
|
|
117
122
|
"@types/react": "^18.3.1",
|
|
118
123
|
"react": "^18.3.1",
|