@kodax-ai/kodax 0.7.85 → 0.7.86
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 +93 -1
- package/README.md +1867 -1841
- package/README_CN.md +1136 -1130
- package/dist/chunks/{agent-OQ37XUWF.js → agent-IO6TXNCV.js} +1 -1
- package/dist/chunks/argument-completer-JMICSGL6.js +2 -0
- package/dist/chunks/chunk-2RAXDUC7.js +379 -0
- package/dist/chunks/{chunk-MJ4G5ZCW.js → chunk-A5VQGXH2.js} +1 -1
- package/dist/chunks/{chunk-TBBY2DKE.js → chunk-AAFFS6RU.js} +2 -2
- package/dist/chunks/{chunk-IA246OAN.js → chunk-B36G256E.js} +2 -2
- package/dist/chunks/{chunk-3E4OSFP2.js → chunk-G5FGIRDJ.js} +136 -137
- package/dist/chunks/{chunk-RSOAHVUR.js → chunk-GVGLYVG4.js} +1 -1
- package/dist/chunks/chunk-MFCPQZ7E.js +519 -0
- package/dist/chunks/chunk-Q6UAGROD.js +415 -0
- package/dist/chunks/{chunk-IWRNGH4M.js → chunk-R4EHASEN.js} +5 -5
- package/dist/chunks/{chunk-ZVOXWLT6.js → chunk-U6HNMLNN.js} +226 -214
- package/dist/chunks/{chunk-ODRLFQQH.js → chunk-UKCDCVMD.js} +1 -1
- package/dist/chunks/{chunk-CZCEFGQG.js → chunk-XA4ENCAH.js} +1 -1
- package/dist/chunks/{chunk-SR4E5FQK.js → chunk-XUKLF26Q.js} +2 -2
- package/dist/chunks/{compaction-config-3WLLNN57.js → compaction-config-5RMG22CY.js} +1 -1
- package/dist/chunks/{construction-bootstrap-CZ6NWEWQ.js → construction-bootstrap-4DGAYOWH.js} +1 -1
- package/dist/chunks/{dist-NFLLOZWF.js → dist-DFW7MXT7.js} +1 -1
- package/dist/chunks/host-6MMHYTI5.js +2 -0
- package/dist/chunks/run-manager-ISQSWCAM.js +2 -0
- package/dist/chunks/{utils-KFLK3EHJ.js → utils-LV7FHKYN.js} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +1 -1
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1459 -1411
- package/dist/kodax_resume.js +78 -76
- package/dist/runtime-worker.js +1467 -1419
- package/dist/sandbox-workspace-session.js +346 -302
- package/dist/sdk-a2a.d.ts +5 -5
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +8 -8
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-repl.d.ts +9 -11
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-runtime.d.ts +14 -6
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.d.ts +1 -1
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +3 -3
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +63 -64
- package/dist/types-chunks/{bash-prefix-extractor.d-BnZQDirs.d.ts → bash-prefix-extractor.d-QqKtuLZm.d.ts} +9 -3
- package/dist/types-chunks/{guardrail.d-BCkgaWT1.d.ts → guardrail.d-Y_AIh8-I.d.ts} +1 -7
- package/dist/types-chunks/{public-api.d-N6G6Jw8X.d.ts → public-api.d-Cg-4GTbK.d.ts} +1 -1
- package/dist/types-chunks/{repl.d-BkTIOkJD.d.ts → repl.d-Bhrbueab.d.ts} +4 -4
- package/dist/types-chunks/{sdk-session-DLkZTOc-.d.ts → sdk-session-fQ_KENev.d.ts} +1 -1
- package/dist/types-chunks/{shell-command-sets.d-BrLw-WN9.d.ts → shell-command-sets.d-DRGjd_7Q.d.ts} +1 -1
- package/dist/types-chunks/{types.d-Ch3BD97c.d.ts → types.d-BRrJU4pb.d.ts} +1 -1
- package/dist/types-chunks/{utils.d-BI-kjuev.d.ts → utils.d-BIhh_BqE.d.ts} +3 -3
- package/package.json +1 -1
- package/dist/chunks/argument-completer-IMRSIF2N.js +0 -2
- package/dist/chunks/chunk-2XJQNFVR.js +0 -379
- package/dist/chunks/chunk-CDWYKVZC.js +0 -482
- package/dist/chunks/chunk-RTFVMEF6.js +0 -415
- package/dist/chunks/host-LWUSSCWH.js +0 -2
- package/dist/chunks/run-manager-PBMOVP7A.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{D as N,J as C}from"./chunk-
|
|
2
|
+
import{D as N,J as C}from"./chunk-XUKLF26Q.js";import{ee as q,fe as j,na as _}from"./chunk-U6HNMLNN.js";import{Pa as E,gb as T,m as x,n as R}from"./chunk-TRNAWSXP.js";import{Fd as O,Gd as W,Ld as M,og as $,pg as g,qg as k,tg as I,ug as y,vg as b}from"./chunk-G5FGIRDJ.js";import{a as o}from"./chunk-ONUPGMER.js";import{join as Pe}from"node:path";var ne=["You generate KodaX Dynamic Workflow scripts.","Return JSON only. Do not wrap the answer in prose.","For simple tasks that do not benefit from multiple agents, return:",'{"action":"decline","reason":"..."}',"For complex tasks, return:",'{"action":"generate","manifest":{...},"source":"async function run(wf, args) { ... }","approvalSummary":"..."}',"Generated source may only coordinate agents through wf and args.","Generated source must return displayable final text for the user.","Never use import, require, process, fs, child_process, network APIs, shell commands, or direct file access."].join(`
|
|
3
3
|
`),P=12e4,re="KODAX_WORKFLOW_GENERATION_TIMEOUT_SEC",se="KODAX_WORKFLOW_GENERATION_TIMEOUT_MS",oe=64,ie=2,ae=2e3,le=[{name:"default"},{name:"variant-results",finalText:o((e,n)=>`Variant smoke child report from ${e} (${n}).`,"finalText"),synthesizeText:"Variant smoke synthesis report."},{name:"unverified-success",status:o(()=>"completed_unverified","status"),finalText:o(e=>`Smoke result for ${e}: completed with verification warnings.`,"finalText"),synthesizeText:"Smoke synthesis: completed with verification warnings."},{name:"empty-args-rerun",args:o(()=>({}),"args")}],ce=[{id:"import",pattern:/\bimport\s*(?:\(|['"*{]|\w+\s+from\b)/},{id:"require",pattern:/\brequire\s*\(/},{id:"process",pattern:/\bprocess\s*(?:\.|\[)/},{id:"fs",pattern:/\b(?:node:)?fs\b/},{id:"child_process",pattern:/\bchild_process\b/},{id:"shell",pattern:/\b(?:exec|spawn|execFile)\s*\(/},{id:"fetch",pattern:/\bfetch\s*\(/},{id:"Deno",pattern:/\bDeno\s*(?:\.|\[)/},{id:"Bun",pattern:/\bBun\s*(?:\.|\[)/},{id:"globalThis-index",pattern:/\bglobalThis\s*\[/}];function ue(e=process.env,n){let t=x(n?.workflow?.generationTimeoutSec,"timeouts.workflow.generationTimeoutSec");if(t!==void 0)return t;let r=R(e[re]);if(r!==void 0)return r;let s=e[se];if(s===void 0||s.trim().length===0)return P;let i=Number(s);return!Number.isFinite(i)||i<=0?P:Math.floor(i)}o(ue,"resolveWorkflowGenerationTimeoutMs");function fe(e,n){if(typeof e!="object"||e===null)throw new Error(`${n} must be an object`);return e}o(fe,"readRecord");function D(e,n){let t=e[n];if(typeof t!="string"||t.trim().length===0)throw new Error(`workflow generation ${n} must be a non-empty string`);return t}o(D,"readNonEmptyString");function de(e){let n=e.trim(),t=/^```(?:json)?\s*([\s\S]*?)\s*```$/i.exec(n);if(t?.[1])return t[1].trim();let r=n.indexOf("{"),s=n.lastIndexOf("}");if(r>=0&&s>r)return n.slice(r,s+1);throw new Error("workflow generation output did not contain a JSON object")}o(de,"extractJsonText");function pe(e){let n=de(e);return fe(JSON.parse(n),"workflow generation output")}o(pe,"parseGenerationJson");function me(e){if(typeof e=="string"){let t=e.trim();return t.length>0?t:void 0}if(typeof e!="object"||e===null)return;let n=e;for(let t of["name","id","title","phase"]){let r=n[t];if(typeof r=="string"&&r.trim().length>0)return r.trim()}}o(me,"normalizePhaseEntry");function we(e){return e.split(/(?:->|\u2192|,|\n)/).map(n=>n.trim()).filter(n=>n.length>0)}o(we,"splitPhaseString");function he(e){if(typeof e!="object"||e===null)return e;let n=e,t=n.phases,r;if(Array.isArray(t)){let s=t.map(me);s.every(i=>i!==void 0)&&(r=s)}else if(typeof t=="string"){let s=we(t);s.length>0&&(r=s)}return r?{...n,phases:r}:e}o(he,"normalizeGeneratedManifestCandidate");function ge(e){return e.match(/\bwf\.(?:runAgent|spawnAgent|synthesize)\s*\(/g)?.length??0}o(ge,"estimateDirectAgentCalls");function ke(e,n){let t=e.maxConcurrency*Math.max(1,e.phases.length)+2,r=ge(n)+2,s=Math.min(oe,Math.max(e.maxAgents,t,r));return s>e.maxAgents?{...e,maxAgents:s}:e}o(ke,"reserveGeneratedWorkflowAgentCapacity");function w(e){let n="",t=0,r=["code"],s=[0];for(;t<e.length;){let i=e[t],a=e[t+1];if(r[r.length-1]==="template"){if(i==="\\"){n+=" ",t+=2;continue}if(i==="`"){n+=" ",t+=1,r.pop(),s.pop();continue}if(i==="$"&&a==="{"){n+=" ",t+=2,r.push("code"),s.push(0);continue}n+=i===`
|
|
4
4
|
`?`
|
|
5
5
|
`:" ",t+=1;continue}if(i==="/"&&a==="/"){for(n+=" ",t+=2;t<e.length&&e[t]!==`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as To,$a as Za,Aa as Vt,Ba as Ea,Ca as xa,D as Mn,Da as Sa,E as On,Ea as _a,F as ra,Fa as yt,G as co,Ga as Ca,H as oa,Ha as Aa,Ia,Ja as Fa,K as ia,Ka as Ua,L as sa,La as Wa,M as aa,Ma as Ga,N as Gt,Na as Dn,O as uo,Oa as Ha,Pa as Va,Qa as qa,R as lo,Ra as Ka,S as fo,Sa as Xa,T as mo,Ta as Nn,U as po,Ua as Co,V as ma,Va as Ao,W as pa,Wa as za,Xa as Ya,Y as go,Ya as Ja,Z as ho,Za as Io,_a as Qa,a as Ie,ab as ec,ba as vo,ca as ga,da as ha,ea as yo,f as Ar,fa as ko,h as Is,i as Ir,ja as Ht,k as Mr,l as vn,la as Ta,ma as va,na as wo,o as jt,pa as Ro,ra as bo,sa as ya,ta as ka,va as Eo,wa,xa as xo,xc as tc,ya as Ra,yc as $e,z as ao,za as ba}from"./chunk-RTFVMEF6.js";import{a as So}from"./chunk-HTVLCHWH.js";import{A as _o,o as Da,t as Na,u as $a,v as La,y as ja}from"./chunk-SR4E5FQK.js";import{$b as no,Ba as Rn,Bd as Be,Cd as io,D as Ls,F as Nr,G as $r,Ha as Ut,I as Lr,Ia as Vr,Jd as so,Ka as qr,Kb as Ys,La as Kr,Lb as Js,Mb as Qs,Na as Xr,Oa as zr,Od as na,Pb as xn,Qd as ca,Rb as Sn,Rd as da,S as Bs,Sa as Yr,Sb as _n,Sd as ua,T as Fs,Td as la,V as Us,Va as Jr,Vb as Cn,W as Ws,Wb as An,Wd as fa,X as jr,Y as Gs,Yb as to,Yc as ro,Za as bn,Zb as je,_a as En,a as Tn,ac as Zs,b as As,bb as Qr,da as kn,eb as Zr,fa as Br,fb as eo,ga as Fr,gb as zs,ha as wn,ia as Hs,id as ea,ie as Ma,ja as Ur,jd as ta,ka as Wr,l as Or,la as Vs,ma as tt,nd as In,o as Ms,oa as qs,od as Wt,oe as Oa,p as Pr,pe as Pn,q as Os,qe as Pa,s as Ps,sd as oo,se as Ba,t as Ds,u as yn,ua as Gr,v as Ns,va as Hr,w as Bt,wa as Ks,x as $s,xa as Xs,z as Dr,za as Ft,zb as Me}from"./chunk-ZVOXWLT6.js";import{h as js}from"./chunk-RSOAHVUR.js";import{D as Je,Pa as we,R as Vi,T as un,ab as vr,bb as ln,cb as yr,db as kr,e as Tr,fb as wr,gb as qi,k as dn,na as Qe,ua as Ze}from"./chunk-TRNAWSXP.js";import{Aa as br,Ab as cs,B as Xi,Db as ds,Eb as us,Ga as es,Gb as ls,Ia as Er,Jb as xr,Kb as Sr,Ke as hn,L as zi,Nb as Tt,O as Yi,Ob as fs,Td as ms,Xd as ps,Yd as gs,Yf as vt,Zf as bs,ef as hs,fb as ts,g as fn,ha as Rr,ib as ns,ig as Es,k as ne,l as Le,mg as xs,nf as _r,ng as Ss,o as Lt,of as Ts,pf as vs,pg as _s,q as mn,qb as Ae,r as Ki,rf as ys,sb as rs,sf as ks,t as et,ta as ht,tf as ws,ua as Ji,uf as Rs,vb as as,vf as Cr,vg as Cs,wa as Qi,za as Zi}from"./chunk-3E4OSFP2.js";import{K as ss,h as pn,j as gn,k as os,p as is}from"./chunk-UH5WNJXF.js";import{a as o}from"./chunk-ONUPGMER.js";var qt=class extends Error{static{o(this,"KodaXError")}code;constructor(t,n="KODAX_ERROR"){super(t),this.code=n,this.name="KodaXError"}};var Mo=class extends qt{static{o(this,"KodaXToolError")}toolName;toolId;constructor(t,n,r){super(t,"TOOL_ERROR"),this.toolName=n,this.toolId=r,this.name="KodaXToolError"}};var Oo=class extends qt{static{o(this,"KodaXSessionError")}sessionId;constructor(t,n){super(t,"SESSION_ERROR"),this.sessionId=n,this.name="KodaXSessionError"}},Po=class extends qt{static{o(this,"KodaXTerminalError")}suggestions;constructor(t,n=[]){super(t,"TERMINAL_ERROR"),this.name="KodaXTerminalError",this.suggestions=n}};function Gl(){return new $n}o(Gl,"createSessionControl");function Do(e,t){let n=new AbortController,r=!1,i=o(p=>{r||(r=!0,n.abort(p))},"markAborted");e.abortSignal&&(e.abortSignal.aborted?i(e.abortSignal.reason):e.abortSignal.addEventListener("abort",()=>i(e.abortSignal.reason),{once:!0}));let s=new $n;s.seed({provider:e.provider,model:e.modelOverride??e.model,reasoning:e.reasoningMode});let a=e.session?.id,c=a!=null,d=a??Hl(),f=!c&&e.session?.autoResume!==!0&&e.session?.resume!==!0?Ja({...e.session??{},id:d}):e.session,l={...e,...e.agentMode!==void 0?{agentMode:jt(e.agentMode)}:{},...f!==void 0?{session:f}:{},abortSignal:n.signal,sessionControl:s},g=$e(l,t);return{id:d,get currentProvider(){return s.getProvider()},get currentModel(){return s.getModel()},get currentReasoning(){return s.getReasoning()},get aborted(){return r},get attached(){return s.isAttached()},setProvider:o(p=>s.setProvider(p),"setProvider"),setModel:o(p=>s.setModel(p),"setModel"),setReasoning:o(p=>s.setReasoning(p),"setReasoning"),abort:o(p=>i(p),"abort"),result:g}}o(Do,"startKodaX");function Hl(){return`sess_${Date.now()}_${Math.random().toString(36).slice(2,10)}`}o(Hl,"generateSessionId");var $n=class{static{o(this,"SessionControlImpl")}mutators=null;providerValue;modelValue;reasoningValue;hasPendingProvider=!1;hasPendingModel=!1;hasPendingReasoning=!1;seed(t){this.providerValue=t.provider,this.modelValue=t.model,this.reasoningValue=t.reasoning}setProvider(t){this.providerValue=t,this.mutators?this.mutators.setProvider(t):this.hasPendingProvider=!0}setModel(t){this.modelValue=t,this.mutators?this.mutators.setModel(t):this.hasPendingModel=!0}setReasoning(t){this.reasoningValue=t,this.mutators?this.mutators.setReasoning(t):this.hasPendingReasoning=!0}getProvider(){return this.providerValue??""}getModel(){return this.modelValue}getReasoning(){return this.reasoningValue}isAttached(){return this.mutators!==null}_attach(t){this.mutators,this.mutators=t,this.hasPendingProvider&&this.providerValue!==void 0&&t.setProvider(this.providerValue),this.hasPendingModel&&t.setModel(this.modelValue),this.hasPendingReasoning&&t.setReasoning(this.reasoningValue),this.hasPendingProvider=!1,this.hasPendingModel=!1,this.hasPendingReasoning=!1}};function Vl(e,t){return e.kind!=="revise_count"?{ok:!0}:e.count<=3?{ok:!0}:{ok:!1,severity:"warn",reason:`boundedRevise: revise_count for harness="${e.harness}" reached ${e.count}, exceeding soft threshold 3`}}o(Vl,"observe");var No={id:"boundedRevise",description:"Per-harness revise count must stay within the soft threshold; crossings emit a warn signal for dispatch-eval (hard cap enforced by the budget controller).",observe:Vl};function ql(e,t){return typeof e.maxBudget!="number"?{ok:!0}:e.maxBudget<=t.systemCap.maxBudget?{ok:!0}:{ok:!1,severity:"clamp",reason:`budgetCeiling: manifest.maxBudget=${e.maxBudget} exceeds systemCap.maxBudget=${t.systemCap.maxBudget}`,patch:{clampMaxBudget:t.systemCap.maxBudget}}}o(ql,"admit");var $o={id:"budgetCeiling",description:"manifest.maxBudget must be \u2264 systemCap.maxBudget; over-cap declarations are clamped down to the cap.",admit:ql};function Kl(e,t){return{ok:!0}}o(Kl,"observe");var nc={id:"harnessSelectionTiming",description:"FEATURE_193 V2 no-op shell \u2014 predicate always admits since V1 Scout retired. Kept registered for admission-framework / audit-array compat.",observe:Kl};function Xl(e,t){if(e.kind!=="mutation_recorded")return{ok:!0};let n=t.recorder;return typeof n.todoUpdateCount!="number"?{ok:!0}:n.todoUpdateCount>0?{ok:!0}:n.workerTrivialDeclaration===!0?{ok:!0}:{ok:!1,severity:"warn",reason:`planBeforeMutate: Worker mutated ${e.file} without a prior todo_update plan commit and without a trivial declaration`}}o(Xl,"observe");var rc={id:"planBeforeMutate",description:"Worker mutations should be preceded by a todo_update plan commit (or an explicit trivial declaration). Missing plan is a warn-only signal in v0.7.36.",observe:Xl};function Lo(e){switch(e){case"read":case"glob":case"grep":case"code_search":case"semantic_lookup":case"lsp_definition":case"lsp_hover":case"lsp_references":case"lsp_document_symbols":case"lsp_workspace_symbols":case"lsp_implementation":case"lsp_prepare_call_hierarchy":case"lsp_incoming_calls":case"lsp_outgoing_calls":case"repo_overview":case"changed_scope":case"changed_diff":case"changed_diff_bundle":case"module_context":case"symbol_context":case"process_context":case"impact_estimate":case"relationship_scan":case"cyclic_dependencies":case"ask_user_question":case"exit_plan_mode":return"read";case"write":case"edit":case"multi_edit":case"insert_after_anchor":case"undo":return"edit";case"bash":return"bash:mutating";case"web_search":case"web_fetch":case"mcp_search":case"mcp_describe":case"mcp_call":case"mcp_read_resource":case"mcp_get_prompt":return"bash:network";case"spawn_agent":case"send_message":case"followup_task":case"wait_agent":case"interrupt_agent":case"list_agents":case"agent_output":case"emit_verdict":case"scaffold_tool":case"validate_tool":case"stage_construction":case"test_tool":case"activate_tool":case"scaffold_agent":case"validate_agent":case"stage_agent_construction":case"test_agent":case"activate_agent":case"worktree_create":case"worktree_remove":return"subagent";default:return"subagent"}}o(Lo,"resolveToolCapability");function zl(e){if(typeof e=="object"&&e!==null&&"name"in e){let t=e.name;if(typeof t=="string"&&t.length>0)return t}}o(zl,"getToolName");function Yl(e,t){if(!e.tools||e.tools.length===0)return{ok:!0};let n=new Set(t.systemCap.allowedToolCapabilities),r=[];for(let a of e.tools){let c=zl(a);if(!c)continue;let d=Lo(c);n.has(d)||r.push({name:c,capability:d})}if(r.length===0)return{ok:!0};let i=r.map(a=>a.name);return{ok:!1,severity:"clamp",reason:`toolPermission: tools requiring disallowed capabilities \u2014 ${r.map(a=>`${a.name}=${a.capability}`).join(", ")}`,patch:{removeTools:i}}}o(Yl,"admit");var jo={id:"toolPermission",description:"Every tool in manifest.tools must resolve to a capability tier that systemCap.allowedToolCapabilities permits; offending tools are clamped via removeTools.",admit:Yl};var oc=[$o,jo,No,nc,rc];function Jl(){es();for(let e of oc)Yi(e)}o(Jl,"registerCodingInvariants");var Ln=class{static{o(this,"KodaXClient")}options;sessionId;messages=[];contextTokenSnapshot;constructor(t){this.options=t,this.sessionId=t.session?.id??"",this.messages=t.session?.initialMessages?[...t.session.initialMessages]:[],this.contextTokenSnapshot=t.context?.contextTokenSnapshot}async send(t){let n=this.messages.length>0?this.messages:this.options.session?.initialMessages,r=await $e({...this.options,session:{...this.options.session,id:this.sessionId||void 0,initialMessages:n},context:{...this.options.context,contextTokenSnapshot:this.contextTokenSnapshot}},t);return this.sessionId=r.sessionId,this.messages=r.messages,this.contextTokenSnapshot=r.contextTokenSnapshot,r}getSessionId(){return this.sessionId}getMessages(){return[...this.messages]}clear(){this.messages=[],this.sessionId="",this.contextTokenSnapshot=void 0}};function ic(e){return/\bworkflows?\b|工作流(?!程)|ワークフロー|워크플로우/iu.test(e)}o(ic,"hasExplicitNaturalLanguageWorkflowIntent");function Lv(e){return{action:e.source==="command"?"suggest":"none"}}o(Lv,"decideWorkflowInvocation");function jv(e){return e.outcome==="started"||e.outcome==="cancelled"}o(jv,"workflowStartOutcomeConsumesTurn");var Ql="KODAX_VERIFIER_PROVIDER",Zl="KODAX_VERIFIER_MODEL";function ef(e){if(Ze(e))try{return Qe(e)}catch{return}}o(ef,"tryGetProvider");function jn(e){let t=e.env??process.env,n=t[Ql],r=t[Zl];if(n&&r){let i=ef(n);if(i)return{provider:i,model:r,providerName:n,source:"explicit-env"}}return{provider:e.mainProvider,model:e.mainModel,providerName:e.mainProviderName,source:"inherit-main"}}o(jn,"resolveVerifierProvider");function Bo(e){let t=e.context?.agentProfile;if(!t)return;let n=t.verification,r=e.context?.taskVerification;if(!n&&!r)return;let i={...n,...r};return Array.isArray(r?.criteria)&&r.criteria.length===0&&Array.isArray(n?.criteria)&&n.criteria.length>0?{...i,criteria:n.criteria}:i}o(Bo,"resolveEffectiveVerification");function tf(e){let t=e.provider??"anthropic";if(Ze(t))try{let n=jn({mainProvider:Qe(t),mainProviderName:t,mainModel:e.modelOverride??e.model});return{provider:n.providerName,...n.model!==void 0?{model:n.model}:{}}}catch{return}}o(tf,"resolveVerifierAttribution");function Fo(e,t){let n=e.events?.onEffectiveConfig;if(!n)return;let r=t.verifier??tf(e),i={agentMode:t.agentMode,agentProfile:e.context?.agentProfile,toolScope:t.toolScope,verification:Bo(e),...r?{verifier:r}:{}};try{n(i)}catch{}}o(Fo,"emitEffectiveTaskConfig");var sc="kodax-review-findings",ac="kodax-investigation-shards",cc="kodax-lookup-shards",dc="kodax-child-result";var uc="kodax-budget-request";function nt(e,t=!1){return{globalWorkBudget:e?.totalBudget,budgetUsage:e?.spentBudget,budgetApprovalRequired:t}}o(nt,"buildManagedStatusBudgetFields");function Kt(e,t=1){e.spentBudget=Math.max(0,e.spentBudget+t)}o(Kt,"incrementManagedBudgetUsage");function rf(e,t=200){e.totalBudget+=t}o(rf,"extendManagedWorkBudget");function Fn(e,t,n=!1){if(!e?.askUser)return!1;if(!n){let r=Math.ceil(t.totalBudget*.9);if(t.spentBudget<r)return!1}return t.lastApprovalBudgetTotal!==t.totalBudget}o(Fn,"canRequestAdditionalWorkBudget");async function Uo(e,t,n){let r=e?.askUser;if(!r||!Fn(e,t,n.force))return"skipped";let i=n.additionalUnits??200,s=Math.min(100,Math.round(t.spentBudget/Math.max(1,t.totalBudget)*100)),a=/[\u4e00-\u9fff]/.test(n.originalTask??n.summary),c=Ae(await r({question:a?`\u5F53\u524D AMA \u8FD0\u884C\u5DF2\u4F7F\u7528 ${t.spentBudget}/${t.totalBudget} \u5DE5\u4F5C\u5355\u5143\uFF08${s}%\uFF09\uFF0C\u9700\u8981\u66F4\u591A\u5DE5\u4F5C\u91CF\u3002\u662F\u5426\u8FFD\u52A0 ${i} \u5355\u5143\uFF1F`:`This AMA run has used ${t.spentBudget}/${t.totalBudget} work units (${s}%) and needs more work. Add ${i} more work units?`,allowCustomInput:!1,options:[{label:a?`\u7EE7\u7EED (+${i})`:`Continue (+${i})`,value:"continue",description:a?`\u8FFD\u52A0 ${i} \u5DE5\u4F5C\u5355\u5143\uFF0C\u4ECE\u7B2C ${n.currentRound}/${n.maxRounds} \u8F6E\u7EE7\u7EED\u3002`:`Grant ${i} more work units and continue from round ${n.currentRound}/${n.maxRounds}.`},{label:a?"\u505C\u6B62":"Stop here",value:"stop",description:a?`\u4F7F\u7528\u5F53\u524D\u6700\u4F73\u7ED3\u679C\u3002\u6700\u65B0\u8FDB\u5C55\uFF1A${co(n.summary,80)}`:`Finish now with the current best result. Latest note: ${co(n.summary,80)}`}],default:"continue"})),d=t.totalBudget;return c==="continue"?(t.lastApprovalBudgetTotal=d,rf(t,i),"approved"):(t.lastApprovalBudgetTotal=d,"denied")}o(Uo,"maybeRequestAdditionalWorkBudget");import{readdir as cf,readFile as fc,stat as df}from"node:fs/promises";import{execFile as uf}from"node:child_process";import{promisify as lf}from"node:util";import kt from"node:path";import Wo from"node:path";import{mkdir as of,unlink as sf,writeFile as af}from"node:fs/promises";function Fe(e){return e.context?.taskSurface??"cli"}o(Fe,"getManagedTaskSurface");function Ue(e,t){if(e.context?.managedTaskWorkspaceDir?.trim())return Wo.resolve(e.context.managedTaskWorkspaceDir);let n=e.context?.executionCwd??e.context?.gitRoot??process.cwd();return Wo.resolve(n,".agent","managed-tasks")}o(Ue,"getManagedTaskWorkspaceRoot");async function Q(e,t,n="utf8"){await Or(e,async()=>{await of(Wo.dirname(e),{recursive:!0}),await af(e,t,"utf8")})}o(Q,"writeManagedTaskFile");async function lc(e){await Or(e,async()=>{try{await sf(e)}catch(t){if(t.code!=="ENOENT")throw t}})}o(lc,"deleteManagedTaskFile");var ff=lf(uf),mc=3600*1e3,Un="checkpoint.json";function Go(e){let t=e.session?.id?.trim();return t||void 0}o(Go,"getCheckpointSessionId");function mf(e,t){return t?e.sessionId===t:!1}o(mf,"checkpointBelongsToSession");async function Wn(e){let t=kt.resolve(e?.trim()||process.cwd());try{let{stdout:n}=await ff("git",["rev-parse","--short","HEAD"],{cwd:t,windowsHide:!0});return n.trim()||void 0}catch{return}}o(Wn,"getGitHeadCommit");async function Ho(e,t){await Q(kt.join(e,Un),`${JSON.stringify(t,null,2)}
|
|
2
|
+
import{$ as To,$a as Za,Aa as Vt,Ba as Ea,Ca as xa,D as Mn,Da as Sa,E as On,Ea as _a,F as ra,Fa as yt,G as co,Ga as Ca,H as oa,Ha as Aa,Ia,Ja as Fa,K as ia,Ka as Ua,L as sa,La as Wa,M as aa,Ma as Ga,N as Gt,Na as Dn,O as uo,Oa as Ha,Pa as Va,Qa as qa,R as lo,Ra as Ka,S as fo,Sa as Xa,T as mo,Ta as Nn,U as po,Ua as Co,V as ma,Va as Ao,W as pa,Wa as za,Xa as Ya,Y as go,Ya as Ja,Z as ho,Za as Io,_a as Qa,a as Ie,ab as ec,ba as vo,ca as ga,da as ha,ea as yo,f as Ar,fa as ko,h as Is,i as Ir,ja as Ht,k as Mr,l as vn,la as Ta,ma as va,na as wo,o as jt,pa as Ro,ra as bo,sa as ya,ta as ka,va as Eo,wa,xa as xo,xc as tc,ya as Ra,yc as $e,z as ao,za as ba}from"./chunk-Q6UAGROD.js";import{a as So}from"./chunk-HTVLCHWH.js";import{A as _o,o as Da,t as Na,u as $a,v as La,y as ja}from"./chunk-XUKLF26Q.js";import{$b as no,Ba as Rn,Bd as Be,Cd as io,D as Ls,F as Nr,G as $r,Ha as Ut,I as Lr,Ia as Vr,Jd as so,Ka as qr,Kb as Ys,La as Kr,Lb as Js,Mb as Qs,Na as Xr,Oa as zr,Od as na,Pb as xn,Qd as ca,Rb as Sn,Rd as da,S as Bs,Sa as Yr,Sb as _n,Sd as ua,T as Fs,Td as la,V as Us,Va as Jr,Vb as Cn,W as Ws,Wb as An,Wd as fa,X as jr,Y as Gs,Yb as to,Yc as ro,Za as bn,Zb as je,_a as En,a as Tn,ac as Zs,b as As,bb as Qr,da as kn,eb as Zr,fa as Br,fb as eo,ga as Fr,gb as zs,ha as wn,ia as Hs,id as ea,ie as Ma,ja as Ur,jd as ta,ka as Wr,l as Or,la as Vs,ma as tt,nd as In,o as Ms,oa as qs,od as Wt,oe as Oa,p as Pr,pe as Pn,q as Os,qe as Pa,s as Ps,sd as oo,se as Ba,t as Ds,u as yn,ua as Gr,v as Ns,va as Hr,w as Bt,wa as Ks,x as $s,xa as Xs,z as Dr,za as Ft,zb as Me}from"./chunk-U6HNMLNN.js";import{h as js}from"./chunk-GVGLYVG4.js";import{D as Je,Pa as we,R as Vi,T as un,ab as vr,bb as ln,cb as yr,db as kr,e as Tr,fb as wr,gb as qi,k as dn,na as Qe,ua as Ze}from"./chunk-TRNAWSXP.js";import{Aa as br,Ab as cs,B as Xi,Db as ds,Eb as us,Ga as es,Gb as ls,Ia as Er,Jb as xr,Kb as Sr,Ke as hn,L as zi,Nb as Tt,O as Yi,Ob as fs,Td as ms,Xd as ps,Yd as gs,Yf as vt,Zf as bs,ef as hs,fb as ts,g as fn,ha as Rr,ib as ns,ig as Es,k as ne,l as Le,mg as xs,nf as _r,ng as Ss,o as Lt,of as Ts,pf as vs,pg as _s,q as mn,qb as Ae,r as Ki,rf as ys,sb as rs,sf as ks,t as et,ta as ht,tf as ws,ua as Ji,uf as Rs,vb as as,vf as Cr,vg as Cs,wa as Qi,za as Zi}from"./chunk-G5FGIRDJ.js";import{K as ss,h as pn,j as gn,k as os,p as is}from"./chunk-UH5WNJXF.js";import{a as o}from"./chunk-ONUPGMER.js";var qt=class extends Error{static{o(this,"KodaXError")}code;constructor(t,n="KODAX_ERROR"){super(t),this.code=n,this.name="KodaXError"}};var Mo=class extends qt{static{o(this,"KodaXToolError")}toolName;toolId;constructor(t,n,r){super(t,"TOOL_ERROR"),this.toolName=n,this.toolId=r,this.name="KodaXToolError"}};var Oo=class extends qt{static{o(this,"KodaXSessionError")}sessionId;constructor(t,n){super(t,"SESSION_ERROR"),this.sessionId=n,this.name="KodaXSessionError"}},Po=class extends qt{static{o(this,"KodaXTerminalError")}suggestions;constructor(t,n=[]){super(t,"TERMINAL_ERROR"),this.name="KodaXTerminalError",this.suggestions=n}};function Gl(){return new $n}o(Gl,"createSessionControl");function Do(e,t){let n=new AbortController,r=!1,i=o(p=>{r||(r=!0,n.abort(p))},"markAborted");e.abortSignal&&(e.abortSignal.aborted?i(e.abortSignal.reason):e.abortSignal.addEventListener("abort",()=>i(e.abortSignal.reason),{once:!0}));let s=new $n;s.seed({provider:e.provider,model:e.modelOverride??e.model,reasoning:e.reasoningMode});let a=e.session?.id,c=a!=null,d=a??Hl(),f=!c&&e.session?.autoResume!==!0&&e.session?.resume!==!0?Ja({...e.session??{},id:d}):e.session,l={...e,...e.agentMode!==void 0?{agentMode:jt(e.agentMode)}:{},...f!==void 0?{session:f}:{},abortSignal:n.signal,sessionControl:s},g=$e(l,t);return{id:d,get currentProvider(){return s.getProvider()},get currentModel(){return s.getModel()},get currentReasoning(){return s.getReasoning()},get aborted(){return r},get attached(){return s.isAttached()},setProvider:o(p=>s.setProvider(p),"setProvider"),setModel:o(p=>s.setModel(p),"setModel"),setReasoning:o(p=>s.setReasoning(p),"setReasoning"),abort:o(p=>i(p),"abort"),result:g}}o(Do,"startKodaX");function Hl(){return`sess_${Date.now()}_${Math.random().toString(36).slice(2,10)}`}o(Hl,"generateSessionId");var $n=class{static{o(this,"SessionControlImpl")}mutators=null;providerValue;modelValue;reasoningValue;hasPendingProvider=!1;hasPendingModel=!1;hasPendingReasoning=!1;seed(t){this.providerValue=t.provider,this.modelValue=t.model,this.reasoningValue=t.reasoning}setProvider(t){this.providerValue=t,this.mutators?this.mutators.setProvider(t):this.hasPendingProvider=!0}setModel(t){this.modelValue=t,this.mutators?this.mutators.setModel(t):this.hasPendingModel=!0}setReasoning(t){this.reasoningValue=t,this.mutators?this.mutators.setReasoning(t):this.hasPendingReasoning=!0}getProvider(){return this.providerValue??""}getModel(){return this.modelValue}getReasoning(){return this.reasoningValue}isAttached(){return this.mutators!==null}_attach(t){this.mutators,this.mutators=t,this.hasPendingProvider&&this.providerValue!==void 0&&t.setProvider(this.providerValue),this.hasPendingModel&&t.setModel(this.modelValue),this.hasPendingReasoning&&t.setReasoning(this.reasoningValue),this.hasPendingProvider=!1,this.hasPendingModel=!1,this.hasPendingReasoning=!1}};function Vl(e,t){return e.kind!=="revise_count"?{ok:!0}:e.count<=3?{ok:!0}:{ok:!1,severity:"warn",reason:`boundedRevise: revise_count for harness="${e.harness}" reached ${e.count}, exceeding soft threshold 3`}}o(Vl,"observe");var No={id:"boundedRevise",description:"Per-harness revise count must stay within the soft threshold; crossings emit a warn signal for dispatch-eval (hard cap enforced by the budget controller).",observe:Vl};function ql(e,t){return typeof e.maxBudget!="number"?{ok:!0}:e.maxBudget<=t.systemCap.maxBudget?{ok:!0}:{ok:!1,severity:"clamp",reason:`budgetCeiling: manifest.maxBudget=${e.maxBudget} exceeds systemCap.maxBudget=${t.systemCap.maxBudget}`,patch:{clampMaxBudget:t.systemCap.maxBudget}}}o(ql,"admit");var $o={id:"budgetCeiling",description:"manifest.maxBudget must be \u2264 systemCap.maxBudget; over-cap declarations are clamped down to the cap.",admit:ql};function Kl(e,t){return{ok:!0}}o(Kl,"observe");var nc={id:"harnessSelectionTiming",description:"FEATURE_193 V2 no-op shell \u2014 predicate always admits since V1 Scout retired. Kept registered for admission-framework / audit-array compat.",observe:Kl};function Xl(e,t){if(e.kind!=="mutation_recorded")return{ok:!0};let n=t.recorder;return typeof n.todoUpdateCount!="number"?{ok:!0}:n.todoUpdateCount>0?{ok:!0}:n.workerTrivialDeclaration===!0?{ok:!0}:{ok:!1,severity:"warn",reason:`planBeforeMutate: Worker mutated ${e.file} without a prior todo_update plan commit and without a trivial declaration`}}o(Xl,"observe");var rc={id:"planBeforeMutate",description:"Worker mutations should be preceded by a todo_update plan commit (or an explicit trivial declaration). Missing plan is a warn-only signal in v0.7.36.",observe:Xl};function Lo(e){switch(e){case"read":case"glob":case"grep":case"code_search":case"semantic_lookup":case"lsp_definition":case"lsp_hover":case"lsp_references":case"lsp_document_symbols":case"lsp_workspace_symbols":case"lsp_implementation":case"lsp_prepare_call_hierarchy":case"lsp_incoming_calls":case"lsp_outgoing_calls":case"repo_overview":case"changed_scope":case"changed_diff":case"changed_diff_bundle":case"module_context":case"symbol_context":case"process_context":case"impact_estimate":case"relationship_scan":case"cyclic_dependencies":case"ask_user_question":case"exit_plan_mode":return"read";case"write":case"edit":case"multi_edit":case"insert_after_anchor":case"undo":return"edit";case"bash":return"bash:mutating";case"web_search":case"web_fetch":case"mcp_search":case"mcp_describe":case"mcp_call":case"mcp_read_resource":case"mcp_get_prompt":return"bash:network";case"spawn_agent":case"send_message":case"followup_task":case"wait_agent":case"interrupt_agent":case"list_agents":case"agent_output":case"emit_verdict":case"scaffold_tool":case"validate_tool":case"stage_construction":case"test_tool":case"activate_tool":case"scaffold_agent":case"validate_agent":case"stage_agent_construction":case"test_agent":case"activate_agent":case"worktree_create":case"worktree_remove":return"subagent";default:return"subagent"}}o(Lo,"resolveToolCapability");function zl(e){if(typeof e=="object"&&e!==null&&"name"in e){let t=e.name;if(typeof t=="string"&&t.length>0)return t}}o(zl,"getToolName");function Yl(e,t){if(!e.tools||e.tools.length===0)return{ok:!0};let n=new Set(t.systemCap.allowedToolCapabilities),r=[];for(let a of e.tools){let c=zl(a);if(!c)continue;let d=Lo(c);n.has(d)||r.push({name:c,capability:d})}if(r.length===0)return{ok:!0};let i=r.map(a=>a.name);return{ok:!1,severity:"clamp",reason:`toolPermission: tools requiring disallowed capabilities \u2014 ${r.map(a=>`${a.name}=${a.capability}`).join(", ")}`,patch:{removeTools:i}}}o(Yl,"admit");var jo={id:"toolPermission",description:"Every tool in manifest.tools must resolve to a capability tier that systemCap.allowedToolCapabilities permits; offending tools are clamped via removeTools.",admit:Yl};var oc=[$o,jo,No,nc,rc];function Jl(){es();for(let e of oc)Yi(e)}o(Jl,"registerCodingInvariants");var Ln=class{static{o(this,"KodaXClient")}options;sessionId;messages=[];contextTokenSnapshot;constructor(t){this.options=t,this.sessionId=t.session?.id??"",this.messages=t.session?.initialMessages?[...t.session.initialMessages]:[],this.contextTokenSnapshot=t.context?.contextTokenSnapshot}async send(t){let n=this.messages.length>0?this.messages:this.options.session?.initialMessages,r=await $e({...this.options,session:{...this.options.session,id:this.sessionId||void 0,initialMessages:n},context:{...this.options.context,contextTokenSnapshot:this.contextTokenSnapshot}},t);return this.sessionId=r.sessionId,this.messages=r.messages,this.contextTokenSnapshot=r.contextTokenSnapshot,r}getSessionId(){return this.sessionId}getMessages(){return[...this.messages]}clear(){this.messages=[],this.sessionId="",this.contextTokenSnapshot=void 0}};function ic(e){return/\bworkflows?\b|工作流(?!程)|ワークフロー|워크플로우/iu.test(e)}o(ic,"hasExplicitNaturalLanguageWorkflowIntent");function Lv(e){return{action:e.source==="command"?"suggest":"none"}}o(Lv,"decideWorkflowInvocation");function jv(e){return e.outcome==="started"||e.outcome==="cancelled"}o(jv,"workflowStartOutcomeConsumesTurn");var Ql="KODAX_VERIFIER_PROVIDER",Zl="KODAX_VERIFIER_MODEL";function ef(e){if(Ze(e))try{return Qe(e)}catch{return}}o(ef,"tryGetProvider");function jn(e){let t=e.env??process.env,n=t[Ql],r=t[Zl];if(n&&r){let i=ef(n);if(i)return{provider:i,model:r,providerName:n,source:"explicit-env"}}return{provider:e.mainProvider,model:e.mainModel,providerName:e.mainProviderName,source:"inherit-main"}}o(jn,"resolveVerifierProvider");function Bo(e){let t=e.context?.agentProfile;if(!t)return;let n=t.verification,r=e.context?.taskVerification;if(!n&&!r)return;let i={...n,...r};return Array.isArray(r?.criteria)&&r.criteria.length===0&&Array.isArray(n?.criteria)&&n.criteria.length>0?{...i,criteria:n.criteria}:i}o(Bo,"resolveEffectiveVerification");function tf(e){let t=e.provider??"anthropic";if(Ze(t))try{let n=jn({mainProvider:Qe(t),mainProviderName:t,mainModel:e.modelOverride??e.model});return{provider:n.providerName,...n.model!==void 0?{model:n.model}:{}}}catch{return}}o(tf,"resolveVerifierAttribution");function Fo(e,t){let n=e.events?.onEffectiveConfig;if(!n)return;let r=t.verifier??tf(e),i={agentMode:t.agentMode,agentProfile:e.context?.agentProfile,toolScope:t.toolScope,verification:Bo(e),...r?{verifier:r}:{}};try{n(i)}catch{}}o(Fo,"emitEffectiveTaskConfig");var sc="kodax-review-findings",ac="kodax-investigation-shards",cc="kodax-lookup-shards",dc="kodax-child-result";var uc="kodax-budget-request";function nt(e,t=!1){return{globalWorkBudget:e?.totalBudget,budgetUsage:e?.spentBudget,budgetApprovalRequired:t}}o(nt,"buildManagedStatusBudgetFields");function Kt(e,t=1){e.spentBudget=Math.max(0,e.spentBudget+t)}o(Kt,"incrementManagedBudgetUsage");function rf(e,t=200){e.totalBudget+=t}o(rf,"extendManagedWorkBudget");function Fn(e,t,n=!1){if(!e?.askUser)return!1;if(!n){let r=Math.ceil(t.totalBudget*.9);if(t.spentBudget<r)return!1}return t.lastApprovalBudgetTotal!==t.totalBudget}o(Fn,"canRequestAdditionalWorkBudget");async function Uo(e,t,n){let r=e?.askUser;if(!r||!Fn(e,t,n.force))return"skipped";let i=n.additionalUnits??200,s=Math.min(100,Math.round(t.spentBudget/Math.max(1,t.totalBudget)*100)),a=/[\u4e00-\u9fff]/.test(n.originalTask??n.summary),c=Ae(await r({question:a?`\u5F53\u524D AMA \u8FD0\u884C\u5DF2\u4F7F\u7528 ${t.spentBudget}/${t.totalBudget} \u5DE5\u4F5C\u5355\u5143\uFF08${s}%\uFF09\uFF0C\u9700\u8981\u66F4\u591A\u5DE5\u4F5C\u91CF\u3002\u662F\u5426\u8FFD\u52A0 ${i} \u5355\u5143\uFF1F`:`This AMA run has used ${t.spentBudget}/${t.totalBudget} work units (${s}%) and needs more work. Add ${i} more work units?`,allowCustomInput:!1,options:[{label:a?`\u7EE7\u7EED (+${i})`:`Continue (+${i})`,value:"continue",description:a?`\u8FFD\u52A0 ${i} \u5DE5\u4F5C\u5355\u5143\uFF0C\u4ECE\u7B2C ${n.currentRound}/${n.maxRounds} \u8F6E\u7EE7\u7EED\u3002`:`Grant ${i} more work units and continue from round ${n.currentRound}/${n.maxRounds}.`},{label:a?"\u505C\u6B62":"Stop here",value:"stop",description:a?`\u4F7F\u7528\u5F53\u524D\u6700\u4F73\u7ED3\u679C\u3002\u6700\u65B0\u8FDB\u5C55\uFF1A${co(n.summary,80)}`:`Finish now with the current best result. Latest note: ${co(n.summary,80)}`}],default:"continue"})),d=t.totalBudget;return c==="continue"?(t.lastApprovalBudgetTotal=d,rf(t,i),"approved"):(t.lastApprovalBudgetTotal=d,"denied")}o(Uo,"maybeRequestAdditionalWorkBudget");import{readdir as cf,readFile as fc,stat as df}from"node:fs/promises";import{execFile as uf}from"node:child_process";import{promisify as lf}from"node:util";import kt from"node:path";import Wo from"node:path";import{mkdir as of,unlink as sf,writeFile as af}from"node:fs/promises";function Fe(e){return e.context?.taskSurface??"cli"}o(Fe,"getManagedTaskSurface");function Ue(e,t){if(e.context?.managedTaskWorkspaceDir?.trim())return Wo.resolve(e.context.managedTaskWorkspaceDir);let n=e.context?.executionCwd??e.context?.gitRoot??process.cwd();return Wo.resolve(n,".agent","managed-tasks")}o(Ue,"getManagedTaskWorkspaceRoot");async function Q(e,t,n="utf8"){await Or(e,async()=>{await of(Wo.dirname(e),{recursive:!0}),await af(e,t,"utf8")})}o(Q,"writeManagedTaskFile");async function lc(e){await Or(e,async()=>{try{await sf(e)}catch(t){if(t.code!=="ENOENT")throw t}})}o(lc,"deleteManagedTaskFile");var ff=lf(uf),mc=3600*1e3,Un="checkpoint.json";function Go(e){let t=e.session?.id?.trim();return t||void 0}o(Go,"getCheckpointSessionId");function mf(e,t){return t?e.sessionId===t:!1}o(mf,"checkpointBelongsToSession");async function Wn(e){let t=kt.resolve(e?.trim()||process.cwd());try{let{stdout:n}=await ff("git",["rev-parse","--short","HEAD"],{cwd:t,windowsHide:!0});return n.trim()||void 0}catch{return}}o(Wn,"getGitHeadCommit");async function Ho(e,t){await Q(kt.join(e,Un),`${JSON.stringify(t,null,2)}
|
|
3
3
|
`,"utf8")}o(Ho,"writeCheckpoint");async function rt(e){await lc(kt.join(e,Un))}o(rt,"deleteCheckpoint");async function Vo(e){let t=e.context?.gitRoot,n=Fe(e),r=Ue(e,n),i;try{i=await cf(r)}catch{return}let s=await Wn(t),a=Go(e),c=Date.now();for(let d of i){let u=kt.join(r,d),f=kt.join(u,Un);try{let l=await df(f);if(!l.isFile())continue;let g=await fc(f,"utf8"),p=JSON.parse(g);if(!p||typeof p!="object")continue;let m=p;if(m.version!==1||typeof m.taskId!="string"||typeof m.createdAt!="string"||typeof m.gitCommit!="string"||typeof m.harnessProfile!="string"||m.sessionId!==void 0&&typeof m.sessionId!="string")continue;if(m.processId!==void 0||m.pid!==void 0){let M=m.processId??m.pid;if(typeof M!="number"||!Number.isFinite(M))continue}let v=m.processId??m.pid,h={version:1,taskId:m.taskId,...typeof m.sessionId=="string"&&m.sessionId.trim()?{sessionId:m.sessionId}:{},...typeof v=="number"&&Number.isFinite(v)?{processId:v}:{},createdAt:m.createdAt,gitCommit:m.gitCommit,objective:typeof m.objective=="string"?m.objective:"",harnessProfile:m.harnessProfile,currentRound:typeof m.currentRound=="number"?m.currentRound:1,completedWorkerIds:Array.isArray(m.completedWorkerIds)?m.completedWorkerIds.filter(M=>typeof M=="string"):[],scoutCompleted:m.scoutCompleted===!0},y=new Date(h.createdAt).getTime();if(Number.isNaN(y))continue;let x=c-l.mtimeMs;if(x>mc||x<0){await rt(u);continue}if(!mf(h,a))continue;if(s&&h.gitCommit&&h.gitCommit!==s){await rt(u);continue}let k=kt.join(u,"managed-task.json"),R=await fc(k,"utf8"),_=JSON.parse(R);if(!_||typeof _!="object")continue;let S=_;if(!S.contract?.taskId||!S.evidence?.workspaceDir)continue;return{checkpoint:h,workspaceDir:u,managedTask:S}}catch{continue}}}o(Vo,"findValidCheckpoint");import j from"node:path";function qo(e){let t=e?.runtime;return t?`${["# Runtime Execution Guide","","Use this guide to drive live verification against the runtime under test.","",t.cwd?`- Working directory: ${t.cwd}`:void 0,t.startupCommand?`- Startup command: ${t.startupCommand}`:void 0,t.readySignal?`- Ready signal: ${t.readySignal}`:void 0,t.baseUrl?`- Base URL: ${t.baseUrl}`:void 0,t.env&&Object.keys(t.env).length>0?`- Environment keys: ${Object.keys(t.env).join(", ")}`:void 0,"","Execution protocol:",t.startupCommand?"1. Start or confirm the runtime using the declared startup command before accepting the task.":"1. Confirm the target runtime is available before accepting the task.",t.readySignal||t.baseUrl?"2. Wait until the runtime is ready, using the ready signal or base URL when available.":"2. Confirm runtime readiness using the strongest observable signal you have.",t.uiFlows?.length?["3. Execute the declared UI flows:",...t.uiFlows.map((r,i)=>` ${i+1}. ${r}`)].join(`
|
|
4
4
|
`):"3. Execute the critical user-facing flow when browser verification is required.",t.apiChecks?.length?["4. Run the declared API checks:",...t.apiChecks.map((r,i)=>` ${i+1}. ${r}`)].join(`
|
|
5
5
|
`):void 0,t.dbChecks?.length?["5. Run the declared DB checks:",...t.dbChecks.map((r,i)=>` ${i+1}. ${r}`)].join(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{Eb as Ke,Fb as Le,Ib as ze,Jb as Je,ge,he as Ge,je as Xe,ke as Ye,le as Ze,se as Qe}from"./chunk-
|
|
2
|
+
import{Eb as Ke,Fb as Le,Ib as ze,Jb as Je,ge,he as Ge,je as Xe,ke as Ye,le as Ze,se as Qe}from"./chunk-U6HNMLNN.js";import{Q as Ne}from"./chunk-TRNAWSXP.js";import{Ag as B,Bg as we,Cg as Ue,Jg as Ve,Kg as Be,Lg as He,jg as re,mg as De,ng as je,pg as Z,t as fe,tg as me,zg as pe}from"./chunk-G5FGIRDJ.js";import{a as i}from"./chunk-ONUPGMER.js";import{basename as kr,dirname as vr}from"node:path";import{execFile as Qt}from"node:child_process";import oe from"node:path";import{promisify as en}from"node:util";var tn=en(Qt),nn=1e4,at=2,et=new Set(["write","edit","multi_edit","insert_after_anchor"]),tt=new Set(["read"]);function rn(e,t){if(t.includes("*"))return e;if(e.includes("*"))return t;let n=new Set(t);return e.filter(r=>n.has(r))}i(rn,"intersectWorkflowToolCeilings");var on=/^\s*(?:let me|i will|i'll|i am going to)\b[\s\S]{0,120}\b(?:start|create|implement|write|build|plan)\b|^\s*(?:我将|让我|接下来)[\s\S]{0,80}(?:开始|创建|编写|实现|制定)/i;function an(e){if(e?.timeoutMs!==void 0){if(!Number.isFinite(e.timeoutMs)||e.timeoutMs<=0)throw new Error("workflow wait timeoutMs must be a positive number");return Math.floor(e.timeoutMs)}}i(an,"normalizeWaitTimeoutMs");function he(e){return e?.requiresMutation===!0||(e?.requiredChangedPaths?.length??0)>0}i(he,"hasVerificationWork");function H(e){return e.replace(/\\/g,"/").replace(/^\.\//,"").trim()}i(H,"normalizeWorkspacePath");function ye(e,t){let n=t.gitRoot?oe.resolve(t.gitRoot):void 0,r=oe.isAbsolute(e)&&n?oe.relative(n,oe.resolve(e)):e;return H(r)}i(ye,"normalizeRequiredPath");function sn(e){let t=(e.readOnly??!1)===!1?{enforcement:"warn",requiresMutation:!0,rejectPreparatoryFinalText:!0}:void 0;if(e.verification!==void 0){let n={...t??{},...e.verification,enforcement:e.verification.enforcement??"hard"},r=e.verification.requiredChangedPaths;return{verification:{...n,...r!==void 0&&r.length>0&&n.requiresMutation===void 0?{requiresMutation:!0}:{}}}}return{verification:t}}i(sn,"resolveVerificationForInput");function cn(e,t){if(t===!0&&e.readOnly===!1)throw new Error(`workflow manifest readOnly=true cannot spawn write-capable child "${e.name}"; set the workflow manifest readOnly=false or use child readOnly:true`);let n=e.readOnly??t??!1;return e.readOnly===n?e:{...e,readOnly:n}}i(cn,"resolveSpawnAgentInput");function st(e){let t=e.trim();return t.length>0&&on.test(t)}i(st,"isPreparatoryOnlyText");function dn(e,t){let n=e.trim(),r=t?.trim();return r&&(n.length===0||st(n))?r:e}i(dn,"selectWorkflowFinalText");async function ie(e,t){return(await tn("git",[...e],{cwd:t,timeout:nn,windowsHide:!0,maxBuffer:4194304})).stdout.toString()}i(ie,"runGit");async function un(e){let t=e.gitRoot??e.executionCwd??process.cwd(),n=(await ie(["rev-parse","--show-toplevel"],t)).trim(),r=await Promise.all([ie(["diff","--name-only","--"],n),ie(["diff","--cached","--name-only","--"],n),ie(["ls-files","--others","--exclude-standard"],n)]);return[...new Set(r.flatMap(a=>a.split(/\r?\n/)).map(H).filter(a=>a.length>0))]}i(un,"listGitChangedFiles");async function ke(e,t){try{return{paths:(await t(e)).map(H).filter(r=>r.length>0)}}catch(n){return{paths:[],error:n instanceof Error?n.message:String(n)}}}i(ke,"captureChangedPaths");function ln(){return{toolNameById:new Map,toolPathById:new Map,succeededToolCalls:[],succeededPaths:[],readPathById:new Map,succeededReadPaths:[]}}i(ln,"createMutationRecorder");function nt(e){if(e)for(let t of["path","file_path","target_path"]){let n=e[t];if(typeof n=="string"&&n.trim().length>0)return H(n)}}i(nt,"readMutationPath");function fn(e,t){return{...e??{},onToolUseStart:i((n,r)=>{if(et.has(n.name)){t.toolNameById.set(n.id,n.name);let a=nt(n.input);a!==void 0&&t.toolPathById.set(n.id,a)}if(tt.has(n.name)){let a=nt(n.input);a!==void 0&&t.readPathById.set(n.id,a)}e?.onToolUseStart?.(n,r)},"onToolUseStart"),onToolResult:i((n,r)=>{let a=t.toolNameById.get(n.id)??n.name;if(et.has(a)&&!n.content.trimStart().startsWith("[Tool Error]")){t.succeededToolCalls.push(a);let o=t.toolPathById.get(n.id);o!==void 0&&t.succeededPaths.push(o)}if(tt.has(a)&&!n.content.trimStart().startsWith("[Tool Error]")){let o=t.readPathById.get(n.id);o!==void 0&&t.succeededReadPaths.push(o)}e?.onToolResult?.(n,r)},"onToolResult")}}i(fn,"wrapEventsForMutationRecording");function ae(e){return[...new Set(e.filter(t=>t.trim().length>0))]}i(ae,"uniqueItems");function rt(e){let t=e.verification;if(!t)return;let n=[],r=new Set(e.before.paths.map(H)),a=ae(e.after.paths.map(H)),o=a.filter(m=>!r.has(m)),s=ae(e.mutationRecorder.succeededToolCalls),d=e.acceptToolMutationEvidence?s:[],g=e.acceptToolMutationEvidence?ae(e.mutationRecorder.succeededPaths.map(H)):[],h=o.length>0||d.length>0,y=t.enforcement??"hard",p=(t.requiredChangedPaths??[]).map(m=>ye(m,e.ctx)),b=ae(e.mutationRecorder.succeededReadPaths.map(m=>ye(m,e.ctx))),v=(t.requiredReadPaths??[]).map(m=>ye(m,e.ctx));t.requiresMutation===!0&&(e.before.error!==void 0||e.after.error!==void 0?n.push(`workspace mutation verification could not read changed files: ${e.after.error??e.before.error}`):h||n.push(e.acceptToolMutationEvidence||s.length===0?"expected file mutations, but no new workspace changes or successful write tools were observed":"write tools ran in an isolated worktree, but no main workspace changes were present after cleanup")),e.term.limitReached===!0&&!h&&n.push("workflow child reached its iteration limit before satisfying the task");for(let m of p)!a.includes(m)&&!g.includes(m)&&n.push(`required changed path was not present in workspace changes: ${m}`);for(let m of v)b.includes(m)||n.push(`required review evidence was not read: ${m}`);let W=t.minFinalTextChars;return W!==void 0&&!h&&e.term.finalText.trim().length<W&&n.push(`finalText was shorter than the required ${W} characters`),t.rejectPreparatoryFinalText===!0&&!h&&st(e.term.finalText)&&n.push("finalText looks preparatory instead of terminal"),{ok:n.length===0,enforcement:y,reasons:n,changedPaths:a,mutationToolCalls:s,mutationEvidence:h,...b.length>0?{readPaths:b}:{}}}i(rt,"evaluateVerification");function ve(e,t){if(t.ok)return e;let r=[t.enforcement==="warn"?"[Workflow task completed without verification]":"[Workflow task verification failed]",...t.reasons.map(a=>`- ${a}`)].join(`
|
|
3
3
|
`);return e.trim().length>0?`${e}
|
|
4
4
|
|
|
5
5
|
${r}`:r}i(ve,"appendVerificationFailure");function ot(){return{ok:!1,enforcement:"warn",reasons:["workflow child reached its iteration limit before satisfying the task"],mutationEvidence:!1}}i(ot,"limitReachedWarningVerification");function mn(e){return e.entry.bundle.readOnly!==!0&&e.entry.repairAttempts<at&&e.term.status==="completed"&&e.verification!==void 0&&e.verification.ok!==!0&&e.verification.enforcement!=="warn"}i(mn,"shouldRepairVerificationFailure");function pn(e){let t=e.verification.reasons.map(r=>`- ${r}`).join(`
|
|
@@ -13,7 +13,7 @@ ${s.text}`),rubric:t.rubric??vn}))).text,findings:r,degraded:a}}i(Pn,"runParalle
|
|
|
13
13
|
`).trim().replace(/[\t\n\f\r ]+/g," ")}i(j,"normalizeText");function lt(e){return j(e).replace(/\\/g,"/")}i(lt,"normalizeLocation");function se(e){return[...new Set(e.map(j).filter(Boolean))].sort((t,n)=>t<n?-1:t>n?1:0)}i(se,"uniqueSorted");function An(e,t,n){return Mn("sha256").update(`${e}\0${lt(t)}\0${j(n)}`,"utf8").digest("hex")}i(An,"findingId");function ft(e,t,n){if(!t&&n.specVerdict!=="not-verifiable")throw new Error('review result must use specVerdict "not-verifiable" when requirements are absent');return{specVerdict:n.specVerdict,qualityVerdict:n.qualityVerdict,findings:n.findings.map(r=>{let a=lt(r.location),o=j(r.claim),s=j(r.evidence);return{findingId:An(e,a,o),severity:r.severity,location:a,claim:o,evidence:s,...r.suggestedFix?{suggestedFix:j(r.suggestedFix)}:{}}}).sort((r,a)=>r.findingId<a.findingId?-1:r.findingId>a.findingId?1:0),unverifiedRequirements:se(n.unverifiedRequirements)}}i(ft,"normalizeScopedReviewResult");var ut={low:0,medium:1,high:2,critical:3};function En(e){return e.reduce((t,n)=>ut[n]>ut[t]?n:t,"low")}i(En,"maxSeverity");function mt(e){if(e.length===0)throw new Error("at least one primary review result is required");let t=new Map;for(let a of e)for(let o of a.findings)t.set(o.findingId,[...t.get(o.findingId)??[],o]);let n=[...t.entries()].map(([a,o])=>({findingId:a,severity:En(o.map(s=>s.severity)),location:o[0].location,claim:o[0].claim,evidence:se(o.map(s=>s.evidence)),suggestedFixes:se(o.flatMap(s=>s.suggestedFix?[s.suggestedFix]:[]))})).sort((a,o)=>a.findingId<o.findingId?-1:a.findingId>o.findingId?1:0);return{specVerdict:e.some(a=>a.specVerdict==="issues")?"issues":e.some(a=>a.specVerdict==="not-verifiable")?"not-verifiable":"compliant",qualityVerdict:e.some(a=>a.qualityVerdict==="needs-fixes")?"needs-fixes":"approved",findings:n,unverifiedRequirements:se(e.flatMap(a=>a.unverifiedRequirements))}}i(mt,"mergeScopedReviewResults");function pt(e,t){let n=new Set(e.findings.map(s=>s.findingId)),r=new Set;for(let s of t.findings){if(!n.has(s.findingId)||r.has(s.findingId))throw new Error("verifier must return every input findingId exactly once");r.add(s.findingId)}if(r.size!==n.size)throw new Error("verifier must return every input findingId exactly once");let a=new Map(t.findings.map(s=>[s.findingId,s])),o=e.findings.flatMap(s=>{let d=a.get(s.findingId);if(d.disposition==="refuted")return[];let g=d.severityReason?.trim(),h=d.effectiveSeverity!==void 0&&!!g;return[{...s,disposition:d.disposition,severity:h?d.effectiveSeverity:s.severity,verificationEvidence:j(d.evidence),...g?{severityReason:j(g)}:{}}]});return{specVerdict:e.specVerdict,qualityVerdict:e.qualityVerdict,unverifiedRequirements:e.unverifiedRequirements,actionable:o,audit:t,unqualifiedApprovalAllowed:o.length===0&&e.unverifiedRequirements.length===0&&e.specVerdict==="compliant"&&e.qualityVerdict==="approved"}}i(pt,"applyFindingVerification");var Wn={type:"object",additionalProperties:!1,required:["summary"],properties:{summary:{type:"string"}}};function gt(e){return[e.packetPath,...e.evidenceChunks.map(t=>t.path)]}i(gt,"evidencePaths");function Fn(e){let t=ge(e,Se);if(t.length>0)throw new Error(`primary reviewer structured result is invalid: ${t.join("; ")}`);return e}i(Fn,"rawReview");function On(e){let t=ge(e,Re);if(t.length>0)throw new Error(`finding verifier structured result is invalid: ${t.join("; ")}`);return e}i(On,"rawVerification");function be(e,t){if(e===null||e.status!=="completed")throw new Error(`${t} did not complete; no verdict was accepted`);if(e.verification!==void 0&&!e.verification.ok)throw new Error(`${t} did not read every required packet path; no verdict was accepted`);return e}i(be,"resultOrThrow");function qn(e,t,n){return["Review one immutable KodaX packet as an independent third-party reviewer.",`Packet manifest: ${e.packetPath}`,...e.evidenceChunks.map(r=>`Evidence chunk: ${r.path}`),`This packet has binding requirements: ${e.requirementsPresent?"yes":"no"}.`,t?"This is the additional high-risk primary. Actively seek a disagreement with the first reader; do not assume it was correct.":"Own both specification and implementation-quality verdicts for this scope.",n.lean?"Also identify unnecessary additions, but never remove validation, security, data-loss protection, accessibility, or requested behavior.":"",n.reviewFocus?`Additional user focus: ${n.reviewFocus}`:"","Read the manifest and every listed chunk with the read tool before deciding.","Begin with the required JSON result. No preamble or process narration.","The findings array contains only actionable defects, never approval evidence or positive observations.","When the scope is compliant and approved with no actionable defect, findings must be empty.","If a named requirement cannot be proven compliant or violated from surfaced evidence, use specVerdict not-verifiable, list it in unverifiedRequirements, and emit no finding for that uncertainty; absence of evidence is not proof of a defect.","If requirements are absent, specVerdict must be not-verifiable."].filter(Boolean).join(`
|
|
14
14
|
`)}i(qn,"buildScopedReviewPrimaryPrompt");function Cn(e,t){return["Independently attempt to refute every candidate finding in this batch.",`Packet manifest: ${e.packetPath}`,...e.evidenceChunks.map(n=>`Evidence chunk: ${n.path}`),`Canonical candidates: ${JSON.stringify(t.findings)}`,"Read the packet evidence. You may run one focused check after naming the concrete doubt.","Return every findingId exactly once. A severity change requires severityReason.","Begin with the required JSON result; no preamble."].join(`
|
|
15
15
|
`)}i(Cn,"buildScopedReviewVerificationPrompt");function $n(e){return["Synthesize the structured review results below without rereading packet bodies.","Lead with confirmed findings, keep unresolved findings visibly unresolved, omit refuted findings from the actionable list, and never silently downgrade severity.","Cite locations and state explicitly when no actionable issue was confirmed.",JSON.stringify(e)].join(`
|
|
16
|
-
`)}i($n,"buildScopedReviewFinalPrompt");async function wt(e,t,n,r){let a=be(await e.runAgent({name:`${n?"high-risk-":""}primary-${t.partitionKey}`,phase:"primary-review",prompt:qn(t,n,r),scopeSummary:`${t.partitionKey}: ${t.scopePaths.join(", ")}`,constraints:["read every required packet path","return both verdicts","cite evidence at each finding"],readOnly:!0,modelHint:n?"deep":"balanced",verification:{enforcement:"hard",requiredReadPaths:gt(t)},outputSchema:Se,terseResult:!0}),"primary reviewer");return e.log({message:`primary read accepted for ${t.partitionKey}`,data:{kind:"review_packet_read",role:"primary",contentHash:t.contentHash}}),Fn(a.structured)}i(wt,"runPrimary");async function _n(e,t,n){if(n.findings.length===0)return{specVerdict:n.specVerdict,qualityVerdict:n.qualityVerdict,unverifiedRequirements:n.unverifiedRequirements,actionable:[],audit:{findings:[]},unqualifiedApprovalAllowed:n.unverifiedRequirements.length===0&&n.specVerdict==="compliant"&&n.qualityVerdict==="approved"};let r=be(await e.runAgent({name:`verify-${t.partitionKey}`,phase:"verifier",prompt:Cn(t,n),scopeSummary:`verify ${n.findings.length} candidate finding(s) in ${t.partitionKey}`,constraints:["fresh context","attempt refutation","one disposition per findingId"],readOnly:!0,modelHint:"deep",verification:{enforcement:"hard",requiredReadPaths:gt(t)},outputSchema:Re,terseResult:!0}),"finding verifier");return e.log({message:`verification read accepted for ${t.partitionKey}`,data:{kind:"review_packet_read",role:"verification",contentHash:t.contentHash,reason:"candidate findings"}}),pt(n,On(r.structured))}i(_n,"verifyFindings");async function Nn(e,t,n){let r=[await wt(e,t,!1,n)];t.riskFlags.includes("routing-high")&&r.push(await wt(e,t,!0,n));let a=r.map(d=>ft(t.contentHash,t.requirementsPresent,d)),o=mt(a),s=await _n(e,t,o);return e.log({message:`quality gate completed for ${t.partitionKey}`,data:{kind:"review_quality_gate",contentHash:t.contentHash,actionableFindings:s.actionable.length,unresolvedFindings:s.actionable.filter(d=>d.disposition==="unresolved").length,unqualifiedApprovalAllowed:s.unqualifiedApprovalAllowed}}),{contentHash:t.contentHash,result:s}}i(Nn,"reviewPacket");async function Dn(e,t){if(!Array.isArray(t.packets)||t.packets.length===0)throw new Error("scoped-review requires at least one review packet");let n=await e.parallel(t.packets.map(d=>()=>Nn(e,d,t)),{concurrency:4});if(n.some(d=>d===null))throw new Error("one or more scope packets failed review; no final verdict was accepted");let r=n.filter(d=>d!==null);await e.artifact("scoped-review-audit",r);let a=be(await e.runAgent({name:"final-review-synthesis",phase:"final-synthesis",prompt:$n(r),scopeSummary:`cross-scope synthesis for ${r.length} packet(s)`,constraints:["preserve severity","preserve unresolved uncertainty","do not invent evidence"],readOnly:!0,modelHint:"deep",outputSchema:Wn,terseResult:!0}),"final synthesis"),o=a.structured;return{summary:typeof o?.summary=="string"?o.summary:a.finalText,packetResults:r}}i(Dn,"runScopedReview");var ht={meta:{name:"scoped-review",description:"Review immutable scope packets once, verify only candidate findings, then synthesize.",readOnly:!0,phases:["primary-review","verifier","final-synthesis"],maxAgents:64,maxConcurrency:4},run:Dn};function yt(e){return{meta:e.meta,run:i((t,n)=>e.run(t,n),"run")}}i(yt,"erase");var kt=[yt(dt),yt(ht)];function vt(e){return kt.find(t=>t.meta.name===e)}i(vt,"getBuiltinWorkflow");function no(){return kt.map(e=>e.meta)}i(no,"listBuiltinWorkflows");import{mkdir as Tt,readdir as jn,readFile as Q,rename as Un,unlink as Pe,writeFile as Me}from"node:fs/promises";import{basename as Vn,dirname as Ie,join as K}from"node:path";import{pathToFileURL as Bn}from"node:url";var It=[".workflow.json",".ts",".mjs",".js"],ee="0.7.49";function Pt(){return"0.7.
|
|
16
|
+
`)}i($n,"buildScopedReviewFinalPrompt");async function wt(e,t,n,r){let a=be(await e.runAgent({name:`${n?"high-risk-":""}primary-${t.partitionKey}`,phase:"primary-review",prompt:qn(t,n,r),scopeSummary:`${t.partitionKey}: ${t.scopePaths.join(", ")}`,constraints:["read every required packet path","return both verdicts","cite evidence at each finding"],readOnly:!0,modelHint:n?"deep":"balanced",verification:{enforcement:"hard",requiredReadPaths:gt(t)},outputSchema:Se,terseResult:!0}),"primary reviewer");return e.log({message:`primary read accepted for ${t.partitionKey}`,data:{kind:"review_packet_read",role:"primary",contentHash:t.contentHash}}),Fn(a.structured)}i(wt,"runPrimary");async function _n(e,t,n){if(n.findings.length===0)return{specVerdict:n.specVerdict,qualityVerdict:n.qualityVerdict,unverifiedRequirements:n.unverifiedRequirements,actionable:[],audit:{findings:[]},unqualifiedApprovalAllowed:n.unverifiedRequirements.length===0&&n.specVerdict==="compliant"&&n.qualityVerdict==="approved"};let r=be(await e.runAgent({name:`verify-${t.partitionKey}`,phase:"verifier",prompt:Cn(t,n),scopeSummary:`verify ${n.findings.length} candidate finding(s) in ${t.partitionKey}`,constraints:["fresh context","attempt refutation","one disposition per findingId"],readOnly:!0,modelHint:"deep",verification:{enforcement:"hard",requiredReadPaths:gt(t)},outputSchema:Re,terseResult:!0}),"finding verifier");return e.log({message:`verification read accepted for ${t.partitionKey}`,data:{kind:"review_packet_read",role:"verification",contentHash:t.contentHash,reason:"candidate findings"}}),pt(n,On(r.structured))}i(_n,"verifyFindings");async function Nn(e,t,n){let r=[await wt(e,t,!1,n)];t.riskFlags.includes("routing-high")&&r.push(await wt(e,t,!0,n));let a=r.map(d=>ft(t.contentHash,t.requirementsPresent,d)),o=mt(a),s=await _n(e,t,o);return e.log({message:`quality gate completed for ${t.partitionKey}`,data:{kind:"review_quality_gate",contentHash:t.contentHash,actionableFindings:s.actionable.length,unresolvedFindings:s.actionable.filter(d=>d.disposition==="unresolved").length,unqualifiedApprovalAllowed:s.unqualifiedApprovalAllowed}}),{contentHash:t.contentHash,result:s}}i(Nn,"reviewPacket");async function Dn(e,t){if(!Array.isArray(t.packets)||t.packets.length===0)throw new Error("scoped-review requires at least one review packet");let n=await e.parallel(t.packets.map(d=>()=>Nn(e,d,t)),{concurrency:4});if(n.some(d=>d===null))throw new Error("one or more scope packets failed review; no final verdict was accepted");let r=n.filter(d=>d!==null);await e.artifact("scoped-review-audit",r);let a=be(await e.runAgent({name:"final-review-synthesis",phase:"final-synthesis",prompt:$n(r),scopeSummary:`cross-scope synthesis for ${r.length} packet(s)`,constraints:["preserve severity","preserve unresolved uncertainty","do not invent evidence"],readOnly:!0,modelHint:"deep",outputSchema:Wn,terseResult:!0}),"final synthesis"),o=a.structured;return{summary:typeof o?.summary=="string"?o.summary:a.finalText,packetResults:r}}i(Dn,"runScopedReview");var ht={meta:{name:"scoped-review",description:"Review immutable scope packets once, verify only candidate findings, then synthesize.",readOnly:!0,phases:["primary-review","verifier","final-synthesis"],maxAgents:64,maxConcurrency:4},run:Dn};function yt(e){return{meta:e.meta,run:i((t,n)=>e.run(t,n),"run")}}i(yt,"erase");var kt=[yt(dt),yt(ht)];function vt(e){return kt.find(t=>t.meta.name===e)}i(vt,"getBuiltinWorkflow");function no(){return kt.map(e=>e.meta)}i(no,"listBuiltinWorkflows");import{mkdir as Tt,readdir as jn,readFile as Q,rename as Un,unlink as Pe,writeFile as Me}from"node:fs/promises";import{basename as Vn,dirname as Ie,join as K}from"node:path";import{pathToFileURL as Bn}from"node:url";var It=[".workflow.json",".ts",".mjs",".js"],ee="0.7.49";function Pt(){return"0.7.86"}i(Pt,"currentKodaxWorkflowVersion");function Hn(e){return e.endsWith(".workflow.json")?"capability-generated":"trusted-local"}i(Hn,"executionForPath");function Kn(e){let t=It.find(n=>e.endsWith(n));return t?e.slice(0,-t.length):void 0}i(Kn,"stripWorkflowSuffix");function Ae(e){let t=e.trim().replace(/[^a-zA-Z0-9._-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,80);if(!t||t==="."||t==="..")throw new Error("workflow name must contain at least one safe filename character");return t}i(Ae,"safeWorkflowName");function Ee(e){return typeof e=="object"&&e!==null}i(Ee,"isRecord");function xt(e,t){let n=e[t];if(typeof n!="string"||n.length===0)throw new Error(`workflow run.json missing ${t}`);return n}i(xt,"readRequiredString");async function St(e,t){if(!e)return[];let n;try{n=await jn(e)}catch{return[]}let r=new Map;for(let a of It)for(let o of n){if(!o.endsWith(a))continue;let s=Kn(o);if(!s||s.length===0||r.has(s))continue;let d=K(e,o);r.set(s,{name:s,path:d,source:t,execution:Hn(d)})}return[...r.values()]}i(St,"scanDir");async function te(e){let t=await St(e.personal,"personal"),n=await St(e.project,"project"),r=new Map;for(let a of t)r.set(a.name,a);for(let a of n)r.set(a.name,a);return[...r.values()].sort((a,o)=>a.name.localeCompare(o.name))}i(te,"discoverSavedWorkflows");function Ln(e){return typeof e=="object"&&e!==null&&"meta"in e&&"run"in e&&typeof e.run=="function"}i(Ln,"isWorkflowModule");function zn(e){let t=e.default;if(Ln(t))return t;let n=typeof t=="function"?t:e.run,r=e.workflow??e.meta;if(typeof n=="function"&&typeof r=="object"&&r!==null&&"name"in r)return{meta:r,run:n};throw new Error("invalid workflow module: expected a `{ meta, run }` default export, or `export const workflow = {...}` + a default run function")}i(zn,"normalizeWorkflowModule");function Jn(e){let t=JSON.parse(e);if(!Ee(t))throw new Error("generated workflow file must be an object");if(t.format!==void 0&&t.format!=="kodax.workflow")throw new Error(`unsupported workflow capsule format: ${String(t.format)}`);if(t.format==="kodax.workflow"){let a=pe(t);return{manifest:a.manifest,source:a.source,capsule:a,legacy:!1}}let n=t.source;if(typeof n!="string"||n.trim().length===0)throw new Error("generated workflow file source must be a non-empty string");let r=Z(t.manifest);return{manifest:r,source:n,capsule:B({minKodaxVersion:ee,manifest:r,source:n}),legacy:!0}}i(Jn,"parseGeneratedWorkflowFile");async function We(e){let t=Jn(await Q(e,"utf8"));return t.capsule??B({minKodaxVersion:ee,manifest:t.manifest,source:t.source})}i(We,"loadSavedWorkflowCapsule");async function Mt(e){if(e.endsWith(".workflow.json"))return we(await We(e));let t=await import(Bn(e).href);return zn(t)}i(Mt,"loadSavedWorkflow");function Fe(e){if(e.mayUseWorktree===!0)return{environment:["git-repo","worktree-capable"]}}i(Fe,"deriveRequirements");function ce(e,t){me(t,{filename:`${e.name}.workflow.js`,requireAsyncRun:!0})}i(ce,"assertGeneratedCapsuleSource");async function Gn(e){let t=Ae(e.name),n=Z(e.manifest);ce(n,e.source);let r=e.requires??Fe(n),a=B({minKodaxVersion:e.minKodaxVersion??ee,manifest:n,source:e.source,...e.intent!==void 0?{intent:e.intent}:{},...e.inputs!==void 0?{inputs:e.inputs}:{},...r!==void 0?{requires:r}:{},...e.provenance!==void 0?{provenance:e.provenance}:{}});await Tt(e.dir,{recursive:!0});let o=K(e.dir,`${t}.workflow.json`);return await Me(o,`${JSON.stringify(a,null,2)}
|
|
17
17
|
`,"utf8"),{name:t,path:o,source:"project",execution:"capability-generated"}}i(Gn,"saveGeneratedWorkflow");async function Rt(e,t){await Me(e,`${JSON.stringify(t,null,2)}
|
|
18
18
|
`,"utf8")}i(Rt,"writeCapsuleFile");async function Xn(e){try{return await Q(e,"utf8"),!0}catch{return!1}}i(Xn,"fileExists");async function uo(e){let t=(await te(e.dirs)).filter(d=>d.name===e.name).filter(d=>e.source===void 0||d.source===e.source);if(t.length===0)throw new Error(`saved workflow not found: ${e.name}`);if(t.length>1)throw new Error(`ambiguous saved workflow name: ${e.name}`);let n=t[0];if(!n.path.endsWith(".workflow.json"))throw new Error("only generated workflow capsules can be renamed");let r=Ae(e.newName),a=K(Ie(n.path),`${r}.workflow.json`);if(a!==n.path&&await Xn(a))throw new Error(`saved workflow already exists: ${r}`);let o=await We(n.path);ce(o.manifest,o.source);let s=B({minKodaxVersion:o.minKodaxVersion,manifest:{...o.manifest,name:r},source:o.source,...o.intent!==void 0?{intent:o.intent}:{},...o.inputs!==void 0?{inputs:o.inputs}:{},...o.requires!==void 0?{requires:o.requires}:{},...o.provenance!==void 0?{provenance:o.provenance}:{}});return await Me(a,`${JSON.stringify(s,null,2)}
|
|
19
19
|
`,"utf8"),a!==n.path&&await Pe(n.path),{name:r,path:a,source:n.source,execution:"capability-generated"}}i(uo,"renameSavedWorkflow");async function lo(e){let t=(await te(e.dirs)).filter(r=>r.name===e.name).filter(r=>e.source===void 0||r.source===e.source);if(t.length===0)throw new Error(`saved workflow not found: ${e.name}`);if(t.length>1)throw new Error(`ambiguous saved workflow name: ${e.name}`);let n=t[0];if(!n.path.endsWith(".workflow.json"))throw new Error("only generated workflow capsules can be deleted");return await Pe(n.path),n}i(lo,"deleteSavedWorkflow");async function fo(e){let t=Ae(e.name),n=(await te(e.dirs)).filter(v=>v.name===t).filter(v=>e.savedSource===void 0||v.source===e.savedSource);if(n.length===0)throw new Error(`saved workflow not found: ${t}`);if(n.length>1)throw new Error(`ambiguous saved workflow name: ${t}`);let r=n[0];if(!r.path.endsWith(".workflow.json"))throw new Error("only generated workflow capsules can be replaced");let a=Z({...e.manifest,name:t});ce(a,e.source);let o=e.requires??Fe(a),s=B({minKodaxVersion:e.minKodaxVersion??ee,manifest:a,source:e.source,...e.intent!==void 0?{intent:e.intent}:{},...e.inputs!==void 0?{inputs:e.inputs}:{},...o!==void 0?{requires:o}:{},...e.provenance!==void 0?{provenance:e.provenance}:{}}),d=await We(r.path),g=new Date().toISOString().replace(/[:.]/g,"-"),h=K(Ie(r.path),".revisions",t),y=`${g}-${process.hrtime.bigint().toString(36)}`,p=K(h,`${t}-${y}.workflow.json`),b=K(Ie(r.path),`.${t}.${process.pid}.${Date.now().toString(36)}.tmp`);await Tt(h,{recursive:!0}),await Rt(p,d);try{await Rt(b,s),await Un(b,r.path)}catch(v){try{await Pe(b)}catch{}throw v}return{name:t,path:r.path,source:r.source,execution:"capability-generated",previousPath:p}}i(fo,"replaceSavedWorkflow");function Yn(e){if(!Ee(e))return;let t=e.request;if(typeof t=="string"&&t.trim().length>0)return t;let n=e.question;if(typeof n=="string"&&n.trim().length>0)return n}i(Yn,"readOptionalOriginalRequest");function At(e){return Zn(e)}i(At,"buildCapsuleFromRun");async function Zn(e){let t=JSON.parse(await Q(K(e.runDir,"run.json"),"utf8"));if(!Ee(t))throw new Error("workflow run.json must be an object");let n=xt(t,"scriptSnapshotPath"),r=xt(t,"manifestSnapshotPath"),a=await Q(n,"utf8"),o=Z(JSON.parse(await Q(r,"utf8")));ce(o,a);let s=typeof t.runId=="string"&&t.runId.length>0?t.runId:Vn(e.runDir),d=Yn(t.args),g=Fe(o),h=Ue(o,d!==void 0?{originalRequest:d}:{}),y={description:"Provide new workflow args matching the generated request shape.",..."args"in t?{examples:[t.args]}:{}};return B({minKodaxVersion:ee,manifest:o,source:a,intent:h,inputs:y,...g!==void 0?{requires:g}:{},provenance:{fromRunId:s,createdAt:new Date().toISOString(),kodaxVersion:Pt()}})}i(Zn,"readCapsuleFromRun");async function mo(e){let t=await At(e);return{capsule:t,module:we(t)}}i(mo,"loadGeneratedWorkflowFromRun");async function po(e){let t=await At(e);return Gn({dir:e.targetDir,name:e.name,manifest:t.manifest,source:t.source,...t.intent!==void 0?{intent:t.intent}:{},...t.inputs!==void 0?{inputs:t.inputs}:{},...t.requires!==void 0?{requires:t.requires}:{},...t.provenance!==void 0?{provenance:t.provenance}:{},minKodaxVersion:t.minKodaxVersion})}i(po,"saveGeneratedWorkflowFromRun");function U(e,t,n,r){e.push({severity:t,requirement:n,message:r})}i(U,"addRequirementIssue");function bt(e){let t=/^v?(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(e.trim());if(t)return[Number(t[1]),Number(t[2]),Number(t[3])]}i(bt,"parseSemver");function Qn(e,t){for(let n=0;n<3;n+=1){let r=e[n]-t[n];if(r!==0)return r}return 0}i(Qn,"compareSemver");function er(e,t,n){let r=bt(t),a=bt(n);if(!r){U(e,"error","kodax:min-version",`workflow minKodaxVersion is not valid semver: ${t}`);return}if(!a){U(e,"warning","kodax:min-version",`cannot verify workflow minKodaxVersion ${t}; current version is unknown`);return}Qn(a,r)<0&&U(e,"error","kodax:min-version",`workflow requires KodaX >= ${t}, current version is ${n}`)}i(er,"addMinVersionIssue");function Te(e,t,n,r){if(!n)return;if(!r){for(let o of n)U(e,"warning",`${t}:${o}`,`workflow requires ${t}:${o}, but no ${t} inventory was provided`);return}let a=new Set(r);for(let o of n)a.has(o)||U(e,"error",`${t}:${o}`,`missing required workflow ${t}: ${o}`)}i(Te,"addMissingItems");function wo(e,t={}){let n=pe(e),r=[],a=n.requires;er(r,n.minKodaxVersion,t.kodaxVersion??Pt()),a?.environment?.includes("git-repo")&&t.isGitRepo===!1&&U(r,"error","environment:git-repo","workflow requires a git repository"),a?.environment?.includes("worktree-capable")&&t.worktreeCapable===!1&&U(r,"error","environment:worktree-capable","workflow may request git worktree isolation");try{me(n.source,{filename:`${n.manifest.name}.workflow.js`,requireAsyncRun:!0})}catch(o){let s=o instanceof Error?o.message:String(o);U(r,"error","workflow:source",s)}return Te(r,"tools",a?.tools,t.availableTools),Te(r,"mcp",a?.mcp,t.availableMcp),Te(r,"skills",a?.skills,t.availableSkills),{ok:!r.some(o=>o.severity==="error"),issues:r}}i(wo,"preflightWorkflowCapsule");function nr(e){return{project:Et(e,".kodax","workflows"),personal:Et(tr(),".kodax","workflows")}}i(nr,"defaultSavedWorkflowDirs");async function rr(e,t){let r=(await te(t)).find(a=>a.name===e);if(r)return Mt(r.path)}i(rr,"resolveSavedByName");function Wt(e){let t=nr(e);return async n=>vt(n)??await rr(n,t)}i(Wt,"createNestedWorkflowResolver");import{existsSync as or,mkdirSync as ir,readFileSync as ar,writeFileSync as Ft}from"node:fs";import{join as ne}from"node:path";var Ot="results";function qt(e){return e.replace(/[^a-zA-Z0-9._-]/g,"_")}i(qt,"safeKey");function Ct(e,t){let n=ne(e,t);if(or(n))try{return JSON.parse(ar(n,"utf8"))}catch{return}}i(Ct,"readResult");function $t(e,t={}){let n=ne(e,Ot);ir(n,{recursive:!0});let r=t.readFrom?ne(t.readFrom,Ot):void 0;return{get:i(a=>{let o=`${qt(a)}.json`,s=Ct(n,o);if(s!==void 0)return s;if(r===void 0)return;let d=Ct(r,o);if(d!==void 0){try{Ft(ne(n,o),JSON.stringify(d),"utf8")}catch{}return d}},"get"),set:i((a,o)=>{try{Ft(ne(n,`${qt(a)}.json`),JSON.stringify(o),"utf8")}catch{}},"set")}}i($t,"createFsResultCache");import{mkdirSync as sr,appendFileSync as cr,writeFileSync as ue}from"node:fs";import{join as J}from"node:path";function de(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:void 0}i(de,"record");function F(e){return typeof e=="number"&&Number.isFinite(e)&&e>=0?e:0}i(F,"finiteNumber");function _t(e){let t=new Map,n=new Set,r=[],a=[],o=new Set,s=[],d=[],g=0,h=0,y=0,p=0,b=0,v=0,W=0,m=0,T={},$=[];for(let C of e){let M=C.data??{};if(C.type==="agent_spawned"){let u=typeof M.taskId=="string"?M.taskId:void 0;u&&t.set(u,M),M.role==="primary-review"&&(v+=1);let w=typeof M.role=="string"?M.role:"agent",S=typeof M.requestedTier=="string"?M.requestedTier:"inherited",I=`${w}/${S}`;T[I]=(T[I]??0)+1;continue}if(C.type==="agent_completed"||C.type==="agent_unverified"||C.type==="agent_failed"){let u=typeof M.taskId=="string"?M.taskId:void 0;if(!u||n.has(u))continue;n.add(u);let w=de(M.usage);!w||typeof w.totalTokens!="number"?typeof t.get(u)?.externalTarget=="string"?a.push(u):r.push(u):(g+=F(w.totalTokens),h+=F(w.inputTokens),y+=F(w.cacheReadTokens??w.cachedReadTokens),p+=F(w.outputTokens));let S=de(M.digestUsage);b+=F(S?.totalTokens),h+=F(S?.inputTokens),p+=F(S?.outputTokens),y+=F(S?.cacheReadTokens??S?.cachedReadTokens),W+=F(M.iterations);continue}if(C.type==="agent_summary_updated"){let u=de(M.usage),w=M.summaryKind;if((w==="digest"||w==="digest-failed")&&u){let S=F(u.totalTokens);g+=S,b+=S,h+=F(u.inputTokens),p+=F(u.outputTokens),y+=F(u.cacheReadTokens??u.cachedReadTokens)}continue}if(C.type!=="workflow_log")continue;let f=de(M.data);if(f?.kind==="review_quality_gate"&&typeof f.contentHash=="string"){$.push({contentHash:f.contentHash,actionableFindings:F(f.actionableFindings),unresolvedFindings:F(f.unresolvedFindings),unqualifiedApprovalAllowed:f.unqualifiedApprovalAllowed===!0});continue}if(f?.kind!=="review_packet_read"||typeof f.contentHash!="string")continue;let l={contentHash:f.contentHash,...typeof f.reason=="string"?{reason:f.reason}:{}};f.role==="primary"?(o.has(f.contentHash)&&(m+=1),o.add(f.contentHash)):f.role==="verification"?s.push(l):f.role==="synthesis"&&d.push(l)}for(let C of t.keys())n.has(C)||r.push(C);let G=[...new Set(r)].sort();return{totalModelTokens:g,inputTokens:h,cacheReadTokens:y,outputTokens:p,digestTokens:b,agentStarts:t.size,childTurns:W,agentStartsByRoleTier:T,primaryReviewStarts:v,duplicatePrimaryPacketReads:m,verificationPacketReads:s,synthesisPacketReads:d,reviewWaves:v>0?1:0,fixWaves:0,rereviewWaves:0,qualityGateOutcomes:$,tokenCoverage:{ok:G.length===0,missingTaskIds:G},excludedExternalTaskIds:[...new Set(a)].sort()}}i(_t,"buildWorkflowCostReport");function dr(e){let t=e.replace(/[^a-zA-Z0-9._-]/g,"_").slice(0,120);return t.length>0?t:"artifact"}i(dr,"safeWorkflowArtifactName");function Nt(e,t={}){let n=t.now??(()=>Date.now()),r=J(e,"artifacts");sr(r,{recursive:!0});let a=J(e,"events.jsonl");return{runDir:e,onEvent:i(o=>{cr(a,`${JSON.stringify({...o,ts:n()})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-A5VQGXH2.js";import"./chunk-G5FGIRDJ.js";import"./chunk-UH5WNJXF.js";import"./chunk-ONUPGMER.js";export{a as loadCompactionConfig};
|
package/dist/chunks/{construction-bootstrap-CZ6NWEWQ.js → construction-bootstrap-4DGAYOWH.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-XA4ENCAH.js";import"./chunk-Q6UAGROD.js";import"./chunk-UKCDCVMD.js";import"./chunk-HTVLCHWH.js";import"./chunk-XUKLF26Q.js";import{Ic as a,Nc as i,Uc as l,Zc as c}from"./chunk-U6HNMLNN.js";import"./chunk-GVGLYVG4.js";import"./chunk-TRNAWSXP.js";import"./chunk-G5FGIRDJ.js";import"./chunk-UH5WNJXF.js";import{a as n}from"./chunk-ONUPGMER.js";var r=null;function y(e){r=e}n(y,"bindAskUserForConstruction");function p(e){return e.content?.capabilities?.tools??[]}n(p,"readDeclaredTools");var m=n(async e=>{if(!r)return"reject";let t=p(e),o=t.length>0?t.join(", "):"<none>";return await r({question:`Activate constructed tool ${e.name}@${e.version}?
|
|
3
3
|
It declares capabilities.tools = [${o}].`,allowCustomInput:!1,options:[{label:"Approve \u2014 register and make callable",description:"The tool will be added to the active tool registry and the LLM can invoke it on the next turn.",value:"approve"},{label:"Reject \u2014 do not register",description:"The artifact stays staged on disk; rerun activate_tool to retry.",value:"reject"}]})==="approve"?"approve":"reject"},"replConstructionPolicy"),v=n(async e=>{if(!r)return"reject";let t=e.llmSummary.flaggedConcerns.length>0?e.llmSummary.flaggedConcerns.map(u=>` \u2022 ${u}`).join(`
|
|
4
4
|
`):" \u2022 <none>",o=e.prevContent.instructions??"<no instructions>",s=e.nextContent.instructions??"<no instructions>",d=[`Self-modify activation: ${e.agentName}@${e.fromVersion} \u2192 ${e.toVersion}`,"",`LLM diff summary (severity=${e.llmSummary.severity}):`,` ${e.llmSummary.summary}`,"","Flagged concerns:",t,"",`Budget remaining (after approve): ${e.budgetRemaining-1}/${e.budgetLimit}`,"","\u2500\u2500 Previous instructions \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",o,"\u2500\u2500 Proposed instructions \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",s,"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","","The LLM summary is advisory \u2014 read the proposed instructions above before approving."].join(`
|
|
5
5
|
`);return await r({question:d,allowCustomInput:!1,options:[{label:"Approve \u2014 activate the new version on the next run",description:"Resolver swap is deferred to the next Runner.run boundary so the in-flight conversation keeps the prior reference.",value:"approve"},{label:"Reject \u2014 stay on the previous version",description:"Budget is not consumed on rejection; the staged version is left on disk for diff inspection.",value:"reject"}]})==="approve"?"approve":"reject"},"replSelfModifyAskUser");async function h(e){a({cwd:e,policy:m,selfModifyAskUser:v});let t=await i();await c();let o=await l({cwd:e});return{loaded:t.loaded,failed:t.failed,tampered:t.tampered,markdownLoaded:o.loaded,markdownFailures:o.failed}}n(h,"bootstrapConstructionRuntime");export{y as bindAskUserForConstruction,h as bootstrapConstructionRuntime};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as Lj,A as kj,B as lj,C as mj,D as nj,E as oj,F as pj,G as qj,H as rj,I as sj,J as tj,K as uj,L as vj,M as wj,N as xj,O as yj,P as zj,Q as Aj,R as Bj,S as Cj,T as Dj,U as Ej,V as Fj,W as Gj,X as Hj,Y as Ij,Z as Jj,_ as Kj,a as ec,aa as Mj,b as fc,ba as Nj,c as gc,ca as Oj,d as Pi,da as Pj,e as Qi,ea as Qj,f as Ri,fa as Rj,g as Si,ga as Sj,h as Ti,ha as Tj,i as Ui,ia as Uj,j as Vi,ja as Vj,k as Wi,ka as Wj,l as Xi,la as Xj,m as Yi,n as Zi,o as _i,p as $i,q as aj,r as bj,s as cj,t as dj,u as ej,v as fj,w as gj,x as hj,y as ij,z as jj}from"./chunk-CZCEFGQG.js";import{$ as bg,$b as qi,A as Lf,Ab as Rh,B as Mf,Bb as Sh,C as Nf,Cb as Th,D as Of,Db as Uh,Eb as Vh,Fb as Wh,Gb as Xh,Hb as Yh,I as Pf,Ib as Zh,J as Qf,Jb as _h,Kb as $h,Lb as ai,Mb as bi,N as Rf,Nb as ci,O as Sf,Ob as di,P as Tf,Pb as ei,Q as Uf,Qb as fi,R as Vf,Rb as gi,S as Wf,Sb as hi,T as Xf,Tb as ii,U as Yf,Ua as qh,Ub as ji,Va as rh,Vb as ki,Wb as li,X as Zf,Xb as mi,Y as _f,Yb as ni,Z as $f,Zb as oi,_ as ag,_b as pi,aa as cg,ac as ri,b as Hb,ba as dg,bb as sh,bc as si,c as Ib,cb as th,cc as ti,d as Jb,db as uh,dc as ui,e as Kb,eb as vh,ec as vi,f as Lb,fb as wh,fc as wi,g as Mb,ga as eg,gb as xh,gc as xi,ha as fg,hb as yh,hc as yi,i as Nb,ia as gg,ib as zh,ic as zi,j as Ob,ja as hg,jb as Ah,jc as Ai,ka as ig,kb as Bh,kc as Bi,l as Pb,lb as Ch,lc as Ci,m as Qb,mb as Dh,mc as Di,n as Rb,nb as Eh,nc as Ei,o as $b,oa as jg,ob as Fh,oc as Fi,p as hc,pa as kg,pb as Gh,pc as Gi,q as ic,qa as lg,qb as Hh,qc as Hi,r as zf,ra as mg,rb as Ih,rc as Ii,s as Af,sb as Jh,sc as Ji,t as Bf,tb as Kh,tc as Ki,u as Cf,ua as ng,ub as Lh,uc as Li,v as Df,vb as Mh,vc as Mi,w as Ef,wb as Nh,wc as Ni,x as If,xb as Oh,y as Jf,yb as Ph,yc as Oi,z as Kf,zb as Qh}from"./chunk-RTFVMEF6.js";import{a as yg,b as zg,c as Ag,d as Bg,e as Cg,f as Dg,g as Eg,h as Fg,i as Gg,j as ph}from"./chunk-ODRLFQQH.js";import{a as xg}from"./chunk-HTVLCHWH.js";import{A as fh,B as gh,C as hh,D as ih,E as jh,F as kh,G as lh,H as mh,I as nh,J as oh,a as Hg,b as Ig,c as Jg,d as Kg,e as Lg,f as Mg,g as Ng,h as Og,i as Pg,j as Qg,k as Rg,l as Sg,m as Tg,n as Ug,o as Vg,p as Wg,q as Xg,r as Yg,s as Zg,t as _g,u as $g,v as ah,w as bh,x as ch,y as dh,z as eh}from"./chunk-SR4E5FQK.js";import{$ as yc,$a as ed,$c as Ue,$d as pg,Aa as Jc,Ab as Ed,Ac as te,Ad as pf,Bb as Fd,Bc as ue,Bd as qf,Ca as Kc,Cb as Gd,Cc as ve,Da as Lc,Dc as we,Dd as rf,E as lc,Ea as Mc,Ec as xe,Ed as sf,F as mc,Fa as Nc,Fc as ye,Fd as tf,G as nc,Ga as Oc,Gb as Hd,Gc as ze,Gd as uf,H as oc,Hb as Id,Hc as Ae,Hd as vf,I as pc,Ia as Pc,Ib as Jd,Ic as Be,Id as wf,J as qc,Ja as Qc,Jb as Kd,Jc as Ce,Jd as xf,K as rc,Ka as Rc,Kc as De,Kd as yf,L as sc,La as Sc,Lc as Ee,Ld as Ff,M as tc,Ma as Tc,Mc as Fe,Md as Gf,N as uc,Na as Uc,Nb as Ld,Nc as Ge,Nd as Hf,O as vc,Oa as Vc,Ob as Md,Oc as He,P as wc,Pa as Wc,Pb as Nd,Pc as Ie,Qa as Xc,Qb as Od,Qc as Je,Ra as Yc,Rb as Pd,Rc as Ke,Sa as Zc,Sb as Qd,Sc as Le,Ta as _c,Tb as Rd,Tc as Me,Ua as $c,Ub as Sd,Uc as Ne,Va as ad,Vb as Td,Vc as Oe,Wa as bd,Wb as Ud,Wc as Pe,Xa as cd,Xb as Vd,Xc as Qe,Ya as dd,Yc as Re,Zc as Se,_ as xc,_b as Wd,_c as Te,_d as og,aa as zc,ab as fd,ad as Ve,ae as qg,ba as Ac,bb as gd,bd as We,be as rg,c as Sb,ca as Bc,cb as hd,cc as Xd,cd as Xe,ce as sg,d as Tb,da as Cc,db as id,dc as Yd,dd as Ye,de as tg,e as Ub,eb as jd,ec as Zd,ed as Ze,f as Vb,fb as kd,fc as _d,g as Wb,gc as $d,h as Xb,hb as ld,hc as ae,i as Yb,ib as md,ic as be,j as Zb,jb as nd,jc as ce,k as _b,kb as od,kc as de,kd as _e,lb as pd,lc as ee,ld as $e,le as ug,m as ac,mb as qd,mc as fe,md as af,me as vg,n as bc,nb as rd,nc as ge,nd as bf,ne as wg,ob as sd,oc as he,od as cf,p as cc,pa as Dc,pb as td,pc as ie,pd as df,qa as Ec,qb as ud,qc as je,qd as ef,r as dc,ra as Fc,rb as vd,rc as ke,rd as ff,sa as Gc,sb as wd,sc as le,sd as gf,ta as Hc,tb as xd,tc as me,td as hf,ub as yd,uc as ne,ud as jf,vb as zd,vc as oe,vd as kf,wb as Ad,wc as pe,wd as lf,xb as Bd,xc as qe,xd as mf,y as jc,ya as Ic,yb as Cd,yc as re,yd as nf,z as kc,zb as Dd,zc as se,zd as of}from"./chunk-ZVOXWLT6.js";import"./chunk-RSOAHVUR.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-TRNAWSXP.js";import{Aa as pa,Ae as ab,Af as wb,Be as bb,Bf as xb,Ce as cb,Cf as yb,De as db,Ee as eb,Fe as fb,Ff as zb,Ge as gb,Gf as Ab,Ha as qa,He as hb,Hf as Bb,Ia as ra,Ie as ib,If as Cb,Ja as sa,Jb as Ra,Je as jb,Jf as Db,Kb as Sa,Ke as kb,Kf as Eb,Le as lb,Ma as ta,Me as mb,Oe as nb,Pe as ob,Qe as pb,Qf as Fb,Rf as Gb,Te as qb,Ue 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,k as ia,l as ja,qe as Ta,re as Ua,se as Va,te as Wa,ue as Xa,v as ka,ve as Ya,w as la,we as Za,wf as sb,x as ma,xa as oa,xe as _a,xf as tb,y as na,yf as ub,ze as $a,zf as vb}from"./chunk-3E4OSFP2.js";import{A as Fa,B as Ga,C as Ha,D as Ia,E as Ja,F as Ka,G as La,H as Ma,I as Na,J as Oa,K as Pa,L as Qa,j as ua,q as va,r as wa,s as xa,t as ya,u as za,v as Aa,w as Ba,x as Ca,y as Da,z as Ea}from"./chunk-UH5WNJXF.js";import"./chunk-ONUPGMER.js";export{Tf as ALWAYS_RESIDENT_TOOL_NAMES,zi as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,Ai as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,Kj as BASH_POLICY_SPEC,Bh as BASH_SAFE_READ_COMMANDS,Ah as BASH_WRITE_COMMANDS,bj as BLOCKER_REQUIRED_CONSECUTIVE_TURNS,ui as BREAKER_ERROR_THRESHOLD,vi as BREAKER_WINDOW_MS,Sg as BUILTIN_WORKFLOWS,kc as CANCELLED_TOOL_RESULT_MESSAGE,jc as CANCELLED_TOOL_RESULT_PREFIX,si as CLASSIFIER_MAX_OUTPUT_TOKENS,Cj as CODING_AGENT_MARKER,Vi as CODING_INVARIANTS,qh as CODING_SUMMARY_PROMPT,rh as CODING_UPDATE_SUMMARY_PROMPT,ke as CapabilityDeniedError,Xi as Client,ug as CodingActorSession,Ve as CombinedExtensionRuntime,le as ConstructionManifestError,ri as DEFAULT_CLASSIFIER_RETRY_TIMEOUT_MS,qi as DEFAULT_CLASSIFIER_TIMEOUT_MS,sh as DEFAULT_CODING_AGENT_NAME,ji as DEFAULT_DANGEROUS_PATTERNS,ie as DEFAULT_HANDLER_TIMEOUT_MS,Zf as DEFAULT_RESILIENCE_CONFIG,ii as DEFAULT_SAFE_PATTERNS,ve as DEFAULT_SELF_MODIFY_BUDGET,Ji as DEFAULT_SPECULATIVE_WINDOW_MS,mc as DEFAULT_TOOL_OUTPUT_MAX_BYTES,lc as DEFAULT_TOOL_OUTPUT_MAX_LINES,zg as DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS,na as DefaultSummaryCompaction,zj as EMIT_VERDICT_TOOL_NAME,hc as ErrorCategory,yh as FILE_MODIFICATION_TOOLS,Kg as FINDING_VERIFICATION_OUTPUT_SCHEMA,Cd 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,_e as KODAX_TOOLS,yc as KODAX_UNDERLYING_CAPABILITY_TOPICS,Ma as KODAX_VIDEO_MEDIA_TYPES,o as KodaXAnthropicCompatProvider,n as KodaXBaseProvider,Xi as KodaXClient,a as KodaXError,Ue as KodaXExtensionRuntime,va as KodaXMediaError,p as KodaXOpenAICompatProvider,b as KodaXProviderError,c as KodaXRateLimitError,fc as KodaXSessionError,gc as KodaXTerminalError,ec 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,qg as LSP_SERVERS,pb as LineageCompaction,ob as LineageExtension,rg as LspService,zc as MANUAL_REGISTRY,xc as MANUAL_TOPIC_IDS,Ca as MAX_DIMENSION,rj as MEMORY_INTERVENTION_SELECTOR_PROMPT,sj as MEMORY_INTERVENTION_SELECTOR_SHA256,zh as MODIFICATION_TOOLS,_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,Bd as PLANNER_AGENT_NAME,ha as PROMISE_PATTERN,Af as PROMPT_SECTION_REGISTRY,Bj as PROTOCOL_EMITTER_TOOLS,dg as ProviderRecoveryCoordinator,nc as READ_DEFAULT_LIMIT,pc as READ_MAX_LINE_CHARS,oc as READ_PREFLIGHT_SIZE_BYTES,Qe as REPO_EXPLORER_AGENT_NAME,Re as REPO_EXPLORER_TOOL_NAMES,pa as Runner,Jg as SCOPED_REVIEW_OUTPUT_SCHEMA,Ad as SCOUT_AGENT_NAME,Uj as SCOUT_THEN_AUTHOR_PROMPT_LINES,Jf as SELF_KNOWLEDGE_ROUTING_RULE,zf as SYSTEM_PROMPT,hh as SYSTEM_WORKFLOW_LIMITS,bg as StableBoundaryTracker,Da as TARGET_RAW_SIZE_BYTES,Fd as TASK_ENGINE_ROLE_AGENTS,Dj as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,Nj as TRACING_ENV,Dd as WORKER_AGENT_NAME,yg as WORKFLOW_GENERATION_SYSTEM_PROMPT,Ce as _resetRuntimeForTesting,_b as acquireExclusiveFileSystemEffectLease,Fe as activate,ua as actorQueueId,fi as analyzeAutoModeCall,Uc as analyzeChangedScope,Dh as analyzePowerShellMutation,te as appendAuditEntry,xb as appendSessionLineageLabel,Qd as applyAccountingDelta,Ng as applyFindingVerification,yb as applySessionCompaction,Jc as applyToolResultGuardrail,Eb as archiveOldIslands,ei as assessAutoModeCall,Wj as authorWorkflowViaWorker,Ei as autoModeDenialShouldFallback,Qb as awaitLatestCodingMemoryReviewDrain,mi as bashSignalCollector,Oj as bootstrapTracing,Ri as boundedRevise,yi as breakerShouldFallback,Si as budgetCeiling,ih as buildApprovalSummary,Td as buildBlockedGoal,Kf as buildCapabilityContextSections,ni as buildClassifierPrompt,Ud as buildCompleteGoal,Pd as buildCreatedGoal,kg as buildFallbackRoutingDecision,fj as buildGoalRuntimeBinding,ib as buildInitializeCapabilities,qe as buildLlmReviewPrompt,Bc as buildManualToolDescription,kj as buildMcpReverseCapabilities,Rd as buildPausedGoal,Of as buildPromptMessageContent,Ef as buildPromptSnapshot,eg as buildProviderCapabilitySnapshot,lg as buildProviderPolicyHintsForDecision,fg as buildProviderPolicyPromptNotes,Tc as buildRepoIntelligenceContext,ed as buildRepoIntelligenceIndex,Qc as buildRepoOverview,Sd as buildResumedGoal,Qg as buildScopedReviewFinalPrompt,Og as buildScopedReviewPrimaryPrompt,Pg as buildScopedReviewVerificationPrompt,Vj as buildScoutThenAuthorPrompt,If as buildSelfKnowledgeRoutingRule,Cb as buildSessionTree,Mf as buildSystemPrompt,Lf as buildSystemPromptSnapshot,wf as buildToolResultBudget,xf as buildToolResultBudgetFromUsage,Xd as buildToolSearchIndex,eh as buildWorkflowCostReport,Dg as buildWorkflowGenerationSkillContext,Cg as buildWorkflowGenerationUserPrompt,Ob as canonicalMemoryProjectId,Sb as canonicalizeAgentHomePolicyPath,ai as canonicalizeAutoModePath,hi as checkAbsoluteDeny,Nf as checkIncompleteToolCalls,ng as checkPromiseSignal,yf as clampToolResultPolicyToBudget,jh as clampWorkflowLimits,ti as classify,li as classifyBashCommand,ic as classifyError,Pc as classifyFileCategory,$f as classifyResilienceError,sf as cleanupExpiredToolOutputs,Sa as cleanupIncompleteToolCalls,tf as cleanupUnreferencedToolOutputs,T as clearRuntimeModelProviders,dc as clearShellExecutionEnvironmentCache,Ii as collectAllSignals,Xh as collectBashWriteTargets,Yh as collectDeterministicBashWriteTargets,We as combineExtensionRuntimes,vj as computeInputSignature,Fj as computeRulesFingerprint,Be as configureRuntime,Xf as consumeCompactionCooldown,td as convertCapabilityReadResult,sd as convertProviderSearchResults,Db as countActiveLineageMessages,ja as countTokens,ka as createAgent,Mi as createAgentHomeShellBoundaryGuardrail,Bi as createAutoModeDenialTracker,Ni as createAutoModeToolGuardrail,ki as createBashClassifierConfig,Mj as createBashPrefixExtractor,gf as createBuiltinToolDefinition,wi as createCircuitBreaker,tj as createCodingMemoryInterventionRunner,Hg as createCodingWorkflowBackend,Vf as createCompactionAntiThrashState,me as createCtxProxy,F as createCustomProvider,th as createDefaultCodingAgent,uj as createDenialTracker,Xe as createExtensionRuntime,wg as createExternalActorTurnExecutor,Aa as createFileArtifactFromPath,la as createHandoff,za as createImageArtifactFromPath,ma as createInMemorySession,nj as createKodaXTaskRunner,vg as createLocalCodingActorControl,Ua as createMcpCapabilityId,mb as createMcpManager,$a as createMcpTransport,Mb as createProductionLearningReviewer,Bf as createPromptSection,mg as createReasoningPlan,gh as createRunGraphWriter,Sf as createRuntimeContextBudgetSnapshot,Pi as createSessionControl,sb as createSessionLineage,Ej as createToolResultTruncationGuardrail,Ba as createVideoArtifactFromPath,Qj as createWorkflowLifecycleController,Tj as createWorkflowPatternTemplateModule,nh as createWorkflowRunManager,Zi as decideWorkflowInvocation,de as dedupeExtensionPathsByEntrypoint,Ta as defaultMcpCacheDir,je as defaultPolicy,$g as deleteSavedWorkflow,Nb as deriveCodingMemoryIdentity,Rb as deriveCodingMemoryReviewIdentities,Ae as disableSelfModify,db as discoverAuthorizationServerMetadata,he as discoverDefaultExtensions,ge as discoverExtensionsInDirectory,fe as discoverExtensionsInDirectoryDetailed,Pe as discoverMarkdownAgents,eb as discoverOAuthEndpoints,cb as discoverProtectedResourceMetadata,Vg as discoverSavedWorkflows,Pb as drainCodingMemoryReviewInbox,Id as drainPendingSwaps,j as effortToLegacyReasoningMode,Aj as emitVerdict,lh as emitWorkflowAgentDigest,Qa as enqueueWithArtifacts,Se as ensureBuiltinRepoExplorerAgent,ia as estimateTokens,Rf as estimateToolSchemaTokens,gi as evaluateAutoRulesCall,gg as evaluateProviderPolicy,ee as excludeExtensionPathsByEntrypoint,_d as exec,rf as executeTool,qb as extractArtifactLedger,Lj as extractCommandPrefix,Qf as extractComparableUserMessageText,rd as extractHtmlTitle,bb as extractInsufficientScope,Rh as extractPathsFromCommand,Pf as extractPromptComparableText,ab as extractResourceMetadataUrl,Gb as extractTitleFromMessages,Fi as fileSignalCollector,vd as finalizeRetrievalResult,Le as findByVersion,Eh as findGitSubcommandIndex,zb as findPreviousUserEntryId,wh as flattenArgv,xh as flattenRedirections,Bb as forkSessionLineage,Hf as formatAgentsForPrompt,pj as formatParallelDispatchResult,qc as formatSize,Oh as generateSavePattern,Fb as generateSessionId,Fg as generateWorkflow,Gg as generateWorkflowFromOptions,Ze as getActiveExtensionRuntime,ra as getAgentConfigHome,sa as getAgentConfigPath,jf as getAllRegisteredTools,ta as getAppDataDir,W as getAvailableProviderNames,Zh as getBashOutsideProjectWriteRisk,ff as getBuiltinRegisteredToolDefinition,ef as getBuiltinToolDefinition,Tg as getBuiltinWorkflow,N as getCustomModelCapabilities,H as getCustomProvider,K as getCustomProviderList,M as getCustomProviderModelDescriptors,L as getCustomProviderModels,J as getCustomProviderNames,be as getDefaultExtensionDirectory,sg as getDefaultLspService,oh as getDefaultWorkflowRunManager,yj as getDenialContext,Kh as getDirectShellBypassBlockReason,jd as getImpactEstimate,Ff as getKodaxGlobalDir,Ya as getMcpCachePaths,C as getModelCapabilities,Oa as getModelInputCapabilities,gd as getModuleContext,Vh as getPlanModeAllowedWritablePaths,_h as getPlanModeBlockReason,id as getProcessContext,t as getProvider,x as getProviderConfiguredCapabilityProfile,w as getProviderConfiguredReasoningCapability,y as getProviderList,v as getProviderModel,B as getProviderModelDescriptors,z as getProviderModels,cf as getRegisteredToolDefinition,fd as getRepoIntelligenceIndex,Rc as getRepoOverview,kd as getRepoRoutingSignals,of as getRequiredToolParams,Q as getRuntimeModelProvider,S as getRuntimeModelProviderNames,tb as getSessionLineagePath,ub as getSessionMessagesFromLineage,hd as getSymbolContext,af as getTool,bf as getToolDefinition,df as getToolRegistrations,Ic as getToolResultPolicy,Sj as getWorkflowPatternTemplate,Fh as gitSignatureInspectionMayExecute,Md as goalTokenDelta,Yi as hasExplicitNaturalLanguageWorkflowIntent,Hd as hasPendingSwap,xa as inferImageMediaType,$h as inferPermissionMode,jg as inferTaskType,ya as inferVideoMediaType,Gc as inspectEditFailure,dd as inspectRepoIntelligenceRuntime,Lb as installProductionLearningReviewer,Xb as isAgentHomeHardMutationTarget,Yb as isAgentHomeHardRemovalTarget,Ph as isAlwaysConfirmPath,Ub as isAutoReadableAgentHomePath,ci as isAutoReadableKodaxPath,Tb as isAutoWritableAgentHomePath,di as isAutoWritableKodaxPath,Jh as isBashReadCommand,Th as isBashReadCommandAutoAllowed,Lh as isBashWriteCommand,Sh as isCommandOnProtectedPath,bi as isCredentialBearingKodaxPath,I as isCustomProviderName,xj as isDeniedRecently,Ih as isHelpCommand,V as isKnownProvider,uh as isNullDevice,oj as isParallelDispatchDirective,Uh as isPathInsideProject,Wh as isPlanModeAllowedPath,Ch as isPowerShellMutationCommand,Wb as isProtectedAgentHomeMutationTarget,Vb as isProtectedAgentHomeReadTarget,Zb as isProtectedAgentHomeRemovalTarget,u as isProviderConfigured,A as isProviderName,R as isRuntimeModelProviderName,ag as isSessionRecoveryCandidateError,Hh as isShellReadOnlyArgv,ae as isSupportedExtensionModulePath,Nh as isToolCallAllowed,lf as isToolFileMutation,nf as isToolMutation,mf as isToolNetworkRead,kf as isToolPlanModeAllowed,Vd as isValidTokenBudget,og as languageIdForPath,Me as listAll,Z as listAllModelCapabilities,Ie as listArtifacts,D as listBuiltinModelCapabilities,hf as listBuiltinToolDefinitions,Ug as listBuiltinWorkflows,Jd as listCodingDispatchableAgents,Ke as listConstructed,O as listCustomProviderModelCapabilities,qf as listToolDefinitions,pf as listTools,Rj as listWorkflowPatternTemplates,Gf as loadAgentsFiles,Ne as loadAgentsFromMarkdown,Jj as loadAutoRules,bh as loadGeneratedWorkflowFromRun,ne as loadHandler,Oe as loadMarkdownAgentScope,Yg as loadSavedWorkflow,Xg as loadSavedWorkflowCapsule,hb as loadValidToken,Ld as makeDisabledGoalToolsContext,i as mapLegacyReasoningModeToEffortIntent,vf as maybeRunReferenceAwareToolOutputGc,uf as maybeRunToolOutputGc,jj as mcpRootsFromWorkspace,rb as mergeArtifactLedger,Mg as mergeScopedReviewResults,$b as normalizeKodaXAgentMode,Va as normalizeMcpCapabilityId,Ea as normalizePastedImage,h as normalizeReasoningEffortValue,Lg as normalizeScopedReviewResult,ac as normalizeShellExecutionContract,Wg as normalizeWorkflowModule,Cf as orderPromptSections,Ig as parallelInvestigation,Mh as parseAllowedToolPattern,Ij as parseAutoRules,vh as parseBashCommand,oi as parseClassifierOutput,Fc as parseEditToolError,Gh as parseGitGrepShortOption,re as parseLlmReviewVerdict,Wa as parseMcpCapabilityId,Gi as parseModelSpec,k as parseReasoningEffortEnv,cc as parseSandboxEnvironmentPass,e as parseTimeoutSecEnvMs,Zd as parseToolSearchQuery,Eg as parseWorkflowGeneration,gb as performOAuthLogin,Ja as persistImageAsBlock,vc as persistToolOutput,Uf as planToolExposure,dh as preflightWorkflowCapsule,ld as prewarmRepoIntelligenceCaches,xg as providerResilienceConfigFromTimeouts,Ka as prunePasteTmpDir,Ga as readAndNormalizeClipboardImage,Je as readArtifact,ue as readAuditEntries,we as readBudget,Fa as readClipboardImage,ze as readDisableState,Ki as readSpeculativeWindowFromEnv,Gj as readTrustState,ig as reasoningModeToDepth,cg as reconstructMessagesWithToolGuard,Di as recordAutoModeAllow,Ci as recordAutoModeBlock,$i as recordBlockerAttempt,xi as recordBreakerError,Yf as recordCompactionSavings,wj as recordDenial,Wi as registerCodingInvariants,hj as registerConfiguredMcpCapabilityProvider,G as registerCustomProviders,P as registerModelProvider,fb as registerOAuthClient,lj as registerOfficialSandboxExtension,oa as registerPresetDispatcher,$e as registerTool,Ge as rehydrateActiveArtifacts,xe as remainingSelfModifyBudget,_g as renameSavedWorkflow,Vc as renderChangedScope,ad as renderImpactEstimate,Zc as renderModuleContext,$c as renderProcessContext,Df as renderPromptSections,Sc as renderRepoOverview,ud as renderRetrievalResult,_c as renderSymbolContext,ij as replaceConfiguredMcpCapabilityProvider,ah as replaceSavedWorkflow,pg as reportLspDiagnostics,aj as resetBlockerCounter,ye as resetBudget,Hi as resolveClassifierModel,Kd as resolveCodingDispatchableAgent,Gd as resolveConstructedAgent,ce as resolveExtensionEntrypoint,Ac as resolveKodaXManual,Y as resolveModelCapabilities,U as resolveProvider,X as resolveProviderModelDescriptors,l as resolveReasoningEffort,m as resolveReasoningEffortForModelSwitch,hg as resolveReasoningMode,cd as resolveRepoIntelligenceMode,bd as resolveRepoIntelligenceRuntimeConfig,_f as resolveResilienceConfig,vb as resolveSessionLineageTarget,Wd as resolveToolBridgeTarget,Ti as resolveToolCapability,uc as resolveToolOutputDir,_ as resolveWireEffort,Ag as resolveWorkflowGenerationTimeoutMs,Pj as resolveWorkflowIdentity,He as revoke,Ab as rewindSessionLineage,Te as rollbackSelfModify,oe as runAstRules,Oi as runKodaX,se as runLlmReview,gj as runManagedTask,mj as runOrchestration,mh as runWorkflowFromOptions,kh as runWorkflowModule,fh as safeWorkflowArtifactName,Zg as saveGeneratedWorkflow,ch as saveGeneratedWorkflowFromRun,Rg as scopedReview,Xa as searchMcpCatalog,Yd as searchToolIndex,Ye as setActiveExtensionRuntime,qa as setAgentConfigHome,wb as setSessionLineageActiveEntry,bc as shellExecutionContractFingerprint,Od as shouldFlipBudgetLimited,Wf as shouldSkipLlmCompaction,tg as shutdownDefaultLspService,Li as speculativeRace,De as stage,Qi as startKodaX,ph as startManagedWorkflow,pi as stripAssistantText,qd as stripHtmlToText,Ee as testArtifact,d as timeoutSecToMs,Qh as tokenizeRawCommandStages,Oc as toolAskUserQuestion,Kc as toolBash,Yc as toolChangedDiff,Xc as toolChangedScope,yd as toolCodeSearch,Ec as toolEdit,Lc as toolGlob,Mc as toolGrep,pd as toolImpactEstimate,Hc as toolInsertAfterAnchor,md as toolModuleContext,Ui as toolPermission,od as toolProcessContext,wc as toolRead,Wc as toolRepoOverview,zd as toolSemanticLookup,nd as toolSymbolContext,Nc as toolUndo,xd as toolWebFetch,wd as toolWebSearch,Dc as toolWrite,rc as truncateHead,tc as truncateLine,sc as truncateTail,Hj as trustProjectRules,Nd as turnWallTimeDelta,Ra as validateAndFixToolHistory,E as validateCustomProviderConfig,Bg as validateGeneratedWorkflowSource,Pa as validateInputArtifactsForModel,qj as validateSubtaskIndependence,pe as validateToolSchemaForProvider,ej as verifyGoalCompletion,$d as webhook,cj as withGoalBeforeNextTurn,dj as withGoalStopHook,Cc as withManualToolBranding,Ed as workerAgent,_i as workflowStartOutcomeConsumesTurn,Xj as writeReviewPackets};
|
|
2
|
+
import{$ as Lj,A as kj,B as lj,C as mj,D as nj,E as oj,F as pj,G as qj,H as rj,I as sj,J as tj,K as uj,L as vj,M as wj,N as xj,O as yj,P as zj,Q as Aj,R as Bj,S as Cj,T as Dj,U as Ej,V as Fj,W as Gj,X as Hj,Y as Ij,Z as Jj,_ as Kj,a as ec,aa as Mj,b as fc,ba as Nj,c as gc,ca as Oj,d as Pi,da as Pj,e as Qi,ea as Qj,f as Ri,fa as Rj,g as Si,ga as Sj,h as Ti,ha as Tj,i as Ui,ia as Uj,j as Vi,ja as Vj,k as Wi,ka as Wj,l as Xi,la as Xj,m as Yi,n as Zi,o as _i,p as $i,q as aj,r as bj,s as cj,t as dj,u as ej,v as fj,w as gj,x as hj,y as ij,z as jj}from"./chunk-XA4ENCAH.js";import{$ as bg,$b as qi,A as Lf,Ab as Rh,B as Mf,Bb as Sh,C as Nf,Cb as Th,D as Of,Db as Uh,Eb as Vh,Fb as Wh,Gb as Xh,Hb as Yh,I as Pf,Ib as Zh,J as Qf,Jb as _h,Kb as $h,Lb as ai,Mb as bi,N as Rf,Nb as ci,O as Sf,Ob as di,P as Tf,Pb as ei,Q as Uf,Qb as fi,R as Vf,Rb as gi,S as Wf,Sb as hi,T as Xf,Tb as ii,U as Yf,Ua as qh,Ub as ji,Va as rh,Vb as ki,Wb as li,X as Zf,Xb as mi,Y as _f,Yb as ni,Z as $f,Zb as oi,_ as ag,_b as pi,aa as cg,ac as ri,b as Hb,ba as dg,bb as sh,bc as si,c as Ib,cb as th,cc as ti,d as Jb,db as uh,dc as ui,e as Kb,eb as vh,ec as vi,f as Lb,fb as wh,fc as wi,g as Mb,ga as eg,gb as xh,gc as xi,ha as fg,hb as yh,hc as yi,i as Nb,ia as gg,ib as zh,ic as zi,j as Ob,ja as hg,jb as Ah,jc as Ai,ka as ig,kb as Bh,kc as Bi,l as Pb,lb as Ch,lc as Ci,m as Qb,mb as Dh,mc as Di,n as Rb,nb as Eh,nc as Ei,o as $b,oa as jg,ob as Fh,oc as Fi,p as hc,pa as kg,pb as Gh,pc as Gi,q as ic,qa as lg,qb as Hh,qc as Hi,r as zf,ra as mg,rb as Ih,rc as Ii,s as Af,sb as Jh,sc as Ji,t as Bf,tb as Kh,tc as Ki,u as Cf,ua as ng,ub as Lh,uc as Li,v as Df,vb as Mh,vc as Mi,w as Ef,wb as Nh,wc as Ni,x as If,xb as Oh,y as Jf,yb as Ph,yc as Oi,z as Kf,zb as Qh}from"./chunk-Q6UAGROD.js";import{a as yg,b as zg,c as Ag,d as Bg,e as Cg,f as Dg,g as Eg,h as Fg,i as Gg,j as ph}from"./chunk-UKCDCVMD.js";import{a as xg}from"./chunk-HTVLCHWH.js";import{A as fh,B as gh,C as hh,D as ih,E as jh,F as kh,G as lh,H as mh,I as nh,J as oh,a as Hg,b as Ig,c as Jg,d as Kg,e as Lg,f as Mg,g as Ng,h as Og,i as Pg,j as Qg,k as Rg,l as Sg,m as Tg,n as Ug,o as Vg,p as Wg,q as Xg,r as Yg,s as Zg,t as _g,u as $g,v as ah,w as bh,x as ch,y as dh,z as eh}from"./chunk-XUKLF26Q.js";import{$ as yc,$a as ed,$c as Ue,$d as pg,Aa as Jc,Ab as Ed,Ac as te,Ad as pf,Bb as Fd,Bc as ue,Bd as qf,Ca as Kc,Cb as Gd,Cc as ve,Da as Lc,Dc as we,Dd as rf,E as lc,Ea as Mc,Ec as xe,Ed as sf,F as mc,Fa as Nc,Fc as ye,Fd as tf,G as nc,Ga as Oc,Gb as Hd,Gc as ze,Gd as uf,H as oc,Hb as Id,Hc as Ae,Hd as vf,I as pc,Ia as Pc,Ib as Jd,Ic as Be,Id as wf,J as qc,Ja as Qc,Jb as Kd,Jc as Ce,Jd as xf,K as rc,Ka as Rc,Kc as De,Kd as yf,L as sc,La as Sc,Lc as Ee,Ld as Ff,M as tc,Ma as Tc,Mc as Fe,Md as Gf,N as uc,Na as Uc,Nb as Ld,Nc as Ge,Nd as Hf,O as vc,Oa as Vc,Ob as Md,Oc as He,P as wc,Pa as Wc,Pb as Nd,Pc as Ie,Qa as Xc,Qb as Od,Qc as Je,Ra as Yc,Rb as Pd,Rc as Ke,Sa as Zc,Sb as Qd,Sc as Le,Ta as _c,Tb as Rd,Tc as Me,Ua as $c,Ub as Sd,Uc as Ne,Va as ad,Vb as Td,Vc as Oe,Wa as bd,Wb as Ud,Wc as Pe,Xa as cd,Xb as Vd,Xc as Qe,Ya as dd,Yc as Re,Zc as Se,_ as xc,_b as Wd,_c as Te,_d as og,aa as zc,ab as fd,ad as Ve,ae as qg,ba as Ac,bb as gd,bd as We,be as rg,c as Sb,ca as Bc,cb as hd,cc as Xd,cd as Xe,ce as sg,d as Tb,da as Cc,db as id,dc as Yd,dd as Ye,de as tg,e as Ub,eb as jd,ec as Zd,ed as Ze,f as Vb,fb as kd,fc as _d,g as Wb,gc as $d,h as Xb,hb as ld,hc as ae,i as Yb,ib as md,ic as be,j as Zb,jb as nd,jc as ce,k as _b,kb as od,kc as de,kd as _e,lb as pd,lc as ee,ld as $e,le as ug,m as ac,mb as qd,mc as fe,md as af,me as vg,n as bc,nb as rd,nc as ge,nd as bf,ne as wg,ob as sd,oc as he,od as cf,p as cc,pa as Dc,pb as td,pc as ie,pd as df,qa as Ec,qb as ud,qc as je,qd as ef,r as dc,ra as Fc,rb as vd,rc as ke,rd as ff,sa as Gc,sb as wd,sc as le,sd as gf,ta as Hc,tb as xd,tc as me,td as hf,ub as yd,uc as ne,ud as jf,vb as zd,vc as oe,vd as kf,wb as Ad,wc as pe,wd as lf,xb as Bd,xc as qe,xd as mf,y as jc,ya as Ic,yb as Cd,yc as re,yd as nf,z as kc,zb as Dd,zc as se,zd as of}from"./chunk-U6HNMLNN.js";import"./chunk-GVGLYVG4.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-TRNAWSXP.js";import{Aa as pa,Ae as ab,Af as wb,Be as bb,Bf as xb,Ce as cb,Cf as yb,De as db,Ee as eb,Fe as fb,Ff as zb,Ge as gb,Gf as Ab,Ha as qa,He as hb,Hf as Bb,Ia as ra,Ie as ib,If as Cb,Ja as sa,Jb as Ra,Je as jb,Jf as Db,Kb as Sa,Ke as kb,Kf as Eb,Le as lb,Ma as ta,Me as mb,Oe as nb,Pe as ob,Qe as pb,Qf as Fb,Rf as Gb,Te as qb,Ue 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,k as ia,l as ja,qe as Ta,re as Ua,se as Va,te as Wa,ue as Xa,v as ka,ve as Ya,w as la,we as Za,wf as sb,x as ma,xa as oa,xe as _a,xf as tb,y as na,yf as ub,ze as $a,zf as vb}from"./chunk-G5FGIRDJ.js";import{A as Fa,B as Ga,C as Ha,D as Ia,E as Ja,F as Ka,G as La,H as Ma,I as Na,J as Oa,K as Pa,L as Qa,j as ua,q as va,r as wa,s as xa,t as ya,u as za,v as Aa,w as Ba,x as Ca,y as Da,z as Ea}from"./chunk-UH5WNJXF.js";import"./chunk-ONUPGMER.js";export{Tf as ALWAYS_RESIDENT_TOOL_NAMES,zi as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,Ai as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,Kj as BASH_POLICY_SPEC,Bh as BASH_SAFE_READ_COMMANDS,Ah as BASH_WRITE_COMMANDS,bj as BLOCKER_REQUIRED_CONSECUTIVE_TURNS,ui as BREAKER_ERROR_THRESHOLD,vi as BREAKER_WINDOW_MS,Sg as BUILTIN_WORKFLOWS,kc as CANCELLED_TOOL_RESULT_MESSAGE,jc as CANCELLED_TOOL_RESULT_PREFIX,si as CLASSIFIER_MAX_OUTPUT_TOKENS,Cj as CODING_AGENT_MARKER,Vi as CODING_INVARIANTS,qh as CODING_SUMMARY_PROMPT,rh as CODING_UPDATE_SUMMARY_PROMPT,ke as CapabilityDeniedError,Xi as Client,ug as CodingActorSession,Ve as CombinedExtensionRuntime,le as ConstructionManifestError,ri as DEFAULT_CLASSIFIER_RETRY_TIMEOUT_MS,qi as DEFAULT_CLASSIFIER_TIMEOUT_MS,sh as DEFAULT_CODING_AGENT_NAME,ji as DEFAULT_DANGEROUS_PATTERNS,ie as DEFAULT_HANDLER_TIMEOUT_MS,Zf as DEFAULT_RESILIENCE_CONFIG,ii as DEFAULT_SAFE_PATTERNS,ve as DEFAULT_SELF_MODIFY_BUDGET,Ji as DEFAULT_SPECULATIVE_WINDOW_MS,mc as DEFAULT_TOOL_OUTPUT_MAX_BYTES,lc as DEFAULT_TOOL_OUTPUT_MAX_LINES,zg as DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS,na as DefaultSummaryCompaction,zj as EMIT_VERDICT_TOOL_NAME,hc as ErrorCategory,yh as FILE_MODIFICATION_TOOLS,Kg as FINDING_VERIFICATION_OUTPUT_SCHEMA,Cd 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,_e as KODAX_TOOLS,yc as KODAX_UNDERLYING_CAPABILITY_TOPICS,Ma as KODAX_VIDEO_MEDIA_TYPES,o as KodaXAnthropicCompatProvider,n as KodaXBaseProvider,Xi as KodaXClient,a as KodaXError,Ue as KodaXExtensionRuntime,va as KodaXMediaError,p as KodaXOpenAICompatProvider,b as KodaXProviderError,c as KodaXRateLimitError,fc as KodaXSessionError,gc as KodaXTerminalError,ec 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,qg as LSP_SERVERS,pb as LineageCompaction,ob as LineageExtension,rg as LspService,zc as MANUAL_REGISTRY,xc as MANUAL_TOPIC_IDS,Ca as MAX_DIMENSION,rj as MEMORY_INTERVENTION_SELECTOR_PROMPT,sj as MEMORY_INTERVENTION_SELECTOR_SHA256,zh as MODIFICATION_TOOLS,_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,Bd as PLANNER_AGENT_NAME,ha as PROMISE_PATTERN,Af as PROMPT_SECTION_REGISTRY,Bj as PROTOCOL_EMITTER_TOOLS,dg as ProviderRecoveryCoordinator,nc as READ_DEFAULT_LIMIT,pc as READ_MAX_LINE_CHARS,oc as READ_PREFLIGHT_SIZE_BYTES,Qe as REPO_EXPLORER_AGENT_NAME,Re as REPO_EXPLORER_TOOL_NAMES,pa as Runner,Jg as SCOPED_REVIEW_OUTPUT_SCHEMA,Ad as SCOUT_AGENT_NAME,Uj as SCOUT_THEN_AUTHOR_PROMPT_LINES,Jf as SELF_KNOWLEDGE_ROUTING_RULE,zf as SYSTEM_PROMPT,hh as SYSTEM_WORKFLOW_LIMITS,bg as StableBoundaryTracker,Da as TARGET_RAW_SIZE_BYTES,Fd as TASK_ENGINE_ROLE_AGENTS,Dj as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,Nj as TRACING_ENV,Dd as WORKER_AGENT_NAME,yg as WORKFLOW_GENERATION_SYSTEM_PROMPT,Ce as _resetRuntimeForTesting,_b as acquireExclusiveFileSystemEffectLease,Fe as activate,ua as actorQueueId,fi as analyzeAutoModeCall,Uc as analyzeChangedScope,Dh as analyzePowerShellMutation,te as appendAuditEntry,xb as appendSessionLineageLabel,Qd as applyAccountingDelta,Ng as applyFindingVerification,yb as applySessionCompaction,Jc as applyToolResultGuardrail,Eb as archiveOldIslands,ei as assessAutoModeCall,Wj as authorWorkflowViaWorker,Ei as autoModeDenialShouldFallback,Qb as awaitLatestCodingMemoryReviewDrain,mi as bashSignalCollector,Oj as bootstrapTracing,Ri as boundedRevise,yi as breakerShouldFallback,Si as budgetCeiling,ih as buildApprovalSummary,Td as buildBlockedGoal,Kf as buildCapabilityContextSections,ni as buildClassifierPrompt,Ud as buildCompleteGoal,Pd as buildCreatedGoal,kg as buildFallbackRoutingDecision,fj as buildGoalRuntimeBinding,ib as buildInitializeCapabilities,qe as buildLlmReviewPrompt,Bc as buildManualToolDescription,kj as buildMcpReverseCapabilities,Rd as buildPausedGoal,Of as buildPromptMessageContent,Ef as buildPromptSnapshot,eg as buildProviderCapabilitySnapshot,lg as buildProviderPolicyHintsForDecision,fg as buildProviderPolicyPromptNotes,Tc as buildRepoIntelligenceContext,ed as buildRepoIntelligenceIndex,Qc as buildRepoOverview,Sd as buildResumedGoal,Qg as buildScopedReviewFinalPrompt,Og as buildScopedReviewPrimaryPrompt,Pg as buildScopedReviewVerificationPrompt,Vj as buildScoutThenAuthorPrompt,If as buildSelfKnowledgeRoutingRule,Cb as buildSessionTree,Mf as buildSystemPrompt,Lf as buildSystemPromptSnapshot,wf as buildToolResultBudget,xf as buildToolResultBudgetFromUsage,Xd as buildToolSearchIndex,eh as buildWorkflowCostReport,Dg as buildWorkflowGenerationSkillContext,Cg as buildWorkflowGenerationUserPrompt,Ob as canonicalMemoryProjectId,Sb as canonicalizeAgentHomePolicyPath,ai as canonicalizeAutoModePath,hi as checkAbsoluteDeny,Nf as checkIncompleteToolCalls,ng as checkPromiseSignal,yf as clampToolResultPolicyToBudget,jh as clampWorkflowLimits,ti as classify,li as classifyBashCommand,ic as classifyError,Pc as classifyFileCategory,$f as classifyResilienceError,sf as cleanupExpiredToolOutputs,Sa as cleanupIncompleteToolCalls,tf as cleanupUnreferencedToolOutputs,T as clearRuntimeModelProviders,dc as clearShellExecutionEnvironmentCache,Ii as collectAllSignals,Xh as collectBashWriteTargets,Yh as collectDeterministicBashWriteTargets,We as combineExtensionRuntimes,vj as computeInputSignature,Fj as computeRulesFingerprint,Be as configureRuntime,Xf as consumeCompactionCooldown,td as convertCapabilityReadResult,sd as convertProviderSearchResults,Db as countActiveLineageMessages,ja as countTokens,ka as createAgent,Mi as createAgentHomeShellBoundaryGuardrail,Bi as createAutoModeDenialTracker,Ni as createAutoModeToolGuardrail,ki as createBashClassifierConfig,Mj as createBashPrefixExtractor,gf as createBuiltinToolDefinition,wi as createCircuitBreaker,tj as createCodingMemoryInterventionRunner,Hg as createCodingWorkflowBackend,Vf as createCompactionAntiThrashState,me as createCtxProxy,F as createCustomProvider,th as createDefaultCodingAgent,uj as createDenialTracker,Xe as createExtensionRuntime,wg as createExternalActorTurnExecutor,Aa as createFileArtifactFromPath,la as createHandoff,za as createImageArtifactFromPath,ma as createInMemorySession,nj as createKodaXTaskRunner,vg as createLocalCodingActorControl,Ua as createMcpCapabilityId,mb as createMcpManager,$a as createMcpTransport,Mb as createProductionLearningReviewer,Bf as createPromptSection,mg as createReasoningPlan,gh as createRunGraphWriter,Sf as createRuntimeContextBudgetSnapshot,Pi as createSessionControl,sb as createSessionLineage,Ej as createToolResultTruncationGuardrail,Ba as createVideoArtifactFromPath,Qj as createWorkflowLifecycleController,Tj as createWorkflowPatternTemplateModule,nh as createWorkflowRunManager,Zi as decideWorkflowInvocation,de as dedupeExtensionPathsByEntrypoint,Ta as defaultMcpCacheDir,je as defaultPolicy,$g as deleteSavedWorkflow,Nb as deriveCodingMemoryIdentity,Rb as deriveCodingMemoryReviewIdentities,Ae as disableSelfModify,db as discoverAuthorizationServerMetadata,he as discoverDefaultExtensions,ge as discoverExtensionsInDirectory,fe as discoverExtensionsInDirectoryDetailed,Pe as discoverMarkdownAgents,eb as discoverOAuthEndpoints,cb as discoverProtectedResourceMetadata,Vg as discoverSavedWorkflows,Pb as drainCodingMemoryReviewInbox,Id as drainPendingSwaps,j as effortToLegacyReasoningMode,Aj as emitVerdict,lh as emitWorkflowAgentDigest,Qa as enqueueWithArtifacts,Se as ensureBuiltinRepoExplorerAgent,ia as estimateTokens,Rf as estimateToolSchemaTokens,gi as evaluateAutoRulesCall,gg as evaluateProviderPolicy,ee as excludeExtensionPathsByEntrypoint,_d as exec,rf as executeTool,qb as extractArtifactLedger,Lj as extractCommandPrefix,Qf as extractComparableUserMessageText,rd as extractHtmlTitle,bb as extractInsufficientScope,Rh as extractPathsFromCommand,Pf as extractPromptComparableText,ab as extractResourceMetadataUrl,Gb as extractTitleFromMessages,Fi as fileSignalCollector,vd as finalizeRetrievalResult,Le as findByVersion,Eh as findGitSubcommandIndex,zb as findPreviousUserEntryId,wh as flattenArgv,xh as flattenRedirections,Bb as forkSessionLineage,Hf as formatAgentsForPrompt,pj as formatParallelDispatchResult,qc as formatSize,Oh as generateSavePattern,Fb as generateSessionId,Fg as generateWorkflow,Gg as generateWorkflowFromOptions,Ze as getActiveExtensionRuntime,ra as getAgentConfigHome,sa as getAgentConfigPath,jf as getAllRegisteredTools,ta as getAppDataDir,W as getAvailableProviderNames,Zh as getBashOutsideProjectWriteRisk,ff as getBuiltinRegisteredToolDefinition,ef as getBuiltinToolDefinition,Tg as getBuiltinWorkflow,N as getCustomModelCapabilities,H as getCustomProvider,K as getCustomProviderList,M as getCustomProviderModelDescriptors,L as getCustomProviderModels,J as getCustomProviderNames,be as getDefaultExtensionDirectory,sg as getDefaultLspService,oh as getDefaultWorkflowRunManager,yj as getDenialContext,Kh as getDirectShellBypassBlockReason,jd as getImpactEstimate,Ff as getKodaxGlobalDir,Ya as getMcpCachePaths,C as getModelCapabilities,Oa as getModelInputCapabilities,gd as getModuleContext,Vh as getPlanModeAllowedWritablePaths,_h as getPlanModeBlockReason,id as getProcessContext,t as getProvider,x as getProviderConfiguredCapabilityProfile,w as getProviderConfiguredReasoningCapability,y as getProviderList,v as getProviderModel,B as getProviderModelDescriptors,z as getProviderModels,cf as getRegisteredToolDefinition,fd as getRepoIntelligenceIndex,Rc as getRepoOverview,kd as getRepoRoutingSignals,of as getRequiredToolParams,Q as getRuntimeModelProvider,S as getRuntimeModelProviderNames,tb as getSessionLineagePath,ub as getSessionMessagesFromLineage,hd as getSymbolContext,af as getTool,bf as getToolDefinition,df as getToolRegistrations,Ic as getToolResultPolicy,Sj as getWorkflowPatternTemplate,Fh as gitSignatureInspectionMayExecute,Md as goalTokenDelta,Yi as hasExplicitNaturalLanguageWorkflowIntent,Hd as hasPendingSwap,xa as inferImageMediaType,$h as inferPermissionMode,jg as inferTaskType,ya as inferVideoMediaType,Gc as inspectEditFailure,dd as inspectRepoIntelligenceRuntime,Lb as installProductionLearningReviewer,Xb as isAgentHomeHardMutationTarget,Yb as isAgentHomeHardRemovalTarget,Ph as isAlwaysConfirmPath,Ub as isAutoReadableAgentHomePath,ci as isAutoReadableKodaxPath,Tb as isAutoWritableAgentHomePath,di as isAutoWritableKodaxPath,Jh as isBashReadCommand,Th as isBashReadCommandAutoAllowed,Lh as isBashWriteCommand,Sh as isCommandOnProtectedPath,bi as isCredentialBearingKodaxPath,I as isCustomProviderName,xj as isDeniedRecently,Ih as isHelpCommand,V as isKnownProvider,uh as isNullDevice,oj as isParallelDispatchDirective,Uh as isPathInsideProject,Wh as isPlanModeAllowedPath,Ch as isPowerShellMutationCommand,Wb as isProtectedAgentHomeMutationTarget,Vb as isProtectedAgentHomeReadTarget,Zb as isProtectedAgentHomeRemovalTarget,u as isProviderConfigured,A as isProviderName,R as isRuntimeModelProviderName,ag as isSessionRecoveryCandidateError,Hh as isShellReadOnlyArgv,ae as isSupportedExtensionModulePath,Nh as isToolCallAllowed,lf as isToolFileMutation,nf as isToolMutation,mf as isToolNetworkRead,kf as isToolPlanModeAllowed,Vd as isValidTokenBudget,og as languageIdForPath,Me as listAll,Z as listAllModelCapabilities,Ie as listArtifacts,D as listBuiltinModelCapabilities,hf as listBuiltinToolDefinitions,Ug as listBuiltinWorkflows,Jd as listCodingDispatchableAgents,Ke as listConstructed,O as listCustomProviderModelCapabilities,qf as listToolDefinitions,pf as listTools,Rj as listWorkflowPatternTemplates,Gf as loadAgentsFiles,Ne as loadAgentsFromMarkdown,Jj as loadAutoRules,bh as loadGeneratedWorkflowFromRun,ne as loadHandler,Oe as loadMarkdownAgentScope,Yg as loadSavedWorkflow,Xg as loadSavedWorkflowCapsule,hb as loadValidToken,Ld as makeDisabledGoalToolsContext,i as mapLegacyReasoningModeToEffortIntent,vf as maybeRunReferenceAwareToolOutputGc,uf as maybeRunToolOutputGc,jj as mcpRootsFromWorkspace,rb as mergeArtifactLedger,Mg as mergeScopedReviewResults,$b as normalizeKodaXAgentMode,Va as normalizeMcpCapabilityId,Ea as normalizePastedImage,h as normalizeReasoningEffortValue,Lg as normalizeScopedReviewResult,ac as normalizeShellExecutionContract,Wg as normalizeWorkflowModule,Cf as orderPromptSections,Ig as parallelInvestigation,Mh as parseAllowedToolPattern,Ij as parseAutoRules,vh as parseBashCommand,oi as parseClassifierOutput,Fc as parseEditToolError,Gh as parseGitGrepShortOption,re as parseLlmReviewVerdict,Wa as parseMcpCapabilityId,Gi as parseModelSpec,k as parseReasoningEffortEnv,cc as parseSandboxEnvironmentPass,e as parseTimeoutSecEnvMs,Zd as parseToolSearchQuery,Eg as parseWorkflowGeneration,gb as performOAuthLogin,Ja as persistImageAsBlock,vc as persistToolOutput,Uf as planToolExposure,dh as preflightWorkflowCapsule,ld as prewarmRepoIntelligenceCaches,xg as providerResilienceConfigFromTimeouts,Ka as prunePasteTmpDir,Ga as readAndNormalizeClipboardImage,Je as readArtifact,ue as readAuditEntries,we as readBudget,Fa as readClipboardImage,ze as readDisableState,Ki as readSpeculativeWindowFromEnv,Gj as readTrustState,ig as reasoningModeToDepth,cg as reconstructMessagesWithToolGuard,Di as recordAutoModeAllow,Ci as recordAutoModeBlock,$i as recordBlockerAttempt,xi as recordBreakerError,Yf as recordCompactionSavings,wj as recordDenial,Wi as registerCodingInvariants,hj as registerConfiguredMcpCapabilityProvider,G as registerCustomProviders,P as registerModelProvider,fb as registerOAuthClient,lj as registerOfficialSandboxExtension,oa as registerPresetDispatcher,$e as registerTool,Ge as rehydrateActiveArtifacts,xe as remainingSelfModifyBudget,_g as renameSavedWorkflow,Vc as renderChangedScope,ad as renderImpactEstimate,Zc as renderModuleContext,$c as renderProcessContext,Df as renderPromptSections,Sc as renderRepoOverview,ud as renderRetrievalResult,_c as renderSymbolContext,ij as replaceConfiguredMcpCapabilityProvider,ah as replaceSavedWorkflow,pg as reportLspDiagnostics,aj as resetBlockerCounter,ye as resetBudget,Hi as resolveClassifierModel,Kd as resolveCodingDispatchableAgent,Gd as resolveConstructedAgent,ce as resolveExtensionEntrypoint,Ac as resolveKodaXManual,Y as resolveModelCapabilities,U as resolveProvider,X as resolveProviderModelDescriptors,l as resolveReasoningEffort,m as resolveReasoningEffortForModelSwitch,hg as resolveReasoningMode,cd as resolveRepoIntelligenceMode,bd as resolveRepoIntelligenceRuntimeConfig,_f as resolveResilienceConfig,vb as resolveSessionLineageTarget,Wd as resolveToolBridgeTarget,Ti as resolveToolCapability,uc as resolveToolOutputDir,_ as resolveWireEffort,Ag as resolveWorkflowGenerationTimeoutMs,Pj as resolveWorkflowIdentity,He as revoke,Ab as rewindSessionLineage,Te as rollbackSelfModify,oe as runAstRules,Oi as runKodaX,se as runLlmReview,gj as runManagedTask,mj as runOrchestration,mh as runWorkflowFromOptions,kh as runWorkflowModule,fh as safeWorkflowArtifactName,Zg as saveGeneratedWorkflow,ch as saveGeneratedWorkflowFromRun,Rg as scopedReview,Xa as searchMcpCatalog,Yd as searchToolIndex,Ye as setActiveExtensionRuntime,qa as setAgentConfigHome,wb as setSessionLineageActiveEntry,bc as shellExecutionContractFingerprint,Od as shouldFlipBudgetLimited,Wf as shouldSkipLlmCompaction,tg as shutdownDefaultLspService,Li as speculativeRace,De as stage,Qi as startKodaX,ph as startManagedWorkflow,pi as stripAssistantText,qd as stripHtmlToText,Ee as testArtifact,d as timeoutSecToMs,Qh as tokenizeRawCommandStages,Oc as toolAskUserQuestion,Kc as toolBash,Yc as toolChangedDiff,Xc as toolChangedScope,yd as toolCodeSearch,Ec as toolEdit,Lc as toolGlob,Mc as toolGrep,pd as toolImpactEstimate,Hc as toolInsertAfterAnchor,md as toolModuleContext,Ui as toolPermission,od as toolProcessContext,wc as toolRead,Wc as toolRepoOverview,zd as toolSemanticLookup,nd as toolSymbolContext,Nc as toolUndo,xd as toolWebFetch,wd as toolWebSearch,Dc as toolWrite,rc as truncateHead,tc as truncateLine,sc as truncateTail,Hj as trustProjectRules,Nd as turnWallTimeDelta,Ra as validateAndFixToolHistory,E as validateCustomProviderConfig,Bg as validateGeneratedWorkflowSource,Pa as validateInputArtifactsForModel,qj as validateSubtaskIndependence,pe as validateToolSchemaForProvider,ej as verifyGoalCompletion,$d as webhook,cj as withGoalBeforeNextTurn,dj as withGoalStopHook,Cc as withManualToolBranding,Ed as workerAgent,_i as workflowStartOutcomeConsumesTurn,Xj as writeReviewPackets};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
+
import{j as a}from"./chunk-UKCDCVMD.js";import"./chunk-HTVLCHWH.js";import"./chunk-XUKLF26Q.js";import"./chunk-U6HNMLNN.js";import"./chunk-GVGLYVG4.js";import"./chunk-TRNAWSXP.js";import"./chunk-G5FGIRDJ.js";import"./chunk-UH5WNJXF.js";import"./chunk-ONUPGMER.js";export{a as startManagedWorkflow};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
+
import{I as a,J as b}from"./chunk-XUKLF26Q.js";import"./chunk-U6HNMLNN.js";import"./chunk-GVGLYVG4.js";import"./chunk-TRNAWSXP.js";import"./chunk-G5FGIRDJ.js";import"./chunk-UH5WNJXF.js";import"./chunk-ONUPGMER.js";export{a as createWorkflowRunManager,b as getDefaultWorkflowRunManager};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as N,A as m,B as n,C as o,D as p,E as q,F as r,G as s,H as t,I as u,J as v,K as w,L as x,M as y,N as z,O as A,P as B,Q as C,R as D,S as E,T as F,U as G,V as H,W as I,X as J,Y as K,Z as L,_ as M,aa as O,b as a,ba as P,c as b,ca as Q,da as R,ea as S,fa as T,ga as U,q as c,r as d,s as e,t as f,u as g,v as h,w as i,x as j,y as k,z as l}from"./chunk-
|
|
2
|
+
import{$ as N,A as m,B as n,C as o,D as p,E as q,F as r,G as s,H as t,I as u,J as v,K as w,L as x,M as y,N as z,O as A,P as B,Q as C,R as D,S as E,T as F,U as G,V as H,W as I,X as J,Y as K,Z as L,_ as M,aa as O,b as a,ba as P,c as b,ca as Q,da as R,ea as S,fa as T,ga as U,q as c,r as d,s as e,t as f,u as g,v as h,w as i,x as j,y as k,z as l}from"./chunk-AAFFS6RU.js";import"./chunk-XA4ENCAH.js";import"./chunk-Q6UAGROD.js";import"./chunk-UKCDCVMD.js";import"./chunk-HTVLCHWH.js";import"./chunk-XUKLF26Q.js";import"./chunk-U6HNMLNN.js";import"./chunk-GVGLYVG4.js";import"./chunk-TRNAWSXP.js";import"./chunk-G5FGIRDJ.js";import"./chunk-UH5WNJXF.js";import"./chunk-ONUPGMER.js";export{a as CONFIG_TEMPLATES,H as KODAX_CONFIG_ENV_BINDINGS,e as KODAX_CONFIG_FILE,c as KODAX_DIR,D as KODAX_EXAMPLE_CONFIG_FILE,E as KODAX_INTEGRATION_EXAMPLE_FILES,d as KODAX_SESSIONS_DIR,k as KODAX_VERSION,f as PREVIEW_MAX_LENGTH,I as applyConfigEnvironment,r as describeProviderCapabilitySummary,y as describeReasoningCapabilityControl,z as describeReasoningExecution,G as ensureExampleConfigFile,F as ensureExampleConfigFiles,S as formatProviderCapabilityDetailLines,R as formatProviderSourceKind,s as formatReasoningCapabilityShort,t as formatReasoningEffortForDisplay,w as formatReasoningEffortStatusLabel,b as getConfigTemplate,Q as getGitRoot,m as getProviderAvailableModels,o as getProviderCapabilityProfile,p as getProviderCapabilitySnapshot,T as getProviderCommonPolicyScenarios,A as getProviderList,l as getProviderModel,q as getProviderPolicyDecision,n as getProviderReasoningCapability,v as getProviderReasoningEffortCycle,u as getProviderReasoningEffortOptions,j as getVersion,g as hydrateProcessEnvFromShell,B as isProviderConfigured,C as loadConfig,J as prepareRuntimeConfig,U as rateLimitedCall,i as registerConfiguredCustomProviders,h as resetShellEnvironmentHydrationForTesting,L as resolveInitialEffortOverride,P as resolvePermissionModeEffort,x as resolveProviderReasoningRuntimeEffort,O as resolveRuntimeEffortSelection,N as resolveRuntimeModelSelection,M as resolveRuntimeProviderSelection,K as saveConfig};
|
package/dist/index.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ export { K as KodaXLlmTimeoutConfig, p as parseTimeoutSecEnvMs, t as timeoutSecT
|
|
|
5
5
|
export { K as KodaXBaseProvider } from './types-chunks/base.d-DxG0m09Z.js';
|
|
6
6
|
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';
|
|
7
7
|
export { AstCheckResult, AstRuleId, AstRuleViolation, AuditEntry, AuditEventKind, AuthorWorkflowViaWorkerHandle, AuthorWorkflowViaWorkerInput, AutoModeCallAssessment, BLOCKER_REQUIRED_CONSECUTIVE_TURNS, BUILTIN_WORKFLOWS, BashClassificationResult, BashClassifierConfig, BashCommandTree, BashPipelineStage, BashRedirection, BashRiskLevel, BashStatement, BlockerAttemptResult, BootstrapTracingOptions, BudgetState, BuildClassifierPromptInput, BuildPromptInput, CANCELLED_TOOL_RESULT_MESSAGE, CANCELLED_TOOL_RESULT_PREFIX, CODING_AGENT_MARKER, CODING_INVARIANTS, CODING_SUMMARY_PROMPT, CODING_UPDATE_SUMMARY_PROMPT, ChangedFileEntry, ChangedFileStatus, ChangedScopeAreaSummary, ChangedScopeReport, ClassifierPrompt, Client, CodingDispatchableAgentRoute, CodingMemoryInterventionRunnerOptions, CodingWorkflowBackendDeps, CombinedExtensionRuntime, CreateCtxProxyOptions, CreateKodaXTaskRunnerOptions, CreateProductionLearningReviewerOptions, CreateWorkflowLifecycleControllerOptions, DEFAULT_CODING_AGENT_NAME, DEFAULT_DANGEROUS_PATTERNS, DEFAULT_RESILIENCE_CONFIG, DEFAULT_SAFE_PATTERNS, DEFAULT_SELF_MODIFY_BUDGET, DEFAULT_SPECULATIVE_WINDOW_MS, DEFAULT_TOOL_OUTPUT_MAX_BYTES, DEFAULT_TOOL_OUTPUT_MAX_LINES, DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS, DeleteSavedWorkflowInput, DeleteWorkflowRunOptions, DenialRecord, DenialTracker, DisableState, DiscoverMarkdownAgentsResult, DiscoveredMarkdownAgent, EMIT_VERDICT_TOOL_NAME, EditRecoveryDiagnostic, EditToolErrorCode, ErrorCategory, ErrorClassification, ExtensionDiscoveryResult, ExtensionDiscoverySkipReason, FINDING_VERIFICATION_OUTPUT_SCHEMA, FindingVerificationResult, GENERATOR_AGENT_NAME, GenerateWorkflowFromOptionsInput, GenerateWorkflowInput, GeneratedWorkflow, GoalCompletionVerifier, ImpactEstimateResult, InvestigationFinding, KODAX_TOOLS, KODAX_UNDERLYING_CAPABILITY_TOPICS, KodaXAgentWorkerSpec, Client as KodaXClient, KodaXExtensionRuntime, KodaXPromptSection, KodaXPromptSectionDefinition, KodaXPromptSectionSlot, KodaXPromptSectionStability, KodaXPromptSnapshot, KodaXPromptSnapshotMetadata, KodaXProviderCapabilitySnapshot, KodaXProviderPolicyDecision, KodaXProviderPolicyIssue, KodaXProviderPolicyIssueSeverity, KodaXProviderSourceKind, KodaXSessionError, KodaXTerminalError, KodaXToolError, LEARNING_REVIEW_PROMPT_SHA256, LEARNING_REVIEW_SCHEMA_SHA256, LEARNING_REVIEW_SYSTEM_PROMPT, LEARNING_REVIEW_TOOL, LanguageCapabilityTier, LlmReviewClient, LlmReviewResult, LlmReviewVerdict, LoadAgentsFromMarkdownOptions, LoadAgentsFromMarkdownResult, LoadGeneratedWorkflowFromRunInput, LoadHandlerOptions, LoadHandlerScope, LoadMarkdownAgentScopeOptions, LoadMarkdownAgentScopeResult, LoadedGeneratedWorkflowFromRun, LoadedMarkdownAgent, MANUAL_REGISTRY, MANUAL_TOPIC_IDS, MEMORY_INTERVENTION_SELECTOR_PROMPT, MEMORY_INTERVENTION_SELECTOR_SHA256, ManagedWorkflowRun, ManagedWorkflowSnapshot, ManagedWorkflowSource, MarkdownAgentLoadWarning, MarkdownAgentToolFilter, MarkdownLoadFailure, McpReverseWorkspace, MergedScopedReviewResult, ModuleCapsule, ModuleContextResult, OfficialSandboxMode, OfficialSandboxOptions, OrchestrationArtifact, OrchestrationCompletedTask, OrchestrationRunEvents, OrchestrationRunOptions, OrchestrationRunResult, OrchestrationTaskBudget, OrchestrationTaskContext, OrchestrationTaskExecution, OrchestrationTaskStatus, OrchestrationTraceEvent, OrchestrationWorkerResult, OrchestrationWorkerRunner, OrchestrationWorkerSpec, PLANNER_AGENT_NAME, PROMPT_SECTION_REGISTRY, PROTOCOL_EMITTER_TOOLS, ParallelDispatchDirective, ParallelDispatchResult, ParallelInvestigationArgs, ParallelInvestigationResult, ParallelSubtask, ParsedModelSpec, PowerShellMutationAnalysis, PowerShellMutationOperation, ProcessCapsule, ProcessContextResult, ProcessStep, ProtocolEmitterMetadata, ProviderRecoveryCoordinator, QualityVerdict, READ_DEFAULT_LIMIT, READ_MAX_LINE_CHARS, READ_PREFLIGHT_SIZE_BYTES, REPO_EXPLORER_AGENT_NAME, REPO_EXPLORER_TOOL_NAMES, RawScopedReviewResult, RenameSavedWorkflowInput, ReplaceSavedWorkflowInput, ReplaceSavedWorkflowResult, RepoAreaKind, RepoAreaOverview, RepoIntelligenceIndex, RepoIntelligenceRuntimeInspection, RepoLanguageId, RepoLanguageSupport, RepoOverview, RepoSymbolKind, RepoSymbolRecord, RepoSymbolReference, ResolveClassifierModelOptions, ResolveSource, ResolvedClassifierModel, ReviewPacketBudget, ReviewPacketChunk, ReviewPacketInput, ReviewPacketMetadata, ReviewSeverity, RollbackResult, RunGraphWriter, RunGraphWriterDeps, RunJsonInput, RunWorkflowFromOptionsInput, RunWorkflowModuleOptions, RunWorkflowModuleOutcome, RunningSession, SCOPED_REVIEW_OUTPUT_SCHEMA, SCOUT_AGENT_NAME, SCOUT_THEN_AUTHOR_PROMPT_LINES, SELF_KNOWLEDGE_ROUTING_RULE, SYSTEM_PROMPT, SYSTEM_WORKFLOW_LIMITS, SaveGeneratedWorkflowFromRunInput, SaveGeneratedWorkflowInput, SavedGeneratedWorkflowFile, SavedWorkflowDirs, SavedWorkflowExecution, SavedWorkflowRef, SavedWorkflowSource, SchemaProvider, SchemaValidationResult, ScopedReviewResult, ScopedReviewWorkflowArgs, ScopedReviewWorkflowResult, SelfModifyAskUser, SelfModifyAskUserInput, SelfModifyDiffSeverity, SelfModifyDiffSummary, SkippedExtensionDiscoveryEntry, SpecVerdict, SpeculativeResult, StableBoundaryTracker, StartManagedWorkflowInput, StartManagedWorkflowResult, StripOptions, SymbolContextResult, TASK_ENGINE_ROLE_AGENTS, TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME, TRACING_ENV, TestArtifactOptions, ToolOutputGcResult, ToolResultBudget, ToolResultBudgetReason, ToolResultBudgetUsageInput, ToolResultCapacity, ToolSearchIndex, ToolSearchIndexEntry, ToolSearchIndexOptions, ToolSearchQueryParts, ToolSearchResult, VerifiedScopedReviewResult, VerifyGoalCompletionOptions, WORKER_AGENT_NAME, WORKFLOW_GENERATION_SYSTEM_PROMPT, WorkflowCapsulePreflightEnvironment, WorkflowCapsulePreflightInput, WorkflowCapsulePreflightIssue, WorkflowCapsulePreflightResult, WorkflowChildOptions, WorkflowCostReport, WorkflowGenerationResult, WorkflowGenerationTextFn, WorkflowGenerationTextRequest, WorkflowIdentityResolution, WorkflowIdentityResolverInput, WorkflowLifecycleController, WorkflowPacketReadCost, WorkflowPatternTemplate, WorkflowRunListOptions, WorkflowRunManager, WorkflowRunProcessMetadata, WorkflowRunRetentionOptions, WorkflowRunRetentionResult, WorkflowScriptSnapshotInput, WorkflowScriptSnapshotRef, _resetRuntimeForTesting, acquireExclusiveFileSystemEffectLease, activate, analyzeAutoModeCall, analyzeChangedScope, analyzePowerShellMutation, appendAuditEntry, applyAccountingDelta, applyFindingVerification, applyToolResultGuardrail, assessAutoModeCall, authorWorkflowViaWorker, awaitLatestCodingMemoryReviewDrain, bashSignalCollector, bootstrapTracing, boundedRevise, budgetCeiling, buildApprovalSummary, buildBlockedGoal, buildCapabilityContextSections, buildClassifierPrompt, buildCompleteGoal, buildCreatedGoal, buildFallbackRoutingDecision, buildLlmReviewPrompt, buildManualToolDescription, buildMcpReverseCapabilities, buildPausedGoal, buildPromptMessageContent, buildPromptSnapshot, buildProviderCapabilitySnapshot, buildProviderPolicyHintsForDecision, buildProviderPolicyPromptNotes, buildRepoIntelligenceContext, buildRepoIntelligenceIndex, buildRepoOverview, buildResumedGoal, buildScopedReviewFinalPrompt, buildScopedReviewPrimaryPrompt, buildScopedReviewVerificationPrompt, buildScoutThenAuthorPrompt, buildSelfKnowledgeRoutingRule, buildSystemPrompt, buildSystemPromptSnapshot, buildToolResultBudget, buildToolResultBudgetFromUsage, buildToolSearchIndex, buildWorkflowCostReport, buildWorkflowGenerationSkillContext, buildWorkflowGenerationUserPrompt, canonicalMemoryProjectId, canonicalizeAgentHomePolicyPath, canonicalizeAutoModePath, checkIncompleteToolCalls, checkPromiseSignal, clampToolResultPolicyToBudget, clampWorkflowLimits, classifyBashCommand, classifyError, classifyFileCategory, classifyResilienceError, cleanupExpiredToolOutputs, cleanupUnreferencedToolOutputs, clearShellExecutionEnvironmentCache, combineExtensionRuntimes, computeInputSignature, configureRuntime, convertCapabilityReadResult, convertProviderSearchResults, createBashClassifierConfig, createBuiltinToolDefinition, createCodingMemoryInterventionRunner, createCodingWorkflowBackend, createCtxProxy, createDefaultCodingAgent, createDenialTracker, createExtensionRuntime, createKodaXTaskRunner, createProductionLearningReviewer, createPromptSection, createReasoningPlan, createRunGraphWriter, createSessionControl, createToolResultTruncationGuardrail, createWorkflowLifecycleController, createWorkflowPatternTemplateModule, createWorkflowRunManager, dedupeExtensionPathsByEntrypoint, deleteSavedWorkflow, deriveCodingMemoryIdentity, deriveCodingMemoryReviewIdentities, disableSelfModify, discoverDefaultExtensions, discoverExtensionsInDirectory, discoverExtensionsInDirectoryDetailed, discoverMarkdownAgents, discoverSavedWorkflows, drainCodingMemoryReviewInbox, emitVerdict, emitWorkflowAgentDigest, ensureBuiltinRepoExplorerAgent, evaluateAutoRulesCall, evaluateProviderPolicy, excludeExtensionPathsByEntrypoint, executeTool, extractComparableUserMessageText, extractHtmlTitle, extractPromptComparableText, fileSignalCollector, finalizeRetrievalResult, findByVersion, flattenArgv, flattenRedirections, formatParallelDispatchResult, formatSize, generateWorkflow, generateWorkflowFromOptions, getActiveExtensionRuntime, getAllRegisteredTools, getBuiltinRegisteredToolDefinition, getBuiltinToolDefinition, getBuiltinWorkflow, getDefaultExtensionDirectory, getDefaultWorkflowRunManager, getDenialContext, getImpactEstimate, getModuleContext, getProcessContext, getRegisteredToolDefinition, getRepoIntelligenceIndex, getRepoOverview, getRepoRoutingSignals, getRequiredToolParams, getSymbolContext, getTool, getToolDefinition, getToolRegistrations, getToolResultPolicy, getWorkflowPatternTemplate, goalTokenDelta, inferTaskType, inspectEditFailure, inspectRepoIntelligenceRuntime, installProductionLearningReviewer, isAgentHomeHardMutationTarget, isAgentHomeHardRemovalTarget, isAutoReadableAgentHomePath, isAutoReadableKodaxPath, isAutoWritableAgentHomePath, isAutoWritableKodaxPath, isCredentialBearingKodaxPath, isDeniedRecently, isNullDevice, isParallelDispatchDirective, isPowerShellMutationCommand, isProtectedAgentHomeMutationTarget, isProtectedAgentHomeReadTarget, isProtectedAgentHomeRemovalTarget, isSessionRecoveryCandidateError, isSupportedExtensionModulePath, isToolFileMutation, isToolMutation, isToolNetworkRead, isToolPlanModeAllowed, isValidTokenBudget, languageIdForPath, listAll, listArtifacts, listBuiltinToolDefinitions, listBuiltinWorkflows, listCodingDispatchableAgents, listConstructed, listToolDefinitions, listTools, listWorkflowPatternTemplates, loadAgentsFromMarkdown, loadGeneratedWorkflowFromRun, loadHandler, loadMarkdownAgentScope, loadSavedWorkflow, loadSavedWorkflowCapsule, maybeRunReferenceAwareToolOutputGc, maybeRunToolOutputGc, mcpRootsFromWorkspace, mergeScopedReviewResults, normalizeScopedReviewResult, normalizeShellExecutionContract, normalizeWorkflowModule, orderPromptSections, parallelInvestigation, parseBashCommand, parseEditToolError, parseLlmReviewVerdict, parseModelSpec, parseSandboxEnvironmentPass, parseToolSearchQuery, parseWorkflowGeneration, persistToolOutput, preflightWorkflowCapsule, prewarmRepoIntelligenceCaches, readArtifact, readAuditEntries, readBudget, readDisableState, readSpeculativeWindowFromEnv, reasoningModeToDepth, reconstructMessagesWithToolGuard, recordBlockerAttempt, recordDenial, registerCodingInvariants, registerConfiguredMcpCapabilityProvider, registerOfficialSandboxExtension, registerTool, rehydrateActiveArtifacts, remainingSelfModifyBudget, renameSavedWorkflow, renderChangedScope, renderImpactEstimate, renderModuleContext, renderProcessContext, renderPromptSections, renderRepoOverview, renderRetrievalResult, renderSymbolContext, replaceConfiguredMcpCapabilityProvider, replaceSavedWorkflow, reportLspDiagnostics, resetBlockerCounter, resetBudget, resolveClassifierModel, resolveCodingDispatchableAgent, resolveExtensionEntrypoint, resolveKodaXManual, resolveReasoningMode, resolveRepoIntelligenceMode, resolveRepoIntelligenceRuntimeConfig, resolveResilienceConfig, resolveToolBridgeTarget, resolveToolCapability, resolveToolOutputDir, resolveWorkflowGenerationTimeoutMs, resolveWorkflowIdentity, revoke, rollbackSelfModify, runAstRules, runKodaX, runLlmReview, runManagedTask, runOrchestration, runWorkflowFromOptions, runWorkflowModule, safeWorkflowArtifactName, saveGeneratedWorkflow, saveGeneratedWorkflowFromRun, scopedReview, searchToolIndex, setActiveExtensionRuntime, shellExecutionContractFingerprint, shouldFlipBudgetLimited, speculativeRace, stage, startKodaX, startManagedWorkflow, stripAssistantText, stripHtmlToText, testArtifact, toolAskUserQuestion, toolBash, toolChangedDiff, toolChangedScope, toolCodeSearch, toolEdit, toolGlob, toolGrep, toolImpactEstimate, toolInsertAfterAnchor, toolModuleContext, toolPermission, toolProcessContext, toolRead, toolRepoOverview, toolSemanticLookup, toolSymbolContext, toolUndo, toolWebFetch, toolWebSearch, toolWrite, truncateHead, truncateLine, truncateTail, turnWallTimeDelta, validateGeneratedWorkflowSource, validateSubtaskIndependence, validateToolSchemaForProvider, verifyGoalCompletion, withManualToolBranding, workerAgent, writeReviewPackets } from './sdk-coding.js';
|
|
8
|
-
export { A as ALWAYS_RESIDENT_TOOL_NAMES, B as BASH_POLICY_SPEC, a as BashPrefixExtractor, b as BashPrefixResult, c as BoundExtensionRuntimeController, C as CapabilityRuntimeContract, d as CodingActorSession, e as CodingActorSessionOptions, f as CompactionAntiThrashConfig, g as CompactionAntiThrashState, h as CompactionSavingsDecision, i as CompactionSavingsSample, j as CompactionSkipReason, k as CreateBashPrefixExtractorOptions, D as DiagnosticsRequest, E as ExtensionRuntimeContract, l as ExtractCommandPrefixOptions, F as FailureStage, G as GoalBlockedResult, m as GoalCompleteResult, n as GoalCreateInput, o as GoalLifecycleContext, p as GoalRuntimeBinding, q as GoalRuntimeBindingDeps, r as GoalToolsContext, K as KodaXActivityEventMeta, t as KodaXAgentMode, u as KodaXAgentProfile, v as KodaXAgentScope, w as KodaXBudgetDisclosureZone, x as KodaXBudgetExtensionRequest, y as KodaXCanonicalAgentMode, z as KodaXChildAgentResult, H as KodaXChildContextBundle, J as KodaXCompactionEndResult, L as KodaXCompactionFailureReason, M as KodaXCompactionOverride, N as KodaXContextCompactionFinishedEvent, O as KodaXContextIdentity, P as KodaXContextOptions, Q as KodaXContextTokenSnapshot, R as KodaXEffectiveTaskConfig, S as KodaXEvents, T as KodaXFileSystemEffectLease, U as KodaXLiveEventMeta, V as KodaXManagedBudgetSnapshot, X as KodaXManagedTask, Y as KodaXManagedTaskRuntimeState, Z as KodaXManagedTaskStatusEvent, _ as KodaXManualIndexTopic, $ as KodaXManualSource, a0 as KodaXManualTopic, a1 as KodaXManualTopicId, a2 as KodaXManualTopicInput, a3 as KodaXMemoryStrategy, a4 as KodaXOptions, a5 as KodaXOrchestrationVerdict, a6 as KodaXParentReductionContract, a7 as KodaXPreparedShellSandboxInvocation, a8 as KodaXPromptCacheDiagnosticEvent, a9 as KodaXProviderPolicyHints, aa as KodaXRepoIntelligenceCapability, ab as KodaXRepoIntelligenceMode, ac as KodaXRepoIntelligenceResolvedMode, ad as KodaXRepoIntelligenceTrace, ae as KodaXRepoIntelligenceTraceEvent, af as KodaXRepoRoutingSignals, ag as KodaXResult, ah as KodaXRoleRoundSummary, ai as KodaXRuntimeVerificationContract, aj as KodaXSandboxOptions, ak as KodaXSelfManualConfig, al as KodaXSessionControl, am as KodaXSessionMutators, an as KodaXSessionOptions, ao as KodaXShellExecutionContract, ap as KodaXShellKind, aq as KodaXShellProfileMode, ar as KodaXShellSandbox, as as KodaXShellSandboxBackend, at as KodaXShellSandboxObservation, au as KodaXShellSandboxPrepareInput, av as KodaXSidecarMessageEvent, aw as KodaXSkillDynamicContextPolicy, ax as KodaXSkillInvocationContext, ay as KodaXSkillMap, az as KodaXSkillProjectionConfidence, aA as KodaXSkillScriptInputFile, aB as KodaXSkillScriptOutputFile, aC as KodaXSkillScriptRunInput, aD as KodaXSkillScriptRunner, aE as KodaXTaskCapabilityHint, aF as KodaXTaskContract, aG as KodaXTaskEvidenceArtifact, aH as KodaXTaskEvidenceBundle, aI as KodaXTaskEvidenceEntry, aJ as KodaXTaskRole, aK as KodaXTaskRoleAssignment, aL as KodaXTaskStatus, aM as KodaXTaskSurface, aN as KodaXTaskToolPolicy, aO as KodaXTaskVerificationContract, aP as KodaXTaskVerificationCriterion, aQ as KodaXTaskWorkItem, aR as KodaXTimeoutConfig, aS as KodaXToolEventMeta, aT as KodaXToolExecutionContext, aU as KodaXToolSandboxObservationUpdate, aV as KodaXToolVisibilityMeta, aW as KodaXToolVisibilityPolicy, aX as KodaXTurnCompletedEvent, aY as KodaXTurnDeliveryKind, aZ as KodaXTurnFailedEvent, a_ as KodaXTurnStartedEvent, a$ as KodaXVerificationScorecard, b0 as KodaXVerificationScorecardCriterion, b1 as KodaXWorkflowAgentDigestEvent, b2 as KodaXWorkflowEventMeta, b3 as KodaXWorkflowTimeoutConfig, b4 as LSP_SERVERS, b5 as LspServerInfo, b6 as LspService, b7 as LspServiceConfig, b8 as ProviderExecutionState, b9 as ProviderRecoveryEvent, ba as ProviderResilienceConfig, bb as ProviderResiliencePolicy, bc as RecoveryAction, bd as RecoveryDecision, be as RecoveryLadderStep, bf as RecoveryResult, bg as ResilienceClassification, bh as ResilienceErrorClass, bi as ResolveKodaXManualInput, bj as ResolveKodaXManualOptions, bk as ResolveKodaXManualResult, bl as RuntimeCompactionSkippedEvent, bm as RuntimeContextBudgetBreakdown, bn as RuntimeContextBudgetRecommendation, bo as RuntimeContextBudgetSnapshot, bp as RuntimeContextBudgetSnapshotInput, bq as RuntimeContextOptimizationProfile, br as RuntimeContextPressure, bs as RuntimeDefaultsSnapshot, bt as RuntimeToolExposureDecision, bu as RuntimeToolExposureMode, bv as RuntimeToolExposurePlan, bw as RuntimeToolExposurePlanInput, bx as RuntimeToolExposureReason, by as TodoItem, bz as TodoList, bA as TodoStatus, bB as ToolSideEffect, bC as WorkflowHostPolicy, bD as WorkflowInvocationAction, bE as WorkflowInvocationPolicyDecision, bF as WorkflowInvocationPolicyInput, bG as WorkflowInvocationSource, bH as WorkflowStartOutcome, bI as WorkflowToolHost, bJ as WorkflowToolHostInlineInput, bK as WorkflowToolHostResult, bL as WorkflowToolHostStartResult, bM as buildGoalRuntimeBinding, bN as consumeCompactionCooldown, bO as createBashPrefixExtractor, bP as createCompactionAntiThrashState, bQ as createExternalActorTurnExecutor, bR as createLocalCodingActorControl, bS as createRuntimeContextBudgetSnapshot, bT as decideWorkflowInvocation, bU as drainPendingSwaps, bV as estimateToolSchemaTokens, bW as extractCommandPrefix, bX as getDefaultLspService, bY as hasExplicitNaturalLanguageWorkflowIntent, bZ as hasPendingSwap, b_ as makeDisabledGoalToolsContext, b$ as normalizeKodaXAgentMode, c0 as planToolExposure, c1 as providerResilienceConfigFromTimeouts, c2 as recordCompactionSavings, c3 as resolveConstructedAgent, c4 as shouldSkipLlmCompaction, c5 as shutdownDefaultLspService, c6 as withGoalBeforeNextTurn, c7 as withGoalStopHook, c8 as workflowStartOutcomeConsumesTurn } from './types-chunks/bash-prefix-extractor.d-
|
|
8
|
+
export { A as ALWAYS_RESIDENT_TOOL_NAMES, B as BASH_POLICY_SPEC, a as BashPrefixExtractor, b as BashPrefixResult, c as BoundExtensionRuntimeController, C as CapabilityRuntimeContract, d as CodingActorSession, e as CodingActorSessionOptions, f as CompactionAntiThrashConfig, g as CompactionAntiThrashState, h as CompactionSavingsDecision, i as CompactionSavingsSample, j as CompactionSkipReason, k as CreateBashPrefixExtractorOptions, D as DiagnosticsRequest, E as ExtensionRuntimeContract, l as ExtractCommandPrefixOptions, F as FailureStage, G as GoalBlockedResult, m as GoalCompleteResult, n as GoalCreateInput, o as GoalLifecycleContext, p as GoalRuntimeBinding, q as GoalRuntimeBindingDeps, r as GoalToolsContext, K as KodaXActivityEventMeta, t as KodaXAgentMode, u as KodaXAgentProfile, v as KodaXAgentScope, w as KodaXBudgetDisclosureZone, x as KodaXBudgetExtensionRequest, y as KodaXCanonicalAgentMode, z as KodaXChildAgentResult, H as KodaXChildContextBundle, J as KodaXCompactionEndResult, L as KodaXCompactionFailureReason, M as KodaXCompactionOverride, N as KodaXContextCompactionFinishedEvent, O as KodaXContextIdentity, P as KodaXContextOptions, Q as KodaXContextTokenSnapshot, R as KodaXEffectiveTaskConfig, S as KodaXEvents, T as KodaXFileSystemEffectLease, U as KodaXLiveEventMeta, V as KodaXManagedBudgetSnapshot, X as KodaXManagedTask, Y as KodaXManagedTaskRuntimeState, Z as KodaXManagedTaskStatusEvent, _ as KodaXManualIndexTopic, $ as KodaXManualSource, a0 as KodaXManualTopic, a1 as KodaXManualTopicId, a2 as KodaXManualTopicInput, a3 as KodaXMemoryStrategy, a4 as KodaXOptions, a5 as KodaXOrchestrationVerdict, a6 as KodaXParentReductionContract, a7 as KodaXPreparedShellSandboxInvocation, a8 as KodaXPromptCacheDiagnosticEvent, a9 as KodaXProviderPolicyHints, aa as KodaXRepoIntelligenceCapability, ab as KodaXRepoIntelligenceMode, ac as KodaXRepoIntelligenceResolvedMode, ad as KodaXRepoIntelligenceTrace, ae as KodaXRepoIntelligenceTraceEvent, af as KodaXRepoRoutingSignals, ag as KodaXResult, ah as KodaXRoleRoundSummary, ai as KodaXRuntimeVerificationContract, aj as KodaXSandboxOptions, ak as KodaXSelfManualConfig, al as KodaXSessionControl, am as KodaXSessionMutators, an as KodaXSessionOptions, ao as KodaXShellExecutionContract, ap as KodaXShellKind, aq as KodaXShellProfileMode, ar as KodaXShellSandbox, as as KodaXShellSandboxBackend, at as KodaXShellSandboxObservation, au as KodaXShellSandboxPrepareInput, av as KodaXSidecarMessageEvent, aw as KodaXSkillDynamicContextPolicy, ax as KodaXSkillInvocationContext, ay as KodaXSkillMap, az as KodaXSkillProjectionConfidence, aA as KodaXSkillScriptInputFile, aB as KodaXSkillScriptOutputFile, aC as KodaXSkillScriptRunInput, aD as KodaXSkillScriptRunner, aE as KodaXTaskCapabilityHint, aF as KodaXTaskContract, aG as KodaXTaskEvidenceArtifact, aH as KodaXTaskEvidenceBundle, aI as KodaXTaskEvidenceEntry, aJ as KodaXTaskRole, aK as KodaXTaskRoleAssignment, aL as KodaXTaskStatus, aM as KodaXTaskSurface, aN as KodaXTaskToolPolicy, aO as KodaXTaskVerificationContract, aP as KodaXTaskVerificationCriterion, aQ as KodaXTaskWorkItem, aR as KodaXTimeoutConfig, aS as KodaXToolEventMeta, aT as KodaXToolExecutionContext, aU as KodaXToolSandboxObservationUpdate, aV as KodaXToolVisibilityMeta, aW as KodaXToolVisibilityPolicy, aX as KodaXTurnCompletedEvent, aY as KodaXTurnDeliveryKind, aZ as KodaXTurnFailedEvent, a_ as KodaXTurnStartedEvent, a$ as KodaXVerificationScorecard, b0 as KodaXVerificationScorecardCriterion, b1 as KodaXWorkflowAgentDigestEvent, b2 as KodaXWorkflowEventMeta, b3 as KodaXWorkflowTimeoutConfig, b4 as LSP_SERVERS, b5 as LspServerInfo, b6 as LspService, b7 as LspServiceConfig, b8 as ProviderExecutionState, b9 as ProviderRecoveryEvent, ba as ProviderResilienceConfig, bb as ProviderResiliencePolicy, bc as RecoveryAction, bd as RecoveryDecision, be as RecoveryLadderStep, bf as RecoveryResult, bg as ResilienceClassification, bh as ResilienceErrorClass, bi as ResolveKodaXManualInput, bj as ResolveKodaXManualOptions, bk as ResolveKodaXManualResult, bl as RuntimeCompactionSkippedEvent, bm as RuntimeContextBudgetBreakdown, bn as RuntimeContextBudgetRecommendation, bo as RuntimeContextBudgetSnapshot, bp as RuntimeContextBudgetSnapshotInput, bq as RuntimeContextOptimizationProfile, br as RuntimeContextPressure, bs as RuntimeDefaultsSnapshot, bt as RuntimeToolExposureDecision, bu as RuntimeToolExposureMode, bv as RuntimeToolExposurePlan, bw as RuntimeToolExposurePlanInput, bx as RuntimeToolExposureReason, by as TodoItem, bz as TodoList, bA as TodoStatus, bB as ToolSideEffect, bC as WorkflowHostPolicy, bD as WorkflowInvocationAction, bE as WorkflowInvocationPolicyDecision, bF as WorkflowInvocationPolicyInput, bG as WorkflowInvocationSource, bH as WorkflowStartOutcome, bI as WorkflowToolHost, bJ as WorkflowToolHostInlineInput, bK as WorkflowToolHostResult, bL as WorkflowToolHostStartResult, bM as buildGoalRuntimeBinding, bN as consumeCompactionCooldown, bO as createBashPrefixExtractor, bP as createCompactionAntiThrashState, bQ as createExternalActorTurnExecutor, bR as createLocalCodingActorControl, bS as createRuntimeContextBudgetSnapshot, bT as decideWorkflowInvocation, bU as drainPendingSwaps, bV as estimateToolSchemaTokens, bW as extractCommandPrefix, bX as getDefaultLspService, bY as hasExplicitNaturalLanguageWorkflowIntent, bZ as hasPendingSwap, b_ as makeDisabledGoalToolsContext, b$ as normalizeKodaXAgentMode, c0 as planToolExposure, c1 as providerResilienceConfigFromTimeouts, c2 as recordCompactionSavings, c3 as resolveConstructedAgent, c4 as shouldSkipLlmCompaction, c5 as shutdownDefaultLspService, c6 as withGoalBeforeNextTurn, c7 as withGoalStopHook, c8 as workflowStartOutcomeConsumesTurn } from './types-chunks/bash-prefix-extractor.d-QqKtuLZm.js';
|
|
9
9
|
export { CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateVideoArtifactFromPathOptions, EnqueueWithArtifactsInput, GetModelInputCapabilitiesInput, ImageResizeError, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_VIDEO_MEDIA_TYPES, KodaXInputCapabilityStatus, KodaXMediaError, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, MAX_DIMENSION, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, PersistImageAsBlockOptions, TARGET_RAW_SIZE_BYTES, ValidateInputArtifactsOptions, createFileArtifactFromPath, createImageArtifactFromPath, createVideoArtifactFromPath, enqueueWithArtifacts, getModelInputCapabilities, inferImageMediaType, inferVideoMediaType, normalizePastedImage, persistImageAsBlock, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, validateInputArtifactsForModel } from './sdk-media.js';
|
|
10
|
-
export { A as AgentArtifact, b as ArtifactStatus, C as Capabilities, c as CapabilityDeniedError, d as ConstructionArtifact, e as ConstructionManifestError, f as ConstructionPolicy, g as ConstructionPolicyVerdict, D as DEFAULT_HANDLER_TIMEOUT_MS, E as ExecOptions, h as ExecResult, i as ExtensionCommandContext, j as ExtensionCommandDefinition, k as ExtensionCommandInvocation, l as ExtensionCommandResult, m as ExtensionContributionSource, n as ExtensionEventMap, o as ExtensionFailureDiagnostic, p as ExtensionFailureStage, q as ExtensionHookMap, r as ExtensionLoadSource, s as ExtensionLogger, t as ExtensionRuntimeController, u as ExtensionRuntimeDiagnostics, v as ExtensionToolBeforeHookContext, K as KodaXExtensionAPI, w as KodaXExtensionActivationResult, x as KodaXExtensionModule, y as KodaXRetrievalArtifact, z as KodaXRetrievalFreshness, B as KodaXRetrievalItem, F as KodaXRetrievalResult, G as KodaXRetrievalScope, H as KodaXRetrievalToolName, I as KodaXRetrievalTrust, L as LoadedExtensionDiagnostic, J as LocalToolDefinition, M as ModelProviderRegistration, R as RegisteredCapabilityProviderDiagnostic, N as RegisteredCommandDiagnostic, O as RegisteredHookDiagnostic, P as RegisteredToolDefinition, Q as RegisteredToolDiagnostic, S as RuntimeRemoteToolContext, T as RuntimeRemoteToolContract, U as RuntimeRemoteToolDecision, V as RuntimeRemoteWorkspaceBroker, W as ScriptSource, X as StagedHandle, Y as TestResult, Z as ToolContent, _ as ToolDefinitionSource, $ as ToolHandler, a1 as ToolRegistrationOptions, a2 as ToolRegistry, a3 as WebhookOptions, a4 as WebhookResult, a5 as defaultPolicy, a6 as exec, a7 as webhook } from './types-chunks/types.d-
|
|
10
|
+
export { A as AgentArtifact, b as ArtifactStatus, C as Capabilities, c as CapabilityDeniedError, d as ConstructionArtifact, e as ConstructionManifestError, f as ConstructionPolicy, g as ConstructionPolicyVerdict, D as DEFAULT_HANDLER_TIMEOUT_MS, E as ExecOptions, h as ExecResult, i as ExtensionCommandContext, j as ExtensionCommandDefinition, k as ExtensionCommandInvocation, l as ExtensionCommandResult, m as ExtensionContributionSource, n as ExtensionEventMap, o as ExtensionFailureDiagnostic, p as ExtensionFailureStage, q as ExtensionHookMap, r as ExtensionLoadSource, s as ExtensionLogger, t as ExtensionRuntimeController, u as ExtensionRuntimeDiagnostics, v as ExtensionToolBeforeHookContext, K as KodaXExtensionAPI, w as KodaXExtensionActivationResult, x as KodaXExtensionModule, y as KodaXRetrievalArtifact, z as KodaXRetrievalFreshness, B as KodaXRetrievalItem, F as KodaXRetrievalResult, G as KodaXRetrievalScope, H as KodaXRetrievalToolName, I as KodaXRetrievalTrust, L as LoadedExtensionDiagnostic, J as LocalToolDefinition, M as ModelProviderRegistration, R as RegisteredCapabilityProviderDiagnostic, N as RegisteredCommandDiagnostic, O as RegisteredHookDiagnostic, P as RegisteredToolDefinition, Q as RegisteredToolDiagnostic, S as RuntimeRemoteToolContext, T as RuntimeRemoteToolContract, U as RuntimeRemoteToolDecision, V as RuntimeRemoteWorkspaceBroker, W as ScriptSource, X as StagedHandle, Y as TestResult, Z as ToolContent, _ as ToolDefinitionSource, $ as ToolHandler, a1 as ToolRegistrationOptions, a2 as ToolRegistry, a3 as WebhookOptions, a4 as WebhookResult, a5 as defaultPolicy, a6 as exec, a7 as webhook } from './types-chunks/types.d-BRrJU4pb.js';
|
|
11
11
|
export { O as KodaXCompactMemoryProgress, P as KodaXCompactMemorySeed, Q as KodaXExtensionSessionRecord, R as KodaXExtensionSessionState, Y as KodaXJsonValue, a2 as KodaXSessionArtifactLedgerEntry, a3 as KodaXSessionBranchSummaryEntry, a5 as KodaXSessionCompactionEntry, a6 as KodaXSessionData, a7 as KodaXSessionEntry, a8 as KodaXSessionEntryBase, aa as KodaXSessionLabelEntry, ab as KodaXSessionLineage, ae as KodaXSessionMessageEntry, af as KodaXSessionMeta, ag as KodaXSessionNavigationOptions, ai as KodaXSessionRuntimeInfo, aj as KodaXSessionScope, ak as KodaXSessionStorage, al as KodaXSessionTreeNode, am as KodaXSessionUiHistoryItem, an as KodaXSessionUiHistoryItemType, ao as KodaXSessionUiTextHistoryItem, ap as KodaXSessionUiTextHistoryItemType, aq as KodaXSessionUiToolCall, ar as KodaXSessionUiToolCallStatus, as as KodaXSessionUiToolGroupHistoryItem, at as KodaXSessionWorkspaceKind, ba as SessionErrorMetadata } from './types-chunks/types.d-DlLBRqZ9.js';
|
|
12
12
|
export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, N as actorQueueId, O as appendSessionLineageLabel, R as applySessionCompaction, S as archiveOldIslands, U as buildSessionTree, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a2 as estimateTokens, a4 as extractArtifactLedger, a6 as extractTitleFromMessages, a7 as findPreviousUserEntryId, a8 as forkSessionLineage, a9 as generateSessionId, ab as getAgentConfigHome, ac as getAgentConfigPath, ad as getAppDataDir, ae as getSessionLineagePath, ag as getSessionMessagesFromLineage, aj as mergeArtifactLedger, ao as resolveSessionLineageTarget, ap as rewindSessionLineage, aq as setAgentConfigHome, ar as setSessionLineageActiveEntry, as as validateAndFixToolHistory } from './types-chunks/capsule.d-CN_iMqAS.js';
|
|
13
13
|
export { f as Agent, P as AgentMessage, T as AgentReasoningProfile, a7 as AgentTool, a8 as AskUserAnswer, a9 as AskUserCustomInputAnswer, aa as AskUserMultiOptions, ab as AskUserQuestionItem, ac as AskUserQuestionOptions, ad as AskUserSelectionAnswer, ag as CompactionAnchor, ak as CompactionResult, am as CompactionUpdate, aJ as Guardrail, aQ as Handoff, aS as InMemorySessionOptions, aY as KodaXFileInputArtifact, aZ as KodaXImageInputArtifact, a_ as KodaXImageMediaType, a$ as KodaXInputArtifact, b0 as KodaXInputArtifactSource, b1 as KodaXVideoInputArtifact, b2 as KodaXVideoMediaType, bL as MessageEntry, bQ as PresetDispatcher, bV as ReasoningDepth, bX as RunEvent, bY as RunOptions, bZ as RunResult, b$ as Runner, cb as Session, cd as SessionEntry, ce as SessionExtension, cf as SessionForkOptions, cS as WorkflowEventCorrelation, dR as createAgent, dT as createHandoff, dU as createInMemorySession, ep as registerPresetDispatcher } from './types-chunks/controller.d-Dzxz22X-.js';
|
|
@@ -15,16 +15,16 @@ export { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as
|
|
|
15
15
|
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';
|
|
16
16
|
export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, 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';
|
|
17
17
|
export { d as ManagedWorkflowStatus } from './types-chunks/run-manager.d-BS4lJfL3.js';
|
|
18
|
-
export { w as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD, x as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD, A as AbsoluteDenyCheck, a as AbsoluteDenyMatch, b as AbsoluteDenyMiss, c as AbsoluteDenyResult, d as AgentHomeShellBoundaryGuardrailOptions, e as AgentsFile, f as AutoModeAskUser, g as AutoModeAskUserVerdict, h as AutoModeCallAnalyzer, i as AutoModeDecisionDiagnostics, P as AutoModeDenialTracker, j as AutoModeEngine, k as AutoModeGuardrailConfig, l as AutoModePermissionBoundary, m as AutoModePermissionOperation, n as AutoModePermissionReview, o as AutoModePermissionTarget, p as AutoModeRulesContext, q as AutoModeRulesDecision, r as AutoModeRulesEvaluator, s as AutoModeSharedState, t as AutoModeStats, u as AutoModeToolGuardrail, v as AutoRules, Q as BREAKER_ERROR_THRESHOLD, a3 as BREAKER_WINDOW_MS, C as CLASSIFIER_MAX_OUTPUT_TOKENS, y as CircuitBreaker, z as ClassifierAttemptDiagnostics, B as ClassifierAttemptOutcome, D as ClassifierDecision, E as ClassifierFailureKind, F as ClassifierHazard, G as ClassifierObservedProtocol, H as ClassifierOutputWarningCode, I as ClassifierParseFailureCode, J as ClassifierProtocol, L as ClassifyDecision, M as ClassifyOptions, N as DEFAULT_CLASSIFIER_RETRY_TIMEOUT_MS, O as DEFAULT_CLASSIFIER_TIMEOUT_MS, R as KodaXMcpConnectMode, S as KodaXMcpServerConfig, T as KodaXMcpServersConfig, U as KodaXMcpTransport, V as LoadAgentsOptions, W as LoadedRulesSource, Y as RulesLoadError, Z as RulesLoadResult, _ as SignalCollector, $ as SkippedRulesSource, a0 as TierZeroPatternId, a1 as ToolCallSignal, a2 as TrustState, am as autoModeDenialShouldFallback, an as breakerShouldFallback, a4 as checkAbsoluteDeny, a5 as classify, a6 as collectAllSignals, a7 as computeRulesFingerprint, a8 as createAgentHomeShellBoundaryGuardrail, ab as createAutoModeDenialTracker, a9 as createAutoModeToolGuardrail, aa as createCircuitBreaker, ac as formatAgentsForPrompt, ad as getKodaxGlobalDir, ae as loadAgentsFiles, af as loadAutoRules, ag as parseAutoRules, ah as parseClassifierOutput, ai as readTrustState, aj as recordAutoModeAllow, ak as recordAutoModeBlock, al as recordBreakerError, ao as trustProjectRules } from './types-chunks/guardrail.d-
|
|
19
|
-
export { B as BASH_SAFE_READ_COMMANDS, a as BASH_WRITE_COMMANDS, F as FILE_MODIFICATION_TOOLS, G as GitGrepShortOption, M as MODIFICATION_TOOLS, P as PermissionMode, R as RawCommandWord, c as collectBashWriteTargets, b as collectDeterministicBashWriteTargets, e as extractPathsFromCommand, f as findGitSubcommandIndex, g as generateSavePattern, d as getBashOutsideProjectWriteRisk, h as getDirectShellBypassBlockReason, i as getPlanModeAllowedWritablePaths, j as getPlanModeBlockReason, k as gitSignatureInspectionMayExecute, l as inferPermissionMode, m as isAlwaysConfirmPath, n as isBashReadCommand, o as isBashReadCommandAutoAllowed, p as isBashWriteCommand, q as isCommandOnProtectedPath, r as isHelpCommand, s as isPathInsideProject, t as isPlanModeAllowedPath, u as isShellReadOnlyArgv, v as isToolCallAllowed, w as parseAllowedToolPattern, x as parseGitGrepShortOption, y as tokenizeRawCommandStages } from './types-chunks/shell-command-sets.d-
|
|
18
|
+
export { w as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD, x as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD, A as AbsoluteDenyCheck, a as AbsoluteDenyMatch, b as AbsoluteDenyMiss, c as AbsoluteDenyResult, d as AgentHomeShellBoundaryGuardrailOptions, e as AgentsFile, f as AutoModeAskUser, g as AutoModeAskUserVerdict, h as AutoModeCallAnalyzer, i as AutoModeDecisionDiagnostics, P as AutoModeDenialTracker, j as AutoModeEngine, k as AutoModeGuardrailConfig, l as AutoModePermissionBoundary, m as AutoModePermissionOperation, n as AutoModePermissionReview, o as AutoModePermissionTarget, p as AutoModeRulesContext, q as AutoModeRulesDecision, r as AutoModeRulesEvaluator, s as AutoModeSharedState, t as AutoModeStats, u as AutoModeToolGuardrail, v as AutoRules, Q as BREAKER_ERROR_THRESHOLD, a3 as BREAKER_WINDOW_MS, C as CLASSIFIER_MAX_OUTPUT_TOKENS, y as CircuitBreaker, z as ClassifierAttemptDiagnostics, B as ClassifierAttemptOutcome, D as ClassifierDecision, E as ClassifierFailureKind, F as ClassifierHazard, G as ClassifierObservedProtocol, H as ClassifierOutputWarningCode, I as ClassifierParseFailureCode, J as ClassifierProtocol, L as ClassifyDecision, M as ClassifyOptions, N as DEFAULT_CLASSIFIER_RETRY_TIMEOUT_MS, O as DEFAULT_CLASSIFIER_TIMEOUT_MS, R as KodaXMcpConnectMode, S as KodaXMcpServerConfig, T as KodaXMcpServersConfig, U as KodaXMcpTransport, V as LoadAgentsOptions, W as LoadedRulesSource, Y as RulesLoadError, Z as RulesLoadResult, _ as SignalCollector, $ as SkippedRulesSource, a0 as TierZeroPatternId, a1 as ToolCallSignal, a2 as TrustState, am as autoModeDenialShouldFallback, an as breakerShouldFallback, a4 as checkAbsoluteDeny, a5 as classify, a6 as collectAllSignals, a7 as computeRulesFingerprint, a8 as createAgentHomeShellBoundaryGuardrail, ab as createAutoModeDenialTracker, a9 as createAutoModeToolGuardrail, aa as createCircuitBreaker, ac as formatAgentsForPrompt, ad as getKodaxGlobalDir, ae as loadAgentsFiles, af as loadAutoRules, ag as parseAutoRules, ah as parseClassifierOutput, ai as readTrustState, aj as recordAutoModeAllow, ak as recordAutoModeBlock, al as recordBreakerError, ao as trustProjectRules } from './types-chunks/guardrail.d-Y_AIh8-I.js';
|
|
19
|
+
export { B as BASH_SAFE_READ_COMMANDS, a as BASH_WRITE_COMMANDS, F as FILE_MODIFICATION_TOOLS, G as GitGrepShortOption, M as MODIFICATION_TOOLS, P as PermissionMode, R as RawCommandWord, c as collectBashWriteTargets, b as collectDeterministicBashWriteTargets, e as extractPathsFromCommand, f as findGitSubcommandIndex, g as generateSavePattern, d as getBashOutsideProjectWriteRisk, h as getDirectShellBypassBlockReason, i as getPlanModeAllowedWritablePaths, j as getPlanModeBlockReason, k as gitSignatureInspectionMayExecute, l as inferPermissionMode, m as isAlwaysConfirmPath, n as isBashReadCommand, o as isBashReadCommandAutoAllowed, p as isBashWriteCommand, q as isCommandOnProtectedPath, r as isHelpCommand, s as isPathInsideProject, t as isPlanModeAllowedPath, u as isShellReadOnlyArgv, v as isToolCallAllowed, w as parseAllowedToolPattern, x as parseGitGrepShortOption, y as tokenizeRawCommandStages } from './types-chunks/shell-command-sets.d-DRGjd_7Q.js';
|
|
20
20
|
import { KodaXRuntime } from './sdk-runtime.js';
|
|
21
21
|
export { CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntimeMode, RuntimeConnectionService, RuntimeConnectionState, RuntimeCreateSessionInput, RuntimeCredentialLease, RuntimeCredentialService, RuntimeDaemonContextOptions, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonPreflight, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonShutdownVerification, RuntimeDaemonShutdownVerificationInput, RuntimeDaemonShutdownVerificationOwner, RuntimeDaemonStartRunInput, RuntimeDeliveredInterruptInput, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeForkSessionInput, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolService, RuntimeIdentity, RuntimeInlineOwnerHandle, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLearningService, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionScopeUpgradeRequiredError, RuntimePermissionService, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunLifecycleError, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStatus, RuntimeRunStopReceipt, RuntimeRunStopStatus, RuntimeSession, RuntimeSessionFilter, RuntimeSessionLoadedEventPayload, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionSummary, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTransportBoundaryError, RuntimeTypedEvent, RuntimeTypedEventListener, RuntimeUserInputFilter, RuntimeUserInputKind, RuntimeUserInputRequest, RuntimeUserInputRequestedEventPayload, RuntimeUserInputResolution, RuntimeUserInputService, RuntimeWarningEventPayload, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary, acquireKodaXInlineOwner, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, parseRuntimeEvent, setKodaXRuntimeOwnerMode, waitForRuntimeDaemonShutdown } from './sdk-runtime.js';
|
|
22
22
|
export { KODAX_ASRT_VERSION, KodaXSandboxCapability, KodaXSandboxDoctorResult, KodaXSandboxFilesystemPolicy, KodaXSandboxNetworkPolicy, KodaXSandboxRunInput, KodaXSandboxRunResult, KodaXSandboxSetupOutcome, activateKodaXSandbox, doctorKodaXSandbox, getKodaXSandboxCapability, getKodaXSandboxSetupGuidance, runKodaXSandboxed, setupKodaXSandbox } from './sdk-sandbox.js';
|
|
23
23
|
import { Agent, AgentSideConnection, InitializeRequest, InitializeResponse, NewSessionRequest, NewSessionResponse, SetSessionModeRequest, SetSessionModeResponse, PromptRequest, PromptResponse } from '@agentclientprotocol/sdk';
|
|
24
|
-
import { F as FileSessionStorage } from './types-chunks/public-api.d-
|
|
25
|
-
export { T as PreparedSessionAppendBaseline, U as PreparedSessionTailDelta } from './types-chunks/public-api.d-
|
|
26
|
-
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, e as RepLOptions, o as executeCommand, q as parseCommand, r as processSpecialSyntax, s as runInkInteractiveMode, t as runInteractiveMode } from './types-chunks/repl.d-
|
|
27
|
-
export { A as AutoModeSettings, a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, K as KODAX_CONFIG_FILE, i as KODAX_DIR, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, R as ResolveAutoModeSettingsInput, n as ResolvedAutoModeSettings, q as createInteractiveContext, 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, M as saveConfig, N as touchContext } from './types-chunks/utils.d-
|
|
24
|
+
import { F as FileSessionStorage } from './types-chunks/public-api.d-Cg-4GTbK.js';
|
|
25
|
+
export { T as PreparedSessionAppendBaseline, U as PreparedSessionTailDelta } from './types-chunks/public-api.d-Cg-4GTbK.js';
|
|
26
|
+
export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, e as RepLOptions, o as executeCommand, q as parseCommand, r as processSpecialSyntax, s as runInkInteractiveMode, t as runInteractiveMode } from './types-chunks/repl.d-Bhrbueab.js';
|
|
27
|
+
export { A as AutoModeSettings, a as CommandCallbacks, g as CurrentConfig, I as InteractiveContext, K as KODAX_CONFIG_FILE, i as KODAX_DIR, l as KODAX_SESSIONS_DIR, m as KODAX_VERSION, R as ResolveAutoModeSettingsInput, n as ResolvedAutoModeSettings, q as createInteractiveContext, 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, M as saveConfig, N as touchContext } from './types-chunks/utils.d-BIhh_BqE.js';
|
|
28
28
|
import '@anthropic-ai/sdk';
|
|
29
29
|
import 'openai';
|
|
30
30
|
import './types-chunks/review-inbox.d-DuZqFX-z.js';
|