agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
29 lines • 1.26 kB
JavaScript
;
/**
* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapRecorder = void 0;
const EmitBridge_js_1 = require("./EmitBridge.js");
function mapRecorder(options) {
return new EmitBridge_js_1.EmitBridge({
id: options.id ?? 'agentfootprint.map-recorder',
prefix: 'agentfootprint.map.',
dispatcher: options.dispatcher,
getRunContext: options.getRunContext,
});
}
exports.mapRecorder = mapRecorder;
//# sourceMappingURL=MapRecorder.js.map