agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
17 lines (16 loc) • 720 B
TypeScript
/**
* PermissionRecorder — forwards `agentfootprint.permission.*` emits
* to the dispatcher.
*
* Pattern: Factory over EmitBridge.
* Role: Bridges permission.check, permission.gate_opened, and
* permission.gate_closed emits into the typed dispatcher so
* consumer `.on('agentfootprint.permission.check', ...)`
* listeners fire.
* Emits: agentfootprint.permission.check / gate_opened / gate_closed
*/
import { EmitBridge, type EmitBridgeOptions } from './EmitBridge.js';
export type PermissionRecorderOptions = Omit<EmitBridgeOptions, 'id' | 'prefix'> & {
readonly id?: string;
};
export declare function permissionRecorder(options: PermissionRecorderOptions): EmitBridge;