Client → daemon: graceful shutdown request.
const request: ShutdownRequest = { type: 'shutdown' }; request.type; // 'shutdown' — acked with `done`, then the daemon exits
type: "shutdown"
Discriminator; always 'shutdown'.
Client → daemon: graceful shutdown request.
const request: ShutdownRequest = { type: 'shutdown' }; request.type; // 'shutdown' — acked with `done`, then the daemon exits
type: "shutdown"
Discriminator; always 'shutdown'.
import { type ShutdownRequest } from "lib/commands/daemon/protocol.ts";