@sema-agent/core
Version:
Stateless, task-oriented AI agent core
8 lines (7 loc) • 631 B
TypeScript
import type { ToolGateInput } from "./hooks.js";
import type { SafeNotifier } from "./safe-notify.js";
/** Hand the crash itself to the deployment's trace lane (`onError(phase:"hook")`), never letting a
* throwing sink alter the fail-closed outcome — the same swallow posture as every other observer here.
* Shared by the gate's dispatch (the phase-1 crash arm, the seat-bound refusal), the reversibility probe's
* two failure arms, the approved-edit re-screen and the bounded-await deadline. */
export declare function traceHookCrash(input: Pick<ToolGateInput, "onHookError">, err: unknown, notifier: SafeNotifier): void;