@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
16 lines • 1.02 kB
TypeScript
import type { MonitorSnapshotEntry } from "./monitor-registry.ts";
export declare const MONITOR_STATUS_KEY = "monitors";
/**
* Goal-style compact elapsed label (`5s`, `3m`, `2h 30m`, `1d 2h 3m`). Mirrors
* `formatGoalElapsedSeconds` in the goal builtin; kept local so this builtin stays
* self-contained, matching the existing monitor/eval status-file duplication.
*/
export declare function formatElapsedSeconds(value: number): string;
/** Whole seconds since the oldest watch registered; never negative when the clock moves backwards. */
export declare function monitorElapsedSeconds(snapshot: readonly MonitorSnapshotEntry[], nowMs: number): number;
/**
* Brief footer text for the active monitors; undefined clears the status. `animate` swaps the
* static watch glyph for the pulse frame matching the elapsed second.
*/
export declare function formatMonitorStatus(snapshot: readonly MonitorSnapshotEntry[], nowMs: number, animate?: boolean): string | undefined;
//# sourceMappingURL=monitor-status.d.ts.map