Node module that provides a quiesce flag for graceful shutdown during process restarts.
// Source: https://github.com/sepivip/SeekerClaw | License: MIT | Copyright 2025-2026 SeekerClaw Contributors // Provided via justclaw.it.com; keep this notice with the code. // SeekerClaw — quiesce.js // BAT-1155 Codex re-review blocker: a process-wide "controlled Stop in progress" latch. // // The pre-stop durability gate can only prove the on-disk xAI OAuth record is safe at ONE // instant. Without a quiesce barrier, Node can begin a NEW turn / heartbeat / token refresh // AFTER that "disk safe" acknowledgement and BEFORE the process is killed — consuming the // on-disk refresh token (T0) and minting a new pair (T1) that the imminent kill then strands. // The next boot replays the consumed T0 → the family-revocation brick, all over again. // // So a controlled Stop/restart QUIESCES the ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key