UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

22 lines (21 loc) • 946 B
import { s as reloadSharedAuthStoreOwnership } from "./path-resolve-CpNl_n1M.mjs"; import { v as prepareModelRuntimeSnapshot } from "./prepared-model-runtime-Bbo9uBdt.mjs"; import { s as refreshActiveProviderAuthRuntimeSnapshot } from "./runtime-Dc04zUgW.mjs"; import { t as resolveModelAuthAgentScope } from "./model-auth-agent-scope-D5aeJRSp.mjs"; import { t as clearModelAuthStatusUsageCache } from "./models-auth-status-usage-cache-D9ndF6BR.mjs"; //#region src/gateway/model-auth-refresh.ts async function refreshModelAuthStateAfterMutation(e, t) { await reloadSharedAuthStoreOwnership(); clearModelAuthStatusUsageCache(); await refreshActiveProviderAuthRuntimeSnapshot(); const n = e(); const r = resolveModelAuthAgentScope(n, t); if (!r.ok) throw new Error(r.error.message); await prepareModelRuntimeSnapshot({ config: n, agentId: t, agentDir: r.agentDir }); } //#endregion export { refreshModelAuthStateAfterMutation as t };