openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
16 lines (15 loc) • 550 B
JavaScript
import { t as buildAgentSessionKey } from "./resolve-route-DBnTWpM6.mjs";
//#region src/infra/outbound/base-session-key.ts
/** Outbound-only sends use the routing owner's session scopes and identity links. */
function buildOutboundBaseSessionKey(e) {
const { cfg: t, ...n } = e;
return buildAgentSessionKey({
...n,
mainKey: t.session?.mainKey,
dmScope: t.session?.dmScope ?? "main",
groupScope: t.session?.groupScope ?? "per-group",
identityLinks: t.session?.identityLinks
});
}
//#endregion
export { buildOutboundBaseSessionKey as t };