MCPcopy Index your code
hub / github.com/callstack/agent-device / printWebSetupResult

Function printWebSetupResult

src/cli/commands/web.ts:47–55  ·  view source on GitHub ↗
(json: boolean | undefined, status: AgentBrowserToolStatus)

Source from the content-addressed store, hash-verified

45}
46
47function printWebSetupResult(json: boolean | undefined, status: AgentBrowserToolStatus): void {
48 if (json) {
49 printJson({ success: true, data: { status: toPublicAgentBrowserToolStatus(status) } });
50 return;
51 }
52 process.stdout.write(
53 `Managed web backend installed.\nagent-browser available at: ${status.binaryPath}\n`,
54 );
55}
56
57function printWebResult(json: boolean | undefined, message: string, data: Record<string, unknown>) {
58 if (json) {

Callers 1

runWebCommandFunction · 0.85

Calls 3

printJsonFunction · 0.90
writeMethod · 0.80

Tested by

no test coverage detected