@ponydev/dsh-model-usage 1.0.8 → 1.0.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
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.9 — 2026-10-20
4
+
5
+ ### 修复
6
+ - 供应商卡头部在 `displayName` 与路由 id 相同时不再重复显示(如 `opencode-go opencode-go`)
7
+
3
8
  ## 1.0.8 — 2026-10-20
4
9
 
5
10
  ### 新增
package/lib/client.js CHANGED
@@ -538,7 +538,7 @@ window.__ModuleLoader__.load({
538
538
  const kids = []
539
539
 
540
540
  const headerKids = [h(Logo, { route: p.route, size: 22 }), h('span', null, p.displayName || p.route)]
541
- if (p.route) headerKids.push(h('span', { className: 'route' }, p.route))
541
+ if (p.route && p.displayName !== p.route) headerKids.push(h('span', { className: 'route' }, p.route))
542
542
  if (kind === 'sub' && p.plan) headerKids.push(h(PlanPill, null, p.plan))
543
543
  if (kind === 'api' && p.balance) {
544
544
  headerKids.push(h(StatusPill, { ok: p.balance.available !== false, okText: tr('available'), badText: tr('unavailable') }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ponydev/dsh-model-usage",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "DSH Web 插件:实时显示模型供应商额度与用量(DeepSeek / GLM Coding Plan / OpenRouter / Kimi Coding Plan + 自定义适配器)",
5
5
  "keywords": [
6
6
  "dsh",