03e103d400
core package should remain platform-agnostic without direct process access.
The suppression module belongs in daemon where Node.js APIs are expected.
小橘 🍊(NEKO Team)
14 lines
523 B
TypeScript
14 lines
523 B
TypeScript
import "@uncaged/nerve-daemon/experimental-warning-suppression.js";
|
|
|
|
import { runForegroundKernelSession } from "./run-foreground-kernel.js";
|
|
import { loadDaemonModule } from "./workspace-daemon.js";
|
|
|
|
const nerveRoot = process.env.NERVE_ROOT;
|
|
if (nerveRoot === undefined || nerveRoot.length === 0) {
|
|
process.stderr.write("[nerve] NERVE_ROOT environment variable is required.\n");
|
|
process.exit(1);
|
|
}
|
|
|
|
const { createKernel } = await loadDaemonModule(nerveRoot);
|
|
await runForegroundKernelSession(nerveRoot, createKernel);
|