import { y as toAgentStoreSessionKey } from "./session-key-B_NoIfpX.js";
import { t as canonicalizeMainSessionAlias } from "./main-session-CCO0YYF8.js";
//#region src/cron/isolated-agent/session-key.ts
/** Resolves a cron session key into the canonical agent-scoped session-store key. */
function resolveCronAgentSessionKey(params) {
	const raw = toAgentStoreSessionKey({
		agentId: params.agentId,
		requestKey: params.sessionKey.trim(),
		mainKey: params.mainKey
	});
	return canonicalizeMainSessionAlias({
		cfg: params.cfg,
		agentId: params.agentId,
		sessionKey: raw
	});
}
//#endregion
export { resolveCronAgentSessionKey as t };
