UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 853 B
import{s as reloadSharedAuthStoreOwnership}from"./path-resolve-TSS6dv07.mjs";import{v as prepareModelRuntimeSnapshot}from"./prepared-model-runtime-Bq1P9DhS.mjs";import{s as refreshActiveProviderAuthRuntimeSnapshot}from"./runtime-_5KWLVzx.mjs";import{t as resolveModelAuthAgentScope}from"./model-auth-agent-scope-dS6ga2Rp.mjs";import{t as clearModelAuthStatusUsageCache}from"./models-auth-status-usage-cache-SINdS-I_.mjs"; //!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})}export{refreshModelAuthStateAfterMutation as t};