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

Function handleOutput

packages/cli/src/commands/preview.ts:726–736  ·  view source on GitHub ↗
(data: Buffer)

Source from the content-addressed store, hash-verified

724 let detected = false;
725
726 function handleOutput(data: Buffer): void {
727 const url = data.toString().match(/Local:\s+(http:\/\/localhost:\d+)/)?.[1];
728 if (!url || detected) return;
729
730 detected = true;
731 spinner.stop(c.success("Studio running"));
732 printStudioSummary(projectName, url, { footer: "Press Ctrl+C to stop" });
733 openStudioBrowser(url, projectName, options);
734 child.stdout.removeListener("data", handleOutput);
735 child.stderr.removeListener("data", handleOutput);
736 }
737
738 child.stdout.on("data", handleOutput);
739 child.stderr.on("data", handleOutput);

Callers

nothing calls this directly

Calls 4

printStudioSummaryFunction · 0.85
openStudioBrowserFunction · 0.85
removeListenerMethod · 0.65
stopMethod · 0.45

Tested by

no test coverage detected