UNPKG

agentfootprint

Version:

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

23 lines • 935 B
"use strict"; /** * SkillRecorder — forwards `agentfootprint.skill.*` emits to the dispatcher. * * Pattern: Factory over EmitBridge. * Role: Bridges skill lifecycle events (activated, deactivated) emitted * by consumer skill-management code. Skills are a consumer-owned * context-engineering concern; the library only provides transport. * Emits: agentfootprint.skill.activated / skill.deactivated */ Object.defineProperty(exports, "__esModule", { value: true }); exports.skillRecorder = void 0; const EmitBridge_js_1 = require("./EmitBridge.js"); function skillRecorder(options) { return new EmitBridge_js_1.EmitBridge({ id: options.id ?? 'agentfootprint.skill-recorder', prefix: 'agentfootprint.skill.', dispatcher: options.dispatcher, getRunContext: options.getRunContext, }); } exports.skillRecorder = skillRecorder; //# sourceMappingURL=SkillRecorder.js.map