import "./session-binding-service-ZjioQWEy.js";
import "./pairing-store-DX336Mhx.js";
import "./thread-bindings-policy-DkKel8g7.js";
import "./channel-access-compat-GvGXDu6d.js";
import "./conversation-binding-D4skln8m.js";
import "./binding-registry-B4VqACSF.js";
import "./session-B70qAHnc.js";
import "./binding-targets-BQXbC6-q.js";
import "./binding-routing-BK7sS0k6.js";
import "./pairing-labels-CWCpDNZ9.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 };
