import "./session-binding-service-CkRuo3qL.js";
import "./thread-bindings-policy-DmWIiuFu.js";
import "./channel-access-compat-C41fNapZ.js";
import "./conversation-binding-DSmUBuBi.js";
import "./binding-registry-BtAnbTou.js";
import "./session-CMcdOB80.js";
import "./pairing-store-BR3sLhW0.js";
import "./binding-targets--VUQZizG.js";
import "./binding-routing-CLaBWtxH.js";
import "./pairing-labels-DJm5f6sW.js";
//#region src/channels/session-meta.ts
let inboundSessionRuntimePromise = null;
function loadInboundSessionRuntime() {
	inboundSessionRuntimePromise ??= import("./inbound.runtime.js");
	return inboundSessionRuntimePromise;
}
/**
* 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.recordSessionMetaFromInbound({
			storePath,
			sessionKey: params.sessionKey,
			ctx: params.ctx
		});
	} catch (err) {
		params.onError?.(err);
	}
}
//#endregion
export { recordInboundSessionMetaSafe as t };
