import "./session-binding-service-TkzMJgX4.js";
import "./thread-bindings-policy-6z7p2fj1.js";
import "./conversation-binding-Dme9CJ0L.js";
import "./binding-registry-CemseDbQ.js";
import "./session-AyqSNfOH.js";
import "./pairing-store-Cyk82Kri.js";
import "./dm-policy-shared-CPWcJUjf.js";
import "./binding-targets-DbPnYzlj.js";
import "./binding-routing-CjT_J6UO.js";
import "./pairing-labels-D1cWDh8F.js";
//#region src/channels/session-meta.ts
let inboundSessionRuntimePromise = null;
function loadInboundSessionRuntime() {
	inboundSessionRuntimePromise ??= import("./inbound.runtime-DyT7IWel.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 };
