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

Function runPath

packages/cli/src/commands/browser.ts:107–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107async function runPath(): Promise<void> {
108 const result = await findBrowser();
109 if (!result) {
110 // Try a full ensure (which includes download) but write only the path
111 try {
112 const ensured = await ensureBrowser();
113 process.stdout.write(ensured.executablePath + "\n");
114 } catch (err: unknown) {
115 trackCommandFailure("browser", err);
116 console.error(err instanceof Error ? err.message : "Failed to find browser");
117 process.exit(1);
118 }
119 return;
120 }
121 process.stdout.write(result.executablePath + "\n");
122}
123
124function runClear(): void {
125 clack.intro(c.bold("hyperframes browser clear"));

Callers 1

runFunction · 0.85

Calls 5

findBrowserFunction · 0.85
ensureBrowserFunction · 0.85
trackCommandFailureFunction · 0.85
errorMethod · 0.80
writeMethod · 0.65

Tested by

no test coverage detected