@dsh-plugins/dsh-llm-hub 1.9.0 → 1.9.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/CHANGELOG.md +19 -0
- package/lib/client.js +17 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
本项目遵循 [Semantic Versioning](https://semver.org/lang/zh-CN/)。
|
|
4
4
|
|
|
5
|
+
## [1.9.1] - 2026-10-12
|
|
6
|
+
|
|
7
|
+
### 🐛 安装文案指向一个已经退役的 profile
|
|
8
|
+
|
|
9
|
+
宿主 2026-10-02 从「常驻 web 服务(profile `web`)」换成「桌面端 app(profile `desktop`,
|
|
10
|
+
由 app 独占托管)」,而本插件的安装指引仍写死 `--profile web`。用户照着复制出来的命令
|
|
11
|
+
执行,只会拿到一条 `profile "web" ...` 的报错 —— 比不给命令更糟。
|
|
12
|
+
|
|
13
|
+
- 家族 Dock 的「⚡ 一键复制安装」与页脚的「分享」两处文案都改为给出两条路:
|
|
14
|
+
桌面端 app 在**插件管理**里搜包名直接装;自建 CLI profile 走
|
|
15
|
+
`dsh plugin --profile <你的profile名> add <包名>`,profile 名用占位符而非写死
|
|
16
|
+
- 按钮悬浮提示同步更新
|
|
17
|
+
- `npm run preview` 原来 `open http://127.0.0.1:3080`,该服务已下线,改为与 bloom 一致的
|
|
18
|
+
「部署完成 → 到桌面端应用里重载页面」提示
|
|
19
|
+
|
|
20
|
+
之所以拖到现在才发现:**那条把旧文案钉死的测试也一起写错了** —— 断言的是
|
|
21
|
+
`--profile web` 字面量。文案和测试一起错,反而没人发现。断言已改为只钉意图
|
|
22
|
+
(必须带 `--profile`、必须给出桌面端安装路径、不许再出现已退役的 profile 名)。
|
|
23
|
+
|
|
5
24
|
## [1.9.0] - 2026-10-10
|
|
6
25
|
|
|
7
26
|
### 🚀 下线智能路由配置界面,替换为只读用量/模型展示 Chip,修复可用模型统计 Bug
|
package/lib/client.js
CHANGED
|
@@ -2041,10 +2041,11 @@ window.__ModuleLoader__.load({
|
|
|
2041
2041
|
// 只有手写 package.json 或从别处搬时才需要手动补,所以标成「如果没自动加」。
|
|
2042
2042
|
const text = [
|
|
2043
2043
|
`${meta.name} —— DSH 模型页增强:网关可达性探测、余额/配额、模型目录勾选写回配置。`,
|
|
2044
|
-
'装到你的 DSH
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2044
|
+
'装到你的 DSH:',
|
|
2045
|
+
' · 桌面端 app:在应用内的「插件管理」里搜 ' + meta.name + ' 直接装',
|
|
2046
|
+
' (app 独占托管 desktop profile,CLI 的 dsh plugin --profile desktop 会被拒)',
|
|
2047
|
+
` · 自建 CLI profile:dsh plugin --profile <你的profile名> add ${meta.name}`,
|
|
2048
|
+
` 然后确认 "${meta.name}" 在该 profile 的 package.json 的 dsh.profile.bundles 里(plugin add 会自动加),重启 DSH`,
|
|
2048
2049
|
typeof meta.homepage === 'string' ? `仓库:${meta.homepage}` : ''
|
|
2049
2050
|
].filter((line) => line !== '').join('\n')
|
|
2050
2051
|
navigator.clipboard?.writeText(text).then(() => setShared(true)).catch(() => setShared(false))
|
|
@@ -2165,7 +2166,17 @@ window.__ModuleLoader__.load({
|
|
|
2165
2166
|
const handleCopy = (pkg) => {
|
|
2166
2167
|
// 命令必须带 `--profile`:`dsh plugin` 是 pnpm 的透传层,profile 是
|
|
2167
2168
|
// **必填**选项,漏了直接报错退出 —— 复制出去的命令得是能跑的。
|
|
2168
|
-
|
|
2169
|
+
//
|
|
2170
|
+
// ⚠️ 2026-10-12 改:原来写死 `--profile web`。web profile 已于 2026-10-02
|
|
2171
|
+
// 退役,当前宿主是桌面端 app(profile `desktop`,app 独占托管,CLI 会被
|
|
2172
|
+
// 拒)。写死任何具体 profile 名都等于给一条必然过期的指令,所以两条路
|
|
2173
|
+
// 都给:app 里走插件管理,CLI profile 名留占位符由对方自己填。
|
|
2174
|
+
const cmd = [
|
|
2175
|
+
`# 桌面端 app:在应用内的「插件管理」里搜 ${pkg} 直接装`,
|
|
2176
|
+
`# (app 独占托管 desktop profile,CLI 的 dsh plugin --profile desktop 会被拒)`,
|
|
2177
|
+
`# 自建 CLI profile:`,
|
|
2178
|
+
`dsh plugin --profile <你的profile名> add ${pkg}`
|
|
2179
|
+
].join('\n')
|
|
2169
2180
|
if (navigator.clipboard) {
|
|
2170
2181
|
navigator.clipboard.writeText(cmd)
|
|
2171
2182
|
}
|
|
@@ -2212,7 +2223,7 @@ window.__ModuleLoader__.load({
|
|
|
2212
2223
|
type: 'button',
|
|
2213
2224
|
className: 'dsh-suite-btn-action',
|
|
2214
2225
|
onClick: () => handleCopy(item.pkg),
|
|
2215
|
-
title:
|
|
2226
|
+
title: `安装:app 插件管理搜 ${item.pkg},或 dsh plugin --profile <你的profile名> add ${item.pkg}`
|
|
2216
2227
|
}, isCopied ? `✓ ${t('suiteCopied')}` : `⚡ ${t('suiteCopyInstall')}`)
|
|
2217
2228
|
),
|
|
2218
2229
|
h('a', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-plugins/dsh-llm-hub",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "DSH 模型管理层:网关可达性探测、模型目录拉取、DeepSeek + MiniMax/智谱/Moonshot/StepFun 余额与配额、本月用量统计、余额预警、Provider 健康看板,再把本机装好的 codex / claude / agy 注册成子代理(装了才出现)。零运行时依赖,不改动 DSH 安装。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"deploy": "rsync -av --delete lib/ ~/.dsh/profiles/${DSH_PROFILE:-desktop}/node_modules/@dsh-plugins/dsh-llm-hub/lib/ && rsync -av types package.json cordis.patch.yml README.md README.en.md LICENSE ~/.dsh/profiles/${DSH_PROFILE:-desktop}/node_modules/@dsh-plugins/dsh-llm-hub/",
|
|
32
|
-
"preview": "npm run deploy && open
|
|
32
|
+
"preview": "npm run deploy && echo '部署完成 —— 到桌面端应用里重载页面(它不是浏览器,没有可 open 的 URL)'",
|
|
33
33
|
"check": "for f in lib/*.js; do node --check \"$f\" || exit 1; done",
|
|
34
34
|
"test": "node --test",
|
|
35
35
|
"prepublishOnly": "npm run check && npm test && node scripts/prepublish-gate.mjs && node scripts/readme-gate.mjs"
|