UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

18 lines (17 loc) • 520 B
import { n as normalizeAgentId } from "./agent-id-CQjtp2ft.mjs"; import "./session-key-CqAyZeVk.mjs"; //#region src/gateway/hooks-policy.ts /** Resolves configured hook agent ids, or undefined when all agents are allowed. */ function resolveAllowedAgentIds(e) { if (!Array.isArray(e)) return; const t = /* @__PURE__ */ new Set(); for (const n of e) { const e = n.trim(); if (!e) continue; if (e === "*") return; t.add(normalizeAgentId(e)); } return t; } //#endregion export { resolveAllowedAgentIds as t };