(json: boolean | undefined, status: AgentBrowserToolStatus)
| 45 | } |
| 46 | |
| 47 | function 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 | |
| 57 | function printWebResult(json: boolean | undefined, message: string, data: Record<string, unknown>) { |
| 58 | if (json) { |
no test coverage detected