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

Function previewServerPayload

packages/cli/src/commands/preview.ts:311–328  ·  view source on GitHub ↗
(server: {
  port: number;
  host?: string;
  projectName: string;
  projectDir: string;
})

Source from the content-addressed store, hash-verified

309}
310
311function previewServerPayload(server: {
312 port: number;
313 host?: string;
314 projectName: string;
315 projectDir: string;
316}): {
317 port: number;
318 projectName: string;
319 projectDir: string;
320 url: string;
321} {
322 return {
323 port: server.port,
324 projectName: server.projectName,
325 projectDir: server.projectDir,
326 url: previewBaseUrl(server.port, server.host),
327 };
328}
329
330function parseContextFields(value: string | undefined): ContextField[] {
331 if (value === undefined) return DEFAULT_CONTEXT_FIELDS;

Callers 2

printCurrentSelectionFunction · 0.85
printCurrentContextFunction · 0.85

Calls 1

previewBaseUrlFunction · 0.85

Tested by

no test coverage detected