import "./session-binding-service-DthtNmld.js";
import "./thread-bindings-policy-BexnM94H.js";
import "./channel-access-compat-7b5wqUuX.js";
import "./conversation-binding-euMdbJaz.js";
import "./binding-registry-D5p4AQOR.js";
import "./session-h7NPtz8h.js";
import "./pairing-store-Uyggsp3X.js";
import "./binding-targets-vN57M0xh.js";
import "./binding-routing-BlzRuZhG.js";
import "./pairing-labels-BpFN4h7o.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 };
