import "./session-binding-service-D9jWaM9q.js";
import "./pairing-store-CDQMZdTB.js";
import "./thread-bindings-policy-C-kL4IiP.js";
import "./conversation-binding-DaQ12zOD.js";
import "./binding-registry-BdJBtahu.js";
import "./session-BfFiVtWU.js";
import "./channel-access-compat-Chla1lMF.js";
import "./binding-targets-BTDewdJl.js";
import "./binding-routing-DC_uNJqb.js";
import "./pairing-labels-zYenNpZR.js";
//#region src/channels/session-meta.ts
let inboundSessionRuntimePromise = null;
function loadInboundSessionRuntime() {
	inboundSessionRuntimePromise ??= import("./inbound.runtime.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 };
