UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

20 lines (19 loc) • 1.64 kB
import type { AssertAllKeysHandled } from "./ask-origin.js"; /** * WHO holds a tool call at its gate — the closed set behind `tool_progress.gate`, exported at the package root as a frozen word list; the type * is read off the list, so the two cannot part. `classifier` = an auto-mode classification of the call is in flight; `approval` = a question * about the call is put to a person (an approval card, a content question); `hook` = a `classic.PreToolUse` screening of the call is in flight * (the leg's own registrations, or an inherited installation judging it) — the screening's own start and end are the `hook_progress` frames * naming the call. The words are spelled out in the list (a closed set the release manifest reads is spelled, not derived). */ export declare const TOOL_GATE_PHASES: readonly ["classifier", "approval", "hook"]; export type ToolGatePhase = (typeof TOOL_GATE_PHASES)[number]; /** * WHOSE model call a liveness frame is about, when it is not the run's own turn — the closed set behind `BrainStatus.seat`. `classifier` = a * call made for the auto-mode classifier lane (the classifier seat's model, or the main model standing in behind it): a side call beside the * person's turn, never the turn itself. The list is spelled for the release manifest and held to the gate-phase set by the fence below: a seat * word that is not a gate phase reds `tsc`. */ export declare const BRAIN_STATUS_SEATS: readonly ["classifier"]; export type BrainStatusSeat = (typeof BRAIN_STATUS_SEATS)[number]; export type BrainStatusSeatsArePhases = AssertAllKeysHandled<Exclude<BrainStatusSeat, ToolGatePhase>>;