UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

23 lines (22 loc) 819 B
import { t as buildAgentSessionKey } from "./resolve-route-BRXfbiKP.js"; //#region src/infra/outbound/base-session-key.ts /** * Builds the canonical outbound base-session key for a resolved route peer. * * Mirrors the routing layer's session-scope rules so outbound-only sends and * inbound route resolution keep the same session scopes and identity-link behavior. */ function buildOutboundBaseSessionKey(params) { return buildAgentSessionKey({ agentId: params.agentId, mainKey: params.cfg.session?.mainKey, channel: params.channel, accountId: params.accountId, peer: params.peer, dmScope: params.cfg.session?.dmScope ?? "main", groupScope: params.cfg.session?.groupScope ?? "per-group", identityLinks: params.cfg.session?.identityLinks }); } //#endregion export { buildOutboundBaseSessionKey as t };