+ {#if error && !status}
+
+
+ 离线 — {error}
+
+ {:else if status}
+
+
+
+ {running ? "RUNNING" : "IDLE"}
+ GEN {status.generation}
+
+
+ {uptime}
+ v{status.version}
+ WS {status.ws_connections}
+ BG {status.background_tasks}
+ {status.phase}
+
+
+
+ {#if error}
+ ⚠ {error}
+ {/if}
+
+
+
+
+
+
+
+
+
+
PROVIDERS
+
+
+ | 名称 | 模型 | 状态 | 延迟 | Tokens In | Tokens Out | Cost |
+
+
+ {#each status.providers || [] as p}
+
+ | {p.name} |
+ {p.model} |
+ {p.status} |
+ |
+ {fmt(p.tokens_in)} |
+ {fmt(p.tokens_out)} |
+ ${(p.cost || 0).toFixed(3)} |
+
+ {:else}
+ | 暂无 Provider |
+ {/each}
+
+
+
+
+
+
MESSAGE BUS
+
+
+ Inbound
+
+ {status.bus?.inbound?.depth || 0}/{status.bus?.inbound?.cap || 1}
+
+
+ Outbound
+
+ {status.bus?.outbound?.depth || 0}/{status.bus?.outbound?.cap || 1}
+
+
+ Control
+
+ {status.bus?.control?.depth || 0}/{status.bus?.control?.cap || 1}
+
+
+
+
+
+
+
+
CHANNELS
+
+ {#each status.channels || [] as ch}
+
+ {ch.name}
+ {ch.status}
+
+ {:else}
+
暂无 Channel
+ {/each}
+
+
+
+
+
SCHEDULER
+
+ Jobs: {status.scheduler?.jobs || 0}
+ Enabled: {status.scheduler?.enabled || 0}
+ 0}>Failed: {status.scheduler?.failed_jobs || 0}
+ Next: {formatTime(status.scheduler?.next_run_at)}
+
+
+
+ {:else}
+ 加载中…
+ {/if}
+
+
+