interface ShutdownRequest

Client → daemon: graceful shutdown request.

const request: ShutdownRequest = { type: 'shutdown' };
request.type; // 'shutdown' — acked with `done`, then the daemon exits

Properties

type: "shutdown"

Discriminator; always 'shutdown'.

Usage

import { type ShutdownRequest } from "lib/commands/daemon/protocol.ts";