@kodax-ai/kodax 0.7.77 → 0.7.79
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 +3651 -3201
- package/README.md +317 -110
- package/README_CN.md +255 -91
- package/config-templates/config.example.jsonc +124 -32
- package/config-templates/integrations/a2a.example.jsonc +23 -7
- package/dist/builtin/skill-creator/scripts/aggregate-benchmark.js +2 -1
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.js +4 -3
- package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/compare-runs.js +4 -3
- package/dist/builtin/skill-creator/scripts/generate-review.js +2 -1
- package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/grade-evals.js +4 -3
- package/dist/builtin/skill-creator/scripts/improve-description.js +2 -1
- package/dist/builtin/skill-creator/scripts/init-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/init-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/install-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/install-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/package-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/package-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/quick-validate.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/quick-validate.js +4 -3
- package/dist/builtin/skill-creator/scripts/run-eval.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/run-eval.js +4 -3
- package/dist/builtin/skill-creator/scripts/run-loop.js +2 -1
- package/dist/builtin/skill-creator/scripts/run-trigger-eval.js +2 -1
- package/dist/builtin/skill-creator/scripts/utils.d.ts +3 -0
- package/dist/builtin/skill-creator/scripts/utils.js +5 -1
- package/dist/chunks/agent-V4AC5JZD.js +2 -0
- package/dist/chunks/argument-completer-ZPC2MLES.js +2 -0
- package/dist/chunks/chunk-5BNQXXGY.js +1 -0
- package/dist/chunks/{chunk-EH7AOMJ7.js → chunk-67THZRM6.js} +1 -1
- package/dist/chunks/chunk-6GVQDQTQ.js +292 -0
- package/dist/chunks/chunk-B6UY3VHV.js +348 -0
- package/dist/chunks/{chunk-HORNWBYR.js → chunk-BBOVVDQJ.js} +1 -1
- package/dist/chunks/chunk-CR2IF7VF.js +30 -0
- package/dist/chunks/{chunk-FNW2XUL5.js → chunk-CXHEZY5G.js} +1 -1
- package/dist/chunks/chunk-EDZ4QILG.js +266 -0
- package/dist/chunks/chunk-GEECPO2H.js +218 -0
- package/dist/chunks/chunk-H5LLM7DB.js +89 -0
- package/dist/chunks/chunk-KLWP7POA.js +467 -0
- package/dist/chunks/{chunk-XSA37BVM.js → chunk-M4N2JZTZ.js} +2 -2
- package/dist/chunks/chunk-OWQT3FTE.js +5 -0
- package/dist/chunks/chunk-Q4M7DJOD.js +319 -0
- package/dist/chunks/{chunk-3DD4QEBH.js → chunk-QCZLCLFL.js} +10 -10
- package/dist/chunks/chunk-RQPMGRTR.js +810 -0
- package/dist/chunks/chunk-SG6P4SZS.js +123 -0
- package/dist/chunks/chunk-TSTVAU5E.js +386 -0
- package/dist/chunks/chunk-ZCZZUE5E.js +662 -0
- package/dist/chunks/compaction-config-AEUGVROL.js +2 -0
- package/dist/chunks/{construction-bootstrap-RPRL3L7R.js → construction-bootstrap-K3ZGEN5N.js} +1 -1
- package/dist/chunks/dist-GFJFRPAV.js +2 -0
- package/dist/chunks/{dist-FDSOIR35.js → dist-JMO47GJV.js} +1 -1
- package/dist/chunks/host-23K2Q6RZ.js +2 -0
- package/dist/chunks/run-manager-PGIR6ITA.js +2 -0
- package/dist/chunks/utils-6LEKJPQN.js +2 -0
- package/dist/index.d.ts +22 -21
- package/dist/index.js +6 -6
- package/dist/kodax_bootstrap.js +2 -1
- package/dist/kodax_cli.js +2225 -1468
- package/dist/kodax_resume.js +570 -34
- package/dist/provider-capabilities.json +85 -50
- package/dist/runtime-worker.js +2076 -1343
- package/dist/sandbox-workspace-session.js +829 -0
- package/dist/sdk-a2a.d.ts +24 -18
- package/dist/sdk-a2a.js +8 -8
- package/dist/sdk-agent.d.ts +315 -168
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +42 -205
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +3 -3
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +7 -6
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.d.ts +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +77 -36
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +406 -163
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.d.ts +93 -0
- package/dist/sdk-sandbox.js +2 -0
- package/dist/sdk-session.d.ts +8 -9
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.d.ts +2 -2
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +283 -18
- package/dist/types-chunks/{base.d-4e74xDdy.d.ts → base.d-DxG0m09Z.d.ts} +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-pZdu6qt7.d.ts → bash-prefix-extractor.d-CNSidpmv.d.ts} +149 -10
- package/dist/types-chunks/{capability-learning.d-CVsdHw4j.d.ts → capability-learning.d-iPSiAmc_.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-CxCm1KZz.d.ts → capsule.d-B3q98pLQ.d.ts} +9 -7
- package/dist/types-chunks/{types.d-RdWRfUEs.d.ts → controller.d-RGV7Pjv9.d.ts} +785 -8
- package/dist/types-chunks/{guardrail.d-B0PwAZVR.d.ts → guardrail.d-1NLSFTyN.d.ts} +310 -70
- package/dist/types-chunks/{history-retrieval.d-B__aEN62.d.ts → history-retrieval.d-BAegI14A.d.ts} +16 -3
- package/dist/types-chunks/{integration-config.d-ojG4swOP.d.ts → integration-config.d-BNowXE8k.d.ts} +23 -8
- package/dist/types-chunks/{oauth-login.d-Bgb4rdLN.d.ts → oauth-login.d-6i-vidxv.d.ts} +6 -2
- package/dist/types-chunks/{public-api.d--fF88JrC.d.ts → public-api.d-BpJhHoa7.d.ts} +366 -28
- package/dist/types-chunks/{commands.d-BccESAMV.d.ts → repl.d-CZ12Ow3X.d.ts} +89 -78
- package/dist/types-chunks/{side-query.d-5JvXhuOZ.d.ts → resolver.d-C9IW4fmU.d.ts} +7 -67
- package/dist/types-chunks/{run-manager.d-B47hIqnI.d.ts → run-manager.d-CX3AUocA.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-CLWf8Adb.d.ts → sdk-session-B3cfJKqF.d.ts} +3 -3
- package/dist/types-chunks/side-query.d-CP1LiRiH.d.ts +83 -0
- package/dist/types-chunks/{types-LanCEDj8.d.ts → types-Bf3Y3mW-.d.ts} +42 -3
- package/dist/types-chunks/{types.d-CODuyyqy.d.ts → types.d-BZ9oXvTV.d.ts} +2 -2
- package/dist/types-chunks/{types.d-DCQVBqVn.d.ts → types.d-BbtGlKZu.d.ts} +25 -3
- package/dist/types-chunks/{types.d-DCsKM8aT.d.ts → types.d-C0_rn--1.d.ts} +4 -4
- package/dist/types-chunks/{types.d-DIpZJKUl.d.ts → types.d-CgrXrFrq.d.ts} +16 -2
- package/dist/types-chunks/{utils.d-CDduqbFw.d.ts → utils.d-CGpHavsU.d.ts} +32 -8
- package/docs/SDK_EMBEDDER_GUIDE.md +1117 -227
- package/package.json +11 -1
- package/dist/chunks/agent-NGSWFE73.js +0 -2
- package/dist/chunks/argument-completer-WGGZPEEO.js +0 -2
- package/dist/chunks/chunk-27QLRH3D.js +0 -5
- package/dist/chunks/chunk-2MQPVY6P.js +0 -770
- package/dist/chunks/chunk-6WAPVAGQ.js +0 -74
- package/dist/chunks/chunk-AOENDSVN.js +0 -448
- package/dist/chunks/chunk-FSXI4MAV.js +0 -78
- package/dist/chunks/chunk-HV2GMZUZ.js +0 -343
- package/dist/chunks/chunk-IQT4RPCE.js +0 -46
- package/dist/chunks/chunk-JS2BHGJP.js +0 -158
- package/dist/chunks/chunk-OAMKECRG.js +0 -381
- package/dist/chunks/chunk-ON2WG2LG.js +0 -622
- package/dist/chunks/chunk-RUGAAHTF.js +0 -321
- package/dist/chunks/chunk-TGCG7U2W.js +0 -37
- package/dist/chunks/compaction-config-BE7VYWH6.js +0 -2
- package/dist/chunks/dist-ZZBNVTKU.js +0 -2
- package/dist/chunks/host-QAKQVC4A.js +0 -2
- package/dist/chunks/run-manager-N4UFWA2D.js +0 -2
- package/dist/chunks/utils-AUHCI4D5.js +0 -2
- package/dist/types-chunks/center-types.d-BBT122uJ.d.ts +0 -91
- package/dist/types-chunks/guardrail.d-CJx9RRd3.d.ts +0 -156
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 Zx,A as yx,Aa as ya,B as zx,Ba as za,C as Ax,Ca as Aa,D as Bx,Da as Ba,E as Cx,Ea as Ca,F as Dx,Fa as Da,G as Ex,Ga as Ea,H as Fx,Ha as Fa,I as Gx,Ia as Ga,J as Hx,Ja as Ha,K as Ix,Ka as Ia,L as Jx,La as Ja,M as Kx,Ma as Ka,N as Lx,Na as La,O as Mx,Oa as Ma,P as Nx,Pa as Na,Q as Ox,R as Px,S as Qx,T as Rx,U as Sx,V as Tx,W as Ux,X as Vx,Y as Wx,Z as Xx,_ as Yx,a as Mr,aa as _x,b as Nr,ba as $x,c as Or,ca as oa,d as rx,da as ra,e as ex,ea,f as fx,fa,g as mx,ga as ma,h as px,ha as pa,i as tx,ia as ta,j as xx,ja as xa,k as ax,ka as aa,l as bx,la as ba,m as cx,ma as ca,n as dx,na as da,o as gx,oa as ga,p as hx,pa as ha,q as ix,qa as ia,r as jx,ra as ja,s as kx,sa as ka,t as lx,ta as la,u as nx,ua as na,v as qx,va as qa,w as sx,wa as sa,x as ux,xa as ua,y as vx,ya as va,z as wx,za as wa}from"./chunks/chunk-AOENDSVN.js";import{a as mt,b as pt,c as tt,d as xt,e as at,f as bt,g as ct,h as dt,i as gt,j as Xt}from"./chunks/chunk-FNW2XUL5.js";import{A as Nt,B as Ot,C as Pt,D as Qt,E as Rt,F as St,G as Tt,H as Ut,I as Vt,J as Wt,a as ht,b as it,c as jt,d as kt,e as lt,f as nt,g as qt,h as st,i as ut,j as vt,k as wt,l as yt,m as zt,n as At,o as Bt,p as Ct,q as Dt,r as Et,s as Ft,t as Gt,u as Ht,v as It,w as Jt,x as Kt,y as Lt,z as Mt}from"./chunks/chunk-3DD4QEBH.js";import{A as wp,B as yp,C as zp,D as Ap,E as Bp,F as Cp,G as Dp,Ga as Yt,H as Ep,Ha as Zt,K as Fp,L as Gp,M as Hp,N as Ip,O as Jp,Oa as _t,P as Kp,Pa as $t,Q as Lp,Ra as ox,V as Mp,W as Np,X as Op,Y as Pp,Z as Qp,a as $,b as Pr,ba as Rp,c as Qr,ca as Sp,d as pp,da as Tp,e as tp,ea as Up,f as xp,g as ap,h as bp,ha as Vp,i as cp,k as ip,l as jp,m as kp,n as lp,o as np,p as qp,q as sp,v as up,w as vp}from"./chunks/chunk-HV2GMZUZ.js";import{a as ft}from"./chunks/chunk-EH7AOMJ7.js";import{$ as de,$a as rf,$b as Tf,$c as Om,A as re,Aa as Fe,Ab as wf,Ac as nm,B as ee,Ba as Ge,Bb as yf,Bc as qm,Ca as He,Cb as zf,Cc as sm,Da as Ie,Db as Af,Dc as um,Ea as Je,Eb as Bf,Ec as vm,Fa as Ke,Fb as Cf,Fc as wm,Ga as Le,Gc as ym,Hc as zm,I as fe,Ib as Df,Ic as Am,Id as Wp,J as me,Ja as Me,Jc as Bm,Jd as Xp,K as pe,Ka as Ne,Kc as Cm,Kd as Yp,L as te,La as Oe,Lc as Dm,Ld as Zp,M as xe,Ma as Pe,Mb as Ef,Mc as Em,Md as _p,N as ae,Na as Qe,Nb as Ff,Nc as Fm,Nd as $p,Oa as Re,Ob as Gf,Oc as Gm,Pa as Se,Pb as Hf,Qb as If,Ra as Te,Rb as Jf,Sa as Ue,Sb as Kf,Ta as Ve,Tb as Lf,Ua as We,Ub as Mf,Uc as Hm,Va as Xe,Vb as Nf,Vc as Im,Vd as ot,Wa as Ye,Wb as Of,Wc as Jm,Wd as rt,Xa as Ze,Xb as Pf,Xc as Km,Xd as et,Ya as _e,Yb as Qf,Yc as Lm,Z as be,Za as $e,Zb as Rf,Zc as Mm,_ as ce,_a as of,_b as Sf,_c as Nm,a as oo,aa as ge,ab as ef,ac as Uf,ad as Pm,b as ro,ba as he,bb as ff,bc as Vf,bd as Qm,c as Lr,cb as mf,cc as Wf,cd as Rm,db as pf,dc as Xf,dd as Sm,eb as tf,ec as Yf,ed as Tm,fb as xf,fc as Zf,fd as Um,ga as ie,gb as af,gc as _f,gd as Vm,hb as bf,hc as $f,hd as Wm,i as Rr,ia as je,ib as cf,ic as om,id as Xm,j as Sr,jb as df,jc as rm,jd as Ym,ka as ke,kb as gf,kc as em,la as le,lc as fm,ld as Zm,ma as ne,mc as mm,md as _m,na as qe,nc as pm,nd as $m,oa as se,ob as hf,oc as tm,od as op,pb as jf,pc as xm,pd as rp,q as Tr,qa as ue,qb as kf,qc as am,qd as ep,r as Ur,ra as ve,rb as lf,rc as bm,rd as fp,s as Vr,sa as we,sc as cm,sd as mp,t as Wr,ta as ye,tc as dm,td as dp,u as Xr,ua as ze,uc as gm,ud as gp,v as Yr,va as Ae,vb as nf,vc as hm,vd as hp,w as Zr,wa as Be,wb as qf,wc as im,x as _r,xa as Ce,xb as sf,xc as jm,y as $r,ya as De,yb as uf,yc as km,z as oe,za as Ee,zb as vf,zc as lm}from"./chunks/chunk-OAMKECRG.js";import"./chunks/chunk-27QLRH3D.js";import{Aa as G,Ba as H,C as x,Ca as I,D as a,Da as J,E as b,Ea as K,F as c,Fa as L,G as d,Ga as M,H as g,Ha as N,Ia as O,Ja as P,Ka as Q,La as R,Ma as S,Oa as T,Pa as U,Qa as V,Ra as W,Ta as X,Ua as Y,V as h,Va as Z,Ya as _,d as o,da as i,e as r,ea as j,f as e,ka as k,la as l,m as f,ma as n,n as m,na as q,oa as s,pa as u,qa as v,ra as w,sa as y,ta as z,ua as A,v as p,va as B,w as t,wa as C,xa as D,ya as E,za as F}from"./chunks/chunk-FSXI4MAV.js";import{$b as Xo,Cc as sr,Dc as ur,Gc as vr,Hc as wr,a as eo,ac as Yo,b as fo,bc as Zo,c as mo,cc as _o,d as po,dc as $o,e as to,ec as or,f as xo,fc as rr,gc as er,h as ao,hc as fr,i as bo,ic as mr,id as yr,j as co,jc as pr,jd as zr,kc as tr,kd as Ar,lc as xr,ld as Br,mc as ar,md as Cr,nc as br,nd as Dr,oc as cr,od as Er,pc as dr,q as io,qa as no,qb as Vo,qc as gr,r as jo,rb as Wo,rc as hr,rd as Fr,s as ko,sc as ir,sd as Gr,t as lo,ta as qo,tc as jr,td as Hr,uc as kr,ud as Ir,vd as Jr,wc as lr,wd as Kr,xc as nr,yc as qr}from"./chunks/chunk-2MQPVY6P.js";import{a as go,b as ho,f as so,g as uo,h as vo,k as wo}from"./chunks/chunk-TGCG7U2W.js";import{A as Po,B as Qo,C as Ro,D as So,E as To,F as Uo,d as yo,k as zo,l as Ao,m as Bo,n as Co,o as Do,p as Eo,q as Fo,r as Go,s as Ho,t as Io,u as Jo,v as Ko,w as Lo,x as Mo,y as No,z as Oo}from"./chunks/chunk-XSA37BVM.js";import"./chunks/chunk-IQT4RPCE.js";import"./chunks/chunk-ONUPGMER.js";export{zp as ALWAYS_RESIDENT_TOOL_NAMES,pa as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,ta as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,Aa as BASH_POLICY_SPEC,jx as BLOCKER_REQUIRED_CONSECUTIVE_TURNS,da as BREAKER_ERROR_THRESHOLD,ga as BREAKER_WINDOW_MS,yt as BUILTIN_WORKFLOWS,Sr as CANCELLED_TOOL_RESULT_MESSAGE,Rr as CANCELLED_TOOL_RESULT_PREFIX,Ux as CODING_AGENT_MARKER,xx as CODING_INVARIANTS,Yt as CODING_SUMMARY_PROMPT,Zt as CODING_UPDATE_SUMMARY_PROMPT,Tf as CapabilityDeniedError,bx as Client,ot as CodingActorSession,Cm as CombinedExtensionRuntime,Uf as ConstructionManifestError,_x as DEFAULT_CLASSIFIER_TIMEOUT_MS,_t as DEFAULT_CODING_AGENT_NAME,Jx as DEFAULT_DANGEROUS_PATTERNS,Rf as DEFAULT_HANDLER_TIMEOUT_MS,Fp as DEFAULT_RESILIENCE_CONFIG,Ix as DEFAULT_SAFE_PATTERNS,em as DEFAULT_SELF_MODIFY_BUDGET,va as DEFAULT_SPECULATIVE_WINDOW_MS,Ur as DEFAULT_TOOL_OUTPUT_MAX_BYTES,Tr as DEFAULT_TOOL_OUTPUT_MAX_LINES,pt as DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS,lo as DefaultSummaryCompaction,Rx as EMIT_VERDICT_TOOL_NAME,Pr as ErrorCategory,kt as FINDING_VERIFICATION_OUTPUT_SCHEMA,af as GENERATOR_AGENT_NAME,Ao as ImageResizeError,bo as KODAX_API_MIN_INTERVAL,n as KODAX_DEFAULT_PROVIDER,fo as KODAX_DEFAULT_TIMEOUT,Ro as KODAX_FILE_MEDIA_TYPES,mo as KODAX_HARD_TIMEOUT,Po as KODAX_IMAGE_MEDIA_TYPES,xo as KODAX_MAX_INCOMPLETE_RETRIES,po as KODAX_MAX_RETRIES,eo as KODAX_MAX_TOKENS,l as KODAX_PROVIDERS,k as KODAX_PROVIDER_SNAPSHOTS,p as KODAX_REASONING_MODE_SEQUENCE,to as KODAX_RETRY_BASE_DELAY,t as KODAX_STABLE_EFFORT_INTENTS,ao as KODAX_STAGGER_DELAY,Hm as KODAX_TOOLS,me as KODAX_UNDERLYING_CAPABILITY_TOPICS,Qo as KODAX_VIDEO_MEDIA_TYPES,i as KodaXAnthropicCompatProvider,h as KodaXBaseProvider,bx as KodaXClient,o as KodaXError,Bm as KodaXExtensionRuntime,zo as KodaXMediaError,j as KodaXOpenAICompatProvider,r as KodaXProviderError,e as KodaXRateLimitError,Nr as KodaXSessionError,Or as KodaXTerminalError,Mr as KodaXToolError,lr as LINEAGE_ENTRY_TYPES,Yp as LSP_SERVERS,qr as LineageCompaction,nr as LineageExtension,Zp as LspService,pe as MANUAL_REGISTRY,fe as MANUAL_TOPIC_IDS,Go as MAX_DIMENSION,Fx as MEMORY_INTERVENTION_SELECTOR_PROMPT,Gx as MEMORY_INTERVENTION_SELECTOR_SHA256,er as McpAuthRequiredError,ir as McpCapabilityProvider,rr as McpExpiredSessionError,jr as McpManager,hr as McpServerRuntime,Lo as PASTE_TMP_DIR_ENV,Mo as PASTE_TMP_TTL_MS,xf as PLANNER_AGENT_NAME,co as PROMISE_PATTERN,tp as PROMPT_SECTION_REGISTRY,Tx as PROTOCOL_EMITTER_TOOLS,Lp as ProviderRecoveryCoordinator,Vr as READ_DEFAULT_LIMIT,Xr as READ_MAX_LINE_CHARS,Wr as READ_PREFLIGHT_SIZE_BYTES,wm as REPO_EXPLORER_AGENT_NAME,ym as REPO_EXPLORER_TOOL_NAMES,qo as Runner,jt as SCOPED_REVIEW_OUTPUT_SCHEMA,tf as SCOUT_AGENT_NAME,Ka as SCOUT_THEN_AUTHOR_PROMPT_LINES,jp as SELF_KNOWLEDGE_ROUTING_RULE,pp as SYSTEM_PROMPT,Pt as SYSTEM_WORKFLOW_LIMITS,Jp as StableBoundaryTracker,Ho as TARGET_RAW_SIZE_BYTES,df as TASK_ENGINE_ROLE_AGENTS,Vx as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,Da as TRACING_ENV,bf as WORKER_AGENT_NAME,mt as WORKFLOW_GENERATION_SYSTEM_PROMPT,bm as _resetRuntimeForTesting,gm as activate,yo as actorQueueId,Ae as analyzeChangedScope,om as appendAuditEntry,Dr as appendSessionLineageLabel,wf as applyAccountingDelta,qt as applyFindingVerification,Er as applySessionCompaction,je as applyToolResultGuardrail,Kr as archiveOldIslands,Ma as authorWorkflowViaWorker,ca as autoModeDenialShouldFallback,qa as bashSignalCollector,Ea as bootstrapTracing,fx as boundedRevise,ja as breakerShouldFallback,mx as budgetCeiling,Qt as buildApprovalSummary,Af as buildBlockedGoal,kp as buildCapabilityContextSections,Xx as buildClassifierPrompt,Bf as buildCompleteGoal,vf as buildCreatedGoal,Sp as buildFallbackRoutingDecision,qx as buildGoalRuntimeBinding,gr as buildInitializeCapabilities,Zf as buildLlmReviewPrompt,xe as buildManualToolDescription,yx as buildMcpReverseCapabilities,yf as buildPausedGoal,sp as buildPromptMessageContent,cp as buildPromptSnapshot,Mp as buildProviderCapabilitySnapshot,Tp as buildProviderPolicyHintsForDecision,Np as buildProviderPolicyPromptNotes,ze as buildRepoIntelligenceContext,Me as buildRepoIntelligenceIndex,ve as buildRepoOverview,zf as buildResumedGoal,vt as buildScopedReviewFinalPrompt,st as buildScopedReviewPrimaryPrompt,ut as buildScopedReviewVerificationPrompt,La as buildScoutThenAuthorPrompt,ip as buildSelfKnowledgeRoutingRule,Ir as buildSessionTree,np as buildSystemPrompt,lp as buildSystemPromptSnapshot,ep as buildToolResultBudget,fp as buildToolResultBudgetFromUsage,Ef as buildToolSearchIndex,Mt as buildWorkflowCostReport,bt as buildWorkflowGenerationSkillContext,at as buildWorkflowGenerationUserPrompt,na as checkAbsoluteDeny,qp as checkIncompleteToolCalls,Vp as checkPromiseSignal,mp as clampToolResultPolicyToBudget,Rt as clampWorkflowLimits,$x as classify,Lx as classifyBashCommand,Qr as classifyError,ue as classifyFileCategory,Hp as classifyResilienceError,_m as cleanupExpiredToolOutputs,Wo as cleanupIncompleteToolCalls,$m as cleanupUnreferencedToolOutputs,T as clearRuntimeModelProviders,Lr as clearShellExecutionEnvironmentCache,ua as collectAllSignals,Dm as combineExtensionRuntimes,Nx as computeInputSignature,oa as computeRulesFingerprint,am as configureRuntime,Dp as consumeCompactionCooldown,$e as convertCapabilityReadResult,_e as convertProviderSearchResults,Jr as countActiveLineageMessages,ho as countTokens,io as createAgent,xa as createAutoModeDenialTracker,za as createAutoModeToolGuardrail,Kx as createBashClassifierConfig,Ca as createBashPrefixExtractor,Pm as createBuiltinToolDefinition,ha as createCircuitBreaker,Hx as createCodingMemoryInterventionRunner,ht as createCodingWorkflowBackend,Bp as createCompactionAntiThrashState,Vf as createCtxProxy,F as createCustomProvider,$t as createDefaultCodingAgent,Mx as createDenialTracker,Em as createExtensionRuntime,et as createExternalActorTurnExecutor,Eo as createFileArtifactFromPath,jo as createHandoff,Do as createImageArtifactFromPath,ko as createInMemorySession,Bx as createKodaXTaskRunner,rt as createLocalCodingActorControl,Yo as createMcpCapabilityId,kr as createMcpManager,fr as createMcpTransport,xp as createPromptSection,Up as createReasoningPlan,Ot as createRunGraphWriter,yp as createRuntimeContextBudgetSnapshot,rx as createSessionControl,yr as createSessionLineage,Wx as createToolResultTruncationGuardrail,Fo as createVideoArtifactFromPath,Ga as createWorkflowLifecycleController,Ja as createWorkflowPatternTemplateModule,Vt as createWorkflowRunManager,dx as decideWorkflowInvocation,Mf as dedupeExtensionPathsByEntrypoint,Xo as defaultMcpCacheDir,Sf as defaultPolicy,Ht as deleteSavedWorkflow,xm as disableSelfModify,xr as discoverAuthorizationServerMetadata,Qf as discoverDefaultExtensions,Pf as discoverExtensionsInDirectory,Of as discoverExtensionsInDirectoryDetailed,vm as discoverMarkdownAgents,ar as discoverOAuthEndpoints,tr as discoverProtectedResourceMetadata,Bt as discoverSavedWorkflows,jf as drainPendingSwaps,b as effortToLegacyReasoningMode,Sx as emitVerdict,Tt as emitWorkflowAgentDigest,Uo as enqueueWithArtifacts,zm as ensureBuiltinRepoExplorerAgent,go as estimateTokens,wp as estimateToolSchemaTokens,Op as evaluateProviderPolicy,Nf as excludeExtensionPathsByEntrypoint,Hf as exec,Zm as executeTool,vr as extractArtifactLedger,Ba as extractCommandPrefix,vp as extractComparableUserMessageText,Ze as extractHtmlTitle,pr as extractInsufficientScope,up as extractPromptComparableText,mr as extractResourceMetadataUrl,ur as extractTitleFromMessages,sa as fileSignalCollector,rf as finalizeRetrievalResult,nm as findByVersion,Fr as findPreviousUserEntryId,Hr as forkSessionLineage,hp as formatAgentsForPrompt,Dx as formatParallelDispatchResult,Yr as formatSize,sr as generateSessionId,dt as generateWorkflow,gt as generateWorkflowFromOptions,Gm as getActiveExtensionRuntime,uo as getAgentConfigHome,vo as getAgentConfigPath,Rm as getAllRegisteredTools,wo as getAppDataDir,W as getAvailableProviderNames,Om as getBuiltinRegisteredToolDefinition,Nm as getBuiltinToolDefinition,zt as getBuiltinWorkflow,N as getCustomModelCapabilities,H as getCustomProvider,K as getCustomProviderList,M as getCustomProviderModelDescriptors,L as getCustomProviderModels,J as getCustomProviderNames,Kf as getDefaultExtensionDirectory,_p as getDefaultLspService,Wt as getDefaultWorkflowRunManager,Qx as getDenialContext,Re as getImpactEstimate,dp as getKodaxGlobalDir,or as getMcpCachePaths,C as getModelCapabilities,So as getModelInputCapabilities,Oe as getModuleContext,Qe as getProcessContext,q as getProvider,w as getProviderConfiguredCapabilityProfile,v as getProviderConfiguredReasoningCapability,y as getProviderList,u as getProviderModel,B as getProviderModelDescriptors,z as getProviderModels,Lm as getRegisteredToolDefinition,Ne as getRepoIntelligenceIndex,we as getRepoOverview,Se as getRepoRoutingSignals,Wm as getRequiredToolParams,Q as getRuntimeModelProvider,S as getRuntimeModelProviderNames,zr as getSessionLineagePath,Ar as getSessionMessagesFromLineage,Pe as getSymbolContext,Jm as getTool,Km as getToolDefinition,Mm as getToolRegistrations,ie as getToolResultPolicy,Ia as getWorkflowPatternTemplate,qf as goalTokenDelta,cx as hasExplicitNaturalLanguageWorkflowIntent,hf as hasPendingSwap,Bo as inferImageMediaType,Rp as inferTaskType,Co as inferVideoMediaType,ge as inspectEditFailure,Le as inspectRepoIntelligenceRuntime,I as isCustomProviderName,Px as isDeniedRecently,V as isKnownProvider,Cx as isParallelDispatchDirective,s as isProviderConfigured,A as isProviderName,R as isRuntimeModelProviderName,Ip as isSessionRecoveryCandidateError,Jf as isSupportedExtensionModulePath,Tm as isToolFileMutation,Vm as isToolMutation,Um as isToolNetworkRead,Sm as isToolPlanModeAllowed,Cf as isValidTokenBudget,Wp as languageIdForPath,qm as listAll,Z as listAllModelCapabilities,jm as listArtifacts,D as listBuiltinModelCapabilities,Qm as listBuiltinToolDefinitions,At as listBuiltinWorkflows,kf as listCodingDispatchableAgents,lm as listConstructed,O as listCustomProviderModelCapabilities,Ym as listToolDefinitions,Xm as listTools,Ha as listWorkflowPatternTemplates,gp as loadAgentsFiles,sm as loadAgentsFromMarkdown,ma as loadAutoRules,Jt as loadGeneratedWorkflowFromRun,Wf as loadHandler,um as loadMarkdownAgentScope,Et as loadSavedWorkflow,Dt as loadSavedWorkflowCapsule,dr as loadValidToken,nf as makeDisabledGoalToolsContext,a as mapLegacyReasoningModeToEffortIntent,rp as maybeRunReferenceAwareToolOutputGc,op as maybeRunToolOutputGc,wx as mcpRootsFromWorkspace,wr as mergeArtifactLedger,nt as mergeScopedReviewResults,$ as normalizeKodaXAgentMode,Zo as normalizeMcpCapabilityId,Io as normalizePastedImage,x as normalizeReasoningEffortValue,lt as normalizeScopedReviewResult,oo as normalizeShellExecutionContract,Ct as normalizeWorkflowModule,ap as orderPromptSections,it as parallelInvestigation,fa as parseAutoRules,Yx as parseClassifierOutput,de as parseEditToolError,_f as parseLlmReviewVerdict,_o as parseMcpCapabilityId,ka as parseModelSpec,c as parseReasoningEffortEnv,m as parseTimeoutSecEnvMs,Gf as parseToolSearchQuery,ct as parseWorkflowGeneration,cr as performOAuthLogin,No as persistImageAsBlock,re as persistToolOutput,Ap as planToolExposure,Lt as preflightWorkflowCapsule,Te as prewarmRepoIntelligenceCaches,ft as providerResilienceConfigFromTimeouts,Oo as prunePasteTmpDir,Ko as readAndNormalizeClipboardImage,km as readArtifact,rm as readAuditEntries,fm as readBudget,Jo as readClipboardImage,tm as readDisableState,wa as readSpeculativeWindowFromEnv,ra as readTrustState,Qp as reasoningModeToDepth,Kp as reconstructMessagesWithToolGuard,ba as recordAutoModeAllow,aa as recordAutoModeBlock,hx as recordBlockerAttempt,ia as recordBreakerError,Ep as recordCompactionSavings,Ox as recordDenial,ax as registerCodingInvariants,ux as registerConfiguredMcpCapabilityProvider,G as registerCustomProviders,P as registerModelProvider,br as registerOAuthClient,zx as registerOfficialSandboxExtension,no as registerPresetDispatcher,Im as registerTool,hm as rehydrateActiveArtifacts,mm as remainingSelfModifyBudget,Gt as renameSavedWorkflow,Be as renderChangedScope,Ie as renderImpactEstimate,Fe as renderModuleContext,He as renderProcessContext,bp as renderPromptSections,ye as renderRepoOverview,of as renderRetrievalResult,Ge as renderSymbolContext,vx as replaceConfiguredMcpCapabilityProvider,It as replaceSavedWorkflow,Xp as reportLspDiagnostics,ix as resetBlockerCounter,pm as resetBudget,la as resolveClassifierModel,lf as resolveCodingDispatchableAgent,gf as resolveConstructedAgent,Lf as resolveExtensionEntrypoint,te as resolveKodaXManual,Y as resolveModelCapabilities,U as resolveProvider,X as resolveProviderModelDescriptors,d as resolveReasoningEffort,g as resolveReasoningEffortForModelSwitch,Pp as resolveReasoningMode,Ke as resolveRepoIntelligenceMode,Je as resolveRepoIntelligenceRuntimeConfig,Gp as resolveResilienceConfig,Br as resolveSessionLineageTarget,Df as resolveToolBridgeTarget,px as resolveToolCapability,oe as resolveToolOutputDir,_ as resolveWireEffort,tt as resolveWorkflowGenerationTimeoutMs,Fa as resolveWorkflowIdentity,im as revoke,Gr as rewindSessionLineage,Am as rollbackSelfModify,Xf as runAstRules,ox as runKodaX,$f as runLlmReview,sx as runManagedTask,Ax as runOrchestration,Ut as runWorkflowFromOptions,St as runWorkflowModule,Nt as safeWorkflowArtifactName,Ft as saveGeneratedWorkflow,Kt as saveGeneratedWorkflowFromRun,wt as scopedReview,$o as searchMcpCatalog,Ff as searchToolIndex,Fm as setActiveExtensionRuntime,so as setAgentConfigHome,Cr as setSessionLineageActiveEntry,ro as shellExecutionContractFingerprint,uf as shouldFlipBudgetLimited,Cp as shouldSkipLlmCompaction,$p as shutdownDefaultLspService,ya as speculativeRace,cm as stage,ex as startKodaX,Xt as startManagedWorkflow,Zx as stripAssistantText,Ye as stripHtmlToText,dm as testArtifact,f as timeoutSecToMs,se as toolAskUserQuestion,ke as toolBash,Ee as toolChangedDiff,De as toolChangedScope,mf as toolCodeSearch,ce as toolEdit,le as toolGlob,ne as toolGrep,Xe as toolImpactEstimate,he as toolInsertAfterAnchor,Ue as toolModuleContext,tx as toolPermission,We as toolProcessContext,ee as toolRead,Ce as toolRepoOverview,pf as toolSemanticLookup,Ve as toolSymbolContext,qe as toolUndo,ff as toolWebFetch,ef as toolWebSearch,be as toolWrite,Zr as truncateHead,$r as truncateLine,_r as truncateTail,ea as trustProjectRules,sf as turnWallTimeDelta,Vo as validateAndFixToolHistory,E as validateCustomProviderConfig,xt as validateGeneratedWorkflowSource,To as validateInputArtifactsForModel,Ex as validateSubtaskIndependence,Yf as validateToolSchemaForProvider,nx as verifyGoalCompletion,If as webhook,kx as withGoalBeforeNextTurn,lx as withGoalStopHook,ae as withManualToolBranding,cf as workerAgent,gx as workflowStartOutcomeConsumesTurn,Na as writeReviewPackets};
|
|
2
|
+
import{$ as ma,A as Fx,Aa as Fa,B as Gx,Ba as Ga,C as Hx,Ca as Ha,D as Ix,Da as Ia,E as Jx,Ea as Ja,F as Kx,Fa as Ka,G as Lx,Ga as La,H as Mx,Ha as Ma,I as Nx,Ia as Na,J as Ox,Ja as Oa,K as Px,Ka as Pa,L as Qx,La as Qa,M as Rx,Ma as Ra,N as Sx,Na as Sa,O as Tx,Oa as Ta,P as Ux,Pa as Ua,Q as Vx,Qa as Va,R as Wx,S as Xx,T as Yx,U as Zx,V as _x,W as $x,X as oa,Y as ra,Z as ea,_ as fa,a as Tr,aa as pa,b as Ur,ba as ta,c as Vr,ca as xa,d as ax,da as aa,e as bx,ea as ba,f as cx,fa as ca,g as dx,ga as da,h as gx,ha as ga,i as hx,ia as ha,j as ix,ja as ia,k as jx,ka as ja,l as kx,la as ka,m as lx,ma as la,n as nx,na,o as qx,oa as qa,p as sx,pa as sa,q as ux,qa as ua,r as vx,ra as va,s as wx,sa as wa,t as yx,ta as ya,u as zx,ua as za,v as Ax,va as Aa,w as Bx,wa as Ba,x as Cx,xa as Ca,y as Dx,ya as Da,z as Ex,za as Ea}from"./chunks/chunk-KLWP7POA.js";import{$ as Rp,$a as px,A as zp,B as Ap,C as Bp,H as Cp,I as Dp,M as Ep,N as Fp,O as Gp,P as Hp,Q as Ip,R as Jp,S as Kp,T as Lp,Ta as fx,Ua as mx,W as Mp,X as Np,Y as Op,Z as Pp,_ as Qp,aa as Sp,ab as tx,b as Ir,c as Jr,cb as xx,d as Kr,e as Lr,fa as Tp,g as Mr,ga as Up,ha as Vp,ia as Wp,ja as Xp,k as Nr,n as Or,na as Yp,o as Wr,oa as Zp,p as Xr,pa as _p,q as gp,qa as $p,r as hp,s as ip,t as jp,ta as ot,u as kp,v as lp,w as up,x as vp,y as wp,z as yp}from"./chunks/chunk-B6UY3VHV.js";import{a as dt,b as gt,c as ht,d as it,e as jt,f as kt,g as lt,h as nt,i as qt,j as ex}from"./chunks/chunk-CXHEZY5G.js";import{a as ct}from"./chunks/chunk-67THZRM6.js";import{A as Ut,B as Vt,C as Wt,D as Xt,E as Yt,F as Zt,G as _t,H as $t,I as ox,J as rx,a as st,b as ut,c as vt,d as wt,e as yt,f as zt,g as At,h as Bt,i as Ct,j as Dt,k as Et,l as Ft,m as Gt,n as Ht,o as It,p as Jt,q as Kt,r as Lt,s as Mt,t as Nt,u as Ot,v as Pt,w as Qt,x as Rt,y as St,z as Tt}from"./chunks/chunk-QCZLCLFL.js";import{$a as ef,$b as Uf,$c as Pm,$d as xt,A as pe,Aa as Ge,Ac as qm,Ad as qp,B as te,Ba as He,Bb as zf,Bc as sm,Bd as sp,C as xe,Ca as Ie,Cb as Af,Cc as um,D as ae,Da as Je,Db as Bf,Dc as vm,E as be,Ea as Ke,Eb as Cf,Ec as wm,Fa as Le,Fb as Df,Fc as ym,Ga as Me,Gb as Ef,Gc as zm,Ha as Ne,Hb as Ff,Hc as Am,Ia as Oe,Ib as Gf,Ic as Bm,Ja as Pe,Jb as Hf,Jc as Cm,Ka as Qe,Kb as If,Kc as Dm,La as Re,Lb as Jf,Lc as Em,Ma as Se,Mc as Fm,Nc as Gm,O as ce,Ob as Kf,Oc as Hm,Od as rt,P as de,Pa as Te,Pc as Im,Pd as et,Q as ge,Qa as Ue,Qc as Jm,Qd as ft,R as he,Ra as Ve,Rc as Km,Rd as mt,S as ie,Sa as We,Sb as Lf,Sc as Lm,Sd as pt,T as je,Ta as Xe,Tb as Mf,Tc as Mm,Td as tt,Ua as Ye,Ub as Nf,Uc as Nm,Va as Ze,Vb as Of,Wb as Pf,Xa as _e,Xb as Qf,Ya as $e,Yb as Rf,Za as of,Zb as Sf,_a as rf,_b as Tf,_c as Om,ab as ff,ac as Vf,ad as Qm,ae as at,bb as mf,bc as Wf,bd as Rm,be as bt,c as Pr,cb as pf,cc as Xf,cd as Sm,d as Qr,da as ke,db as tf,dc as Yf,dd as Tm,ea as le,eb as xf,ec as Zf,ed as Um,f as Rr,fa as ne,fb as af,fc as _f,fd as Vm,ga as qe,gb as bf,gc as $f,gd as Wm,h as Sr,ha as se,hb as cf,hc as om,hd as Xm,ib as df,ic as rm,id as Ym,jb as gf,jc as em,jd as Zm,kb as hf,kc as fm,kd as _m,lb as jf,lc as mm,ld as $m,ma as ue,mb as kf,mc as pm,md as op,n as Yr,nb as lf,nc as tm,nd as rp,o as Zr,oa as ve,ob as nf,oc as xm,od as ep,pb as qf,pc as am,pd as fp,qa as we,qb as sf,qc as bm,ra as ye,rc as cm,rd as mp,sa as ze,sc as dm,sd as pp,t as _r,ta as Ae,tc as gm,td as tp,u as $r,ua as Be,ub as uf,uc as hm,ud as xp,v as oe,vb as vf,vc as im,vd as ap,w as re,wa as Ce,wb as wf,wc as jm,wd as bp,x as ee,xa as De,xb as yf,xc as km,xd as cp,y as fe,ya as Ee,yc as lm,yd as dp,z as me,za as Fe,zc as nm,zd as np}from"./chunks/chunk-TSTVAU5E.js";import"./chunks/chunk-OWQT3FTE.js";import{Aa as G,Ba as H,C as x,Ca as I,D as a,Da as J,E as b,Ea as K,F as c,Fa as L,G as d,Ga as M,H as g,Ha as N,Ia as O,Ja as P,Ka as Q,La as R,Ma as S,Oa as T,Pa as U,Qa as V,Ra as W,Ta as X,Ua as Y,V as h,Va as Z,Ya as _,d as o,da as i,e as r,ea as j,f as e,ka as k,la as l,m as f,ma as n,n as m,na as q,oa as s,pa as u,qa as v,ra as w,sa as y,ta as z,ua as A,v as p,va as B,w as t,wa as C,xa as D,ya as E,za as F}from"./chunks/chunk-SG6P4SZS.js";import{Ab as Uo,Bb as Vo,Cb as Wo,Db as Xo,Eb as Yo,Fb as Zo,Fc as qr,Gb as _o,Gc as sr,Hb as $o,Hc as ur,Ic as vr,Jb as or,Jc as wr,Kb as rr,Kc as yr,Lb as er,Lc as zr,Mb as fr,Nb as mr,Ob as pr,Oc as Ar,Pb as tr,Pc as Br,Qb as xr,Qc as Cr,Rb as ar,Rc as Dr,Sb as br,Sc as Er,Tb as cr,Tc as Fr,Ub as dr,Vb as gr,Wb as hr,Yb as ir,Zb as jr,Zc as Gr,_b as kr,_c as Hr,a as $,b as oo,bc as lr,c as ro,cc as nr,d as eo,e as fo,f as mo,h as po,i as to,j as xo,q as co,qa as jo,r as go,s as ho,t as io,ta as ko,ub as So,vb as To}from"./chunks/chunk-RQPMGRTR.js";import{a as ao,b as bo,f as lo,g as no,h as qo,k as so}from"./chunks/chunk-GEECPO2H.js";import{A as Mo,B as No,C as Oo,D as Po,E as Qo,F as Ro,d as uo,k as vo,l as wo,m as yo,n as zo,o as Ao,p as Bo,q as Co,r as Do,s as Eo,t as Fo,u as Go,v as Ho,w as Io,x as Jo,y as Ko,z as Lo}from"./chunks/chunk-M4N2JZTZ.js";import"./chunks/chunk-H5LLM7DB.js";import"./chunks/chunk-ONUPGMER.js";export{Gp as ALWAYS_RESIDENT_TOOL_NAMES,ha as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,ia as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,Ia as BASH_POLICY_SPEC,vx as BLOCKER_REQUIRED_CONSECUTIVE_TURNS,qa as BREAKER_ERROR_THRESHOLD,sa as BREAKER_WINDOW_MS,Ft as BUILTIN_WORKFLOWS,Zr as CANCELLED_TOOL_RESULT_MESSAGE,Yr as CANCELLED_TOOL_RESULT_PREFIX,ta as CLASSIFIER_MAX_OUTPUT_TOKENS,$x as CODING_AGENT_MARKER,ix as CODING_INVARIANTS,fx as CODING_SUMMARY_PROMPT,mx as CODING_UPDATE_SUMMARY_PROMPT,_f as CapabilityDeniedError,kx as Client,xt as CodingActorSession,Jm as CombinedExtensionRuntime,$f as ConstructionManifestError,pa as DEFAULT_CLASSIFIER_TIMEOUT_MS,px as DEFAULT_CODING_AGENT_NAME,Qx as DEFAULT_DANGEROUS_PATTERNS,Yf as DEFAULT_HANDLER_TIMEOUT_MS,Mp as DEFAULT_RESILIENCE_CONFIG,Px as DEFAULT_SAFE_PATTERNS,bm as DEFAULT_SELF_MODIFY_BUDGET,Ea as DEFAULT_SPECULATIVE_WINDOW_MS,$r as DEFAULT_TOOL_OUTPUT_MAX_BYTES,_r as DEFAULT_TOOL_OUTPUT_MAX_LINES,gt as DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS,io as DefaultSummaryCompaction,Yx as EMIT_VERDICT_TOOL_NAME,Wr as ErrorCategory,wt as FINDING_VERIFICATION_OUTPUT_SCHEMA,kf as GENERATOR_AGENT_NAME,wo as ImageResizeError,to as KODAX_API_MIN_INTERVAL,n as KODAX_DEFAULT_PROVIDER,oo as KODAX_DEFAULT_TIMEOUT,Oo as KODAX_FILE_MEDIA_TYPES,ro as KODAX_HARD_TIMEOUT,Mo as KODAX_IMAGE_MEDIA_TYPES,mo as KODAX_MAX_INCOMPLETE_RETRIES,eo as KODAX_MAX_RETRIES,$ as KODAX_MAX_TOKENS,l as KODAX_PROVIDERS,k as KODAX_PROVIDER_SNAPSHOTS,p as KODAX_REASONING_MODE_SEQUENCE,fo as KODAX_RETRY_BASE_DELAY,t as KODAX_STABLE_EFFORT_INTENTS,po as KODAX_STAGGER_DELAY,Om as KODAX_TOOLS,de as KODAX_UNDERLYING_CAPABILITY_TOPICS,No as KODAX_VIDEO_MEDIA_TYPES,i as KodaXAnthropicCompatProvider,h as KodaXBaseProvider,kx as KodaXClient,o as KodaXError,Im as KodaXExtensionRuntime,vo as KodaXMediaError,j as KodaXOpenAICompatProvider,r as KodaXProviderError,e as KodaXRateLimitError,Ur as KodaXSessionError,Vr as KodaXTerminalError,Tr as KodaXToolError,Kr as LEARNING_REVIEW_PROMPT_SHA256,Lr as LEARNING_REVIEW_SCHEMA_SHA256,Ir as LEARNING_REVIEW_SYSTEM_PROMPT,Jr as LEARNING_REVIEW_TOOL,ir as LINEAGE_ENTRY_TYPES,ft as LSP_SERVERS,kr as LineageCompaction,jr as LineageExtension,mt as LspService,ge as MANUAL_REGISTRY,ce as MANUAL_TOPIC_IDS,Do as MAX_DIMENSION,Mx as MEMORY_INTERVENTION_SELECTOR_PROMPT,Nx as MEMORY_INTERVENTION_SELECTOR_SHA256,$o as McpAuthRequiredError,dr as McpCapabilityProvider,_o as McpExpiredSessionError,gr as McpManager,cr as McpServerRuntime,Io as PASTE_TMP_DIR_ENV,Jo as PASTE_TMP_TTL_MS,jf as PLANNER_AGENT_NAME,xo as PROMISE_PATTERN,hp as PROMPT_SECTION_REGISTRY,_x as PROTOCOL_EMITTER_TOOLS,Sp as ProviderRecoveryCoordinator,oe as READ_DEFAULT_LIMIT,ee as READ_MAX_LINE_CHARS,re as READ_PREFLIGHT_SIZE_BYTES,Em as REPO_EXPLORER_AGENT_NAME,Fm as REPO_EXPLORER_TOOL_NAMES,ko as Runner,vt as SCOPED_REVIEW_OUTPUT_SCHEMA,hf as SCOUT_AGENT_NAME,Sa as SCOUT_THEN_AUTHOR_PROMPT_LINES,vp as SELF_KNOWLEDGE_ROUTING_RULE,gp as SYSTEM_PROMPT,Wt as SYSTEM_WORKFLOW_LIMITS,Qp as StableBoundaryTracker,Eo as TARGET_RAW_SIZE_BYTES,qf as TASK_ENGINE_ROLE_AGENTS,oa as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,La as TRACING_ENV,lf as WORKER_AGENT_NAME,dt as WORKFLOW_GENERATION_SYSTEM_PROMPT,km as _resetRuntimeForTesting,qm as activate,uo as actorQueueId,He as analyzeChangedScope,xm as appendAuditEntry,yr as appendSessionLineageLabel,Ef as applyAccountingDelta,At as applyFindingVerification,zr as applySessionCompaction,ve as applyToolResultGuardrail,Fr as archiveOldIslands,Ua as authorWorkflowViaWorker,na as autoModeDenialShouldFallback,Ba as bashSignalCollector,Ma as bootstrapTracing,cx as boundedRevise,wa as breakerShouldFallback,dx as budgetCeiling,Xt as buildApprovalSummary,Hf as buildBlockedGoal,wp as buildCapabilityContextSections,ea as buildClassifierPrompt,If as buildCompleteGoal,Df as buildCreatedGoal,Zp as buildFallbackRoutingDecision,Ax as buildGoalRuntimeBinding,br as buildInitializeCapabilities,mm as buildLlmReviewPrompt,ie as buildManualToolDescription,Fx as buildMcpReverseCapabilities,Ff as buildPausedGoal,Bp as buildPromptMessageContent,lp as buildPromptSnapshot,Tp as buildProviderCapabilitySnapshot,_p as buildProviderPolicyHintsForDecision,Up as buildProviderPolicyPromptNotes,Ge as buildRepoIntelligenceContext,Te as buildRepoIntelligenceIndex,De as buildRepoOverview,Gf as buildResumedGoal,Dt as buildScopedReviewFinalPrompt,Bt as buildScopedReviewPrimaryPrompt,Ct as buildScopedReviewVerificationPrompt,Ta as buildScoutThenAuthorPrompt,up as buildSelfKnowledgeRoutingRule,Dr as buildSessionTree,zp as buildSystemPrompt,yp as buildSystemPromptSnapshot,bp as buildToolResultBudget,cp as buildToolResultBudgetFromUsage,Lf as buildToolSearchIndex,Tt as buildWorkflowCostReport,kt as buildWorkflowGenerationSkillContext,jt as buildWorkflowGenerationUserPrompt,Nr as canonicalMemoryProjectId,Aa as checkAbsoluteDeny,Ap as checkIncompleteToolCalls,ot as checkPromiseSignal,dp as clampToolResultPolicyToBudget,Yt as clampWorkflowLimits,xa as classify,Sx as classifyBashCommand,Xr as classifyError,Ce as classifyFileCategory,Op as classifyResilienceError,pp as cleanupExpiredToolOutputs,To as cleanupIncompleteToolCalls,tp as cleanupUnreferencedToolOutputs,T as clearRuntimeModelProviders,Sr as clearShellExecutionEnvironmentCache,Da as collectAllSignals,Km as combineExtensionRuntimes,Ux as computeInputSignature,aa as computeRulesFingerprint,jm as configureRuntime,Kp as consumeCompactionCooldown,tf as convertCapabilityReadResult,pf as convertProviderSearchResults,Er as countActiveLineageMessages,bo as countTokens,co as createAgent,ja as createAutoModeDenialTracker,Ha as createAutoModeToolGuardrail,Rx as createBashClassifierConfig,Ka as createBashPrefixExtractor,Wm as createBuiltinToolDefinition,ua as createCircuitBreaker,Ox as createCodingMemoryInterventionRunner,st as createCodingWorkflowBackend,Ip as createCompactionAntiThrashState,om as createCtxProxy,F as createCustomProvider,tx as createDefaultCodingAgent,Tx as createDenialTracker,Lm as createExtensionRuntime,bt as createExternalActorTurnExecutor,Bo as createFileArtifactFromPath,go as createHandoff,Ao as createImageArtifactFromPath,ho as createInMemorySession,Ix as createKodaXTaskRunner,at as createLocalCodingActorControl,Vo as createMcpCapabilityId,hr as createMcpManager,or as createMcpTransport,Mr as createProductionLearningReviewer,ip as createPromptSection,$p as createReasoningPlan,Vt as createRunGraphWriter,Fp as createRuntimeContextBudgetSnapshot,ax as createSessionControl,qr as createSessionLineage,ra as createToolResultTruncationGuardrail,Co as createVideoArtifactFromPath,Oa as createWorkflowLifecycleController,Ra as createWorkflowPatternTemplateModule,ox as createWorkflowRunManager,nx as decideWorkflowInvocation,Tf as dedupeExtensionPathsByEntrypoint,Uo as defaultMcpCacheDir,Zf as defaultPolicy,Ot as deleteSavedWorkflow,im as disableSelfModify,mr as discoverAuthorizationServerMetadata,Xf as discoverDefaultExtensions,Wf as discoverExtensionsInDirectory,Vf as discoverExtensionsInDirectoryDetailed,Dm as discoverMarkdownAgents,pr as discoverOAuthEndpoints,fr as discoverProtectedResourceMetadata,It as discoverSavedWorkflows,vf as drainPendingSwaps,b as effortToLegacyReasoningMode,Zx as emitVerdict,_t as emitWorkflowAgentDigest,Ro as enqueueWithArtifacts,Gm as ensureBuiltinRepoExplorerAgent,ao as estimateTokens,Ep as estimateToolSchemaTokens,Vp as evaluateProviderPolicy,Uf as excludeExtensionPathsByEntrypoint,Of as exec,mp as executeTool,lr as extractArtifactLedger,Ja as extractCommandPrefix,Dp as extractComparableUserMessageText,mf as extractHtmlTitle,er as extractInsufficientScope,Cp as extractPromptComparableText,rr as extractResourceMetadataUrl,Hr as extractTitleFromMessages,Ca as fileSignalCollector,af as finalizeRetrievalResult,zm as findByVersion,Ar as findPreviousUserEntryId,Cr as forkSessionLineage,sp as formatAgentsForPrompt,Kx as formatParallelDispatchResult,fe as formatSize,Gr as generateSessionId,nt as generateWorkflow,qt as generateWorkflowFromOptions,Nm as getActiveExtensionRuntime,no as getAgentConfigHome,qo as getAgentConfigPath,Ym as getAllRegisteredTools,so as getAppDataDir,W as getAvailableProviderNames,Vm as getBuiltinRegisteredToolDefinition,Um as getBuiltinToolDefinition,Gt as getBuiltinWorkflow,N as getCustomModelCapabilities,H as getCustomProvider,K as getCustomProviderList,M as getCustomProviderModelDescriptors,L as getCustomProviderModels,J as getCustomProviderNames,Rf as getDefaultExtensionDirectory,pt as getDefaultLspService,rx as getDefaultWorkflowRunManager,Xx as getDenialContext,Ye as getImpactEstimate,np as getKodaxGlobalDir,Zo as getMcpCachePaths,C as getModelCapabilities,Po as getModelInputCapabilities,Ve as getModuleContext,Xe as getProcessContext,q as getProvider,w as getProviderConfiguredCapabilityProfile,v as getProviderConfiguredReasoningCapability,y as getProviderList,u as getProviderModel,B as getProviderModelDescriptors,z as getProviderModels,Sm as getRegisteredToolDefinition,Ue as getRepoIntelligenceIndex,Ee as getRepoOverview,Ze as getRepoRoutingSignals,rp as getRequiredToolParams,Q as getRuntimeModelProvider,S as getRuntimeModelProviderNames,sr as getSessionLineagePath,ur as getSessionMessagesFromLineage,We as getSymbolContext,Qm as getTool,Rm as getToolDefinition,Tm as getToolRegistrations,ue as getToolResultPolicy,Qa as getWorkflowPatternTemplate,Af as goalTokenDelta,lx as hasExplicitNaturalLanguageWorkflowIntent,uf as hasPendingSwap,yo as inferImageMediaType,Yp as inferTaskType,zo as inferVideoMediaType,qe as inspectEditFailure,Se as inspectRepoIntelligenceRuntime,I as isCustomProviderName,Wx as isDeniedRecently,V as isKnownProvider,Jx as isParallelDispatchDirective,s as isProviderConfigured,A as isProviderName,R as isRuntimeModelProviderName,Pp as isSessionRecoveryCandidateError,Qf as isSupportedExtensionModulePath,_m as isToolFileMutation,op as isToolMutation,$m as isToolNetworkRead,Zm as isToolPlanModeAllowed,Jf as isValidTokenBudget,rt as languageIdForPath,Am as listAll,Z as listAllModelCapabilities,vm as listArtifacts,D as listBuiltinModelCapabilities,Xm as listBuiltinToolDefinitions,Ht as listBuiltinWorkflows,wf as listCodingDispatchableAgents,ym as listConstructed,O as listCustomProviderModelCapabilities,fp as listToolDefinitions,ep as listTools,Pa as listWorkflowPatternTemplates,qp as loadAgentsFiles,Bm as loadAgentsFromMarkdown,ga as loadAutoRules,Qt as loadGeneratedWorkflowFromRun,rm as loadHandler,Cm as loadMarkdownAgentScope,Lt as loadSavedWorkflow,Kt as loadSavedWorkflowCapsule,ar as loadValidToken,zf as makeDisabledGoalToolsContext,a as mapLegacyReasoningModeToEffortIntent,ap as maybeRunReferenceAwareToolOutputGc,xp as maybeRunToolOutputGc,Ex as mcpRootsFromWorkspace,nr as mergeArtifactLedger,zt as mergeScopedReviewResults,Or as normalizeKodaXAgentMode,Wo as normalizeMcpCapabilityId,Fo as normalizePastedImage,x as normalizeReasoningEffortValue,yt as normalizeScopedReviewResult,Pr as normalizeShellExecutionContract,Jt as normalizeWorkflowModule,jp as orderPromptSections,ut as parallelInvestigation,da as parseAutoRules,fa as parseClassifierOutput,ne as parseEditToolError,pm as parseLlmReviewVerdict,Xo as parseMcpCapabilityId,ya as parseModelSpec,c as parseReasoningEffortEnv,Rr as parseSandboxEnvironmentPass,m as parseTimeoutSecEnvMs,Nf as parseToolSearchQuery,lt as parseWorkflowGeneration,xr as performOAuthLogin,Ko as persistImageAsBlock,ae as persistToolOutput,Hp as planToolExposure,St as preflightWorkflowCapsule,_e as prewarmRepoIntelligenceCaches,ct as providerResilienceConfigFromTimeouts,Lo as prunePasteTmpDir,Ho as readAndNormalizeClipboardImage,wm as readArtifact,am as readAuditEntries,cm as readBudget,Go as readClipboardImage,hm as readDisableState,Fa as readSpeculativeWindowFromEnv,ba as readTrustState,Xp as reasoningModeToDepth,Rp as reconstructMessagesWithToolGuard,la as recordAutoModeAllow,ka as recordAutoModeBlock,sx as recordBlockerAttempt,va as recordBreakerError,Lp as recordCompactionSavings,Vx as recordDenial,jx as registerCodingInvariants,Cx as registerConfiguredMcpCapabilityProvider,G as registerCustomProviders,P as registerModelProvider,tr as registerOAuthClient,Gx as registerOfficialSandboxExtension,jo as registerPresetDispatcher,Pm as registerTool,sm as rehydrateActiveArtifacts,dm as remainingSelfModifyBudget,Nt as renameSavedWorkflow,Ie as renderChangedScope,Pe as renderImpactEstimate,Me as renderModuleContext,Oe as renderProcessContext,kp as renderPromptSections,Fe as renderRepoOverview,xf as renderRetrievalResult,Ne as renderSymbolContext,Dx as replaceConfiguredMcpCapabilityProvider,Pt as replaceSavedWorkflow,et as reportLspDiagnostics,ux as resetBlockerCounter,gm as resetBudget,za as resolveClassifierModel,yf as resolveCodingDispatchableAgent,sf as resolveConstructedAgent,Sf as resolveExtensionEntrypoint,he as resolveKodaXManual,Y as resolveModelCapabilities,U as resolveProvider,X as resolveProviderModelDescriptors,d as resolveReasoningEffort,g as resolveReasoningEffortForModelSwitch,Wp as resolveReasoningMode,Re as resolveRepoIntelligenceMode,Qe as resolveRepoIntelligenceRuntimeConfig,Np as resolveResilienceConfig,vr as resolveSessionLineageTarget,Kf as resolveToolBridgeTarget,gx as resolveToolCapability,xe as resolveToolOutputDir,_ as resolveWireEffort,ht as resolveWorkflowGenerationTimeoutMs,Na as resolveWorkflowIdentity,um as revoke,Br as rewindSessionLineage,Hm as rollbackSelfModify,em as runAstRules,xx as runKodaX,tm as runLlmReview,Bx as runManagedTask,Hx as runOrchestration,$t as runWorkflowFromOptions,Zt as runWorkflowModule,Ut as safeWorkflowArtifactName,Mt as saveGeneratedWorkflow,Rt as saveGeneratedWorkflowFromRun,Et as scopedReview,Yo as searchMcpCatalog,Mf as searchToolIndex,Mm as setActiveExtensionRuntime,lo as setAgentConfigHome,wr as setSessionLineageActiveEntry,Qr as shellExecutionContractFingerprint,Cf as shouldFlipBudgetLimited,Jp as shouldSkipLlmCompaction,tt as shutdownDefaultLspService,Ga as speculativeRace,lm as stage,bx as startKodaX,ex as startManagedWorkflow,ma as stripAssistantText,ff as stripHtmlToText,nm as testArtifact,f as timeoutSecToMs,Be as toolAskUserQuestion,we as toolBash,Le as toolChangedDiff,Ke as toolChangedScope,df as toolCodeSearch,le as toolEdit,ye as toolGlob,ze as toolGrep,ef as toolImpactEstimate,se as toolInsertAfterAnchor,$e as toolModuleContext,hx as toolPermission,rf as toolProcessContext,be as toolRead,Je as toolRepoOverview,gf as toolSemanticLookup,of as toolSymbolContext,Ae as toolUndo,cf as toolWebFetch,bf as toolWebSearch,ke as toolWrite,me as truncateHead,te as truncateLine,pe as truncateTail,ca as trustProjectRules,Bf as turnWallTimeDelta,So as validateAndFixToolHistory,E as validateCustomProviderConfig,it as validateGeneratedWorkflowSource,Qo as validateInputArtifactsForModel,Lx as validateSubtaskIndependence,fm as validateToolSchemaForProvider,zx as verifyGoalCompletion,Pf as webhook,wx as withGoalBeforeNextTurn,yx as withGoalStopHook,je as withManualToolBranding,nf as workerAgent,qx as workflowStartOutcomeConsumesTurn,Va as writeReviewPackets};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as MemoryContextIdentity, m as MemoryItemRef, a as KodaXSessionLineage, K as KodaXSessionArtifactLedgerEntry, h as MemoryEvent, w as MemoryReviewRunner, e as MemoryController, C as CreateMemoryAgentOptions, M as MemoryAgent } from './types-chunks/types-
|
|
2
|
-
export { b as MemoryAgentTraceEvent, c as MemoryApplicability, f as MemoryDecisionReceipt, g as MemoryEpisodeOutcome, i as MemoryEvidenceGrade, j as MemoryEvidenceRef, k as MemoryInterventionInput, l as MemoryInterventionTrigger, n as MemoryObservation, o as MemoryObservationKind, p as MemoryPack, q as MemoryQueryInput, r as MemoryRecallCandidate, s as MemoryRecallInput, t as MemoryRecallRunner, u as MemoryRecallRunnerInput, v as MemoryReminder, x as MemorySelectionMode, y as MemorySession, z as MemorySessionInput, A as MemorySourcePolicy, P as PersistedOutcomeDigest } from './types-chunks/types-
|
|
3
|
-
import './types-chunks/types.d-
|
|
1
|
+
import { d as MemoryContextIdentity, m as MemoryItemRef, a as KodaXSessionLineage, K as KodaXSessionArtifactLedgerEntry, h as MemoryEvent, w as MemoryReviewRunner, e as MemoryController, C as CreateMemoryAgentOptions, M as MemoryAgent } from './types-chunks/types-Bf3Y3mW-.js';
|
|
2
|
+
export { b as MemoryAgentTraceEvent, c as MemoryApplicability, f as MemoryDecisionReceipt, g as MemoryEpisodeOutcome, i as MemoryEvidenceGrade, j as MemoryEvidenceRef, k as MemoryInterventionInput, l as MemoryInterventionTrigger, n as MemoryObservation, o as MemoryObservationKind, p as MemoryPack, q as MemoryQueryInput, r as MemoryRecallCandidate, s as MemoryRecallInput, t as MemoryRecallRunner, u as MemoryRecallRunnerInput, v as MemoryReminder, x as MemorySelectionMode, y as MemorySession, z as MemorySessionInput, A as MemorySourcePolicy, P as PersistedOutcomeDigest } from './types-chunks/types-Bf3Y3mW-.js';
|
|
3
|
+
import './types-chunks/types.d-CgrXrFrq.js';
|
|
4
4
|
|
|
5
5
|
/** Source-controlled F275 policy identity. Not a runtime configuration knob. */
|
|
6
6
|
declare const MEMORY_POLICY_VERSION = "f275-v0.7.77.1";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{a as r,b as t,c as m,d as y,e as a,f as l,g as n,h as p}from"./chunks/chunk-
|
|
2
|
+
import{a as r,b as t,c as m,d as y,e as a,f as l,g as n,h as p}from"./chunks/chunk-OWQT3FTE.js";import{lb as o,o as e}from"./chunks/chunk-GEECPO2H.js";import"./chunks/chunk-H5LLM7DB.js";import"./chunks/chunk-ONUPGMER.js";export{m as MEMORY_EVIDENCE_CLAIM_MAX_CHARS,t as MEMORY_EVIDENCE_OVERRIDE,r as MEMORY_EVIDENCE_PREFIX,a as MEMORY_EVIDENCE_REF_LIMIT,y as MEMORY_EVIDENCE_REF_MAX_CHARS,l as MEMORY_EVIDENCE_TOKEN_RESERVE,e as MEMORY_POLICY_VERSION,p as createMemoryAgent,o as createMemoryControlPlane,n as renderMemoryEvidenceEnvelope};
|
package/dist/sdk-llm.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { K as KodaXAssuranceIntent, b as KodaXChildFanoutClass, d as KodaXCustomProviderConfig, e as KodaXEphemeralSuffix, f as KodaXExecutionMode, g as KodaXExecutionPattern, h as KodaXHarnessProfile, j as KodaXListModelsResult, l as KodaXModelDescriptor, m as KodaXMutationSurface, n as KodaXNormalizedReasoningRequest, o as KodaXProtocolFamily,
|
|
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 KODAX_STABLE_EFFORT_INTENTS, g as KodaXAnthropicCompatProvider, h as KodaXError, i as KodaXModelCapabilities, j as KodaXNetworkError, k as KodaXOpenAICompatProvider, l as KodaXProviderError, m as KodaXRateLimitError, n as KodaXToolCallIdError, P as ProviderName, R as ResolveWireEffortInput, o as ResolvedWireEffort,
|
|
1
|
+
import { a8 as KodaXVerifyCredentialResult, k as KodaXMessage, q as KodaXProviderCapabilityProfile, i as KodaXImageBlock, a2 as KodaXToolDefinition, I as KodaXReasoningRequest, z as KodaXProviderStreamOptions, O as KodaXStreamResult, a9 as KodaXVerifyStrategy, c as KodaXContentBlock, a as KodaXCacheBoundary } from './types-chunks/types.d-CgrXrFrq.js';
|
|
2
|
+
export { K as KodaXAssuranceIntent, b as KodaXChildFanoutClass, d as KodaXCustomProviderConfig, e as KodaXEphemeralSuffix, f as KodaXExecutionMode, g as KodaXExecutionPattern, h as KodaXHarnessProfile, j as KodaXListModelsResult, l as KodaXModelDescriptor, m as KodaXMutationSurface, n as KodaXNormalizedReasoningRequest, o as KodaXOpenAICompatMaxOutputTokensField, 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, A as KodaXProviderToolCallingFidelity, B as KodaXProviderTransport, C as KodaXReasoningCapability, D as KodaXReasoningEffortPreset, E as KodaXReasoningEffortRequest, F as KodaXReasoningEffortWireStrategy, G as KodaXReasoningMode, H as KodaXReasoningProfile, J as KodaXRedactedThinkingBlock, L as KodaXReviewScale, M as KodaXRiskLevel, N as KodaXStableEffortIntent, P as KodaXTaskActionability, Q as KodaXTaskBudgetOverrides, R as KodaXTaskComplexity, S as KodaXTaskFamily, T as KodaXTaskResultMetadata, U as KodaXTaskResultSource, V as KodaXTaskRoutingDecision, W as KodaXTaskType, X as KodaXTaskWorkIntent, Y as KodaXTextBlock, Z as KodaXThinkingBlock, _ as KodaXThinkingBudgetMap, $ as KodaXThinkingDepth, a0 as KodaXThinkingWireStrategy, a1 as KodaXTokenUsage, a3 as KodaXToolResultBlock, a4 as KodaXToolResultContentItem, a5 as KodaXToolResultImageItem, a6 as KodaXToolResultTextItem, a7 as KodaXToolUseBlock, aa as KodaXWireReasoningEffort } from './types-chunks/types.d-CgrXrFrq.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 KODAX_STABLE_EFFORT_INTENTS, g as KodaXAnthropicCompatProvider, h as KodaXError, i as KodaXModelCapabilities, j as KodaXNetworkError, k as KodaXOpenAICompatProvider, l as KodaXProviderError, m as KodaXRateLimitError, n as KodaXToolCallIdError, P as ProviderName, R as ResolveWireEffortInput, o as ResolvedWireEffort, p as clampThinkingBudget, q as clearRuntimeModelProviders, r as createCustomProvider, s as effortToLegacyReasoningMode, t as getAvailableProviderNames, u as getCustomModelCapabilities, v as getCustomProvider, w as getCustomProviderList, x as getCustomProviderModelDescriptors, y as getCustomProviderModels, z as getCustomProviderNames, A as getDefaultThinkingDepthForMode, B as getModelCapabilities, C as getProvider, D as getProviderConfiguredCapabilityProfile, E as getProviderConfiguredReasoningCapability, F as getProviderCredentialEnvironmentNames, G as getProviderList, H as getProviderModel, I as getProviderModelDescriptors, J as getProviderModels, L as getReasoningCapability, M as getRuntimeModelProvider, N as getRuntimeModelProviderCredentialEnvironmentNames, O as getRuntimeModelProviderNames, Q as isCustomProviderName, S as isKnownProvider, T as isProviderConfigured, U as isProviderName, V as isReasoningEnabled, W as isRuntimeModelProviderName, X as listAllModelCapabilities, Y as listBuiltinModelCapabilities, Z as listCustomProviderModelCapabilities, _ as listProviderModels, $ as mapDepthToOpenAIReasoningEffort, a0 as mapLegacyReasoningModeToEffortIntent, a1 as normalizeReasoningEffortValue, a2 as normalizeReasoningRequest, a3 as parseReasoningEffortEnv, a4 as registerCustomProviders, a5 as registerModelProvider, a6 as resolveModelCapabilities, a7 as resolveProvider, a8 as resolveProviderModelDescriptors, a9 as resolveReasoningEffort, aa as resolveReasoningEffortForModelSwitch, ab as resolveThinkingBudget, ac as resolveWireEffort, ad as validateCustomProviderConfig, ae as verifyProviderCredential } from './types-chunks/resolver.d-C9IW4fmU.js';
|
|
4
4
|
export { C as CostRate, a as CostTracker, D as DEFAULT_COST_RATES, K as KodaXLlmTimeoutConfig, b as KodaXResolvedLlmTimeoutConfig, P as ProviderCostSummary, R as RetryRecord, S as SessionCostSummary, T as TokenUsageRecord, c as calculateCost, d as createCostTracker, f as formatCost, e as formatCostReport, g as getCostRate, h as getSummary, p as parseTimeoutSecEnvMs, r as recordRetry, i as recordUsage, j as resolveLlmTimeoutConfig, t as timeoutSecToMs } from './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
5
|
-
export { C as CapabilityCache, a as CapabilityCacheEntry, b as CapabilityCacheSource, c as addRejectedEffort, d as capabilityCacheKey, g as getRejectedEfforts, n as narrowReasoningProfile, r as removeCacheEntry, s as sanitizeCapabilityCache } from './types-chunks/capability-learning.d-
|
|
6
|
-
import { K as KodaXBaseProvider } from './types-chunks/base.d-
|
|
7
|
-
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-
|
|
5
|
+
export { C as CapabilityCache, a as CapabilityCacheEntry, b as CapabilityCacheSource, c as addRejectedEffort, d as capabilityCacheKey, g as getRejectedEfforts, n as narrowReasoningProfile, r as removeCacheEntry, s as sanitizeCapabilityCache } from './types-chunks/capability-learning.d-iPSiAmc_.js';
|
|
6
|
+
import { K as KodaXBaseProvider } from './types-chunks/base.d-DxG0m09Z.js';
|
|
7
|
+
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-DxG0m09Z.js';
|
|
8
8
|
import { SessionNotification } from '@agentclientprotocol/sdk';
|
|
9
|
+
export { S as SideQueryDiagnostics, a as SideQueryRequest, b as SideQueryResult, c as SideQueryStopReason, d as SideQueryTerminalPhase, s as sideQuery } from './types-chunks/side-query.d-CP1LiRiH.js';
|
|
9
10
|
export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult, c as CapabilitySearchFailure, d as CapabilitySearchFreshness, e as CapabilitySearchOptions, f as CapabilitySearchSnapshot } from './types-chunks/capability.d-K664nHOS.js';
|
|
10
11
|
import '@anthropic-ai/sdk';
|
|
11
12
|
import 'openai';
|
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 as or,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,Na as Oo,O,Oa as Po,P,Pa as Qo,Q,Qa as Ro,R,Ra as So,S,Sa as To,T,Ta as Uo,U,Ua as Vo,V,Va as Wo,W,Wa as Xo,X,Xa as Yo,Y,Ya as Zo,Z,Za as _o,_,_a as $o,a as o,aa as oo,ab as rr,b as r,ba as ro,bb as er,c as e,ca as eo,cb as fr,d as f,da as fo,db as mr,e as m,ea as mo,eb as pr,f as p,fa as po,fb as tr,g as t,ga as to,gb as xr,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-
|
|
2
|
+
import{$,$a as or,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,Na as Oo,O,Oa as Po,P,Pa as Qo,Q,Qa as Ro,R,Ra as So,S,Sa as To,T,Ta as Uo,U,Ua as Vo,V,Va as Wo,W,Wa as Xo,X,Xa as Yo,Y,Ya as Zo,Z,Za as _o,_,_a as $o,a as o,aa as oo,ab as rr,b as r,ba as ro,bb as er,c as e,ca as eo,cb as fr,d as f,da as fo,db as mr,e as m,ea as mo,eb as pr,f as p,fa as po,fb as tr,g as t,ga as to,gb as xr,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-SG6P4SZS.js";import"./chunks/chunk-ONUPGMER.js";export{_o as DEFAULT_COST_RATES,d as KODAX_API_MIN_INTERVAL,b as KODAX_CAPPED_MAX_OUTPUT_TOKENS,ho as KODAX_DEFAULT_PROVIDER,w as KODAX_DEFAULT_THINKING_BUDGETS,c as KODAX_ESCALATED_MAX_OUTPUT_TOKENS,a as KODAX_MAX_TOKENS,go as KODAX_PROVIDERS,co as KODAX_PROVIDER_SNAPSHOTS,u as KODAX_REASONING_MODE_SEQUENCE,y as KODAX_REASONING_SAFETY_RESERVE,v as KODAX_STABLE_EFFORT_INTENTS,po as KodaXAcpProvider,fo as KodaXAnthropicCompatProvider,V as KodaXBaseProvider,f as KodaXError,t as KodaXNetworkError,mo as KodaXOpenAICompatProvider,m as KodaXProviderError,p as KodaXRateLimitError,x as KodaXToolCallIdError,P as WORKFLOW_MAX_CONCURRENCY_ABSOLUTE,O as WORKFLOW_MAX_CONCURRENCY_DEFAULT,n as addRejectedEffort,or as calculateCost,j as capabilityCacheKey,K as clampThinkingBudget,X as classifyStopReason,_ as classifyVerifyError,Po as clearRuntimeModelProviders,rr as createCostTracker,Ao as createCustomProvider,E as effortToLegacyReasoningMode,N as extractHeadersFromError,pr as formatCost,tr as formatCostReport,So as getAvailableProviderNames,to as getCodexCliDefaultModel,ao as getCodexCliKnownModels,$o as getCostRate,Io as getCustomModelCapabilities,Co as getCustomProvider,Fo as getCustomProviderList,Ho as getCustomProviderModelDescriptors,Go as getCustomProviderModels,Eo as getCustomProviderNames,I as getDefaultThinkingDepthForMode,xo as getGeminiCliDefaultModel,bo as getGeminiCliKnownModels,wo as getModelCapabilities,io as getProvider,no as getProviderConfiguredCapabilityProfile,lo as getProviderConfiguredReasoningCapability,To as getProviderCredentialEnvironmentNames,qo as getProviderList,ko as getProviderModel,vo as getProviderModelDescriptors,so as getProviderModels,z as getReasoningCapability,l as getRejectedEfforts,S as getRunScopedConfig,Lo as getRuntimeModelProvider,Oo as getRuntimeModelProviderCredentialEnvironmentNames,No as getRuntimeModelProviderNames,r as getScopedProviderCredential,mr as getSummary,$ as insertCacheBoundary,oo as isCacheBoundary,Y as isCleanStop,Do as isCustomProviderName,Ro as isKnownProvider,jo as isProviderConfigured,uo as isProviderName,A as isReasoningEnabled,Mo as isRuntimeModelProviderName,Wo as listAllModelCapabilities,yo as listBuiltinModelCapabilities,Jo as listCustomProviderModelCapabilities,Yo as listProviderModels,ro as lowerCacheBoundaries,L as mapDepthToOpenAIReasoningEffort,D as mapLegacyReasoningModeToEffortIntent,k as narrowReasoningProfile,U as normalizeCapabilityProfile,C as normalizeReasoningEffortValue,B as normalizeReasoningRequest,F as parseReasoningEffortEnv,M as parseRetryAfter,h as parseTimeoutSecEnvMs,W as parseToolInputWithSalvage,er as recordRetry,fr as recordUsage,e as redactScopedProviderCredential,Bo as registerCustomProviders,Ko as registerModelProvider,q as removeCacheEntry,i as resolveLlmTimeoutConfig,Vo as resolveModelCapabilities,T as resolvePromptCacheDisabled,Qo as resolveProvider,Uo as resolveProviderModelDescriptors,G as resolveReasoningEffort,H as resolveReasoningEffortForModelSwitch,J as resolveThinkingBudget,Zo as resolveWireEffort,Q as resolveWorkflowMaxConcurrency,Z as runVerifyCredential,o as runWithProviderCredential,R as runWithScopedConfig,s as sanitizeCapabilityCache,xr as sideQuery,eo as stripCacheBoundaries,g as timeoutSecToMs,zo as validateCustomProviderConfig,Xo as verifyProviderCredential};
|
package/dist/sdk-mcp.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
2
2
|
export { M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
|
|
3
3
|
export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilityProvider, c as McpCapabilityRisk, d as McpCatalogItem, f as McpElicitRequest, g as McpElicitResult, h as McpIcon, i as McpManager, j as McpProviderOptions, k as McpReverseCapabilities, l as McpRoot, m as McpSamplingRequest, n as McpSamplingResult, o as McpServerCatalog, p as McpServerCatalogSnapshot, q as McpServerLogs, r as McpServerRuntime, s as McpServerRuntimeDiagnostics, t as McpServerStatus, u as McpServerToolList, v as McpToolTaskSupport, w as buildInitializeCapabilities, x as createMcpCapabilityId, y as createMcpManager, z as defaultMcpCacheDir, A as getMcpCachePaths, B as normalizeMcpCapabilityId, C as parseMcpCapabilityId, D as searchMcpCatalog } from './types-chunks/manager.d-B67TmPO1.js';
|
|
4
|
-
export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportEvents, O as OAuthClientInfo,
|
|
4
|
+
export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportCleanupIncompleteError, d as McpTransportEvents, O as OAuthClientInfo, e as OAuthLoginConsent, P as PerformOAuthLoginOptions, f as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, g as createMcpTransport, h as discoverAuthorizationServerMetadata, i as discoverOAuthEndpoints, j as discoverProtectedResourceMetadata, k as extractInsufficientScope, l as extractResourceMetadataUrl, m as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-6i-vidxv.js';
|
|
5
5
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
6
6
|
|
|
7
7
|
interface McpTestServerFixture {
|
package/dist/sdk-mcp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{
|
|
2
|
+
import{Ab as e,Bb as t,Cb as r,Db as a,Eb as p,Fb as i,Gb as c,Hb as o,Ib as n,Jb as M,Kb as s,Lb as l,Mb as d,Nb as u,Ob as C,Pb as v,Qb as g,Rb as S,Sb as h,Tb as R,Ub as m,Vb as A,Wb as b,Xb as f}from"./chunks/chunk-RQPMGRTR.js";import"./chunks/chunk-GEECPO2H.js";import"./chunks/chunk-M4N2JZTZ.js";import"./chunks/chunk-H5LLM7DB.js";import"./chunks/chunk-ONUPGMER.js";export{o as McpAuthRequiredError,m as McpCapabilityProvider,c as McpExpiredSessionError,A as McpManager,R as McpServerRuntime,n as McpTransportCleanupIncompleteError,h as buildInitializeCapabilities,t as createMcpCapabilityId,b as createMcpManager,f as createMcpTestServerFixture,M as createMcpTransport,e as defaultMcpCacheDir,u as discoverAuthorizationServerMetadata,C as discoverOAuthEndpoints,d as discoverProtectedResourceMetadata,l as extractInsufficientScope,s as extractResourceMetadataUrl,i as getMcpCachePaths,S as loadValidToken,r as normalizeMcpCapabilityId,a as parseMcpCapabilityId,g as performOAuthLogin,v as registerOAuthClient,p as searchMcpCatalog};
|
package/dist/sdk-media.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as KodaXImageBlock } from './types-chunks/types.d-
|
|
1
|
+
import { i as KodaXImageBlock } from './types-chunks/types.d-CgrXrFrq.js';
|
|
2
2
|
|
|
3
3
|
type KodaXMediaErrorCode = 'CLIPBOARD_EMPTY' | 'CLIPBOARD_IMAGE_UNAVAILABLE' | 'UNSUPPORTED_PLATFORM' | 'IMAGE_DECODE_FAILED' | 'IMAGE_TOO_LARGE' | 'UNSUPPORTED_MEDIA_TYPE' | 'MODEL_INPUT_UNSUPPORTED' | 'FILE_ACCESS_DENIED';
|
|
4
4
|
interface KodaXMediaErrorOptions {
|
package/dist/sdk-media.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{A as k,B as l,C as n,D as q,E as s,F as u,k as o,l as r,m as e,n as f,o as m,p,q as t,r as x,s as a,t as b,u as c,v as d,w as g,x as h,y as i,z as j}from"./chunks/chunk-
|
|
2
|
+
import{A as k,B as l,C as n,D as q,E as s,F as u,k as o,l as r,m as e,n as f,o as m,p,q as t,r as x,s as a,t as b,u as c,v as d,w as g,x as h,y as i,z as j}from"./chunks/chunk-M4N2JZTZ.js";import"./chunks/chunk-H5LLM7DB.js";import"./chunks/chunk-ONUPGMER.js";export{r as ImageResizeError,n as KODAX_FILE_MEDIA_TYPES,k as KODAX_IMAGE_MEDIA_TYPES,l as KODAX_VIDEO_MEDIA_TYPES,o as KodaXMediaError,x as MAX_DIMENSION,g as PASTE_TMP_DIR_ENV,h as PASTE_TMP_TTL_MS,a as TARGET_RAW_SIZE_BYTES,p as createFileArtifactFromPath,m as createImageArtifactFromPath,t as createVideoArtifactFromPath,u as enqueueWithArtifacts,q as getModelInputCapabilities,e as inferImageMediaType,f as inferVideoMediaType,b as normalizePastedImage,i as persistImageAsBlock,j as prunePasteTmpDir,d as readAndNormalizeClipboardImage,c as readClipboardImage,s as validateInputArtifactsForModel};
|
package/dist/sdk-repl.d.ts
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
|
-
import { A as AppProps,
|
|
3
|
-
export { a as AppState, b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, d as Completer, e as Completion, f as ConfirmResult,
|
|
4
|
-
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, a as InkRuntimeRunner, b as InkRuntimeRunnerInput, c as InkRuntimeStatusProvider, R as RUNTIME_PERMISSION_PENDING_NOTICE,
|
|
5
|
-
import { a as BashPrefixExtractor, Q as KodaXEvents, t as KodaXAgentMode,
|
|
6
|
-
import { c as QueuedMessage } from './types-chunks/types.d-
|
|
7
|
-
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, c as extractTextContent, d as extractTitle, f as formatMessagePreview, r as restoreHistoryItemsFromSession, s as seedToHistoryItem, t as toolCallSeedToHistoryToolCall, g as trimPersistedUiHistorySnapshot } from './types-chunks/sdk-session-
|
|
8
|
-
import { c as CommandInfo } from './types-chunks/utils.d-
|
|
9
|
-
export { A as AutoModeSettings, a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, h as InteractiveMode, K as KODAX_CONFIG_FILE, i as KODAX_DIR, j as KODAX_EXAMPLE_CONFIG_FILE, k as KODAX_INTEGRATION_EXAMPLE_FILES, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as ResolveAutoModeSettingsInput, n as ResolvedAutoModeSettings, o as RuntimeSurfaceMode, p as RuntimeSurfaceStatus, q as createInteractiveContext, r as ensureExampleConfigFile, s as ensureExampleConfigFiles, t as getGitRoot, u as getProviderList, v as getProviderModel, w as getVersion, x as hydrateProcessEnvFromShell, y as isProviderConfigured, z as loadAutoModeSettings, B as loadConfig, D as prepareRuntimeConfig, E as rateLimitedCall, F as registerConfiguredCustomProviders, G as resolveAutoModeSettings, H as resolveRuntimeEffortSelection, J as resolveRuntimeModelSelection, L as resolveRuntimeProviderSelection, M as saveConfig, N as touchContext } from './types-chunks/utils.d-
|
|
10
|
-
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-
|
|
11
|
-
export {
|
|
2
|
+
import { A as AppProps, P as Message, av as UIState, h as CreatableHistoryItem, n as HistoryItem, as as ToolCall, au as UIActions, K as KeyInfo, E as KeypressHandler, ak as StreamingState, W as PromptEditingMode, I as InputPromptProps, aj as StatusBarProps, ap as Theme, at as ToolCallStatus, al as Suggestion, aw as UseTextBufferReturn, H as HistoryEntry, R as PastedContent, t as HistoryItemInfo, T as PermissionMode } from './types-chunks/public-api.d-BpJhHoa7.js';
|
|
3
|
+
export { a as AppState, b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, d as Completer, e as Completion, f as ConfirmResult, g as ConversationPageCacheCapacityError, i as CursorPosition, D as DEFAULT_UI_STATE, j as DeleteSessionResult, F as FILE_MODIFICATION_TOOLS, k as FileSessionStorage, l as ForkSessionOptions, m as FullTranscriptSessionData, o as HistoryItemAssistant, p as HistoryItemBase, q as HistoryItemError, r as HistoryItemEvent, s as HistoryItemHint, u as HistoryItemSidecar, v as HistoryItemSystem, w as HistoryItemThinking, x as HistoryItemToolGroup, y as HistoryItemType, z as HistoryItemUser, B as KeypressEvent, G as KeypressHandlerPriority, L as LearningBinding, J as LearningSurfaceSnapshot, M as LegacyMessageListProps, N as ListSessionsOptions, O as MemorySessionStorage, Q as PERMISSION_MODES, S as PermissionContext, U as PreparedSessionAppendBaseline, V as PreparedSessionTailDelta, X as PromptSubmitPayload, Y as RewindSessionOptions, Z as RunningSessionInfo, _ as SessionBundleExportDiagnostic, $ as SessionBundleExportFile, a0 as SessionBundleExportOptions, a1 as SessionBundleExportResult, a2 as SessionBundleExportStatus, a3 as SessionConversationHistoryData, a4 as SessionConversationHistoryEntry, a5 as SessionConversationHistoryIssue, a6 as SessionConversationHistoryIssueCode, a7 as SessionConversationHistoryStatus, a8 as SessionConversationMutationBoundary, a9 as SessionData, aa as SessionManager, ab as SessionReadCapture, ac as SessionReadError, ad as SessionReadErrorCode, ae as SessionReadOptions, af as SessionStorage, ag as SessionSummary, ah as SessionTranscriptEntry, ai as SessionTranscriptEntryType, am as TOOL_STATUS_ICONS, an as TextBuffer, ao as TextBufferOptions, aq as ThemeColors, ar as ThemeSymbols, ax as VisualCursor, ay as VisualLayout, az as WatchSessionsCallback, aA as appendClientNotice, aB as archiveSession, aC as compactSession, aD as computeConfirmTools, aE as conversationHistoryFromCapture, aF as createConversationEntryChain, aG as createMemorySessionStorage, aH as createSessionConversationHistoryRevision, aI as createSessionManager, aJ as deleteSession, aK as emptyConversationEntryChain, aL as exportSessionBundle, aM as extendConversationEntryChain, aN as forkSession, aO as isPermissionMode, aP as listRunningSessions, aQ as listSessions, aR as loadFullTranscript, aS as loadSession, aT as normalizePermissionMode, aU as permissionModeDisplayName, aV as readConversationHistory, aW as readFullTranscript, aX as readSessionCapture, aY as rewindSession, aZ as setActiveEntry, a_ as unarchiveSession, a$ as watchSessions } from './types-chunks/public-api.d-BpJhHoa7.js';
|
|
4
|
+
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, a as InkRuntimeRunner, b as InkRuntimeRunnerInput, c as InkRuntimeStatusProvider, d as InkTransientNotice, R as RUNTIME_PERMISSION_PENDING_NOTICE, e as RepLOptions, f as ReplRuntimeAutoModeControl, g as ReplRuntimeAutoModeSettings, h as ReplRuntimePermissionDecision, i as ReplRuntimePermissionGrantSuggestion, j as ReplRuntimePermissionPrompt, k as ReplRuntimePermissionRequest, l as ReplRuntimeRunner, m as ReplRuntimeRunnerInput, n as ReplRuntimeStatusProvider, o as executeCommand, p as getCommandRegistry, q as parseCommand, r as processSpecialSyntax, s as runInkInteractiveMode, t as runInteractiveMode, u as toReplRuntimeAutoModeSettings } from './types-chunks/repl.d-CZ12Ow3X.js';
|
|
5
|
+
import { a as BashPrefixExtractor, Q as KodaXEvents, t as KodaXAgentMode, b6 as ProviderRecoveryEvent, ad as KodaXResult } from './types-chunks/bash-prefix-extractor.d-CNSidpmv.js';
|
|
6
|
+
import { c as QueuedMessage } from './types-chunks/types.d-BZ9oXvTV.js';
|
|
7
|
+
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, c as extractTextContent, d as extractTitle, f as formatMessagePreview, r as restoreHistoryItemsFromSession, s as seedToHistoryItem, t as toolCallSeedToHistoryToolCall, g as trimPersistedUiHistorySnapshot } from './types-chunks/sdk-session-B3cfJKqF.js';
|
|
8
|
+
import { c as CommandInfo } from './types-chunks/utils.d-CGpHavsU.js';
|
|
9
|
+
export { A as AutoModeSettings, a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, h as InteractiveMode, K as KODAX_CONFIG_FILE, i as KODAX_DIR, j as KODAX_EXAMPLE_CONFIG_FILE, k as KODAX_INTEGRATION_EXAMPLE_FILES, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, P as PREVIEW_MAX_LENGTH, R as ResolveAutoModeSettingsInput, n as ResolvedAutoModeSettings, o as RuntimeSurfaceMode, p as RuntimeSurfaceStatus, q as createInteractiveContext, r as ensureExampleConfigFile, s as ensureExampleConfigFiles, t as getGitRoot, u as getProviderList, v as getProviderModel, w as getVersion, x as hydrateProcessEnvFromShell, y as isProviderConfigured, z as loadAutoModeSettings, B as loadConfig, D as prepareRuntimeConfig, E as rateLimitedCall, F as registerConfiguredCustomProviders, G as resolveAutoModeSettings, H as resolveRuntimeEffortSelection, J as resolveRuntimeModelSelection, L as resolveRuntimeProviderSelection, M as saveConfig, N as touchContext } from './types-chunks/utils.d-CGpHavsU.js';
|
|
10
|
+
import { d as KodaXCustomProviderConfig } from './types-chunks/types.d-CgrXrFrq.js';
|
|
11
|
+
export { T as KodaXTaskResultMetadata, U as KodaXTaskResultSource } from './types-chunks/types.d-CgrXrFrq.js';
|
|
12
12
|
import { Readable, Writable } from 'node:stream';
|
|
13
13
|
import { a as McpServerConfig, b as McpServersConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
14
|
-
export { E as ExtensionsIntegrationDocument, I as
|
|
15
|
-
export {
|
|
16
|
-
import {
|
|
17
|
-
import './types-chunks/center-types.d-BBT122uJ.js';
|
|
18
|
-
import './types-chunks/types.d-DCQVBqVn.js';
|
|
14
|
+
export { E as ExtensionsIntegrationDocument, I as IntegrationConfigConflictError, a as IntegrationConfigController, b as IntegrationConfigDiagnostic, c as IntegrationConfigListener, d as IntegrationConfigSnapshot, e as IntegrationConfigSource, f as IntegrationConfigStatus, g as IntegrationDocumentValidator, h as IntegrationDomain, L as LegacyIntegrationMigrationDomainPlan, i as LegacyIntegrationMigrationPlan, j as LegacyIntegrationMigrationResult, M as McpIntegrationDocument, m as migrateLegacyIntegrationConfig, p as parseExtensionsIntegrationDocument, k as parseMcpIntegrationDocument, l as planLegacyIntegrationMigration, r as readExtensionsIntegration, n as readMcpIntegration, o as resolveIntegrationConfigPath, w as writeIntegrationDocument } from './types-chunks/integration-config.d-BNowXE8k.js';
|
|
15
|
+
export { cc as KodaXSessionUiHistoryItem, cd as KodaXSessionUiHistoryItemType, ce as KodaXSessionUiTextHistoryItem, cf as KodaXSessionUiTextHistoryItemType, cg as KodaXSessionUiToolCall, ch as KodaXSessionUiToolCallStatus, ci as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/controller.d-RGV7Pjv9.js';
|
|
16
|
+
import { Y as SignalCollector, e as AutoModeAskUser, j as AutoModeGuardrailConfig, r as AutoModeSharedState, t as AutoModeToolGuardrail, X as RulesLoadResult } from './types-chunks/guardrail.d-1NLSFTyN.js';
|
|
19
17
|
import 'vscode-languageserver-protocol';
|
|
18
|
+
import './types-chunks/types.d-BbtGlKZu.js';
|
|
20
19
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
21
|
-
import './types-chunks/types-
|
|
20
|
+
import './types-chunks/types-Bf3Y3mW-.js';
|
|
22
21
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
23
|
-
import './types-chunks/base.d-
|
|
22
|
+
import './types-chunks/base.d-DxG0m09Z.js';
|
|
24
23
|
import 'readline';
|
|
25
24
|
import 'child_process';
|
|
26
|
-
import './types-chunks/
|
|
25
|
+
import './types-chunks/side-query.d-CP1LiRiH.js';
|
|
27
26
|
|
|
28
27
|
/**
|
|
29
28
|
* App - KodaX CLI root component.
|
|
@@ -73,8 +72,8 @@ interface AppHandle {
|
|
|
73
72
|
* substitution `$(...)`, backticks, bare `&`, etc.) — fail-closed to
|
|
74
73
|
* `false` so unmodeled syntax always falls through to confirmation.
|
|
75
74
|
*
|
|
76
|
-
* Per-stage syntactic checks
|
|
77
|
-
*
|
|
75
|
+
* Per-stage syntactic checks use `isShellReadOnlyArgv` so quoted tokens do not
|
|
76
|
+
* need to be joined and parsed a second time.
|
|
78
77
|
*
|
|
79
78
|
* @param command - bash command string
|
|
80
79
|
* @returns true if the command is a safe read operation
|
|
@@ -2134,9 +2133,9 @@ declare function getThemeNames(): string[];
|
|
|
2134
2133
|
declare function listRegisteredCommands(projectRoot?: string): CommandInfo[];
|
|
2135
2134
|
|
|
2136
2135
|
declare const CONFIG_TEMPLATES: {
|
|
2137
|
-
readonly core: "// KodaX core configuration template.\n// Copy only the fields you need to ~/.kodax/config.json (strict JSON).\n// MCP, A2A, and Extensions live in ~/.kodax/integrations/*.json; use\n// `kodax integrations migrate
|
|
2136
|
+
readonly core: "// Split configs: ~/.kodax/integrations/mcp.json, extensions.json, and a2a.json.\n// KodaX core configuration template.\n// Copy only the fields you need to ~/.kodax/config.json (strict JSON).\n// MCP, A2A, and Extensions live in ~/.kodax/integrations/*.json; use\n// `kodax integrations migrate` to preview legacy declarations.\n{\n // Active provider alias and optional model override. Run `kodax setup` or\n // `/model` instead of editing these manually when possible.\n // \"provider\": \"deepseek\",\n // \"model\": \"deepseek-v4-flash\",\n // Add or reorder model ids shown by `/model` for a provider.\n // \"providerModels\": {\n // \"deepseek\": [\"deepseek-v4-flash\", \"deepseek-v4-pro\"]\n // },\n\n // Interactive Runtime hosting: \"embedded\" (this process) or \"daemon\".\n // \"runtimeMode\": \"embedded\",\n\n // Native model reasoning. `effort` is the preferred explicit depth;\n // `reasoningCeiling` is the session ceiling. `reasoningMode` and `thinking`\n // remain accepted for backward compatibility.\n // \"effort\": \"high\",\n // \"planModeEffort\": \"high\",\n // \"reasoningCeiling\": \"auto\",\n // \"reasoningMode\": \"auto\",\n // \"thinking\": true,\n\n // Agent harness: \"ama\" enables adaptive multi-agent use; \"sa\" forces one\n // agent. Permission mode is \"plan\", \"accept-edits\", or classifier-backed\n // \"auto\".\n // \"agentMode\": \"ama\",\n // \"permissionMode\": \"accept-edits\",\n // User-level Bash allow patterns. Project additions belong in\n // <project>/.kodax/config.local.json. Broad Bash(*) is rejected.\n // \"alwaysAllowTools\": [\"Bash(npm test)\", \"Bash(git status:*)\"],\n // \"autoMode\": {\n // \"engine\": \"llm\",\n // \"classifierModel\": \"provider:model\",\n // \"timeoutMs\": 30000,\n // \"speculativeWindowMs\": 500\n // },\n\n // UI/manual locale.\n // \"locale\": \"zh\",\n\n // Sensitive environment variables are filtered from model-issued commands by\n // default. List exact host variable names here to pass them to the command\n // target (including ASRT); values are never stored in this file. Project\n // config cannot extend this user-level list. Execution-control variables such\n // as NODE_OPTIONS and BASH_ENV remain blocked.\n // \"sandbox\": {\n // \"envPass\": [\"GH_TOKEN\", \"GITHUB_TOKEN\", \"OPENAI_API_KEY\"]\n // },\n\n // Custom providers store public connection metadata only. Put the actual\n // credential in the named environment variable, never in this file. Use\n // `kodax setup --custom` for the guided writer.\n // \"customProviders\": [\n // {\n // \"name\": \"my-relay\",\n // \"protocol\": \"openai\",\n // \"baseUrl\": \"https://api.example.com/v1\",\n // \"apiKeyEnv\": \"MY_RELAY_API_KEY\",\n // \"model\": \"provider/model\",\n // \"models\": [\"provider/model\", \"provider/fast-model\"],\n // \"reasoning\": { \"efforts\": [\"off\", \"low\", \"high\"], \"default\": \"high\" },\n // \"userAgentMode\": \"compat\",\n // \"contextWindow\": 128000,\n // \"maxOutputTokens\": 8192,\n // \"maxOutputTokensField\": \"max_completion_tokens\",\n // \"thinkingBudgetCap\": 32000,\n // \"promptCacheAffinity\": false,\n // \"replayReasoningContent\": false,\n // \"strictThinkingSignature\": false,\n // \"streamMaxDurationMs\": 300000,\n // \"verifyStrategy\": \"models-list\"\n // }\n // ],\n\n // Repository intelligence. Mode: \"auto\", \"full\", \"light\", or \"off\".\n // \"repoIntelligenceMode\": \"auto\",\n // \"repoIntelligenceTrace\": false,\n // \"repoIntelligence\": {\n // \"toolWaitMs\": 250,\n // \"workerTimeoutMs\": 30000,\n // \"workerOldSpaceMb\": 1024,\n // \"storageDir\": \"~/.kodax/repo-intelligence\"\n // },\n\n // Runtime/provider diagnostics and timeouts.\n // \"streamIdleTimeoutMs\": 120000,\n // \"verifierLog\": false,\n // \"stallLog\": false,\n\n // Ordered provider fallback for child tasks and optional model tiers used by\n // workflow/dispatch model hints.\n // \"fallbackProviders\": [\"ark-coding\", \"kimi-code\"],\n // \"fastProvider\": \"openai\",\n // \"fastModel\": \"gpt-5-mini\",\n // \"deepProvider\": \"anthropic\",\n // \"deepModel\": \"claude-opus-4-6\",\n\n // Provider/LSP/ACP process settings.\n // \"maxOutputTokens\": 8192,\n // \"disablePromptCache\": false,\n // \"lsp\": true,\n // \"lspAutoDownload\": false,\n // \"acpLogLevel\": \"info\",\n\n // Automatic large compaction is always enabled. Percentage defaults to 75\n // and is clamped to 15..90. A missing/zero absolute threshold is inactive;\n // otherwise the smaller percentage, absolute, and physical limit wins.\n // \"compaction\": {\n // \"enabled\": true,\n // \"contextWindow\": 128000,\n // \"triggerPercent\": 75,\n // \"triggerTokens\": 0\n // },\n\n // 0 disables automatic session pruning.\n // \"sessionRetentionDays\": 0,\n\n // Workflow host concurrency. The Runtime still applies its system cap.\n // \"workflow\": { \"maxConcurrency\": 8 }\n}\n";
|
|
2138
2137
|
readonly mcp: "// User MCP declarations: ~/.kodax/integrations/mcp.json (strict JSON).\n// The whole file hot-reloads; healthy entries remain active if one new entry\n// fails to prepare. Keep credentials in ${env:NAME} references.\n{\n \"version\": 1,\n \"servers\": {}\n // Example:\n // \"servers\": {\n // \"reporting\": {\n // \"type\": \"streamable-http\",\n // \"url\": \"https://mcp.example.com\",\n // \"headers\": { \"Authorization\": \"Bearer ${env:REPORTING_MCP_TOKEN}\" },\n // \"connect\": \"lazy\"\n // }\n // }\n}\n";
|
|
2139
|
-
readonly a2a: "// Bidirectional A2A configuration: ~/.kodax/integrations/a2a.json.\n// `agents` calls many third-party Agents. The optional singleton `server`\n// exposes exactly one KodaX general task Agent; ACP remains the coding/editor\n// protocol. Uncomment only the entries you need; no token value belongs here.\n// Legacy version 1 files remain readable. Non-empty files require an explicit\n// stopped-daemon migration; new/empty files and every later write use version 2.\n{\n \"version\": 2,\n\n // Create this inbound block with `kodax a2a expose`; config never starts a\n // listener by itself. Do not copy private Agent instructions, Runtime Skills,\n // model names, or local paths into the public `published.skills` list.\n // Managed workspaces default below\n // ~/kodax_a2a_server_workspace/<runtime-profile>/contexts/<context-key>/.\n // Native read/grep/glob remains available according to workspace access.\n // Arbitrary shell is never exposed. Skill instructions/assets need no\n // process authority. An exact checked-in scripts/... entry requires\n // process=\"isolated\", skillScripts admission, and `kodax sandbox doctor`.\n // ASRT receives no KodaX credentials or ambient ~/.srt-settings.json and its\n // script quota is observed; hostile tenants also require an outer container/VM.\n //\n // \"server\": {\n // \"execution\": {\n // \"kind\": \"local-agent\",\n // \"agentRef\": { \"source\": \"markdown:user\", \"name\": \"report-agent\" },\n // \"workspace\": { \"mode\": \"managed\" },\n // \"toolPolicy\": {\n // \"workspace\": \"write\",\n // \"process\": \"deny\",\n // \"network\": { \"mode\": \"deny\" },\n // \"tools\": [],\n // \"mcp\": {},\n // \"skillScripts\": {},\n // \"subagents\": \"deny\"\n // }\n // },\n // \"published\": {\n // \"name\": \"KodaX Agent\",\n // \"description\": \"Completes approved general tasks.\",\n // \"version\": \"0.7.71\",\n // \"skills\": [{ \"id\": \"general\", \"name\": \"General\", \"description\": \"Complete general tasks.\", \"tags\": [] }],\n // \"inputModes\": [\"text/plain\"],\n // \"outputModes\": [\"text/plain\"]\n // },\n // \"authentication\": { \"type\": \"bearer-env\", \"tokenEnv\": \"KODAX_A2A_TOKEN\", \"principalId\": \"configured-client\" },\n // \"dataDir\": \"~/.kodax/a2a/tasks\"\n // },\n\n // Production OAuth2 resource-server alternative for the server above. The\n // external Authorization Server issues access tokens and, for JWT tokens,\n // signs them. KodaX holds no issuer signing key; it validates RFC 9068 tokens\n // against the issuer's rotating JWKS, audience, expiry, subject, and scopes.\n // Replace the server.authentication value above with:\n // {\n // \"type\": \"oauth2-jwt\",\n // \"scheme\": \"enterprise-oauth\",\n // \"issuer\": \"https://identity.example.com\",\n // \"audience\": \"https://agent.example.com/a2a\",\n // \"jwksUrl\": \"https://identity.example.com/.well-known/jwks.json\",\n // \"tokenUrl\": \"https://identity.example.com/oauth/token\",\n // \"metadataUrl\": \"https://identity.example.com/.well-known/oauth-authorization-server\",\n // \"requiredScopes\": [\"a2a.invoke\"]\n // }\n\n \"agents\": {\n // Fixed Bearer compatibility example. `enabled` is hot desired state:\n // disabled Agents remain configured but are not candidates for new\n // orchestration, while already admitted remote tasks may finish.\n // \"reporting\": {\n // \"cardUrl\": \"https://agents.example.com/.well-known/agent-card.json\",\n // \"enabled\": true,\n // \"credentialEnv\": \"REPORTING_A2A_TOKEN\",\n // \"effect\": \"read\"\n // },\n\n // Standards-based machine-to-machine OAuth2 example. The external\n // Authorization Server issues access tokens; KodaX obtains and caches them\n // only in process memory. `tokenUrl` must exactly match the selected Card\n // OAuth2 clientCredentials flow. Use `kodax a2a enable|disable <name>` to\n // mutate `enabled` atomically; the owning Runtime applies it asynchronously.\n // \"reviewer\": {\n // \"cardUrl\": \"https://reviewer.example.com/.well-known/agent-card.json\",\n // \"enabled\": false,\n // \"effect\": \"read\",\n // \"authentication\": {\n // \"type\": \"oauth2-client-credentials\",\n // \"scheme\": \"enterprise-oauth\",\n // \"issuer\": \"https://identity.example.com\",\n // \"tokenUrl\": \"https://identity.example.com/oauth/token\",\n // \"clientId\": \"kodax-reviewer\",\n // \"clientSecretEnv\": \"REVIEWER_CLIENT_SECRET\",\n // \"scopes\": [\"a2a.invoke\"],\n // \"resource\": \"https://reviewer.example.com/\",\n // \"clientAuthentication\": \"client-secret-basic\"\n // }\n // }\n }\n}\n";
|
|
2138
|
+
readonly a2a: "// Bidirectional A2A configuration: ~/.kodax/integrations/a2a.json.\n// `agents` calls many third-party Agents. The optional singleton `server`\n// exposes exactly one KodaX general task Agent; ACP remains the coding/editor\n// protocol. Uncomment only the entries you need; no token value belongs here.\n// Legacy version 1 files remain readable. Non-empty files require an explicit\n// stopped-daemon migration; new/empty files and every later write use version 2.\n{\n \"version\": 2,\n\n // Create this inbound block with `kodax a2a expose`; config never starts a\n // listener by itself. Do not copy private Agent instructions, Runtime Skills,\n // model names, or local paths into the public `published.skills` list.\n // Managed workspaces default below\n // ~/kodax_a2a_server_workspace/<runtime-profile>/contexts/<context-key>/.\n // Native read/grep/glob remains available according to workspace access.\n // Arbitrary shell is never exposed. Skill instructions/assets need no\n // process authority. An exact checked-in scripts/... entry requires\n // process=\"isolated\", skillScripts admission, and `kodax sandbox doctor`.\n // ASRT receives no KodaX credentials or ambient ~/.srt-settings.json and its\n // script quota is observed; hostile tenants also require an outer container/VM.\n //\n // \"server\": {\n // \"execution\": {\n // \"kind\": \"local-agent\",\n // \"agentRef\": { \"source\": \"markdown:user\", \"name\": \"report-agent\" },\n // \"workspace\": { \"mode\": \"managed\" },\n // \"toolPolicy\": {\n // \"workspace\": \"write\",\n // \"process\": \"deny\",\n // \"network\": { \"mode\": \"deny\" },\n // \"tools\": [],\n // \"mcp\": {},\n // \"skillScripts\": {},\n // \"subagents\": \"deny\"\n // }\n // },\n // \"published\": {\n // \"name\": \"KodaX Agent\",\n // \"description\": \"Completes approved general tasks.\",\n // \"version\": \"0.7.71\",\n // \"skills\": [{ \"id\": \"general\", \"name\": \"General\", \"description\": \"Complete general tasks.\", \"tags\": [] }],\n // \"inputModes\": [\"text/plain\"],\n // \"outputModes\": [\"text/plain\"]\n // },\n // \"authentication\": { \"type\": \"bearer-env\", \"tokenEnv\": \"KODAX_A2A_TOKEN\", \"principalId\": \"configured-client\" },\n // \"dataDir\": \"~/.kodax/a2a/tasks\"\n // },\n\n // Production OAuth2 resource-server alternative for the server above. The\n // external Authorization Server issues access tokens and, for JWT tokens,\n // signs them. KodaX holds no issuer signing key; it validates RFC 9068 tokens\n // against the issuer's rotating JWKS, audience, expiry, subject, and scopes.\n // Replace the server.authentication value above with:\n // {\n // \"type\": \"oauth2-jwt\",\n // \"scheme\": \"enterprise-oauth\",\n // \"issuer\": \"https://identity.example.com\",\n // \"audience\": \"https://agent.example.com/a2a\",\n // \"jwksUrl\": \"https://identity.example.com/.well-known/jwks.json\",\n // \"tokenUrl\": \"https://identity.example.com/oauth/token\",\n // \"metadataUrl\": \"https://identity.example.com/.well-known/oauth-authorization-server\",\n // \"requiredScopes\": [\"a2a.invoke\"]\n // }\n\n \"agents\": {\n // Fixed Bearer compatibility example. `enabled` is hot desired state:\n // disabled Agents remain configured but are not candidates for new\n // orchestration, while already admitted remote tasks may finish.\n // \"reporting\": {\n // \"cardUrl\": \"https://agents.example.com/.well-known/agent-card.json\",\n // \"enabled\": true,\n // \"credentialEnv\": \"REPORTING_A2A_TOKEN\",\n // \"effect\": \"read\"\n // },\n\n // Private addresses and plaintext HTTP are separate, default-deny\n // permissions. Exact loopback HTTP needs neither. Private HTTP needs both;\n // private HTTPS needs only allowPrivateAddresses. Prefer TLS whenever it is\n // available. The equivalent CLI flags are `--allow-private` and\n // `--allow-insecure-http`. OAuth token endpoints keep their stricter\n // HTTPS-or-exact-loopback rule even when Agent transport HTTP is allowed.\n // \"intranet\": {\n // \"cardUrl\": \"http://10.20.30.40/.well-known/agent-card.json\",\n // \"enabled\": true,\n // \"network\": {\n // \"allowPrivateAddresses\": true,\n // \"allowInsecureHttp\": true\n // },\n // \"effect\": \"read\"\n // },\n\n // Standards-based machine-to-machine OAuth2 example. The external\n // Authorization Server issues access tokens; KodaX obtains and caches them\n // only in process memory. `tokenUrl` must exactly match the selected Card\n // OAuth2 clientCredentials flow. Use `kodax a2a enable|disable <name>` to\n // mutate `enabled` atomically; the owning Runtime applies it asynchronously.\n // \"reviewer\": {\n // \"cardUrl\": \"https://reviewer.example.com/.well-known/agent-card.json\",\n // \"enabled\": false,\n // \"effect\": \"read\",\n // \"authentication\": {\n // \"type\": \"oauth2-client-credentials\",\n // \"scheme\": \"enterprise-oauth\",\n // \"issuer\": \"https://identity.example.com\",\n // \"tokenUrl\": \"https://identity.example.com/oauth/token\",\n // \"clientId\": \"kodax-reviewer\",\n // \"clientSecretEnv\": \"REVIEWER_CLIENT_SECRET\",\n // \"scopes\": [\"a2a.invoke\"],\n // \"resource\": \"https://reviewer.example.com/\",\n // \"clientAuthentication\": \"client-secret-basic\"\n // }\n // }\n }\n}\n";
|
|
2140
2139
|
readonly extensions: "// Trusted user Extension paths: ~/.kodax/integrations/extensions.json.\n// Extensions are host code. Reload is whole-domain atomic; use MCP for\n// capabilities that should remain outside the KodaX process.\n{\n \"version\": 1,\n \"paths\": []\n}\n";
|
|
2141
2140
|
};
|
|
2142
2141
|
type ConfigTemplateName = keyof typeof CONFIG_TEMPLATES;
|
|
@@ -2176,13 +2175,9 @@ declare function getConfigTemplate(name: ConfigTemplateName): string;
|
|
|
2176
2175
|
* unlike the load-time-frozen `KODAX_CONFIG_FILE` constant in
|
|
2177
2176
|
* `common/utils.ts` that captures the path once at import time.
|
|
2178
2177
|
*
|
|
2179
|
-
* Concurrency / multi-process:
|
|
2180
|
-
*
|
|
2181
|
-
*
|
|
2182
|
-
* survives. KodaX is a single-user CLI; the multi-writer surface is
|
|
2183
|
-
* not a real production concern for v0.7.42. A future FEATURE could
|
|
2184
|
-
* layer file locking on top of this surface without changing the
|
|
2185
|
-
* caller-facing API.
|
|
2178
|
+
* Concurrency / multi-process: mutations share the core-config writer lock
|
|
2179
|
+
* with setup and saveConfig, so cooperating KodaX processes fail with a
|
|
2180
|
+
* visible conflict instead of silently replacing one another.
|
|
2186
2181
|
*/
|
|
2187
2182
|
|
|
2188
2183
|
/**
|
|
@@ -2337,6 +2332,7 @@ interface RunProviderSetupWizardInput {
|
|
|
2337
2332
|
readonly interaction?: ProviderSetupInteraction;
|
|
2338
2333
|
readonly input?: Readable;
|
|
2339
2334
|
readonly output?: Writable;
|
|
2335
|
+
readonly customOnly?: boolean;
|
|
2340
2336
|
}
|
|
2341
2337
|
/**
|
|
2342
2338
|
* Run the standalone first-use setup flow. It intentionally has no API-key
|
|
@@ -2344,6 +2340,47 @@ interface RunProviderSetupWizardInput {
|
|
|
2344
2340
|
*/
|
|
2345
2341
|
declare function runProviderSetupWizard(input?: RunProviderSetupWizardInput): Promise<ProviderSetupWizardResult>;
|
|
2346
2342
|
|
|
2343
|
+
type SetupConfigDomain = 'core' | 'mcp' | 'extensions' | 'a2a';
|
|
2344
|
+
type SetupConfigFileKind = 'active' | 'template';
|
|
2345
|
+
type SetupConfigFileStatus = 'created' | 'existing' | 'invalid' | 'missing';
|
|
2346
|
+
interface SetupConfigFileResult {
|
|
2347
|
+
readonly domain: SetupConfigDomain;
|
|
2348
|
+
readonly kind: SetupConfigFileKind;
|
|
2349
|
+
readonly path: string;
|
|
2350
|
+
readonly status: SetupConfigFileStatus;
|
|
2351
|
+
readonly diagnostic?: string;
|
|
2352
|
+
}
|
|
2353
|
+
interface SetupConfigurationResult {
|
|
2354
|
+
readonly configHome: string;
|
|
2355
|
+
readonly files: readonly SetupConfigFileResult[];
|
|
2356
|
+
}
|
|
2357
|
+
interface InitializeSetupConfigurationInput {
|
|
2358
|
+
readonly configHome?: string;
|
|
2359
|
+
/**
|
|
2360
|
+
* Host-owned canonical A2A parser. The standalone REPL package can safely
|
|
2361
|
+
* recognize only the inert empty document without this dependency.
|
|
2362
|
+
*/
|
|
2363
|
+
readonly validateA2A?: (value: unknown) => unknown;
|
|
2364
|
+
}
|
|
2365
|
+
/**
|
|
2366
|
+
* Install the inert active documents and annotated references needed by setup.
|
|
2367
|
+
* Existing files are authoritative and are never rewritten.
|
|
2368
|
+
*/
|
|
2369
|
+
declare function initializeSetupConfiguration(input?: InitializeSetupConfigurationInput): SetupConfigurationResult;
|
|
2370
|
+
|
|
2371
|
+
interface RenderSetupGuideInput {
|
|
2372
|
+
readonly configHome?: string;
|
|
2373
|
+
readonly catalog?: readonly ProviderSetupCatalogEntry[];
|
|
2374
|
+
readonly cliBridges?: readonly string[];
|
|
2375
|
+
}
|
|
2376
|
+
declare function renderSetupGuide(input?: RenderSetupGuideInput): string;
|
|
2377
|
+
|
|
2378
|
+
declare class CoreConfigWriteConflictError extends Error {
|
|
2379
|
+
constructor(configPath: string);
|
|
2380
|
+
}
|
|
2381
|
+
declare function coreConfigWriteLockPath(configPath: string): string;
|
|
2382
|
+
declare function withCoreConfigWriteLock<T>(configPath: string, action: () => T): T;
|
|
2383
|
+
|
|
2347
2384
|
/**
|
|
2348
2385
|
* Typed MCP integration CRUD.
|
|
2349
2386
|
*
|
|
@@ -2444,6 +2481,12 @@ interface AutoModeBootstrapDeps {
|
|
|
2444
2481
|
readonly projectRoot: string;
|
|
2445
2482
|
/** Directory used to resolve relative tool paths. */
|
|
2446
2483
|
readonly executionCwd: string;
|
|
2484
|
+
/** Whether process environment path aliases equal the executed shell's aliases. */
|
|
2485
|
+
readonly trustProcessEnvironmentPathExpansion?: boolean;
|
|
2486
|
+
/** Runtime-confirmed ASRT availability for exact workspace shell calls. */
|
|
2487
|
+
readonly workspaceShellSandboxAvailable?: boolean;
|
|
2488
|
+
/** Runtime-owned one-shot admission into the workspace shell sandbox. */
|
|
2489
|
+
readonly admitWorkspaceSandboxCall?: AutoModeGuardrailConfig['admitWorkspaceSandboxCall'];
|
|
2447
2490
|
readonly getCurrentProviderName: () => string;
|
|
2448
2491
|
readonly getCurrentModel: () => string | undefined;
|
|
2449
2492
|
readonly getCurrentPermissionMode: () => PermissionMode;
|
|
@@ -2460,11 +2503,9 @@ interface AutoModeBootstrapDeps {
|
|
|
2460
2503
|
*/
|
|
2461
2504
|
readonly log?: (level: 'info' | 'warn', msg: string) => void;
|
|
2462
2505
|
/**
|
|
2463
|
-
* Fired
|
|
2464
|
-
*
|
|
2465
|
-
*
|
|
2466
|
-
* state so the engine indicator stays accurate without requiring a
|
|
2467
|
-
* mode toggle to refresh.
|
|
2506
|
+
* Fired when an explicit/manual `setEngine` call changes the selected
|
|
2507
|
+
* engine. Classifier health thresholds are diagnostic and do not mutate the
|
|
2508
|
+
* engine. The REPL uses this callback to keep its status bar current.
|
|
2468
2509
|
*/
|
|
2469
2510
|
readonly onEngineChange?: (engine: 'llm' | 'rules') => void;
|
|
2470
2511
|
/** Session-owned engine/denial/breaker state shared by context-specific guardrails. */
|
|
@@ -2534,5 +2575,5 @@ declare function loadCommands(commandDir?: string): Promise<Map<string, KodaXCom
|
|
|
2534
2575
|
declare function processCommandCall(commandName: string, args: string | undefined, commands: Map<string, KodaXCommand>, runAgent: (prompt: string) => Promise<KodaXResult>): Promise<string | null>;
|
|
2535
2576
|
declare function parseCommandCall(input: string): [string, string?] | null;
|
|
2536
2577
|
|
|
2537
|
-
export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, CONFIG_TEMPLATES, ChildActivitySurface, CommandInfo, ConsoleCapturer, CreatableHistoryItem, DialogSurface, DotsIndicator, FullscreenTranscriptLayout, HistoryEntry, HistoryItem, HistoryItemInfo, HistoryItemRenderer, InputPrompt, InputPromptProps, KODAX_COMMANDS_DIR, KeyInfo, KeyMatchers, KeypressHandler, KeypressParser, KeypressProvider, LRUCache, LoadingIndicator, Message, MessageActions, MessageList, MessageSelector, NotificationsSurface, PendingInputsIndicator, PermissionMode, ProgressIndicator, PromptComposer, PromptEditingMode, PromptFooter, PromptFooterLeftSide, PromptFooterRightSide, PromptHelpMenu, PromptSuggestionsSurface, ProviderSetupConfigConflictError, ProviderSetupInvalidConfigError, QueuedCommandsSurface, SimpleApp, SimpleInputPrompt, SimpleMessageDisplay, SimpleStatusBar, SingleLineTextInput, Spinner, StashNotice, StatusBar, StatusBarProps, StatusNoticesSurface, StreamingProvider, StreamingState, Suggestion, SuggestionsDisplay, TextInput, Theme, ThinkingIndicator, ToolCall, ToolCallDisplay, ToolCallStatus, ToolGroup, ToolProgressBar, ToolStatusBadge, TranscriptViewport, UIActions, UIState, UIStateProvider, UseTextBufferReturn, _resetQueuedPromptsCacheForTests, bootstrapAutoMode, calculateVisualCursorFromLayout, calculateVisualLayout, collectBashWriteTargets, createCliEvents, createHistoryItem, createJsonEvents, createKeyMatcher, createKeypressManager, createRecoveryHistoryItem, createRetryHistoryItem, createStreamingManager, createToolCall, darkTheme, dedupeSessions, detectTerminalCapabilities, detectTerminalHostProfile, detectTerminalRenderHost, emitRecoveryHistoryItem, emitRetryHistoryItem, executeShellCommand, findMostRecentResumableSession, generateId, generateSavePattern, getBashOutsideProjectWriteRisk, getCharAtCodePoint, getCodePointLength, getConfigTemplate, getCustomProviderConfig, getDefaultCommandDir, getKeyDisplayName, getMcpServerConfig, getPlanModeBlockReason, getProviderSetupCatalog, getTerminalHostCapabilities, getTerminalWidth, getTheme, getThemeNames, getVisualWidth, getVisualWidthCached, hasCursorUpViewportYankRisk, hasMainScreenRenderScrollRisk, inspectProviderSetupReadiness, isAlwaysConfirmPath, isBashReadCommand, isBashWriteCommand, isClassicReplForced, isCommandOnProtectedPath, isFunctionKey, isOwnedRendererPreferred, isPathInsideProject, isPrintable, isRemoteConptyHost, isScreenReader, isShellCommand, isShellCommandSuccess, isTmuxControlMode, isToolCallAllowed, isVsCodeTerminalHostEnv, isWideChar, listCustomProviders, listMcpServers, listRegisteredCommands, loadCommands, measureChildActivitySurfaceRows, minimalTheme, parseCommandCall, parseKeypress, persistProviderSetupChoice, processCommandCall, providerSetupRestartInstructions, removeCustomProvider, removeMcpServer, replBashPathSignalCollector, resetTmuxControlModeProbeForTesting, resolveConfiguredTuiRendererMode, resolveEffectiveTuiRendererMode, resolveFullscreenPolicy, resolveInteractiveSurfacePreference, runProviderSetupWizard, runSessionPicker, 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 };
|
|
2538
|
-
export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, ConfigTemplateName, DialogSelectOption, DialogSurfaceConfirmState, DialogSurfaceProps, DialogSurfaceUIRequestState, DotsIndicatorProps, EffectiveTuiRendererMode, FullscreenPolicy, FullscreenTranscriptLayoutProps, HistoryItemRendererProps, InteractiveSurfacePreference, KeypressManager, KeypressProviderProps, KodaXCommand, KodaXCommandContext, LoadingIndicatorProps, LoadingIndicatorType, MessageActionsProps, MessageListProps, MessageSelectorProps, NotificationSurfaceItem, NotificationsSurfaceProps, PendingInputsIndicatorProps, PersistedProviderSetupChoice, ProgressIndicatorProps, PromptComposerProps, PromptFooterLeftSideProps, PromptFooterProps, PromptFooterRightSideProps, PromptFooterSurfaceItem, PromptHelpMenuProps, PromptSuggestionsSurfaceProps, ProviderSetupCatalogEntry, ProviderSetupChoice, ProviderSetupCustomProviderMetadata, ProviderSetupInteraction, ProviderSetupReadiness, ProviderSetupWizardResult, QueuedCommandsSurfaceProps, ResolvedAutoModeBootstrapSettings, RunProviderSetupWizardInput, SessionDedupeMatch, SessionDedupeMove, SessionDedupeOptions, SessionDedupeReport, SessionDedupeSkip, SessionDedupeSkipReason, SessionPickerItem, ShellExecutorConfig, SpinnerProps, StashNoticeProps, StatusNoticesSurfaceProps, StreamingActions, StreamingContextValue, StreamingManager, StreamingProviderProps, StreamingStateListener, SuggestionsDisplayProps, TerminalCapabilities, TerminalHostCapabilities, TerminalHostDetectionOptions, TerminalHostProfile, TerminalRenderHost, TextInputProps, ThinkingIndicatorProps, ToolCallDisplayProps, ToolGroupProps, ToolProgressBarProps, ToolStatusBadgeProps, TranscriptViewportProps, TuiRendererMode, UIStateProviderProps, UseAutocompleteOptions, UseAutocompleteReturn, UseInputHistoryOptions, UseInputHistoryReturn, UseKeypressOptions, UseTextBufferOptions };
|
|
2578
|
+
export { App, AppProps, AutocompleteContextProvider, BackgroundTaskBar, CONFIG_TEMPLATES, ChildActivitySurface, CommandInfo, ConsoleCapturer, CoreConfigWriteConflictError, CreatableHistoryItem, DialogSurface, DotsIndicator, FullscreenTranscriptLayout, HistoryEntry, HistoryItem, HistoryItemInfo, HistoryItemRenderer, InputPrompt, InputPromptProps, KODAX_COMMANDS_DIR, KeyInfo, KeyMatchers, KeypressHandler, KeypressParser, KeypressProvider, LRUCache, LoadingIndicator, Message, MessageActions, MessageList, MessageSelector, NotificationsSurface, PendingInputsIndicator, PermissionMode, ProgressIndicator, PromptComposer, PromptEditingMode, PromptFooter, PromptFooterLeftSide, PromptFooterRightSide, PromptHelpMenu, PromptSuggestionsSurface, ProviderSetupConfigConflictError, ProviderSetupInvalidConfigError, QueuedCommandsSurface, SimpleApp, SimpleInputPrompt, SimpleMessageDisplay, SimpleStatusBar, SingleLineTextInput, Spinner, StashNotice, StatusBar, StatusBarProps, StatusNoticesSurface, StreamingProvider, StreamingState, Suggestion, SuggestionsDisplay, TextInput, Theme, ThinkingIndicator, ToolCall, ToolCallDisplay, ToolCallStatus, ToolGroup, ToolProgressBar, ToolStatusBadge, TranscriptViewport, UIActions, UIState, UIStateProvider, UseTextBufferReturn, _resetQueuedPromptsCacheForTests, bootstrapAutoMode, calculateVisualCursorFromLayout, calculateVisualLayout, collectBashWriteTargets, coreConfigWriteLockPath, createCliEvents, createHistoryItem, createJsonEvents, createKeyMatcher, createKeypressManager, createRecoveryHistoryItem, createRetryHistoryItem, createStreamingManager, createToolCall, darkTheme, dedupeSessions, detectTerminalCapabilities, detectTerminalHostProfile, detectTerminalRenderHost, emitRecoveryHistoryItem, emitRetryHistoryItem, executeShellCommand, findMostRecentResumableSession, generateId, generateSavePattern, getBashOutsideProjectWriteRisk, getCharAtCodePoint, getCodePointLength, getConfigTemplate, getCustomProviderConfig, getDefaultCommandDir, getKeyDisplayName, getMcpServerConfig, getPlanModeBlockReason, getProviderSetupCatalog, getTerminalHostCapabilities, getTerminalWidth, getTheme, getThemeNames, getVisualWidth, getVisualWidthCached, hasCursorUpViewportYankRisk, hasMainScreenRenderScrollRisk, initializeSetupConfiguration, inspectProviderSetupReadiness, isAlwaysConfirmPath, isBashReadCommand, isBashWriteCommand, isClassicReplForced, isCommandOnProtectedPath, isFunctionKey, isOwnedRendererPreferred, isPathInsideProject, isPrintable, isRemoteConptyHost, isScreenReader, isShellCommand, isShellCommandSuccess, isTmuxControlMode, isToolCallAllowed, isVsCodeTerminalHostEnv, isWideChar, listCustomProviders, listMcpServers, listRegisteredCommands, loadCommands, measureChildActivitySurfaceRows, minimalTheme, parseCommandCall, parseKeypress, persistProviderSetupChoice, processCommandCall, providerSetupRestartInstructions, removeCustomProvider, removeMcpServer, renderSetupGuide, replBashPathSignalCollector, resetTmuxControlModeProbeForTesting, resolveConfiguredTuiRendererMode, resolveEffectiveTuiRendererMode, resolveFullscreenPolicy, resolveInteractiveSurfacePreference, runProviderSetupWizard, runSessionPicker, 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, withCoreConfigWriteLock };
|
|
2579
|
+
export type { AppHandle, AutoModeBootstrapDeps, AutoModeBootstrapResult, BackgroundTaskBarItem, BackgroundTaskBarProps, ChildActivitySurfaceProps, ConfigTemplateName, DialogSelectOption, DialogSurfaceConfirmState, DialogSurfaceProps, DialogSurfaceUIRequestState, DotsIndicatorProps, EffectiveTuiRendererMode, FullscreenPolicy, FullscreenTranscriptLayoutProps, HistoryItemRendererProps, InitializeSetupConfigurationInput, InteractiveSurfacePreference, KeypressManager, KeypressProviderProps, KodaXCommand, KodaXCommandContext, LoadingIndicatorProps, LoadingIndicatorType, MessageActionsProps, MessageListProps, MessageSelectorProps, NotificationSurfaceItem, NotificationsSurfaceProps, PendingInputsIndicatorProps, PersistedProviderSetupChoice, ProgressIndicatorProps, PromptComposerProps, PromptFooterLeftSideProps, PromptFooterProps, PromptFooterRightSideProps, PromptFooterSurfaceItem, PromptHelpMenuProps, PromptSuggestionsSurfaceProps, ProviderSetupCatalogEntry, ProviderSetupChoice, ProviderSetupCustomProviderMetadata, ProviderSetupInteraction, ProviderSetupReadiness, ProviderSetupWizardResult, QueuedCommandsSurfaceProps, RenderSetupGuideInput, ResolvedAutoModeBootstrapSettings, RunProviderSetupWizardInput, SessionDedupeMatch, SessionDedupeMove, SessionDedupeOptions, SessionDedupeReport, SessionDedupeSkip, SessionDedupeSkipReason, SessionPickerItem, SetupConfigDomain, SetupConfigFileKind, SetupConfigFileResult, SetupConfigFileStatus, SetupConfigurationResult, ShellExecutorConfig, SpinnerProps, StashNoticeProps, StatusNoticesSurfaceProps, StreamingActions, StreamingContextValue, StreamingManager, StreamingProviderProps, StreamingStateListener, SuggestionsDisplayProps, TerminalCapabilities, TerminalHostCapabilities, TerminalHostDetectionOptions, TerminalHostProfile, TerminalRenderHost, TextInputProps, ThinkingIndicatorProps, ToolCallDisplayProps, ToolGroupProps, ToolProgressBarProps, ToolStatusBadgeProps, TranscriptViewportProps, TuiRendererMode, UIStateProviderProps, UseAutocompleteOptions, UseAutocompleteReturn, UseInputHistoryOptions, UseInputHistoryReturn, UseKeypressOptions, UseTextBufferOptions };
|