import{F as e,N as t,P as n}from"./src-BOCweS1p.js";import{f as r,g as i}from"./vscode-api-DjORcpSo.js";async function a(e){try{let t=await e.updateUserAsync(e.getContext().user);t.success||i.warning(`Failed to refresh Codex runtime config from Statsig`,{safe:{},sensitive:{updateDetails:t}})}catch(e){i.warning(`Failed to refresh Codex runtime config from Statsig`,{safe:{},sensitive:{error:e}})}s(o(e))}function o(r){let a=r.getLayer(`2096615506`).get(t,n),o=e.safeParse(a);return o.success||i.info(`Invalid Codex runtime install config; using default runtime`,{safe:{},sensitive:{runtimeInstallConfig:a,error:o.error}}),{source:a===n?`default`:`statsig-layer`,value:o.success?o.data:n}}function s(e){i.info(`Codex runtime config selected`,{safe:{artifact:t,source:e.source},sensitive:{runtimeInstallConfig:e.value}}),r.dispatchMessage(`codex-runtimes-config-changed`,{config:c(e.value)})}function c(e){return{runtimes:{[t]:e}}}var l=[`app-host`,`primary-runtime`,`update-status`];function u(e){return[`app-host`,`primary-runtime`,`diagnostics`,e]}export{a,s as i,u as n,o as r,l as t};
//# sourceMappingURL=primary-runtime-query-keys-DFc6IPb8.js.map