import"./DrKWWDpL.js";import{t as e}from"./DYP3EJMY.js";import{o as t,s as n}from"./CX8DOZuw2.js";import{t as r}from"./kwfd020K.js";e();var i=`claude-haiku-4-5-20251001`,a={version:`2.10.0`,output:{defaultFormat:`json`,showColor:!0,showUnicode:!0,showProgressBars:!0,dateFormat:`relative`},backup:{maxOperationalBackups:10,maxSafetyBackups:5,compressionEnabled:!1},hierarchy:{maxDepth:3,maxSiblings:0,cascadeDelete:!1,maxActiveSiblings:0,countDoneInLimit:!1,enforcementProfile:`llm-agent-first`},session:{autoStart:!1,requireNotes:!1,multiSession:!1},enforcement:{acceptance:{mode:`block`,requiredForPriorities:[`critical`,`high`,`medium`,`low`],minimumCriteria:3},session:{requiredForMutate:!0}},verification:{enabled:!0,maxRounds:3,requiredGates:[`implemented`,`testsPassed`,`qaPassed`]},lifecycle:{mode:`strict`},logging:{level:`info`,filePath:`logs/cleo.log`,maxFileSize:10*1024*1024,maxFiles:5,auditRetentionDays:90,archiveBeforePrune:!0},sharing:{mode:`none`,commitAllowlist:[],denylist:[]},signaldock:{enabled:!1,mode:`http`,endpoint:`http://localhost:4000`,agentPrefix:`cleo-`,privacyTier:`private`},brain:{autoCapture:!0,captureFiles:!1,captureWork:!1,embedding:{enabled:!0,provider:`local`},memoryBridge:{autoRefresh:!0,contextAware:!0,maxTokens:2e3,mode:`cli`},summarization:{enabled:!0},llmExtraction:{enabled:!0,model:i,minImportance:.6,maxExtractions:7,maxTranscriptChars:6e4}},auth:{claudeCodeConsentGiven:!1,cooperativeWriteBack:!0},leadRollup:{mode:`passive`},daemon:{autoStart:!0}},o={CLEO_FORMAT:`output.defaultFormat`,CLEO_OUTPUT_DEFAULT_FORMAT:`output.defaultFormat`,CLEO_OUTPUT_SHOW_COLOR:`output.showColor`,CLEO_OUTPUT_SHOW_UNICODE:`output.showUnicode`,CLEO_OUTPUT_SHOW_PROGRESS_BARS:`output.showProgressBars`,CLEO_OUTPUT_DATE_FORMAT:`output.dateFormat`,CLEO_HIERARCHY_MAX_DEPTH:`hierarchy.maxDepth`,CLEO_HIERARCHY_MAX_SIBLINGS:`hierarchy.maxSiblings`,CLEO_HIERARCHY_MAX_ACTIVE_SIBLINGS:`hierarchy.maxActiveSiblings`,CLEO_HIERARCHY_ENFORCEMENT_PROFILE:`hierarchy.enforcementProfile`,CLEO_SESSION_AUTO_START:`session.autoStart`,CLEO_SESSION_REQUIRE_NOTES:`session.requireNotes`,CLEO_LIFECYCLE_MODE:`lifecycle.mode`,CLEO_LOG_LEVEL:`logging.level`,CLEO_LOG_FILE:`logging.filePath`,CLEO_AUDIT_RETENTION_DAYS:`logging.auditRetentionDays`,CLEO_SIGNALDOCK_ENABLED:`signaldock.enabled`,CLEO_SIGNALDOCK_ENDPOINT:`signaldock.endpoint`};function s(e,t){let n=t.split(`.`),r=e;for(let e of n){if(typeof r!=`object`||!r)return;r=r[e]}return r}function c(e,t,n){let r=t.split(`.`),i=e;for(let e=0;e<r.length-1;e++){let t=r[e];(i[t]===void 0||typeof i[t]!=`object`)&&(i[t]={}),i=i[t]}i[r[r.length-1]]=n}function l(e,t){let n={...e};for(let e of Object.keys(t)){let r=t[e],i=n[e];typeof r==`object`&&r&&!Array.isArray(r)&&typeof i==`object`&&i&&!Array.isArray(i)?n[e]=l(i,r):n[e]=r}return n}function u(e){if(e===`true`)return!0;if(e===`false`)return!1;let t=Number(e);return!Number.isNaN(t)&&e.trim()!==``?t:e}async function d(e){let i=JSON.parse(JSON.stringify(a)),s=await r(n());s&&(i=l(i,s));let d=await r(t(e));d&&(d.pinoLogging&&typeof d.pinoLogging==`object`&&(i.logging=l(i.logging??{},d.pinoLogging)),i=l(i,d));for(let[e,t]of Object.entries(o)){let n={}[e];n!==void 0&&c(i,t,u(n))}return i}async function f(e,i){for(let[t,n]of Object.entries(o))if(n===e&&{}[t]!==void 0)return{value:u({}[t]),source:`env`};let c=await r(t(i));if(c){let t=s(c,e);if(t!==void 0)return{value:t,source:`project`}}let l=await r(n());if(l){let t=s(l,e);if(t!==void 0)return{value:t,source:`global`}}return{value:s({...a},e),source:`default`}}async function p(e,n){let i=await r(t(n));if(i)return e?s(i,e):i}export{i,p as n,d as r,f as t};