dsh-model 0.21.2 → 0.21.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.en.md +1 -1
- package/README.md +1 -1
- package/dist/commands/setup.js +5 -4
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -42,7 +42,7 @@ On a dsh-vps server, use `sudo dsh-model setup`. On Windows, run it in a normal
|
|
|
42
42
|
`setup` is safe to re-run. It:
|
|
43
43
|
|
|
44
44
|
1. downloads and verifies the engine and runs it on `127.0.0.1:8317/v1`, with key auth enforced;
|
|
45
|
-
2. connects
|
|
45
|
+
2. connects WorkBuddy (dsh-model's own bridge). Setup asks for no keys: turn on OpenCode Zen and other key-based sources from the management page when you need them;
|
|
46
46
|
3. installs the management page into dsh and syncs the models into dsh;
|
|
47
47
|
4. on a VPS, also opens a public address `https://<dsh's domain>:9443/v1` (or `<IP>.sslip.io` when there is no domain).
|
|
48
48
|
|
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ dsh-model setup
|
|
|
42
42
|
`setup` 可以重复执行,它会依次:
|
|
43
43
|
|
|
44
44
|
1. 下载并校验引擎,在本机 `127.0.0.1:8317/v1` 上运行,强制 key 鉴权;
|
|
45
|
-
2. 接入
|
|
45
|
+
2. 接入 WorkBuddy(dsh-model 自己的 bridge)。安装时不问任何 key,OpenCode Zen 等要 key 的来源,需要时在管理页里打开;
|
|
46
46
|
3. 把管理页装进 dsh,把模型同步进 dsh;
|
|
47
47
|
4. 在 VPS 上,额外开通对外地址 `https://<dsh 的域名>:9443/v1`(没有域名时用 `<IP>.sslip.io`)。
|
|
48
48
|
|
package/dist/commands/setup.js
CHANGED
|
@@ -17,7 +17,7 @@ import { ensureDir } from '../util/fs.js';
|
|
|
17
17
|
import { bold, info, next, ok, skip, warn } from '../util/output.js';
|
|
18
18
|
import { findFreePort, isPortFree } from '../util/port.js';
|
|
19
19
|
import { detectProxy, normalizeProxyUrl, redactProxy } from '../util/proxy.js';
|
|
20
|
-
import {
|
|
20
|
+
import { configureOpencode } from './opencode.js';
|
|
21
21
|
import { opencodeConfigured } from '../integrations/opencode.js';
|
|
22
22
|
import { ensureDaemon } from '../daemon/service.js';
|
|
23
23
|
import { installDshPlugin } from '../integrations/dshplugin.js';
|
|
@@ -26,8 +26,6 @@ import { installAdmin } from '../service/admin.js';
|
|
|
26
26
|
import { DEFAULT_PUBLIC_PORT, publicHost } from '../remote/public.js';
|
|
27
27
|
export async function setup(ctx, opts) {
|
|
28
28
|
requireRootInVps(ctx);
|
|
29
|
-
// 要问的先问完再拿锁:等你输入时不占着锁,dsh 管理页照常能用(实测:卡在问 key 时页面新增 key 报"另一个命令正在运行")
|
|
30
|
-
const opencodeKey = opts.skipOpencode || (await opencodeConfigured(ctx)) ? undefined : await askOpencodeKey();
|
|
31
29
|
return withLock(ctx, async () => {
|
|
32
30
|
const all = await loadAll(ctx);
|
|
33
31
|
await ensureDir(ctx.paths.home, { owner: ctx.owner });
|
|
@@ -75,8 +73,11 @@ export async function setup(ctx, opts) {
|
|
|
75
73
|
info(bold('OpenCode Zen'));
|
|
76
74
|
if (opts.skipOpencode)
|
|
77
75
|
skip(L('已跳过(--skip-opencode)', 'Skipped (--skip-opencode)'));
|
|
76
|
+
// 安装时不问 key:要用的话在 dsh「设置 → dsh-model → 来源」里填,或执行 dsh-model opencode key
|
|
77
|
+
else if (await opencodeConfigured(ctx))
|
|
78
|
+
await step('opencode', () => configureOpencode(ctx, all));
|
|
78
79
|
else
|
|
79
|
-
|
|
80
|
+
skip(L('没填 key,跳过;需要时在 dsh「设置 → dsh-model → 来源」里打开它(或执行 dsh-model opencode key)', 'No key, skipped; when you need it, turn it on in dsh Settings → dsh-model → Sources (or run dsh-model opencode key)'));
|
|
80
81
|
info('');
|
|
81
82
|
info(bold('WorkBuddy'));
|
|
82
83
|
if (opts.skipWorkbuddy)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-model",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.3",
|
|
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",
|