Project-2 baseline

This commit is contained in:
2026-10-04 21:19:23 -04:00
parent 0f04889edf
commit 213eb3c403
861 changed files with 1710 additions and 3363322 deletions

View File

@@ -177,6 +177,12 @@ async function create(name) {
// so a collision would silently point the client's livereload at the other container.
if (ports.livereloadHost)
env.EXPLORE_LIVERELOAD_PORT = String(await freePort(ports.livereloadHost + 10));
// Above clientPort, not just near its own base: freePort releases each probe before it
// resolves, so two independent calls can hand back the same number.
if (ports.companionHost)
env.EXPLORE_COMPANION_PORT = String(
await freePort(Math.max(Number(ports.companionHost) + 10, clientPort + 1))
);
up(name, env);
reportUp(name, tk);
}