import{n as e,r as t}from"./chunk-DR8-3Aex.js";import{dc as n,yc as r}from"./paths-Ci1iwL5Y.js";import{l as i,p as a}from"./debug-otxXY3j-.js";import{o,s}from"./log-DSV4Ht5l.js";var c=t({captureTeammateModeSnapshot:()=>f,clearCliTeammateModeOverride:()=>d,getCliTeammateModeOverride:()=>u,getTeammateModeFromSnapshot:()=>p,setCliTeammateModeOverride:()=>l});function l(e){h=e}function u(){return h}function d(e){h=null,m=e,a(`[TeammateModeSnapshot] CLI override cleared, new mode: ${e}`)}function f(){h?(m=h,a(`[TeammateModeSnapshot] Captured from CLI override: ${m}`)):(m=n().teammateMode??`auto`,a(`[TeammateModeSnapshot] Captured from config: ${m}`))}function p(){return m===null&&(s(Error(`getTeammateModeFromSnapshot called before capture - this indicates an initialization bug`)),f()),m??`auto`}var m,h,g=e((()=>{r(),i(),o(),m=null,h=null}));export{g as a,p as i,d as n,l as o,u as r,c as s,f as t};