@sema-agent/core
Version:
Stateless, task-oriented AI agent core
9 lines (8 loc) • 822 B
TypeScript
/** shutdown forensics — opt-in (`SEMA_DEBUG_SHUTDOWN=1`) trace of every teardown kill/reap action, said as
* `engine.debug_trace` (`detail.topic: "shutdown"`) on the process's default notice seat, else as one process line.
* The line lands in the host's engine log, so a "who killed my process" hunt no longer dead-ends at the drain marker
* with zero shutdown-phase evidence (test-line pain, three times — the reap lane was the blind spot of the first cut).
* Zero default noise. Single source: the exec env's kill paths AND the task registry's reap paths
* ride this one function, so the flag can never half-cover the kill surface again. The delivery never throws:
* forensics must never break the kill path. */
export declare function shutdownDebug(msg: string, extra?: Record<string, unknown>): void;