@dsh-plugins/dsh-llm-hub 1.9.8 → 1.9.9

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  本项目遵循 [Semantic Versioning](https://semver.org/lang/zh-CN/)。
4
4
 
5
+ ## [1.9.9](https://github.com/webkubor/dsh-llm-hub/compare/v1.9.8...v1.9.9) (2026-10-29)
6
+
7
+
8
+ ### 🐛 Bug Fixes
9
+
10
+ * **ui:** restore model overview styles and retire obsolete suite cards ([15b1c23](https://github.com/webkubor/dsh-llm-hub/commit/15b1c2345a6c3bc9a02c2ac68b97b7789442f9da))
11
+
5
12
  ## [1.9.8](https://github.com/webkubor/dsh-llm-hub/compare/v1.9.7...v1.9.8) (2026-10-28)
6
13
 
7
14
 
@@ -1,4 +1,4 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="640" height="340" viewBox="0 0 640 340" font-family="-apple-system, 'SF Pro Text', 'PingFang SC', system-ui, sans-serif">
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="640" height="230" viewBox="0 0 640 230" font-family="-apple-system, 'SF Pro Text', 'PingFang SC', system-ui, sans-serif">
2
2
  <defs>
3
3
  <linearGradient id="bg" x1="0" y1="0" x2="0" y2="1">
4
4
  <stop offset="0%" stop-color="#1f1d2b"/>
@@ -15,65 +15,43 @@
15
15
  <filter id="blur"><feGaussianBlur stdDeviation="6"/></filter>
16
16
  </defs>
17
17
 
18
- <rect width="640" height="340" fill="url(#bg)"/>
19
- <rect x="0" y="0" width="640" height="340" fill="#000" opacity="0.0"/>
18
+ <rect width="640" height="230" fill="url(#bg)"/>
19
+ <rect x="0" y="0" width="640" height="230" fill="#000" opacity="0.0"/>
20
20
  <circle cx="80" cy="60" r="120" fill="#7c3aed" opacity="0.10" filter="url(#blur)"/>
21
- <circle cx="560" cy="280" r="140" fill="#3b82f6" opacity="0.10" filter="url(#blur)"/>
21
+ <circle cx="560" cy="180" r="140" fill="#3b82f6" opacity="0.10" filter="url(#blur)"/>
22
22
 
23
23
  <!-- panel container -->
24
- <rect x="32" y="22" width="576" height="296" rx="12" fill="#1a1825" stroke="#2d2b3a" stroke-width="1"/>
24
+ <rect x="32" y="22" width="576" height="176" rx="12" fill="#1a1825" stroke="#2d2b3a" stroke-width="1"/>
25
25
 
26
26
  <!-- head -->
27
27
  <g transform="translate(48,46)">
28
28
  <text x="0" y="14" font-size="14" font-weight="650" fill="#e5e7eb">🌟 Webkubor DSH 扩展家族</text>
29
- <text x="384" y="14" font-size="10" fill="#9ca3af" text-anchor="end">一键构建完整智能体开发环境</text>
29
+ <text x="544" y="14" font-size="10" fill="#9ca3af" text-anchor="end">一键构建完整智能体开发环境</text>
30
30
  </g>
31
31
 
32
- <!-- 4 cards grid 2x2, each 270x110 -->
32
+ <!-- 2 cards in 1 row, each 266x100 -->
33
33
  <!-- card 1: Bloom Theme -->
34
- <g transform="translate(48,82)">
35
- <rect width="266" height="104" rx="8" fill="url(#card)" stroke="#2d2b3a"/>
34
+ <g transform="translate(48,80)">
35
+ <rect width="266" height="100" rx="8" fill="url(#card)" stroke="#2d2b3a"/>
36
36
  <text x="14" y="24" font-size="14">🌸</text>
37
37
  <text x="34" y="26" font-size="12" font-weight="600" fill="#e5e7eb">Bloom Theme</text>
38
38
  <text x="14" y="50" font-size="10.5" fill="#9ca3af">落霞 Bloom 极客质感毛玻璃主题与代码高亮</text>
39
- <circle cx="14" cy="78" r="3.5" fill="url(#dot)"/>
40
- <text x="24" y="82" font-size="10.5" font-weight="600" fill="#10b981">已激活</text>
41
- <text x="252" y="82" font-size="10" fill="#6b7280" text-anchor="end">GitHub ↗</text>
39
+ <circle cx="14" cy="76" r="3.5" fill="url(#dot)"/>
40
+ <text x="24" y="80" font-size="10.5" font-weight="600" fill="#10b981">已激活</text>
41
+ <text x="252" y="80" font-size="10" fill="#6b7280" text-anchor="end">GitHub ↗</text>
42
42
  </g>
43
43
 
44
44
  <!-- card 2: LLM Hub -->
45
- <g transform="translate(326,82)">
46
- <rect width="266" height="104" rx="8" fill="url(#card)" stroke="#2d2b3a"/>
45
+ <g transform="translate(326,80)">
46
+ <rect width="266" height="100" rx="8" fill="url(#card)" stroke="#2d2b3a"/>
47
47
  <text x="14" y="24" font-size="14">🎛️</text>
48
48
  <text x="34" y="26" font-size="12" font-weight="600" fill="#e5e7eb">LLM Hub</text>
49
49
  <text x="14" y="50" font-size="10.5" fill="#9ca3af">多模型网关、余额配额、多 Key 轮换与极客大屏</text>
50
- <circle cx="14" cy="78" r="3.5" fill="url(#dot)"/>
51
- <text x="24" y="82" font-size="10.5" font-weight="600" fill="#10b981">已激活</text>
52
- <text x="252" y="82" font-size="10" fill="#6b7280" text-anchor="end">GitHub ↗</text>
53
- </g>
54
-
55
- <!-- card 3: User Mirror -->
56
- <g transform="translate(48,196)">
57
- <rect width="266" height="104" rx="8" fill="url(#card)" stroke="#2d2b3a"/>
58
- <text x="14" y="24" font-size="14">🪞</text>
59
- <text x="34" y="26" font-size="12" font-weight="600" fill="#e5e7eb">User Mirror</text>
60
- <text x="14" y="50" font-size="10.5" fill="#9ca3af">用户角色数字画像、习惯偏好与记忆网络</text>
61
- <circle cx="14" cy="78" r="3.5" fill="url(#dot)"/>
62
- <text x="24" y="82" font-size="10.5" font-weight="600" fill="#10b981">已激活</text>
63
- <text x="252" y="82" font-size="10" fill="#6b7280" text-anchor="end">GitHub ↗</text>
64
- </g>
65
-
66
- <!-- card 4: Env Inspector -->
67
- <g transform="translate(326,196)">
68
- <rect width="266" height="104" rx="8" fill="url(#card)" stroke="#2d2b3a"/>
69
- <text x="14" y="24" font-size="14">🖥️</text>
70
- <text x="34" y="26" font-size="12" font-weight="600" fill="#e5e7eb">Env Inspector</text>
71
- <text x="14" y="50" font-size="10.5" fill="#9ca3af">端口监听释放、CLI 工具链与环境大屏</text>
72
- <circle cx="14" cy="78" r="3.5" fill="url(#dot)"/>
73
- <text x="24" y="82" font-size="10.5" font-weight="600" fill="#10b981">已激活</text>
74
- <text x="252" y="82" font-size="10" fill="#6b7280" text-anchor="end">GitHub ↗</text>
50
+ <circle cx="14" cy="76" r="3.5" fill="url(#dot)"/>
51
+ <text x="24" y="80" font-size="10.5" font-weight="600" fill="#10b981">已激活</text>
52
+ <text x="252" y="80" font-size="10" fill="#6b7280" text-anchor="end">GitHub ↗</text>
75
53
  </g>
76
54
 
77
55
  <!-- caption hint -->
78
- <text x="320" y="332" font-size="9" fill="#6b7280" text-anchor="middle">设置 → 模型 → 底部「Webkubor DSH 扩展家族」</text>
79
- </svg>
56
+ <text x="320" y="218" font-size="9" fill="#6b7280" text-anchor="middle">设置 → 模型 → 底部「Webkubor DSH 扩展家族」</text>
57
+ </svg>
package/lib/client.js CHANGED
@@ -548,16 +548,20 @@ window.__ModuleLoader__.load({
548
548
  'box-shadow:0 0 5px rgba(239,68,68,.5)}',
549
549
  '.dsh-llm-hub-dot-sep{opacity:.35;margin:0 1px}',
550
550
  // harness
551
- '.dsh-llm-hub-harness{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px;',
551
+ '.dsh-llm-hub-harness{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;',
552
+ 'padding:8px 12px;border-radius:8px;border:1px solid var(--bloom-hairline,rgba(255,255,255,.06));',
553
+ 'background:var(--dsw-alias-bg-layer-2,rgba(255,255,255,.02));backdrop-filter:blur(8px);',
552
554
  'font-size:11.5px;line-height:16px;color:var(--dsw-alias-label-secondary)}',
553
- '.dsh-llm-hub-harness__chip{display:inline-flex;align-items:center;gap:4px;',
554
- 'padding:2px 7px;border-radius:999px;border:.5px solid var(--dsw-alias-border-l1);',
555
- 'background:transparent}',
555
+ '.dsh-llm-hub-harness__title{font-size:11px;font-weight:600;color:var(--dsw-alias-label-tertiary);letter-spacing:.2px;margin-right:2px}',
556
+ '.dsh-llm-hub-harness__chip{display:inline-flex;align-items:center;gap:5px;',
557
+ 'padding:3px 9px;border-radius:6px;border:1px solid var(--dsw-alias-border-l1,rgba(255,255,255,.08));',
558
+ 'background:var(--dsw-alias-bg-layer-3,rgba(255,255,255,.03));transition:all .15s ease}',
559
+ '.dsh-llm-hub-harness__chip:hover{border-color:var(--bloom-accent,#5fa8b2);background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.08))}',
556
560
  '.dsh-llm-hub-harness__chip--missing{opacity:.45}',
557
561
  '.dsh-llm-hub-harness__dot{width:5px;height:5px;border-radius:50%;',
558
562
  'background:var(--dsw-alias-label-secondary);flex:none}',
559
- '.dsh-llm-hub-harness__dot--ready{background:var(--dsw-alias-state-success-primary,#10b981)}',
560
- '.dsh-llm-hub-harness__name{color:var(--dsw-alias-label-primary)}',
563
+ '.dsh-llm-hub-harness__dot--ready{background:var(--dsw-alias-state-success-primary,#10b981);box-shadow:0 0 6px rgba(16,185,129,.6)}',
564
+ '.dsh-llm-hub-harness__name{color:var(--dsw-alias-label-primary);font-weight:550}',
561
565
  '.dsh-llm-hub-harness__state{opacity:.75}',
562
566
  // 目录选择器 Drawer
563
567
  '.dsh-llm-hub-picker{margin-top:6px;padding:8px 10px;border-radius:6px;',
@@ -572,12 +576,13 @@ window.__ModuleLoader__.load({
572
576
  '.dsh-llm-hub-picker__tag{font-size:10.5px;padding:0 4px;border-radius:3px;',
573
577
  'color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-3)}',
574
578
  // 页脚
575
- '.dsh-llm-hub-foot{display:flex;align-items:center;gap:10px;margin-top:10px;',
576
- 'padding:2px 2px;font-size:11px;color:var(--dsw-alias-label-secondary);opacity:.75}',
577
- '.dsh-llm-hub-foot__name{font-variant-numeric:tabular-nums;opacity:.9}',
578
- '.dsh-llm-hub-foot__link{color:var(--dsw-alias-label-link);text-decoration:none;',
579
- 'border:0;background:0 0;padding:0;font:inherit;font-size:11px;cursor:pointer}',
580
- '.dsh-llm-hub-foot__link:hover{text-decoration:underline}',
579
+ '.dsh-llm-hub-foot{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap;',
580
+ 'padding:2px 2px;font-size:11px;color:var(--dsw-alias-label-secondary)}',
581
+ '.dsh-llm-hub-foot__name{font-variant-numeric:tabular-nums;opacity:.85;font-family:ui-monospace,monospace;font-size:10.5px}',
582
+ '.dsh-llm-hub-foot__link{color:var(--dsw-alias-label-secondary);text-decoration:none;',
583
+ 'border:1px solid var(--dsw-alias-border-l1,rgba(255,255,255,.08));background:var(--dsw-alias-bg-layer-3,rgba(255,255,255,.02));',
584
+ 'padding:3px 8px;border-radius:5px;font:inherit;font-size:10.5px;cursor:pointer;display:inline-flex;align-items:center;gap:4px;transition:all .15s ease}',
585
+ '.dsh-llm-hub-foot__link:hover:not(:disabled){color:var(--dsw-alias-label-primary);border-color:var(--bloom-accent,#5fa8b2);background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.08));text-decoration:none}',
581
586
  '.dsh-llm-hub-chip{box-sizing:border-box;display:inline-flex;align-items:center;height:20px;padding:0 6px;',
582
587
  'border-radius:10px;font-size:10.5px;line-height:14px;white-space:nowrap;',
583
588
  'border:.5px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary)}',
@@ -654,51 +659,22 @@ window.__ModuleLoader__.load({
654
659
  '.dsh-llm-hub-route__hint{font-size:10px;color:var(--dsw-alias-label-tertiary)}',
655
660
  '.dsh-llm-hub-route__order{font-size:10px;color:var(--dsw-alias-label-secondary);',
656
661
  'font-family:ui-monospace,SFMono-Regular,monospace;word-break:break-all;line-height:1.4}',
657
- // 智能路由编辑器(设置页路由卡)
658
- // 规则说明:去掉盒子背景,只留淡灰单行注脚,视觉权重要低于第 2 行「将路由到…」
659
- 'color:var(--dsw-alias-label-tertiary);padding:0}',
660
- // 当前组:边框降一档 + 顶部 brand 细线高亮,替代原本的 warn 四边描边
661
- 'border:.5px solid var(--dsw-alias-border-l1);border-radius:4px;background:transparent;cursor:pointer;',
662
- 'font:inherit;font-size:11px;line-height:1;color:var(--dsw-alias-label-secondary);white-space:nowrap;transition:all .15s ease}',
663
- 'border:0;background:transparent;padding:0;cursor:pointer;font:inherit;font-size:12px;line-height:1;',
664
- 'color:var(--dsw-alias-label-tertiary);border-radius:3px;transition:all .15s ease}',
665
- // 折叠行(1.6.2):组名 + 「将路由到 X」+ 主力 + 兜底条数,一行读完。
666
- // 组名给固定宽度,与下面展开态的 label 输入框同宽 —— 收起/展开时这一列不跳。
667
- 'white-space:nowrap;font-size:11.5px;font-weight:600;color:var(--dsw-alias-label-primary)}',
668
- 'border:.5px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);',
669
- 'font:inherit;font-size:11px;outline:none;transition:border-color .15s ease}',
670
- // 允许换行,不允许截断(1.6.2 浏览器实测后改的)。设置内容区只有 564px,
671
- // 扣掉序号/组名/两个按钮,摘要只剩 ~210px;而真实数据的 provider/model
672
- // 要 200-215px —— 差的这几十像素,省不掉,只能换行。之前用 nowrap+ellipsis
673
- // 把「→ modelgo-gateway/claude-sonnet-5」砍成「→ modelgo-gatewa…」,
674
- // 砍掉的正好是判断路由结果最需要的那段:看不出是 sonnet-5 还是别的。
675
- // 组头因此高一行,是「读得全」该付的代价。
676
- 'color:var(--dsw-alias-label-secondary);display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}',
677
- // 断行点放在 provider 与 model 之间的斜杠上:读起来是两条完整信息,
678
- // 而不是把一个词从中间劈开。break-all 是兜底 —— provider id 里也有长词。
679
- 'min-width:0;word-break:break-word;overflow-wrap:anywhere}',
680
- // 可用/总:紧跟在「将路由到」后面,且**不参与压缩** —— 压它等于把
681
- // 「还剩几个能兜」这个答案藏掉,而它只要 30px。
682
- 'color:var(--dsw-alias-label-tertiary);font-variant-numeric:tabular-nums}',
683
- // 1.7.0 路由编辑器:序号徽标、编辑按钮、原地下拉、备注、放大的操作按钮、自动保存状态
684
- 'padding:0 6px;font-size:10.5px;font-weight:600;background:var(--dsw-alias-bg-layer-3,rgba(255,255,255,.08));color:var(--dsw-alias-label-secondary)}',
685
- // 全组共用一张网格:行与 pick 都是 display:contents,列宽由整组一起决定 ——
686
- // 各行自成网格时,右侧标签列按本行内容伸缩,模型下拉的右边缘每行都不一样(浏览器实测 908 vs 845px)。
687
- // 标签区给固定宽度并靠右:有无「思考/图像」标签的行,备注框都一样宽,右边缘对齐。
688
- // 半可用单独一色:全绿和全红之间还有「还剩几个」这个状态,
689
- // 混成全绿会让人以为不用管,混成全红会误报故障。
690
- // 同理固定宽度:主力行没有「设为主力」,按钮区只有 77px(其余 141px),备注右边缘会错开 64px。
691
- 'border:.5px solid var(--dsw-alias-border-l1);background:transparent;color:var(--dsw-alias-label-secondary);',
692
- 'font:inherit;font-size:10.5px;flex:1 1 120px;min-width:90px;max-width:260px;outline:none;transition:border-color .15s ease}',
693
- // 候选区是纵向 flex:note 的 flex-basis 120px 在这里会变成「高 120px」,组备注必须脱离 flex 伸缩。
694
- 'background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);font:inherit;font-size:11px;max-width:170px;outline:none;',
695
- 'transition:border-color .15s ease;cursor:pointer}',
696
- 'color:var(--dsw-alias-state-success-primary,#10b981)}',
697
662
  // Hero 全景统计大横条
698
- '.dsh-llm-hub-hero{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px;margin:12px 0 6px 0}',
699
- '.dsh-llm-hub-hero__card{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:6px;border:.5px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2,rgba(255,255,255,.02));backdrop-filter:blur(6px)}',
700
- '.dsh-llm-hub-hero__num{font-size:15px;font-weight:700;color:var(--dsw-alias-label-primary);font-family:ui-monospace,SFMono-Regular,monospace;letter-spacing:-0.3px;line-height:1.2}',
701
- '.dsh-llm-hub-hero__label{font-size:10.5px;color:var(--dsw-alias-label-secondary);opacity:.85}',
663
+ '.dsh-llm-hub-hero{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:8px;margin:16px 0 10px 0}',
664
+ '.dsh-llm-hub-hero__card{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:4px;padding:10px 12px;',
665
+ 'border-radius:9px;border:1px solid var(--bloom-hairline,rgba(255,255,255,.08));background:var(--dsw-alias-bg-layer-2,rgba(255,255,255,.03));',
666
+ 'backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);box-shadow:0 2px 10px rgba(0,0,0,.08);',
667
+ 'transition:all .2s cubic-bezier(0.16,1,0.3,1);overflow:hidden}',
668
+ '.dsh-llm-hub-hero__card:hover{transform:translateY(-1px);border-color:var(--bloom-accent,var(--dsw-alias-brand-primary,#5fa8b2));box-shadow:0 4px 16px rgba(0,0,0,.16)}',
669
+ '.dsh-llm-hub-hero__card::before{content:"";position:absolute;top:0;left:0;right:0;height:1.5px;',
670
+ 'background:linear-gradient(90deg,transparent,var(--bloom-accent,rgba(255,255,255,.2)),transparent);opacity:.65}',
671
+ '.dsh-llm-hub-hero__num{font-size:16px;font-weight:750;color:var(--dsw-alias-label-primary);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:-0.3px;line-height:1.2;display:flex;align-items:center;gap:4px}',
672
+ '.dsh-llm-hub-hero__card--providers .dsh-llm-hub-hero__num{color:var(--bloom-accent,var(--dsw-alias-brand-primary,#5fa8b2))}',
673
+ '.dsh-llm-hub-hero__card--latency.is-fast .dsh-llm-hub-hero__num{color:var(--dsw-alias-state-success-primary,#10b981)}',
674
+ '.dsh-llm-hub-hero__card--latency.is-normal .dsh-llm-hub-hero__num{color:var(--dsw-alias-state-warn-primary,#eab308)}',
675
+ '.dsh-llm-hub-hero__card--latency.is-slow .dsh-llm-hub-hero__num{color:var(--dsw-alias-state-error-primary,#ef4444)}',
676
+ '.dsh-llm-hub-hero__card--security .dsh-llm-hub-hero__num{color:var(--dsw-alias-state-success-primary,#10b981)}',
677
+ '.dsh-llm-hub-hero__label{font-size:10.5px;font-weight:550;color:var(--dsw-alias-label-secondary);opacity:.85;letter-spacing:.2px}',
702
678
  // 添加提供方草稿卡上的匹配提示(1.6.0)
703
679
  '.dsh-llm-hub-preset-hint{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:0 0 8px;padding:6px 10px;border-radius:6px;',
704
680
  'border:.5px solid var(--dsw-alias-border-l1);font-size:11px;line-height:1.5}',
@@ -727,7 +703,7 @@ window.__ModuleLoader__.load({
727
703
  '.dsh-suite-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;flex-wrap:wrap;gap:8px}',
728
704
  '.dsh-suite-title{font-size:12px;font-weight:650;color:var(--dsw-alias-label-primary);margin:0;display:flex;align-items:center;gap:6px}',
729
705
  '.dsh-suite-desc{font-size:10.5px;color:var(--dsw-alias-label-tertiary);letter-spacing:.2px}',
730
- '.dsh-suite-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}',
706
+ '.dsh-suite-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}',
731
707
  '.dsh-suite-card{display:flex;flex-direction:column;justify-content:space-between;padding:10px 12px;border-radius:8px;background:var(--dsw-alias-bg-layer-3,rgba(255,255,255,0.02));border:1px solid var(--dsw-alias-border-l2,rgba(255,255,255,0.05));transition:all .2s cubic-bezier(0.16,1,0.3,1)}',
732
708
  '.dsh-suite-card:hover{transform:translateY(-1px);border-color:var(--dsw-alias-brand-primary,#3b82f6);box-shadow:0 4px 14px rgba(0,0,0,0.15)}',
733
709
  '.dsh-suite-card-top{display:flex;align-items:center;gap:6px;margin-bottom:4px}',
@@ -1523,7 +1499,7 @@ window.__ModuleLoader__.load({
1523
1499
  if (list.length === 0) return null
1524
1500
  ensureStyle()
1525
1501
  return h('div', { className: 'dsh-llm-hub-harness' },
1526
- h('span', { className: 'dsh-llm-hub-harness__state' }, t('harnessTitle')),
1502
+ h('span', { className: 'dsh-llm-hub-harness__title' }, t('harnessTitle')),
1527
1503
  list.map((item) => {
1528
1504
  const state = item.registered === true
1529
1505
  ? { text: t('harnessReady'), hint: t('harnessHintReady').replace('%s', String(item.id).replace(/-/g, '_')), ready: true }
@@ -1633,17 +1609,19 @@ window.__ModuleLoader__.load({
1633
1609
 
1634
1610
  ensureStyle()
1635
1611
 
1612
+ const latencyClass = minLatency === null ? '' : (minLatency < 300 ? ' is-fast' : (minLatency < 800 ? ' is-normal' : ' is-slow'))
1613
+
1636
1614
  return h('div', { className: 'dsh-llm-hub-hero' },
1637
- h('div', { className: 'dsh-llm-hub-hero__card' },
1615
+ h('div', { className: 'dsh-llm-hub-hero__card dsh-llm-hub-hero__card--providers' },
1638
1616
  h('span', { className: 'dsh-llm-hub-hero__num' }, totalProviders > 0 ? `${readyProviders} / ${totalProviders}` : '—'),
1639
1617
  h('span', { className: 'dsh-llm-hub-hero__label' }, t('heroProviders'))),
1640
- h('div', { className: 'dsh-llm-hub-hero__card' },
1618
+ h('div', { className: 'dsh-llm-hub-hero__card dsh-llm-hub-hero__card--models' },
1641
1619
  h('span', { className: 'dsh-llm-hub-hero__num' }, totalModels > 0 ? `${totalModels}` : '—'),
1642
1620
  h('span', { className: 'dsh-llm-hub-hero__label' }, t('heroModels'))),
1643
- h('div', { className: 'dsh-llm-hub-hero__card' },
1621
+ h('div', { className: 'dsh-llm-hub-hero__card dsh-llm-hub-hero__card--latency' + latencyClass },
1644
1622
  h('span', { className: 'dsh-llm-hub-hero__num' }, minLatency !== null ? `${minLatency}ms` : '—'),
1645
1623
  h('span', { className: 'dsh-llm-hub-hero__label' }, t('heroFastest'))),
1646
- h('div', { className: 'dsh-llm-hub-hero__card' },
1624
+ h('div', { className: 'dsh-llm-hub-hero__card dsh-llm-hub-hero__card--security' },
1647
1625
  h('span', { className: 'dsh-llm-hub-hero__num' }, '🛡️ 100%'),
1648
1626
  h('span', { className: 'dsh-llm-hub-hero__label' }, t('heroSecSafe'))))
1649
1627
  }
@@ -2138,24 +2116,6 @@ window.__ModuleLoader__.load({
2138
2116
  desc: '多模型网关、余额配额、多Key轮换与极客大屏',
2139
2117
  repo: 'https://github.com/webkubor/dsh-llm-hub',
2140
2118
  pkg: '@dsh-plugins/dsh-llm-hub'
2141
- },
2142
- {
2143
- id: '@dsh-plugins/dsh-user-mirror',
2144
- aliases: ['dsh-user-mirror', 'dsh-mirror', '@dsh-plugins/dsh-user-mirror'],
2145
- name: 'User Mirror',
2146
- icon: '🪞',
2147
- desc: '用户角色数字画像、习惯偏好与记忆网络',
2148
- repo: 'https://github.com/webkubor/dsh-mirror',
2149
- pkg: '@dsh-plugins/dsh-user-mirror'
2150
- },
2151
- {
2152
- id: '@dsh-plugins/dsh-env-inspector',
2153
- aliases: ['dsh-env-inspector', '@dsh-plugins/dsh-env-inspector'],
2154
- name: 'Env Inspector',
2155
- icon: '🖥️',
2156
- desc: '端口监听释放、CLI工具链与环境大屏',
2157
- repo: 'https://github.com/webkubor/dsh-env-inspector',
2158
- pkg: '@dsh-plugins/dsh-env-inspector'
2159
2119
  }
2160
2120
  ]
2161
2121
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-plugins/dsh-llm-hub",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
4
4
  "description": "DSH 模型管理层:网关可达性探测、模型目录拉取、DeepSeek + MiniMax/智谱/Moonshot/StepFun 余额与配额、本月用量统计、余额预警、Provider 健康看板,再把本机装好的 codex / claude / agy 注册成子代理(装了才出现)。零运行时依赖,不改动 DSH 安装。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",