import"./runtime-snapshot-C54O1-gI-DxusscPf.mjs";import{t as e}from"./runtime-state-IBOIXKOx-Cw1GA1td.mjs";function t(){return{plugins:[],tools:[],hooks:[],typedHooks:[],channels:[],channelSetups:[],providers:[],cliBackends:[],textTransforms:[],speechProviders:[],realtimeTranscriptionProviders:[],realtimeVoiceProviders:[],mediaUnderstandingProviders:[],imageGenerationProviders:[],videoGenerationProviders:[],musicGenerationProviders:[],webFetchProviders:[],webSearchProviders:[],embeddedExtensionFactories:[],codexAppServerExtensionFactories:[],memoryEmbeddingProviders:[],agentHarnesses:[],gatewayHandlers:{},gatewayMethodScopes:{},httpRoutes:[],cliRegistrars:[],reloads:[],nodeHostCommands:[],securityAuditCollectors:[],services:[],commands:[],conversationBindingResolvedHandlers:[],diagnostics:[]}}function n(e){return e}const r=(()=>{let t=globalThis,n=t[e];return n||(n={activeRegistry:null,activeVersion:0,httpRoute:{registry:null,pinned:!1,version:0},channel:{registry:null,pinned:!1,version:0},key:null,workspaceDir:null,runtimeSubagentMode:`default`,importedPluginIds:new Set},t[e]=n),n})();function i(e){r.importedPluginIds.add(e)}function a(e,t,n){e.registry===t&&e.pinned===n||(e.registry=t,e.pinned=n,e.version+=1)}function o(e,t,n=!1){if(!e.pinned){if(e.registry===t&&!e.pinned){n&&(e.version+=1);return}a(e,t,!1)}}function s(e,t,n=`default`,i){r.activeRegistry=e,r.activeVersion+=1,o(r.httpRoute,e,!0),o(r.channel,e,!0),r.key=t??null,r.workspaceDir=i??null,r.runtimeSubagentMode=n}function c(){return n(r.activeRegistry)}function l(){return r.workspaceDir??void 0}function u(){return n(r.channel.registry??r.activeRegistry)}function d(){return r.channel.registry?r.channel.version:r.activeVersion}function f(){return r.key}function p(){return r.runtimeSubagentMode}export{l as a,s as c,f as i,t as l,d as n,p as o,c as r,i as s,u as t};