@kodax-ai/kodax 0.7.78 → 0.7.80

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.
Files changed (126) hide show
  1. package/CHANGELOG.md +3556 -3197
  2. package/README.md +371 -277
  3. package/README_CN.md +295 -215
  4. package/config-templates/config.example.jsonc +24 -2
  5. package/config-templates/integrations/a2a.example.jsonc +23 -7
  6. package/dist/builtin/skill-creator/scripts/aggregate-benchmark.js +2 -1
  7. package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +1 -0
  8. package/dist/builtin/skill-creator/scripts/analyze-benchmark.js +4 -3
  9. package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +1 -0
  10. package/dist/builtin/skill-creator/scripts/compare-runs.js +4 -3
  11. package/dist/builtin/skill-creator/scripts/generate-review.js +2 -1
  12. package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +1 -0
  13. package/dist/builtin/skill-creator/scripts/grade-evals.js +4 -3
  14. package/dist/builtin/skill-creator/scripts/improve-description.js +2 -1
  15. package/dist/builtin/skill-creator/scripts/init-skill.d.ts +1 -0
  16. package/dist/builtin/skill-creator/scripts/init-skill.js +4 -3
  17. package/dist/builtin/skill-creator/scripts/install-skill.d.ts +1 -0
  18. package/dist/builtin/skill-creator/scripts/install-skill.js +4 -3
  19. package/dist/builtin/skill-creator/scripts/package-skill.d.ts +1 -0
  20. package/dist/builtin/skill-creator/scripts/package-skill.js +4 -3
  21. package/dist/builtin/skill-creator/scripts/quick-validate.d.ts +1 -0
  22. package/dist/builtin/skill-creator/scripts/quick-validate.js +4 -3
  23. package/dist/builtin/skill-creator/scripts/run-eval.d.ts +1 -0
  24. package/dist/builtin/skill-creator/scripts/run-eval.js +4 -3
  25. package/dist/builtin/skill-creator/scripts/run-loop.js +2 -1
  26. package/dist/builtin/skill-creator/scripts/run-trigger-eval.js +2 -1
  27. package/dist/builtin/skill-creator/scripts/utils.d.ts +3 -0
  28. package/dist/builtin/skill-creator/scripts/utils.js +5 -1
  29. package/dist/chunks/agent-5PHGNFW3.js +2 -0
  30. package/dist/chunks/argument-completer-FXRZFMTC.js +2 -0
  31. package/dist/chunks/chunk-6UENDY33.js +89 -0
  32. package/dist/chunks/{chunk-6FOJVETH.js → chunk-BWX4YZX3.js} +7 -7
  33. package/dist/chunks/chunk-CDCCTM5I.js +278 -0
  34. package/dist/chunks/chunk-CEB5FDND.js +810 -0
  35. package/dist/chunks/{chunk-2CFHBKRE.js → chunk-E7C4DRD2.js} +2 -2
  36. package/dist/chunks/chunk-EVXIJPZ6.js +218 -0
  37. package/dist/chunks/chunk-FQ7NVMSU.js +319 -0
  38. package/dist/chunks/chunk-GC4JBMBS.js +385 -0
  39. package/dist/chunks/{chunk-Z3KFRTSB.js → chunk-HTVLCHWH.js} +1 -1
  40. package/dist/chunks/chunk-IHPH3444.js +655 -0
  41. package/dist/chunks/{chunk-YAZQTC2L.js → chunk-KHEFUT6O.js} +1 -1
  42. package/dist/chunks/{chunk-7OEBJGHK.js → chunk-PMKAG4SZ.js} +1 -1
  43. package/dist/chunks/chunk-RPF5RGWZ.js +479 -0
  44. package/dist/chunks/{chunk-UID7BLAB.js → chunk-RXXKDR6Y.js} +1 -1
  45. package/dist/chunks/chunk-T5U4OP2N.js +292 -0
  46. package/dist/chunks/chunk-TRNAWSXP.js +123 -0
  47. package/dist/chunks/chunk-UZSHBQER.js +30 -0
  48. package/dist/chunks/{chunk-TQDBTTIM.js → chunk-VECRQTSD.js} +44 -44
  49. package/dist/chunks/compaction-config-6J6XCBJS.js +2 -0
  50. package/dist/chunks/{construction-bootstrap-VQLQGWPY.js → construction-bootstrap-KPCAE3VN.js} +1 -1
  51. package/dist/chunks/dist-RWEVZOFK.js +2 -0
  52. package/dist/chunks/{dist-BFT5YIGU.js → dist-WWL2DNIJ.js} +1 -1
  53. package/dist/chunks/host-OGS2R5J4.js +2 -0
  54. package/dist/chunks/run-manager-2YMM3BOT.js +2 -0
  55. package/dist/chunks/{utils-SID4HW2Q.js → utils-2YHRUZYC.js} +1 -1
  56. package/dist/index.d.ts +21 -20
  57. package/dist/index.js +4 -4
  58. package/dist/kodax_bootstrap.js +2 -1
  59. package/dist/kodax_cli.js +1850 -1476
  60. package/dist/kodax_resume.js +570 -34
  61. package/dist/provider-capabilities.json +85 -50
  62. package/dist/runtime-worker.js +1737 -1369
  63. package/dist/sandbox-workspace-session.js +285 -19
  64. package/dist/sdk-a2a.d.ts +19 -13
  65. package/dist/sdk-a2a.js +8 -8
  66. package/dist/sdk-agent.d.ts +80 -150
  67. package/dist/sdk-agent.js +1 -1
  68. package/dist/sdk-coding.d.ts +186 -66
  69. package/dist/sdk-coding.js +1 -1
  70. package/dist/sdk-experimental-memory.d.ts +3 -3
  71. package/dist/sdk-experimental-memory.js +1 -1
  72. package/dist/sdk-llm.d.ts +7 -7
  73. package/dist/sdk-llm.js +1 -1
  74. package/dist/sdk-mcp.d.ts +1 -1
  75. package/dist/sdk-mcp.js +1 -1
  76. package/dist/sdk-media.d.ts +1 -1
  77. package/dist/sdk-media.js +1 -1
  78. package/dist/sdk-repl.d.ts +31 -213
  79. package/dist/sdk-repl.js +2 -2
  80. package/dist/sdk-runtime.d.ts +230 -31
  81. package/dist/sdk-runtime.js +1 -1
  82. package/dist/sdk-sandbox.js +1 -1
  83. package/dist/sdk-session.d.ts +8 -8
  84. package/dist/sdk-session.js +1 -1
  85. package/dist/sdk-skills.js +1 -1
  86. package/dist/semantic-worker.js +283 -18
  87. package/dist/types-chunks/{base.d-4e74xDdy.d.ts → base.d-DxG0m09Z.d.ts} +1 -1
  88. package/dist/types-chunks/{bash-prefix-extractor.d-uAe2Oqda.d.ts → bash-prefix-extractor.d-DStqKIlu.d.ts} +31 -8
  89. package/dist/types-chunks/{capability-learning.d-CVsdHw4j.d.ts → capability-learning.d-iPSiAmc_.d.ts} +1 -1
  90. package/dist/types-chunks/{capsule.d-BlSv9l3V.d.ts → capsule.d-BuFJaYxA.d.ts} +14 -21
  91. package/dist/types-chunks/{types.d-BA-Jwpfs.d.ts → controller.d-C2aHqzHj.d.ts} +344 -11
  92. package/dist/types-chunks/{guardrail.d-CXDYRgZ3.d.ts → guardrail.d-DM-OK0m3.d.ts} +187 -116
  93. package/dist/types-chunks/{history-retrieval.d-DtCy7x64.d.ts → history-retrieval.d-DImTKgO6.d.ts} +16 -3
  94. package/dist/types-chunks/{oauth-login.d-Bgb4rdLN.d.ts → oauth-login.d-6i-vidxv.d.ts} +6 -2
  95. package/dist/types-chunks/{public-api.d-B3AohsxN.d.ts → public-api.d-CewTvUKV.d.ts} +335 -38
  96. package/dist/types-chunks/{repl.d-Ie_ZXb_U.d.ts → repl.d-DvXQtgr7.d.ts} +5 -5
  97. package/dist/types-chunks/{resolver.d-iAQ9ocLB.d.ts → resolver.d-C9IW4fmU.d.ts} +5 -2
  98. package/dist/types-chunks/{run-manager.d-D1twIhF9.d.ts → run-manager.d-C6ahvZqK.d.ts} +1 -1
  99. package/dist/types-chunks/{sdk-session-DB9KksIx.d.ts → sdk-session-C59RUrri.d.ts} +3 -3
  100. package/dist/types-chunks/shell-command-sets.d-Dp4UvPLL.d.ts +297 -0
  101. package/dist/types-chunks/{side-query.d-DTuLPcC5.d.ts → side-query.d-CP1LiRiH.d.ts} +8 -2
  102. package/dist/types-chunks/{types-D3g6XUQr.d.ts → types-Bf3Y3mW-.d.ts} +1 -1
  103. package/dist/types-chunks/{types.d-BH0ZkTGf.d.ts → types.d-BzpPDBPV.d.ts} +2 -2
  104. package/dist/types-chunks/{types.d-DIpZJKUl.d.ts → types.d-CgrXrFrq.d.ts} +16 -2
  105. package/dist/types-chunks/{types.d-DVDTIfB_.d.ts → types.d-yuJzE82x.d.ts} +4 -4
  106. package/dist/types-chunks/{utils.d-CVp6bFl9.d.ts → utils.d-BpACJmzt.d.ts} +24 -6
  107. package/docs/SDK_EMBEDDER_GUIDE.md +1148 -598
  108. package/package.json +6 -3
  109. package/dist/chunks/agent-ASP4MS3X.js +0 -2
  110. package/dist/chunks/argument-completer-JYQ7FX3W.js +0 -2
  111. package/dist/chunks/chunk-35PPHOQ2.js +0 -292
  112. package/dist/chunks/chunk-43QNNDHR.js +0 -29
  113. package/dist/chunks/chunk-5GO6FH7L.js +0 -458
  114. package/dist/chunks/chunk-5NDCSFOP.js +0 -78
  115. package/dist/chunks/chunk-6XM4B6K2.js +0 -48
  116. package/dist/chunks/chunk-6YZUE6NC.js +0 -240
  117. package/dist/chunks/chunk-KQLQYHWU.js +0 -386
  118. package/dist/chunks/chunk-NXO6GWSY.js +0 -46
  119. package/dist/chunks/chunk-T2XZTLYE.js +0 -316
  120. package/dist/chunks/chunk-VAT2QYXM.js +0 -765
  121. package/dist/chunks/chunk-YVRYHC4C.js +0 -655
  122. package/dist/chunks/compaction-config-BQSSIWK5.js +0 -2
  123. package/dist/chunks/dist-PCFE24YP.js +0 -2
  124. package/dist/chunks/host-UTFXCYYM.js +0 -2
  125. package/dist/chunks/run-manager-PJU3WIFJ.js +0 -2
  126. package/dist/types-chunks/guardrail.d-BRE_ErEj.d.ts +0 -156
