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.
- package/index.ts +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
|
|
76
|
-
const switchSuffix = () =>
|
|
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
|
}
|