{"version":3,"file":"format-duration.d.ts","sourceRoot":"","sources":["../../src/core/format-duration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYvD","sourcesContent":["/**\n * Compact, terminal-friendly duration formatting shared by every surface that\n * shows a subagent's elapsed time (task panel rows/header, TaskOutput roster),\n * so the same run never reads \"94s\" in one place and \"1m34s\" in another.\n */\nexport function formatDurationSecs(secs: number): string {\n\tconst s = Math.max(0, secs);\n\tif (s < 10) return `${s.toFixed(1)}s`;\n\tif (s < 60) return `${Math.round(s)}s`;\n\tif (s < 3600) {\n\t\tconst mins = Math.floor(s / 60);\n\t\tconst rem = Math.round(s % 60);\n\t\treturn `${mins}m${rem.toString().padStart(2, \"0\")}s`;\n\t}\n\tconst hrs = Math.floor(s / 3600);\n\tconst remMins = Math.round((s % 3600) / 60);\n\treturn `${hrs}h${remMins.toString().padStart(2, \"0\")}m`;\n}\n"]}