@@ -1,2 +0,0 @@
1
- // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{a}from"./chunk-7OEBJGHK.js";import"./chunk-VAT2QYXM.js";import"./chunk-6XM4B6K2.js";import"./chunk-2CFHBKRE.js";import"./chunk-NXO6GWSY.js";import"./chunk-ONUPGMER.js";export{a as loadCompactionConfig};
@@ -1,2 +0,0 @@
1
- // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{$ as ci,A as Dh,Aa as Di,B as Eh,Ba as Ei,C as Fh,Ca as Fi,D as Gh,Da as Gi,E as Hh,Ea as Hi,F as Ih,Fa as Ii,G as Jh,Ga as Ji,H as Kh,Ha as Ki,I as Lh,Ia as Li,J as Mh,Ja as Mi,K as Nh,Ka as Ni,L as Oh,La as Oi,M as Ph,Ma as Pi,N as Qh,Na as Qi,O as Rh,Oa as Ri,P as Sh,Pa as Si,Q as Th,R as Uh,S as Vh,T as Wh,U as Xh,V as Yh,W as Zh,X as _h,Y as $h,Z as ai,_ as bi,a as Rb,aa as di,b as Sb,ba as ei,c as Tb,ca as fi,d as gh,da as gi,e as hh,ea as hi,f as ih,fa as ii,g as jh,ga as ji,h as kh,ha as ki,i as lh,ia as li,j as mh,ja as mi,k as nh,ka as ni,l as oh,la as oi,m as ph,ma as pi,n as qh,na as qi,o as rh,oa as ri,p as sh,pa as si,q as th,qa as ti,r as uh,ra as ui,s as vh,sa as vi,t as wh,ta as wi,u as xh,ua as xi,v as yh,va as yi,w as zh,wa as zi,x as Ah,xa as Ai,y as Bh,ya as Bi,z as Ch,za as Ci}from"./chunk-5GO6FH7L.js";import{$ as Pf,$a as dh,A as xf,B as yf,C as zf,H as Af,I as Bf,M as Cf,N as Df,O as Ef,P as Ff,Q as Gf,R as Hf,S as If,T as Jf,Ta as bh,Ua as ch,W as Kf,X as Lf,Y as Mf,Z as Nf,_ as Of,aa as Qf,ab as eh,b as Hb,c as Ib,cb as fh,d as Jb,e as Kb,fa as Rf,g as Lb,ga as Sf,ha as Tf,ia as Uf,ja as Vf,k as Mb,n as Nb,na as Wf,o as Ub,oa as Xf,p as Vb,pa as Yf,q as kf,qa as Zf,r as lf,s as mf,t as nf,ta as _f,u as of,v as pf,w as tf,x as uf,y as vf,z as wf}from"./chunk-TQDBTTIM.js";import{a as jg,b as kg,c as lg,d as mg,e as ng,f as og,g as pg,h as qg,i as rg,j as ah}from"./chunk-UID7BLAB.js";import{a as ig}from"./chunk-Z3KFRTSB.js";import{A as Sg,B as Tg,C as Ug,D as Vg,E as Wg,F as Xg,G as Yg,H as Zg,I as _g,J as $g,a as sg,b as tg,c as ug,d as vg,e as wg,f as xg,g as yg,h as zg,i as Ag,j as Bg,k as Cg,l as Dg,m as Eg,n as Fg,o as Gg,p as Hg,q as Ig,r as Jg,s as Kg,t as Lg,u as Mg,v as Ng,w as Og,x as Pg,y as Qg,z as Rg}from"./chunk-6FOJVETH.js";import{$a as dd,$b as Ud,$c as Pe,A as gc,Aa as Hc,Ab as yd,Ac as te,B as hc,Ba as Ic,Bb as zd,Bc as ue,Ca as Jc,Cb as Ad,Cc as ve,Da as Kc,Db as Bd,Dc as we,Ea as Lc,Eb as Cd,Ec as xe,Fa as Mc,Fb as Dd,Fc as ye,Ga as Nc,Gb as Ed,Gc as ze,Ha as Oc,Hb as Fd,Hc as Ae,Ia as Pc,Ib as Gd,Ic as Be,Ja as Qc,Jc as Ce,Kc as De,L as ic,Lb as Hd,Lc as Ee,Ld as $f,M as jc,Ma as Rc,Mc as Fe,Md as ag,N as kc,Na as Sc,Nc as Ge,Nd as bg,O as lc,Oa as Tc,Oc as He,Od as cg,P as mc,Pa as Uc,Pb as Id,Pc as Ie,Pd as dg,Q as nc,Qa as Vc,Qb as Jd,Qc as Je,Qd as eg,Ra as Wc,Rb as Kd,Rc as Ke,Sa as Xc,Sb as Ld,Tb as Md,Ua as Yc,Ub as Nd,Va as Zc,Vb as Od,Wa as _c,Wb as Pd,Xa as $c,Xb as Qd,Xc as Le,Ya as ad,Yb as Rd,Yc as Me,Yd as fg,Za as bd,Zb as Sd,Zc as Ne,Zd as gg,_a as cd,_b as Td,_c as Oe,_d as hg,aa as oc,ab as ed,ac as Vd,ad as Qe,ba as pc,bb as fd,bc as Wd,bd as Re,c as Ob,ca as qc,cb as gd,cc as Xd,cd as Se,d as Pb,da as rc,db as hd,dc as Yd,dd as Te,e as Qb,ea as sc,eb as id,ec as Zd,ed as Ue,fb as jd,fc as _d,fd as Ve,gb as kd,gc as $d,gd as We,hb as ld,hc as ae,hd as Xe,ib as md,ic as be,id as Ye,ja as tc,jb as nd,jc as ce,jd as Ze,k as Wb,kb as od,kc as de,kd as _e,l as Xb,la as uc,lb as pd,lc as ee,ld as $e,mb as qd,mc as fe,md as af,na as vc,nb as rd,nc as ge,oa as wc,oc as he,od as bf,pa as xc,pc as ie,pd as cf,q as Yb,qa as yc,qc as je,qd as df,r as Zb,ra as zc,rb as sd,rc as ke,rd as ef,s as _b,sb as td,sc as le,sd as ff,t as $b,ta as Ac,tb as ud,tc as me,td as gf,u as ac,ua as Bc,ub as vd,uc as ne,ud as hf,v as bc,va as Cc,vc as oe,vd as jf,w as cc,wa as Dc,wc as pe,wd as qf,x as dc,xa as Ec,xc as qe,xd as rf,y as ec,ya as Fc,yb as wd,yc as re,yd as sf,z as fc,za as Gc,zb as xd,zc as se}from"./chunk-KQLQYHWU.js";import"./chunk-YAZQTC2L.js";import{Aa as G,Ba as H,C as h,Ca as I,D as i,Da as J,E as j,Ea as K,F as k,Fa as L,G as l,Ga as M,H as m,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 n,Va as Z,Ya as _,d as a,da as o,e as b,ea as p,f as c,ka as q,la as r,m as d,ma as s,n as e,na as t,oa as u,pa as v,qa as w,ra as x,sa as y,ta as z,ua as A,v as f,va as B,w as g,wa as C,xa as D,ya as E,za as F}from"./chunk-5NDCSFOP.js";import{Ab as Xa,Ac as sb,Bb as Ya,Bc as tb,Cb as Za,Cc as ub,Db as _a,Dc as vb,Eb as $a,Ec as wb,Fb as ab,Fc as xb,Gb as bb,Gc as yb,Hb as cb,Ib as db,Jb as eb,Jc as zb,Kb as fb,Kc as Ab,Lb as gb,Lc as Bb,Mb as hb,Mc as Cb,Nb as ib,Nc as Db,Ob as jb,Oc as Eb,Pb as kb,Qb as lb,Rb as mb,Tb as nb,Tc as Fb,Ub as ob,Uc as Gb,Vb as pb,Yb as qb,Zb as rb,a as $,b as aa,c as ba,d as ca,e as da,f as ea,h as fa,i as ga,j as ha,q as ka,qa as oa,qb as Ra,r as la,rb as Sa,s as ma,t as na,ta as pa,wb as Ta,xb as Ua,yb as Va,zb as Wa}from"./chunk-VAT2QYXM.js";import{a as ia,b as ja,f as qa,g as ra,h as sa,k as ta}from"./chunk-6XM4B6K2.js";import{A as La,B as Ma,C as Na,D as Oa,E as Pa,F as Qa,d as ua,k as va,l as wa,m as xa,n as ya,o as za,p as Aa,q as Ba,r as Ca,s as Da,t as Ea,u as Fa,v as Ga,w as Ha,x as Ia,y as Ja,z as Ka}from"./chunk-2CFHBKRE.js";import"./chunk-NXO6GWSY.js";import"./chunk-ONUPGMER.js";export{Ef as ALWAYS_RESIDENT_TOOL_NAMES,ki as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,li as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,Fi as BASH_POLICY_SPEC,uh as BLOCKER_REQUIRED_CONSECUTIVE_TURNS,qi as BREAKER_ERROR_THRESHOLD,ri as BREAKER_WINDOW_MS,Dg as BUILTIN_WORKFLOWS,Xb as CANCELLED_TOOL_RESULT_MESSAGE,Wb as CANCELLED_TOOL_RESULT_PREFIX,Zh as CODING_AGENT_MARKER,mh as CODING_INVARIANTS,bh as CODING_SUMMARY_PROMPT,ch as CODING_UPDATE_SUMMARY_PROMPT,Xd as CapabilityDeniedError,oh as Client,fg as CodingActorSession,Ge as CombinedExtensionRuntime,Yd as ConstructionManifestError,di as DEFAULT_CLASSIFIER_TIMEOUT_MS,dh as DEFAULT_CODING_AGENT_NAME,Oh as DEFAULT_DANGEROUS_PATTERNS,Vd as DEFAULT_HANDLER_TIMEOUT_MS,Kf as DEFAULT_RESILIENCE_CONFIG,Nh as DEFAULT_SAFE_PATTERNS,ge as DEFAULT_SELF_MODIFY_BUDGET,Bi as DEFAULT_SPECULATIVE_WINDOW_MS,Zb as DEFAULT_TOOL_OUTPUT_MAX_BYTES,Yb as DEFAULT_TOOL_OUTPUT_MAX_LINES,kg as DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS,na as DefaultSummaryCompaction,Wh as EMIT_VERDICT_TOOL_NAME,Ub as ErrorCategory,vg as FINDING_VERIFICATION_OUTPUT_SCHEMA,nd as GENERATOR_AGENT_NAME,wa as ImageResizeError,ga as KODAX_API_MIN_INTERVAL,s as KODAX_DEFAULT_PROVIDER,aa as KODAX_DEFAULT_TIMEOUT,Na as KODAX_FILE_MEDIA_TYPES,ba as KODAX_HARD_TIMEOUT,La as KODAX_IMAGE_MEDIA_TYPES,ea as KODAX_MAX_INCOMPLETE_RETRIES,ca as KODAX_MAX_RETRIES,$ as KODAX_MAX_TOKENS,r as KODAX_PROVIDERS,q as KODAX_PROVIDER_SNAPSHOTS,f as KODAX_REASONING_MODE_SEQUENCE,da as KODAX_RETRY_BASE_DELAY,g as KODAX_STABLE_EFFORT_INTENTS,fa as KODAX_STAGGER_DELAY,Le as KODAX_TOOLS,jc as KODAX_UNDERLYING_CAPABILITY_TOPICS,Ma as KODAX_VIDEO_MEDIA_TYPES,o as KodaXAnthropicCompatProvider,n as KodaXBaseProvider,oh as KodaXClient,a as KodaXError,Fe as KodaXExtensionRuntime,va as KodaXMediaError,p as KodaXOpenAICompatProvider,b as KodaXProviderError,c as KodaXRateLimitError,Sb as KodaXSessionError,Tb as KodaXTerminalError,Rb as KodaXToolError,Jb as LEARNING_REVIEW_PROMPT_SHA256,Kb as LEARNING_REVIEW_SCHEMA_SHA256,Hb as LEARNING_REVIEW_SYSTEM_PROMPT,Ib as LEARNING_REVIEW_TOOL,nb as LINEAGE_ENTRY_TYPES,bg as LSP_SERVERS,pb as LineageCompaction,ob as LineageExtension,cg as LspService,kc as MANUAL_REGISTRY,ic as MANUAL_TOPIC_IDS,Ca as MAX_DIMENSION,Kh as MEMORY_INTERVENTION_SELECTOR_PROMPT,Lh as MEMORY_INTERVENTION_SELECTOR_SHA256,_a as McpAuthRequiredError,kb as McpCapabilityProvider,Za as McpExpiredSessionError,lb as McpManager,jb as McpServerRuntime,Ha as PASTE_TMP_DIR_ENV,Ia as PASTE_TMP_TTL_MS,md as PLANNER_AGENT_NAME,ha as PROMISE_PATTERN,lf as PROMPT_SECTION_REGISTRY,Yh as PROTOCOL_EMITTER_TOOLS,Qf as ProviderRecoveryCoordinator,_b as READ_DEFAULT_LIMIT,ac as READ_MAX_LINE_CHARS,$b as READ_PREFLIGHT_SIZE_BYTES,Be as REPO_EXPLORER_AGENT_NAME,Ce as REPO_EXPLORER_TOOL_NAMES,pa as Runner,ug as SCOPED_REVIEW_OUTPUT_SCHEMA,ld as SCOUT_AGENT_NAME,Pi as SCOUT_THEN_AUTHOR_PROMPT_LINES,uf as SELF_KNOWLEDGE_ROUTING_RULE,kf as SYSTEM_PROMPT,Ug as SYSTEM_WORKFLOW_LIMITS,Of as StableBoundaryTracker,Da as TARGET_RAW_SIZE_BYTES,qd as TASK_ENGINE_ROLE_AGENTS,_h as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,Ii as TRACING_ENV,od as WORKER_AGENT_NAME,jg as WORKFLOW_GENERATION_SYSTEM_PROMPT,ne as _resetRuntimeForTesting,qe as activate,ua as actorQueueId,Fc as analyzeChangedScope,ee as appendAuditEntry,xb as appendSessionLineageLabel,Bd as applyAccountingDelta,yg as applyFindingVerification,yb as applySessionCompaction,uc as applyToolResultGuardrail,Eb as archiveOldIslands,Ri as authorWorkflowViaWorker,pi as autoModeDenialShouldFallback,yi as bashSignalCollector,Ji as bootstrapTracing,ih as boundedRevise,ui as breakerShouldFallback,jh as budgetCeiling,Vg as buildApprovalSummary,Ed as buildBlockedGoal,vf as buildCapabilityContextSections,ai as buildClassifierPrompt,Fd as buildCompleteGoal,Ad as buildCreatedGoal,Xf as buildFallbackRoutingDecision,yh as buildGoalRuntimeBinding,ib as buildInitializeCapabilities,be as buildLlmReviewPrompt,mc as buildManualToolDescription,Dh as buildMcpReverseCapabilities,Cd as buildPausedGoal,zf as buildPromptMessageContent,pf as buildPromptSnapshot,Rf as buildProviderCapabilitySnapshot,Yf as buildProviderPolicyHintsForDecision,Sf as buildProviderPolicyPromptNotes,Ec as buildRepoIntelligenceContext,Rc as buildRepoIntelligenceIndex,Bc as buildRepoOverview,Dd as buildResumedGoal,Bg as buildScopedReviewFinalPrompt,zg as buildScopedReviewPrimaryPrompt,Ag as buildScopedReviewVerificationPrompt,Qi as buildScoutThenAuthorPrompt,tf as buildSelfKnowledgeRoutingRule,Cb as buildSessionTree,xf as buildSystemPrompt,wf as buildSystemPromptSnapshot,gf as buildToolResultBudget,hf as buildToolResultBudgetFromUsage,Id as buildToolSearchIndex,Rg as buildWorkflowCostReport,og as buildWorkflowGenerationSkillContext,ng as buildWorkflowGenerationUserPrompt,Mb as canonicalMemoryProjectId,xi as checkAbsoluteDeny,yf as checkIncompleteToolCalls,_f as checkPromiseSignal,jf as clampToolResultPolicyToBudget,Wg as clampWorkflowLimits,ei as classify,Qh as classifyBashCommand,Vb as classifyError,Ac as classifyFileCategory,Mf as classifyResilienceError,cf as cleanupExpiredToolOutputs,Sa as cleanupIncompleteToolCalls,df as cleanupUnreferencedToolOutputs,T as clearRuntimeModelProviders,Qb as clearShellExecutionEnvironmentCache,Ai as collectAllSignals,He as combineExtensionRuntimes,Sh as computeInputSignature,fi as computeRulesFingerprint,me as configureRuntime,If as consumeCompactionCooldown,ed as convertCapabilityReadResult,dd as convertProviderSearchResults,Db as countActiveLineageMessages,ja as countTokens,ka as createAgent,mi as createAutoModeDenialTracker,Ei as createAutoModeToolGuardrail,Ph as createBashClassifierConfig,Hi as createBashPrefixExtractor,Te as createBuiltinToolDefinition,si as createCircuitBreaker,Mh as createCodingMemoryInterventionRunner,sg as createCodingWorkflowBackend,Gf as createCompactionAntiThrashState,Zd as createCtxProxy,F as createCustomProvider,eh as createDefaultCodingAgent,Rh as createDenialTracker,Ie as createExtensionRuntime,hg as createExternalActorTurnExecutor,Aa as createFileArtifactFromPath,la as createHandoff,za as createImageArtifactFromPath,ma as createInMemorySession,Gh as createKodaXTaskRunner,gg as createLocalCodingActorControl,Ua as createMcpCapabilityId,mb as createMcpManager,$a as createMcpTransport,Lb as createProductionLearningReviewer,mf as createPromptSection,Zf as createReasoningPlan,Tg as createRunGraphWriter,Df as createRuntimeContextBudgetSnapshot,gh as createSessionControl,sb as createSessionLineage,$h as createToolResultTruncationGuardrail,Ba as createVideoArtifactFromPath,Li as createWorkflowLifecycleController,Oi as createWorkflowPatternTemplateModule,_g as createWorkflowRunManager,qh as decideWorkflowInvocation,Qd as dedupeExtensionPathsByEntrypoint,Ta as defaultMcpCacheDir,Wd as defaultPolicy,Mg as deleteSavedWorkflow,le as disableSelfModify,db as discoverAuthorizationServerMetadata,Ud as discoverDefaultExtensions,Td as discoverExtensionsInDirectory,Sd as discoverExtensionsInDirectoryDetailed,Ae as discoverMarkdownAgents,eb as discoverOAuthEndpoints,cb as discoverProtectedResourceMetadata,Gg as discoverSavedWorkflows,td as drainPendingSwaps,j as effortToLegacyReasoningMode,Xh as emitVerdict,Yg as emitWorkflowAgentDigest,Qa as enqueueWithArtifacts,De as ensureBuiltinRepoExplorerAgent,ia as estimateTokens,Cf as estimateToolSchemaTokens,Tf as evaluateProviderPolicy,Rd as excludeExtensionPathsByEntrypoint,Ld as exec,bf as executeTool,qb as extractArtifactLedger,Gi as extractCommandPrefix,Bf as extractComparableUserMessageText,cd as extractHtmlTitle,bb as extractInsufficientScope,Af as extractPromptComparableText,ab as extractResourceMetadataUrl,Gb as extractTitleFromMessages,zi as fileSignalCollector,gd as finalizeRetrievalResult,we as findByVersion,zb as findPreviousUserEntryId,Bb as forkSessionLineage,sf as formatAgentsForPrompt,Ih as formatParallelDispatchResult,bc as formatSize,Fb as generateSessionId,qg as generateWorkflow,rg as generateWorkflowFromOptions,Ke as getActiveExtensionRuntime,ra as getAgentConfigHome,sa as getAgentConfigPath,Ve as getAllRegisteredTools,ta as getAppDataDir,W as getAvailableProviderNames,Se as getBuiltinRegisteredToolDefinition,Re as getBuiltinToolDefinition,Eg as getBuiltinWorkflow,N as getCustomModelCapabilities,H as getCustomProvider,K as getCustomProviderList,M as getCustomProviderModelDescriptors,L as getCustomProviderModels,J as getCustomProviderNames,Od as getDefaultExtensionDirectory,dg as getDefaultLspService,$g as getDefaultWorkflowRunManager,Vh as getDenialContext,Wc as getImpactEstimate,qf as getKodaxGlobalDir,Ya as getMcpCachePaths,C as getModelCapabilities,Oa as getModelInputCapabilities,Tc as getModuleContext,Vc as getProcessContext,t as getProvider,x as getProviderConfiguredCapabilityProfile,w as getProviderConfiguredReasoningCapability,y as getProviderList,v as getProviderModel,B as getProviderModelDescriptors,z as getProviderModels,Pe as getRegisteredToolDefinition,Sc as getRepoIntelligenceIndex,Cc as getRepoOverview,Xc as getRepoRoutingSignals,_e as getRequiredToolParams,Q as getRuntimeModelProvider,S as getRuntimeModelProviderNames,tb as getSessionLineagePath,ub as getSessionMessagesFromLineage,Uc as getSymbolContext,Ne as getTool,Oe as getToolDefinition,Qe as getToolRegistrations,tc as getToolResultPolicy,Ni as getWorkflowPatternTemplate,xd as goalTokenDelta,ph as hasExplicitNaturalLanguageWorkflowIntent,sd as hasPendingSwap,xa as inferImageMediaType,Wf as inferTaskType,ya as inferVideoMediaType,rc as inspectEditFailure,Qc as inspectRepoIntelligenceRuntime,I as isCustomProviderName,Uh as isDeniedRecently,V as isKnownProvider,Hh as isParallelDispatchDirective,u as isProviderConfigured,A as isProviderName,R as isRuntimeModelProviderName,Nf as isSessionRecoveryCandidateError,Nd as isSupportedExtensionModulePath,Xe as isToolFileMutation,Ze as isToolMutation,Ye as isToolNetworkRead,We as isToolPlanModeAllowed,Gd as isValidTokenBudget,$f as languageIdForPath,xe as listAll,Z as listAllModelCapabilities,te as listArtifacts,D as listBuiltinModelCapabilities,Ue as listBuiltinToolDefinitions,Fg as listBuiltinWorkflows,ud as listCodingDispatchableAgents,ve as listConstructed,O as listCustomProviderModelCapabilities,af as listToolDefinitions,$e as listTools,Mi as listWorkflowPatternTemplates,rf as loadAgentsFiles,ye as loadAgentsFromMarkdown,ji as loadAutoRules,Og as loadGeneratedWorkflowFromRun,_d as loadHandler,ze as loadMarkdownAgentScope,Jg as loadSavedWorkflow,Ig as loadSavedWorkflowCapsule,hb as loadValidToken,wd as makeDisabledGoalToolsContext,i as mapLegacyReasoningModeToEffortIntent,ff as maybeRunReferenceAwareToolOutputGc,ef as maybeRunToolOutputGc,Ch as mcpRootsFromWorkspace,rb as mergeArtifactLedger,xg as mergeScopedReviewResults,Nb as normalizeKodaXAgentMode,Va as normalizeMcpCapabilityId,Ea as normalizePastedImage,h as normalizeReasoningEffortValue,wg as normalizeScopedReviewResult,Ob as normalizeShellExecutionContract,Hg as normalizeWorkflowModule,nf as orderPromptSections,tg as parallelInvestigation,ii as parseAutoRules,bi as parseClassifierOutput,qc as parseEditToolError,ce as parseLlmReviewVerdict,Wa as parseMcpCapabilityId,vi as parseModelSpec,k as parseReasoningEffortEnv,e as parseTimeoutSecEnvMs,Kd as parseToolSearchQuery,pg as parseWorkflowGeneration,gb as performOAuthLogin,Ja as persistImageAsBlock,gc as persistToolOutput,Ff as planToolExposure,Qg as preflightWorkflowCapsule,Yc as prewarmRepoIntelligenceCaches,ig as providerResilienceConfigFromTimeouts,Ka as prunePasteTmpDir,Ga as readAndNormalizeClipboardImage,ue as readArtifact,fe as readAuditEntries,he as readBudget,Fa as readClipboardImage,ke as readDisableState,Ci as readSpeculativeWindowFromEnv,gi as readTrustState,Vf as reasoningModeToDepth,Pf as reconstructMessagesWithToolGuard,oi as recordAutoModeAllow,ni as recordAutoModeBlock,sh as recordBlockerAttempt,ti as recordBreakerError,Jf as recordCompactionSavings,Th as recordDenial,nh as registerCodingInvariants,Ah as registerConfiguredMcpCapabilityProvider,G as registerCustomProviders,P as registerModelProvider,fb as registerOAuthClient,Eh as registerOfficialSandboxExtension,oa as registerPresetDispatcher,Me as registerTool,re as rehydrateActiveArtifacts,ie as remainingSelfModifyBudget,Lg as renameSavedWorkflow,Gc as renderChangedScope,Nc as renderImpactEstimate,Kc as renderModuleContext,Mc as renderProcessContext,of as renderPromptSections,Dc as renderRepoOverview,fd as renderRetrievalResult,Lc as renderSymbolContext,Bh as replaceConfiguredMcpCapabilityProvider,Ng as replaceSavedWorkflow,ag as reportLspDiagnostics,th as resetBlockerCounter,je as resetBudget,wi as resolveClassifierModel,vd as resolveCodingDispatchableAgent,rd as resolveConstructedAgent,Pd as resolveExtensionEntrypoint,lc as resolveKodaXManual,Y as resolveModelCapabilities,U as resolveProvider,X as resolveProviderModelDescriptors,l as resolveReasoningEffort,m as resolveReasoningEffortForModelSwitch,Uf as resolveReasoningMode,Pc as resolveRepoIntelligenceMode,Oc as resolveRepoIntelligenceRuntimeConfig,Lf as resolveResilienceConfig,vb as resolveSessionLineageTarget,Hd as resolveToolBridgeTarget,kh as resolveToolCapability,fc as resolveToolOutputDir,_ as resolveWireEffort,lg as resolveWorkflowGenerationTimeoutMs,Ki as resolveWorkflowIdentity,se as revoke,Ab as rewindSessionLineage,Ee as rollbackSelfModify,$d as runAstRules,fh as runKodaX,de as runLlmReview,zh as runManagedTask,Fh as runOrchestration,Zg as runWorkflowFromOptions,Xg as runWorkflowModule,Sg as safeWorkflowArtifactName,Kg as saveGeneratedWorkflow,Pg as saveGeneratedWorkflowFromRun,Cg as scopedReview,Xa as searchMcpCatalog,Jd as searchToolIndex,Je as setActiveExtensionRuntime,qa as setAgentConfigHome,wb as setSessionLineageActiveEntry,Pb as shellExecutionContractFingerprint,zd as shouldFlipBudgetLimited,Hf as shouldSkipLlmCompaction,eg as shutdownDefaultLspService,Di as speculativeRace,oe as stage,hh as startKodaX,ah as startManagedWorkflow,ci as stripAssistantText,bd as stripHtmlToText,pe as testArtifact,d as timeoutSecToMs,zc as toolAskUserQuestion,vc as toolBash,Jc as toolChangedDiff,Ic as toolChangedScope,jd as toolCodeSearch,pc as toolEdit,wc as toolGlob,xc as toolGrep,ad as toolImpactEstimate,sc as toolInsertAfterAnchor,Zc as toolModuleContext,lh as toolPermission,$c as toolProcessContext,hc as toolRead,Hc as toolRepoOverview,kd as toolSemanticLookup,_c as toolSymbolContext,yc as toolUndo,id as toolWebFetch,hd as toolWebSearch,oc as toolWrite,cc as truncateHead,ec as truncateLine,dc as truncateTail,hi as trustProjectRules,yd as turnWallTimeDelta,Ra as validateAndFixToolHistory,E as validateCustomProviderConfig,mg as validateGeneratedWorkflowSource,Pa as validateInputArtifactsForModel,Jh as validateSubtaskIndependence,ae as validateToolSchemaForProvider,xh as verifyGoalCompletion,Md as webhook,vh as withGoalBeforeNextTurn,wh as withGoalStopHook,nc as withManualToolBranding,pd as workerAgent,rh as workflowStartOutcomeConsumesTurn,Si as writeReviewPackets};
@@ -1,2 +0,0 @@
1
- // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{j as a}from"./chunk-UID7BLAB.js";import"./chunk-Z3KFRTSB.js";import"./chunk-6FOJVETH.js";import"./chunk-KQLQYHWU.js";import"./chunk-YAZQTC2L.js";import"./chunk-5NDCSFOP.js";import"./chunk-VAT2QYXM.js";import"./chunk-6XM4B6K2.js";import"./chunk-2CFHBKRE.js";import"./chunk-NXO6GWSY.js";import"./chunk-ONUPGMER.js";export{a as startManagedWorkflow};
@@ -1,2 +0,0 @@
1
- // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{I as a,J as b}from"./chunk-6FOJVETH.js";import"./chunk-KQLQYHWU.js";import"./chunk-YAZQTC2L.js";import"./chunk-5NDCSFOP.js";import"./chunk-VAT2QYXM.js";import"./chunk-6XM4B6K2.js";import"./chunk-2CFHBKRE.js";import"./chunk-NXO6GWSY.js";import"./chunk-ONUPGMER.js";export{a as createWorkflowRunManager,b as getDefaultWorkflowRunManager};
@@ -1,156 +0,0 @@
1
- import { bi as Guardrail, dT as RunnerToolCall, f as Agent, ab as AgentMessage, dW as RunnerToolResult, e5 as Span } from './types.d-BA-Jwpfs.js';
2
-
3
- /**
4
- * Guardrail Runtime — FEATURE_085 (v0.7.26).
5
- *
6
- * Three-tier runtime for Agent guardrails:
7
- *
8
- * - `InputGuardrail`: runs once before the first LLM turn, inspects the
9
- * full input transcript, may allow / rewrite / block / escalate.
10
- * - `OutputGuardrail`: runs once before returning, inspects the final
11
- * assistant message, may allow / rewrite / block / escalate.
12
- * - `ToolGuardrail`: runs before and/or after each tool invocation,
13
- * inspects the call / result, may allow / rewrite / block / escalate.
14
- *
15
- * The four verdict actions:
16
- *
17
- * - `allow`: continue with the current value.
18
- * - `rewrite`: replace the current value with `payload`.
19
- * - `block`: throw `GuardrailBlockedError` (for input/output) or surface
20
- * an error tool_result (for tool-before); the LLM / caller sees a
21
- * rejection and must adapt.
22
- * - `escalate`: throw `GuardrailEscalateError`; the SDK consumer catches
23
- * and decides whether to prompt the user, retry under different
24
- * constraints, etc.
25
- *
26
- * Every guardrail invocation emits a `GuardrailSpan` under the agent's
27
- * span when tracing is active.
28
- *
29
- * @experimental API shape may adjust during v0.7.x rollout.
30
- */
31
-
32
- /**
33
- * Shared execution context passed to every guardrail.
34
- *
35
- * `messages` is the live conversation transcript at the moment this
36
- * guardrail fires. For tool-side guardrails this is the transcript at
37
- * call-site time — it does NOT yet include the assistant turn that
38
- * emitted the current tool_use, since that turn is appended only after
39
- * the full tool batch settles. Optional so existing guardrails that
40
- * don't read context still type-check; populated by the Runner for all
41
- * production hook points.
42
- *
43
- * Added in FEATURE_092 (v0.7.33) so the auto-mode classifier guardrail
44
- * can extract intent context (user prompt + prior tool_use / tool_result
45
- * blocks) without reaching into Runner internals.
46
- */
47
- interface GuardrailContext {
48
- readonly agent: Agent;
49
- readonly abortSignal?: AbortSignal;
50
- readonly messages?: readonly AgentMessage[];
51
- }
52
- /**
53
- * Outcome of a single guardrail check. `payload` shape depends on the hook
54
- * point — see the specific guardrail interface for the expected type.
55
- */
56
- type GuardrailVerdict = {
57
- readonly action: 'allow';
58
- } | {
59
- readonly action: 'rewrite';
60
- readonly payload: unknown;
61
- readonly reason?: string;
62
- } | {
63
- readonly action: 'block';
64
- readonly reason: string;
65
- } | {
66
- readonly action: 'escalate';
67
- readonly reason: string;
68
- };
69
- /**
70
- * Input-side guardrail. Expected `rewrite` payload shape:
71
- * `readonly AgentMessage[]` — the replacement transcript.
72
- */
73
- interface InputGuardrail extends Guardrail {
74
- readonly kind: 'input';
75
- check(input: readonly AgentMessage[], ctx: GuardrailContext): Promise<GuardrailVerdict>;
76
- }
77
- /**
78
- * Output-side guardrail. Expected `rewrite` payload shape:
79
- * `AgentMessage` — the replacement final assistant message.
80
- */
81
- interface OutputGuardrail extends Guardrail {
82
- readonly kind: 'output';
83
- check(output: AgentMessage, ctx: GuardrailContext): Promise<GuardrailVerdict>;
84
- }
85
- /**
86
- * Tool-side guardrail. `beforeTool` rewrite payload shape: `RunnerToolCall`
87
- * (replacement call). `afterTool` rewrite payload shape: `RunnerToolResult`
88
- * (replacement result). Either hook is optional.
89
- */
90
- interface ToolGuardrail extends Guardrail {
91
- readonly kind: 'tool';
92
- beforeTool?(call: RunnerToolCall, ctx: GuardrailContext): Promise<GuardrailVerdict>;
93
- afterTool?(call: RunnerToolCall, result: RunnerToolResult, ctx: GuardrailContext): Promise<GuardrailVerdict>;
94
- }
95
- /**
96
- * Thrown when any guardrail returns `{ action: 'block' }`. The Runner
97
- * propagates this up to the caller — the run is aborted at that point.
98
- */
99
- declare class GuardrailBlockedError extends Error {
100
- readonly guardrailName: string;
101
- readonly hookPoint: 'input' | 'output' | 'tool';
102
- constructor(guardrailName: string, hookPoint: 'input' | 'output' | 'tool', reason: string);
103
- }
104
- /**
105
- * Thrown when any guardrail returns `{ action: 'escalate' }`. Callers can
106
- * catch and prompt the user or apply a stricter policy before retrying.
107
- */
108
- declare class GuardrailEscalateError extends Error {
109
- readonly guardrailName: string;
110
- readonly hookPoint: 'input' | 'output' | 'tool';
111
- constructor(guardrailName: string, hookPoint: 'input' | 'output' | 'tool', reason: string);
112
- }
113
- /** Filter a guardrail list by hook-point. */
114
- declare function collectGuardrails(guardrails: readonly Guardrail[] | undefined): {
115
- input: readonly InputGuardrail[];
116
- output: readonly OutputGuardrail[];
117
- tool: readonly ToolGuardrail[];
118
- };
119
- /**
120
- * Run all input guardrails in declaration order. Returns the (possibly
121
- * rewritten) transcript. Throws on block / escalate.
122
- */
123
- declare function runInputGuardrails(transcript: readonly AgentMessage[], guardrails: readonly InputGuardrail[], ctx: GuardrailContext, agentSpan: Span | null): Promise<readonly AgentMessage[]>;
124
- /**
125
- * Run all output guardrails in declaration order. Returns the (possibly
126
- * rewritten) final assistant message. Throws on block / escalate.
127
- */
128
- declare function runOutputGuardrails(output: AgentMessage, guardrails: readonly OutputGuardrail[], ctx: GuardrailContext, agentSpan: Span | null): Promise<AgentMessage>;
129
- /**
130
- * Outcome of the before-tool guardrail stage.
131
- * - `{ kind: 'allow', call }`: continue to executeRunnerToolCall with `call`
132
- * - `{ kind: 'block', result }`: skip execution; return `result` as the
133
- * tool_result to the LLM (so it sees the rejection and can adapt)
134
- */
135
- type ToolBeforeOutcome = {
136
- readonly kind: 'allow';
137
- readonly call: RunnerToolCall;
138
- } | {
139
- readonly kind: 'block';
140
- readonly call: RunnerToolCall;
141
- readonly result: RunnerToolResult;
142
- };
143
- /**
144
- * Run before-tool guardrails in declaration order. Rewrite replaces the
145
- * tool call. Block surfaces an error tool_result to the LLM instead of
146
- * throwing — the LLM sees the rejection and adapts. Escalate still throws.
147
- */
148
- declare function runToolBeforeGuardrails(call: RunnerToolCall, guardrails: readonly ToolGuardrail[], ctx: GuardrailContext, agentSpan: Span | null): Promise<ToolBeforeOutcome>;
149
- /**
150
- * Run after-tool guardrails in declaration order. Rewrite replaces the
151
- * result content. Block replaces with an error result. Escalate throws.
152
- */
153
- declare function runToolAfterGuardrails(call: RunnerToolCall, result: RunnerToolResult, guardrails: readonly ToolGuardrail[], ctx: GuardrailContext, agentSpan: Span | null): Promise<RunnerToolResult>;
154
-
155
- export { GuardrailBlockedError as G, GuardrailEscalateError as b, collectGuardrails as e, runOutputGuardrails as f, runToolAfterGuardrails as g, runToolBeforeGuardrails as h, runInputGuardrails as r };
156
- export type { InputGuardrail as I, OutputGuardrail as O, ToolBeforeOutcome as T, GuardrailContext as a, GuardrailVerdict as c, ToolGuardrail as d };