@kodax-ai/kodax 0.7.96-alpha.1 → 0.7.96-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/README.md +9 -0
  3. package/README_CN.md +8 -0
  4. package/dist/chunks/{agent-DJGM4OJ5.js → agent-4FABF6WK.js} +1 -1
  5. package/dist/chunks/argument-completer-72VHB2VL.js +2 -0
  6. package/dist/chunks/{chunk-DGLQLN5D.js → chunk-4OIQZWA5.js} +2 -2
  7. package/dist/chunks/{chunk-EGGM64ET.js → chunk-7JZZIFZH.js} +18 -18
  8. package/dist/chunks/{chunk-VJLWGEQF.js → chunk-C4KYZAFU.js} +2 -2
  9. package/dist/chunks/{chunk-L3WC5B3Y.js → chunk-CHUPIWIF.js} +1 -1
  10. package/dist/chunks/{chunk-H24VHMYQ.js → chunk-GYUU7XLH.js} +2 -2
  11. package/dist/chunks/{chunk-GEQL647P.js → chunk-JKTJCGO2.js} +1 -1
  12. package/dist/chunks/{chunk-PBHZIK6D.js → chunk-LQYETRFK.js} +4 -4
  13. package/dist/chunks/{chunk-7QE2N4KT.js → chunk-LYWDUSKO.js} +1 -1
  14. package/dist/chunks/{chunk-JBXX4KY3.js → chunk-O4DS7RIQ.js} +2 -2
  15. package/dist/chunks/{chunk-I4ECKOJH.js → chunk-ORXU6OWZ.js} +1 -1
  16. package/dist/chunks/{chunk-ID7PU5WV.js → chunk-RIQSS56Y.js} +1 -1
  17. package/dist/chunks/{chunk-ATUTCE64.js → chunk-U27XKEN5.js} +1 -1
  18. package/dist/chunks/{chunk-GTI6MDD4.js → chunk-XUX6OUCA.js} +2 -2
  19. package/dist/chunks/{construction-bootstrap-MHDVJHXN.js → construction-bootstrap-AHN7EDGG.js} +1 -1
  20. package/dist/chunks/{dist-CXJQCGCL.js → dist-QK2YDWU6.js} +1 -1
  21. package/dist/chunks/{host-CXUVSQP6.js → host-VIHV7ADG.js} +1 -1
  22. package/dist/chunks/{run-manager-EMPT7N63.js → run-manager-NBVMU3KV.js} +1 -1
  23. package/dist/chunks/{utils-MHONHOVU.js → utils-MEJZ2IGI.js} +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/kodax_bootstrap.js +1 -1
  26. package/dist/kodax_cli.js +690 -690
  27. package/dist/native/win32-x64/kodax-windows-sandbox.exe +0 -0
  28. package/dist/native/win32-x64/kodax-windows-text-transaction.node +0 -0
  29. package/dist/native/win32-x64/manifest.json +2 -2
  30. package/dist/runtime-worker.js +661 -661
  31. package/dist/sdk-a2a.js +1 -1
  32. package/dist/sdk-coding.js +1 -1
  33. package/dist/sdk-repl.js +1 -1
  34. package/dist/sdk-runtime.js +1 -1
  35. package/dist/sdk-sandbox.js +1 -1
  36. package/dist/sdk-session.js +1 -1
  37. package/package.json +2 -1
  38. package/public_docs/README.md +2 -2
  39. package/public_docs/sdk/embedder-guide.md +2 -2
  40. package/dist/chunks/argument-completer-AL2YS2BO.js +0 -2
package/CHANGELOG.md CHANGED
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  > Full history for versions prior to v0.7.0: [CHANGELOG_ARCHIVE.md](docs/CHANGELOG_ARCHIVE.md)
6
6
 
7
+ ## [0.7.96-alpha.2] - 2026-08-28
8
+
9
+ ### Fixed
10
+
11
+ - Restored the Windows boot-identity PowerShell resolution helper that the
12
+ FEATURE_295 cleanup deleted while its last caller stayed (Issue 325). On
13
+ v0.7.96-alpha.1 every Windows exit settlement crashed with
14
+ `windowsAclPowerShellExecutable is not defined` and left sandbox cleanup
15
+ `unverified`. v0.7.96-alpha.1 is broken on Windows; upgrade to
16
+ v0.7.96-alpha.2.
17
+
7
18
  ## [0.7.96-alpha.1] - 2026-08-28
8
19
 
9
20
  ### Fixed
@@ -167,7 +178,10 @@ All notable changes to this project will be documented in this file.
167
178
  the sha256 checksum and sidecar audit, and publishes them; on a local
168
179
  machine `--pack-only` produces a host-only LOCAL TEST TARBALL that keeps
169
180
  `private: true` (npm refuses to publish it) for `npm install <path>` SDK
170
- consumer testing.
181
+ consumer testing. The asset download honors `HTTPS_PROXY` / `https_proxy`
182
+ through undici's `ProxyAgent` (Node's global fetch ignores proxy env vars,
183
+ so proxy-only machines previously failed with an opaque connect timeout);
184
+ network-layer download errors now surface the underlying cause.
171
185
 
172
186
  ---
173
187
 
package/README.md CHANGED
@@ -755,6 +755,15 @@ permission UI, and recovers stale prepared Session tails through an
755
755
  authoritative merge. Background persistence failures are surfaced as
756
756
  diagnostics rather than hidden.
757
757
 
