(dataDir)
| 55 | }); |
| 56 | |
| 57 | const readManifest = (dataDir) => { |
| 58 | const path = join(dataDir, "server-control", "server.json"); |
| 59 | if (!existsSync(path)) return null; |
| 60 | return JSON.parse(readFileSync(path, "utf8")); |
| 61 | }; |
| 62 | |
| 63 | const waitFor = async (label, fn, timeoutMs) => { |
| 64 | const deadline = Date.now() + timeoutMs; |