MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / readEndpoint

Function readEndpoint

frontend/src/backend.ts:104–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 if (!existing.auth_token) throw err;
103 // Fall through and start a fresh backend.
104 }
105 }
106 fs.mkdirSync(path.dirname(endpointPath()), { recursive: true, mode: 0o700 });
107 fs.mkdirSync(path.dirname(backendLogPath()), { recursive: true, mode: 0o700 });
108 const logPath = backendLogPath();
109 const logFd = fs.openSync(logPath, "a", 0o600);
110 fs.writeSync(logFd, `\n--- lumina-backend start ${new Date().toISOString()} ---\n`);
111 const before = Date.now();
112 const child = spawn(backendBin(), ["daemon", "--host", "127.0.0.1", "--port", "0"], {
113 detached: true,

Callers 1

ensureBackendFunction · 0.85

Calls 1

endpointPathFunction · 0.85

Tested by

no test coverage detected