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

Function compactSelectionPayload

packages/cli/src/commands/preview.ts:622–636  ·  view source on GitHub ↗
(selection: StudioSelectionSnapshot)

Source from the content-addressed store, hash-verified

620}
621
622function compactSelectionPayload(selection: StudioSelectionSnapshot): CompactSelectionPayload {
623 return {
624 schemaVersion: selection.schemaVersion,
625 projectId: selection.projectId,
626 compositionPath: selection.compositionPath,
627 sourceFile: selection.sourceFile,
628 currentTime: selection.currentTime,
629 target: selection.target,
630 label: selection.label,
631 tagName: selection.tagName,
632 boundingBox: selection.boundingBox,
633 textContent: selection.textContent,
634 thumbnailUrl: selection.thumbnailUrl,
635 };
636}
637
638function openStudioBrowser(url: string, projectName: string, options?: BrowserLaunchOptions): void {
639 if (options?.noOpen) return;

Callers 1

printCurrentContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected