UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

14 lines (13 loc) • 1.32 kB
/** * The first admission of a Runner's default plain-http admission list, heard where a credential-carrying send is made. The Runner arms * a watch on its own value at `new Runner` ({@link watchDefaultAdmission}); every send point that carries a credential reports the * list it carries and the endpoint it is about to send to ({@link noteAdmittedSend}); the watch tells its Runner once, the first time * that list — not this machine, not https — is what admits the send. The judge (`crossesNetworkInClear`) reads no Runner: the report is * the send point's. A leaf module (it imports only the shared library), so the model lane's request gate reaches it without the engine. */ import { type PlaintextOrigins } from "@sema-agent/primitives"; /** Arm the admission notice for a Runner's value: only the default list, and only one that admits something. */ export declare function watchDefaultAdmission(origins: PlaintextOrigins, tell: (origin: string) => void): void; /** A send that carries a credential is going to `endpoint` with `origins` as its list: when the list is a watched Runner value and it is * what admits the endpoint (plain http, not this machine), its Runner is told — once. Called right before the send. */ export declare function noteAdmittedSend(origins: unknown, endpoint: URL): void;