UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

14 lines (13 loc) • 557 B
import { x as isCronSessionKey } from "./session-key-BC4m_Ly5.mjs"; //#region src/sessions/classify-session-kind.ts function classifySessionKind(key, entry) { if (key === "global") return "global"; if (key === "unknown") return "unknown"; if (isCronSessionKey(key)) return "cron"; if (entry?.spawnedBy) return "spawn-child"; if (entry?.chatType === "group" || entry?.chatType === "channel") return "group"; if (key.includes(":group:") || key.includes(":channel:")) return "group"; return "direct"; } //#endregion export { classifySessionKind as t };