UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) • 604 B
import { t as isBlockedObjectKey } from "./prototype-keys-CLGi5xDj.mjs"; import { r as normalizeAgentIdStrict } from "./agent-id-CQjtp2ft.mjs"; //#region src/routing/account-id.ts const DEFAULT_ACCOUNT_ID = "default"; function normalizeAccountId(e) { return normalizeOptionalAccountId(e) ?? "default"; } function normalizeOptionalAccountId(e) { const t = (e ?? "").trim(); if (!t) return; const n = normalizeAgentIdStrict(t); return n.ok && !isBlockedObjectKey(n.value) ? n.value : void 0; } //#endregion export { normalizeAccountId as n, normalizeOptionalAccountId as r, DEFAULT_ACCOUNT_ID as t };