UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 616 B
import{t as createLazyImportLoader}from"./lazy-promise-CismJCQR.mjs";import{r as readCompactionAccountingRecorder}from"./compaction-accounting-bridge-C6trjYoR.mjs"; //!src/agents/embedded-agent-runner/compact.runtime.ts const compactRuntimeLoader=createLazyImportLoader(()=>import(`./compact-CbJo2TH4.mjs`));async function compactEmbeddedAgentSessionOnDemand(e){const{compactEmbeddedAgentSessionDirect:t}=await compactRuntimeLoader.load();const n=await t(e);if(n.failure)readCompactionAccountingRecorder(e.contextEngineRuntimeContext)?.recordFailure?.(n.failure);return n}export{compactEmbeddedAgentSessionOnDemand};