refactor(status): hide internal helpers · openclaw/openclaw@a18cbcb
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -51,7 +51,6 @@ import {
|
51 | 51 | } from "../tasks/task-status.js"; |
52 | 52 | import { formatCompactPluginHealthLine } from "./status-plugin-health.js"; |
53 | 53 | import type { BuildStatusTextParams } from "./status-text.types.js"; |
54 | | -export type { BuildStatusTextParams } from "./status-text.types.js"; |
55 | 54 | |
56 | 55 | // Status text assembly gathers runtime/model/session/task facts, then delegates |
57 | 56 | // final formatting to status-message.runtime through lazy imports. |
@@ -307,7 +306,7 @@ function formatStatusUptimeDuration(ms: number): string {
|
307 | 306 | return formatDurationCompact(ms, { spaced: true }) ?? "0s"; |
308 | 307 | } |
309 | 308 | |
310 | | -export function buildStatusUptimeLine(): string { |
| 309 | +function buildStatusUptimeLine(): string { |
311 | 310 | const gatewayUptimeMs = Math.max(0, Math.round(process.uptime() * 1000)); |
312 | 311 | const systemUptimeMs = Math.max(0, Math.round(os.uptime() * 1000)); |
313 | 312 | return `⏱️ Uptime: gateway ${formatStatusUptimeDuration(gatewayUptimeMs)} · system ${formatStatusUptimeDuration(systemUptimeMs)}`; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。