import { r as createLazyRuntimeModule } from "./lazy-runtime-CgCh8H_K.js";
import "./session-binding-service-CrA2x7Ud.js";
import "./conversation-binding-Dcdh_yHM.js";
import "./thread-bindings-policy-BJPe5NNg.js";
import "./session-BWZcMXs5.js";
import "./pairing-store-BkfRFOWe.js";
import "./channel-access-compat-CLUQ2rWB.js";
import "./binding-routing-BnCd1RR7.js";
import "./pairing-labels-CBKAXPDU.js";
//#region src/channels/session-meta.ts
const loadInboundSessionRuntime = createLazyRuntimeModule(() => import("./inbound.runtime.js"));
/**
* Best-effort inbound session metadata recorder for channel plugin command handlers.
*/
async function recordInboundSessionMetaSafe(params) {
	const runtime = await loadInboundSessionRuntime();
	const storePath = runtime.resolveSessionStorePathCore(params.cfg.session?.store, { agentId: params.agentId });
	try {
		await runtime.recordInboundSessionMeta({
			storePath,
			sessionKey: params.sessionKey,
			ctx: params.ctx
		});
	} catch (err) {
		params.onError?.(err);
	}
}
//#endregion
export { recordInboundSessionMetaSafe as t };
