UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

9 lines (8 loc) • 412 B
import { a as loadExecApprovalsReadOnlyAsync } from "./exec-approvals-store-BUZ9uOWF.mjs"; //#region src/infra/exec-approvals-mcp.ts /** Snapshot exact-agent grants at thread/registration preparation, never on tool calls. */ async function loadMcpToolGrants(e, t) { return e === "*" ? [] : (await loadExecApprovalsReadOnlyAsync(t)).agents?.[e]?.mcpTools ?? []; } //#endregion export { loadMcpToolGrants as t };