MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / readNextjsDevPort

Function readNextjsDevPort

dev/local/cli.ts:534–543  ·  view source on GitHub ↗
(repoRoot: string)

Source from the content-addressed store, hash-verified

532 // secrets or restarting live panes.
533 if (sessionAlreadyRunning && reuseRunning) {
534 const manifest = readManifest(repoRoot);
535 const missing = await missingRunningServices(manifest, sessionName, serviceNames, {
536 repoRoot,
537 waitMs: 30_000,
538 pollMs: 500,
539 });
540 if (missing.length > 0)
541 throw new Error(
542 `Cannot reuse session ${sessionName}; requested services are missing or stayed down for 30s: ${missing.join(', ')}. ` +
543 'Do not rerun without --reuse-running while another verifier may use the stack. Retry the same command once; if it still fails, stop every shard, stop the stack, and start a fresh round.'
544 );
545 console.log(`Reusing running session ${sessionName} without restarting services.`);
546 return noAttach ? undefined : sessionName;

Callers 2

writeManifestFunction · 0.85
cmdStatusFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected