import "./session-binding-service-TkzMJgX4.js";
import "./thread-bindings-policy-ju78wBwB.js";
import "./conversation-binding-Bi1-X657.js";
import "./binding-registry-BfEfvCBC.js";
import "./session-Cfo6uSjE.js";
import "./pairing-store-Ba7XT5ir.js";
import "./dm-policy-shared-vsXr18Pw.js";
import "./binding-targets-DpxdhAyN.js";
import "./binding-routing-DepF---t.js";
import "./pairing-labels-BtMtx6Up.js";
//#region src/channels/session-meta.ts
let inboundSessionRuntimePromise = null;
function loadInboundSessionRuntime() {
	inboundSessionRuntimePromise ??= import("./inbound.runtime-nRt6fQA8.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 };
