()
| 128 | const USE_TCP = false; |
| 129 | |
| 130 | function autodetectPlatformAndArch() { |
| 131 | const platform = { |
| 132 | aix: "linux", |
| 133 | darwin: "darwin", |
| 134 | freebsd: "linux", |
| 135 | linux: "linux", |
| 136 | openbsd: "linux", |
| 137 | sunos: "linux", |
| 138 | win32: "win32", |
| 139 | android: "linux", |
| 140 | cygwin: "win32", |
| 141 | netbsd: "linux", |
| 142 | haiku: "linux", |
| 143 | }[process.platform]; |
| 144 | const arch = { |
| 145 | arm: "arm64", |
| 146 | arm64: "arm64", |
| 147 | ia32: "x64", |
| 148 | loong64: "arm64", |
| 149 | mips: "arm64", |
| 150 | mipsel: "arm64", |
| 151 | ppc: "x64", |
| 152 | ppc64: "x64", |
| 153 | riscv64: "arm64", |
| 154 | s390: "x64", |
| 155 | s390x: "x64", |
| 156 | x64: "x64", |
| 157 | }[process.arch]; |
| 158 | return [platform, arch]; |
| 159 | } |
| 160 | |
| 161 | const CONTINUE_GLOBAL_DIR = path.join(__dirname, "..", ".continue"); |
| 162 | if (fs.existsSync(CONTINUE_GLOBAL_DIR)) { |
no outgoing calls
no test coverage detected