UNPKG

agentfootprint

Version:

The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.

25 lines • 1.1 kB
/** * MapRecorder — forwards `agentfootprint.map.*` emits to the dispatcher. * * Pattern: Factory over EmitBridge (the credentialRecorder shape, exactly). * Role: Bridges the mount kernel's engagement lifecycle — engaged, * parked — so consumers observe it via * `agent.on('agentfootprint.map.parked', …)` and * `agent.on('agentfootprint.map.*', …)`. * Emits: agentfootprint.map.{engaged,parked} * * Attached WITH the domain (9.58.0), not after it — the credential domain * emitted into silence for eight minors because its bridge arrived late, * and that lesson is written on CredentialRecorder. Zero-cost when nothing * fires: EmitBridge drops an event with no listener before building meta. */ import { EmitBridge } from './EmitBridge.js'; export function mapRecorder(options) { return new EmitBridge({ id: options.id ?? 'agentfootprint.map-recorder', prefix: 'agentfootprint.map.', dispatcher: options.dispatcher, getRunContext: options.getRunContext, }); } //# sourceMappingURL=MapRecorder.js.map