import { r as createLazyRuntimeModule } from "./lazy-runtime-B-Fc-m0I.js";
import "./session-binding-service-ud8cK6Jg.js";
import "./conversation-binding-CpfZAZY2.js";
import "./thread-bindings-policy-BfQfmlCj.js";
import "./session-DbptAKNh.js";
import "./pairing-store-BkRosZ5D.js";
import "./channel-access-compat-BbiOBaBP.js";
import "./binding-routing-nr07oq8U.js";
import "./pairing-labels-DbRKS01y.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.resolveStorePath(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 };
