UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

30 lines (29 loc) 1.08 kB
import { r as createLazyRuntimeModule } from "./lazy-runtime-CgCh8H_K.js"; import "./session-binding-service-DTXs8JDw.js"; import "./conversation-binding-DNzZGFgH.js"; import "./thread-bindings-policy-BzrpAQe3.js"; import "./session-CGo-oQbb.js"; import "./pairing-store-CxXcVQPq.js"; import "./channel-access-compat-E7ZMYzCm.js"; import "./binding-routing-tBOwxKrx.js"; import "./pairing-labels-DrSb9N6s.js"; //#region src/channels/session-meta.ts const loadInboundSessionRuntime = createLazyRuntimeModule(() => import("./inbound.runtime.js")); /** * Best-effort inbound session metadata recorder for channel plugin command handlers. */ async function recordInboundSessionMetaSafe(params) { const runtime = await loadInboundSessionRuntime(); const storePath = runtime.resolveSessionStorePathCore(params.cfg.session?.store, { agentId: params.agentId }); try { await runtime.recordInboundSessionMeta({ storePath, sessionKey: params.sessionKey, ctx: params.ctx }); } catch (err) { params.onError?.(err); } } //#endregion export { recordInboundSessionMetaSafe as t };