UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

21 lines (20 loc) 713 B
import { t as buildAgentSessionKey } from "./resolve-route-xcIS8NFL.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 `dmScope` and identity-link behavior. */ function buildOutboundBaseSessionKey(params) { return buildAgentSessionKey({ agentId: params.agentId, channel: params.channel, accountId: params.accountId, peer: params.peer, dmScope: params.cfg.session?.dmScope ?? "main", identityLinks: params.cfg.session?.identityLinks }); } //#endregion export { buildOutboundBaseSessionKey as t };