14 lines
353 B
TypeScript
14 lines
353 B
TypeScript
import { toAgentStoreSessionKey } from "../../routing/session-key.js";
|
|
|
|
export function resolveCronAgentSessionKey(params: {
|
|
sessionKey: string;
|
|
agentId: string;
|
|
mainKey?: string | undefined;
|
|
}): string {
|
|
return toAgentStoreSessionKey({
|
|
agentId: params.agentId,
|
|
requestKey: params.sessionKey.trim(),
|
|
mainKey: params.mainKey,
|
|
});
|
|
}
|