MCPcopy Create free account
hub / github.com/afar1/fieldtheory-cli / formatRetryAfter

Function formatRetryAfter

src/cli.ts:230–236  ·  view source on GitHub ↗
(seconds?: number)

Source from the content-addressed store, hash-verified

228}
229
230function formatRetryAfter(seconds?: number): string | undefined {
231 if (!seconds || seconds <= 0) return undefined;
232 if (seconds < 60) return `${seconds}s`;
233 const minutes = Math.floor(seconds / 60);
234 const remainingSeconds = seconds % 60;
235 return remainingSeconds > 0 ? `${minutes}m ${remainingSeconds}s` : `${minutes}m`;
236}
237
238function printMediaFetchSummary(result: MediaFetchManifest): void {
239 if (result.processed === 0) {

Callers 1

buildCliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected