// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
import{$,A,Aa as Bo,B,Ba as Co,C,Ca as Do,D,Da as Eo,E,Ea as Fo,F,Fa as Go,G,Ga as Ho,H,Ha as Io,I,Ia as Jo,J,Ja as Ko,K,Ka as Lo,L,La as Mo,M,Ma as No,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a as o,aa as oo,b as r,ba as ro,c as e,ca as eo,d as f,da as fo,e as m,ea as mo,f as p,fa as po,g as t,ga as to,h as x,ha as xo,i as a,ia as ao,j as b,ja as bo,k as c,ka as co,l as d,la as go,m as g,ma as ho,n as h,na as io,o as i,oa as jo,p as j,pa as ko,q as k,qa as lo,r as l,ra as no,s as n,sa as qo,t as q,ta as so,u as s,ua as uo,v as u,va as vo,w as v,wa as wo,x as w,xa as yo,y,ya as zo,z,za as Ao}from"./chunks/chunk-CD3R5YBH.js";import"./chunks/chunk-3RKBXWZS.js";import"./chunks/chunk-V4WSBIXB.js";export{po as CORE_INVARIANTS,Ao as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,B as DEFAULT_SYSTEM_CAP,j as DefaultSummaryCompaction,P as GuardrailBlockedError,Q as GuardrailEscalateError,H as InvariantSession,a as KODAX_API_MIN_INTERVAL,r as KODAX_DEFAULT_TIMEOUT,e as KODAX_HARD_TIMEOUT,p as KODAX_MAX_INCOMPLETE_RETRIES,t as KODAX_MAX_MAXTOKENS_RETRIES,f as KODAX_MAX_RETRIES,o as KODAX_MAX_TOKENS,m as KODAX_RETRY_BASE_DELAY,x as KODAX_STAGGER_DELAY,J as MAX_TOOL_LOOP_ITERATIONS,go as MessageQueue,b as PROMISE_PATTERN,oo as Runner,jo as YIELD_TOOL_NAMES,z as _resetAdmissionMetrics,G as _resetAdmittedAgentBindings,u as _resetInvariantRegistry,io as _resetMessageQueueForTests,_ as _resetPresetDispatchers,k as applyManifestPatch,Lo as bootstrapTeamMode,N as buildAssistantMessageFromLlmResult,Ho as buildOtherInstancesPromptBlock,$ as buildSystemPrompt,O as buildToolResultMessage,No as cleanupIncompleteToolCalls,R as collectGuardrails,zo as composeIdleYieldUserMessage,l as composePatches,uo as countLastAssistantToolCalls,d as countTokens,g as createAgent,h as createHandoff,i as createInMemorySession,I as createInvariantSessionForAgent,Fo as createStateWriter,W as detectHandoffSignal,vo as detectIdleYield,C as detectInstructionsInjection,wo as detectMissingTerminalVerdict,Go as discoverInstances,Y as emitHandoffSpan,no as enqueueChildTaskNotification,c as estimateTokens,eo as evidenceTrail,M as executeRunnerToolCall,ro as extractAssistantTextFromMessage,fo as finalOwner,Jo as getActiveTeamModeWriter,y as getAdmissionMetricsSnapshot,F as getAdmittedAgentBindings,ao as getAgentConfigHome,bo as getAgentConfigPath,co as getAppDataDir,q as getInvariant,ho as getMessageQueue,mo as handoffLegality,A as isAdmissionDebugEnabled,so as isIdleYieldEnabled,K as isRunnableTool,L as isRunnerLlmResult,s as listRegisteredInvariants,lo as maybeDrainMidTurn,ko as midTurnDrainPriority,qo as registerChildTask,to as registerCoreInvariants,n as registerInvariant,Z as registerPresetDispatcher,X as replaceSystemMessage,Eo as requestTaskStop,w as resolveEffectiveInvariants,v as resolveRequiredInvariants,Do as routeMessage,D as runAdmissionAudit,Co as runFanOut,S as runInputGuardrails,T as runOutputGuardrails,V as runToolAfterGuardrails,U as runToolBeforeGuardrails,Bo as runWithIdleYield,Io as setActiveTeamModeWriter,E as setAdmittedAgentBindings,xo as setAgentConfigHome,Ko as updateActiveTeamMode,Mo as validateAndFixToolHistory,yo as waitForWakeEvent};
