MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / formatRenderSummaryDetail

Function formatRenderSummaryDetail

packages/cli/src/ui/format.ts:25–40  ·  view source on GitHub ↗
(input: {
  elapsedMs: number;
  outputDurationSeconds?: number;
  isDirectory: boolean;
  frameCount?: number;
})

Source from the content-addressed store, hash-verified

23 * count instead, or just the render time when neither is known.
24 */
25export function formatRenderSummaryDetail(input: {
26 elapsedMs: number;
27 outputDurationSeconds?: number;
28 isDirectory: boolean;
29 frameCount?: number;
30}): string {
31 const middle = input.isDirectory
32 ? input.frameCount != null
33 ? `${input.frameCount} frames`
34 : undefined
35 : input.outputDurationSeconds != null && input.outputDurationSeconds > 0
36 ? `${formatDuration(input.outputDurationSeconds * 1000)} video`
37 : undefined;
38 const renderTime = `rendered in ${formatDuration(input.elapsedMs)}`;
39 return [middle, renderTime].filter(Boolean).join(" · ");
40}
41
42export function label(name: string, value: string): string {
43 const pad = 14 - name.length;

Callers 2

printRenderCompleteFunction · 0.85
format.test.tsFile · 0.85

Calls 1

formatDurationFunction · 0.70

Tested by

no test coverage detected