import "./session-binding-service-4FLRnf04.js";
import "./thread-bindings-policy-CP38EgfY.js";
import "./channel-access-compat-Dc-pcrkG.js";
import "./conversation-binding-Cawc1Zj-.js";
import "./binding-registry-t-b1MYNQ.js";
import "./session-DssU6bXP.js";
import "./pairing-store-BDi8C8rd.js";
import "./binding-targets-C5PGHLsQ.js";
import "./binding-routing-D-eVD_KA.js";
import "./pairing-labels-CCea8sYW.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 };
