agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
42 lines • 2.33 kB
JavaScript
;
/**
* agentfootprint/events — the typed event system.
*
* Every agentfootprint run emits a single, strongly-typed event stream:
* the registry (`EVENT_NAMES`, `AgentfootprintEventMap`, `AgentfootprintEvent`),
* the dispatcher (`EventDispatcher` + listener/wildcard types), the shared
* context/composition types, and the ~60 typed payload shapes (grouped
* under the `Payloads` namespace).
*
* This is observability infrastructure, not core agent API, so in v7 it
* lives on its own subpath — consistent with `/observe`, `/memory`, etc.
* Recorders (`agentfootprint/observe`) and viewer libraries consume it;
* the `Agent` builder wires it for you.
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventDispatcher = exports.ALL_EVENT_TYPES = exports.EVENT_NAMES = void 0;
// Shared event/context/composition types.
__exportStar(require("./events/types.js"), exports);
// Registry — the event-name set + the typed map/union/discriminant.
var registry_js_1 = require("./events/registry.js");
Object.defineProperty(exports, "EVENT_NAMES", { enumerable: true, get: function () { return registry_js_1.EVENT_NAMES; } });
Object.defineProperty(exports, "ALL_EVENT_TYPES", { enumerable: true, get: function () { return registry_js_1.ALL_EVENT_TYPES; } });
// Dispatcher — subscribe to the stream (`.on(type, listener)`), wildcard
// subscriptions, and the unsubscribe handle.
var dispatcher_js_1 = require("./events/dispatcher.js");
Object.defineProperty(exports, "EventDispatcher", { enumerable: true, get: function () { return dispatcher_js_1.EventDispatcher; } });
//# sourceMappingURL=events.js.map