dsh-model 0.18.0 → 0.18.1
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/package.json +1 -1
- package/plugin/client.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-model",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "Many model sources behind one authenticated OpenAI-compatible endpoint for DeepSeek Harness (dsh) and your tools: WorkBuddy, OpenCode Zen and your CLI subscriptions (Codex, Kimi…), with a management page inside dsh. 多家模型汇成一个 OpenAI 兼容地址,dsh 和其他软件都能直接用。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh-plugin",
|
package/plugin/client.js
CHANGED
|
@@ -327,8 +327,6 @@ window.__ModuleLoader__.load({
|
|
|
327
327
|
}, (e) => alive && setMsg(e.message))
|
|
328
328
|
return () => { alive = false }
|
|
329
329
|
}, [source.id])
|
|
330
|
-
if (selfJob) return h(SelfProgress, { job: selfJob, onDone: () => { setSelfJob(null); void load(true) } })
|
|
331
|
-
if (errCode === 'daemon_not_configured' || errCode === 'daemon_unreachable') return h(Onboarding, { code: errCode, onDone: () => void load(true) })
|
|
332
330
|
if (!data) return h('div', { style: { ...S.meta, paddingLeft: 46, marginTop: 8 } }, msg || L('加载中…', 'Loading…'))
|
|
333
331
|
const flip = (id) => setSel((x) => { const n = new Set(x); n.has(id) ? n.delete(id) : n.add(id); return n })
|
|
334
332
|
const save = async (models) => {
|
|
@@ -677,6 +675,9 @@ window.__ModuleLoader__.load({
|
|
|
677
675
|
const t = setInterval(() => void load(false), 15000)
|
|
678
676
|
return () => { alive.current = false; clearInterval(t) }
|
|
679
677
|
}, [load])
|
|
678
|
+
// 更新 / 卸载进行中、服务没装或没在运行:整页换成对应的卡片(不能只显示一行错误)
|
|
679
|
+
if (selfJob) return h(SelfProgress, { job: selfJob, onDone: () => { setSelfJob(null); void load(true) } })
|
|
680
|
+
if (errCode === 'daemon_not_configured' || errCode === 'daemon_unreachable') return h(Onboarding, { code: errCode, onDone: () => void load(true) })
|
|
680
681
|
if (!data) return h('div', { style: { fontSize: 13, color: err ? C.err : C.sub, padding: '8px 0' } }, err || L('加载中…', 'Loading…'))
|
|
681
682
|
return h('div', { style: { color: C.text, maxWidth: 820 } },
|
|
682
683
|
err ? h('div', { style: { fontSize: 12, color: C.err, marginBottom: 12 } }, err) : null,
|