@goodandready/dsh-ollama-cloud-provider 0.1.32 → 0.1.34
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 +13 -0
- package/README.md +10 -4
- package/README.ru.md +10 -4
- package/README.zh.md +10 -4
- package/lib/client.js +55 -16
- package/lib/index.js +10 -12
- package/package.json +20 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.34 — 2026-11-07
|
|
4
|
+
|
|
5
|
+
- Security: patched transient zod memory exhaustion vulnerability (GHSA-mrhx-c7xc-m3w5) in dependencies via package overrides, achieving 0 audit vulnerabilities (#108).
|
|
6
|
+
- Component Testing: added automated test coverage for interactive state loading, failure reporting, and unmounting of `OllamaProviderCard` (#109).
|
|
7
|
+
|
|
8
|
+
## 0.1.33 — 2026-11-07
|
|
9
|
+
|
|
10
|
+
- Security: closed fake-cookie verification bypass on write routes (`/config`, `/key`) and sensitive read routes (`/state`, `/analytics`, `/usage`, `/balance`) by requiring an anonymous control probe to fail with 401 or 403, failing closed against public or synthetic hosts (#42, #56).
|
|
11
|
+
- Localization: localized weekday labels in request heatmap and tooltips/KPI descriptions in usage analytics across English and Chinese interfaces (#55).
|
|
12
|
+
- Model Visibility: fixed zero-model selection to persist `showAllModels: false` and clear positive overrides, added "Hide all" UI action, and pruned stale `modelVisibility` overrides (#63).
|
|
13
|
+
- Test Hygiene: replaced forbidden `rm(..., { recursive: true, force: true })` calls across all unit tests with safe non-force directory cleanup and graceful ENOENT handling (#106).
|
|
14
|
+
- Automated UI Coverage: added automated component action and interaction test suite covering settings loading/saving, updater retry/update flows, language switching, and clean unmounting (#61).
|
|
15
|
+
|
|
3
16
|
## 0.1.32 — 2026-11-06
|
|
4
17
|
|
|
5
18
|
- Reliability: handled already-aborted signal check in adapter test mock to prevent hanging promises under load (#102).
|
package/README.md
CHANGED
|
@@ -108,6 +108,12 @@ graph LR
|
|
|
108
108
|
- **TUI settings section** for terminal profiles.
|
|
109
109
|
- **One-click plugin update** in Settings → Ollama Cloud.
|
|
110
110
|
|
|
111
|
+
## Requirements
|
|
112
|
+
|
|
113
|
+
- **DeepSeek Harness**: \0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0\ (desktop and web profiles).
|
|
114
|
+
- **Node.js**: \>=22.0.0\.
|
|
115
|
+
- **Ollama Cloud Account**: one or more active API keys from Ollama Cloud or a compatible proxy endpoint.
|
|
116
|
+
|
|
111
117
|
## Install
|
|
112
118
|
|
|
113
119
|
Build and pack first:
|
|
@@ -121,17 +127,17 @@ npm pack
|
|
|
121
127
|
Install the published package:
|
|
122
128
|
|
|
123
129
|
```bash
|
|
124
|
-
dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.
|
|
130
|
+
dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.34
|
|
125
131
|
# DSH Desktop:
|
|
126
|
-
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.
|
|
132
|
+
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.34
|
|
127
133
|
```
|
|
128
134
|
|
|
129
135
|
Or install the packed tarball into a profile:
|
|
130
136
|
|
|
131
137
|
```bash
|
|
132
|
-
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.
|
|
138
|
+
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.34.tgz
|
|
133
139
|
# DSH Desktop:
|
|
134
|
-
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.
|
|
140
|
+
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.34.tgz
|
|
135
141
|
```
|
|
136
142
|
|
|
137
143
|
Restart dsh (or DSH Desktop), then pick **Ollama Cloud** in the model picker.
|
package/README.ru.md
CHANGED
|
@@ -90,6 +90,12 @@ graph LR
|
|
|
90
90
|
- **Интеграция с терминалом (TUI)**: специальная секция настроек в терминальном режиме.
|
|
91
91
|
- **One-Click обновление плагина**: прямая проверка npm registry и кнопка обновления в Web UI.
|
|
92
92
|
|
|
93
|
+
## Requirements / Требования
|
|
94
|
+
|
|
95
|
+
- **DeepSeek Harness**: \0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0\ (профили desktop и web).
|
|
96
|
+
- **Node.js**: \>=22.0.0\.
|
|
97
|
+
- **Аккаунт Ollama Cloud**: один или несколько действующих API-ключей Ollama Cloud или совместимого прокси.
|
|
98
|
+
|
|
93
99
|
## Установка
|
|
94
100
|
|
|
95
101
|
Сборка и упаковка из исходного кода:
|
|
@@ -103,17 +109,17 @@ npm pack
|
|
|
103
109
|
Установка опубликованного пакета из npm:
|
|
104
110
|
|
|
105
111
|
```bash
|
|
106
|
-
dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.
|
|
112
|
+
dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.34
|
|
107
113
|
# DSH Desktop:
|
|
108
|
-
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.
|
|
114
|
+
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.34
|
|
109
115
|
```
|
|
110
116
|
|
|
111
117
|
Либо установка из упакованного tarball:
|
|
112
118
|
|
|
113
119
|
```bash
|
|
114
|
-
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.
|
|
120
|
+
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.34.tgz
|
|
115
121
|
# DSH Desktop:
|
|
116
|
-
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.
|
|
122
|
+
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.34.tgz
|
|
117
123
|
```
|
|
118
124
|
|
|
119
125
|
После установки перезапустите dsh (или DSH Desktop) и выберите **Ollama Cloud** в списке моделей.
|
package/README.zh.md
CHANGED
|
@@ -89,6 +89,12 @@ graph LR
|
|
|
89
89
|
- **`/ollama` 快捷指令**:快速查询状态、额度、余额、账号列表与执行联通性测试。
|
|
90
90
|
- **一键热更新**:在 DSH 设置页直接检测 npm 最新版本并快速安装更新。
|
|
91
91
|
|
|
92
|
+
## Requirements / 系统要求
|
|
93
|
+
|
|
94
|
+
- **DeepSeek Harness**: \0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0\(桌面版与 Web 配置文件)。
|
|
95
|
+
- **Node.js**: \>=22.0.0\。
|
|
96
|
+
- **Ollama Cloud 账户**: 一个或多个有效的 Ollama Cloud API Key 或兼容的代理端点。
|
|
97
|
+
|
|
92
98
|
## 安装指南
|
|
93
99
|
|
|
94
100
|
从源码构建与打包:
|
|
@@ -102,17 +108,17 @@ npm pack
|
|
|
102
108
|
从 npm 安装已发布版本:
|
|
103
109
|
|
|
104
110
|
```bash
|
|
105
|
-
dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.
|
|
111
|
+
dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.34
|
|
106
112
|
# DSH 桌面端:
|
|
107
|
-
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.
|
|
113
|
+
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.34
|
|
108
114
|
```
|
|
109
115
|
|
|
110
116
|
或通过打包文件安装:
|
|
111
117
|
|
|
112
118
|
```bash
|
|
113
|
-
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.
|
|
119
|
+
dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.34.tgz
|
|
114
120
|
# DSH 桌面端:
|
|
115
|
-
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.
|
|
121
|
+
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.34.tgz
|
|
116
122
|
```
|
|
117
123
|
|
|
118
124
|
安装完成后重启 dsh 或 DSH 桌面端,在模型列表中选择 **Ollama Cloud** 即可。
|
package/lib/client.js
CHANGED
|
@@ -95,6 +95,17 @@ window.__ModuleLoader__.load({
|
|
|
95
95
|
filterModelsByPlan: "Hide models unavailable in the API",
|
|
96
96
|
filterModelsByPlanHint: "Models the cloud marks as hidden or unsupported in the API are omitted from the picker.",
|
|
97
97
|
showAll: "Show all",
|
|
98
|
+
hideAll: "Hide all",
|
|
99
|
+
dayMon: "Mon",
|
|
100
|
+
dayTue: "Tue",
|
|
101
|
+
dayWed: "Wed",
|
|
102
|
+
dayThu: "Thu",
|
|
103
|
+
dayFri: "Fri",
|
|
104
|
+
daySat: "Sat",
|
|
105
|
+
daySun: "Sun",
|
|
106
|
+
successRateTooltip: "Recorded session steps; failed attempts are not exposed by the local projection.",
|
|
107
|
+
reasoningTooltip: "Reasoning tokens are not exposed by the local session projection.",
|
|
108
|
+
errorsTooltip: "The local projection does not expose failed attempts.",
|
|
98
109
|
free: "FREE",
|
|
99
110
|
legendFree: "free model",
|
|
100
111
|
legendPrice: "$in/$out per 1M tokens",
|
|
@@ -329,6 +340,17 @@ window.__ModuleLoader__.load({
|
|
|
329
340
|
filterModelsByPlan: "隐藏 API 不可用的模型",
|
|
330
341
|
filterModelsByPlanHint: "云标记为隐藏或 API 不支持的模型不会出现在选择器中。",
|
|
331
342
|
showAll: "全部显示",
|
|
343
|
+
hideAll: "全部隐藏",
|
|
344
|
+
dayMon: "周一",
|
|
345
|
+
dayTue: "周二",
|
|
346
|
+
dayWed: "周三",
|
|
347
|
+
dayThu: "周四",
|
|
348
|
+
dayFri: "周五",
|
|
349
|
+
daySat: "周六",
|
|
350
|
+
daySun: "周日",
|
|
351
|
+
successRateTooltip: "已记录的会话步骤;本地投影不公开失败的尝试。",
|
|
352
|
+
reasoningTooltip: "本地会话投影不公开推理 Token。",
|
|
353
|
+
errorsTooltip: "本地投影不公开失败的尝试。",
|
|
332
354
|
free: "免费",
|
|
333
355
|
legendFree: "免费模型",
|
|
334
356
|
legendPrice: "每 100 万 token 的输入/输出价格",
|
|
@@ -630,15 +652,19 @@ window.__ModuleLoader__.load({
|
|
|
630
652
|
});
|
|
631
653
|
}
|
|
632
654
|
// src/client/heatmap.tsx
|
|
633
|
-
const
|
|
634
|
-
"
|
|
635
|
-
"
|
|
636
|
-
"
|
|
637
|
-
"
|
|
638
|
-
"
|
|
639
|
-
"
|
|
640
|
-
"
|
|
655
|
+
const DAY_KEYS = [
|
|
656
|
+
"dayMon",
|
|
657
|
+
"dayTue",
|
|
658
|
+
"dayWed",
|
|
659
|
+
"dayThu",
|
|
660
|
+
"dayFri",
|
|
661
|
+
"daySat",
|
|
662
|
+
"daySun"
|
|
641
663
|
];
|
|
664
|
+
function dayLabel(day, t) {
|
|
665
|
+
const key = DAY_KEYS[day];
|
|
666
|
+
return key !== void 0 ? t(key) : "";
|
|
667
|
+
}
|
|
642
668
|
function cellColor(value, max) {
|
|
643
669
|
if (value === 0 || max <= 0) return "color-mix(in srgb, var(--ocl-text-tertiary) 10%, transparent)";
|
|
644
670
|
const ratio = Math.min(1, value / max);
|
|
@@ -778,11 +804,11 @@ window.__ModuleLoader__.load({
|
|
|
778
804
|
}, `h${hour}`)),
|
|
779
805
|
view.grid.map((row, day) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
780
806
|
className: "ocl-heat-day",
|
|
781
|
-
children:
|
|
807
|
+
children: dayLabel(day, t)
|
|
782
808
|
}), row.map((value, hour) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
783
809
|
className: "ocl-heat-cell",
|
|
784
810
|
style: { background: cellColor(value, max) },
|
|
785
|
-
title: `${
|
|
811
|
+
title: `${dayLabel(day, t)} ${pad(hour)}:00 — ${value}`
|
|
786
812
|
}, `c${day}-${hour}`))] }, `d${day}`))
|
|
787
813
|
]
|
|
788
814
|
}),
|
|
@@ -1043,7 +1069,7 @@ window.__ModuleLoader__.load({
|
|
|
1043
1069
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Kpi, {
|
|
1044
1070
|
label: t("successRate"),
|
|
1045
1071
|
value: summary.successRate === null ? "—" : `${Math.round(summary.successRate)}%`,
|
|
1046
|
-
title: "
|
|
1072
|
+
title: t("successRateTooltip")
|
|
1047
1073
|
}),
|
|
1048
1074
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Kpi, {
|
|
1049
1075
|
label: t("input"),
|
|
@@ -1056,7 +1082,7 @@ window.__ModuleLoader__.load({
|
|
|
1056
1082
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Kpi, {
|
|
1057
1083
|
label: t("reasoning"),
|
|
1058
1084
|
value: summary.reasoningTokens === null ? "—" : compact(summary.reasoningTokens),
|
|
1059
|
-
title: "
|
|
1085
|
+
title: t("reasoningTooltip")
|
|
1060
1086
|
}),
|
|
1061
1087
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Kpi, {
|
|
1062
1088
|
label: t("cacheRead"),
|
|
@@ -1077,7 +1103,7 @@ window.__ModuleLoader__.load({
|
|
|
1077
1103
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Kpi, {
|
|
1078
1104
|
label: t("errors"),
|
|
1079
1105
|
value: summary.errors === null ? "—" : String(summary.errors),
|
|
1080
|
-
title: "
|
|
1106
|
+
title: t("errorsTooltip")
|
|
1081
1107
|
})
|
|
1082
1108
|
]
|
|
1083
1109
|
}),
|
|
@@ -1756,7 +1782,7 @@ window.__ModuleLoader__.load({
|
|
|
1756
1782
|
visibleModels: draft.showAll ? [] : draft.visibleModels,
|
|
1757
1783
|
showAllModels: draft.showAll,
|
|
1758
1784
|
filterModelsByPlan: draft.filterModelsByPlan,
|
|
1759
|
-
modelVisibility: draft.modelVisibility,
|
|
1785
|
+
modelVisibility: draft.showAll ? draft.modelVisibility : Object.fromEntries(Object.entries(draft.modelVisibility).filter(([id, val]) => val === false || draft.visibleModels.includes(id))),
|
|
1760
1786
|
manualModels: draft.manualModels.filter((model) => model.id.trim() !== "").map((model) => ({
|
|
1761
1787
|
id: model.id.trim(),
|
|
1762
1788
|
enabled: model.enabled,
|
|
@@ -2450,11 +2476,14 @@ window.__ModuleLoader__.load({
|
|
|
2450
2476
|
};
|
|
2451
2477
|
const toggleModel = (id, visible) => {
|
|
2452
2478
|
const current = new Set(draft.visibleModels);
|
|
2479
|
+
const nextVisibility = { ...draft.modelVisibility };
|
|
2453
2480
|
if (visible) current.add(id);
|
|
2454
2481
|
else current.delete(id);
|
|
2482
|
+
delete nextVisibility[id];
|
|
2455
2483
|
update({
|
|
2456
2484
|
visibleModels: [...current],
|
|
2457
|
-
showAll: false
|
|
2485
|
+
showAll: false,
|
|
2486
|
+
modelVisibility: nextVisibility
|
|
2458
2487
|
});
|
|
2459
2488
|
};
|
|
2460
2489
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -2987,6 +3016,16 @@ window.__ModuleLoader__.load({
|
|
|
2987
3016
|
visibleModels: state.models.map((model) => model.id)
|
|
2988
3017
|
}),
|
|
2989
3018
|
children: t("showAll")
|
|
3019
|
+
}),
|
|
3020
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
3021
|
+
type: "button",
|
|
3022
|
+
className: "ocl-button",
|
|
3023
|
+
onClick: () => update({
|
|
3024
|
+
showAll: false,
|
|
3025
|
+
visibleModels: [],
|
|
3026
|
+
modelVisibility: {}
|
|
3027
|
+
}),
|
|
3028
|
+
children: t("hideAll")
|
|
2990
3029
|
})
|
|
2991
3030
|
]
|
|
2992
3031
|
}),
|
|
@@ -3082,7 +3121,7 @@ window.__ModuleLoader__.load({
|
|
|
3082
3121
|
})]
|
|
3083
3122
|
}), collapsedGroups[group.key] === true ? null : group.models.map((model) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModelEntry, {
|
|
3084
3123
|
model,
|
|
3085
|
-
visible: draft.showAll || draft.visibleModels.includes(model.id),
|
|
3124
|
+
visible: draft.modelVisibility[model.id] ?? (draft.showAll || draft.visibleModels.includes(model.id)),
|
|
3086
3125
|
transport: draft.modelTransports[model.id] ?? "",
|
|
3087
3126
|
dragging: dragId === model.id,
|
|
3088
3127
|
onDragStart: () => setDragId(model.id),
|
package/lib/index.js
CHANGED
|
@@ -110,7 +110,6 @@ function createAttemptBudget(timeoutMs, caller) {
|
|
|
110
110
|
budget.timedOut = true;
|
|
111
111
|
controller.abort();
|
|
112
112
|
}, timeoutMs) : void 0;
|
|
113
|
-
timer?.unref?.();
|
|
114
113
|
budget.dispose = () => {
|
|
115
114
|
if (timer !== void 0) clearTimeout(timer);
|
|
116
115
|
caller?.removeEventListener("abort", onAbort);
|
|
@@ -124,7 +123,7 @@ const DEFAULT_API_BASE = "https://ollama.com";
|
|
|
124
123
|
const DEFAULT_OPENAI_BASE = "https://ollama.com/v1";
|
|
125
124
|
const DEFAULT_USAGE_URL = "https://ollama.com/api/usage";
|
|
126
125
|
const DEFAULT_BALANCE_URL = "https://ollama.com/api/balance";
|
|
127
|
-
const DEFAULT_USER_AGENT = "dsh-ollama-cloud-provider/0.1.
|
|
126
|
+
const DEFAULT_USER_AGENT = "dsh-ollama-cloud-provider/0.1.34";
|
|
128
127
|
const DEFAULT_CONTEXT_WINDOW = 131072;
|
|
129
128
|
const DEFAULT_MAX_TOKENS = 32768;
|
|
130
129
|
const DEFAULT_GENERATE_MAX_TOKENS = 131072;
|
|
@@ -4596,16 +4595,15 @@ async function defaultVerifyHost(req) {
|
|
|
4596
4595
|
});
|
|
4597
4596
|
await response.body?.cancel();
|
|
4598
4597
|
if (response.status >= 300 && response.status < 400) return false;
|
|
4599
|
-
if (response.status ===
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
return response.status < 500 && response.status !== 401 && response.status !== 403;
|
|
4598
|
+
if (response.status === 401 || response.status === 403 || response.status >= 500) return false;
|
|
4599
|
+
const anonymous = await fetch(`${localOrigin}/api/version`, {
|
|
4600
|
+
headers: { accept: "application/json" },
|
|
4601
|
+
redirect: "manual",
|
|
4602
|
+
signal: AbortSignal.timeout(2500)
|
|
4603
|
+
});
|
|
4604
|
+
await anonymous.body?.cancel();
|
|
4605
|
+
if (anonymous.status !== 401 && anonymous.status !== 403) return false;
|
|
4606
|
+
return response.status >= 200 && response.status < 300 || response.status === 404;
|
|
4609
4607
|
} catch {
|
|
4610
4608
|
return false;
|
|
4611
4609
|
}
|
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.34",
|
|
4
4
|
"description": "Ollama Cloud LLM provider plugin for DeepSeek Harness (dsh).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
"0.2.2-alpha.3": "compatible",
|
|
63
63
|
"0.2.2-rc.1": "compatible"
|
|
64
64
|
},
|
|
65
|
-
"dsh": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0"
|
|
65
|
+
"dsh": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=22",
|
|
70
|
-
"dsh": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0"
|
|
70
|
+
"dsh": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "tsdown",
|
|
74
74
|
"prepare": "tsdown 1>&2",
|
|
75
75
|
"typecheck": "tsc --noEmit",
|
|
76
|
-
"test": "node --import tsx --test --test-concurrency=1 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 tests/reasoning.test.ts tests/catalog-cache.test.ts tests/attempt.test.ts tests/model-groups.test.tsx tests/discovery.test.ts tests/sanitize.test.ts tests/retry.test.ts tests/provider-card.test.tsx tests/host-verification.test.ts",
|
|
76
|
+
"test": "node --import tsx --test --test-concurrency=1 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 tests/reasoning.test.ts tests/catalog-cache.test.ts tests/attempt.test.ts tests/model-groups.test.tsx tests/discovery.test.ts tests/sanitize.test.ts tests/retry.test.ts tests/provider-card.test.tsx tests/host-verification.test.ts tests/ui-actions.test.tsx",
|
|
77
77
|
"check": "npm run typecheck && npm test && npm run build",
|
|
78
78
|
"release": "npm run check && npm pack",
|
|
79
79
|
"sync:models": "node scripts/sync-models.mjs"
|
|
@@ -88,18 +88,18 @@
|
|
|
88
88
|
],
|
|
89
89
|
"peerDependencies": {
|
|
90
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",
|
|
91
|
+
"@deepseek-ai/dsh-attachment": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0",
|
|
92
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <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 || >=0.2.2-0 <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 || >=0.2.2-0 <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 || >=0.2.2-0 <0.2.3-0",
|
|
96
|
+
"@deepseek-ai/dsh-commands": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0",
|
|
97
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0",
|
|
98
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0",
|
|
99
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0",
|
|
100
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0",
|
|
101
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0",
|
|
102
|
+
"@deepseek-ai/dsh-web": "0.2.0-rc.2 || >=0.2.1-rc.2 <0.2.3-0 || >=0.2.2-0 <0.2.3-0",
|
|
103
103
|
"@deepseek-ai/schemastery": "~3.18.4 || ~3.18.5 || ~3.18.6-alpha.1 || ~3.19.0",
|
|
104
104
|
"react": "^18.2.0"
|
|
105
105
|
},
|
|
@@ -121,10 +121,14 @@
|
|
|
121
121
|
"@types/node": "^22.0.0",
|
|
122
122
|
"@types/react": "^18.3.1",
|
|
123
123
|
"@types/react-dom": "18.3.7",
|
|
124
|
+
"happy-dom": "^21.0.4",
|
|
124
125
|
"react": "^18.3.1",
|
|
125
126
|
"react-dom": "18.3.1",
|
|
126
127
|
"tsdown": "^0.22.2",
|
|
127
128
|
"tsx": "^4.23.12",
|
|
128
129
|
"typescript": "^5.7.2"
|
|
130
|
+
},
|
|
131
|
+
"overrides": {
|
|
132
|
+
"zod": "^4.6.7"
|
|
129
133
|
}
|
|
130
134
|
}
|