@sema-agent/core
Version:
Stateless, task-oriented AI agent core
17 lines (16 loc) • 1.05 kB
TypeScript
/**
* Say a knob-resolution fact once per process, as `config.env_knob_adjusted` (`detail.name` the knob, `detail.applied` the
* value in force when it is a number — absent when a downstream built-in default stands).
*
* The delivery never throws (the notice throat contains a throwing seat and a throwing console alike): these resolvers sit on
* hot paths that have already done irreversible work (the shell's output clip runs AFTER the command ran), so a failing
* announcement must never destroy a completed command's output and invite the caller to run it again. The line is ledgered
* BEFORE delivery so a throwing seat cannot turn one fact into one notice per call either.
*/
export declare function announceEnvKnob(line: string, knob: {
readonly name: string;
readonly applied: number | undefined;
}): void;
/** Test seam: the announcement de-dupes per process, so a test asserting the line must be able to clear
* the ledger. Never called by production code. */
export declare function __resetEnvKnobAnnouncements(): void;