()
| 816 | } |
| 817 | |
| 818 | async function agentGateway() { |
| 819 | header("Agent Browser Gateway"); |
| 820 | |
| 821 | const gatewayPath = join(PACKAGE_ROOT, "bin", "agent-gateway.cjs"); |
| 822 | success(`Starting gateway: ${gatewayPath}`); |
| 823 | |
| 824 | await new Promise((resolve) => { |
| 825 | const child = spawn(process.execPath, [gatewayPath], { stdio: "inherit" }); |
| 826 | child.on("exit", resolve); |
| 827 | }); |
| 828 | } |
| 829 | |
| 830 | async function uninstall() { |
| 831 | header("Uninstall"); |