@kodax-ai/kodax 0.7.41 → 0.7.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +119 -3
- package/README.md +214 -286
- package/README_CN.md +173 -277
- package/dist/chunks/chunk-7G5PSL6C.js +830 -0
- package/dist/chunks/{chunk-6OB4AJOM.js → chunk-IYSK7LUK.js} +1 -1
- package/dist/chunks/chunk-K75O2CAE.js +31 -0
- package/dist/chunks/chunk-UG4262JI.js +502 -0
- package/dist/chunks/chunk-VHKAJDQD.js +425 -0
- package/dist/chunks/chunk-YMRZBS4G.js +2 -0
- package/dist/chunks/{compaction-config-LT5PEXPT.js → compaction-config-3E57ABCT.js} +1 -1
- package/dist/chunks/{construction-bootstrap-HBCWJFHC.js → construction-bootstrap-JR63KI5N.js} +4 -4
- package/dist/chunks/dist-KWHUKXEL.js +2 -0
- package/dist/chunks/dist-XANXEVTU.js +2 -0
- package/dist/chunks/utils-HQ2QCKJA.js +2 -0
- package/dist/index.d.ts +15 -10
- package/dist/index.js +5 -5
- package/dist/kodax_cli.js +1084 -1054
- package/dist/sdk-agent.d.ts +853 -135
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +932 -981
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-llm.d.ts +8 -5
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.d.ts +17 -0
- package/dist/sdk-mcp.js +2 -0
- package/dist/sdk-repl.d.ts +343 -10
- package/dist/sdk-repl.js +2 -1
- package/dist/sdk-session.d.ts +176 -0
- package/dist/sdk-session.js +2 -0
- package/dist/sdk-skills.d.ts +72 -4
- package/dist/sdk-skills.js +1 -1
- package/dist/types-chunks/{cost-tracker.d-C4dMlQuV.d.ts → base.d-FUJahC0i.d.ts} +22 -112
- package/dist/types-chunks/{bash-prefix-extractor.d-B2iliwdi.d.ts → bash-prefix-extractor.d-DMrGImMl.d.ts} +266 -228
- package/dist/types-chunks/capability.d-3C62G8Eq.d.ts +39 -0
- package/dist/types-chunks/config.d-BfJUXxC0.d.ts +41 -0
- package/dist/types-chunks/cost-tracker.d-wRtyEW9d.d.ts +110 -0
- package/dist/types-chunks/{history-cleanup.d-q1vAvCss.d.ts → file-tracker.d-zaLZeNBK.d.ts} +532 -15
- package/dist/types-chunks/manager.d-87belpiS.d.ts +370 -0
- package/dist/types-chunks/{resolver.d-BwD6TKz7.d.ts → resolver.d-CA68_NeH.d.ts} +150 -5
- package/dist/types-chunks/storage.d-DPAEX7zS.d.ts +115 -0
- package/dist/types-chunks/{capability.d-BxNgd1-c.d.ts → types.d-B1uGoVTE.d.ts} +72 -40
- package/dist/types-chunks/{instance-discovery.d-DZhp77vb.d.ts → types.d-CKJtjo-6.d.ts} +168 -258
- package/dist/types-chunks/types.d-mM8vqvhT.d.ts +254 -0
- package/dist/types-chunks/{storage.d-Bv9T99Qu.d.ts → utils.d-DkLZD_wa.d.ts} +38 -112
- package/package.json +15 -6
- package/dist/chunks/chunk-5TFLMGER.js +0 -2
- package/dist/chunks/chunk-6QO6HWGU.js +0 -30
- package/dist/chunks/chunk-EQ5DGS2W.js +0 -14
- package/dist/chunks/chunk-HYWVRTFA.js +0 -1233
- package/dist/chunks/chunk-SX2IS5JP.js +0 -16
- package/dist/chunks/chunk-ZPJPNLBK.js +0 -462
- package/dist/chunks/dist-M57GIWR4.js +0 -2
- package/dist/chunks/dist-V3BS2NKB.js +0 -2
- package/dist/chunks/utils-FAFUQJ2A.js +0 -2
package/dist/sdk-coding.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as mr,$a as fe,$b as ff,$c as mm,$d as mp,A as Fo,Aa as Fr,Ab as Ee,Ac as Ff,Ad as Fm,B as Go,Ba as Gr,Bb as Fe,Bc as Gf,Bd as Gm,C as Ho,Ca as Hr,Cb as Ge,Cc as Hf,Cd as Hm,D as Io,Da as Ir,Db as He,Dc as If,Dd as Im,E as Jo,Ea as Jr,Eb as Ie,Ec as Jf,Ed as Jm,F as Ko,Fa as Kr,Fb as Je,Fc as Kf,Fd as Km,G as Lo,Ga as Lr,Gb as Ke,Gc as Lf,Gd as Lm,H as Mo,Ha as Mr,Hb as Le,Hc as Mf,Hd as Mm,I as No,Ia as Nr,Ib as Me,Ic as Nf,Id as Nm,J as Oo,Ja as Or,Jb as Ne,Jc as Of,Jd as Om,K as Po,Ka as Pr,Kb as Oe,Kc as Pf,Kd as Pm,L as Qo,La as Qr,Lb as Pe,Lc as Qf,Ld as Qm,M as Ro,Ma as Rr,Mb as Qe,Mc as Rf,Md as Rm,N as So,Na as Sr,Nb as Re,Nc as Sf,Nd as Sm,O as To,Oa as Tr,Ob as Se,Oc as Tf,Od as Tm,P as Uo,Pb as Te,Pc as Uf,Pd as Um,Q as Vo,Qa as Ur,Qb as Ue,Qc as Vf,Qd as Vm,R as Wo,Ra as Vr,Rb as Ve,Rc as Wf,Rd as Wm,S as Xo,Sa as Wr,Sb as We,Sc as Xf,Sd as Xm,T as Yo,Ta as Xr,Tb as Xe,Tc as Yf,Td as Ym,U as Zo,Ua as Yr,Ub as Ye,Uc as Zf,Ud as Zm,V as _o,Va as Zr,Vb as Ze,Vc as _f,Vd as _m,W as $o,Wa as _r,Wb as _e,Wc as $f,Wd as $m,X as or,Xa as $r,Xb as $e,Xc as om,Xd as op,Y as rr,Ya as oe,Yb as of,Yc as rm,Yd as rp,Z as er,Za as re,Zb as rf,Zc as em,Zd as ep,_ as fr,_a as ee,_b as ef,_c as fm,_d as fp,a as N,aa as pr,ab as me,ac as mf,ad as pm,ae as pp,b as O,ba as tr,bb as pe,bc as pf,bd as tm,be as tp,c as P,ca as xr,cb as te,cc as tf,cd as xm,ce as xp,d as Q,da as ar,db as xe,dc as xf,dd as am,de as ap,e as R,ea as br,eb as ae,ec as af,ed as bm,ee as bp,f as bo,fa as cr,fb as be,fc as bf,fd as cm,fe as cp,g as co,ga as dr,gb as ce,gc as cf,gd as dm,ge as dp,h as go,ha as gr,hb as de,hc as df,hd as gm,he as gp,i as ho,ia as hr,ib as ge,ic as gf,id as hm,ie as hp,j as io,ja as ir,jb as he,jc as hf,jd as im,je as ip,k as jo,ka as jr,kb as ie,kc as jf,kd as jm,ke as jp,l as ko,la as kr,lb as je,lc as kf,ld as km,le as kp,m as lo,ma as lr,mb as ke,mc as lf,md as lm,me as lp,n as no,na as nr,nb as le,nc as nf,nd as nm,ne as np,o as qo,oa as qr,ob as ne,oc as qf,od as qm,oe as qp,p as so,pa as sr,pb as qe,pc as sf,pd as sm,q as uo,qa as ur,qb as se,qc as uf,qd as um,r as vo,ra as vr,rb as ue,rc as vf,rd as vm,s as wo,sa as wr,sb as ve,sc as wf,sd as wm,t as yo,ta as yr,tb as we,tc as yf,td as ym,u as zo,ua as zr,ub as ye,uc as zf,ud as zm,v as Ao,va as Ar,vb as ze,vc as Af,vd as Am,w as Bo,wa as Br,wb as Ae,wc as Bf,wd as Bm,x as Co,xa as Cr,xb as Be,xc as Cf,xd as Cm,y as Do,ya as Dr,yb as Ce,yc as Df,yd as Dm,z as Eo,za as Er,zb as De,zc as Ef,zd as Em}from"./chunks/chunk-HYWVRTFA.js";import{Ka as xo,La as ao,Z as po,a as S,aa as to,b as T,c as U,d as V,e as W,f as X,h as Y,i as Z,j as _,k as $,l as oo,m as ro,n as eo,o as fo,p as mo}from"./chunks/chunk-SX2IS5JP.js";import"./chunks/chunk-EQ5DGS2W.js";import{$ as A,C as c,I as d,J as g,O as h,P as i,Q as j,R as k,S as l,T as n,U as q,V as s,W as u,X as v,Y as w,Z as y,_ as z,a as o,aa as B,b as r,ba as C,c as e,ca as D,da as E,ea as F,fa as G,ga as H,ha as I,ia as J,j as f,ja as K,ka as L,la as M,t as m,u as p,v as t,w as x,x as a,y as b}from"./chunks/chunk-6QO6HWGU.js";import"./chunks/chunk-V4WSBIXB.js";export{Ym as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,Zm as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,lp as BASH_POLICY_SPEC,ep as BREAKER_ERROR_THRESHOLD,fp as BREAKER_WINDOW_MS,co as CANCELLED_TOOL_RESULT_MESSAGE,bo as CANCELLED_TOOL_RESULT_PREFIX,Om as CODING_AGENTS,Jm as CODING_AGENT_MARKER,Qf as CODING_INVARIANTS,Gf as CODING_SUMMARY_PROMPT,Hf as CODING_UPDATE_SUMMARY_PROMPT,_r as CapabilityDeniedError,Sf as Client,$r as ConstructionManifestError,If as DEFAULT_CODING_AGENT_NAME,Bm as DEFAULT_DANGEROUS_PATTERNS,Yr as DEFAULT_HANDLER_TIMEOUT_MS,hf as DEFAULT_RESILIENCE_CONFIG,Am as DEFAULT_SAFE_PATTERNS,ue as DEFAULT_SELF_MODIFY_BUDGET,hp as DEFAULT_SPECULATIVE_WINDOW_MS,ho as DEFAULT_TOOL_OUTPUT_MAX_BYTES,go as DEFAULT_TOOL_OUTPUT_MAX_LINES,mo as DefaultSummaryCompaction,em as EMIT_CONTRACT_TOOL_NAME,fm as EMIT_HANDOFF_TOOL_NAME,rm as EMIT_SCOUT_VERDICT_TOOL_NAME,mm as EMIT_VERDICT_TOOL_NAME,fe as EVALUATOR_AGENT_NAME,Q as ErrorCategory,ee as GENERATOR_AGENT_NAME,Z as KODAX_API_MIN_INTERVAL,j as KODAX_DEFAULT_PROVIDER,T as KODAX_DEFAULT_TIMEOUT,U as KODAX_HARD_TIMEOUT,X as KODAX_MAX_INCOMPLETE_RETRIES,V as KODAX_MAX_RETRIES,S as KODAX_MAX_TOKENS,i as KODAX_PROVIDERS,h as KODAX_PROVIDER_SNAPSHOTS,f as KODAX_REASONING_MODE_SEQUENCE,W as KODAX_RETRY_BASE_DELAY,Y as KODAX_STAGGER_DELAY,Oe as KODAX_TOOLS,d as KodaXAnthropicCompatProvider,c as KodaXBaseProvider,Sf as KodaXClient,o as KodaXError,Ur as KodaXExtensionRuntime,g as KodaXOpenAICompatProvider,r as KodaXProviderError,e as KodaXRateLimitError,O as KodaXSessionError,P as KodaXTerminalError,N as KodaXToolError,Ar as LINEAGE_ENTRY_TYPES,Cr as LineageCompaction,Br as LineageExtension,nm as McpCapabilityProvider,lm as McpServerRuntime,re as PLANNER_AGENT_NAME,_ as PROMISE_PATTERN,rf as PROMPT_SECTION_REGISTRY,bm as PROTOCOL_EMITTER_TOOLS,qf as ProviderRecoveryCoordinator,io as READ_DEFAULT_LIMIT,ko as READ_MAX_LINE_CHARS,jo as READ_PREFLIGHT_SIZE_BYTES,Uo as REPOINTEL_DEFAULT_ENDPOINT,to as Runner,oe as SCOUT_AGENT_NAME,of as SYSTEM_PROMPT,lf as StableBoundaryTracker,ae as TASK_ENGINE_ROLE_AGENTS,$f as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,Ce as _resetRuntimeForTesting,Fe as activate,Lo as analyzeChangedScope,qe as appendAuditEntry,Kr as appendSessionLineageLabel,Xf as applyFanoutBranchTransition,Lr as applySessionCompaction,cr as applyToolResultGuardrail,Rr as archiveOldIslands,Yf as assignFanoutBranchWorker,rp as autoModeDenialShouldFallback,cp as bashSignalCollector,Lf as boundedRevise,tp as breakerShouldFallback,Mf as budgetCeiling,Cf as buildAmaControllerDecision,tf as buildCapabilityContextSections,Pm as buildClassifierPrompt,Af as buildFallbackRoutingDecision,Uf as buildFanoutSchedulerPlan,ke as buildLlmReviewPrompt,cf as buildPromptMessageContent,Df as buildPromptOverlay,pf as buildPromptSnapshot,sf as buildProviderCapabilitySnapshot,Bf as buildProviderPolicyHintsForDecision,uf as buildProviderPolicyPromptNotes,t as buildReasoningOverrideKey,Ko as buildRepoIntelligenceContext,Zo as buildRepoIntelligenceIndex,Ho as buildRepoOverview,Pr as buildSessionTree,af as buildSystemPrompt,xf as buildSystemPromptSnapshot,bp as checkAbsoluteDeny,bf as checkIncompleteToolCalls,Ff as checkPromiseSignal,Rm as classify,Dm as classifyBashCommand,R as classifyError,kf as classifyResilienceError,ao as cleanupIncompleteToolCalls,b as clearReasoningOverride,J as clearRuntimeModelProviders,gp as collectAllSignals,Fm as computeInputSignature,Sm as computeRulesFingerprint,Be as configureRuntime,ir as convertCapabilityReadResult,hr as convertProviderSearchResults,Wf as countActiveFanoutBranches,Qr as countActiveLineageMessages,oo as countTokens,ro as createAgent,_m as createAutoModeDenialTracker,kp as createAutoModeToolGuardrail,Cm as createBashClassifierConfig,qp as createBashPrefixExtractor,We as createBuiltinToolDefinition,mp as createCircuitBreaker,ge as createCtxProxy,y as createCustomProvider,Jf as createDefaultCodingAgent,Em as createDenialTracker,Vr as createExtensionRuntime,Tf as createFanoutSchedulerInput,eo as createHandoff,fo as createInMemorySession,vm as createKodaXTaskRunner,gm as createMcpCapabilityId,km as createMcpTransport,ef as createPromptSection,Ef as createReasoningPlan,Fr as createSessionLineage,om as createToolResultTruncationGuardrail,dm as defaultMcpCacheDir,Zr as defaultPolicy,Ae as disableSelfModify,de as drainPendingSwaps,tm as emitContract,xm as emitHandoff,pm as emitScoutVerdict,am as emitVerdict,$ as estimateTokens,vf as evaluateProviderPolicy,xe as evaluatorAgent,Nm as evaluatorCodingAgent,yr as exec,$e as executeTool,Sr as extractArtifactLedger,np as extractCommandPrefix,gf as extractComparableUserMessageText,gr as extractHtmlTitle,df as extractPromptComparableText,Er as extractTitleFromMessages,dp as fileSignalCollector,kr as finalizeRetrievalResult,Le as findByVersion,Mr as findPreviousUserEntryId,Or as forkSessionLineage,wr as formatAgentsForPrompt,ym as formatParallelDispatchResult,lo as formatSize,Dr as generateSessionId,te as generatorAgent,Mm as generatorCodingAgent,Xr as getActiveExtensionRuntime,M as getAvailableProviderNames,Ve as getBuiltinRegisteredToolDefinition,Ue as getBuiltinToolDefinition,A as getCustomProvider,D as getCustomProviderList,E as getCustomProviderModels,C as getCustomProviderNames,Im as getDenialContext,Vf as getFanoutBranch,er as getImpactEstimate,ur as getKodaxGlobalDir,jm as getMcpCachePaths,$o as getModuleContext,rr as getProcessContext,k as getProvider,s as getProviderConfiguredCapabilityProfile,q as getProviderConfiguredReasoningCapability,u as getProviderList,n as getProviderModel,v as getProviderModels,Se as getRegisteredToolDefinition,_o as getRepoIntelligenceIndex,Io as getRepoOverview,fr as getRepoRoutingSignals,Ye as getRequiredToolParams,G as getRuntimeModelProvider,I as getRuntimeModelProviderNames,Gr as getSessionLineagePath,Hr as getSessionMessagesFromLineage,or as getSymbolContext,Qe as getTool,Re as getToolDefinition,Te as getToolRegistrations,br as getToolResultPolicy,ce as hasPendingSwap,Nf as independentReview,zf as inferTaskType,Ao as inspectEditFailure,Xo as inspectRepoIntelligenceRuntime,B as isCustomProviderName,Hm as isDeniedRecently,L as isKnownProvider,wm as isParallelDispatchDirective,l as isProviderConfigured,w as isProviderName,H as isRuntimeModelProviderName,Me as listAll,Ie as listArtifacts,Xe as listBuiltinToolDefinitions,Ke as listConstructed,_e as listToolDefinitions,Ze as listTools,vr as loadAgentsFiles,Wm as loadAutoRules,he as loadHandler,x as loadReasoningOverride,_f as markFanoutBranchCancelled,Zf as markFanoutBranchCompleted,Tr as mergeArtifactLedger,ff as orderPromptSections,Vm as parseAutoRules,Qm as parseClassifierOutput,zo as parseEditToolError,le as parseLlmReviewVerdict,hm as parseMcpCapabilityId,xp as parseModelSpec,uo as persistToolOutput,pe as plannerAgent,Lm as plannerCodingAgent,mr as prewarmRepoIntelligenceCaches,Je as readArtifact,se as readAuditEntries,ve as readBudget,ze as readDisableState,ip as readSpeculativeWindowFromEnv,Tm as readTrustState,m as reasoningCapabilityToOverride,yf as reasoningModeToDepth,p as reasoningOverrideToCapability,nf as reconstructMessagesWithToolGuard,op as recordAutoModeAllow,$m as recordAutoModeBlock,pp as recordBreakerError,Gm as recordDenial,Rf as registerCodingInvariants,qm as registerConfiguredMcpCapabilityProvider,z as registerCustomProviders,F as registerModelProvider,sm as registerOfficialSandboxExtension,po as registerPresetDispatcher,Pe as registerTool,Ge as rehydrateActiveArtifacts,we as remainingSelfModifyBudget,Mo as renderChangedScope,To as renderImpactEstimate,Qo as renderModuleContext,So as renderProcessContext,mf as renderPromptSections,Jo as renderRepoOverview,jr as renderRetrievalResult,Ro as renderSymbolContext,ye as resetBudget,ap as resolveClassifierModel,be as resolveConstructedAgent,K as resolveProvider,wf as resolveReasoningMode,Wo as resolveRepoIntelligenceMode,Vo as resolveRepoIntelligenceRuntimeConfig,jf as resolveResilienceConfig,Ir as resolveSessionLineageTarget,Of as resolveToolCapability,He as revoke,Nr as rewindSessionLineage,Ne as rollbackSelfModify,ie as runAstRules,Kf as runKodaX,ne as runLlmReview,cm as runManagedTask,um as runOrchestration,a as saveReasoningOverride,me as scoutAgent,Km as scoutCodingAgent,im as searchMcpCatalog,Wr as setActiveExtensionRuntime,Jr as setSessionLineageActiveEntry,jp as speculativeRace,De as stage,Xm as stripAssistantText,dr as stripHtmlToText,Ee as testArtifact,Go as toolAskUserQuestion,Co as toolBash,Po as toolChangedDiff,Oo as toolChangedScope,qr as toolCodeSearch,yo as toolEdit,Do as toolGlob,Eo as toolGrep,ar as toolImpactEstimate,Bo as toolInsertAfterAnchor,pr as toolModuleContext,Pf as toolPermission,xr as toolProcessContext,vo as toolRead,No as toolRepoOverview,sr as toolSemanticLookup,tr as toolSymbolContext,Fo as toolUndo,nr as toolWebFetch,lr as toolWebSearch,wo as toolWrite,no as truncateHead,so as truncateLine,qo as truncateTail,Um as trustProjectRules,xo as validateAndFixToolHistory,zm as validateSubtaskIndependence,je as validateToolSchemaForProvider,Yo as warmRepoIntelligenceRuntime,zr as webhook};
|
|
2
|
+
import{$ as Wr,$a as We,$b as Xf,$c as Xm,A as ur,Aa as ue,Ab as vf,Ac as vm,Ad as vp,B as vr,Ba as ve,Bb as wf,Bc as wm,Bd as wp,C as wr,Ca as we,Cb as yf,Cc as ym,Cd as yp,D as yr,Da as ye,Db as zf,Dc as zm,Dd as zp,E as zr,Ea as ze,Eb as Af,Ec as Am,Ed as Ap,F as Ar,Fa as Ae,Fb as Bf,Fc as Bm,Fd as Bp,G as Br,Ga as Be,Gb as Cf,Gc as Cm,Gd as Cp,H as Cr,Ha as Ce,Hb as Df,Hc as Dm,I as Dr,Ia as De,Ib as Ef,Ic as Em,J as Er,Ja as Ee,Jb as Ff,Jc as Fm,K as Fr,Ka as Fe,Kb as Gf,Kc as Gm,L as Gr,La as Ge,Lb as Hf,Lc as Hm,M as Hr,Ma as He,Mb as If,Mc as Im,N as Ir,Na as Ie,Nb as Jf,Nc as Jm,O as Jr,Oa as Je,Ob as Kf,Oc as Km,P as Kr,Pa as Ke,Pb as Lf,Pc as Lm,Q as Lr,Qa as Le,Qb as Mf,Qc as Mm,R as Mr,Ra as Me,Rb as Nf,Rc as Nm,S as Nr,Sa as Ne,Sb as Of,Sc as Om,T as Or,Ta as Oe,Tb as Pf,Tc as Pm,U as Pr,Ua as Pe,Ub as Qf,Uc as Qm,V as Qr,Va as Qe,Vb as Rf,Vc as Rm,W as Rr,Wa as Re,Wb as Sf,Wc as Sm,X as Sr,Xa as Se,Xb as Tf,Xc as Tm,Y as Tr,Ya as Te,Yb as Uf,Yc as Um,Z as Ur,Za as Ue,Zb as Vf,Zc as Vm,_ as Vr,_a as Ve,_b as Wf,_c as Wm,a as X,aa as Xr,ab as Xe,ac as Yf,ad as Ym,b as Y,ba as Yr,bb as Ye,bc as Zf,bd as Zm,c as Z,ca as Zr,cb as Ze,cc as _f,cd as _m,d as _,da as _r,db as _e,dc as $f,dd as $m,e as $,ea as $r,eb as $e,ec as om,ed as op,f as or,fa as oe,fb as of,fc as rm,fd as rp,g as rr,ga as re,gb as rf,gc as em,gd as ep,h as er,ha as ee,hb as ef,hc as fm,hd as fp,i as fr,ia as fe,ib as ff,ic as mm,id as mp,j as mr,ja as me,jb as mf,jc as pm,jd as pp,k as pr,ka as pe,kb as pf,kc as tm,kd as tp,l as tr,la as te,lb as tf,lc as xm,ld as xp,m as xr,ma as xe,mb as xf,mc as am,md as ap,n as ar,na as ae,nb as af,nc as bm,nd as bp,o as br,oa as be,ob as bf,oc as cm,od as cp,p as cr,pa as ce,pb as cf,pc as dm,pd as dp,q as dr,qa as de,qb as df,qc as gm,qd as gp,r as gr,ra as ge,rb as gf,rc as hm,rd as hp,s as hr,sa as he,sb as hf,sc as im,sd as ip,t as ir,ta as ie,tb as jf,tc as jm,td as jp,u as jr,ua as je,ub as kf,uc as km,ud as kp,v as kr,va as ke,vb as lf,vc as lm,vd as lp,w as lr,wa as le,wb as nf,wc as nm,wd as np,x as nr,xa as ne,xb as qf,xc as qm,xd as qp,y as qr,ya as qe,yb as sf,yc as sm,yd as sp,z as sr,za as se,zb as uf,zc as um,zd as up}from"./chunks/chunk-7G5PSL6C.js";import{$ as A,C as c,I as d,J as g,O as h,P as i,Q as j,R as k,S as l,T as n,U as q,V as s,W as u,X as v,Y as w,Z as y,_ as z,a as o,aa as B,b as r,ba as C,c as e,ca as D,da as E,ea as F,fa as G,ga as H,ha as I,ia as J,j as f,ja as K,ka as L,la as M,ma as N,na as O,oa as P,pa as Q,qa as R,ra as S,sa as T,t as m,ta as U,u as p,ua as V,v as t,va as W,w as x,x as a,y as b}from"./chunks/chunk-K75O2CAE.js";import{$b as Lo,Xa as vo,Ya as wo,Yb as Io,Zb as Jo,_b as Ko,a as oo,ac as Mo,b as ro,c as eo,d as fo,e as mo,f as po,h as to,hc as No,i as xo,ic as Oo,j as ao,jc as Po,k as bo,ka as ko,kb as yo,kc as Qo,l as co,lb as zo,lc as Ro,m as go,mb as Ao,mc as So,n as ho,na as lo,nb as Bo,nc as To,o as io,ob as Co,p as jo,pb as Do,pc as Uo,qb as Eo,qc as Vo,rb as Fo,rc as Wo,sb as Go,sc as Xo,tb as Ho,tc as Yo,ua as no,uc as Zo,va as qo,wa as so,xa as uo,xc as _o,yc as $o}from"./chunks/chunk-VHKAJDQD.js";import"./chunks/chunk-V4WSBIXB.js";export{pp as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,tp as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,Ap as BASH_POLICY_SPEC,dp as BREAKER_ERROR_THRESHOLD,gp as BREAKER_WINDOW_MS,rr as CANCELLED_TOOL_RESULT_MESSAGE,or as CANCELLED_TOOL_RESULT_PREFIX,Xm as CODING_AGENT_MARKER,km as CODING_INVARIANTS,pm as CODING_SUMMARY_PROMPT,tm as CODING_UPDATE_SUMMARY_PROMPT,Be as CapabilityDeniedError,nm as Client,Ce as ConstructionManifestError,xm as DEFAULT_CODING_AGENT_NAME,Mm as DEFAULT_DANGEROUS_PATTERNS,ze as DEFAULT_HANDLER_TIMEOUT_MS,Pf as DEFAULT_RESILIENCE_CONFIG,Lm as DEFAULT_SAFE_PATTERNS,Me as DEFAULT_SELF_MODIFY_BUDGET,vp as DEFAULT_SPECULATIVE_WINDOW_MS,fr as DEFAULT_TOOL_OUTPUT_MAX_BYTES,er as DEFAULT_TOOL_OUTPUT_MAX_LINES,jo as DefaultSummaryCompaction,Um as EMIT_VERDICT_TOOL_NAME,_ as ErrorCategory,ke as GENERATOR_AGENT_NAME,xo as KODAX_API_MIN_INTERVAL,j as KODAX_DEFAULT_PROVIDER,ro as KODAX_DEFAULT_TIMEOUT,eo as KODAX_HARD_TIMEOUT,po as KODAX_MAX_INCOMPLETE_RETRIES,fo as KODAX_MAX_RETRIES,oo as KODAX_MAX_TOKENS,i as KODAX_PROVIDERS,h as KODAX_PROVIDER_SNAPSHOTS,f as KODAX_REASONING_MODE_SEQUENCE,mo as KODAX_RETRY_BASE_DELAY,to as KODAX_STAGGER_DELAY,bf as KODAX_TOOLS,d as KodaXAnthropicCompatProvider,c as KodaXBaseProvider,nm as KodaXClient,o as KodaXError,pf as KodaXExtensionRuntime,g as KodaXOpenAICompatProvider,r as KodaXProviderError,e as KodaXRateLimitError,Y as KodaXSessionError,Z as KodaXTerminalError,X as KodaXToolError,Io as LINEAGE_ENTRY_TYPES,Ko as LineageCompaction,Jo as LineageExtension,Fo as McpCapabilityProvider,Go as McpManager,Eo as McpServerRuntime,je as PLANNER_AGENT_NAME,ao as PROMISE_PATTERN,Df as PROMPT_SECTION_REGISTRY,Wm as PROTOCOL_EMITTER_TOOLS,Uf as ProviderRecoveryCoordinator,mr as READ_DEFAULT_LIMIT,tr as READ_MAX_LINE_CHARS,pr as READ_PREFLIGHT_SIZE_BYTES,Kr as REPOINTEL_DEFAULT_ENDPOINT,lo as Runner,ie as SCOUT_AGENT_NAME,Cf as SYSTEM_PROMPT,Sf as StableBoundaryTracker,qe as TASK_ENGINE_ROLE_AGENTS,Bm as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,le as WORKER_AGENT_NAME,Te as _resetRuntimeForTesting,We as activate,Br as analyzeChangedScope,Ke as appendAuditEntry,So as appendSessionLineageLabel,wm as applyFanoutBranchTransition,To as applySessionCompaction,oe as applyToolResultGuardrail,Zo as archiveOldIslands,ym as assignFanoutBranchWorker,cp as autoModeDenialShouldFallback,qp as bashSignalCollector,gm as boundedRevise,jp as breakerShouldFallback,hm as budgetCeiling,rm as buildAmaControllerDecision,If as buildCapabilityContextSections,Ym as buildClassifierPrompt,$f as buildFallbackRoutingDecision,sm as buildFanoutSchedulerPlan,He as buildLlmReviewPrompt,Mf as buildPromptMessageContent,em as buildPromptOverlay,Hf as buildPromptSnapshot,Vf as buildProviderCapabilitySnapshot,om as buildProviderPolicyHintsForDecision,Wf as buildProviderPolicyPromptNotes,t as buildReasoningOverrideKey,Ar as buildRepoIntelligenceContext,Pr as buildRepoIntelligenceIndex,wr as buildRepoOverview,Xo as buildSessionTree,Kf as buildSystemPrompt,Jf as buildSystemPromptSnapshot,np as checkAbsoluteDeny,Lf as checkIncompleteToolCalls,mm as checkPromiseSignal,_m as classify,Om as classifyBashCommand,$ as classifyError,Rf as classifyResilienceError,wo as cleanupIncompleteToolCalls,b as clearReasoningOverride,Q as clearRuntimeModelProviders,up as collectAllSignals,Qm as computeInputSignature,$m as computeRulesFingerprint,Se as configureRuntime,me as convertCapabilityReadResult,fe as convertProviderSearchResults,vm as countActiveFanoutBranches,Yo as countActiveLineageMessages,co as countTokens,go as createAgent,xp as createAutoModeDenialTracker,zp as createAutoModeToolGuardrail,Nm as createBashClassifierConfig,Cp as createBashPrefixExtractor,nf as createBuiltinToolDefinition,hp as createCircuitBreaker,De as createCtxProxy,C as createCustomProvider,am as createDefaultCodingAgent,Pm as createDenialTracker,tf as createExtensionRuntime,qm as createFanoutSchedulerInput,ho as createHandoff,io as createInMemorySession,Hm as createKodaXTaskRunner,zo as createMcpCapabilityId,Ho as createMcpManager,Do as createMcpTransport,Ef as createPromptSection,fm as createReasoningPlan,cm as createSessionControl,No as createSessionLineage,Cm as createToolResultTruncationGuardrail,yo as defaultMcpCacheDir,Ae as defaultPolicy,Re as disableSelfModify,ff as discoverMarkdownAgents,ve as drainPendingSwaps,Vm as emitVerdict,bo as estimateTokens,Xf as evaluateProviderPolicy,we as exec,Bf as executeTool,_o as extractArtifactLedger,Bp as extractCommandPrefix,Of as extractComparableUserMessageText,ee as extractHtmlTitle,Nf as extractPromptComparableText,Mo as extractTitleFromMessages,sp as fileSignalCollector,te as finalizeRetrievalResult,of as findByVersion,Uo as findPreviousUserEntryId,Wo as forkSessionLineage,he as formatAgentsForPrompt,Jm as formatParallelDispatchResult,xr as formatSize,Lo as generateSessionId,af as getActiveExtensionRuntime,qo as getAgentConfigHome,so as getAgentConfigPath,sf as getAllRegisteredTools,uo as getAppDataDir,T as getAvailableProviderNames,lf as getBuiltinRegisteredToolDefinition,kf as getBuiltinToolDefinition,K as getCustomModelCapabilities,E as getCustomProvider,H as getCustomProviderList,J as getCustomProviderModelDescriptors,I as getCustomProviderModels,G as getCustomProviderNames,Tm as getDenialContext,um as getFanoutBranch,Ur as getImpactEstimate,de as getKodaxGlobalDir,Co as getMcpCachePaths,z as getModelCapabilities,Rr as getModuleContext,Tr as getProcessContext,k as getProvider,s as getProviderConfiguredCapabilityProfile,q as getProviderConfiguredReasoningCapability,u as getProviderList,n as getProviderModel,y as getProviderModelDescriptors,v as getProviderModels,hf as getRegisteredToolDefinition,Qr as getRepoIntelligenceIndex,yr as getRepoOverview,Vr as getRepoRoutingSignals,yf as getRequiredToolParams,N as getRuntimeModelProvider,P as getRuntimeModelProviderNames,Oo as getSessionLineagePath,Po as getSessionMessagesFromLineage,Sr as getSymbolContext,df as getTool,gf as getToolDefinition,jf as getToolRegistrations,$r as getToolResultPolicy,ue as hasPendingSwap,_f as inferTaskType,kr as inspectEditFailure,Nr as inspectRepoIntelligenceRuntime,F as isCustomProviderName,Sm as isDeniedRecently,S as isKnownProvider,Im as isParallelDispatchDirective,l as isProviderConfigured,w as isProviderName,O as isRuntimeModelProviderName,vf as isToolFileMutation,wf as isToolMutation,uf as isToolPlanModeAllowed,rf as listAll,W as listAllModelCapabilities,Ze as listArtifacts,A as listBuiltinModelCapabilities,qf as listBuiltinToolDefinitions,$e as listConstructed,L as listCustomProviderModelCapabilities,Af as listToolDefinitions,zf as listTools,ge as loadAgentsFiles,ef as loadAgentsFromMarkdown,fp as loadAutoRules,Ee as loadHandler,x as loadReasoningOverride,Am as markFanoutBranchCancelled,zm as markFanoutBranchCompleted,$o as mergeArtifactLedger,Ff as orderPromptSections,ep as parseAutoRules,Zm as parseClassifierOutput,jr as parseEditToolError,Ie as parseLlmReviewVerdict,Ao as parseMcpCapabilityId,kp as parseModelSpec,dr as persistToolOutput,Wr as prewarmRepoIntelligenceCaches,_e as readArtifact,Le as readAuditEntries,Ne as readBudget,Qe as readDisableState,wp as readSpeculativeWindowFromEnv,op as readTrustState,m as reasoningCapabilityToOverride,Zf as reasoningModeToDepth,p as reasoningOverrideToCapability,Tf as reconstructMessagesWithToolGuard,bp as recordAutoModeAllow,ap as recordAutoModeBlock,ip as recordBreakerError,Rm as recordDenial,lm as registerCodingInvariants,Em as registerConfiguredMcpCapabilityProvider,D as registerCustomProviders,M as registerModelProvider,Fm as registerOfficialSandboxExtension,ko as registerPresetDispatcher,cf as registerTool,Xe as rehydrateActiveArtifacts,Oe as remainingSelfModifyBudget,Cr as renderChangedScope,Jr as renderImpactEstimate,Gr as renderModuleContext,Ir as renderProcessContext,Gf as renderPromptSections,zr as renderRepoOverview,pe as renderRetrievalResult,Hr as renderSymbolContext,Pe as resetBudget,lp as resolveClassifierModel,se as resolveConstructedAgent,V as resolveModelCapabilities,R as resolveProvider,U as resolveProviderModelDescriptors,Yf as resolveReasoningMode,Mr as resolveRepoIntelligenceMode,Lr as resolveRepoIntelligenceRuntimeConfig,Qf as resolveResilienceConfig,Qo as resolveSessionLineageTarget,im as resolveToolCapability,Ye as revoke,Vo as rewindSessionLineage,mf as rollbackSelfModify,Fe as runAstRules,bm as runKodaX,Je as runLlmReview,Dm as runManagedTask,Gm as runOrchestration,a as saveReasoningOverride,Bo as searchMcpCatalog,xf as setActiveExtensionRuntime,no as setAgentConfigHome,Ro as setSessionLineageActiveEntry,yp as speculativeRace,Ue as stage,dm as startKodaX,mp as stripAssistantText,re as stripHtmlToText,Ve as testArtifact,vr as toolAskUserQuestion,nr as toolBash,Fr as toolChangedDiff,Er as toolChangedScope,be as toolCodeSearch,ir as toolEdit,qr as toolGlob,sr as toolGrep,_r as toolImpactEstimate,lr as toolInsertAfterAnchor,Xr as toolModuleContext,jm as toolPermission,Zr as toolProcessContext,gr as toolRead,Dr as toolRepoOverview,ce as toolSemanticLookup,Yr as toolSymbolContext,ur as toolUndo,ae as toolWebFetch,xe as toolWebSearch,hr as toolWrite,ar as truncateHead,cr as truncateLine,br as truncateTail,rp as trustProjectRules,vo as validateAndFixToolHistory,B as validateCustomProviderConfig,Km as validateSubtaskIndependence,Ge as validateToolSchemaForProvider,Or as warmRepoIntelligenceRuntime,ye as webhook,ne as workerAgent};
|
package/dist/sdk-llm.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
export { K as KODAX_DEFAULT_PROVIDER, a as KODAX_DEFAULT_THINKING_BUDGETS, b as KODAX_PROVIDERS, c as KODAX_PROVIDER_SNAPSHOTS, d as KODAX_REASONING_MODE_SEQUENCE, e as KODAX_REASONING_SAFETY_RESERVE, f as KodaXAnthropicCompatProvider, g as KodaXError, h as
|
|
4
|
-
import { K as KodaXBaseProvider
|
|
5
|
-
export {
|
|
1
|
+
import { q as KodaXProviderCapabilityProfile, m as KodaXMessage, F as KodaXReasoningRequest, W as KodaXTokenUsage, g as KodaXContentBlock, f as KodaXCacheBoundary } from './types-chunks/types.d-B1uGoVTE.js';
|
|
2
|
+
export { K as KodaXAmaControllerDecision, a as KodaXAmaFanoutClass, b as KodaXAmaFanoutPolicy, c as KodaXAmaProfile, d as KodaXAmaTactic, e as KodaXAssuranceIntent, h as KodaXCustomProviderConfig, i as KodaXExecutionMode, j as KodaXExecutionPattern, k as KodaXHarnessProfile, l as KodaXImageBlock, n as KodaXModelDescriptor, o as KodaXMutationSurface, p as KodaXProtocolFamily, r as KodaXProviderConfig, s as KodaXProviderContextFidelity, t as KodaXProviderConversationSemantics, u as KodaXProviderEvidenceSupport, v as KodaXProviderLongRunningSupport, w as KodaXProviderMcpSupport, x as KodaXProviderMultimodalSupport, y as KodaXProviderSessionSupport, z as KodaXProviderStreamOptions, A as KodaXProviderToolCallingFidelity, B as KodaXProviderTransport, C as KodaXReasoningCapability, D as KodaXReasoningMode, E as KodaXReasoningOverride, G as KodaXRedactedThinkingBlock, H as KodaXReviewScale, I as KodaXRiskLevel, J as KodaXStreamResult, L as KodaXTaskActionability, M as KodaXTaskBudgetOverrides, N as KodaXTaskComplexity, O as KodaXTaskFamily, P as KodaXTaskRoutingDecision, Q as KodaXTaskType, R as KodaXTaskWorkIntent, S as KodaXTextBlock, T as KodaXThinkingBlock, U as KodaXThinkingBudgetMap, V as KodaXThinkingDepth, X as KodaXToolDefinition, Y as KodaXToolResultBlock, Z as KodaXToolResultContentItem, _ as KodaXToolResultImageItem, $ as KodaXToolResultTextItem, a0 as KodaXToolUseBlock } from './types-chunks/types.d-B1uGoVTE.js';
|
|
3
|
+
export { K as KODAX_DEFAULT_PROVIDER, a as KODAX_DEFAULT_THINKING_BUDGETS, b as KODAX_PROVIDERS, c as KODAX_PROVIDER_SNAPSHOTS, d as KODAX_REASONING_MODE_SEQUENCE, e as KODAX_REASONING_SAFETY_RESERVE, f as KodaXAnthropicCompatProvider, g as KodaXError, h as KodaXModelCapabilities, i as KodaXNetworkError, j as KodaXOpenAICompatProvider, k as KodaXProviderError, l as KodaXRateLimitError, m as KodaXToolCallIdError, P as ProviderName, n as buildReasoningOverrideKey, o as clampThinkingBudget, p as clearReasoningOverride, q as clearRuntimeModelProviders, r as createCustomProvider, s as getAvailableProviderNames, t as getCustomModelCapabilities, u as getCustomProvider, v as getCustomProviderList, w as getCustomProviderModelDescriptors, x as getCustomProviderModels, y as getCustomProviderNames, z as getDefaultThinkingDepthForMode, A as getModelCapabilities, B as getProvider, C as getProviderConfiguredCapabilityProfile, D as getProviderConfiguredReasoningCapability, E as getProviderList, F as getProviderModel, G as getProviderModelDescriptors, H as getProviderModels, I as getReasoningCapability, J as getRuntimeModelProvider, L as getRuntimeModelProviderNames, M as isCustomProviderName, N as isKnownProvider, O as isProviderConfigured, Q as isProviderName, R as isReasoningEnabled, S as isRuntimeModelProviderName, T as listAllModelCapabilities, U as listBuiltinModelCapabilities, V as listCustomProviderModelCapabilities, W as loadReasoningOverride, X as mapDepthToOpenAIReasoningEffort, Y as normalizeReasoningRequest, Z as reasoningCapabilityToOverride, _ as reasoningOverrideToCapability, $ as registerCustomProviders, a0 as registerModelProvider, a1 as resolveModelCapabilities, a2 as resolveProvider, a3 as resolveProviderModelDescriptors, a4 as resolveThinkingBudget, a5 as saveReasoningOverride, a6 as validateCustomProviderConfig } from './types-chunks/resolver.d-CA68_NeH.js';
|
|
4
|
+
import { K as KodaXBaseProvider } from './types-chunks/base.d-FUJahC0i.js';
|
|
5
|
+
export { a as KodaXOnRetryAfterCallback, b as KodaXRetryAfterEvent, P as ParseRetryAfterOptions, R as RetryAfterResult, c as RetryAfterSource, e as extractHeadersFromError, p as parseRetryAfter } from './types-chunks/base.d-FUJahC0i.js';
|
|
6
|
+
import { a as CostTracker } from './types-chunks/cost-tracker.d-wRtyEW9d.js';
|
|
7
|
+
export { C as CostRate, D as DEFAULT_COST_RATES, P as ProviderCostSummary, R as RetryRecord, S as SessionCostSummary, T as TokenUsageRecord, c as calculateCost, b as createCostTracker, f as formatCost, d as formatCostReport, g as getCostRate, e as getSummary, r as recordRetry, h as recordUsage } from './types-chunks/cost-tracker.d-wRtyEW9d.js';
|
|
8
|
+
export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult } from './types-chunks/capability.d-3C62G8Eq.js';
|
|
6
9
|
import '@anthropic-ai/sdk';
|
|
7
10
|
import 'openai';
|
|
8
11
|
|
package/dist/sdk-llm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,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,x as w,y,z}from"./chunks/chunk-
|
|
2
|
+
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,H,I,J,K,L,M,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-K75O2CAE.js";import"./chunks/chunk-V4WSBIXB.js";export{wo as DEFAULT_COST_RATES,a as KODAX_API_MIN_INTERVAL,t as KODAX_CAPPED_MAX_OUTPUT_TOKENS,Q as KODAX_DEFAULT_PROVIDER,c as KODAX_DEFAULT_THINKING_BUDGETS,x as KODAX_ESCALATED_MAX_OUTPUT_TOKENS,p as KODAX_MAX_TOKENS,P as KODAX_PROVIDERS,O as KODAX_PROVIDER_SNAPSHOTS,b as KODAX_REASONING_MODE_SEQUENCE,d as KODAX_REASONING_SAFETY_RESERVE,I as KodaXAnthropicCompatProvider,C as KodaXBaseProvider,o as KodaXError,f as KodaXNetworkError,J as KodaXOpenAICompatProvider,r as KodaXProviderError,e as KodaXRateLimitError,m as KodaXToolCallIdError,u as buildReasoningOverrideKey,zo as calculateCost,l as clampThinkingBudget,y as clearReasoningOverride,ko as clearRuntimeModelProviders,Ao as createCostTracker,ro as createCustomProvider,A as extractHeadersFromError,Eo as formatCost,Fo as formatCostReport,qo as getAvailableProviderNames,K as getCodexCliDefaultModel,M as getCodexCliKnownModels,yo as getCostRate,bo as getCustomModelCapabilities,fo as getCustomProvider,to as getCustomProviderList,ao as getCustomProviderModelDescriptors,xo as getCustomProviderModels,po as getCustomProviderNames,j as getDefaultThinkingDepthForMode,L as getGeminiCliDefaultModel,N as getGeminiCliKnownModels,_ as getModelCapabilities,R as getProvider,V as getProviderConfiguredCapabilityProfile,U as getProviderConfiguredReasoningCapability,W as getProviderList,T as getProviderModel,Z as getProviderModelDescriptors,X as getProviderModels,g as getReasoningCapability,ho as getRuntimeModelProvider,jo as getRuntimeModelProviderNames,Do as getSummary,E as insertCacheBoundary,F as isCacheBoundary,mo as isCustomProviderName,no as isKnownProvider,S as isProviderConfigured,Y as isProviderName,h as isReasoningEnabled,io as isRuntimeModelProviderName,vo as listAllModelCapabilities,$ as listBuiltinModelCapabilities,co as listCustomProviderModelCapabilities,v as loadReasoningOverride,G as lowerCacheBoundaries,n as mapDepthToOpenAIReasoningEffort,B as normalizeCapabilityProfile,i as normalizeReasoningRequest,z as parseRetryAfter,D as parseToolInputWithSalvage,q as reasoningCapabilityToOverride,s as reasoningOverrideToCapability,Bo as recordRetry,Co as recordUsage,eo as registerCustomProviders,go as registerModelProvider,uo as resolveModelCapabilities,lo as resolveProvider,so as resolveProviderModelDescriptors,k as resolveThinkingBudget,w as saveReasoningOverride,Go as sideQuery,H as stripCacheBoundaries,oo as validateCustomProviderConfig};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { b as McpServersConfig } from './types-chunks/config.d-BfJUXxC0.js';
|
|
2
|
+
export { M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './types-chunks/config.d-BfJUXxC0.js';
|
|
3
|
+
export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilityProvider, c as McpCapabilityRisk, d as McpCatalogItem, e as McpManager, f as McpProviderOptions, g as McpServerCatalog, h as McpServerCatalogSnapshot, i as McpServerLogs, j as McpServerRuntime, k as McpServerRuntimeDiagnostics, l as McpServerStatus, m as McpServerToolList, n as McpTransport, o as McpTransportEvents, p as createMcpCapabilityId, q as createMcpManager, r as createMcpTransport, s as defaultMcpCacheDir, t as getMcpCachePaths, u as parseMcpCapabilityId, v as searchMcpCatalog } from './types-chunks/manager.d-87belpiS.js';
|
|
4
|
+
import './types-chunks/capability.d-3C62G8Eq.js';
|
|
5
|
+
|
|
6
|
+
interface McpTestServerFixture {
|
|
7
|
+
cacheDir: string;
|
|
8
|
+
servers: McpServersConfig;
|
|
9
|
+
promptId: string;
|
|
10
|
+
resourceId: string;
|
|
11
|
+
scriptPath: string;
|
|
12
|
+
serverId: string;
|
|
13
|
+
toolId: string;
|
|
14
|
+
}
|
|
15
|
+
declare function createMcpTestServerFixture(tempDir: string): Promise<McpTestServerFixture>;
|
|
16
|
+
|
|
17
|
+
export { McpServersConfig, createMcpTestServerFixture };
|
package/dist/sdk-mcp.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
+
import{kb as e,lb as r,mb as p,nb as a,ob as t,pb as c,qb as M,rb as i,sb as o,tb as n,ub as s}from"./chunks/chunk-VHKAJDQD.js";import"./chunks/chunk-V4WSBIXB.js";export{i as McpCapabilityProvider,o as McpManager,M as McpServerRuntime,r as createMcpCapabilityId,n as createMcpManager,s as createMcpTestServerFixture,c as createMcpTransport,e as defaultMcpCacheDir,t as getMcpCachePaths,p as parseMcpCapabilityId,a as searchMcpCatalog};
|
package/dist/sdk-repl.d.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
|
-
import { k as PermissionMode } from './types-chunks/
|
|
3
|
-
export { B as BUILTIN_COMMANDS, C as Command, a as CommandCallbacks, b as ConfirmResult, c as CurrentConfig,
|
|
4
|
-
import {
|
|
5
|
-
import { K as KodaXAgentMode,
|
|
2
|
+
import { k as PermissionMode } from './types-chunks/utils.d-DkLZD_wa.js';
|
|
3
|
+
export { B as BUILTIN_COMMANDS, C as Command, a as CommandCallbacks, b as ConfirmResult, c as CurrentConfig, I as InkREPLOptions, d as InteractiveContext, e as InteractiveMode, K as KODAX_CONFIG_FILE, f as KODAX_DIR, g as KODAX_SESSIONS_DIR, h as KODAX_VERSION, P as PERMISSION_MODES, i as PREVIEW_MAX_LENGTH, j as PermissionContext, R as RepLOptions, l as computeConfirmTools, m as createInteractiveContext, n as executeCommand, o as getGitRoot, p as getProviderList, q as getProviderModel, r as getVersion, s as hydrateProcessEnvFromShell, t as isPermissionMode, u as isProviderConfigured, v as loadConfig, w as normalizePermissionMode, x as parseCommand, y as permissionModeDisplayName, z as prepareRuntimeConfig, A as processSpecialSyntax, D as rateLimitedCall, E as registerConfiguredCustomProviders, F as runInkInteractiveMode, G as runInteractiveMode, H as saveConfig, J as touchContext } from './types-chunks/utils.d-DkLZD_wa.js';
|
|
4
|
+
import { D as KodaXReasoningMode, m as KodaXMessage, h as KodaXCustomProviderConfig } from './types-chunks/types.d-B1uGoVTE.js';
|
|
5
|
+
import { K as KodaXAgentMode, y as KodaXEvents, aw as ProviderRecoveryEvent, S as KodaXMcpServerConfig, T as KodaXMcpServersConfig, l as BashPrefixExtractor, d as AutoModeAskUser, A as AgentsFile, aH as SignalCollector, j as AutoModeToolGuardrail, aG as RulesLoadResult, a4 as KodaXResult } from './types-chunks/bash-prefix-extractor.d-DMrGImMl.js';
|
|
6
6
|
import { b as QueuedMessage } from './types-chunks/types.d-C5mHR87z.js';
|
|
7
|
-
|
|
7
|
+
export { F as FileSessionStorage, M as MemorySessionStorage, S as SessionData, a as SessionStorage, c as createMemorySessionStorage } from './types-chunks/storage.d-DPAEX7zS.js';
|
|
8
|
+
export { DeleteSessionResult, ListSessionsOptions, RunningSessionInfo, SessionManager, SessionSummary, WatchSessionsCallback, createSessionManager, deleteSession, forkSession, listRunningSessions, listSessions, loadSession, rewindSession, setActiveEntry, watchSessions } from './sdk-session.js';
|
|
9
|
+
import './types-chunks/types.d-mM8vqvhT.js';
|
|
8
10
|
import 'readline';
|
|
9
11
|
import 'child_process';
|
|
10
|
-
import './types-chunks/
|
|
12
|
+
import './types-chunks/types.d-CKJtjo-6.js';
|
|
13
|
+
import './types-chunks/config.d-BfJUXxC0.js';
|
|
14
|
+
import './types-chunks/capability.d-3C62G8Eq.js';
|
|
15
|
+
import './types-chunks/base.d-FUJahC0i.js';
|
|
16
|
+
import './types-chunks/cost-tracker.d-wRtyEW9d.js';
|
|
11
17
|
|
|
12
18
|
/**
|
|
13
19
|
* TextBuffer - Text buffer management class - 文本缓冲区管理类
|
|
@@ -444,7 +450,7 @@ interface StatusBarProps {
|
|
|
444
450
|
};
|
|
445
451
|
/** Whether current busy/thinking status should be visible in the bar */
|
|
446
452
|
showBusyStatus?: boolean;
|
|
447
|
-
managedPhase?: "starting" | "routing" | "preflight" | "round" | "worker" | "upgrade" | "completed";
|
|
453
|
+
managedPhase?: "starting" | "routing" | "preflight" | "round" | "worker" | "upgrade" | "verifying" | "completed";
|
|
448
454
|
managedHarnessProfile?: string;
|
|
449
455
|
managedWorkerTitle?: string;
|
|
450
456
|
managedRound?: number;
|
|
@@ -1243,7 +1249,7 @@ interface MessageListProps {
|
|
|
1243
1249
|
/** Managed-task agent mode shown in live transcript state */
|
|
1244
1250
|
agentMode?: "sa" | "ama";
|
|
1245
1251
|
/** Managed-task phase shown in live transcript state */
|
|
1246
|
-
managedPhase?: "starting" | "routing" | "preflight" | "round" | "worker" | "upgrade" | "completed";
|
|
1252
|
+
managedPhase?: "starting" | "routing" | "preflight" | "round" | "worker" | "upgrade" | "verifying" | "completed";
|
|
1247
1253
|
/** Managed-task harness profile shown in live transcript state */
|
|
1248
1254
|
managedHarnessProfile?: string;
|
|
1249
1255
|
/** Managed-task active worker title shown in live transcript state */
|
|
@@ -2559,6 +2565,180 @@ declare function getTheme(name?: string): Theme;
|
|
|
2559
2565
|
*/
|
|
2560
2566
|
declare function getThemeNames(): string[];
|
|
2561
2567
|
|
|
2568
|
+
/**
|
|
2569
|
+
* Custom provider CRUD — v0.7.42 (closes gap 7 reported by KodaX Space).
|
|
2570
|
+
*
|
|
2571
|
+
* Before v0.7.42 the only way for an SDK embedder to add / remove a
|
|
2572
|
+
* custom provider was to:
|
|
2573
|
+
* 1. Read `~/.kodax/config.json` directly.
|
|
2574
|
+
* 2. Hand-validate the entry against `KodaXCustomProviderConfig`
|
|
2575
|
+
* (Space wrote a parallel zod schema to do this).
|
|
2576
|
+
* 3. Write the file back, hoping the format stayed in sync with
|
|
2577
|
+
* whatever shape the KodaX SDK currently expected.
|
|
2578
|
+
* 4. Call `registerConfiguredCustomProviders` separately to
|
|
2579
|
+
* re-hydrate the in-memory registry.
|
|
2580
|
+
*
|
|
2581
|
+
* Space reported: "你们改格式我们就坏" (if you change the format we
|
|
2582
|
+
* break). The 4-step ritual was fragile, the validation was duplicated,
|
|
2583
|
+
* and the read / write / re-register split made it easy for an embedder
|
|
2584
|
+
* to forget the last step and end up with a stale in-memory registry.
|
|
2585
|
+
*
|
|
2586
|
+
* This module exposes a tight CRUD surface — list / get / upsert /
|
|
2587
|
+
* remove — that owns the file-format end-to-end. The schema is enforced
|
|
2588
|
+
* via `validateCustomProviderConfig` from `@kodax-ai/llm` (the canonical
|
|
2589
|
+
* validator the SDK itself uses), so embedders cannot drift away from
|
|
2590
|
+
* the SDK's expected shape. Each mutation persists to `config.json` and
|
|
2591
|
+
* eagerly re-registers ALL custom providers in memory so subsequent
|
|
2592
|
+
* `resolveProvider(name)` calls see the new state without a process
|
|
2593
|
+
* restart.
|
|
2594
|
+
*
|
|
2595
|
+
* Path resolution: this module resolves the config file path on EVERY
|
|
2596
|
+
* call via `getAgentConfigPath('config.json')` so that programmatic
|
|
2597
|
+
* `setAgentConfigHome()` overrides (e.g. for tests, substrate
|
|
2598
|
+
* consumers, multi-tenant shared machines) take effect immediately —
|
|
2599
|
+
* unlike the load-time-frozen `KODAX_CONFIG_FILE` constant in
|
|
2600
|
+
* `common/utils.ts` that captures the path once at import time.
|
|
2601
|
+
*
|
|
2602
|
+
* Concurrency / multi-process: this is a single-machine, last-write-
|
|
2603
|
+
* wins implementation. If two SDK consumers (KodaX CLI + KodaX Space)
|
|
2604
|
+
* both mutate the same config simultaneously, the later writer's view
|
|
2605
|
+
* survives. KodaX is a single-user CLI; the multi-writer surface is
|
|
2606
|
+
* not a real production concern for v0.7.42. A future FEATURE could
|
|
2607
|
+
* layer file locking on top of this surface without changing the
|
|
2608
|
+
* caller-facing API.
|
|
2609
|
+
*/
|
|
2610
|
+
|
|
2611
|
+
/**
|
|
2612
|
+
* Return a snapshot of every custom provider currently persisted in
|
|
2613
|
+
* `~/.kodax/config.json`. The returned array is a defensive deep copy —
|
|
2614
|
+
* mutating it does NOT change the on-disk config (use
|
|
2615
|
+
* {@link upsertCustomProvider} / {@link removeCustomProvider} for
|
|
2616
|
+
* mutation). Order matches the file order (which is the insertion order
|
|
2617
|
+
* preserved by JSON parse).
|
|
2618
|
+
*/
|
|
2619
|
+
declare function listCustomProviders(): KodaXCustomProviderConfig[];
|
|
2620
|
+
/**
|
|
2621
|
+
* Look up a single custom provider by `name`. Returns `undefined` if no
|
|
2622
|
+
* such provider is configured. Returned value is a defensive deep copy.
|
|
2623
|
+
*/
|
|
2624
|
+
declare function getCustomProviderConfig(name: string): KodaXCustomProviderConfig | undefined;
|
|
2625
|
+
/**
|
|
2626
|
+
* Add a new custom provider OR replace an existing one with the same
|
|
2627
|
+
* name. The input is validated via `validateCustomProviderConfig`; on
|
|
2628
|
+
* validation failure the call throws and the config is NOT touched.
|
|
2629
|
+
*
|
|
2630
|
+
* After a successful write, the in-memory custom-provider registry is
|
|
2631
|
+
* fully re-registered (with the new entry in place) so subsequent
|
|
2632
|
+
* `resolveProvider(name)` calls see the change without a restart.
|
|
2633
|
+
*
|
|
2634
|
+
* Returns the deep-cloned stored shape (so callers can observe any
|
|
2635
|
+
* normalization the validator performed without re-reading the file).
|
|
2636
|
+
*/
|
|
2637
|
+
declare function upsertCustomProvider(config: KodaXCustomProviderConfig): KodaXCustomProviderConfig;
|
|
2638
|
+
/**
|
|
2639
|
+
* Remove the custom provider identified by `name`. Returns `true` when
|
|
2640
|
+
* an entry was removed, `false` when no provider with that name existed
|
|
2641
|
+
* (the file is then NOT rewritten — no-op for unknown names so caller
|
|
2642
|
+
* code can be idempotent).
|
|
2643
|
+
*
|
|
2644
|
+
* The in-memory registry is re-registered after a successful removal so
|
|
2645
|
+
* `resolveProvider(name)` immediately throws for the removed provider.
|
|
2646
|
+
*/
|
|
2647
|
+
declare function removeCustomProvider(name: string): boolean;
|
|
2648
|
+
|
|
2649
|
+
/**
|
|
2650
|
+
* MCP server CRUD — v0.7.42 (closes the "MCP popout" request from
|
|
2651
|
+
* KodaX Space).
|
|
2652
|
+
*
|
|
2653
|
+
* Before v0.7.42 the only way for an SDK embedder to register a new
|
|
2654
|
+
* MCP server was to:
|
|
2655
|
+
* 1. Read `~/.kodax/config.json` directly.
|
|
2656
|
+
* 2. Hand-build a `KodaXMcpServersConfig` entry (no exported
|
|
2657
|
+
* validator — Space wrote a parallel zod schema).
|
|
2658
|
+
* 3. Write the file back, hoping `mcpServers` shape stayed in sync
|
|
2659
|
+
* with whatever the KodaX SDK currently expects.
|
|
2660
|
+
* 4. Restart the runtime — the existing `McpCapabilityProvider`
|
|
2661
|
+
* caches its server list at construction time so config changes
|
|
2662
|
+
* do NOT take effect mid-process.
|
|
2663
|
+
*
|
|
2664
|
+
* The KodaX Space "MCP popout" panel wants step 4 OUT of the loop:
|
|
2665
|
+
* users add/remove an MCP server, click "save", and have it live
|
|
2666
|
+
* immediately in the next agent turn. That requires (a) a typed CRUD
|
|
2667
|
+
* surface that owns the file format, and (b) an explicit re-hydrate
|
|
2668
|
+
* hook so the next agent run picks up the changes.
|
|
2669
|
+
*
|
|
2670
|
+
* This module covers (a). The re-hydrate hook is implicit: every new
|
|
2671
|
+
* substrate frame reads `loadConfig().mcpServers` at session start
|
|
2672
|
+
* (see `repl/.../bootstrap` flow) — so the next `runKodaX` /
|
|
2673
|
+
* `startKodaX` call sees the new list. In-flight runs continue with
|
|
2674
|
+
* the snapshot the substrate took at start; that matches the
|
|
2675
|
+
* pre-v0.7.42 invariant and avoids surprising tool-list mutations
|
|
2676
|
+
* mid-turn.
|
|
2677
|
+
*
|
|
2678
|
+
* Schema: this module relies on TypeScript's structural typing against
|
|
2679
|
+
* `KodaXMcpServerConfig` (exported from `@kodax-ai/agent` via the coding
|
|
2680
|
+
* barrel). Unlike custom providers — which have a runtime validator —
|
|
2681
|
+
* MCP entries have no canonical zod schema in the SDK today, so the
|
|
2682
|
+
* CRUD does shape-level checks only (required `name`, recognized
|
|
2683
|
+
* transport `type`, transport-shape coherence: stdio→command, sse|
|
|
2684
|
+
* streamable-http→url). Embedders that need stricter validation can
|
|
2685
|
+
* layer it on top.
|
|
2686
|
+
*
|
|
2687
|
+
* Path resolution: like `custom-providers.ts`, this module resolves
|
|
2688
|
+
* the config file path on EVERY call via `getAgentConfigPath`, so
|
|
2689
|
+
* `setAgentConfigHome()` overrides (tests, multi-tenant substrate
|
|
2690
|
+
* consumers) take effect immediately.
|
|
2691
|
+
*/
|
|
2692
|
+
|
|
2693
|
+
/**
|
|
2694
|
+
* Return a snapshot of every MCP server currently persisted in
|
|
2695
|
+
* `~/.kodax/config.json` under `mcpServers`. Returned record is a
|
|
2696
|
+
* defensive deep copy — mutating it does NOT change the on-disk
|
|
2697
|
+
* config (use {@link upsertMcpServer} / {@link removeMcpServer} for
|
|
2698
|
+
* mutation). Order is undefined (object key order semantics).
|
|
2699
|
+
*/
|
|
2700
|
+
declare function listMcpServers(): KodaXMcpServersConfig;
|
|
2701
|
+
/**
|
|
2702
|
+
* Look up a single MCP server config by `name`. Returns `undefined`
|
|
2703
|
+
* if no such server is configured. Returned value is a defensive
|
|
2704
|
+
* deep copy.
|
|
2705
|
+
*/
|
|
2706
|
+
declare function getMcpServerConfig(name: string): KodaXMcpServerConfig | undefined;
|
|
2707
|
+
/**
|
|
2708
|
+
* Add a new MCP server OR replace an existing one with the same
|
|
2709
|
+
* name. Shape is validated via {@link validateMcpServerConfig}; on
|
|
2710
|
+
* validation failure the call throws and the config is NOT touched.
|
|
2711
|
+
*
|
|
2712
|
+
* Returns the deep-cloned stored shape (so callers can observe the
|
|
2713
|
+
* normalized value without re-reading the file).
|
|
2714
|
+
*/
|
|
2715
|
+
declare function upsertMcpServer(name: string, config: KodaXMcpServerConfig): KodaXMcpServerConfig;
|
|
2716
|
+
/**
|
|
2717
|
+
* Remove the MCP server identified by `name`. Returns `true` when an
|
|
2718
|
+
* entry was removed, `false` when no server with that name existed
|
|
2719
|
+
* (the file is NOT rewritten in that case — no-op for unknown names
|
|
2720
|
+
* so caller code can be idempotent).
|
|
2721
|
+
*/
|
|
2722
|
+
declare function removeMcpServer(name: string): boolean;
|
|
2723
|
+
/**
|
|
2724
|
+
* Shape-level validation. Throws on malformed input — used by
|
|
2725
|
+
* {@link upsertMcpServer} before the disk write. Exposed so
|
|
2726
|
+
* embedders can pre-validate user input from a popout form before
|
|
2727
|
+
* showing a "save" button.
|
|
2728
|
+
*
|
|
2729
|
+
* Checks:
|
|
2730
|
+
* - `config` is a plain object
|
|
2731
|
+
* - transport `type` (when set) is one of stdio | sse | streamable-http
|
|
2732
|
+
* - stdio transport requires `command`
|
|
2733
|
+
* - sse / streamable-http transport requires `url`
|
|
2734
|
+
* - `connect` (when set) is one of lazy | prewarm | disabled
|
|
2735
|
+
*
|
|
2736
|
+
* Does NOT check that `command` resolves on PATH or that `url` is
|
|
2737
|
+
* reachable — both are runtime concerns surfaced by McpServerRuntime
|
|
2738
|
+
* at connection time.
|
|
2739
|
+
*/
|
|
2740
|
+
declare function validateMcpServerConfig(name: string, config: KodaXMcpServerConfig): void;
|
|
2741
|
+
|
|
2562
2742
|
/**
|
|
2563
2743
|
* Permission Utilities
|
|
2564
2744
|
*
|
|
@@ -2696,7 +2876,160 @@ declare function getBashOutsideProjectWriteRisk(command: string, projectRoot: st
|
|
|
2696
2876
|
dangerous: boolean;
|
|
2697
2877
|
reason?: string;
|
|
2698
2878
|
};
|
|
2879
|
+
/**
|
|
2880
|
+
* v0.7.42 — Metadata-driven plan-mode gate.
|
|
2881
|
+
*
|
|
2882
|
+
* Decision order (first match wins):
|
|
2883
|
+
*
|
|
2884
|
+
* 1. Tool has `planModeAllowed: true` in its `LocalToolDefinition` →
|
|
2885
|
+
* permitted (`null`). Covers planning-loop tools whose effect IS the
|
|
2886
|
+
* planning workflow: `exit_plan_mode`, `task_stop`, `todo_*`,
|
|
2887
|
+
* `ask_user_question`, plus read-class network queries
|
|
2888
|
+
* (`web_search`, `mcp_search` / `mcp_describe` /
|
|
2889
|
+
* `mcp_read_resource` / `mcp_get_prompt`).
|
|
2890
|
+
* 2. Tool has `sideEffect === 'readonly'` AND not explicitly disallowed →
|
|
2891
|
+
* permitted (`null`). Read tools never need plan-mode gating.
|
|
2892
|
+
* 3. Path-aware FS-write escape: tools in `FILE_MODIFICATION_TOOLS`
|
|
2893
|
+
* (computed from `sideEffect === 'mutates-fs' AND requires path`)
|
|
2894
|
+
* can write IF the target path is `.agent/plan_mode_doc.md` or the
|
|
2895
|
+
* system temp dir.
|
|
2896
|
+
* 4. `bash` special case: command-content-aware check via
|
|
2897
|
+
* `isBashWriteCommand` + `collectBashWriteTargets` — read-only bash
|
|
2898
|
+
* (`git status`, `ls`, …) is permitted; write bash with all targets
|
|
2899
|
+
* in the plan-doc / temp escape is permitted; everything else
|
|
2900
|
+
* blocks.
|
|
2901
|
+
* 5. Everything else with a side effect → blocked with a generic
|
|
2902
|
+
* reason naming the side-effect class.
|
|
2903
|
+
*
|
|
2904
|
+
* Pre-v0.7.42 this function only gated `write`, `edit`, `undo`, `bash` —
|
|
2905
|
+
* a hardcoded 4-tool list that silently let `multi_edit`,
|
|
2906
|
+
* `insert_after_anchor`, `worktree_*`, `scaffold_*`, `stage_*`,
|
|
2907
|
+
* `dispatch_child_task`, `send_message`, `web_fetch`, `mcp_call` etc.
|
|
2908
|
+
* fall through to `return null` (permitted). The metadata-driven gate
|
|
2909
|
+
* closes that gap structurally — new mutating tools auto-block until
|
|
2910
|
+
* explicitly opted in via `planModeAllowed: true`.
|
|
2911
|
+
*/
|
|
2699
2912
|
declare function getPlanModeBlockReason(toolName: string, input: Record<string, unknown>, projectRoot?: string): string | null;
|
|
2700
2913
|
|
|
2701
|
-
|
|
2702
|
-
|
|
2914
|
+
/**
|
|
2915
|
+
* Auto-Mode Guardrail Bootstrap — FEATURE_092 phase 2b.7b (v0.7.33).
|
|
2916
|
+
*
|
|
2917
|
+
* Builds an `AutoModeToolGuardrail` wired to the live REPL's provider
|
|
2918
|
+
* registry, tool registry, AGENTS.md content, and confirm-dialog askUser
|
|
2919
|
+
* surface. The factory returns a lazy accessor: the guardrail is constructed
|
|
2920
|
+
* on first call so REPLs that never enter `auto` mode pay zero cost.
|
|
2921
|
+
*
|
|
2922
|
+
* What lives in this file (vs. inline in repl.ts):
|
|
2923
|
+
* - The wiring is FEATURE_092-specific and can be unit-tested independently.
|
|
2924
|
+
* - `repl.ts` is already large; keeping the auto-mode plumbing here makes
|
|
2925
|
+
* it greppable and easier to evolve as later phases (settings, subagent
|
|
2926
|
+
* propagation, slash-command engine toggle) extend the feature surface.
|
|
2927
|
+
*
|
|
2928
|
+
* Caller responsibilities (kept minimal — REPL passes down what it owns):
|
|
2929
|
+
* - `getCurrentPermissionMode` is read by `askUser` so the confirm dialog
|
|
2930
|
+
* copy reflects the user's actual mode (the guardrail itself doesn't
|
|
2931
|
+
* care about permission mode beyond "we're in auto").
|
|
2932
|
+
* - `getCurrentProvider` / `getCurrentModel` are passed as the
|
|
2933
|
+
* `getDefaultProvider` / `getDefaultModel` LIVE getters on the guardrail
|
|
2934
|
+
* config (FEATURE_092 v0.7.34 hotfix-3). They are evaluated on every
|
|
2935
|
+
* classify() call, so mid-session `/model` and `/provider` swaps DO
|
|
2936
|
+
* retarget the classifier without the user re-entering auto mode.
|
|
2937
|
+
* `claudeMd` and `rules` remain captured-at-init by design (CLAUDE.md
|
|
2938
|
+
* and `~/.kodax/auto-rules.jsonc` mid-session edits are rare; restart
|
|
2939
|
+
* applies them).
|
|
2940
|
+
*/
|
|
2941
|
+
|
|
2942
|
+
interface AutoModeBootstrapDeps {
|
|
2943
|
+
/**
|
|
2944
|
+
* Surface-specific user-confirmation callback. Readline REPL wraps
|
|
2945
|
+
* `confirmToolExecution(rl, ...)`; Ink REPL wraps `showConfirmDialog`.
|
|
2946
|
+
* Bootstrap stays surface-agnostic so the same factory can wire both
|
|
2947
|
+
* UIs without depending on readline.
|
|
2948
|
+
*/
|
|
2949
|
+
readonly askUser: AutoModeAskUser;
|
|
2950
|
+
readonly projectRoot: string;
|
|
2951
|
+
readonly getAgentsFiles: () => AgentsFile[];
|
|
2952
|
+
readonly getCurrentProviderName: () => string;
|
|
2953
|
+
readonly getCurrentModel: () => string | undefined;
|
|
2954
|
+
readonly getCurrentPermissionMode: () => PermissionMode;
|
|
2955
|
+
/**
|
|
2956
|
+
* FEATURE_092 phase 2b.7b slice C: resolved settings/env block. The REPL
|
|
2957
|
+
* computes this once via `loadAutoModeSettings()` (in
|
|
2958
|
+
* `packages/repl/src/common/permission-config.ts`) and threads it here so
|
|
2959
|
+
* the bootstrap stays free of file-system I/O and is hermetically testable.
|
|
2960
|
+
*/
|
|
2961
|
+
readonly autoModeSettings: ResolvedAutoModeBootstrapSettings;
|
|
2962
|
+
/**
|
|
2963
|
+
* Optional structured logger. Defaults to writing yellow warnings + dim
|
|
2964
|
+
* info lines to stderr via console (matching REPL conventions).
|
|
2965
|
+
*/
|
|
2966
|
+
readonly log?: (level: 'info' | 'warn', msg: string) => void;
|
|
2967
|
+
/**
|
|
2968
|
+
* Fired whenever the guardrail's classifier engine changes — both on
|
|
2969
|
+
* automatic downgrades (denial threshold / circuit breaker) and on
|
|
2970
|
+
* manual `setEngine` calls. The REPL surfaces this into status-bar
|
|
2971
|
+
* state so the engine indicator stays accurate without requiring a
|
|
2972
|
+
* mode toggle to refresh.
|
|
2973
|
+
*/
|
|
2974
|
+
readonly onEngineChange?: (engine: 'llm' | 'rules') => void;
|
|
2975
|
+
/**
|
|
2976
|
+
* FEATURE_158 (v0.7.39): additional signal collectors merged with the
|
|
2977
|
+
* coding-side defaults (`bashSignalCollector` + `fileSignalCollector`).
|
|
2978
|
+
* The REPL passes `replBashPathSignalCollector` here so bash commands
|
|
2979
|
+
* targeting protected paths (~/.kodax / <projectRoot>/.kodax) or
|
|
2980
|
+
* redirecting outside the project produce signals — the path utilities
|
|
2981
|
+
* live in @kodax/repl, so this is the layer-boundary-preserving
|
|
2982
|
+
* injection point.
|
|
2983
|
+
*/
|
|
2984
|
+
readonly extraCollectors?: readonly SignalCollector[];
|
|
2985
|
+
}
|
|
2986
|
+
/**
|
|
2987
|
+
* Subset of `ResolvedAutoModeSettings` the bootstrap actually needs. Imported
|
|
2988
|
+
* via structural typing so bootstrap doesn't pull a dependency on
|
|
2989
|
+
* `permission-config.ts` (which would create a cycle through the REPL barrel).
|
|
2990
|
+
*/
|
|
2991
|
+
interface ResolvedAutoModeBootstrapSettings {
|
|
2992
|
+
readonly engine: 'llm' | 'rules';
|
|
2993
|
+
readonly classifierModel?: string;
|
|
2994
|
+
readonly classifierModelEnv?: string;
|
|
2995
|
+
readonly timeoutMs?: number;
|
|
2996
|
+
}
|
|
2997
|
+
interface AutoModeBootstrapResult {
|
|
2998
|
+
/**
|
|
2999
|
+
* Lazy accessor — constructs the guardrail on first call. Subsequent
|
|
3000
|
+
* calls return the same instance so engine + tracker state is shared
|
|
3001
|
+
* across turns within a session.
|
|
3002
|
+
*/
|
|
3003
|
+
readonly getGuardrail: () => AutoModeToolGuardrail;
|
|
3004
|
+
/**
|
|
3005
|
+
* The rules-load result from `loadAutoRules`. Surfaced so the REPL can
|
|
3006
|
+
* print sources/skipped/errors in the startup banner (phase 2b.8 will
|
|
3007
|
+
* surface this via `/auto-engine`; v1 just exposes the data).
|
|
3008
|
+
*/
|
|
3009
|
+
readonly rulesLoadResult: RulesLoadResult;
|
|
3010
|
+
}
|
|
3011
|
+
/**
|
|
3012
|
+
* Async because `loadAutoRules` reads disk. Call once at REPL startup
|
|
3013
|
+
* after AGENTS.md has been loaded; the returned `getGuardrail` is sync.
|
|
3014
|
+
*/
|
|
3015
|
+
declare function bootstrapAutoMode(deps: AutoModeBootstrapDeps): Promise<AutoModeBootstrapResult>;
|
|
3016
|
+
|
|
3017
|
+
declare const KODAX_COMMANDS_DIR: string;
|
|
3018
|
+
interface KodaXCommand {
|
|
3019
|
+
name: string;
|
|
3020
|
+
description: string;
|
|
3021
|
+
content: string;
|
|
3022
|
+
type: 'prompt' | 'programmable';
|
|
3023
|
+
execute?: (context: KodaXCommandContext) => Promise<string>;
|
|
3024
|
+
}
|
|
3025
|
+
interface KodaXCommandContext {
|
|
3026
|
+
args?: string;
|
|
3027
|
+
runAgent: (prompt: string) => Promise<KodaXResult>;
|
|
3028
|
+
}
|
|
3029
|
+
declare function getDefaultCommandDir(): string;
|
|
3030
|
+
declare function loadCommands(commandDir?: string): Promise<Map<string, KodaXCommand>>;
|
|
3031
|
+
declare function processCommandCall(commandName: string, args: string | undefined, commands: Map<string, KodaXCommand>, runAgent: (prompt: string) => Promise<KodaXResult>): Promise<string | null>;
|
|
3032
|
+
declare function parseCommandCall(input: string): [string, string?] | null;
|
|
3033
|
+
|
|
3034
|
+
export { App, AutocompleteContextProvider, BackgroundTaskBar, ConsoleCapturer, DEFAULT_UI_STATE, DialogSurface, DotsIndicator, FullscreenTranscriptLayout, HistoryItemRenderer, InputPrompt, KODAX_COMMANDS_DIR, KeyMatchers, KeypressHandlerPriority, KeypressParser, KeypressProvider, LRUCache, LoadingIndicator, MessageActions, MessageList, MessageSelector, NotificationsSurface, PendingInputsIndicator, PermissionMode, ProgressIndicator, PromptComposer, PromptFooter, PromptFooterLeftSide, PromptFooterRightSide, PromptHelpMenu, PromptSuggestionsSurface, QueuedCommandsSurface, SimpleApp, SimpleInputPrompt, SimpleMessageDisplay, SimpleStatusBar, SingleLineTextInput, Spinner, StashNotice, StatusBar, StatusNoticesSurface, StreamingProvider, StreamingState, SuggestionsDisplay, TOOL_STATUS_ICONS, TextBuffer, TextInput, ThinkingIndicator, ToolCallDisplay, ToolCallStatus, ToolGroup, ToolProgressBar, ToolStatusBadge, TranscriptViewport, UIStateProvider, _resetQueuedPromptsCacheForTests, bootstrapAutoMode, calculateVisualCursorFromLayout, calculateVisualLayout, collectBashWriteTargets, createCliEvents, createHistoryItem, createJsonEvents, createKeyMatcher, createKeypressManager, createRecoveryHistoryItem, createRetryHistoryItem, createStreamingManager, createToolCall, darkTheme, detectTerminalCapabilities, detectTerminalHostProfile, detectTerminalRenderHost, emitRecoveryHistoryItem, emitRetryHistoryItem, executeShellCommand, extractTextContent, extractTitle, formatMessagePreview, generateId, generateSavePattern, getBashOutsideProjectWriteRisk, getCharAtCodePoint, getCodePointLength, getCustomProviderConfig, getDefaultCommandDir, getKeyDisplayName, getMcpServerConfig, getPlanModeBlockReason, getTerminalHostCapabilities, getTerminalWidth, getTheme, getThemeNames, getVisualWidth, getVisualWidthCached, hasCursorUpViewportYankRisk, hasMainScreenRenderScrollRisk, isAlwaysConfirmPath, isBashReadCommand, isBashWriteCommand, isClassicReplForced, isFunctionKey, isOwnedRendererPreferred, isPathInsideProject, isPrintable, isRemoteConptyHost, isScreenReader, isShellCommand, isShellCommandSuccess, isTmuxControlMode, isToolCallAllowed, isVsCodeTerminalHostEnv, isWideChar, listCustomProviders, listMcpServers, loadCommands, minimalTheme, parseCommandCall, parseKeypress, processCommandCall, removeCustomProvider, removeMcpServer, resetTmuxControlModeProbeForTesting, resolveConfiguredTuiRendererMode, resolveEffectiveTuiRendererMode, resolveFullscreenPolicy, resolveInteractiveSurfacePreference, splitByCodePoints, supports256Colors, supportsEmoji, supportsTrueColor, supportsUnicode, themes, truncateByVisualWidth, upsertCustomProvider, upsertMcpServer, useAutocomplete, useAutocompleteContext, useInputHistory, useKeypress, useKeypressManager, useQueuedPromptContents, useQueuedPrompts, useStreaming, useStreamingActions, useStreamingState, useTextBuffer, useUI, useUIActions, useUIState, validateMcpServerConfig, visualWidthCache, withCapture, withCaptureSync };
|
|
3035
|
+
export type { AppHandle, AppProps, AppState, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, Completer, Completion$1 as Completion, CreatableHistoryItem, CursorPosition, DialogSelectOption, DialogSurfaceConfirmState, DialogSurfaceProps, DialogSurfaceUIRequestState, DotsIndicatorProps, EffectiveTuiRendererMode, FullscreenPolicy, FullscreenTranscriptLayoutProps, HistoryEntry, HistoryItem, HistoryItemAssistant, HistoryItemBase, HistoryItemError, HistoryItemEvent, HistoryItemHint, HistoryItemInfo, HistoryItemRendererProps, HistoryItemSystem, HistoryItemThinking, HistoryItemToolGroup, HistoryItemType, HistoryItemUser, InputPromptProps, InteractiveSurfacePreference, KeyInfo, KeypressEvent, KeypressHandler, KeypressManager, KeypressProviderProps, KodaXCommand, KodaXCommandContext, LegacyMessageListProps, LoadingIndicatorProps, LoadingIndicatorType, Message, MessageActionsProps, MessageListProps, MessageSelectorProps, NotificationSurfaceItem, NotificationsSurfaceProps, PendingInputsIndicatorProps, ProgressIndicatorProps, PromptComposerProps, PromptEditingMode, PromptFooterLeftSideProps, PromptFooterProps, PromptFooterRightSideProps, PromptFooterSurfaceItem, PromptHelpMenuProps, PromptSubmitPayload, PromptSuggestionsSurfaceProps, QueuedCommandsSurfaceProps, ResolvedAutoModeBootstrapSettings, ShellExecutorConfig, SpinnerProps, StashNoticeProps, StatusBarProps, StatusNoticesSurfaceProps, StreamingActions, StreamingContextValue, StreamingManager, StreamingProviderProps, StreamingStateListener, Suggestion, SuggestionsDisplayProps, TerminalCapabilities, TerminalHostCapabilities, TerminalHostDetectionOptions, TerminalHostProfile, TerminalRenderHost, TextBufferOptions, TextInputProps, Theme, ThemeColors, ThemeSymbols, ThinkingIndicatorProps, ToolCall, ToolCallDisplayProps, ToolGroupProps, ToolProgressBarProps, ToolStatusBadgeProps, TranscriptViewportProps, TuiRendererMode, UIActions, UIState, UIStateProviderProps, UseAutocompleteOptions, UseAutocompleteReturn, UseInputHistoryOptions, UseInputHistoryReturn, UseKeypressOptions, UseTextBufferOptions, UseTextBufferReturn, VisualCursor, VisualLayout$1 as VisualLayout };
|
package/dist/sdk-repl.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as
|
|
2
|
+
import{$ as Lt,$a as Wn,$b as Fo,A as Q,Aa as pn,Ab as lo,B as T,Ba as ln,Bb as uo,C as U,Ca as un,Cb as fo,D as V,Da as fn,Db as go,E as Y,Ea as gn,Eb as Co,F as Z,Fa as Cn,Fb as xo,G as tt,Ga as xn,Gb as yo,H as nt,Ha as yn,Hb as Ko,I as ot,Ia as Kn,Ib as Xo,J as et,Ja as Xn,Jb as ho,K as rt,Ka as hn,Kb as Do,L as at,La as Dn,Lb as Po,M as mt,Ma as Pn,Mb as Mo,N as it,Na as Mn,Nb as wo,O as st,Oa as wn,Ob as No,P as ct,Pa as Nn,Pb as _o,Q as dt,Qa as _n,Qb as bo,R as pt,Ra as bn,Rb as jo,S as lt,Sa as jn,Sb as ko,T as ut,Ta as kn,Tb as Ao,U as ft,Ua as An,Ub as Oo,V as gt,Va as On,Vb as Ro,W as Ct,Wa as Rn,Wb as So,X as xt,Xa as Sn,Xb as vo,Y as yt,Ya as vn,Yb as Io,Z as Kt,Za as In,Zb as Lo,_ as It,_a as Ln,_b as Wo,a as D,aa as Wt,ab as Fn,ac as $o,b as P,ba as Ft,bb as $n,bc as qo,c as M,ca as $t,cb as qn,cc as zo,d as w,da as qt,db as zn,dc as Bo,e as N,ea as zt,eb as Bn,ec as Eo,f as _,fa as Bt,fb as En,fc as Go,g as b,ga as Et,gb as Gn,gc as Ho,h as j,ha as Gt,hb as Hn,hc as Jo,i as k,ia as Ht,ib as Jn,ic as Qo,j as A,ja as Jt,jb as Qn,jc as To,k as O,ka as Qt,kb as Tn,l as R,la as Tt,lb as Un,m as S,ma as Ut,mb as Vn,n as v,na as Vt,nb as Yn,o as I,oa as Yt,ob as Zn,p as L,pa as Zt,pb as to,q as W,qa as tn,qb as no,r as F,ra as nn,rb as oo,s as $,sa as on,sb as eo,t as q,ta as en,tb as ro,u as z,ua as rn,ub as ao,v as B,va as an,vb as mo,w as E,wa as mn,wb as io,x as G,xa as sn,xb as so,y as H,ya as cn,yb as co,z as J,za as dn,zb as po}from"./chunks/chunk-UG4262JI.js";import{D as vt,b as Xt,c as ht,d as Dt,e as Pt,f as Mt,h as wt,i as Nt,j as _t,k as bt,u as jt,v as kt,w as At,x as Ot,y as Rt,z as St}from"./chunks/chunk-YMRZBS4G.js";import"./chunks/chunk-IYSK7LUK.js";import"./chunks/chunk-EVIDQWMF.js";import"./chunks/chunk-7G5PSL6C.js";import"./chunks/chunk-K75O2CAE.js";import"./chunks/chunk-VHKAJDQD.js";import{a}from"./chunks/chunk-V4WSBIXB.js";import l from"fs/promises";import c from"path";import x from"os";var u=c.join(x.homedir(),".kodax","commands");function y(){return u}a(y,"getDefaultCommandDir");async function K(e){let n=new Map,o=e??u;try{await l.mkdir(o,{recursive:!0});let r=await l.readdir(o);for(let t of r){let m=c.extname(t),f=t.replace(m,"");if(m===".md"){try{let d=await l.readFile(c.join(o,t),"utf-8"),i=(d.split(`
|
|
3
|
+
`)[0]?.replace(/^#\s*/,"").trim()??"").slice(0,60)||"(prompt command)";n.set(f,{name:f,description:i,content:d,type:"prompt"})}catch{}continue}if(m===".js"||m===".ts")try{let g=await import(c.join(o,t));for(let[i,p]of Object.entries(g))if(i.startsWith("command_")&&typeof p=="function"){let s=i.replace("command_",""),C=p.description??s;n.set(s,{name:s,description:String(C).slice(0,60),content:`[Programmable command: ${s}]`,type:"programmable",execute:p})}}catch{}}}catch{}return n}a(K,"loadCommands");async function X(e,n,o,r){let t=o.get(e);return t?t.type==="prompt"?n?t.content.replace(/{args}/g,n):t.content:t.type==="programmable"&&t.execute?t.execute({args:n,runAgent:r}):null:null}a(X,"processCommandCall");function h(e){if(!e.startsWith("/"))return null;let n=e.slice(1).split(/\s+/,2);if(n.length===0)return null;let[o,r]=n;return o?[o,r]:null}a(h,"parseCommandCall");export{Cn as App,Vt as AutocompleteContextProvider,Qt as BUILTIN_COMMANDS,qn as BackgroundTaskBar,No as ConsoleCapturer,dt as DEFAULT_UI_STATE,In as DialogSurface,mn as DotsIndicator,$o as FileSessionStorage,yn as FullscreenTranscriptLayout,pn as HistoryItemRenderer,en as InputPrompt,u as KODAX_COMMANDS_DIR,Dt as KODAX_CONFIG_FILE,Xt as KODAX_DIR,ht as KODAX_SESSIONS_DIR,_t as KODAX_VERSION,ft as KeyMatchers,ct as KeypressHandlerPriority,ot as KeypressParser,lt as KeypressProvider,L as LRUCache,dn as LoadingIndicator,no as MemorySessionStorage,Kn as MessageActions,ln as MessageList,Xn as MessageSelector,Wn as NotificationsSurface,gt as PERMISSION_MODES,Pt as PREVIEW_MAX_LENGTH,yo as PendingInputsIndicator,sn as ProgressIndicator,Dn as PromptComposer,wn as PromptFooter,Pn as PromptFooterLeftSide,Mn as PromptFooterRightSide,Nn as PromptHelpMenu,vn as PromptSuggestionsSurface,Ln as QueuedCommandsSurface,xn as SimpleApp,rn as SimpleInputPrompt,un as SimpleMessageDisplay,gn as SimpleStatusBar,tt as SingleLineTextInput,an as Spinner,$n as StashNotice,fn as StatusBar,Fn as StatusNoticesSurface,Bn as StreamingProvider,mt as StreamingState,Sn as SuggestionsDisplay,st as TOOL_STATUS_ICONS,nn as TextBuffer,Z as TextInput,cn as ThinkingIndicator,Co as ToolCallDisplay,it as ToolCallStatus,xo as ToolGroup,go as ToolProgressBar,fo as ToolStatusBadge,hn as TranscriptViewport,kn as UIStateProvider,Vn as _resetQueuedPromptsCacheForTests,to as bootstrapAutoMode,J as calculateVisualCursorFromLayout,H as calculateVisualLayout,zt as collectBashWriteTargets,xt as computeConfirmTools,lo as createCliEvents,bn as createHistoryItem,Yn as createInteractiveContext,uo as createJsonEvents,Qn as createKeyMatcher,pt as createKeypressManager,oo as createMemorySessionStorage,so as createRecoveryHistoryItem,mo as createRetryHistoryItem,To as createSessionManager,zn as createStreamingManager,jn as createToolCall,Q as darkTheme,Jo as deleteSession,wo as detectTerminalCapabilities,j as detectTerminalHostProfile,b as detectTerminalRenderHost,co as emitRecoveryHistoryItem,io as emitRetryHistoryItem,Ut as executeCommand,eo as executeShellCommand,Gt as extractTextContent,Ht as extractTitle,Bo as forkSession,Jt as formatMessagePreview,_n as generateId,Ft as generateSavePattern,Bt as getBashOutsideProjectWriteRisk,q as getCharAtCodePoint,W as getCodePointLength,Oo as getCustomProviderConfig,y as getDefaultCommandDir,St as getGitRoot,at as getKeyDisplayName,Io as getMcpServerConfig,Et as getPlanModeBlockReason,jt as getProviderList,bt as getProviderModel,S as getTerminalHostCapabilities,Po as getTerminalWidth,V as getTheme,Y as getThemeNames,Nt as getVersion,$ as getVisualWidth,G as getVisualWidthCached,P as hasCursorUpViewportYankRisk,w as hasMainScreenRenderScrollRisk,Mt as hydrateProcessEnvFromShell,$t as isAlwaysConfirmPath,It as isBashReadCommand,Lt as isBashWriteCommand,I as isClassicReplForced,et as isFunctionKey,v as isOwnedRendererPreferred,qt as isPathInsideProject,yt as isPermissionMode,rt as isPrintable,kt as isProviderConfigured,M as isRemoteConptyHost,Mo as isScreenReader,ro as isShellCommand,ao as isShellCommandSuccess,N as isTmuxControlMode,Wt as isToolCallAllowed,D as isVsCodeTerminalHostEnv,F as isWideChar,Ao as listCustomProviders,vo as listMcpServers,Ho as listRunningSessions,qo as listSessions,K as loadCommands,At as loadConfig,zo as loadSession,T as minimalTheme,Kt as normalizePermissionMode,Tt as parseCommand,h as parseCommandCall,nt as parseKeypress,Ct as permissionModeDisplayName,Ot as prepareRuntimeConfig,X as processCommandCall,ko as processSpecialSyntax,vt as rateLimitedCall,wt as registerConfiguredCustomProviders,So as removeCustomProvider,Wo as removeMcpServer,_ as resetTmuxControlModeProbeForTesting,k as resolveConfiguredTuiRendererMode,A as resolveEffectiveTuiRendererMode,R as resolveFullscreenPolicy,O as resolveInteractiveSurfacePreference,Eo as rewindSession,po as runInkInteractiveMode,jo as runInteractiveMode,Rt as saveConfig,Go as setActiveEntry,z as splitByCodePoints,Xo as supports256Colors,Do as supportsEmoji,Ko as supportsTrueColor,ho as supportsUnicode,U as themes,Zn as touchContext,B as truncateByVisualWidth,Ro as upsertCustomProvider,Lo as upsertMcpServer,Zt as useAutocomplete,Yt as useAutocompleteContext,tn as useInputHistory,Jn as useKeypress,ut as useKeypressManager,Un as useQueuedPromptContents,Tn as useQueuedPrompts,Hn as useStreaming,Gn as useStreamingActions,En as useStreamingState,on as useTextBuffer,Rn as useUI,On as useUIActions,An as useUIState,Fo as validateMcpServerConfig,E as visualWidthCache,Qo as watchSessions,_o as withCapture,bo as withCaptureSync};
|