pi-ccswitch-auto-switch 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/index.ts +2 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -72,8 +72,8 @@ export default function (pi: ExtensionAPI) {
72
72
  const theme = ctx.ui.theme
73
73
  ctx.ui.setStatus('ccswitch-ha', theme ? theme.fg(counts.cooling || counts.disabled ? 'warning' : 'success', plain) : plain)
74
74
  }
75
- // 本次 session 成功切换计数:⇄N(N>0 时显示);累计切换数在面板/自检中可见
76
- const switchSuffix = () => sessionSwitches > 0 ? ` · ⇄${sessionSwitches}` : ''
75
+ // 本次 session 成功切换计数:始终显示 ⇄N(N=0 也显示,用于确认扩展在监控中);累计切换数在面板/自检中可见
76
+ const switchSuffix = () => ` · ⇄${sessionSwitches}`
77
77
  const notify = (ctx: ExtensionContext, message: string, type: 'info' | 'warning' | 'error' = 'info') => {
78
78
  if (ctx.hasUI) ctx.ui.notify(message, type)
79
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-ccswitch-auto-switch",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Provider-first automatic model failover extension for Pi and CC Switch",
5
5
  "license": "MIT",
6
6
  "keywords": [