import "./session-binding-service-Dt5NxtK1.js";
import "./pairing-store-D6kKcRDP.js";
import "./thread-bindings-policy-BZBsdp3j.js";
import "./conversation-binding-Ce5V8uhy.js";
import "./binding-registry-CE_PjTju.js";
import "./session-DDNzwYpl.js";
import "./channel-access-compat-B4dEcJP-.js";
import "./binding-targets-DRZy-L0v.js";
import "./binding-routing-V7qHnpr1.js";
import "./pairing-labels-DP0Gh9tl.js";
//#region src/channels/session-meta.ts
let inboundSessionRuntimePromise = null;
function loadInboundSessionRuntime() {
	inboundSessionRuntimePromise ??= import("./inbound.runtime-DiEtKHJz.js");
	return inboundSessionRuntimePromise;
}
async function recordInboundSessionMetaSafe(params) {
	const runtime = await loadInboundSessionRuntime();
	const storePath = runtime.resolveStorePath(params.cfg.session?.store, { agentId: params.agentId });
	try {
		await runtime.recordSessionMetaFromInbound({
			storePath,
			sessionKey: params.sessionKey,
			ctx: params.ctx
		});
	} catch (err) {
		params.onError?.(err);
	}
}
//#endregion
export { recordInboundSessionMetaSafe as t };
