12 lines
446 B
TypeScript
Executable File
12 lines
446 B
TypeScript
Executable File
#!/usr/bin/env -S npx tsx
|
|
// Daemon Entrypoint - Spawned (detached) by ensureDaemon() in
|
|
// src/daemonProtocol.ts the first time any client tries to connect.
|
|
// Stays alive across CLI invocations; idle LSP servers within are reaped
|
|
// per ServerConfig.idleTtlMs.
|
|
import { startDaemon } from "./src/daemon.ts";
|
|
|
|
startDaemon().catch((err) => {
|
|
process.stderr.write(`pi-lsp daemon failed to start: ${err?.stack ?? err}\n`);
|
|
process.exit(1);
|
|
});
|