The first public release of LLeMbas CLI: a terminal coding agent and project manager for any LLM API, with permission modes, git snapshots, memory and skills, knowledge bases, MCP, voice, and a link to a LLeMbas instance whose web UI can work its sessions too. Signed Linux binaries for x64 and arm64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
355 files changed
+47028
No files matched your search
@@ -0,0 +1,9 @@
|
||||
/** Time as the eye reads it: 8.4s, 1m 05s, 2h 03m. `whole`: no tenths under a minute (8s) — for a
|
||||
* clock that ticks while you watch. */
|
||||
export function duration(ms: number, whole = false): string {
|
||||
const s = Math.max(0, ms) / 1000
|
||||
if (s < 60) return whole ? `${Math.floor(s)}s` : `${s.toFixed(1)}s`
|
||||
const m = Math.floor(s / 60)
|
||||
if (m < 60) return `${m}m ${String(Math.floor(s % 60)).padStart(2, "0")}s`
|
||||
return `${Math.floor(m / 60)}h ${String(m % 60).padStart(2, "0")}m`
|
||||
}
|
||||
Reference in new issue
Block a user