UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

26 lines (25 loc) • 871 B
//#region src/agents/embedded-agent-runner/run/compaction-accounting-bridge.ts /** Publish committed custody before model admission or handled hooks can bypass settlement. */ function publishClaimedSessionWriter(e, t, n) { e?.({ kind: "durable", count: 0, target: { agentId: t.agentId, sessionId: n.sessionId, sessionKey: t.sessionKey, storePath: t.storePath, lifecycleRevision: n.lifecycleRevision, activeWriterRunId: n.activeWriterRunId } }); } const recorderByRuntimeContext = /* @__PURE__ */ new WeakMap(); function attachCompactionAccountingRecorder(e, t) { recorderByRuntimeContext.set(e, t); } function readCompactionAccountingRecorder(e) { return e ? recorderByRuntimeContext.get(e) : void 0; } //#endregion export { publishClaimedSessionWriter as n, readCompactionAccountingRecorder as r, attachCompactionAccountingRecorder as t };