758
+ **v0.7.96-alpha.2 release (Windows hotfix):** restored the Windows
759
+ boot-identity PowerShell resolution helper that the FEATURE_295 cleanup
760
+ deleted while its last caller stayed. On v0.7.96-alpha.1 every Windows exit
761
+ settlement crashed with `windowsAclPowerShellExecutable is not defined` and
762
+ left sandbox cleanup `unverified`; the restored helper plus a win32 regression
763
+ test close Issue 325. v0.7.96-alpha.1 is broken on Windows — upgrade to
764
+ v0.7.96-alpha.2. See the
765
+ [v0.7.96-alpha.2 release checklist](docs/release.md#v0796-alpha2-release-preparation).
766
+
758
767
  **v0.7.96-alpha.1 release:** controlled
759
768
  text tools and shell containment are separate authorities on every desktop
760
769
  platform. `write`, `edit`, `multi_edit`,
package/README_CN.md CHANGED
@@ -294,6 +294,14 @@ SDK 系统代码契约更新,但没有放宽 shell/sandbox 的 fail-closed 边
294
294
  `handleRuntimePermissionRequest()` 管理 SDK 权限 UI,并在 prepared Session 尾部遇到
295
295
  `data_changed` 时通过权威 delta 合并恢复;后台持久化失败会显示为诊断,不再静默丢失。
296
296
 
297
+ **v0.7.96-alpha.2 发布(Windows 修复)**:恢复被 FEATURE_295 清理误删的
298
+ Windows boot-identity PowerShell 解析函数(其唯一调用方仍保留)。在
299
+ v0.7.96-alpha.1 上,每次 Windows exit settlement 都会以
300
+ `windowsAclPowerShellExecutable is not defined` 崩溃,sandbox cleanup 只能标记为
301
+ `unverified`;恢复后的实现附带 win32 回归测试,关闭 Issue 325。Windows 用户请
302
+ 从 v0.7.96-alpha.1 升级到 v0.7.96-alpha.2。详见
303
+ [v0.7.96-alpha.2 发布清单](docs/release.md#v0796-alpha2-release-preparation)。
304
+
297
305
  **v0.7.96-alpha.1 发布**:所有桌面平台的受控
298
306
  文本工具与 shell containment 拆分为两个独立权威。`write`、`edit`、`multi_edit`、`insert_after_anchor`、
299
307
  `undo` 在可信 KodaX Runtime 中完成最终路径/identity 策略校验、跨 Runtime
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{Aa as f,Gc as k,Qa as g,Sa as h,a as c,db as i,eb as j,ya as d,za as e}from"./chunk-GEQL647P.js";import"./chunk-AC7Z2OIY.js";import"./chunk-DGLQLN5D.js";import"./chunk-NVRWCSA5.js";import"./chunk-LTUZTQ6W.js";import"./chunk-POTW3O65.js";import{Ob as a,Pb as b}from"./chunk-6BVF3HZ7.js";import"./chunk-NGH6T4FD.js";import"./chunk-ONUPGMER.js";export{e as bucketProviderPayloadSize,g as buildAutoRepoIntelligenceContext,f as checkPromiseSignal,b as cleanupIncompleteToolCalls,h as describeTransientProviderRetry,c as emitResilienceDebug,d as estimateProviderPayloadBytes,k as runKodaX,j as saveRequiredSessionSnapshot,i as saveSessionSnapshot,a as validateAndFixToolHistory};
2
+ import{Aa as f,Gc as k,Qa as g,Sa as h,a as c,db as i,eb as j,ya as d,za as e}from"./chunk-JKTJCGO2.js";import"./chunk-AC7Z2OIY.js";import"./chunk-4OIQZWA5.js";import"./chunk-NVRWCSA5.js";import"./chunk-LTUZTQ6W.js";import"./chunk-POTW3O65.js";import{Ob as a,Pb as b}from"./chunk-6BVF3HZ7.js";import"./chunk-NGH6T4FD.js";import"./chunk-ONUPGMER.js";export{e as bucketProviderPayloadSize,g as buildAutoRepoIntelligenceContext,f as checkPromiseSignal,b as cleanupIncompleteToolCalls,h as describeTransientProviderRetry,c as emitResilienceDebug,d as estimateProviderPayloadBytes,k as runKodaX,j as saveRequiredSessionSnapshot,i as saveSessionSnapshot,a as validateAndFixToolHistory};
@@ -0,0 +1,2 @@
1
+ // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
+ import{Na as a,Oa as b}from"./chunk-XUX6OUCA.js";import"./chunk-GYUU7XLH.js";import"./chunk-HAX55GOQ.js";import"./chunk-U27XKEN5.js";import"./chunk-RIQSS56Y.js";import"./chunk-JKTJCGO2.js";import"./chunk-AC7Z2OIY.js";import"./chunk-C4KYZAFU.js";import"./chunk-4OIQZWA5.js";import"./chunk-NVRWCSA5.js";import"./chunk-LTUZTQ6W.js";import"./chunk-POTW3O65.js";import"./chunk-6BVF3HZ7.js";import"./chunk-NGH6T4FD.js";import"./chunk-ONUPGMER.js";export{a as ArgumentCompleter,b as createArgumentCompleter};
@@ -371,7 +371,7 @@ LSP errors detected in this file, please fix:
371
371
  ${u}`:""}async getDefinition(t,n,r={}){let o=await this.navClient(t,r);if(o.kind!=="client")return o.message;let s=await o.client.definition(ve.resolve(t),n).catch(()=>[]);return zi(s,"No definition found at that position.")}async getHover(t,n,r={}){let o=await this.navClient(t,r);if(o.kind!=="client")return o.message;let s=await o.client.hover(ve.resolve(t),n).catch(()=>null);return Gw(s)}async getReferences(t,n,r={}){let o=await this.navClient(t,r);if(o.kind!=="client")return o.message;let s=await o.client.references(ve.resolve(t),n).catch(()=>[]);return zi(s,"No references found at that position.")}async getDocumentSymbols(t,n={}){let r=await this.navClient(t,n);if(r.kind!=="client")return r.message;let o=await r.client.documentSymbols(ve.resolve(t)).catch(()=>[]);return Vw(o,"No symbols found in this file.")}async getWorkspaceSymbols(t,n={}){let r=await this.workspaceClients(n);if(r.length===0)return"No language server is available for workspace symbol search.";let o=await Promise.all(r.map(s=>s.workspaceSymbols(t).catch(()=>[])));return Yw(o.flat(),"No workspace symbols found for that query.")}async getImplementation(t,n,r={}){let o=await this.navClient(t,r);if(o.kind!=="client")return o.message;let s=await o.client.implementation(ve.resolve(t),n).catch(()=>[]);return zi(s,"No implementation found at that position.")}async getPrepareCallHierarchy(t,n,r={}){let o=await this.navClient(t,r);if(o.kind!=="client")return o.message;let s=await o.client.prepareCallHierarchy(ve.resolve(t),n).catch(()=>[]);return Qw(s,"No call hierarchy item found at that position.")}async getIncomingCalls(t,n,r={}){let o=await this.navClient(t,r);if(o.kind!=="client")return o.message;let s=ve.resolve(t),a=await o.client.prepareCallHierarchy(s,n).catch(()=>[]);if(a.length===0)return"No call hierarchy item found at that position.";let c=await Promise.all(a.map(l=>o.client.incomingCalls(l).catch(()=>[])));return Zw(c.flat(),"No incoming calls found for that symbol.")}async getOutgoingCalls(t,n,r={}){let o=await this.navClient(t,r);if(o.kind!=="client")return o.message;let s=ve.resolve(t),a=await o.client.prepareCallHierarchy(s,n).catch(()=>[]);if(a.length===0)return"No call hierarchy item found at that position.";let c=await Promise.all(a.map(l=>o.client.outgoingCalls(l).catch(()=>[])));return eb(c.flat(),"No outgoing calls found for that symbol.")}async navClient(t,n){let r=vs(t);if(!r)return{kind:"message",message:`No language server is configured for ${ve.basename(t)}.`};let o=this.servers.filter(c=>c.languageIds.includes(r));if(o.length===0)return{kind:"message",message:`No language server is configured for ${ve.basename(t)}.`};let s=ve.resolve(t),a=n.gitRoot??ve.dirname(s);for(let c of o){let l=Cd(s,c.rootMarkers,a),d=await this.getClient(c,l,n);if(d)return await d.notifyOpenOrChange(s).catch(()=>{}),{kind:"client",client:d}}return{kind:"message",message:o.map(c=>c.installGuidance).join(`
372
372
  `)}}async workspaceClients(t){let n=ve.resolve(t.gitRoot??process.cwd()),r=[];for(let o of this.servers){let s=await this.getClient(o,n,t);s&&r.push(s)}return r}async shutdownAll(){this.shuttingDown=!0;try{await Promise.all([...this.spawning.values()].map(n=>n.catch(()=>{})));let t=[...this.clients.values()];this.clients.clear(),this.broken.clear(),await Promise.all(t.map(n=>n.shutdown().catch(()=>{})))}finally{this.shuttingDown=!1}}killAllSync(){for(let t of this.clients.values())t.killSync();this.clients.clear()}resetBroken(t){t?this.broken.delete(t):this.broken.clear()}async getClient(t,n,r){let o=`${Sn(n)}|${t.id}`,s=this.clients.get(o);if(s)return s;if(this.broken.has(o))return;let a=this.spawning.get(o);if(a)return a;let c=this.spawnClient(t,n,o,r);this.spawning.set(o,c);try{return await c}finally{this.spawning.delete(o)}}async spawnClient(t,n,r,o){try{let s=t.discover({root:n,moduleUrl:this.config.moduleUrl});if(s||(s=await this.acquireIfEnabled(t,n,o)),!s){this.broken.add(r),this.config.debug?.(`${t.id} not installed at ${n} \u2014 ${t.installGuidance}`);return}o.onProgress?.(`Starting ${t.id} language server\u2026`);let c=await(this.config.createClient??(await import("./client-4C456K4O.js")).createLspClient)({serverId:t.id,root:n,launch:s,debug:this.config.debug});if(this.shuttingDown){await c.shutdown().catch(()=>{});return}return this.clients.set(r,c),c}catch(s){this.broken.add(r),this.config.debug?.(`${t.id} failed to start at ${n}: ${s.message}`);return}}async acquireIfEnabled(t,n,r){if(!(!t.acquire||!Id()))try{return await t.acquire({root:n,signal:r.signal,onProgress:r.onProgress,debug:this.config.debug})}catch(o){this.config.debug?.(`${t.id} auto-install failed: ${o.message}`);return}}},eo,tb=!1;function nb(){let e=oo()?.lsp;if(!(e===!1||e===void 0&&process.env.KODAX_LSP==="0"))return eo||(eo=new Md({moduleUrl:import.meta.url,debug:process.env.KODAX_DEBUG_LSP?t=>_({source:"coding:lsp",level:"debug",message:t}):void 0}),!tb&&!Vt()&&(tb=!0,process.once("exit",()=>eo?.killAllSync()))),eo}i(nb,"getDefaultLspService");async function KX(){await eo?.shutdownAll()}i(KX,"shutdownDefaultLspService");import{createHash as oM}from"node:crypto";import{execFileSync as xP}from"child_process";import{randomUUID as EP}from"node:crypto";import _P from"fs/promises";import ub from"os";function rb(e,t,n){let r=e?.provider?.trim()||process.env[t]?.trim()||void 0,o=e?.model?.trim()||process.env[n]?.trim()||void 0;if(!(!r&&!o))return{provider:r,model:o}}i(rb,"resolveTier");function Ld(e,t){let n=oo()?.modelTiers;if(e==="fast")return t?rb(n?.fast,"KODAX_FAST_PROVIDER","KODAX_FAST_MODEL"):void 0;if(e==="deep")return rb(n?.deep,"KODAX_DEEP_PROVIDER","KODAX_DEEP_MODEL")}i(Ld,"resolveModelHintTier");function mP(){let e=process.env.KODAX_FALLBACK_PROVIDERS?.trim();return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}i(mP,"resolveFallbackChain");function ob(e){return e instanceof us||e instanceof fs||e instanceof ds}i(ob,"isFallbackEligibleError");function hP(e){return e instanceof us?"rate-limit exhausted":e instanceof fs?"network error":e instanceof ds?"provider error":e instanceof Error?e.message:String(e)}i(hP,"errorReason");async function Nd(e,t,n,r){let o=e.provider??"anthropic";try{return await n(e,t)}catch(s){if(e.abortSignal?.aborted||!ob(s))throw s;let a=mP().filter(l=>l!==o&&(r?.isProviderAllowed?.(l)??!0)),c=s;for(let l of a){r?.onFallback?.({fromProvider:o,toProvider:l,reason:hP(c)});try{return await n({...e,provider:l,model:void 0},t)}catch(d){if(e.abortSignal?.aborted||!ob(d))throw d;c=d}}throw c}}i(Nd,"invokeChildWithFallback");function tt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(tt,"isRecord");function gP(e){return e instanceof Error?e.message:String(e)}i(gP,"errorMessage");function Yi(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}i(Yi,"safeStringify");function ib(e,t){switch(t){case"string":return typeof e=="string";case"number":return typeof e=="number";case"integer":return typeof e=="number"&&Number.isInteger(e);case"boolean":return typeof e=="boolean";case"object":return tt(e);case"array":return Array.isArray(e);case"null":return e===null;default:return!0}}i(ib,"matchesType");function yP(e,t){return e.some(n=>n===t?!0:typeof n!="object"||typeof t!="object"?!1:Yi(n)===Yi(t))}i(yP,"enumMatches");function Xi(e,t){return e?`${e}.${t}`:t}i(Xi,"joinPath");function Gi(e,t,n=""){if(!tt(t))return[];let r=[],o=n||"(root)",s=t.type;if(typeof s=="string"&&!ib(e,s))return[`${o}: expected type ${s}`];if(Array.isArray(s)&&!s.some(a=>typeof a=="string"&&ib(e,a)))return[`${o}: expected one of types ${s.join("|")}`];if(Array.isArray(t.enum)&&!yP(t.enum,e)&&r.push(`${o}: value is not one of the allowed enum values`),Array.isArray(t.oneOf)){let a=t.oneOf.filter(c=>Gi(e,c,n).length===0).length;a!==1&&r.push(`${o}: value must match exactly one of the ${t.oneOf.length} oneOf variants (matched ${a})`)}if(tt(e)){let a=tt(t.properties)?t.properties:void 0;if(Array.isArray(t.required))for(let c of t.required)typeof c=="string"&&!(c in e)&&r.push(`${Xi(n,c)}: required field is missing`);if(a){for(let[c,l]of Object.entries(e))c in a&&r.push(...Gi(l,a[c],Xi(n,c)));if(t.additionalProperties===!1)for(let c of Object.keys(e))c in a||r.push(`${Xi(n,c)}: unexpected property (additionalProperties is false)`)}}return Array.isArray(e)&&tt(t.items)&&e.forEach((a,c)=>{r.push(...Gi(a,t.items,`${o}[${c}]`))}),r}i(Gi,"validateAgainstSchema");var wP=["$ref","$defs","definitions","allOf","anyOf","not","if","then","else","const","patternProperties","propertyNames","dependencies","dependentSchemas","dependentRequired","contains","unevaluatedProperties","unevaluatedItems","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","minLength","maxLength","pattern","minItems","maxItems","uniqueItems","minProperties","maxProperties"];function Vi(e,t,n){if(tt(e)){for(let r of wP)r in e&&!n.has(r)&&n.set(r,t||"(root)");if(tt(e.properties))for(let[r,o]of Object.entries(e.properties))Vi(o,Xi(t,r),n);if(tt(e.items)&&Vi(e.items,`${t||"(root)"}[]`,n),Array.isArray(e.oneOf))for(let r of e.oneOf)Vi(r,`${t||"(root)"}(oneOf)`,n);tt(e.additionalProperties)&&!n.has("additionalProperties (schema form)")&&n.set("additionalProperties (schema form)",t||"(root)")}}i(Vi,"collectUnsupportedKeywords");function eG(e){if(!tt(e))return;let t=new Map;if(Vi(e,"",t),t.size===0)return;let n=[...t.entries()].map(([r,o])=>`\`${r}\` (at ${o})`).join(", ");throw new Error(`outputSchema uses unsupported JSON-Schema keyword(s): ${n}. The workflow validator supports only type, enum, required, properties, items, oneOf, and additionalProperties: false (nested object arrays included). Inline the referenced shapes, drop value-constraint keywords, and use that subset.`)}i(eG,"assertSupportedOutputSchema");function bP(e){let t=e.indexOf("{"),n=e.indexOf("[");return t<0?n:n<0?t:Math.min(t,n)}i(bP,"firstStructureStart");function sb(e){let t=bP(e);if(t<0)return;let n=e[t],r=n==="{"?"}":"]",o=0,s=!1,a=!1;for(let c=t;c<e.length;c+=1){let l=e[c];if(s){a?a=!1:l==="\\"?a=!0:l==='"'&&(s=!1);continue}if(l==='"'){s=!0;continue}if(l===n)o+=1;else if(l===r&&(o-=1,o===0))return e.slice(t,c+1)}}i(sb,"balancedStructure");function vP(e){if(typeof e!="string"||e.trim().length===0)return;let t=/```(?:json)?\s*([\s\S]*?)```/gi,n,r;for(;(n=t.exec(e))!==null;){let o=n[1]?.trim();o&&(r=o)}return r?sb(r)??r:sb(e)}i(vP,"extractJsonCandidate");function Dd(e,t){let n=vP(e);if(n===void 0)return{ok:!1,errors:["no JSON value was found in the output"]};let r;try{r=JSON.parse(n)}catch(s){return{ok:!1,errors:[`output was not valid JSON: ${gP(s)}`]}}let o=Gi(r,t);return{ok:o.length===0,value:r,errors:o}}i(Dd,"evaluateStructuredOutput");function ab(e){return["## Required Output Format","After your analysis, end your response with a single fenced ```json code block containing ONLY a JSON value that matches the JSON Schema below. Put nothing after the closing fence.","Schema:","```json",Yi(e),"```"].join(`
373
373
  `)}i(ab,"buildStructuredOutputInstruction");function cb(e,t){return["Your previous response did not produce a valid result object for the workflow.","Problems:",...e.map(n=>`- ${n}`),"Re-emit ONLY a single fenced ```json code block containing a JSON value that matches this schema. No prose, nothing after the closing fence.","Schema:","```json",Yi(t),"```"].join(`
374
- `)}i(cb,"buildStructuredOutputRepairPrompt");var lb={type:"object",additionalProperties:!1,required:["schemaVersion","outcomes","assertedCoverage"],properties:{schemaVersion:{type:"number",enum:[1]},outcomes:{type:"array",items:{type:"object",additionalProperties:!1,required:["target","disposition","evidenceRefs"],properties:{target:{oneOf:[{type:"object",additionalProperties:!1,required:["actorPath","turnId"],properties:{actorPath:{type:"string"},turnId:{type:"string"}}},{type:"object",additionalProperties:!1,required:["evidenceRef"],properties:{evidenceRef:{type:"string"}}}]},disposition:{type:"string",enum:["confirmed","refuted","unresolved"]},evidenceRefs:{type:"array",items:{type:"string"}}}}},assertedCoverage:{type:"array",items:{type:"string"}}}};function Zi(e){if(!Qi(e)||!jd(e,["schemaVersion","outcomes","assertedCoverage"])||e.schemaVersion!==1||!Array.isArray(e.outcomes)||e.outcomes.length>50||!Array.isArray(e.assertedCoverage)||e.assertedCoverage.length>50)return;let t=db(e.assertedCoverage);if(t===void 0)return;let n=[];for(let r of e.outcomes){let o=kP(r);if(o===void 0)return;n.push(o)}return{schemaVersion:1,outcomes:n,assertedCoverage:[...new Set(t)]}}i(Zi,"parsePatternDispositionEnvelope");function sr(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"&&Number.isFinite(e))return e;if(Array.isArray(e)){let n=[];for(let r of e){let o=sr(r);if(o===void 0)return;n.push(o)}return n}if(!Qi(e))return;let t={};for(let[n,r]of Object.entries(e)){let o=sr(r);if(o===void 0)return;t[n]=o}return t}i(sr,"toAgentMetadataValue");function kP(e){if(!Qi(e)||!jd(e,["target","disposition","evidenceRefs"])||!Qi(e.target)||!jd(e.target,["actorPath","turnId","evidenceRef"])||e.disposition!=="confirmed"&&e.disposition!=="refuted"&&e.disposition!=="unresolved"||!Array.isArray(e.evidenceRefs)||e.evidenceRefs.length>20)return;let t=db(e.evidenceRefs);if(t===void 0)return;let n=Ji(e.target.actorPath),r=Ji(e.target.turnId),o=Ji(e.target.evidenceRef),s=n!==void 0&&r!==void 0;if(s!==(o!==void 0)&&!(!s&&(e.target.actorPath!==void 0||e.target.turnId!==void 0)))return{target:s?{actorPath:n,turnId:r}:{evidenceRef:o},disposition:e.disposition,evidenceRefs:[...new Set(t)]}}i(kP,"parseOutcome");function db(e){let t=[];for(let n of e){let r=Ji(n);if(r===void 0)return;t.push(r)}return t}i(db,"stringArray");function Ji(e){if(typeof e!="string")return;let t=e.trim();return t.length>0&&t.length<=512?t:void 0}i(Ji,"boundedString");function Qi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(Qi,"isRecord");function jd(e,t){let n=new Set(t);return Object.keys(e).every(r=>n.has(r))}i(jd,"hasOnlyKeys");var Fd,es;async function gb(){if(Fd)return Fd;if(!es){let e="./agent.js";es=import("./agent-DJGM4OJ5.js").then(t=>{let n=t.runKodaX;if(typeof n!="function")throw new Error("[child-executor] Agent module loaded but `runKodaX` export is missing or not a function. This indicates an API break in packages/coding/src/agent.ts. Check that `export { runKodaX }` is still present.");return Fd=n,n}).catch(t=>{if(es=void 0,t instanceof Error&&t.message.startsWith("[child-executor]"))throw t;let n=t instanceof Error?t.message:String(t);throw new Error(`[child-executor] Failed to lazy-load agent module (\`${e}\`) for a nested Agent turn. This usually means the @kodax-ai/coding build is broken or out of date. Underlying cause: ${n}`)})}return es}i(gb,"getRunKodaX");var SP=["You are summarizing your own just-completed child-agent report for a parent workflow.","Do not use tools. Do not continue investigation. Produce only the digest."].join(`
374
+ `)}i(cb,"buildStructuredOutputRepairPrompt");var lb={type:"object",additionalProperties:!1,required:["schemaVersion","outcomes","assertedCoverage"],properties:{schemaVersion:{type:"number",enum:[1]},outcomes:{type:"array",items:{type:"object",additionalProperties:!1,required:["target","disposition","evidenceRefs"],properties:{target:{oneOf:[{type:"object",additionalProperties:!1,required:["actorPath","turnId"],properties:{actorPath:{type:"string"},turnId:{type:"string"}}},{type:"object",additionalProperties:!1,required:["evidenceRef"],properties:{evidenceRef:{type:"string"}}}]},disposition:{type:"string",enum:["confirmed","refuted","unresolved"]},evidenceRefs:{type:"array",items:{type:"string"}}}}},assertedCoverage:{type:"array",items:{type:"string"}}}};function Zi(e){if(!Qi(e)||!jd(e,["schemaVersion","outcomes","assertedCoverage"])||e.schemaVersion!==1||!Array.isArray(e.outcomes)||e.outcomes.length>50||!Array.isArray(e.assertedCoverage)||e.assertedCoverage.length>50)return;let t=db(e.assertedCoverage);if(t===void 0)return;let n=[];for(let r of e.outcomes){let o=kP(r);if(o===void 0)return;n.push(o)}return{schemaVersion:1,outcomes:n,assertedCoverage:[...new Set(t)]}}i(Zi,"parsePatternDispositionEnvelope");function sr(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"&&Number.isFinite(e))return e;if(Array.isArray(e)){let n=[];for(let r of e){let o=sr(r);if(o===void 0)return;n.push(o)}return n}if(!Qi(e))return;let t={};for(let[n,r]of Object.entries(e)){let o=sr(r);if(o===void 0)return;t[n]=o}return t}i(sr,"toAgentMetadataValue");function kP(e){if(!Qi(e)||!jd(e,["target","disposition","evidenceRefs"])||!Qi(e.target)||!jd(e.target,["actorPath","turnId","evidenceRef"])||e.disposition!=="confirmed"&&e.disposition!=="refuted"&&e.disposition!=="unresolved"||!Array.isArray(e.evidenceRefs)||e.evidenceRefs.length>20)return;let t=db(e.evidenceRefs);if(t===void 0)return;let n=Ji(e.target.actorPath),r=Ji(e.target.turnId),o=Ji(e.target.evidenceRef),s=n!==void 0&&r!==void 0;if(s!==(o!==void 0)&&!(!s&&(e.target.actorPath!==void 0||e.target.turnId!==void 0)))return{target:s?{actorPath:n,turnId:r}:{evidenceRef:o},disposition:e.disposition,evidenceRefs:[...new Set(t)]}}i(kP,"parseOutcome");function db(e){let t=[];for(let n of e){let r=Ji(n);if(r===void 0)return;t.push(r)}return t}i(db,"stringArray");function Ji(e){if(typeof e!="string")return;let t=e.trim();return t.length>0&&t.length<=512?t:void 0}i(Ji,"boundedString");function Qi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(Qi,"isRecord");function jd(e,t){let n=new Set(t);return Object.keys(e).every(r=>n.has(r))}i(jd,"hasOnlyKeys");var Fd,es;async function gb(){if(Fd)return Fd;if(!es){let e="./agent.js";es=import("./agent-4FABF6WK.js").then(t=>{let n=t.runKodaX;if(typeof n!="function")throw new Error("[child-executor] Agent module loaded but `runKodaX` export is missing or not a function. This indicates an API break in packages/coding/src/agent.ts. Check that `export { runKodaX }` is still present.");return Fd=n,n}).catch(t=>{if(es=void 0,t instanceof Error&&t.message.startsWith("[child-executor]"))throw t;let n=t instanceof Error?t.message:String(t);throw new Error(`[child-executor] Failed to lazy-load agent module (\`${e}\`) for a nested Agent turn. This usually means the @kodax-ai/coding build is broken or out of date. Underlying cause: ${n}`)})}return es}i(gb,"getRunKodaX");var SP=["You are summarizing your own just-completed child-agent report for a parent workflow.","Do not use tools. Do not continue investigation. Produce only the digest."].join(`
375
375
  `),TP=["Create a short user-facing digest of your previous report for the parent workflow.","Return only 2-4 bullet lines.","Each bullet must be concrete: a finding, decision, risk, evidence pointer, unresolved question, or next action.","Use the same natural language as the user request or your report.","Do not include a title, table, generic preamble, or workflow handoff markers."].join(`
376
376
  `),yb=4,wb=1e4,AP=45e3,RP=40;function bb(e,t){return e.historyStorage?{id:`worker-${EP()}`,scope:"managed-task-worker",storage:e.historyStorage,...t&&t.length>0?{initialMessages:[...t]}:{}}:t&&t.length>0?{initialMessages:[...t]}:void 0}i(bb,"buildChildRunSession");function ns(e){let t={};return e.parentOptions.repoIntelligenceMode!==void 0&&(t.repoIntelligenceMode=e.parentOptions.repoIntelligenceMode),e.parentOptions.repoIntelligenceTrace!==void 0&&(t.repoIntelligenceTrace=e.parentOptions.repoIntelligenceTrace),t}i(ns,"inheritRepoIntelligenceContext");async function vb(e,t,n){if(e.length===0)return hb;let r=e.filter(f=>f.readOnly),o=e.filter(f=>!f.readOnly),s=rM(o,n.parentRole,n.parentHarness),a=[...r,...s];if(a.length===0)return hb;let c=[],l=[],d=n.onProgress??(()=>{});d(`Starting ${a.length} child tasks in parallel`);let u=await lu({bundles:a,runOne:i(f=>f.readOnly?zP(f,t,n):GP(f,t,n),"runOne"),maxParallel:n.maxParallel,abortSignal:n.abortSignal,onProgress:i((f,p)=>{f.kind==="start"?d(`[${p.completedCount}/${p.totalCount}] Running: ${f.bundle.id}`):f.kind==="item-done"&&d(`[${p.completedCount}/${p.totalCount}] Done: ${f.bundle.id} \u2192 ${f.result.status}`)},"onProgress")});for(let f of u.results)f.status==="fulfilled"?c.push(f.value):c.push(xn(f.bundle,`[Crash] ${f.reason.message}`,"failed"));for(let f of u.cancelled)l.push(f.id);return nM(a,c,l)}i(vb,"executeChildAgents");function kb(e,t){let n=[...t?.bindingConstraints??[],...e.constraints];return{...t,delegatedObjective:e.objective,bindingConstraints:n,...e.scopeSummary!==void 0?{scopeHint:e.scopeSummary}:{},readOnly:t?.readOnly===!0||e.readOnly}}i(kb,"buildChildPermissionIntent");var CP=["list_dispatchable_agents","spawn_agent","run_workflow","send_message","followup_task","wait_agent","interrupt_agent","list_agents","agent_output","emit_managed_protocol"];function IP(e,t){if(!t)return e;let n=new Set(t.tools),r=n.has("*"),o=new Set(e);for(let s of Bt()){let a=!r&&!n.has(s.name),c=!t.network&&(s.sideEffect==="reads-network"||s.sideEffect==="mutates-network"),l=!t.canAskUser&&s.name==="ask_user_question";(a||c||l)&&o.add(s.name)}return[...o]}i(IP,"restrictToolsForActor");function xb(e,t,n){let r=IP(e,t);return n!==void 0?r:[...new Set([...r,...CP])]}i(xb,"restrictToolsForChildRuntime");function rs(e,t){return t.contextAgentId??e.id}i(rs,"childContextAgentId");function os(e,t){return t.contextParentAgentId??(t.actorControl!==void 0?t.actorParentAgentId:e.currentAgentId)}i(os,"childContextParentAgentId");function ts(e,t,n){if(t.includes(e))return!1;let r=Bt().find(o=>o.name===e);return r?n.toolVisibilityPolicy?.({name:r.name,sideEffect:r.sideEffect,planModeAllowed:r.planModeAllowed===!0})??!0:!1}i(ts,"isChildToolVisible");function Ud(e,t){return t===void 0||t.providers.includes("*")||t.providers.includes(e)}i(Ud,"isProviderAllowed");function Eb(e,t){if(!Ud(e,t))throw new Error(`Child Actor is not authorized to use provider ${e}.`)}i(Eb,"assertChildProviderAllowed");function OP(e){let t=JSON.parse(e);if(typeof t!="object"||t===null||!("path"in t))throw new Error("worktree_create returned an invalid payload");let n=t.path;if(typeof n!="string"||n.length===0)throw new Error("worktree_create returned an invalid path");return n}i(OP,"readWorktreePath");async function _b(e,t){if(e.isolation!=="worktree")return{ctx:t};let n=await xg({description:`workflow-${e.id}`},t),r=OP(n);return{ctx:{...t,gitRoot:r,executionCwd:r},worktreePath:r}}i(_b,"prepareChildIsolationScope");function Sb(e,t){return t.worktreePath?[`[Workflow worktree: ${t.worktreePath}]`,e].join(`
377
377
  `):e}i(Sb,"annotateWorktreeSummary");async function fb(e,t){if(e.worktreePath)try{await _g(e.worktreePath,t);return}catch(n){return`[Workflow worktree cleanup failed: ${n instanceof Error?n.message:String(n)}]`}}i(fb,"cleanupChildIsolationScope");function $P(e,t){return t?{...e,summary:`${e.summary}
@@ -407,4 +407,4 @@ ${Se(o)}
407
407
  ${Se(e.content)}
408
408
  </agent-completed>`}return`<agent-message id="${Se(e.messageId)}" from="${Se(e.senderPath)}" classification="${e.classification}">
409
409
  ${Se(e.content)}
410
- </agent-message>`}i(Kd,"renderMailboxMessage");function yM(e,t){if(!(!t||e.actor.capabilities.providers.includes("*"))&&!e.actor.capabilities.providers.includes(t))throw new Error(`Actor ${e.actor.path} is not authorized to use provider ${t}.`)}i(yM,"assertProviderAuthority");function Se(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;")}i(Se,"escapeXml");function wM(e){return{async admit(t){return e.spentBudget+t.units>e.totalBudget?{admitted:!1,fact:{code:"agent_budget_exhausted",retryable:!1,reason:`shared root work budget exhausted (${e.spentBudget}/${e.totalBudget})`}}:(e.spentBudget+=t.units,{admitted:!0})},async refund(){e.spentBudget=Math.max(0,e.spentBudget-1)},snapshot:i(()=>({...e}),"snapshot")}}i(wM,"managedWorkBudgetPort");function bM(e,t){let n=Ue(e.specialistName);if(n)return n;let r=Ue(e.agentId);if(!(!r||t.actor.kind==="native"))throw new Error(`Agent selector ${r} was not resolved before execution.`)}i(bM,"specialistName");function vM(e){return e==="fast"||e==="balanced"||e==="deep"?e:void 0}i(vM,"modelHint");function kM(e){let t=Ue(e);if(!t)return;let n=En(t);return n==="auto"?void 0:n}i(kM,"effort");function Ue(e){return typeof e=="string"&&e.length>0?e:void 0}i(Ue,"metadataString");function Hb(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}i(Hb,"metadataStringArray");import Xb from"node:path";var xM=80;function EM(e){let t=e.trim().replace(/[^A-Za-z0-9._-]+/g,"_").replace(/^_+|_+$/g,"").slice(0,xM);return!t||t==="."||t===".."?"session":t}i(EM,"sanitizeScratchSessionId");function Gb(e){let t=e.session?.id?.trim();if(!t)return;let n=e.context?.gitRoot?.trim(),r=n?Xb.resolve(n):ue(e.context);return Xb.resolve(r,".agent","tmp","sessions",EM(t))}i(Gb,"getSessionScratchDir");var _M="emit_managed_protocol",KG="kodax-task-contract",SM="kodax-task-verdict",zG="kodax-task-scout",XG="kodax-task-handoff";function TM(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}i(TM,"asRecord");function Vb(e){return e.trim().toLowerCase()===_M}i(Vb,"isManagedProtocolToolName");function Yb(e,t){if(!(!e&&!t))return{verdict:t?.verdict?{...e?.verdict??{},...t.verdict}:e?.verdict}}i(Yb,"mergeManagedProtocolPayload");function AM(e){let t=e.trim().toLowerCase();if(!t)return;let r=t.replace(/[`"'()[\]{}<>]+/g,"").replace(/[.:;!?]+$/g,"").replace(/[_\s-]+/g," ").trim().split(/\s+/,1)[0]??"";if(r){if(/^accept(?:ed|s|ing)?$/.test(r)||r==="approve"||r==="approved")return"accept";if(/^revis(?:e|ed|es|ing)?$/.test(r))return"revise";if(/^block(?:ed|ing)?$/.test(r))return"blocked"}}i(AM,"normalizeManagedVerdictStatus");function RM(e){let t=e.trim();if(!t)return;let n=t.replace(/[`"'()[\]{}<>]+/g,"").replace(/[.:;!?]+$/g,"").replace(/[\s-]+/g,"_").trim().toUpperCase();if(n==="H1_EXECUTE_EVAL"||n==="H1")return"H1_EXECUTE_EVAL";if(n==="H2_PLAN_EXECUTE_EVAL"||n==="H2")return"H2_PLAN_EXECUTE_EVAL"}i(RM,"normalizeManagedNextHarness");function CM(e){return Array.isArray(e)?e.map(t=>String(t).trim()).filter(Boolean):typeof e=="string"?e.split(/\r?\n/).map(t=>t.replace(/^-+\s*/,"").trim()).filter(Boolean):[]}i(CM,"normalizeStringListValue");function GG(e,t,n=""){let r=TM(t);if(!r||e!=="evaluator")return;let o=typeof r.status=="string"?AM(r.status):void 0;if(o)return{verdict:{source:"evaluator",status:o,reason:typeof r.reason=="string"&&r.reason.trim()||void 0,followups:CM(r.followup??r.followups),userFacingText:n,userAnswer:typeof r.user_answer=="string"?r.user_answer.trim()||void 0:typeof r.userAnswer=="string"&&r.userAnswer.trim()||void 0,nextHarness:typeof(r.next_harness??r.nextHarness)=="string"?RM(String(r.next_harness??r.nextHarness)):void 0,budgetRequest:typeof(r.budget_request??r.budgetRequest)=="string"&&String(r.budget_request??r.budgetRequest).trim()||void 0}}}i(GG,"coerceManagedProtocolToolPayload");function VG(e){if(e==="evaluator")return SM}i(VG,"getManagedBlockNameForRole");function YG(e,t){return e&&t==="evaluator"?!!e.verdict:!1}i(YG,"hasManagedProtocolForRole");function JG(e,t){return new RegExp(String.raw`\`\`\`${t}\s*[\s\S]*?\`\`\``,"i").test(e)}i(JG,"textContainsManagedBlock");function Jb(e,t){if(!t||t.length===0)return e;let n=new Set(t);return e.filter(r=>!n.has(r))}i(Jb,"filterExcludedTools");function Qb(e,t,n){return t?e.filter(r=>{let o=Ne(r)??n?.get(r);return o?t({name:o.name,sideEffect:o.sideEffect,planModeAllowed:o.planModeAllowed===!0}):!1}):e}i(Qb,"applyToolVisibilityPolicy");function IM(e,t,n=!1,r,o=!1){let s=dc(t)==="off"?dd(e):e;return n||(s=ud(s)),s=Ql(s,r),s=sd(s,r),o||(s=s.filter(a=>a!=="list_dispatchable_agents")),s}i(IM,"getRuntimeActiveToolNames");function sV(e,t,n=!1,r=!1,o,s,a,c=!1,l){let d=ld(),u=new Set(d.map(m=>m.name)),f=[...d,...(l??[]).filter(m=>!u.has(m.name)).map(ji)];if(e.length===0)return[];let p=new Set(IM(e,t,r,o,c));return f.filter(m=>p.has(m.name)&&(n||!Vb(m.name))).map(m=>{let h=Lo(m,a);if(!Fi(h.name)||s&&s.has(h.name))return h;let g=wn[h.name];return g?{...h,description:g}:h})}i(sV,"getActiveToolDefinitions");import{join as OM}from"node:path";function $M(e,t){if(t&&/^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(t)&&!t.includes(".."))return OM(e,t)}i($M,"resolveResumeFromRunDir");function bV(e){let{options:t,runtime:n,managedProtocolPayloadRef:r,sessionId:o}=e,s=t.events??{},a=ue(t.context),c=Gb(t),l=Qb(Jb([...jt],t.context?.excludeTools),t.context?.toolVisibilityPolicy),d=jt.every(f=>l.includes(f))?Dc({sessionId:o,currentAgentId:t.context?.currentAgentId,sessionScope:t.session?.scope,storage:t.session?.storage}):void 0,u={backups:new Map,actorControl:t.context?.actorControl,actorQueueAgentId:t.context?.actorQueueAgentId,contextIdentitySessionId:t.context?.contextIdentitySessionId??o,actorHost:t.context?.actorHost,managedWorkBudget:t.context?.managedWorkBudget,permissionIntent:t.context?.permissionIntent,gitRoot:t.context?.gitRoot??void 0,sessionId:o,...d!==void 0?{loadSessionHistory:d}:{},taskSurface:t.context?.taskSurface,agentProfile:t.context?.agentProfile,agentScope:t.context?.agentScope,agentExecutorPlane:t.context?.agentExecutorPlane,selfManual:t.selfManual,skillDynamicContext:t.skillDynamicContext,skillRegistry:t.context?.skillRegistry,admitLearnedSkillInvocation:t.context?.admitLearnedSkillInvocation,skillScriptRunner:t.context?.skillScriptRunner,assertReadablePath:t.context?.assertReadablePath,toolVisibilityPolicy:t.context?.toolVisibilityPolicy,excludeTools:t.context?.excludeTools,lspService:t.context?.lspService??nb(),executionCwd:a,shellExecution:t.context?.shellExecution,sandbox:t.sandbox,shellSandbox:t.context?.shellSandbox,trustedTextMutationHost:t.context?.trustedTextMutationHost,workspaceSandboxRoots:t.context?.workspaceSandboxRoots,providerCredentialEnvironmentNames:Jd(),sessionScratchDir:c,extensionRuntime:n,askUser:s.askUser,askUserMulti:s.askUserMulti,askUserInput:s.askUserInput,exitPlanMode:s.exitPlanMode,abortSignal:t.abortSignal,managedProtocolRole:t.context?.managedProtocolEmission?.enabled?t.context.managedProtocolEmission.role:void 0,emitManagedProtocol:t.context?.managedProtocolEmission?.enabled?f=>{r.current=Yb(r.current,f)}:void 0,mutationTracker:t.context?.mutationTracker,planModeBlockCheck:t.context?.planModeBlockCheck,guardrails:t.guardrails,parentAgentConfig:{provider:t.provider,model:t.modelOverride??t.model,reasoningMode:t.reasoningMode,effort:t.effort,repoIntelligenceMode:t.context?.repoIntelligenceMode,repoIntelligenceTrace:t.context?.repoIntelligenceTrace,...t.compaction!==void 0?{compaction:{...t.compaction}}:{},...t.context?.contextDiagnostics!==void 0?{contextDiagnostics:t.context.contextDiagnostics}:{},...t.disablePromptCache!==void 0?{disablePromptCache:t.disablePromptCache}:{},...t.context?.shellExecution!==void 0?{shellExecution:t.context.shellExecution}:{},...t.sandbox!==void 0?{sandbox:t.sandbox}:{},...t.context?.permissionIntent!==void 0?{permissionIntent:t.context.permissionIntent}:{}},parentEvents:s,onChildProgress:void 0,currentAgentId:t.context?.currentAgentId,parentAgentId:t.context?.parentAgentId,sendMessageTurnCounter:{count:0},goalContext:t.context?.goalRuntime?.goalContext};if(!u.actorControl&&(t.agentMode==="ama"||t.context?.actorSession)){let f=t.context?.actorSession??new to({maxConcurrentThreadsPerSession:t.maxConcurrentThreadsPerSession,sessionId:o});u.actorHost=f,u.actorControl=f.attach(u,t)}return u.workflowHost=MM(t,o,u.actorControl,u.actorHost),u}i(bV,"buildToolExecutionContext");function PM(e,t){return{...t?{sessionId:t}:{},...e.context?.agentProfile?.surface?{surface:e.context.agentProfile.surface}:{},...e.context?.taskSurface?{taskSurface:e.context.taskSurface}:{},...e.context?.gitRoot?{projectRoot:e.context.gitRoot}:{}}}i(PM,"buildWorkflowHostMetadata");function MM(e,t,n,r){let o=e.workflowRunsBaseDir;if(process.env.KODAX_DEBUG_WORKFLOW_GATE){let a=o===void 0?"no-host: workflowRunsBaseDir undefined":e.agentMode!=="ama"?`no-host: agentMode=${String(e.agentMode)} (need ama)`:e.context?.workflowIntent!=="explicit"?"no-host: explicit Workflow intent absent":"host wired";_({source:"coding:workflow-gate",level:"debug",message:"Workflow host gate evaluated.",detail:{agentMode:e.agentMode,runsBaseDir:o,decision:a}})}if(o===void 0||e.agentMode!=="ama"||e.context?.workflowIntent!=="explicit")return;let s=i(async({manifest:a,source:c,args:l,resumeFromRunId:d,signal:u})=>{let[{startManagedWorkflow:f},{getDefaultWorkflowRunManager:p}]=await Promise.all([import("./host-CXUVSQP6.js"),import("./run-manager-EMPT7N63.js")]),m=[e.abortSignal,u].filter(k=>k!==void 0),h=m.length===0?void 0:m.length===1?m[0]:AbortSignal.any(m),g=n&&r?{...e,context:{...e.context,actorControl:n,actorHost:r}}:e,w=await f({source:{kind:"inline",manifest:a,source:c},args:l,options:g,runsBaseDir:o,manager:p(),...(()=>{let k=$M(o,d);return k?{resumeFromRunDir:k}:{}})(),...h?{signal:h}:{},processMetadata:{hostMetadata:PM(e,t)}});if(w.kind==="declined")return{kind:"declined",reason:w.reason};let y=w.qualityWarnings?.map(k=>`${k.code}: ${k.message}`),b=w.managed.done.then(k=>{let v=w.managed.getSnapshot?.(),S=k.kind==="completed"?k.state.events.reduce((A,F)=>{if(F.type==="agent_unverified"){let C=F.data?.name??F.data?.taskId;A.push(typeof C=="string"&&C.length>0?C:"agent")}return A},[]):[];return{kind:"started",runId:w.runId,...v?.status!==void 0?{status:v.status}:{},...v?.resultText!==void 0?{resultText:v.resultText}:{},...v?.error!==void 0?{error:v.error}:{},...S.length>0?{verificationWarnings:S}:{},...y&&y.length>0?{workflowQualityWarnings:y}:{}}});return{kind:"started",runId:w.runId,done:b,...y&&y.length>0?{workflowQualityWarnings:y}:{}}},"startInline");return{startInline:s,runInline:i(async a=>{let c=await s(a);return c.kind==="declined"?{kind:"declined",reason:c.reason}:await c.done},"runInline")}}i(MM,"buildWorkflowToolHost");export{ue as a,q as b,me as c,xs as d,av as e,UM as f,cv as g,Tt as h,Iu as i,qM as j,qe as k,_s as l,s0 as m,a0 as n,ne as o,Ls as p,Ns as q,u0 as r,f0 as s,Fs as t,of as u,So as v,To as w,gr as x,O0 as y,Tf as z,Af as A,W0 as B,B0 as C,H0 as D,K0 as E,Ys as F,Js as G,Dt as H,qT as I,Cc as J,BL as K,XL as L,GL as M,Of as N,Yt as O,In as P,Qs as Q,Co as R,Ge as S,yr as T,wr as U,Xk as V,Io as W,Jt as X,na as Y,Lr as Z,XU as _,GU as $,Nr as aa,ZU as ba,e1 as ca,t1 as da,i1 as ea,WA as fa,s1 as ga,Ff as ha,cN as ia,Uf as ja,Hf as ka,ia as la,Lo as ma,Uh as na,m1 as oa,qh as pa,h1 as qa,g1 as ra,y1 as sa,w1 as ta,wi as ua,k1 as va,Wh as wa,vN as xa,aa as ya,la as za,Xx as Aa,Gx as Ba,da as Ca,ya as Da,wa as Ea,yp as Fa,Sr as Ga,Er as Ha,sE as Ia,xr as Ja,ua as Ka,pp as La,_a as Ma,Sa as Na,Tr as Oa,Aa as Pa,Ra as Qa,st as Ra,qn as Sa,Kj as Ta,sm as Ua,Fa as Va,Ua as Wa,am as Xa,qa as Ya,Wa as Za,Ba as _a,Ha as $a,za as ab,Xa as bb,Ga as cb,Va as db,Cr as eb,fe as fb,IS as gb,dc as hb,qF as ib,WF as jb,BF as kb,Or as lb,ci as mb,li as nb,$r as ob,KS as pb,zS as qb,HF as rb,uc as sb,fc as tb,pc as ub,mc as vb,on as wb,gc as xb,ui as yb,yc as zb,oh as Ab,ee as Bb,bc as Cb,vc as Db,kc as Eb,xc as Fb,PU as Gb,MU as Hb,LU as Ib,PT as Jb,mi as Kb,NU as Lb,qr as Mb,He as Nb,ki as Ob,Pw as Pb,YI as Qb,JI as Rb,Fr as Sb,Ag as Tb,sl as Ub,al as Vb,Gq as Wb,Bg as Xb,Hg as Yb,Zq as Zb,Kg as _b,oW as $b,iW as ac,sW as bc,aW as cc,cW as dc,lW as ec,zg as fc,Yg as gc,gl as hc,MC as ic,RO as jc,YK as kc,fd as lc,ji as mc,JK as nc,wn as oc,Fi as pc,e2 as qc,cw as rc,lw as sc,$O as tc,hw as uc,gw as vc,Yr as wc,e$ as xc,bd as yc,vd as zc,v2 as Ac,r$ as Bc,o$ as Cc,k2 as Dc,Ur as Ec,Ai as Fc,Ut as Gc,pt as Hc,vl as Ic,Rl as Jc,Br as Kc,Hr as Lc,my as Mc,hy as Nc,Ol as Oc,mt as Pc,iI as Qc,Ml as Rc,Zn as Sc,er as Tc,lI as Uc,Kr as Vc,pI as Wc,bI as Xc,vI as Yc,fn as Zc,zr as _c,Xr as $c,AI as ad,Wl as bd,pn as cd,mn as dd,CI as ed,II as fd,OI as gd,DI as hd,FI as id,HI as jd,Li as kd,Cy as ld,XI as md,GI as nd,kd as od,xd as pd,N2 as qd,D2 as rd,j2 as sd,F2 as td,U2 as ud,Jr as vd,qi as wd,Sw as xd,Rw as yd,wO as zd,tr as Ad,bO as Bd,rr as Cd,Ne as Dd,hn as Ed,vO as Fd,cd as Gd,kO as Hd,xO as Id,Bt as Jd,EO as Kd,_O as Ld,SO as Md,TO as Nd,AO as Od,yt as Pd,ld as Qd,P$ as Rd,kl as Sd,Vy as Td,Yy as Ud,lO as Vd,dO as Wd,pO as Xd,mO as Yd,hO as Zd,K$ as _d,Lw as $d,Nw as ae,Gb as be,_M as ce,KG as de,SM as ee,zG as fe,XG as ge,Vb as he,Yb as ie,GG as je,VG as ke,YG as le,JG as me,Dw as ne,zw as oe,Md as pe,nb as qe,KX as re,Gi as se,eG as te,Zi as ue,vb as ve,TG as we,to as xe,NG as ye,DG as ze,Jb as Ae,Qb as Be,IM as Ce,sV as De,bV as Ee};
410
+ </agent-message>`}i(Kd,"renderMailboxMessage");function yM(e,t){if(!(!t||e.actor.capabilities.providers.includes("*"))&&!e.actor.capabilities.providers.includes(t))throw new Error(`Actor ${e.actor.path} is not authorized to use provider ${t}.`)}i(yM,"assertProviderAuthority");function Se(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;")}i(Se,"escapeXml");function wM(e){return{async admit(t){return e.spentBudget+t.units>e.totalBudget?{admitted:!1,fact:{code:"agent_budget_exhausted",retryable:!1,reason:`shared root work budget exhausted (${e.spentBudget}/${e.totalBudget})`}}:(e.spentBudget+=t.units,{admitted:!0})},async refund(){e.spentBudget=Math.max(0,e.spentBudget-1)},snapshot:i(()=>({...e}),"snapshot")}}i(wM,"managedWorkBudgetPort");function bM(e,t){let n=Ue(e.specialistName);if(n)return n;let r=Ue(e.agentId);if(!(!r||t.actor.kind==="native"))throw new Error(`Agent selector ${r} was not resolved before execution.`)}i(bM,"specialistName");function vM(e){return e==="fast"||e==="balanced"||e==="deep"?e:void 0}i(vM,"modelHint");function kM(e){let t=Ue(e);if(!t)return;let n=En(t);return n==="auto"?void 0:n}i(kM,"effort");function Ue(e){return typeof e=="string"&&e.length>0?e:void 0}i(Ue,"metadataString");function Hb(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}i(Hb,"metadataStringArray");import Xb from"node:path";var xM=80;function EM(e){let t=e.trim().replace(/[^A-Za-z0-9._-]+/g,"_").replace(/^_+|_+$/g,"").slice(0,xM);return!t||t==="."||t===".."?"session":t}i(EM,"sanitizeScratchSessionId");function Gb(e){let t=e.session?.id?.trim();if(!t)return;let n=e.context?.gitRoot?.trim(),r=n?Xb.resolve(n):ue(e.context);return Xb.resolve(r,".agent","tmp","sessions",EM(t))}i(Gb,"getSessionScratchDir");var _M="emit_managed_protocol",KG="kodax-task-contract",SM="kodax-task-verdict",zG="kodax-task-scout",XG="kodax-task-handoff";function TM(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:void 0}i(TM,"asRecord");function Vb(e){return e.trim().toLowerCase()===_M}i(Vb,"isManagedProtocolToolName");function Yb(e,t){if(!(!e&&!t))return{verdict:t?.verdict?{...e?.verdict??{},...t.verdict}:e?.verdict}}i(Yb,"mergeManagedProtocolPayload");function AM(e){let t=e.trim().toLowerCase();if(!t)return;let r=t.replace(/[`"'()[\]{}<>]+/g,"").replace(/[.:;!?]+$/g,"").replace(/[_\s-]+/g," ").trim().split(/\s+/,1)[0]??"";if(r){if(/^accept(?:ed|s|ing)?$/.test(r)||r==="approve"||r==="approved")return"accept";if(/^revis(?:e|ed|es|ing)?$/.test(r))return"revise";if(/^block(?:ed|ing)?$/.test(r))return"blocked"}}i(AM,"normalizeManagedVerdictStatus");function RM(e){let t=e.trim();if(!t)return;let n=t.replace(/[`"'()[\]{}<>]+/g,"").replace(/[.:;!?]+$/g,"").replace(/[\s-]+/g,"_").trim().toUpperCase();if(n==="H1_EXECUTE_EVAL"||n==="H1")return"H1_EXECUTE_EVAL";if(n==="H2_PLAN_EXECUTE_EVAL"||n==="H2")return"H2_PLAN_EXECUTE_EVAL"}i(RM,"normalizeManagedNextHarness");function CM(e){return Array.isArray(e)?e.map(t=>String(t).trim()).filter(Boolean):typeof e=="string"?e.split(/\r?\n/).map(t=>t.replace(/^-+\s*/,"").trim()).filter(Boolean):[]}i(CM,"normalizeStringListValue");function GG(e,t,n=""){let r=TM(t);if(!r||e!=="evaluator")return;let o=typeof r.status=="string"?AM(r.status):void 0;if(o)return{verdict:{source:"evaluator",status:o,reason:typeof r.reason=="string"&&r.reason.trim()||void 0,followups:CM(r.followup??r.followups),userFacingText:n,userAnswer:typeof r.user_answer=="string"?r.user_answer.trim()||void 0:typeof r.userAnswer=="string"&&r.userAnswer.trim()||void 0,nextHarness:typeof(r.next_harness??r.nextHarness)=="string"?RM(String(r.next_harness??r.nextHarness)):void 0,budgetRequest:typeof(r.budget_request??r.budgetRequest)=="string"&&String(r.budget_request??r.budgetRequest).trim()||void 0}}}i(GG,"coerceManagedProtocolToolPayload");function VG(e){if(e==="evaluator")return SM}i(VG,"getManagedBlockNameForRole");function YG(e,t){return e&&t==="evaluator"?!!e.verdict:!1}i(YG,"hasManagedProtocolForRole");function JG(e,t){return new RegExp(String.raw`\`\`\`${t}\s*[\s\S]*?\`\`\``,"i").test(e)}i(JG,"textContainsManagedBlock");function Jb(e,t){if(!t||t.length===0)return e;let n=new Set(t);return e.filter(r=>!n.has(r))}i(Jb,"filterExcludedTools");function Qb(e,t,n){return t?e.filter(r=>{let o=Ne(r)??n?.get(r);return o?t({name:o.name,sideEffect:o.sideEffect,planModeAllowed:o.planModeAllowed===!0}):!1}):e}i(Qb,"applyToolVisibilityPolicy");function IM(e,t,n=!1,r,o=!1){let s=dc(t)==="off"?dd(e):e;return n||(s=ud(s)),s=Ql(s,r),s=sd(s,r),o||(s=s.filter(a=>a!=="list_dispatchable_agents")),s}i(IM,"getRuntimeActiveToolNames");function sV(e,t,n=!1,r=!1,o,s,a,c=!1,l){let d=ld(),u=new Set(d.map(m=>m.name)),f=[...d,...(l??[]).filter(m=>!u.has(m.name)).map(ji)];if(e.length===0)return[];let p=new Set(IM(e,t,r,o,c));return f.filter(m=>p.has(m.name)&&(n||!Vb(m.name))).map(m=>{let h=Lo(m,a);if(!Fi(h.name)||s&&s.has(h.name))return h;let g=wn[h.name];return g?{...h,description:g}:h})}i(sV,"getActiveToolDefinitions");import{join as OM}from"node:path";function $M(e,t){if(t&&/^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(t)&&!t.includes(".."))return OM(e,t)}i($M,"resolveResumeFromRunDir");function bV(e){let{options:t,runtime:n,managedProtocolPayloadRef:r,sessionId:o}=e,s=t.events??{},a=ue(t.context),c=Gb(t),l=Qb(Jb([...jt],t.context?.excludeTools),t.context?.toolVisibilityPolicy),d=jt.every(f=>l.includes(f))?Dc({sessionId:o,currentAgentId:t.context?.currentAgentId,sessionScope:t.session?.scope,storage:t.session?.storage}):void 0,u={backups:new Map,actorControl:t.context?.actorControl,actorQueueAgentId:t.context?.actorQueueAgentId,contextIdentitySessionId:t.context?.contextIdentitySessionId??o,actorHost:t.context?.actorHost,managedWorkBudget:t.context?.managedWorkBudget,permissionIntent:t.context?.permissionIntent,gitRoot:t.context?.gitRoot??void 0,sessionId:o,...d!==void 0?{loadSessionHistory:d}:{},taskSurface:t.context?.taskSurface,agentProfile:t.context?.agentProfile,agentScope:t.context?.agentScope,agentExecutorPlane:t.context?.agentExecutorPlane,selfManual:t.selfManual,skillDynamicContext:t.skillDynamicContext,skillRegistry:t.context?.skillRegistry,admitLearnedSkillInvocation:t.context?.admitLearnedSkillInvocation,skillScriptRunner:t.context?.skillScriptRunner,assertReadablePath:t.context?.assertReadablePath,toolVisibilityPolicy:t.context?.toolVisibilityPolicy,excludeTools:t.context?.excludeTools,lspService:t.context?.lspService??nb(),executionCwd:a,shellExecution:t.context?.shellExecution,sandbox:t.sandbox,shellSandbox:t.context?.shellSandbox,trustedTextMutationHost:t.context?.trustedTextMutationHost,workspaceSandboxRoots:t.context?.workspaceSandboxRoots,providerCredentialEnvironmentNames:Jd(),sessionScratchDir:c,extensionRuntime:n,askUser:s.askUser,askUserMulti:s.askUserMulti,askUserInput:s.askUserInput,exitPlanMode:s.exitPlanMode,abortSignal:t.abortSignal,managedProtocolRole:t.context?.managedProtocolEmission?.enabled?t.context.managedProtocolEmission.role:void 0,emitManagedProtocol:t.context?.managedProtocolEmission?.enabled?f=>{r.current=Yb(r.current,f)}:void 0,mutationTracker:t.context?.mutationTracker,planModeBlockCheck:t.context?.planModeBlockCheck,guardrails:t.guardrails,parentAgentConfig:{provider:t.provider,model:t.modelOverride??t.model,reasoningMode:t.reasoningMode,effort:t.effort,repoIntelligenceMode:t.context?.repoIntelligenceMode,repoIntelligenceTrace:t.context?.repoIntelligenceTrace,...t.compaction!==void 0?{compaction:{...t.compaction}}:{},...t.context?.contextDiagnostics!==void 0?{contextDiagnostics:t.context.contextDiagnostics}:{},...t.disablePromptCache!==void 0?{disablePromptCache:t.disablePromptCache}:{},...t.context?.shellExecution!==void 0?{shellExecution:t.context.shellExecution}:{},...t.sandbox!==void 0?{sandbox:t.sandbox}:{},...t.context?.permissionIntent!==void 0?{permissionIntent:t.context.permissionIntent}:{}},parentEvents:s,onChildProgress:void 0,currentAgentId:t.context?.currentAgentId,parentAgentId:t.context?.parentAgentId,sendMessageTurnCounter:{count:0},goalContext:t.context?.goalRuntime?.goalContext};if(!u.actorControl&&(t.agentMode==="ama"||t.context?.actorSession)){let f=t.context?.actorSession??new to({maxConcurrentThreadsPerSession:t.maxConcurrentThreadsPerSession,sessionId:o});u.actorHost=f,u.actorControl=f.attach(u,t)}return u.workflowHost=MM(t,o,u.actorControl,u.actorHost),u}i(bV,"buildToolExecutionContext");function PM(e,t){return{...t?{sessionId:t}:{},...e.context?.agentProfile?.surface?{surface:e.context.agentProfile.surface}:{},...e.context?.taskSurface?{taskSurface:e.context.taskSurface}:{},...e.context?.gitRoot?{projectRoot:e.context.gitRoot}:{}}}i(PM,"buildWorkflowHostMetadata");function MM(e,t,n,r){let o=e.workflowRunsBaseDir;if(process.env.KODAX_DEBUG_WORKFLOW_GATE){let a=o===void 0?"no-host: workflowRunsBaseDir undefined":e.agentMode!=="ama"?`no-host: agentMode=${String(e.agentMode)} (need ama)`:e.context?.workflowIntent!=="explicit"?"no-host: explicit Workflow intent absent":"host wired";_({source:"coding:workflow-gate",level:"debug",message:"Workflow host gate evaluated.",detail:{agentMode:e.agentMode,runsBaseDir:o,decision:a}})}if(o===void 0||e.agentMode!=="ama"||e.context?.workflowIntent!=="explicit")return;let s=i(async({manifest:a,source:c,args:l,resumeFromRunId:d,signal:u})=>{let[{startManagedWorkflow:f},{getDefaultWorkflowRunManager:p}]=await Promise.all([import("./host-VIHV7ADG.js"),import("./run-manager-NBVMU3KV.js")]),m=[e.abortSignal,u].filter(k=>k!==void 0),h=m.length===0?void 0:m.length===1?m[0]:AbortSignal.any(m),g=n&&r?{...e,context:{...e.context,actorControl:n,actorHost:r}}:e,w=await f({source:{kind:"inline",manifest:a,source:c},args:l,options:g,runsBaseDir:o,manager:p(),...(()=>{let k=$M(o,d);return k?{resumeFromRunDir:k}:{}})(),...h?{signal:h}:{},processMetadata:{hostMetadata:PM(e,t)}});if(w.kind==="declined")return{kind:"declined",reason:w.reason};let y=w.qualityWarnings?.map(k=>`${k.code}: ${k.message}`),b=w.managed.done.then(k=>{let v=w.managed.getSnapshot?.(),S=k.kind==="completed"?k.state.events.reduce((A,F)=>{if(F.type==="agent_unverified"){let C=F.data?.name??F.data?.taskId;A.push(typeof C=="string"&&C.length>0?C:"agent")}return A},[]):[];return{kind:"started",runId:w.runId,...v?.status!==void 0?{status:v.status}:{},...v?.resultText!==void 0?{resultText:v.resultText}:{},...v?.error!==void 0?{error:v.error}:{},...S.length>0?{verificationWarnings:S}:{},...y&&y.length>0?{workflowQualityWarnings:y}:{}}});return{kind:"started",runId:w.runId,done:b,...y&&y.length>0?{workflowQualityWarnings:y}:{}}},"startInline");return{startInline:s,runInline:i(async a=>{let c=await s(a);return c.kind==="declined"?{kind:"declined",reason:c.reason}:await c.done},"runInline")}}i(MM,"buildWorkflowToolHost");export{ue as a,q as b,me as c,xs as d,av as e,UM as f,cv as g,Tt as h,Iu as i,qM as j,qe as k,_s as l,s0 as m,a0 as n,ne as o,Ls as p,Ns as q,u0 as r,f0 as s,Fs as t,of as u,So as v,To as w,gr as x,O0 as y,Tf as z,Af as A,W0 as B,B0 as C,H0 as D,K0 as E,Ys as F,Js as G,Dt as H,qT as I,Cc as J,BL as K,XL as L,GL as M,Of as N,Yt as O,In as P,Qs as Q,Co as R,Ge as S,yr as T,wr as U,Xk as V,Io as W,Jt as X,na as Y,Lr as Z,XU as _,GU as $,Nr as aa,ZU as ba,e1 as ca,t1 as da,i1 as ea,WA as fa,s1 as ga,Ff as ha,cN as ia,Uf as ja,Hf as ka,ia as la,Lo as ma,Uh as na,m1 as oa,qh as pa,h1 as qa,g1 as ra,y1 as sa,w1 as ta,wi as ua,k1 as va,Wh as wa,vN as xa,aa as ya,la as za,Xx as Aa,Gx as Ba,da as Ca,ya as Da,wa as Ea,yp as Fa,Sr as Ga,Er as Ha,sE as Ia,xr as Ja,ua as Ka,pp as La,_a as Ma,Sa as Na,Tr as Oa,Aa as Pa,Ra as Qa,st as Ra,qn as Sa,Kj as Ta,sm as Ua,Fa as Va,Ua as Wa,am as Xa,qa as Ya,Wa as Za,Ba as _a,Ha as $a,za as ab,Xa as bb,Ga as cb,Va as db,Cr as eb,fe as fb,IS as gb,dc as hb,qF as ib,WF as jb,BF as kb,Or as lb,ci as mb,li as nb,$r as ob,KS as pb,zS as qb,HF as rb,uc as sb,fc as tb,pc as ub,mc as vb,on as wb,gc as xb,ui as yb,yc as zb,oh as Ab,ee as Bb,bc as Cb,vc as Db,kc as Eb,xc as Fb,PU as Gb,MU as Hb,LU as Ib,PT as Jb,mi as Kb,NU as Lb,qr as Mb,He as Nb,ki as Ob,Pw as Pb,YI as Qb,JI as Rb,Fr as Sb,Ag as Tb,sl as Ub,al as Vb,Gq as Wb,Bg as Xb,Hg as Yb,Zq as Zb,Kg as _b,oW as $b,iW as ac,sW as bc,aW as cc,cW as dc,lW as ec,zg as fc,Yg as gc,gl as hc,MC as ic,RO as jc,YK as kc,fd as lc,ji as mc,JK as nc,wn as oc,Fi as pc,e2 as qc,cw as rc,lw as sc,$O as tc,hw as uc,gw as vc,Yr as wc,e$ as xc,bd as yc,vd as zc,v2 as Ac,r$ as Bc,o$ as Cc,k2 as Dc,Ur as Ec,Ai as Fc,Ut as Gc,pt as Hc,vl as Ic,Rl as Jc,Br as Kc,Hr as Lc,my as Mc,hy as Nc,Ol as Oc,mt as Pc,iI as Qc,Ml as Rc,Zn as Sc,er as Tc,lI as Uc,Kr as Vc,pI as Wc,bI as Xc,vI as Yc,fn as Zc,zr as _c,Xr as $c,AI as ad,Wl as bd,pn as cd,mn as dd,CI as ed,II as fd,OI as gd,DI as hd,FI as id,HI as jd,Li as kd,Cy as ld,XI as md,GI as nd,kd as od,xd as pd,N2 as qd,D2 as rd,j2 as sd,F2 as td,U2 as ud,Jr as vd,qi as wd,Sw as xd,Rw as yd,wO as zd,tr as Ad,bO as Bd,rr as Cd,Ne as Dd,hn as Ed,vO as Fd,cd as Gd,kO as Hd,xO as Id,Bt as Jd,EO as Kd,_O as Ld,SO as Md,TO as Nd,AO as Od,yt as Pd,ld as Qd,P$ as Rd,kl as Sd,Vy as Td,Yy as Ud,lO as Vd,dO as Wd,pO as Xd,mO as Yd,hO as Zd,K$ as _d,Lw as $d,Nw as ae,Gb as be,_M as ce,KG as de,SM as ee,zG as fe,XG as ge,Vb as he,Yb as ie,GG as je,VG as ke,YG as le,JG as me,Dw as ne,zw as oe,Md as pe,nb as qe,KX as re,Gi as se,eG as te,Zi as ue,vb as ve,TG as we,to as xe,NG as ye,DG as ze,Jb as Ae,Qb as Be,IM as Ce,sV as De,bV as Ee};