@sema-agent/core
Version:
Stateless, task-oriented AI agent core
17 lines (16 loc) • 1.04 kB
TypeScript
/**
* The catalog's renderings: one authored pack per rendered locale, every variant of every message bound to the text it
* was written from (`validateCatalog` refuses a pack that misses, adds or mis-binds one). Two tables travel with the
* packs, each row with its reason: the marks a rendering keeps as written ({@link KEPT_TOKENS}, read by the lockstep pin),
* and the messages outside the locked bands whose words touch confirmation or refusal yet are not `securityBearing`.
*/
import type { LocalePack, RenderedLocale } from "../schema.js";
export declare const LOCALE_PACKS: Readonly<Record<RenderedLocale, LocalePack>>;
/** A mark a rendering keeps as its source writes it. */
export interface KeptToken {
readonly pattern: RegExp;
readonly why: string;
}
export declare const KEPT_TOKENS: readonly KeptToken[];
/** Messages outside the locked bands whose words touch confirmation or refusal, with why each is not `securityBearing`. */
export declare const SECURITY_BEARING_EXEMPT: Readonly<Record<string, string>>;