UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) • 543 B
import { r as normalizeControlUiBasePath } from "./grammar-epzT638q.mjs"; //#region packages/session-url-contract/src/focus.ts const FOCUS_SEGMENT = "/focus"; function normalizePathname(e) { const t = e.trim(); const n = t.startsWith("/") ? t : `/${t}`; return n.length > 1 ? n.replace(/\/+$/u, "") : n; } function isControlUiFocusPath(e, t = "") { const n = normalizePathname(e); const r = `${normalizeControlUiBasePath(t)}${FOCUS_SEGMENT}`; return n === r || n.startsWith(`${r}/`); } //#endregion export { isControlUiFocusPath as t };