UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

31 lines (30 loc) • 1.14 kB
import { r as createLazyRuntimeModule } from "./lazy-runtime-CJrzFzqU.mjs"; import "./session-binding-service-BxjdmbUW.mjs"; import "./conversation-binding-BhcxRoDD.mjs"; import "./session-BLJHMJ3b.mjs"; import "./pairing-store-DKAYw0R1.mjs"; import "./thread-bindings-policy-7JEp4XZZ.mjs"; import "./thread-bindings-messages-D32wY0rW.mjs"; import "./channel-access-compat-Bs2jSWi5.mjs"; import "./binding-routing-BfWromub.mjs"; import "./pairing-labels-ONyP6iGZ.mjs"; //#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 };