| 100 | } |
| 101 | |
| 102 | async function relaunchWithAdditionalArgs(additionalArgs: string[]) { |
| 103 | const nodeArgs = [...additionalArgs, ...process.argv.slice(1)]; |
| 104 | const newEnv = { ...process.env, ANUS_CLI_NO_RELAUNCH: 'true' }; |
| 105 | |
| 106 | const child = spawn(process.execPath, nodeArgs, { |
| 107 | stdio: 'inherit', |
| 108 | env: newEnv, |
| 109 | }); |
| 110 | |
| 111 | await new Promise((resolve) => child.on('close', resolve)); |
| 112 | process.exit(0); |
| 113 | } |
| 114 | import { runZedIntegration } from './zed-integration/zedIntegration.js'; |
| 115 | |
| 116 | export function setupUnhandledRejectionHandler() { |