@kodax-ai/kodax 0.7.73 → 0.7.74

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 (69) hide show
  1. package/CHANGELOG.md +134 -0
  2. package/README.md +26 -6
  3. package/README_CN.md +23 -5
  4. package/config-templates/config.example.jsonc +7 -0
  5. package/dist/chunks/{agent-T6PGT6AU.js → agent-2ABIG5NW.js} +1 -1
  6. package/dist/chunks/argument-completer-C45DEO34.js +2 -0
  7. package/dist/chunks/chunk-5GH3SVI3.js +74 -0
  8. package/dist/chunks/{chunk-6JTWXGVU.js → chunk-7W6KYJU2.js} +225 -225
  9. package/dist/chunks/chunk-C7TZAT3S.js +369 -0
  10. package/dist/chunks/chunk-KPGVY6PF.js +321 -0
  11. package/dist/chunks/{chunk-6RI2RBTF.js → chunk-MVCAFD6M.js} +1 -1
  12. package/dist/chunks/{chunk-BUPJGG3C.js → chunk-PP53SIIL.js} +1 -1
  13. package/dist/chunks/chunk-QH56WEHK.js +2 -0
  14. package/dist/chunks/chunk-UJS7JAO6.js +770 -0
  15. package/dist/chunks/{chunk-M7FXNPWV.js → chunk-VK5QTHS6.js} +6 -6
  16. package/dist/chunks/chunk-VPURXE2F.js +427 -0
  17. package/dist/chunks/chunk-XM724XAA.js +329 -0
  18. package/dist/chunks/{chunk-MLEAQTCD.js → chunk-XMP66YWG.js} +11 -4
  19. package/dist/chunks/{compaction-config-IHJBP4GO.js → compaction-config-QYCDOW3Q.js} +1 -1
  20. package/dist/chunks/{construction-bootstrap-EGRUHKLP.js → construction-bootstrap-BKNPJI7O.js} +1 -1
  21. package/dist/chunks/dist-6EK4H7TP.js +2 -0
  22. package/dist/chunks/host-KS4TJKWQ.js +2 -0
  23. package/dist/chunks/{run-manager-AY7RQOWM.js → run-manager-L7MKGQNX.js} +1 -1
  24. package/dist/chunks/{utils-2GAE4XIM.js → utils-GTJLL4GT.js} +1 -1
  25. package/dist/index.d.ts +12 -11
  26. package/dist/index.js +5 -5
  27. package/dist/kodax_cli.js +1295 -1253
  28. package/dist/runtime-worker.js +1208 -1166
  29. package/dist/sdk-a2a.d.ts +9 -8
  30. package/dist/sdk-a2a.js +1 -1
  31. package/dist/sdk-agent.d.ts +107 -59
  32. package/dist/sdk-agent.js +1 -1
  33. package/dist/sdk-coding.d.ts +32 -16
  34. package/dist/sdk-coding.js +1 -1
  35. package/dist/sdk-mcp.js +1 -1
  36. package/dist/sdk-media.js +1 -1
  37. package/dist/sdk-repl.d.ts +27 -20
  38. package/dist/sdk-repl.js +2 -2
  39. package/dist/sdk-runtime.d.ts +151 -14
  40. package/dist/sdk-runtime.js +1 -1
  41. package/dist/sdk-session.d.ts +4 -4
  42. package/dist/sdk-session.js +1 -1
  43. package/dist/sdk-skills.js +1 -1
  44. package/dist/semantic-worker.js +16 -14
  45. package/dist/types-chunks/{bash-prefix-extractor.d-bApf5nGw.d.ts → bash-prefix-extractor.d-r1beOESM.d.ts} +48 -12
  46. package/dist/types-chunks/{capsule.d-CGWltwno.d.ts → capsule.d-zeqV4IQX.d.ts} +10 -2
  47. package/dist/types-chunks/{commands.d-CEHGwRok.d.ts → commands.d-DUxnK2TU.d.ts} +10 -7
  48. package/dist/types-chunks/{guardrail.d-CC4vAQl7.d.ts → guardrail.d-CWYD1bdL.d.ts} +1 -1
  49. package/dist/types-chunks/{guardrail.d-CXIPlWP3.d.ts → guardrail.d-qjuKJZ31.d.ts} +72 -11
  50. package/dist/types-chunks/history-retrieval.d-BKTJIrVd.d.ts +57 -0
  51. package/dist/types-chunks/{public-api.d-FBmX0kxo.d.ts → public-api.d-CX4B11qY.d.ts} +17 -4
  52. package/dist/types-chunks/{run-manager.d-DUNnJcpE.d.ts → run-manager.d-B9fEIjZk.d.ts} +1 -1
  53. package/dist/types-chunks/{sdk-session-XqacVOs8.d.ts → sdk-session-B0fhAOPa.d.ts} +2 -2
  54. package/dist/types-chunks/{types.d-DKr6TCXL.d.ts → types.d-Bm_y6YuM.d.ts} +2 -2
  55. package/dist/types-chunks/{types.d-DgciGHoG.d.ts → types.d-DEctY20M.d.ts} +9 -2
  56. package/dist/types-chunks/{types.d-BnPhGmar.d.ts → types.d-sRLugmjy.d.ts} +61 -14
  57. package/dist/types-chunks/{utils.d-BPYX7-KN.d.ts → utils.d-D0wPxz8y.d.ts} +5 -5
  58. package/docs/SDK_EMBEDDER_GUIDE.md +1956 -1684
  59. package/package.json +8 -1
  60. package/dist/chunks/argument-completer-QGMWA2C3.js +0 -2
  61. package/dist/chunks/chunk-AGDDM5AW.js +0 -329
  62. package/dist/chunks/chunk-EAD4SF3Z.js +0 -413
  63. package/dist/chunks/chunk-HVCNAZ52.js +0 -365
  64. package/dist/chunks/chunk-OG6DRNKV.js +0 -755
  65. package/dist/chunks/chunk-PFH53O4M.js +0 -2
  66. package/dist/chunks/chunk-V4F6IYNK.js +0 -73
  67. package/dist/chunks/chunk-WQ6PWGK5.js +0 -320
  68. package/dist/chunks/dist-5N3I2RTW.js +0 -2
  69. package/dist/chunks/host-MECITNE3.js +0 -2
@@ -1,5 +1,5 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{T as xe,V as be}from"./chunk-AGDDM5AW.js";import{C as z,Ca as H,F as V,G as ue,H as q,Ma as ve,Qa as ye,ma as de,na as fe,oa as pe,pa as me,q as le,qa as ge,ra as W,ya as he,za as C}from"./chunk-XXQLPTAN.js";import{Fa as we}from"./chunk-OG6DRNKV.js";import{e as Ee}from"./chunk-GAFFYJU3.js";import{a as o}from"./chunk-ONUPGMER.js";import u from"fs";import p from"path";import{exec as tt,spawnSync as nt}from"child_process";import{promisify as rt}from"util";import{fileURLToPath as ot}from"url";var J="en";function Ue(){return(process.env.LC_ALL||process.env.LC_MESSAGES||process.env.LANG||"").toLowerCase().startsWith("zh")?"zh":"en"}o(Ue,"detectSystemLocale");function Se(e){if(!e||e==="auto"){J=Ue();return}J=e.toLowerCase().replace(/[-_].*/,"")==="zh"?"zh":"en"}o(Se,"setLocale");var Pe={en:{"dialog.confirm":"[Confirm]","dialog.select":"[Select]","dialog.input":"[Input]","confirm.instruction.basic":"Press (y) yes, (n) no","confirm.instruction.always":"Press (y) yes, (a) always yes for this tool, (n) no","confirm.instruction.runtime_session":"Press (y) allow once, (s) allow this Runtime scope for the session, (n) no","confirm.instruction.runtime_persistent":"Press (y) allow once, (s) allow this Runtime scope for the session, (a) always allow this Runtime scope, (n) no","confirm.instruction.protected":"Press (y) to confirm, (n) to cancel (protected path)","confirm.result.approved":"Approved","confirm.result.approved_always":"Approved (always)","confirm.result.approved_session":"Approved (this session)","confirm.result.denied":"Denied","tool.bash.title":"Execute bash command?","tool.shell.title":"Execute shell command?","tool.write.title":"Write to file?","tool.edit.title":"Edit file?","tool.generic.title":"Execute {tool}?","field.reason":"Reason","field.intent":"Intent","field.target":"Target","field.scope":"Scope","field.risk":"Risk","field.summary":"Summary","intent.read":"Read project files","intent.delete":"Delete files","intent.deps":"Modify dependencies or environment","intent.modify":"Modify files","intent.execute":"Execute command","intent.write_file":"Write file","intent.edit_file":"Edit file","intent.use_tool":"Use {tool}","risk.destructive":"Destructive change","risk.deps":"May change dependencies or local tools","risk.modify":"May modify files","risk.unknown":"Command effects depend on its arguments","risk.network":"May access network","scope.outside":"Outside project","scope.protected":"Protected path","waiting.confirm":"Waiting: approval required","waiting.select":"Waiting: choose an option","waiting.input":"Waiting: answer the prompt","placeholder.confirm":"Respond to the approval prompt above...","placeholder.select":"Choose an option above...","placeholder.input":"Answer the prompt above...","placeholder.busy":"Agent is busy...","placeholder.queue":"Queue a follow-up for the next round...","placeholder.idle":"Type a message...","select.choice":"Choice:","select.type_number":"(type a number)","select.more":"{count} more choices...","select.more_above":"\u2191 {count} more above","select.more_below":"\u2193 {count} more below","select.confirm_hint":"Press Enter to confirm, Esc to cancel","select.navigate_hint":"Use \u2191\u2193 to navigate, Enter to confirm, Esc to cancel","select.multiselect_hint":"Use \u2191\u2193 to navigate, Space to toggle, Enter to confirm, Esc to cancel","select.multiselect_empty":"Select at least one option with Space before confirming.","select.multiselect_min":"Select at least {min} option(s) with Space before confirming.","select.multiselect_max":"Select at most {max} option(s) with Space before confirming.","select.back_prev":"\u2190 Back to previous question","input.default":"Default:","input.value":"Value:","input.type_response":"(type your response)","managed.completed":"Task completed","managed.completed.blocked":"Task blocked","managed.completed.continuation":"Task needs continuation",cancelled:"[Cancelled] Operation cancelled by user"},zh:{"dialog.confirm":"[\u786E\u8BA4]","dialog.select":"[\u9009\u62E9]","dialog.input":"[\u8F93\u5165]","confirm.instruction.basic":"\u6309 (y) \u786E\u8BA4, (n) \u62D2\u7EDD","confirm.instruction.always":"\u6309 (y) \u786E\u8BA4, (a) \u59CB\u7EC8\u5141\u8BB8\u6B64\u5DE5\u5177, (n) \u62D2\u7EDD","confirm.instruction.runtime_session":"\u6309 (y) \u4EC5\u5141\u8BB8\u4E00\u6B21, (s) \u672C\u4F1A\u8BDD\u59CB\u7EC8\u5141\u8BB8\u8FD9\u9879\u7CBE\u786E\u64CD\u4F5C, (n) \u62D2\u7EDD","confirm.instruction.runtime_persistent":"\u6309 (y) \u4EC5\u5141\u8BB8\u4E00\u6B21, (s) \u672C\u4F1A\u8BDD\u59CB\u7EC8\u5141\u8BB8\u8FD9\u9879\u7CBE\u786E\u64CD\u4F5C, (a) \u59CB\u7EC8\u5141\u8BB8\u8FD9\u9879\u7CBE\u786E\u64CD\u4F5C, (n) \u62D2\u7EDD","confirm.instruction.protected":"\u6309 (y) \u786E\u8BA4, (n) \u53D6\u6D88 (\u53D7\u4FDD\u62A4\u8DEF\u5F84)","confirm.result.approved":"\u5DF2\u6279\u51C6","confirm.result.approved_always":"\u5DF2\u6279\u51C6 (\u59CB\u7EC8\u5141\u8BB8)","confirm.result.approved_session":"\u5DF2\u6279\u51C6 (\u672C\u4F1A\u8BDD)","confirm.result.denied":"\u5DF2\u62D2\u7EDD","tool.bash.title":"\u6267\u884C bash \u547D\u4EE4\uFF1F","tool.shell.title":"\u6267\u884C shell \u547D\u4EE4\uFF1F","tool.write.title":"\u5199\u5165\u6587\u4EF6\uFF1F","tool.edit.title":"\u7F16\u8F91\u6587\u4EF6\uFF1F","tool.generic.title":"\u6267\u884C {tool}\uFF1F","field.reason":"\u539F\u56E0","field.intent":"\u610F\u56FE","field.target":"\u76EE\u6807","field.scope":"\u8303\u56F4","field.risk":"\u98CE\u9669","field.summary":"\u6458\u8981","intent.read":"\u8BFB\u53D6\u9879\u76EE\u6587\u4EF6","intent.delete":"\u5220\u9664\u6587\u4EF6","intent.deps":"\u4FEE\u6539\u4F9D\u8D56\u6216\u73AF\u5883","intent.modify":"\u4FEE\u6539\u6587\u4EF6","intent.execute":"\u6267\u884C\u547D\u4EE4","intent.write_file":"\u5199\u5165\u6587\u4EF6","intent.edit_file":"\u7F16\u8F91\u6587\u4EF6","intent.use_tool":"\u4F7F\u7528 {tool}","risk.destructive":"\u7834\u574F\u6027\u53D8\u66F4","risk.deps":"\u53EF\u80FD\u4FEE\u6539\u4F9D\u8D56\u6216\u672C\u5730\u5DE5\u5177","risk.modify":"\u53EF\u80FD\u4FEE\u6539\u6587\u4EF6","risk.unknown":"\u547D\u4EE4\u6548\u679C\u53D6\u51B3\u4E8E\u53C2\u6570","risk.network":"\u53EF\u80FD\u8BBF\u95EE\u7F51\u7EDC","scope.outside":"\u9879\u76EE\u5916\u90E8","scope.protected":"\u53D7\u4FDD\u62A4\u8DEF\u5F84","waiting.confirm":"\u7B49\u5F85\u4E2D\uFF1A\u9700\u8981\u5BA1\u6279","waiting.select":"\u7B49\u5F85\u4E2D\uFF1A\u8BF7\u9009\u62E9","waiting.input":"\u7B49\u5F85\u4E2D\uFF1A\u8BF7\u56DE\u7B54","placeholder.confirm":"\u8BF7\u56DE\u5E94\u4E0A\u65B9\u7684\u5BA1\u6279\u63D0\u793A...","placeholder.select":"\u8BF7\u5728\u4E0A\u65B9\u9009\u62E9\u4E00\u4E2A\u9009\u9879...","placeholder.input":"\u8BF7\u56DE\u7B54\u4E0A\u65B9\u7684\u63D0\u793A...","placeholder.busy":"\u667A\u80FD\u4F53\u6B63\u5728\u5DE5\u4F5C\u4E2D...","placeholder.queue":"\u6392\u961F\u7B49\u5F85\u4E0B\u4E00\u8F6E\u8DDF\u8FDB...","placeholder.idle":"\u8F93\u5165\u6D88\u606F...","select.choice":"\u9009\u9879\uFF1A","select.type_number":"(\u8F93\u5165\u7F16\u53F7)","select.more":"\u8FD8\u6709 {count} \u4E2A\u9009\u9879...","select.more_above":"\u2191 \u4E0A\u65B9\u8FD8\u6709 {count} \u4E2A","select.more_below":"\u2193 \u4E0B\u65B9\u8FD8\u6709 {count} \u4E2A","select.confirm_hint":"\u6309 Enter \u786E\u8BA4\uFF0CEsc \u53D6\u6D88","select.navigate_hint":"\u4F7F\u7528 \u2191\u2193 \u5BFC\u822A\uFF0CEnter \u786E\u8BA4\uFF0CEsc \u53D6\u6D88","select.multiselect_hint":"\u4F7F\u7528 \u2191\u2193 \u5BFC\u822A\uFF0C\u7A7A\u683C \u5207\u6362\u9009\u4E2D\uFF0CEnter \u786E\u8BA4\uFF0CEsc \u53D6\u6D88","select.multiselect_empty":"\u8BF7\u5148\u4F7F\u7528\u7A7A\u683C\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u9009\u9879\u3002","select.multiselect_min":"\u8BF7\u5148\u4F7F\u7528\u7A7A\u683C\u81F3\u5C11\u9009\u62E9 {min} \u4E2A\u9009\u9879\u3002","select.multiselect_max":"\u6700\u591A\u53EA\u80FD\u9009\u62E9 {max} \u4E2A\u9009\u9879\u3002","select.back_prev":"\u2190 \u8FD4\u56DE\u4E0A\u4E00\u9898","input.default":"\u9ED8\u8BA4\u503C\uFF1A","input.value":"\u503C\uFF1A","input.type_response":"(\u8F93\u5165\u4F60\u7684\u56DE\u7B54)","managed.completed":"\u4EFB\u52A1\u5B8C\u6210","managed.completed.blocked":"\u4EFB\u52A1\u53D7\u963B","managed.completed.continuation":"\u4EFB\u52A1\u9700\u8981\u7EE7\u7EED",cancelled:"[\u5DF2\u53D6\u6D88] \u64CD\u4F5C\u5DF2\u88AB\u7528\u6237\u53D6\u6D88"}};function Dt(e,t){let r=Pe[J][e]??Pe.en[e]??e;if(t)for(let[i,s]of Object.entries(t))r=r.replace(`{${i}}`,String(s));return r}o(Dt,"t");var _e={core:`// KodaX core configuration template.
2
+ import{T as xe,V as be}from"./chunk-XM724XAA.js";import{C as z,Ca as H,F as V,G as ue,H as q,Ma as ve,Qa as ye,ma as de,na as fe,oa as pe,pa as me,q as le,qa as ge,ra as W,ya as he,za as C}from"./chunk-XXQLPTAN.js";import{Fa as we}from"./chunk-UJS7JAO6.js";import{e as Ee}from"./chunk-GAFFYJU3.js";import{a as o}from"./chunk-ONUPGMER.js";import u from"fs";import p from"path";import{exec as tt,spawnSync as nt}from"child_process";import{promisify as rt}from"util";import{fileURLToPath as ot}from"url";var J="en";function Ue(){return(process.env.LC_ALL||process.env.LC_MESSAGES||process.env.LANG||"").toLowerCase().startsWith("zh")?"zh":"en"}o(Ue,"detectSystemLocale");function Se(e){if(!e||e==="auto"){J=Ue();return}J=e.toLowerCase().replace(/[-_].*/,"")==="zh"?"zh":"en"}o(Se,"setLocale");var Pe={en:{"dialog.confirm":"[Confirm]","dialog.select":"[Select]","dialog.input":"[Input]","confirm.instruction.basic":"Press (y) yes, (n) no","confirm.instruction.always":"Press (y) yes, (a) always yes for this tool, (n) no","confirm.instruction.runtime_session":"Press (y) allow once, (s) allow this Runtime scope for the session, (n) no","confirm.instruction.runtime_persistent":"Press (y) allow once, (s) allow this Runtime scope for the session, (a) always allow this Runtime scope, (n) no","confirm.instruction.protected":"Press (y) to confirm, (n) to cancel (protected path)","confirm.result.approved":"Approved","confirm.result.approved_always":"Approved (always)","confirm.result.approved_session":"Approved (this session)","confirm.result.denied":"Denied","tool.bash.title":"Execute bash command?","tool.shell.title":"Execute shell command?","tool.write.title":"Write to file?","tool.edit.title":"Edit file?","tool.generic.title":"Execute {tool}?","field.reason":"Reason","field.intent":"Intent","field.target":"Target","field.scope":"Scope","field.risk":"Risk","field.summary":"Summary","intent.read":"Read project files","intent.delete":"Delete files","intent.deps":"Modify dependencies or environment","intent.modify":"Modify files","intent.execute":"Execute command","intent.write_file":"Write file","intent.edit_file":"Edit file","intent.use_tool":"Use {tool}","risk.destructive":"Destructive change","risk.deps":"May change dependencies or local tools","risk.modify":"May modify files","risk.unknown":"Command effects depend on its arguments","risk.network":"May access network","scope.outside":"Outside project","scope.protected":"Protected path","waiting.confirm":"Waiting: approval required","waiting.select":"Waiting: choose an option","waiting.input":"Waiting: answer the prompt","placeholder.confirm":"Respond to the approval prompt above...","placeholder.select":"Choose an option above...","placeholder.input":"Answer the prompt above...","placeholder.busy":"Agent is busy...","placeholder.queue":"Queue a follow-up for the next round...","placeholder.idle":"Type a message...","select.choice":"Choice:","select.type_number":"(type a number)","select.more":"{count} more choices...","select.more_above":"\u2191 {count} more above","select.more_below":"\u2193 {count} more below","select.confirm_hint":"Press Enter to confirm, Esc to cancel","select.navigate_hint":"Use \u2191\u2193 to navigate, Enter to confirm, Esc to cancel","select.multiselect_hint":"Use \u2191\u2193 to navigate, Space to toggle, Enter to confirm, Esc to cancel","select.multiselect_empty":"Select at least one option with Space before confirming.","select.multiselect_min":"Select at least {min} option(s) with Space before confirming.","select.multiselect_max":"Select at most {max} option(s) with Space before confirming.","select.back_prev":"\u2190 Back to previous question","input.default":"Default:","input.value":"Value:","input.type_response":"(type your response)","managed.completed":"Task completed","managed.completed.blocked":"Task blocked","managed.completed.continuation":"Task needs continuation",cancelled:"[Cancelled] Operation cancelled by user"},zh:{"dialog.confirm":"[\u786E\u8BA4]","dialog.select":"[\u9009\u62E9]","dialog.input":"[\u8F93\u5165]","confirm.instruction.basic":"\u6309 (y) \u786E\u8BA4, (n) \u62D2\u7EDD","confirm.instruction.always":"\u6309 (y) \u786E\u8BA4, (a) \u59CB\u7EC8\u5141\u8BB8\u6B64\u5DE5\u5177, (n) \u62D2\u7EDD","confirm.instruction.runtime_session":"\u6309 (y) \u4EC5\u5141\u8BB8\u4E00\u6B21, (s) \u672C\u4F1A\u8BDD\u59CB\u7EC8\u5141\u8BB8\u8FD9\u9879\u7CBE\u786E\u64CD\u4F5C, (n) \u62D2\u7EDD","confirm.instruction.runtime_persistent":"\u6309 (y) \u4EC5\u5141\u8BB8\u4E00\u6B21, (s) \u672C\u4F1A\u8BDD\u59CB\u7EC8\u5141\u8BB8\u8FD9\u9879\u7CBE\u786E\u64CD\u4F5C, (a) \u59CB\u7EC8\u5141\u8BB8\u8FD9\u9879\u7CBE\u786E\u64CD\u4F5C, (n) \u62D2\u7EDD","confirm.instruction.protected":"\u6309 (y) \u786E\u8BA4, (n) \u53D6\u6D88 (\u53D7\u4FDD\u62A4\u8DEF\u5F84)","confirm.result.approved":"\u5DF2\u6279\u51C6","confirm.result.approved_always":"\u5DF2\u6279\u51C6 (\u59CB\u7EC8\u5141\u8BB8)","confirm.result.approved_session":"\u5DF2\u6279\u51C6 (\u672C\u4F1A\u8BDD)","confirm.result.denied":"\u5DF2\u62D2\u7EDD","tool.bash.title":"\u6267\u884C bash \u547D\u4EE4\uFF1F","tool.shell.title":"\u6267\u884C shell \u547D\u4EE4\uFF1F","tool.write.title":"\u5199\u5165\u6587\u4EF6\uFF1F","tool.edit.title":"\u7F16\u8F91\u6587\u4EF6\uFF1F","tool.generic.title":"\u6267\u884C {tool}\uFF1F","field.reason":"\u539F\u56E0","field.intent":"\u610F\u56FE","field.target":"\u76EE\u6807","field.scope":"\u8303\u56F4","field.risk":"\u98CE\u9669","field.summary":"\u6458\u8981","intent.read":"\u8BFB\u53D6\u9879\u76EE\u6587\u4EF6","intent.delete":"\u5220\u9664\u6587\u4EF6","intent.deps":"\u4FEE\u6539\u4F9D\u8D56\u6216\u73AF\u5883","intent.modify":"\u4FEE\u6539\u6587\u4EF6","intent.execute":"\u6267\u884C\u547D\u4EE4","intent.write_file":"\u5199\u5165\u6587\u4EF6","intent.edit_file":"\u7F16\u8F91\u6587\u4EF6","intent.use_tool":"\u4F7F\u7528 {tool}","risk.destructive":"\u7834\u574F\u6027\u53D8\u66F4","risk.deps":"\u53EF\u80FD\u4FEE\u6539\u4F9D\u8D56\u6216\u672C\u5730\u5DE5\u5177","risk.modify":"\u53EF\u80FD\u4FEE\u6539\u6587\u4EF6","risk.unknown":"\u547D\u4EE4\u6548\u679C\u53D6\u51B3\u4E8E\u53C2\u6570","risk.network":"\u53EF\u80FD\u8BBF\u95EE\u7F51\u7EDC","scope.outside":"\u9879\u76EE\u5916\u90E8","scope.protected":"\u53D7\u4FDD\u62A4\u8DEF\u5F84","waiting.confirm":"\u7B49\u5F85\u4E2D\uFF1A\u9700\u8981\u5BA1\u6279","waiting.select":"\u7B49\u5F85\u4E2D\uFF1A\u8BF7\u9009\u62E9","waiting.input":"\u7B49\u5F85\u4E2D\uFF1A\u8BF7\u56DE\u7B54","placeholder.confirm":"\u8BF7\u56DE\u5E94\u4E0A\u65B9\u7684\u5BA1\u6279\u63D0\u793A...","placeholder.select":"\u8BF7\u5728\u4E0A\u65B9\u9009\u62E9\u4E00\u4E2A\u9009\u9879...","placeholder.input":"\u8BF7\u56DE\u7B54\u4E0A\u65B9\u7684\u63D0\u793A...","placeholder.busy":"\u667A\u80FD\u4F53\u6B63\u5728\u5DE5\u4F5C\u4E2D...","placeholder.queue":"\u6392\u961F\u7B49\u5F85\u4E0B\u4E00\u8F6E\u8DDF\u8FDB...","placeholder.idle":"\u8F93\u5165\u6D88\u606F...","select.choice":"\u9009\u9879\uFF1A","select.type_number":"(\u8F93\u5165\u7F16\u53F7)","select.more":"\u8FD8\u6709 {count} \u4E2A\u9009\u9879...","select.more_above":"\u2191 \u4E0A\u65B9\u8FD8\u6709 {count} \u4E2A","select.more_below":"\u2193 \u4E0B\u65B9\u8FD8\u6709 {count} \u4E2A","select.confirm_hint":"\u6309 Enter \u786E\u8BA4\uFF0CEsc \u53D6\u6D88","select.navigate_hint":"\u4F7F\u7528 \u2191\u2193 \u5BFC\u822A\uFF0CEnter \u786E\u8BA4\uFF0CEsc \u53D6\u6D88","select.multiselect_hint":"\u4F7F\u7528 \u2191\u2193 \u5BFC\u822A\uFF0C\u7A7A\u683C \u5207\u6362\u9009\u4E2D\uFF0CEnter \u786E\u8BA4\uFF0CEsc \u53D6\u6D88","select.multiselect_empty":"\u8BF7\u5148\u4F7F\u7528\u7A7A\u683C\u9009\u62E9\u81F3\u5C11\u4E00\u4E2A\u9009\u9879\u3002","select.multiselect_min":"\u8BF7\u5148\u4F7F\u7528\u7A7A\u683C\u81F3\u5C11\u9009\u62E9 {min} \u4E2A\u9009\u9879\u3002","select.multiselect_max":"\u6700\u591A\u53EA\u80FD\u9009\u62E9 {max} \u4E2A\u9009\u9879\u3002","select.back_prev":"\u2190 \u8FD4\u56DE\u4E0A\u4E00\u9898","input.default":"\u9ED8\u8BA4\u503C\uFF1A","input.value":"\u503C\uFF1A","input.type_response":"(\u8F93\u5165\u4F60\u7684\u56DE\u7B54)","managed.completed":"\u4EFB\u52A1\u5B8C\u6210","managed.completed.blocked":"\u4EFB\u52A1\u53D7\u963B","managed.completed.continuation":"\u4EFB\u52A1\u9700\u8981\u7EE7\u7EED",cancelled:"[\u5DF2\u53D6\u6D88] \u64CD\u4F5C\u5DF2\u88AB\u7528\u6237\u53D6\u6D88"}};function Dt(e,t){let r=Pe[J][e]??Pe.en[e]??e;if(t)for(let[i,s]of Object.entries(t))r=r.replace(`{${i}}`,String(s));return r}o(Dt,"t");var _e={core:`// KodaX core configuration template.
3
3
  // Copy only the fields you need to ~/.kodax/config.json (strict JSON).
4
4
  // MCP, A2A, and Extensions live in ~/.kodax/integrations/*.json; use
5
5
  // \`kodax integrations migrate --dry-run\` for legacy declarations.
@@ -22,6 +22,13 @@ import{T as xe,V as be}from"./chunk-AGDDM5AW.js";import{C as z,Ca as H,F as V,G
22
22
  // }
23
23
  // ],
24
24
  // "repoIntelligenceMode": "auto",
25
+ // Automatic large compaction is always enabled. Percentage defaults to 75
26
+ // and is clamped to 15..90. A missing/zero absolute threshold is inactive;
27
+ // otherwise the smaller percentage, absolute, and physical limit wins.
28
+ // "compaction": {
29
+ // "triggerPercent": 75,
30
+ // "triggerTokens": 0
31
+ // },
25
32
  // "sessionRetentionDays": 0,
26
33
  // "workflow": { "maxConcurrency": 8 }
27
34
  }
@@ -146,6 +153,6 @@ import{T as xe,V as be}from"./chunk-AGDDM5AW.js";import{C as z,Ca as H,F as V,G
146
153
  "version": 1,
147
154
  "paths": []
148
155
  }
149
- `};function Ce(e){return _e[e]}o(Ce,"getConfigTemplate");import{closeSync as Y,existsSync as m,fsyncSync as Ae,mkdirSync as ee,openSync as te,readFileSync as Ie,renameSync as Re,statSync as Ge,unlinkSync as Q,watch as ze,writeFileSync as De}from"node:fs";import{createHash as Ve}from"node:crypto";import g from"node:path";var qe={mcp:"mcp.json",a2a:"a2a.json",extensions:"extensions.json"},We=new Set(["type","command","args","cwd","env","url","headers","connect","startupTimeoutMs","requestTimeoutMs","auth"]);function E(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}o(E,"isRecord");function w(e,t){if(!E(e))throw new Error(`${t} must be an object.`);return e}o(w,"requireRecord");function T(e,t,n){let r=Object.keys(e).find(i=>!t.has(i));if(r!==void 0)throw new Error(`${n} has unknown field "${r}".`)}o(T,"assertNoUnknownKeys");function Le(e,t){if(e.version!==1)throw new Error(`${t} version must be 1.`)}o(Le,"requireVersionOne");function ke(e,t){let n=w(e,t);for(let[r,i]of Object.entries(n))if(r.trim().length===0||typeof i!="string")throw new Error(`${t} must contain non-empty string keys and string values.`);return structuredClone(n)}o(ke,"requireStringMap");function Z(e,t){if(!Array.isArray(e)||!e.every(n=>typeof n=="string"&&n.trim().length>0))throw new Error(`${t} must be an array of non-empty strings.`);return e.map(n=>n.trim())}o(Z,"requireStringArray");function B(e,t){if(e!==void 0&&(!Number.isFinite(e)||Number(e)<=0))throw new Error(`${t} must be a positive number.`)}o(B,"validatePositiveNumber");function He(e,t){if(e.trim().length===0)throw new Error("MCP server names must not be empty.");let n=w(t,`MCP server "${e}"`);T(n,We,`MCP server "${e}"`);let r=n.type??"stdio";if(!["stdio","sse","streamable-http","http"].includes(String(r)))throw new Error(`MCP server "${e}" has an unsupported transport type.`);if(r==="stdio"){if(typeof n.command!="string"||n.command.trim().length===0)throw new Error(`MCP server "${e}" stdio transport requires command.`)}else if(typeof n.url!="string"||n.url.trim().length===0)throw new Error(`MCP server "${e}" ${String(r)} transport requires url.`);if(n.args!==void 0&&Z(n.args,`MCP server "${e}" args`),n.cwd!==void 0&&typeof n.cwd!="string")throw new Error(`MCP server "${e}" cwd must be a string.`);if(n.env!==void 0&&ke(n.env,`MCP server "${e}" env`),n.headers!==void 0&&ke(n.headers,`MCP server "${e}" headers`),n.connect!==void 0&&!["lazy","prewarm","disabled"].includes(String(n.connect)))throw new Error(`MCP server "${e}" has an unsupported connect mode.`);if(B(n.startupTimeoutMs,`MCP server "${e}" startupTimeoutMs`),B(n.requestTimeoutMs,`MCP server "${e}" requestTimeoutMs`),n.auth!==void 0){let i=w(n.auth,`MCP server "${e}" auth`);if(T(i,new Set(["type","clientId","authorizationUrl","tokenUrl","scopes","redirectPort"]),`MCP server "${e}" auth`),i.type!=="oauth2")throw new Error(`MCP server "${e}" auth type must be oauth2.`);for(let a of["clientId","authorizationUrl","tokenUrl"])if(i[a]!==void 0&&typeof i[a]!="string")throw new Error(`MCP server "${e}" auth.${a} must be a string.`);i.scopes!==void 0&&Z(i.scopes,`MCP server "${e}" auth.scopes`),B(i.redirectPort,`MCP server "${e}" auth.redirectPort`)}return structuredClone(n)}o(He,"parseMcpServer");function k(e){let t=w(e,"MCP integration config");T(t,new Set(["version","servers"]),"MCP integration config"),Le(t,"MCP integration config");let n=w(t.servers,"MCP integration config servers"),r={};for(let[i,s]of Object.entries(n))r[i]=He(i,s);return{version:1,servers:r}}o(k,"parseMcpIntegrationDocument");function M(e){let t=w(e,"Extensions integration config");T(t,new Set(["version","paths"]),"Extensions integration config"),Le(t,"Extensions integration config");let n=Z(t.paths,"Extensions integration config paths");if(new Set(n).size!==n.length)throw new Error("Extensions integration config paths must not contain duplicates.");return{version:1,paths:n}}o(M,"parseExtensionsIntegrationDocument");function P(e,t){return g.join(g.resolve(t),"integrations",qe[e])}o(P,"resolveIntegrationConfigPath");function ne(e){return g.join(g.resolve(e),"config.json")}o(ne,"coreConfigPath");function Te(e){return Ve("sha256").update(e).digest("hex")}o(Te,"hashText");function re(e){let t=Ie(e,"utf8");try{return{raw:t,value:JSON.parse(t)}}catch(n){let r=n instanceof Error?n.message:String(n);throw new Error(`Invalid JSON: ${r}`)}}o(re,"readJsonFile");function O(e){return{domain:e.domain,source:e.source,path:e.path,revision:Te(e.raw),document:structuredClone(e.document),loadedAt:new Date().toISOString()}}o(O,"snapshot");function N(e){let t=ne(e);return m(t)?w(re(t).value,"Core config"):{}}o(N,"readCoreConfig");function $(e){let t=P("mcp",e);if(m(t)){let i=re(t);return O({domain:"mcp",source:"user",path:t,raw:i.raw,document:k(i.value)})}let n=N(e).mcpServers,r=k({version:1,servers:E(n)?n:{}});return O({domain:"mcp",source:n===void 0?"default":"legacy-user",path:t,raw:JSON.stringify(r),document:r})}o($,"readMcpIntegration");function K(e){let t=P("extensions",e);if(m(t)){let i=re(t);return O({domain:"extensions",source:"user",path:t,raw:i.raw,document:M(i.value)})}let n=N(e).extensions,r=M({version:1,paths:Array.isArray(n)?n:[]});return O({domain:"extensions",source:n===void 0?"default":"legacy-user",path:t,raw:JSON.stringify(r),document:r})}o(K,"readExtensionsIntegration");function Je(e){if(!E(e))return[];let t=[],n=/(token|secret|password|api[_-]?key|authorization)/i;for(let[r,i]of Object.entries(e))if(E(i))for(let s of["env","headers"]){let a=i[s];if(E(a))for(let[l,c]of Object.entries(a))n.test(l)&&typeof c=="string"&&!c.startsWith("${env:")&&t.push(`MCP server "${r}" ${s}.${l} may contain a literal secret.`)}return t}o(Je,"likelySecretWarnings");function Be(e){let t=N(e),n=P("mcp",e),r=P("extensions",e),i=t.mcpServers,s=t.extensions,a=E(i)?Object.keys(i).length:0,l=Array.isArray(s)?s.length:0,c=o((b,R,D)=>m(b)?{action:"none",entries:R,destination:b,reason:"destination-exists"}:D?{action:"create",entries:R,destination:b}:{action:"none",entries:0,destination:b,reason:"legacy-absent"},"domainPlan");return{mcp:c(n,a,i!==void 0),extensions:c(r,l,s!==void 0),warnings:Je(i)}}o(Be,"planLegacyIntegrationMigration");function Ye(e,t){let n=ne(e);ee(g.dirname(n),{recursive:!0,mode:448});let r=`${n}.${process.pid}.${Date.now()}.tmp`,i=te(r,"wx",384);try{De(i,`${JSON.stringify(t,null,2)}
150
- `,"utf8"),Ae(i)}finally{Y(i)}try{Re(r,n)}catch(s){throw m(r)&&Q(r),new Error("Failed to atomically clean legacy integration fields.",{cause:s})}}o(Ye,"writeCoreConfigAtomically");function Ft(e){let t=Be(e.configHome),n=N(e.configHome),r=[];t.mcp.action==="create"&&(A({domain:"mcp",configHome:e.configHome,document:{version:1,servers:E(n.mcpServers)?n.mcpServers:{}},validate:k}),r.push("mcp")),t.extensions.action==="create"&&(A({domain:"extensions",configHome:e.configHome,document:{version:1,paths:Array.isArray(n.extensions)?n.extensions:[]},validate:M}),r.push("extensions"));let i=!1;if(e.cleanupLegacy&&m(ne(e.configHome))){let s={...n};m(t.mcp.destination)&&delete s.mcpServers,m(t.extensions.destination)&&delete s.extensions,Qe(n,s)||(Ye(e.configHome,s),i=!0)}return{...t,applied:r,cleanedLegacy:i}}o(Ft,"migrateLegacyIntegrationConfig");function Qe(e,t){return JSON.stringify(e)===JSON.stringify(t)}o(Qe,"isDeepStrictEqualForConfig");function Ze(e){return m(e)?Te(Ie(e,"utf8")):void 0}o(Ze,"currentUserRevision");function et(e){let t=`${e}.lock`;try{return{fd:te(t,"wx",384),path:t}}catch(n){throw new Error(`Integration configuration is busy: ${g.basename(e)}`,{cause:n})}}o(et,"acquireWriteLock");function A(e){let t=P(e.domain,e.configHome),n=e.validate(e.document);ee(g.dirname(t),{recursive:!0,mode:448});let r=et(t);try{let i=Ze(t);if(e.expectedRevision!==void 0&&i!==e.expectedRevision)throw new Error(`Integration configuration revision changed (expected ${e.expectedRevision}, actual ${i??"missing"}).`);let s=`${JSON.stringify(n,null,2)}
151
- `,a=`${t}.${process.pid}.${Date.now()}.tmp`,l=te(a,"wx",384);try{De(l,s,"utf8"),Ae(l)}finally{Y(l)}try{Re(a,t)}catch(c){throw m(a)&&Q(a),new Error(`Failed to atomically replace ${g.basename(t)}.`,{cause:c})}return O({domain:e.domain,source:"user",path:t,raw:s,document:n})}finally{Y(r.fd),m(r.path)&&Q(r.path)}}o(A,"writeIntegrationDocument");function Me(e){if(!m(e))return"missing";let t=Ge(e);return`${t.dev}:${t.ino}:${t.size}:${t.mtimeMs}`}o(Me,"metadataSignature");function L(e,t){return{code:e,message:t,time:new Date().toISOString()}}o(L,"safeDiagnostic");var Oe=class{static{o(this,"IntegrationConfigController")}#a;#r;#c;#l;#e;#t;#u="";#o;#n;#i;#d=Promise.resolve();#s=new Set;constructor(t){this.#a=t.domain,this.#r=P(t.domain,t.configHome),this.#l=t.validate,this.#c=t.read}async initialize(){let t=await this.reload();if(!t.ok||!this.#e)throw new Error(t.ok?"Integration configuration did not produce a snapshot.":t.error);return structuredClone(this.#e)}snapshot(){return this.#e?structuredClone(this.#e):void 0}status(){return{domain:this.#a,path:this.#r,...this.#e?{revision:this.#e.revision,source:this.#e.source,lastReloadAt:this.#e.loadedAt}:{},...this.#t?{diagnostic:this.#t}:{},watching:this.#o!==void 0}}subscribe(t){return this.#s.add(t),()=>{this.#s.delete(t)}}reload(){let t=this.#d.then(()=>this.#f());return this.#d=t.then(()=>{},()=>{}),t}async#f(){this.#u=Me(this.#r);let t;try{t=this.#c(),this.#l(t.document)}catch{return this.#t=L("invalid-config","Integration configuration is invalid; check the file against its versioned schema."),{ok:!1,error:this.#t.message}}let n=this.#e?structuredClone(this.#e):void 0;try{for(let r of this.#s)await r(structuredClone(t),n)}catch{return this.#t=L("activation-failed","Integration configuration could not be activated; the previous configuration remains active."),{ok:!1,error:this.#t.message}}return this.#e=t,this.#t=void 0,{ok:!0,snapshot:structuredClone(t)}}async ensureCurrent(){return Me(this.#r)===this.#u&&this.#e?{ok:!0,snapshot:structuredClone(this.#e)}:this.reload()}startWatching(t=100,n=2e3){if(!(this.#o||this.#i)){ee(g.dirname(this.#r),{recursive:!0,mode:448});try{this.#o=ze(g.dirname(this.#r),(r,i)=>{i!==null&&i.toString()!==g.basename(this.#r)||(this.#n&&clearTimeout(this.#n),this.#n=setTimeout(()=>{this.#n=void 0,this.reload()},t),this.#n.unref?.())}),this.#o.unref(),this.#o.on("error",()=>{this.#t=L("watcher-degraded","Integration watcher is degraded; metadata polling remains active.")})}catch{this.#t=L("watcher-degraded","Integration watcher is degraded; metadata polling remains active.")}this.#i=setInterval(()=>{this.ensureCurrent()},n),this.#i.unref?.()}}close(){this.#n&&clearTimeout(this.#n),this.#n=void 0,this.#i&&clearInterval(this.#i),this.#i=void 0,this.#o?.close(),this.#o=void 0,this.#s.clear()}};var it=rt(tt),st=2,Ne=!1,d=Ee(),tn=p.join(d,"sessions"),f=p.join(d,"config.json"),nn=60,h=null,ie=!1,at="dumb";function ct(e){let t=p.basename(e).toLowerCase(),n="__KODAX_SHELL_ENV_START__",r=`printf '%s\\0' '${n}'; env -0`;return t==="fish"?{args:["-i","-c",r],sentinel:n}:{args:t==="bash"||t==="zsh"?["-ic",r]:["-lc",r],sentinel:n}}o(ct,"buildShellEnvCommand");function lt(e,t){let n=`${t}\0`,r=e.lastIndexOf(n);if(r===-1)return{};let i=e.slice(r+n.length),s={};for(let a of i.split("\0")){if(!a)continue;let l=a.indexOf("=");l<=0||(s[a.slice(0,l)]=a.slice(l+1))}return s}o(lt,"parseNullDelimitedShellEnv");function ut(e={}){let t=e.env??process.env;if((e.platform??process.platform)==="win32"||t.KODAX_DISABLE_SHELL_ENV_HYDRATION==="1")return!1;let r=e.shell??t.SHELL;if(!r||!p.isAbsolute(r))return!1;let{args:i,sentinel:s}=ct(r),a=e.run??nt,l={...t,TERM:at},c=a(r,i,{encoding:"utf8",env:l,maxBuffer:1024*1024,timeout:5e3,windowsHide:!0,detached:!0,stdio:["ignore","pipe","pipe"]});if(c.status!==0||!c.stdout)return!1;let b=typeof c.stdout=="string"?c.stdout:c.stdout.toString("utf8"),R=lt(b,s),D=!1;for(let[G,Fe]of Object.entries(R))G!=="TERM"&&t[G]===void 0&&(t[G]=Fe,D=!0);return D}o(ut,"hydrateProcessEnvFromShell");function dt(){if(!ie){ie=!0;try{ut()}catch{}}}o(dt,"ensureShellEnvironmentHydrated");function rn(){ie=!1}o(rn,"resetShellEnvironmentHydrationForTesting");function ft(e){he(e.customProviders??[])}o(ft,"registerConfiguredCustomProviders");function se(e){if(!Array.isArray(e))return;let t=e.filter(n=>typeof n=="string").map(n=>n.trim()).filter(n=>n.length>0);return t.length>0?t:[]}o(se,"normalizeConfiguredExtensions");function pt(e){if(e.permissionMode!=="default")return e;let t={...e,permissionMode:"accept-edits"};try{u.mkdirSync(p.dirname(f),{recursive:!0}),u.writeFileSync(f,JSON.stringify(t,null,2))}catch{}return t}o(pt,"migrateLegacyPermissionModeInConfig");function mt(e){if(e.permissionMode!=="auto-in-project")return e;try{let t=u.readFileSync(f,"utf-8"),n=t.replace(/("permissionMode"\s*:\s*)"auto-in-project"/,'$1"auto"');n!==t&&u.writeFileSync(f,n)}catch{}return{...e,permissionMode:"auto"}}o(mt,"migrateAutoInProjectAliasInConfig");function gt(){if(h)return h;let e="0.7.73";if(e)return h=e,h;let t=p.join(p.dirname(ot(import.meta.url)),"../../package.json");if(u.existsSync(t))try{return h=JSON.parse(u.readFileSync(t,"utf-8")).version??"0.0.0",h??"0.0.0"}catch{}return h="0.0.0",h}o(gt,"getVersion");var on=gt();function ht(e){return fe(e)}o(ht,"getProviderModel");function ae(e,t){let n=new Set(e.map(i=>i.toLowerCase())),r=[...e];for(let i of t)n.has(i.toLowerCase())||r.push(i);return r}o(ae,"mergeModels");function vt(e,t){t||(t=ce().providerModels);let n=t?.[e];if(n&&n.length>0){try{let r=W(e);if(r.length>0)return ae(n,r)}catch{}try{let r=C(e);if(r)return ae(n,r.getAvailableModels())}catch{}return n}try{let r=W(e);if(r.length>0)return r}catch{}try{let r=C(e);if(r)return r.getAvailableModels()}catch{}return[]}o(vt,"getProviderAvailableModels");function yt(e,t){let n=pe(e,t);if(n!=="unknown")return n;try{let r=C(e);if(r)return r.getReasoningCapability(t)}catch{}return"unknown"}o(yt,"getProviderReasoningCapability");function Et(e){let t=me(e);if(t)return t;try{return H().find(r=>r.name===e)?.capabilityProfile??null}catch{return null}}o(Et,"getProviderCapabilityProfile");function je(e,t){let n=Et(e),r=yt(e,t);if(n)return{capabilityProfile:n,reasoningCapability:r};try{let i=ve(e);return{capabilityProfile:i.getCapabilityProfile(),reasoningCapability:i.getReasoningCapability(t)}}catch{return null}}o(je,"getProviderCapabilityMetadata");function sn(e,t){let n=je(e,t);return n?xe({providerName:e,model:t,capabilityProfile:n.capabilityProfile,reasoningCapability:n.reasoningCapability==="unknown"?void 0:n.reasoningCapability}):null}o(sn,"getProviderCapabilitySnapshot");function wt(e,t,n,r){let i=je(e,t);return i?be({providerName:e,model:t,capabilityProfile:i.capabilityProfile,reasoningCapability:i.reasoningCapability==="unknown"?void 0:i.reasoningCapability,reasoningMode:n,hints:r}):null}o(wt,"getProviderPolicyDecision");function an(e){let t=e.transport==="cli-bridge"?"CLI bridge":"Native API",n=e.conversationSemantics==="last-user-message"?"forwards only the latest user message":"preserves full conversation history",r=e.mcpSupport==="native"?"MCP available":"MCP unavailable";return`${t}; ${n}; ${r}`}o(an,"describeProviderCapabilitySummary");function cn(e){switch(e){case"native-budget":return"B";case"native-effort":return"E";case"native-toggle":return"T";case"native-adaptive":return"A";default:return"-"}}o(cn,"formatReasoningCapabilityShort");function _(e){if(e)return e==="none"?"off":e}o(_,"formatReasoningEffortForDisplay");function X(e,t){let n=_(t);n&&!e.includes(n)&&e.push(n)}o(X,"pushUniqueEffortDisplay");function ln(e,t){let n=["auto"],i=U(e,t)?.supportedEfforts?.filter(s=>s.isUserVisible!==!1);if(!i||i.length===0){for(let s of["off","low","medium","high"])X(n,s);return n}for(let s of i)X(n,s.value);return n}o(ln,"getProviderReasoningEffortOptions");function un(e,t){let n=U(e,t),r=new Set(n?.disabledEfforts??[]),i=n?.supportedEfforts?.filter(c=>c.isUserVisible!==!1),s=[],a=n?.supportsDisabledThinking===!0;if(!i||i.length===0){for(let c of["low","medium","high"])X(s,c);a=!0}else for(let c of i){if(c.value==="none"){a=!0;continue}if(r.has(c.value)){a=!0;continue}X(s,c.value)}let l=[];return a&&l.push("off"),l.push(...s),l.push("auto"),l}o(un,"getProviderReasoningEffortCycle");function xt(e,t){if(t===!1)return"off";switch(e){case"off":return"off";case"quick":return"low";case"balanced":return"medium";case"deep":return"high";default:return"auto"}}o(xt,"legacyReasoningModeToEffortDisplay");function U(e,t){let n=t??ht(e);if(!n)return;let r=ye(e,n)?.reasoningProfile;if(r)return le(r,we(e,n))}o(U,"resolveReasoningProfileForDisplay");function dn(e){let t=_(e.effort)??xt(e.reasoningMode,e.thinking),n=U(e.provider,e.model);if(!n)return t;try{let r=ue({capability:n,explicitEffort:e.effortOverride?e.effort:void 0,sessionEffort:e.effortOverride?void 0:e.effort,legacyReasoningMode:e.reasoningMode,thinking:e.thinking}),i=_(r.configuredEffort)??t,a=r.configuredEffort!==void 0&&n.disabledEfforts?.includes(r.configuredEffort)===!0?"off":_(r.effectiveEffort);return a&&a!==i?`${i}->${a}`:i}catch{if(e.effort)try{let r=q({currentEffort:e.effort,capability:n}),i=_(e.effort)??t,s=_(r.effectiveEffort);return s&&s!==i?`${i}->${s}`:i}catch{return t}return t}}o(dn,"formatReasoningEffortStatusLabel");function fn(e){let t=It(e);if(!t)return{preserved:!0};let n=U(e.provider,e.model);if(!n)return{configuredEffort:t,runtimeEffort:t,preserved:!0};let r=q({currentEffort:t,capability:n});return{configuredEffort:t,runtimeEffort:r.effectiveEffort,preserved:r.preserved,diagnostic:r.diagnostic}}o(fn,"resolveProviderReasoningRuntimeEffort");function bt(e){switch(e){case"native-budget":return"budget";case"native-effort":return"effort";case"native-toggle":return"toggle";case"native-adaptive":return"adaptive";default:return"none"}}o(bt,"describeReasoningCapabilityControl");function pn(e,t){if(e==="off")return"Reasoning disabled";switch(t){case"native-budget":return"Uses native thinking budget control";case"native-effort":return"Uses native reasoning effort control";case"native-toggle":return"Uses provider-native thinking toggle only";case"native-adaptive":return"Model adaptively decides thinking depth (Opus 4.7+)";case"none":return"Runs without native reasoning parameters";case"prompt-only":return"Uses prompt overlays only; no native reasoning parameter";default:return"Runs without native reasoning parameters"}}o(pn,"describeReasoningExecution");function mn(e){let t=[];e||(e=ce().providerModels);for(let n of ge())t.push({name:n.name,model:n.model,models:vt(n.name,e),configured:n.capabilityProfile.transport==="cli-bridge"?!0:n.configured,reasoningCapability:n.reasoningCapability,capabilityProfile:n.capabilityProfile});try{let n=H().map(r=>({...r,models:(()=>{let i=e?.[r.name];return i&&i.length>0?ae(i,r.models):r.models})()}));t.push(...n)}catch{}return t}o(mn,"getProviderList");function gn(e){if(de(e))return!0;try{return C(e)?.isConfigured()??!1}catch{return!1}}o(gn,"isProviderConfigured");var F=class extends Error{static{o(this,"InvalidAgentModeConfigError")}};function Pt(e){let t=e.agentMode;if(t===void 0||t==="ama"||t==="sa")return e;if(t!=="amaw"&&t!=="ama-workflow")throw new F(`Invalid agentMode "${t}" in ${f}. Expected "ama" or "sa".`);let n={...e,agentMode:"ama",schemaVersion:Math.max(e.schemaVersion??0,st)},r=`${f}.migrate-${process.pid}.tmp`;try{u.writeFileSync(r,JSON.stringify(n,null,2),{mode:384}),u.renameSync(r,f)}catch{u.rmSync(r,{force:!0})}return Ne||(process.emitWarning(`Migrated persisted agentMode "${t}" to "ama". Workflow use is now explicit intent.`,{code:"KODAX_AGENT_MODE_MIGRATED"}),Ne=!0),n}o(Pt,"migrateLegacyAgentModeConfig");function ce(){try{if(u.existsSync(f)){let n=JSON.parse(u.readFileSync(f,"utf-8")),r=Pt(n),i=r.reasoningCeiling??r.reasoningMode,s=[],a={};try{s=[...K(d).document.paths]}catch{}try{a=$(d).document.servers}catch{}return mt(pt({...r,reasoningMode:i,extensions:se(s),mcpServers:a}))}}catch(n){if(n instanceof F)throw n}let e,t;try{let n=K(d);n.source!=="default"&&(e=se([...n.document.paths]))}catch{}try{let n=$(d);n.source!=="default"&&(t=n.document.servers)}catch{}return{...e===void 0?{}:{extensions:e},...t===void 0?{}:{mcpServers:t}}}o(ce,"loadConfig");var St=p.join(d,"config.example.jsonc"),oe={mcp:p.join(d,"integrations","mcp.example.jsonc"),a2a:p.join(d,"integrations","a2a.example.jsonc"),extensions:p.join(d,"integrations","extensions.example.jsonc")},_t=[{name:"core",path:St},{name:"mcp",path:oe.mcp},{name:"a2a",path:oe.a2a},{name:"extensions",path:oe.extensions}];function Ct(){let e=[];for(let t of _t)try{if(u.existsSync(t.path))continue;u.mkdirSync(p.dirname(t.path),{recursive:!0}),u.writeFileSync(t.path,Ce(t.name),"utf8"),e.push(t.path)}catch{}return e}o(Ct,"ensureExampleConfigFiles");function hn(){return Ct()[0]}o(hn,"ensureExampleConfigFile");var j=new Map;function kt(e,t){let n=process.env[e],r=j.get(e),i=r!==void 0&&n===r;if(n!==void 0&&!i){j.delete(e);return}if(t===void 0){i&&delete process.env[e],j.delete(e);return}process.env[e]=t,j.set(e,t)}o(kt,"projectConfigEnvironment");var Xe=[{configPath:"streamIdleTimeoutMs",env:"KODAX_STREAM_IDLE_TIMEOUT_MS",value:o(e=>x(e.streamIdleTimeoutMs),"value")},{configPath:"repoIntelligenceMode",env:"KODAX_REPO_INTELLIGENCE",value:o(e=>e.repoIntelligenceMode,"value")},{configPath:"repoIntelligenceTrace",env:"KODAX_REPO_INTELLIGENCE_TRACE",value:o(e=>S(e.repoIntelligenceTrace),"value")},{configPath:"verifierLog",env:"KODAX_VERIFIER_LOG",value:o(e=>S(e.verifierLog),"value")},{configPath:"stallLog",env:"KODAX_STALL_LOG",value:o(e=>S(e.stallLog),"value")},{configPath:"fallbackProviders",env:"KODAX_FALLBACK_PROVIDERS",value:o(e=>Ot(e.fallbackProviders),"value")},{configPath:"fastProvider",env:"KODAX_FAST_PROVIDER",value:o(e=>v(e.fastProvider),"value")},{configPath:"fastModel",env:"KODAX_FAST_MODEL",value:o(e=>v(e.fastModel),"value")},{configPath:"deepProvider",env:"KODAX_DEEP_PROVIDER",value:o(e=>v(e.deepProvider),"value")},{configPath:"deepModel",env:"KODAX_DEEP_MODEL",value:o(e=>v(e.deepModel),"value")},{configPath:"provider",env:"KODAX_PROVIDER",value:o(e=>v(e.provider),"value")},{configPath:"effort",env:"KODAX_EFFORT",value:o(e=>v(e.effort),"value")},{configPath:"runtimeMode",env:"KODAX_RUNTIME_MODE",value:o(e=>e.runtimeMode,"value")},{configPath:"sessionRetentionDays",env:"KODAX_SESSION_RETENTION_DAYS",value:o(e=>x(e.sessionRetentionDays),"value")},{configPath:"maxOutputTokens",env:"KODAX_MAX_OUTPUT_TOKENS",value:o(e=>x(e.maxOutputTokens),"value")},{configPath:"disablePromptCache",env:"KODAX_DISABLE_PROMPT_CACHE",value:o(e=>S(e.disablePromptCache),"value")},{configPath:"lsp",env:"KODAX_LSP",value:o(e=>S(e.lsp),"value")},{configPath:"lspAutoDownload",env:"KODAX_LSP_DOWNLOAD",value:o(e=>S(e.lspAutoDownload),"value")},{configPath:"acpLogLevel",env:"KODAX_ACP_LOG",value:o(e=>v(e.acpLogLevel),"value")},{configPath:"repoIntelligence.toolWaitMs",env:"KODAX_REPO_INTELLIGENCE_TOOL_WAIT_MS",value:o(e=>x(e.repoIntelligence?.toolWaitMs),"value")},{configPath:"repoIntelligence.workerTimeoutMs",env:"KODAX_REPO_INTELLIGENCE_WORKER_TIMEOUT_MS",value:o(e=>x(e.repoIntelligence?.workerTimeoutMs),"value")},{configPath:"repoIntelligence.workerOldSpaceMb",env:"KODAX_REPO_INTELLIGENCE_WORKER_OLD_SPACE_MB",value:o(e=>x(e.repoIntelligence?.workerOldSpaceMb),"value")},{configPath:"repoIntelligence.storageDir",env:"KODAX_REPO_INTELLIGENCE_STORAGE_DIR",value:o(e=>v(e.repoIntelligence?.storageDir),"value")},{configPath:"workflow.maxConcurrency",env:"KODAX_WORKFLOW_MAX_CONCURRENCY",value:o(e=>x(e.workflow?.maxConcurrency),"value")}];function Mt(e){for(let t of Xe)kt(t.env,t.value(e))}o(Mt,"applyConfigSurfaceBridges");function v(e){return e?.trim()||void 0}o(v,"normalizedConfigString");function x(e){return typeof e=="number"&&Number.isFinite(e)?String(e):void 0}o(x,"configNumberString");function S(e){return e===void 0?void 0:e?"1":"0"}o(S,"configBooleanString");function Ot(e){return e?.filter(t=>t.trim().length>0).join(",")}o(Ot,"configStringList");var vn=[...Xe.map(({configPath:e,env:t})=>({configPath:e,env:t}))];function At(e){Mt(e)}o(At,"applyConfigEnvironment");function yn(){dt();let e=ce();return At(e),ft(e),Se(e.locale),e}o(yn,"prepareRuntimeConfig");function En(e){let t={};if(u.existsSync(f))try{let a=JSON.parse(u.readFileSync(f,"utf8"));a&&typeof a=="object"&&!Array.isArray(a)&&(t=a)}catch{}let{extensions:n,mcpServers:r,...i}=e,s={...t,...i};for(let a of Object.keys(i))i[a]===void 0&&delete s[a];if(u.mkdirSync(p.dirname(f),{recursive:!0}),u.writeFileSync(f,JSON.stringify(s,null,2)),n!==void 0){let a=K(d);A({domain:"extensions",configHome:d,...a.source==="user"?{expectedRevision:a.revision}:{},document:{version:1,paths:se(n)??[]},validate:M})}if(r!==void 0){let a=$(d);A({domain:"mcp",configHome:d,...a.source==="user"?{expectedRevision:a.revision}:{},document:{version:1,servers:r},validate:k})}}o(En,"saveConfig");function wn(e,t,n){return e.effort!==void 0||V(n).kind==="value"||t.effort!==void 0}o(wn,"resolveInitialEffortOverride");function y(e){return e?.trim()?e:void 0}o(y,"nonEmptySelection");function xn(e){return y(e.explicitProvider)??y(e.environmentProvider)??y(e.configuredProvider)??e.defaultProvider}o(xn,"resolveRuntimeProviderSelection");function bn(e){let t=y(e.explicitModel);if(t)return t;let n=y(e.configuredModel);if(!n)return;let r=y(e.explicitProvider)??y(e.environmentProvider);return r?y(e.configuredProvider)===r?n:void 0:n}o(bn,"resolveRuntimeModelSelection");function Pn(e){if(e.explicitEffort!==void 0)return z(e.explicitEffort);let t=V(e.environmentEffort);return t.kind==="value"?t.value:e.configuredEffort===void 0?void 0:z(e.configuredEffort)}o(Pn,"resolveRuntimeEffortSelection");function It(e){return e.permissionMode==="plan"&&e.effortOverride!==!0&&e.planModeEffort!==void 0?e.planModeEffort:e.effort}o(It,"resolvePermissionModeEffort");async function Sn(e){try{let{stdout:t}=await it("git rev-parse --show-toplevel",{cwd:e});return t.trim()}catch{return null}}o(Sn,"getGitRoot");function Rt(e){switch(e){case"builtin":return"Built-in";case"runtime":return"Runtime extension";case"custom":return"Custom config";default:return"Unknown"}}o(Rt,"formatProviderSourceKind");function _n(e){let t=e.transport==="cli-bridge"?"CLI bridge":"Native API",n=e.conversationSemantics==="last-user-message"?"latest-user-message only":"full conversation history";return[`Source: ${Rt(e.sourceKind)}`,`Transport: ${t}`,`Conversation semantics: ${n}`,`Context fidelity: ${e.contextFidelity}`,`Tool calling: ${e.toolCallingFidelity}`,`Session behavior: ${e.sessionSupport}`,`Long-running support: ${e.longRunningSupport}`,`Evidence-heavy flows: ${e.evidenceSupport}`,`Multimodal support: ${e.multimodalSupport}`,`MCP support: ${e.mcpSupport}`,`Reasoning control: ${bt(e.reasoningCapability)}`]}o(_n,"formatProviderCapabilityDetailLines");function Cn(e,t,n){return[{label:"General coding",hints:{}},{label:"Evidence-heavy review",hints:{evidenceHeavy:!0}},{label:"Long-running task",hints:{longRunning:!0}}].map(i=>({label:i.label,decision:wt(e,t,n,i.hints)})).filter(i=>i.decision!==null)}o(Cn,"getProviderCommonPolicyScenarios");var $e=.5,Ke=0,I={locked:!1,queue:[]};async function kn(e){for(;I.locked;)await new Promise(t=>I.queue.push(t));I.locked=!0;try{let t=(Date.now()-Ke)/1e3;t<$e&&await new Promise(r=>setTimeout(r,($e-t)*1e3));let n=await e();return Ke=Date.now(),n}finally{I.locked=!1;let t=I.queue.shift();t&&t()}}o(kn,"rateLimitedCall");export{Dt as a,_e as b,Ce as c,k as d,M as e,P as f,$ as g,K as h,Be as i,Ft as j,A as k,Oe as l,d as m,tn as n,f as o,nn as p,ut as q,rn as r,ft as s,gt as t,on as u,ht as v,vt as w,yt as x,Et as y,sn as z,wt as A,an as B,cn as C,_ as D,ln as E,un as F,dn as G,fn as H,bt as I,pn as J,mn as K,gn as L,ce as M,St as N,oe as O,Ct as P,hn as Q,vn as R,At as S,yn as T,En as U,wn as V,xn as W,bn as X,Pn as Y,It as Z,Sn as _,Rt as $,_n as aa,Cn as ba,kn as ca};
156
+ `};function Ce(e){return _e[e]}o(Ce,"getConfigTemplate");import{closeSync as Y,existsSync as m,fsyncSync as Oe,mkdirSync as ee,openSync as te,readFileSync as Ie,renameSync as Re,statSync as Ge,unlinkSync as Q,watch as ze,writeFileSync as De}from"node:fs";import{createHash as Ve}from"node:crypto";import g from"node:path";var qe={mcp:"mcp.json",a2a:"a2a.json",extensions:"extensions.json"},We=new Set(["type","command","args","cwd","env","url","headers","connect","startupTimeoutMs","requestTimeoutMs","auth"]);function E(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}o(E,"isRecord");function w(e,t){if(!E(e))throw new Error(`${t} must be an object.`);return e}o(w,"requireRecord");function T(e,t,n){let r=Object.keys(e).find(i=>!t.has(i));if(r!==void 0)throw new Error(`${n} has unknown field "${r}".`)}o(T,"assertNoUnknownKeys");function Le(e,t){if(e.version!==1)throw new Error(`${t} version must be 1.`)}o(Le,"requireVersionOne");function ke(e,t){let n=w(e,t);for(let[r,i]of Object.entries(n))if(r.trim().length===0||typeof i!="string")throw new Error(`${t} must contain non-empty string keys and string values.`);return structuredClone(n)}o(ke,"requireStringMap");function Z(e,t){if(!Array.isArray(e)||!e.every(n=>typeof n=="string"&&n.trim().length>0))throw new Error(`${t} must be an array of non-empty strings.`);return e.map(n=>n.trim())}o(Z,"requireStringArray");function B(e,t){if(e!==void 0&&(!Number.isFinite(e)||Number(e)<=0))throw new Error(`${t} must be a positive number.`)}o(B,"validatePositiveNumber");function He(e,t){if(e.trim().length===0)throw new Error("MCP server names must not be empty.");let n=w(t,`MCP server "${e}"`);T(n,We,`MCP server "${e}"`);let r=n.type??"stdio";if(!["stdio","sse","streamable-http","http"].includes(String(r)))throw new Error(`MCP server "${e}" has an unsupported transport type.`);if(r==="stdio"){if(typeof n.command!="string"||n.command.trim().length===0)throw new Error(`MCP server "${e}" stdio transport requires command.`)}else if(typeof n.url!="string"||n.url.trim().length===0)throw new Error(`MCP server "${e}" ${String(r)} transport requires url.`);if(n.args!==void 0&&Z(n.args,`MCP server "${e}" args`),n.cwd!==void 0&&typeof n.cwd!="string")throw new Error(`MCP server "${e}" cwd must be a string.`);if(n.env!==void 0&&ke(n.env,`MCP server "${e}" env`),n.headers!==void 0&&ke(n.headers,`MCP server "${e}" headers`),n.connect!==void 0&&!["lazy","prewarm","disabled"].includes(String(n.connect)))throw new Error(`MCP server "${e}" has an unsupported connect mode.`);if(B(n.startupTimeoutMs,`MCP server "${e}" startupTimeoutMs`),B(n.requestTimeoutMs,`MCP server "${e}" requestTimeoutMs`),n.auth!==void 0){let i=w(n.auth,`MCP server "${e}" auth`);if(T(i,new Set(["type","clientId","authorizationUrl","tokenUrl","scopes","redirectPort"]),`MCP server "${e}" auth`),i.type!=="oauth2")throw new Error(`MCP server "${e}" auth type must be oauth2.`);for(let a of["clientId","authorizationUrl","tokenUrl"])if(i[a]!==void 0&&typeof i[a]!="string")throw new Error(`MCP server "${e}" auth.${a} must be a string.`);i.scopes!==void 0&&Z(i.scopes,`MCP server "${e}" auth.scopes`),B(i.redirectPort,`MCP server "${e}" auth.redirectPort`)}return structuredClone(n)}o(He,"parseMcpServer");function k(e){let t=w(e,"MCP integration config");T(t,new Set(["version","servers"]),"MCP integration config"),Le(t,"MCP integration config");let n=w(t.servers,"MCP integration config servers"),r={};for(let[i,s]of Object.entries(n))r[i]=He(i,s);return{version:1,servers:r}}o(k,"parseMcpIntegrationDocument");function M(e){let t=w(e,"Extensions integration config");T(t,new Set(["version","paths"]),"Extensions integration config"),Le(t,"Extensions integration config");let n=Z(t.paths,"Extensions integration config paths");if(new Set(n).size!==n.length)throw new Error("Extensions integration config paths must not contain duplicates.");return{version:1,paths:n}}o(M,"parseExtensionsIntegrationDocument");function P(e,t){return g.join(g.resolve(t),"integrations",qe[e])}o(P,"resolveIntegrationConfigPath");function ne(e){return g.join(g.resolve(e),"config.json")}o(ne,"coreConfigPath");function Te(e){return Ve("sha256").update(e).digest("hex")}o(Te,"hashText");function re(e){let t=Ie(e,"utf8");try{return{raw:t,value:JSON.parse(t)}}catch(n){let r=n instanceof Error?n.message:String(n);throw new Error(`Invalid JSON: ${r}`)}}o(re,"readJsonFile");function A(e){return{domain:e.domain,source:e.source,path:e.path,revision:Te(e.raw),document:structuredClone(e.document),loadedAt:new Date().toISOString()}}o(A,"snapshot");function N(e){let t=ne(e);return m(t)?w(re(t).value,"Core config"):{}}o(N,"readCoreConfig");function $(e){let t=P("mcp",e);if(m(t)){let i=re(t);return A({domain:"mcp",source:"user",path:t,raw:i.raw,document:k(i.value)})}let n=N(e).mcpServers,r=k({version:1,servers:E(n)?n:{}});return A({domain:"mcp",source:n===void 0?"default":"legacy-user",path:t,raw:JSON.stringify(r),document:r})}o($,"readMcpIntegration");function K(e){let t=P("extensions",e);if(m(t)){let i=re(t);return A({domain:"extensions",source:"user",path:t,raw:i.raw,document:M(i.value)})}let n=N(e).extensions,r=M({version:1,paths:Array.isArray(n)?n:[]});return A({domain:"extensions",source:n===void 0?"default":"legacy-user",path:t,raw:JSON.stringify(r),document:r})}o(K,"readExtensionsIntegration");function Je(e){if(!E(e))return[];let t=[],n=/(token|secret|password|api[_-]?key|authorization)/i;for(let[r,i]of Object.entries(e))if(E(i))for(let s of["env","headers"]){let a=i[s];if(E(a))for(let[l,c]of Object.entries(a))n.test(l)&&typeof c=="string"&&!c.startsWith("${env:")&&t.push(`MCP server "${r}" ${s}.${l} may contain a literal secret.`)}return t}o(Je,"likelySecretWarnings");function Be(e){let t=N(e),n=P("mcp",e),r=P("extensions",e),i=t.mcpServers,s=t.extensions,a=E(i)?Object.keys(i).length:0,l=Array.isArray(s)?s.length:0,c=o((b,R,D)=>m(b)?{action:"none",entries:R,destination:b,reason:"destination-exists"}:D?{action:"create",entries:R,destination:b}:{action:"none",entries:0,destination:b,reason:"legacy-absent"},"domainPlan");return{mcp:c(n,a,i!==void 0),extensions:c(r,l,s!==void 0),warnings:Je(i)}}o(Be,"planLegacyIntegrationMigration");function Ye(e,t){let n=ne(e);ee(g.dirname(n),{recursive:!0,mode:448});let r=`${n}.${process.pid}.${Date.now()}.tmp`,i=te(r,"wx",384);try{De(i,`${JSON.stringify(t,null,2)}
157
+ `,"utf8"),Oe(i)}finally{Y(i)}try{Re(r,n)}catch(s){throw m(r)&&Q(r),new Error("Failed to atomically clean legacy integration fields.",{cause:s})}}o(Ye,"writeCoreConfigAtomically");function Ft(e){let t=Be(e.configHome),n=N(e.configHome),r=[];t.mcp.action==="create"&&(O({domain:"mcp",configHome:e.configHome,document:{version:1,servers:E(n.mcpServers)?n.mcpServers:{}},validate:k}),r.push("mcp")),t.extensions.action==="create"&&(O({domain:"extensions",configHome:e.configHome,document:{version:1,paths:Array.isArray(n.extensions)?n.extensions:[]},validate:M}),r.push("extensions"));let i=!1;if(e.cleanupLegacy&&m(ne(e.configHome))){let s={...n};m(t.mcp.destination)&&delete s.mcpServers,m(t.extensions.destination)&&delete s.extensions,Qe(n,s)||(Ye(e.configHome,s),i=!0)}return{...t,applied:r,cleanedLegacy:i}}o(Ft,"migrateLegacyIntegrationConfig");function Qe(e,t){return JSON.stringify(e)===JSON.stringify(t)}o(Qe,"isDeepStrictEqualForConfig");function Ze(e){return m(e)?Te(Ie(e,"utf8")):void 0}o(Ze,"currentUserRevision");function et(e){let t=`${e}.lock`;try{return{fd:te(t,"wx",384),path:t}}catch(n){throw new Error(`Integration configuration is busy: ${g.basename(e)}`,{cause:n})}}o(et,"acquireWriteLock");function O(e){let t=P(e.domain,e.configHome),n=e.validate(e.document);ee(g.dirname(t),{recursive:!0,mode:448});let r=et(t);try{let i=Ze(t);if(e.expectedRevision!==void 0&&i!==e.expectedRevision)throw new Error(`Integration configuration revision changed (expected ${e.expectedRevision}, actual ${i??"missing"}).`);let s=`${JSON.stringify(n,null,2)}
158
+ `,a=`${t}.${process.pid}.${Date.now()}.tmp`,l=te(a,"wx",384);try{De(l,s,"utf8"),Oe(l)}finally{Y(l)}try{Re(a,t)}catch(c){throw m(a)&&Q(a),new Error(`Failed to atomically replace ${g.basename(t)}.`,{cause:c})}return A({domain:e.domain,source:"user",path:t,raw:s,document:n})}finally{Y(r.fd),m(r.path)&&Q(r.path)}}o(O,"writeIntegrationDocument");function Me(e){if(!m(e))return"missing";let t=Ge(e);return`${t.dev}:${t.ino}:${t.size}:${t.mtimeMs}`}o(Me,"metadataSignature");function L(e,t){return{code:e,message:t,time:new Date().toISOString()}}o(L,"safeDiagnostic");var Ae=class{static{o(this,"IntegrationConfigController")}#a;#r;#c;#l;#e;#t;#u="";#o;#n;#i;#d=Promise.resolve();#s=new Set;constructor(t){this.#a=t.domain,this.#r=P(t.domain,t.configHome),this.#l=t.validate,this.#c=t.read}async initialize(){let t=await this.reload();if(!t.ok||!this.#e)throw new Error(t.ok?"Integration configuration did not produce a snapshot.":t.error);return structuredClone(this.#e)}snapshot(){return this.#e?structuredClone(this.#e):void 0}status(){return{domain:this.#a,path:this.#r,...this.#e?{revision:this.#e.revision,source:this.#e.source,lastReloadAt:this.#e.loadedAt}:{},...this.#t?{diagnostic:this.#t}:{},watching:this.#o!==void 0}}subscribe(t){return this.#s.add(t),()=>{this.#s.delete(t)}}reload(){let t=this.#d.then(()=>this.#f());return this.#d=t.then(()=>{},()=>{}),t}async#f(){this.#u=Me(this.#r);let t;try{t=this.#c(),this.#l(t.document)}catch{return this.#t=L("invalid-config","Integration configuration is invalid; check the file against its versioned schema."),{ok:!1,error:this.#t.message}}let n=this.#e?structuredClone(this.#e):void 0;try{for(let r of this.#s)await r(structuredClone(t),n)}catch{return this.#t=L("activation-failed","Integration configuration could not be activated; the previous configuration remains active."),{ok:!1,error:this.#t.message}}return this.#e=t,this.#t=void 0,{ok:!0,snapshot:structuredClone(t)}}async ensureCurrent(){return Me(this.#r)===this.#u&&this.#e?{ok:!0,snapshot:structuredClone(this.#e)}:this.reload()}startWatching(t=100,n=2e3){if(!(this.#o||this.#i)){ee(g.dirname(this.#r),{recursive:!0,mode:448});try{this.#o=ze(g.dirname(this.#r),(r,i)=>{i!==null&&i.toString()!==g.basename(this.#r)||(this.#n&&clearTimeout(this.#n),this.#n=setTimeout(()=>{this.#n=void 0,this.reload()},t),this.#n.unref?.())}),this.#o.unref(),this.#o.on("error",()=>{this.#t=L("watcher-degraded","Integration watcher is degraded; metadata polling remains active.")})}catch{this.#t=L("watcher-degraded","Integration watcher is degraded; metadata polling remains active.")}this.#i=setInterval(()=>{this.ensureCurrent()},n),this.#i.unref?.()}}close(){this.#n&&clearTimeout(this.#n),this.#n=void 0,this.#i&&clearInterval(this.#i),this.#i=void 0,this.#o?.close(),this.#o=void 0,this.#s.clear()}};var it=rt(tt),st=2,Ne=!1,d=Ee(),tn=p.join(d,"sessions"),f=p.join(d,"config.json"),nn=60,h=null,ie=!1,at="dumb";function ct(e){let t=p.basename(e).toLowerCase(),n="__KODAX_SHELL_ENV_START__",r=`printf '%s\\0' '${n}'; env -0`;return t==="fish"?{args:["-i","-c",r],sentinel:n}:{args:t==="bash"||t==="zsh"?["-ic",r]:["-lc",r],sentinel:n}}o(ct,"buildShellEnvCommand");function lt(e,t){let n=`${t}\0`,r=e.lastIndexOf(n);if(r===-1)return{};let i=e.slice(r+n.length),s={};for(let a of i.split("\0")){if(!a)continue;let l=a.indexOf("=");l<=0||(s[a.slice(0,l)]=a.slice(l+1))}return s}o(lt,"parseNullDelimitedShellEnv");function ut(e={}){let t=e.env??process.env;if((e.platform??process.platform)==="win32"||t.KODAX_DISABLE_SHELL_ENV_HYDRATION==="1")return!1;let r=e.shell??t.SHELL;if(!r||!p.isAbsolute(r))return!1;let{args:i,sentinel:s}=ct(r),a=e.run??nt,l={...t,TERM:at},c=a(r,i,{encoding:"utf8",env:l,maxBuffer:1024*1024,timeout:5e3,windowsHide:!0,detached:!0,stdio:["ignore","pipe","pipe"]});if(c.status!==0||!c.stdout)return!1;let b=typeof c.stdout=="string"?c.stdout:c.stdout.toString("utf8"),R=lt(b,s),D=!1;for(let[G,Fe]of Object.entries(R))G!=="TERM"&&t[G]===void 0&&(t[G]=Fe,D=!0);return D}o(ut,"hydrateProcessEnvFromShell");function dt(){if(!ie){ie=!0;try{ut()}catch{}}}o(dt,"ensureShellEnvironmentHydrated");function rn(){ie=!1}o(rn,"resetShellEnvironmentHydrationForTesting");function ft(e){he(e.customProviders??[])}o(ft,"registerConfiguredCustomProviders");function se(e){if(!Array.isArray(e))return;let t=e.filter(n=>typeof n=="string").map(n=>n.trim()).filter(n=>n.length>0);return t.length>0?t:[]}o(se,"normalizeConfiguredExtensions");function pt(e){if(e.permissionMode!=="default")return e;let t={...e,permissionMode:"accept-edits"};try{u.mkdirSync(p.dirname(f),{recursive:!0}),u.writeFileSync(f,JSON.stringify(t,null,2))}catch{}return t}o(pt,"migrateLegacyPermissionModeInConfig");function mt(e){if(e.permissionMode!=="auto-in-project")return e;try{let t=u.readFileSync(f,"utf-8"),n=t.replace(/("permissionMode"\s*:\s*)"auto-in-project"/,'$1"auto"');n!==t&&u.writeFileSync(f,n)}catch{}return{...e,permissionMode:"auto"}}o(mt,"migrateAutoInProjectAliasInConfig");function gt(){if(h)return h;let e="0.7.74";if(e)return h=e,h;let t=p.join(p.dirname(ot(import.meta.url)),"../../package.json");if(u.existsSync(t))try{return h=JSON.parse(u.readFileSync(t,"utf-8")).version??"0.0.0",h??"0.0.0"}catch{}return h="0.0.0",h}o(gt,"getVersion");var on=gt();function ht(e){return fe(e)}o(ht,"getProviderModel");function ae(e,t){let n=new Set(e.map(i=>i.toLowerCase())),r=[...e];for(let i of t)n.has(i.toLowerCase())||r.push(i);return r}o(ae,"mergeModels");function vt(e,t){t||(t=ce().providerModels);let n=t?.[e];if(n&&n.length>0){try{let r=W(e);if(r.length>0)return ae(n,r)}catch{}try{let r=C(e);if(r)return ae(n,r.getAvailableModels())}catch{}return n}try{let r=W(e);if(r.length>0)return r}catch{}try{let r=C(e);if(r)return r.getAvailableModels()}catch{}return[]}o(vt,"getProviderAvailableModels");function yt(e,t){let n=pe(e,t);if(n!=="unknown")return n;try{let r=C(e);if(r)return r.getReasoningCapability(t)}catch{}return"unknown"}o(yt,"getProviderReasoningCapability");function Et(e){let t=me(e);if(t)return t;try{return H().find(r=>r.name===e)?.capabilityProfile??null}catch{return null}}o(Et,"getProviderCapabilityProfile");function je(e,t){let n=Et(e),r=yt(e,t);if(n)return{capabilityProfile:n,reasoningCapability:r};try{let i=ve(e);return{capabilityProfile:i.getCapabilityProfile(),reasoningCapability:i.getReasoningCapability(t)}}catch{return null}}o(je,"getProviderCapabilityMetadata");function sn(e,t){let n=je(e,t);return n?xe({providerName:e,model:t,capabilityProfile:n.capabilityProfile,reasoningCapability:n.reasoningCapability==="unknown"?void 0:n.reasoningCapability}):null}o(sn,"getProviderCapabilitySnapshot");function wt(e,t,n,r){let i=je(e,t);return i?be({providerName:e,model:t,capabilityProfile:i.capabilityProfile,reasoningCapability:i.reasoningCapability==="unknown"?void 0:i.reasoningCapability,reasoningMode:n,hints:r}):null}o(wt,"getProviderPolicyDecision");function an(e){let t=e.transport==="cli-bridge"?"CLI bridge":"Native API",n=e.conversationSemantics==="last-user-message"?"forwards only the latest user message":"preserves full conversation history",r=e.mcpSupport==="native"?"MCP available":"MCP unavailable";return`${t}; ${n}; ${r}`}o(an,"describeProviderCapabilitySummary");function cn(e){switch(e){case"native-budget":return"B";case"native-effort":return"E";case"native-toggle":return"T";case"native-adaptive":return"A";default:return"-"}}o(cn,"formatReasoningCapabilityShort");function _(e){if(e)return e==="none"?"off":e}o(_,"formatReasoningEffortForDisplay");function X(e,t){let n=_(t);n&&!e.includes(n)&&e.push(n)}o(X,"pushUniqueEffortDisplay");function ln(e,t){let n=["auto"],i=U(e,t)?.supportedEfforts?.filter(s=>s.isUserVisible!==!1);if(!i||i.length===0){for(let s of["off","low","medium","high"])X(n,s);return n}for(let s of i)X(n,s.value);return n}o(ln,"getProviderReasoningEffortOptions");function un(e,t){let n=U(e,t),r=new Set(n?.disabledEfforts??[]),i=n?.supportedEfforts?.filter(c=>c.isUserVisible!==!1),s=[],a=n?.supportsDisabledThinking===!0;if(!i||i.length===0){for(let c of["low","medium","high"])X(s,c);a=!0}else for(let c of i){if(c.value==="none"){a=!0;continue}if(r.has(c.value)){a=!0;continue}X(s,c.value)}let l=[];return a&&l.push("off"),l.push(...s),l.push("auto"),l}o(un,"getProviderReasoningEffortCycle");function xt(e,t){if(t===!1)return"off";switch(e){case"off":return"off";case"quick":return"low";case"balanced":return"medium";case"deep":return"high";default:return"auto"}}o(xt,"legacyReasoningModeToEffortDisplay");function U(e,t){let n=t??ht(e);if(!n)return;let r=ye(e,n)?.reasoningProfile;if(r)return le(r,we(e,n))}o(U,"resolveReasoningProfileForDisplay");function dn(e){let t=_(e.effort)??xt(e.reasoningMode,e.thinking),n=U(e.provider,e.model);if(!n)return t;try{let r=ue({capability:n,explicitEffort:e.effortOverride?e.effort:void 0,sessionEffort:e.effortOverride?void 0:e.effort,legacyReasoningMode:e.reasoningMode,thinking:e.thinking}),i=_(r.configuredEffort)??t,a=r.configuredEffort!==void 0&&n.disabledEfforts?.includes(r.configuredEffort)===!0?"off":_(r.effectiveEffort);return a&&a!==i?`${i}->${a}`:i}catch{if(e.effort)try{let r=q({currentEffort:e.effort,capability:n}),i=_(e.effort)??t,s=_(r.effectiveEffort);return s&&s!==i?`${i}->${s}`:i}catch{return t}return t}}o(dn,"formatReasoningEffortStatusLabel");function fn(e){let t=It(e);if(!t)return{preserved:!0};let n=U(e.provider,e.model);if(!n)return{configuredEffort:t,runtimeEffort:t,preserved:!0};let r=q({currentEffort:t,capability:n});return{configuredEffort:t,runtimeEffort:r.effectiveEffort,preserved:r.preserved,diagnostic:r.diagnostic}}o(fn,"resolveProviderReasoningRuntimeEffort");function bt(e){switch(e){case"native-budget":return"budget";case"native-effort":return"effort";case"native-toggle":return"toggle";case"native-adaptive":return"adaptive";default:return"none"}}o(bt,"describeReasoningCapabilityControl");function pn(e,t){if(e==="off")return"Reasoning disabled";switch(t){case"native-budget":return"Uses native thinking budget control";case"native-effort":return"Uses native reasoning effort control";case"native-toggle":return"Uses provider-native thinking toggle only";case"native-adaptive":return"Model adaptively decides thinking depth (Opus 4.7+)";case"none":return"Runs without native reasoning parameters";case"prompt-only":return"Uses prompt overlays only; no native reasoning parameter";default:return"Runs without native reasoning parameters"}}o(pn,"describeReasoningExecution");function mn(e){let t=[];e||(e=ce().providerModels);for(let n of ge())t.push({name:n.name,model:n.model,models:vt(n.name,e),configured:n.capabilityProfile.transport==="cli-bridge"?!0:n.configured,reasoningCapability:n.reasoningCapability,capabilityProfile:n.capabilityProfile});try{let n=H().map(r=>({...r,models:(()=>{let i=e?.[r.name];return i&&i.length>0?ae(i,r.models):r.models})()}));t.push(...n)}catch{}return t}o(mn,"getProviderList");function gn(e){if(de(e))return!0;try{return C(e)?.isConfigured()??!1}catch{return!1}}o(gn,"isProviderConfigured");var F=class extends Error{static{o(this,"InvalidAgentModeConfigError")}};function Pt(e){let t=e.agentMode;if(t===void 0||t==="ama"||t==="sa")return e;if(t!=="amaw"&&t!=="ama-workflow")throw new F(`Invalid agentMode "${t}" in ${f}. Expected "ama" or "sa".`);let n={...e,agentMode:"ama",schemaVersion:Math.max(e.schemaVersion??0,st)},r=`${f}.migrate-${process.pid}.tmp`;try{u.writeFileSync(r,JSON.stringify(n,null,2),{mode:384}),u.renameSync(r,f)}catch{u.rmSync(r,{force:!0})}return Ne||(process.emitWarning(`Migrated persisted agentMode "${t}" to "ama". Workflow use is now explicit intent.`,{code:"KODAX_AGENT_MODE_MIGRATED"}),Ne=!0),n}o(Pt,"migrateLegacyAgentModeConfig");function ce(){try{if(u.existsSync(f)){let n=JSON.parse(u.readFileSync(f,"utf-8")),r=Pt(n),i=r.reasoningCeiling??r.reasoningMode,s=[],a={};try{s=[...K(d).document.paths]}catch{}try{a=$(d).document.servers}catch{}return mt(pt({...r,reasoningMode:i,extensions:se(s),mcpServers:a}))}}catch(n){if(n instanceof F)throw n}let e,t;try{let n=K(d);n.source!=="default"&&(e=se([...n.document.paths]))}catch{}try{let n=$(d);n.source!=="default"&&(t=n.document.servers)}catch{}return{...e===void 0?{}:{extensions:e},...t===void 0?{}:{mcpServers:t}}}o(ce,"loadConfig");var St=p.join(d,"config.example.jsonc"),oe={mcp:p.join(d,"integrations","mcp.example.jsonc"),a2a:p.join(d,"integrations","a2a.example.jsonc"),extensions:p.join(d,"integrations","extensions.example.jsonc")},_t=[{name:"core",path:St},{name:"mcp",path:oe.mcp},{name:"a2a",path:oe.a2a},{name:"extensions",path:oe.extensions}];function Ct(){let e=[];for(let t of _t)try{if(u.existsSync(t.path))continue;u.mkdirSync(p.dirname(t.path),{recursive:!0}),u.writeFileSync(t.path,Ce(t.name),"utf8"),e.push(t.path)}catch{}return e}o(Ct,"ensureExampleConfigFiles");function hn(){return Ct()[0]}o(hn,"ensureExampleConfigFile");var j=new Map;function kt(e,t){let n=process.env[e],r=j.get(e),i=r!==void 0&&n===r;if(n!==void 0&&!i){j.delete(e);return}if(t===void 0){i&&delete process.env[e],j.delete(e);return}process.env[e]=t,j.set(e,t)}o(kt,"projectConfigEnvironment");var Xe=[{configPath:"streamIdleTimeoutMs",env:"KODAX_STREAM_IDLE_TIMEOUT_MS",value:o(e=>x(e.streamIdleTimeoutMs),"value")},{configPath:"repoIntelligenceMode",env:"KODAX_REPO_INTELLIGENCE",value:o(e=>e.repoIntelligenceMode,"value")},{configPath:"repoIntelligenceTrace",env:"KODAX_REPO_INTELLIGENCE_TRACE",value:o(e=>S(e.repoIntelligenceTrace),"value")},{configPath:"verifierLog",env:"KODAX_VERIFIER_LOG",value:o(e=>S(e.verifierLog),"value")},{configPath:"stallLog",env:"KODAX_STALL_LOG",value:o(e=>S(e.stallLog),"value")},{configPath:"fallbackProviders",env:"KODAX_FALLBACK_PROVIDERS",value:o(e=>At(e.fallbackProviders),"value")},{configPath:"fastProvider",env:"KODAX_FAST_PROVIDER",value:o(e=>v(e.fastProvider),"value")},{configPath:"fastModel",env:"KODAX_FAST_MODEL",value:o(e=>v(e.fastModel),"value")},{configPath:"deepProvider",env:"KODAX_DEEP_PROVIDER",value:o(e=>v(e.deepProvider),"value")},{configPath:"deepModel",env:"KODAX_DEEP_MODEL",value:o(e=>v(e.deepModel),"value")},{configPath:"provider",env:"KODAX_PROVIDER",value:o(e=>v(e.provider),"value")},{configPath:"effort",env:"KODAX_EFFORT",value:o(e=>v(e.effort),"value")},{configPath:"runtimeMode",env:"KODAX_RUNTIME_MODE",value:o(e=>e.runtimeMode,"value")},{configPath:"sessionRetentionDays",env:"KODAX_SESSION_RETENTION_DAYS",value:o(e=>x(e.sessionRetentionDays),"value")},{configPath:"maxOutputTokens",env:"KODAX_MAX_OUTPUT_TOKENS",value:o(e=>x(e.maxOutputTokens),"value")},{configPath:"disablePromptCache",env:"KODAX_DISABLE_PROMPT_CACHE",value:o(e=>S(e.disablePromptCache),"value")},{configPath:"lsp",env:"KODAX_LSP",value:o(e=>S(e.lsp),"value")},{configPath:"lspAutoDownload",env:"KODAX_LSP_DOWNLOAD",value:o(e=>S(e.lspAutoDownload),"value")},{configPath:"acpLogLevel",env:"KODAX_ACP_LOG",value:o(e=>v(e.acpLogLevel),"value")},{configPath:"repoIntelligence.toolWaitMs",env:"KODAX_REPO_INTELLIGENCE_TOOL_WAIT_MS",value:o(e=>x(e.repoIntelligence?.toolWaitMs),"value")},{configPath:"repoIntelligence.workerTimeoutMs",env:"KODAX_REPO_INTELLIGENCE_WORKER_TIMEOUT_MS",value:o(e=>x(e.repoIntelligence?.workerTimeoutMs),"value")},{configPath:"repoIntelligence.workerOldSpaceMb",env:"KODAX_REPO_INTELLIGENCE_WORKER_OLD_SPACE_MB",value:o(e=>x(e.repoIntelligence?.workerOldSpaceMb),"value")},{configPath:"repoIntelligence.storageDir",env:"KODAX_REPO_INTELLIGENCE_STORAGE_DIR",value:o(e=>v(e.repoIntelligence?.storageDir),"value")},{configPath:"workflow.maxConcurrency",env:"KODAX_WORKFLOW_MAX_CONCURRENCY",value:o(e=>x(e.workflow?.maxConcurrency),"value")}];function Mt(e){for(let t of Xe)kt(t.env,t.value(e))}o(Mt,"applyConfigSurfaceBridges");function v(e){return e?.trim()||void 0}o(v,"normalizedConfigString");function x(e){return typeof e=="number"&&Number.isFinite(e)?String(e):void 0}o(x,"configNumberString");function S(e){return e===void 0?void 0:e?"1":"0"}o(S,"configBooleanString");function At(e){return e?.filter(t=>t.trim().length>0).join(",")}o(At,"configStringList");var vn=[...Xe.map(({configPath:e,env:t})=>({configPath:e,env:t}))];function Ot(e){Mt(e)}o(Ot,"applyConfigEnvironment");function yn(){dt();let e=ce();return Ot(e),ft(e),Se(e.locale),e}o(yn,"prepareRuntimeConfig");function En(e){let t={};if(u.existsSync(f))try{let a=JSON.parse(u.readFileSync(f,"utf8"));a&&typeof a=="object"&&!Array.isArray(a)&&(t=a)}catch{}let{extensions:n,mcpServers:r,...i}=e,s={...t,...i};for(let a of Object.keys(i))i[a]===void 0&&delete s[a];if(u.mkdirSync(p.dirname(f),{recursive:!0}),u.writeFileSync(f,JSON.stringify(s,null,2)),n!==void 0){let a=K(d);O({domain:"extensions",configHome:d,...a.source==="user"?{expectedRevision:a.revision}:{},document:{version:1,paths:se(n)??[]},validate:M})}if(r!==void 0){let a=$(d);O({domain:"mcp",configHome:d,...a.source==="user"?{expectedRevision:a.revision}:{},document:{version:1,servers:r},validate:k})}}o(En,"saveConfig");function wn(e,t,n){return e.effort!==void 0||V(n).kind==="value"||t.effort!==void 0}o(wn,"resolveInitialEffortOverride");function y(e){return e?.trim()?e:void 0}o(y,"nonEmptySelection");function xn(e){return y(e.explicitProvider)??y(e.environmentProvider)??y(e.configuredProvider)??e.defaultProvider}o(xn,"resolveRuntimeProviderSelection");function bn(e){let t=y(e.explicitModel);if(t)return t;let n=y(e.configuredModel);if(!n)return;let r=y(e.explicitProvider)??y(e.environmentProvider);return r?y(e.configuredProvider)===r?n:void 0:n}o(bn,"resolveRuntimeModelSelection");function Pn(e){if(e.explicitEffort!==void 0)return z(e.explicitEffort);let t=V(e.environmentEffort);return t.kind==="value"?t.value:e.configuredEffort===void 0?void 0:z(e.configuredEffort)}o(Pn,"resolveRuntimeEffortSelection");function It(e){return e.permissionMode==="plan"&&e.effortOverride!==!0&&e.planModeEffort!==void 0?e.planModeEffort:e.effort}o(It,"resolvePermissionModeEffort");async function Sn(e){try{let{stdout:t}=await it("git rev-parse --show-toplevel",{cwd:e});return t.trim()}catch{return null}}o(Sn,"getGitRoot");function Rt(e){switch(e){case"builtin":return"Built-in";case"runtime":return"Runtime extension";case"custom":return"Custom config";default:return"Unknown"}}o(Rt,"formatProviderSourceKind");function _n(e){let t=e.transport==="cli-bridge"?"CLI bridge":"Native API",n=e.conversationSemantics==="last-user-message"?"latest-user-message only":"full conversation history";return[`Source: ${Rt(e.sourceKind)}`,`Transport: ${t}`,`Conversation semantics: ${n}`,`Context fidelity: ${e.contextFidelity}`,`Tool calling: ${e.toolCallingFidelity}`,`Session behavior: ${e.sessionSupport}`,`Long-running support: ${e.longRunningSupport}`,`Evidence-heavy flows: ${e.evidenceSupport}`,`Multimodal support: ${e.multimodalSupport}`,`MCP support: ${e.mcpSupport}`,`Reasoning control: ${bt(e.reasoningCapability)}`]}o(_n,"formatProviderCapabilityDetailLines");function Cn(e,t,n){return[{label:"General coding",hints:{}},{label:"Evidence-heavy review",hints:{evidenceHeavy:!0}},{label:"Long-running task",hints:{longRunning:!0}}].map(i=>({label:i.label,decision:wt(e,t,n,i.hints)})).filter(i=>i.decision!==null)}o(Cn,"getProviderCommonPolicyScenarios");var $e=.5,Ke=0,I={locked:!1,queue:[]};async function kn(e){for(;I.locked;)await new Promise(t=>I.queue.push(t));I.locked=!0;try{let t=(Date.now()-Ke)/1e3;t<$e&&await new Promise(r=>setTimeout(r,($e-t)*1e3));let n=await e();return Ke=Date.now(),n}finally{I.locked=!1;let t=I.queue.shift();t&&t()}}o(kn,"rateLimitedCall");export{Dt as a,_e as b,Ce as c,k as d,M as e,P as f,$ as g,K as h,Be as i,Ft as j,O as k,Ae as l,d as m,tn as n,f as o,nn as p,ut as q,rn as r,ft as s,gt as t,on as u,ht as v,vt as w,yt as x,Et as y,sn as z,wt as A,an as B,cn as C,_ as D,ln as E,un as F,dn as G,fn as H,bt as I,pn as J,mn as K,gn as L,ce as M,St as N,oe as O,Ct as P,hn as Q,vn as R,Ot as S,yn as T,En as U,wn as V,xn as W,bn as X,Pn as Y,It as Z,Sn as _,Rt as $,_n as aa,Cn as ba,kn as ca};
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{a}from"./chunk-PFH53O4M.js";import"./chunk-OG6DRNKV.js";import"./chunk-GAFFYJU3.js";import"./chunk-BUPJGG3C.js";import"./chunk-F7AIEHSS.js";import"./chunk-ONUPGMER.js";export{a as loadCompactionConfig};
2
+ import{a}from"./chunk-QH56WEHK.js";import"./chunk-UJS7JAO6.js";import"./chunk-GAFFYJU3.js";import"./chunk-PP53SIIL.js";import"./chunk-F7AIEHSS.js";import"./chunk-ONUPGMER.js";export{a as loadCompactionConfig};
@@ -1,5 +1,5 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import"./chunk-EAD4SF3Z.js";import"./chunk-6RI2RBTF.js";import"./chunk-M7FXNPWV.js";import"./chunk-AGDDM5AW.js";import"./chunk-64M5HOCA.js";import"./chunk-MBAPT2R5.js";import{$b as a,ec as i,lc as l,qc as c}from"./chunk-HVCNAZ52.js";import"./chunk-XXQLPTAN.js";import"./chunk-OG6DRNKV.js";import"./chunk-GAFFYJU3.js";import"./chunk-BUPJGG3C.js";import"./chunk-F7AIEHSS.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}?
2
+ import"./chunk-VPURXE2F.js";import"./chunk-MVCAFD6M.js";import"./chunk-VK5QTHS6.js";import"./chunk-XM724XAA.js";import"./chunk-64M5HOCA.js";import"./chunk-MBAPT2R5.js";import{dc as a,ic as i,pc as l,uc as c}from"./chunk-C7TZAT3S.js";import"./chunk-XXQLPTAN.js";import"./chunk-UJS7JAO6.js";import"./chunk-GAFFYJU3.js";import"./chunk-PP53SIIL.js";import"./chunk-F7AIEHSS.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};
@@ -0,0 +1,2 @@
1
+ // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
+ import{$ as Vh,A as uh,Aa as ui,B as vh,Ba as vi,C as wh,Ca as wi,D as xh,Da as xi,E as yh,Ea as yi,F as zh,Fa as zi,G as Ah,Ga as Ai,H as Bh,Ha as Bi,I as Ch,Ia as Ci,J as Dh,Ja as Di,K as Eh,Ka as Ei,L as Fh,La as Fi,M as Gh,Ma as Gi,N as Hh,O as Ih,P as Jh,Q as Kh,R as Lh,S as Mh,T as Nh,U as Oh,V as Ph,W as Qh,X as Rh,Y as Sh,Z as Th,_ as Uh,a as aa,aa as Wh,b as ba,ba as Xh,c as ca,ca as Yh,d as Zg,da as Zh,e as _g,ea as _h,f as $g,fa as $h,g as ah,ga as ai,h as bh,ha as bi,i as ch,ia as ci,j as dh,ja as di,k as eh,ka as ei,l as fh,la as fi,m as gh,ma as gi,n as hh,na as hi,o as ih,oa as ii,p as jh,pa as ji,q as kh,qa as ki,r as lh,ra as li,s as mh,sa as mi,t as nh,ta as ni,u as oh,ua as oi,v as ph,va as pi,w as qh,wa as qi,x as rh,xa as ri,y as sh,ya as si,z as th,za as ti}from"./chunk-VPURXE2F.js";import{a as ag,b as bg,c as cg,d as dg,e as eg,f as fg,g as gg,h as hg,i as ig,j as Tg}from"./chunk-MVCAFD6M.js";import{A as Jg,B as Kg,C as Lg,D as Mg,E as Ng,F as Og,G as Pg,H as Qg,I as Rg,J as Sg,a as jg,b as kg,c as lg,d as mg,e as ng,f as og,g as pg,h as qg,i as rg,j as sg,k as tg,l as ug,m as vg,n as wg,o as xg,p as yg,q as zg,r as Ag,s as Bg,t as Cg,u as Dg,v as Eg,w as Fg,x as Gg,y as Hg,z as Ig}from"./chunk-VK5QTHS6.js";import{$ as Nf,A as vf,Aa as Vg,B as wf,C as xf,D as yf,E as zf,F as Af,Ha as Wg,I as Bf,Ia as Xg,J as Cf,K as Df,Ka as Yg,L as Ef,M as Ff,N as Gf,O as Hf,T as If,U as Jf,V as Kf,W as Lf,X as Mf,a as $,aa as Of,b as Aa,ba as Pf,c as Ba,ca as Qf,d as af,e as bf,f as cf,fa as Rf,g as df,h as ef,i as ff,k as kf,l as lf,m as mf,n as nf,o as of,p as pf,q as qf,v as rf,w as sf,y as tf,z as uf,za as Ug}from"./chunk-XM724XAA.js";import"./chunk-64M5HOCA.js";import{a as $f}from"./chunk-MBAPT2R5.js";import{$ as lc,$a as gd,$b as $d,$c as Ve,Aa as Ic,Ab as Ad,Ac as Ae,Ad as Xf,Ba as Jc,Bb as Bd,Bc as Be,Ca as Kc,Cb as Cd,Da as Lc,Db as Dd,E as $b,Ea as Mc,Eb as Ed,F as ac,Fa as Nc,Fb as Fd,G as bc,Ga as Oc,Gb as Gd,H as cc,Hb as Hd,Hc as Ce,Hd as Yf,I as dc,Ia as Pc,Ib as Id,Ic as De,Id as Zf,J as ec,Ja as Qc,Jb as Jd,Jc as Ee,Jd as _f,Ka as Rc,Kb as Kd,Kc as Fe,La as Sc,Lb as Ld,Lc as Ge,Ma as Tc,Mb as Md,Mc as He,Na as Uc,Nb as Nd,Nc as Ie,Oa as Vc,Ob as Od,Oc as Je,Pa as Wc,Pb as Pd,Pc as Ke,Q as fc,Qa as Xc,Qb as Qd,Qc as Le,R as gc,Ra as Yc,Rb as Rd,Rc as Me,S as hc,Sa as Zc,Sb as Sd,Sc as Ne,T as ic,Ta as _c,Tb as Td,Tc as Oe,U as jc,Ua as $c,Ub as Ud,Uc as Pe,Va as ad,Vb as Vd,Vc as Qe,Wa as bd,Wb as Wd,Wc as Re,Xa as cd,Xb as Xd,Xc as Se,Ya as dd,Yb as Yd,Yc as Te,Z as kc,Za as ed,Zb as Zd,_a as fd,_b as _d,_c as Ue,ab as hd,ac as ae,ad as We,ba as mc,bb as id,bc as be,bd as Xe,ca as nc,cc as ce,cd as Ye,d as Nb,da as oc,db as jd,dc as de,dd as Ze,e as Ob,ea as pc,eb as kd,ec as ee,ed as _e,fa as qc,fb as ld,fc as fe,fd as $e,gb as md,gc as ge,gd as gf,ha as rc,hc as he,hd as hf,ia as sc,ib as nd,ic as ie,id as jf,ja as tc,jb as od,jc as je,ka as uc,kb as pd,kc as ke,l as Pb,la as vc,lb as qd,lc as le,m as Qb,ma as wc,mb as rd,mc as me,n as Rb,na as xc,nb as sd,nc as ne,o as Sb,oa as yc,ob as td,oc as oe,p as Tb,pa as zc,pb as ud,pc as pe,q as Ub,qa as Ac,qb as vd,qc as qe,r as Vb,ra as Bc,rb as wd,rc as re,s as Wb,sa as Cc,sb as xd,sc as se,t as Xb,ta as Dc,tc as te,u as Yb,ua as Ec,uc as ue,v as Zb,va as Fc,vb as yd,vc as ve,vd as Sf,w as _b,wa as Gc,wc as we,wd as Tf,xa as Hc,xc as xe,xd as Uf,yc as ye,yd as Vf,zb as zd,zc as ze,zd as Wf}from"./chunk-C7TZAT3S.js";import{Aa as I,Ba as J,C as h,Ca as K,D as i,Da as L,E as j,Ea as M,F as k,Fa as N,G as l,Ga as O,H as m,Ha as P,Ia as Q,Ja as R,Ka as S,La as T,Ma as U,Na as V,Oa as W,Pa as X,Qa as Y,Ra as Z,U as n,Ua as _,ca as o,d as a,da as p,e as b,f as c,ia as q,ja as r,ka as s,la as t,m as d,ma as u,n as e,na as v,oa as w,pa as x,qa as y,ra as z,sa as A,ta as B,ua as C,v as f,va as D,w as g,wa as E,xa as F,ya as G,za as H}from"./chunk-XXQLPTAN.js";import{Ac as vb,Ec as wb,Fc as xb,Ic as yb,Jc as zb,a as Ca,b as Da,bc as Za,c as Ea,cc as _a,d as Fa,dc as $a,e as Ga,ec as ab,f as Ha,fc as bb,gc as cb,h as Ia,hc as db,i as Ja,ic as eb,j as Ka,jc as fb,k as La,kc as gb,kd as Ab,l as Ma,lc as hb,ld as Bb,mc as ib,md as Cb,nc as jb,nd as Db,oc as kb,od as Eb,pc as lb,pd as Fb,qc as mb,qd as Gb,rc as nb,s as Na,sa as Ra,sb as Xa,sc as ob,t as Oa,tb as Ya,tc as pb,td as Hb,u as Pa,uc as qb,ud as Ib,v as Qa,va as Sa,vc as rb,vd as Jb,wc as sb,wd as Kb,xd as Lb,yc as tb,yd as Mb,zc as ub}from"./chunk-UJS7JAO6.js";import{d as Ta,e as Ua,f as Va,i as Wa}from"./chunk-GAFFYJU3.js";import{F as za,a as da,b as ea,c as fa,d as ga,e as ha,f as ia,g as ja,h as ka,i as la,j as ma,k as na,l as oa,m as pa,n as qa,o as ra,p as sa,q as ta,r as ua,s as va,t as wa,u as xa,y as ya}from"./chunk-PP53SIIL.js";import"./chunk-F7AIEHSS.js";import"./chunk-ONUPGMER.js";export{vf as ALWAYS_RESIDENT_TOOL_NAMES,_h as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD,$h as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD,ti as BASH_POLICY_SPEC,lh as BLOCKER_REQUIRED_CONSECUTIVE_TURNS,ei as BREAKER_ERROR_THRESHOLD,fi as BREAKER_WINDOW_MS,ug as BUILTIN_WORKFLOWS,Ob as CANCELLED_TOOL_RESULT_MESSAGE,Nb as CANCELLED_TOOL_RESULT_PREFIX,Nh as CODING_AGENT_MARKER,dh as CODING_INVARIANTS,Ug as CODING_SUMMARY_PROMPT,Vg as CODING_UPDATE_SUMMARY_PROMPT,Od as CapabilityDeniedError,fh as Client,Yf as CodingActorSession,xe as CombinedExtensionRuntime,Pd as ConstructionManifestError,Th as DEFAULT_CLASSIFIER_TIMEOUT_MS,Wg as DEFAULT_CODING_AGENT_NAME,Ch as DEFAULT_DANGEROUS_PATTERNS,Md as DEFAULT_HANDLER_TIMEOUT_MS,Bf as DEFAULT_RESILIENCE_CONFIG,Bh as DEFAULT_SAFE_PATTERNS,Zd as DEFAULT_SELF_MODIFY_BUDGET,pi as DEFAULT_SPECULATIVE_WINDOW_MS,Qb as DEFAULT_TOOL_OUTPUT_MAX_BYTES,Pb as DEFAULT_TOOL_OUTPUT_MAX_LINES,bg as DEFAULT_WORKFLOW_GENERATION_TIMEOUT_MS,Qa as DefaultSummaryCompaction,Kh as EMIT_VERDICT_TOOL_NAME,Aa as ErrorCategory,mg as FINDING_VERIFICATION_OUTPUT_SCHEMA,ed as GENERATOR_AGENT_NAME,ea as ImageResizeError,Ja as KODAX_API_MIN_INTERVAL,s as KODAX_DEFAULT_PROVIDER,Da as KODAX_DEFAULT_TIMEOUT,va as KODAX_FILE_MEDIA_TYPES,Ea as KODAX_HARD_TIMEOUT,ta as KODAX_IMAGE_MEDIA_TYPES,Ha as KODAX_MAX_INCOMPLETE_RETRIES,Fa as KODAX_MAX_RETRIES,Ca as KODAX_MAX_TOKENS,r as KODAX_PROVIDERS,q as KODAX_PROVIDER_SNAPSHOTS,f as KODAX_REASONING_MODE_SEQUENCE,Ga as KODAX_RETRY_BASE_DELAY,g as KODAX_STABLE_EFFORT_INTENTS,Ia as KODAX_STAGGER_DELAY,Ce as KODAX_TOOLS,ac as KODAX_UNDERLYING_CAPABILITY_TOPICS,ua as KODAX_VIDEO_MEDIA_TYPES,o as KodaXAnthropicCompatProvider,n as KodaXBaseProvider,fh as KodaXClient,a as KodaXError,we as KodaXExtensionRuntime,da as KodaXMediaError,p as KodaXOpenAICompatProvider,b as KodaXProviderError,c as KodaXRateLimitError,ba as KodaXSessionError,ca as KodaXTerminalError,aa as KodaXToolError,tb as LINEAGE_ENTRY_TYPES,Uf as LSP_SERVERS,vb as LineageCompaction,ub as LineageExtension,Vf as LspService,bc as MANUAL_REGISTRY,$b as MANUAL_TOPIC_IDS,ka as MAX_DIMENSION,eb as McpAuthRequiredError,qb as McpCapabilityProvider,db as McpExpiredSessionError,rb as McpManager,pb as McpServerRuntime,pa as PASTE_TMP_DIR_ENV,qa as PASTE_TMP_TTL_MS,dd as PLANNER_AGENT_NAME,Ka as PROMISE_PATTERN,bf as PROMPT_SECTION_REGISTRY,Mh as PROTOCOL_EMITTER_TOOLS,Hf as ProviderRecoveryCoordinator,Rb as READ_DEFAULT_LIMIT,Tb as READ_MAX_LINE_CHARS,Sb as READ_PREFLIGHT_SIZE_BYTES,se as REPO_EXPLORER_AGENT_NAME,te as REPO_EXPLORER_TOOL_NAMES,Sa as Runner,lg as SCOPED_REVIEW_OUTPUT_SCHEMA,cd as SCOUT_AGENT_NAME,Di as SCOUT_THEN_AUTHOR_PROMPT_LINES,lf as SELF_KNOWLEDGE_ROUTING_RULE,af as SYSTEM_PROMPT,Lg as SYSTEM_WORKFLOW_LIMITS,Ff as StableBoundaryTracker,la as TARGET_RAW_SIZE_BYTES,hd as TASK_ENGINE_ROLE_AGENTS,Oh as TOOL_RESULT_TRUNCATION_GUARDRAIL_NAME,wi as TRACING_ENV,fd as WORKER_AGENT_NAME,ag as WORKFLOW_GENERATION_SYSTEM_PROMPT,ee as _resetRuntimeForTesting,he as activate,ya as actorQueueId,wc as analyzeChangedScope,Xd as appendAuditEntry,Fb as appendSessionLineageLabel,sd as applyAccountingDelta,pg as applyFindingVerification,Gb as applySessionCompaction,lc as applyToolResultGuardrail,Mb as archiveOldIslands,Fi as authorWorkflowViaWorker,di as autoModeDenialShouldFallback,mi as bashSignalCollector,xi as bootstrapTracing,$g as boundedRevise,ii as breakerShouldFallback,ah as budgetCeiling,Mg as buildApprovalSummary,vd as buildBlockedGoal,mf as buildCapabilityContextSections,Qh as buildClassifierPrompt,wd as buildCompleteGoal,rd as buildCreatedGoal,Of as buildFallbackRoutingDecision,ph as buildGoalRuntimeBinding,ob as buildInitializeCapabilities,Ud as buildLlmReviewPrompt,dc as buildManualToolDescription,uh as buildMcpReverseCapabilities,td as buildPausedGoal,qf as buildPromptMessageContent,ff as buildPromptSnapshot,If as buildProviderCapabilitySnapshot,Pf as buildProviderPolicyHintsForDecision,Jf as buildProviderPolicyPromptNotes,vc as buildRepoIntelligenceContext,Ic as buildRepoIntelligenceIndex,sc as buildRepoOverview,ud as buildResumedGoal,sg as buildScopedReviewFinalPrompt,qg as buildScopedReviewPrimaryPrompt,rg as buildScopedReviewVerificationPrompt,Ei as buildScoutThenAuthorPrompt,kf as buildSelfKnowledgeRoutingRule,Kb as buildSessionTree,of as buildSystemPrompt,nf as buildSystemPromptSnapshot,Ze as buildToolResultBudget,_e as buildToolResultBudgetFromUsage,zd as buildToolSearchIndex,Ig as buildWorkflowCostReport,fg as buildWorkflowGenerationSkillContext,eg as buildWorkflowGenerationUserPrompt,li as checkAbsoluteDeny,pf as checkIncompleteToolCalls,Rf as checkPromiseSignal,$e as clampToolResultPolicyToBudget,Ng as clampWorkflowLimits,Uh as classify,Eh as classifyBashCommand,Ba as classifyError,rc as classifyFileCategory,Df as classifyResilienceError,Ve as cleanupExpiredToolOutputs,Ya as cleanupIncompleteToolCalls,We as cleanupUnreferencedToolOutputs,T as clearRuntimeModelProviders,oi as collectAllSignals,ye as combineExtensionRuntimes,Gh as computeInputSignature,Vh as computeRulesFingerprint,de as configureRuntime,zf as consumeCompactionCooldown,Xc as convertCapabilityReadResult,Wc as convertProviderSearchResults,Lb as countActiveLineageMessages,Ma as countTokens,Na as createAgent,ai as createAutoModeDenialTracker,si as createAutoModeToolGuardrail,Dh as createBashClassifierConfig,vi as createBashPrefixExtractor,Ke as createBuiltinToolDefinition,gi as createCircuitBreaker,jg as createCodingWorkflowBackend,xf as createCompactionAntiThrashState,Qd as createCtxProxy,F as createCustomProvider,Xg as createDefaultCodingAgent,Fh as createDenialTracker,ze as createExtensionRuntime,_f as createExternalActorTurnExecutor,ia as createFileArtifactFromPath,Oa as createHandoff,ha as createImageArtifactFromPath,Pa as createInMemorySession,xh as createKodaXTaskRunner,Zf as createLocalCodingActorControl,_a as createMcpCapabilityId,sb as createMcpManager,fb as createMcpTransport,cf as createPromptSection,Qf as createReasoningPlan,Kg as createRunGraphWriter,uf as createRuntimeContextBudgetSnapshot,Zg as createSessionControl,Ab as createSessionLineage,Ph as createToolResultTruncationGuardrail,ja as createVideoArtifactFromPath,zi as createWorkflowLifecycleController,Ci as createWorkflowPatternTemplateModule,Rg as createWorkflowRunManager,hh as decideWorkflowInvocation,Hd as dedupeExtensionPathsByEntrypoint,Za as defaultMcpCacheDir,Nd as defaultPolicy,Dg as deleteSavedWorkflow,ce as disableSelfModify,jb as discoverAuthorizationServerMetadata,Ld as discoverDefaultExtensions,Kd as discoverExtensionsInDirectory,Jd as discoverExtensionsInDirectoryDetailed,re as discoverMarkdownAgents,kb as discoverOAuthEndpoints,ib as discoverProtectedResourceMetadata,xg as discoverSavedWorkflows,kd as drainPendingSwaps,j as effortToLegacyReasoningMode,Lh as emitVerdict,Pg as emitWorkflowAgentDigest,za as enqueueWithArtifacts,ue as ensureBuiltinRepoExplorerAgent,La as estimateTokens,tf as estimateToolSchemaTokens,Kf as evaluateProviderPolicy,Id as excludeExtensionPathsByEntrypoint,Cd as exec,Ue as executeTool,yb as extractArtifactLedger,ui as extractCommandPrefix,sf as extractComparableUserMessageText,Vc as extractHtmlTitle,hb as extractInsufficientScope,rf as extractPromptComparableText,gb as extractResourceMetadataUrl,xb as extractTitleFromMessages,ni as fileSignalCollector,Zc as finalizeRetrievalResult,ne as findByVersion,Hb as findPreviousUserEntryId,Jb as forkSessionLineage,jf as formatAgentsForPrompt,zh as formatParallelDispatchResult,Ub as formatSize,wb as generateSessionId,hg as generateWorkflow,ig as generateWorkflowFromOptions,Be as getActiveExtensionRuntime,Ua as getAgentConfigHome,Va as getAgentConfigPath,Me as getAllRegisteredTools,Wa as getAppDataDir,W as getAvailableProviderNames,Je as getBuiltinRegisteredToolDefinition,Ie as getBuiltinToolDefinition,vg as getBuiltinWorkflow,N as getCustomModelCapabilities,H as getCustomProvider,K as getCustomProviderList,M as getCustomProviderModelDescriptors,L as getCustomProviderModels,J as getCustomProviderNames,Fd as getDefaultExtensionDirectory,Wf as getDefaultLspService,Sg as getDefaultWorkflowRunManager,Jh as getDenialContext,Nc as getImpactEstimate,gf as getKodaxGlobalDir,cb as getMcpCachePaths,C as getModelCapabilities,wa as getModelInputCapabilities,Kc as getModuleContext,Mc as getProcessContext,t as getProvider,x as getProviderConfiguredCapabilityProfile,w as getProviderConfiguredReasoningCapability,y as getProviderList,v as getProviderModel,B as getProviderModelDescriptors,z as getProviderModels,Ge as getRegisteredToolDefinition,Jc as getRepoIntelligenceIndex,tc as getRepoOverview,Oc as getRepoRoutingSignals,Re as getRequiredToolParams,Q as getRuntimeModelProvider,S as getRuntimeModelProviderNames,Bb as getSessionLineagePath,Cb as getSessionMessagesFromLineage,Lc as getSymbolContext,Ee as getTool,Fe as getToolDefinition,He as getToolRegistrations,kc as getToolResultPolicy,Bi as getWorkflowPatternTemplate,od as goalTokenDelta,gh as hasExplicitNaturalLanguageWorkflowIntent,jd as hasPendingSwap,fa as inferImageMediaType,Nf as inferTaskType,ga as inferVideoMediaType,ic as inspectEditFailure,Hc as inspectRepoIntelligenceRuntime,I as isCustomProviderName,Ih as isDeniedRecently,V as isKnownProvider,yh as isParallelDispatchDirective,u as isProviderConfigured,A as isProviderName,R as isRuntimeModelProviderName,Ef as isSessionRecoveryCandidateError,Ed as isSupportedExtensionModulePath,Oe as isToolFileMutation,Qe as isToolMutation,Pe as isToolNetworkRead,Ne as isToolPlanModeAllowed,xd as isValidTokenBudget,Sf as languageIdForPath,oe as listAll,Z as listAllModelCapabilities,ke as listArtifacts,D as listBuiltinModelCapabilities,Le as listBuiltinToolDefinitions,wg as listBuiltinWorkflows,ld as listCodingDispatchableAgents,me as listConstructed,O as listCustomProviderModelCapabilities,Te as listToolDefinitions,Se as listTools,Ai as listWorkflowPatternTemplates,hf as loadAgentsFiles,pe as loadAgentsFromMarkdown,Zh as loadAutoRules,Fg as loadGeneratedWorkflowFromRun,Rd as loadHandler,qe as loadMarkdownAgentScope,Ag as loadSavedWorkflow,zg as loadSavedWorkflowCapsule,nb as loadValidToken,nd as makeDisabledGoalToolsContext,i as mapLegacyReasoningModeToEffortIntent,Ye as maybeRunReferenceAwareToolOutputGc,Xe as maybeRunToolOutputGc,th as mcpRootsFromWorkspace,zb as mergeArtifactLedger,og as mergeScopedReviewResults,$ as normalizeKodaXAgentMode,$a as normalizeMcpCapabilityId,ma as normalizePastedImage,h as normalizeReasoningEffortValue,ng as normalizeScopedReviewResult,yg as normalizeWorkflowModule,df as orderPromptSections,kg as parallelInvestigation,Yh as parseAutoRules,Rh as parseClassifierOutput,hc as parseEditToolError,Vd as parseLlmReviewVerdict,ab as parseMcpCapabilityId,ji as parseModelSpec,k as parseReasoningEffortEnv,e as parseTimeoutSecEnvMs,Bd as parseToolSearchQuery,gg as parseWorkflowGeneration,mb as performOAuthLogin,ra as persistImageAsBlock,Zb as persistToolOutput,wf as planToolExposure,Hg as preflightWorkflowCapsule,Pc as prewarmRepoIntelligenceCaches,$f as providerResilienceConfigFromTimeouts,sa as prunePasteTmpDir,oa as readAndNormalizeClipboardImage,le as readArtifact,Yd as readAuditEntries,_d as readBudget,na as readClipboardImage,be as readDisableState,qi as readSpeculativeWindowFromEnv,Wh as readTrustState,Mf as reasoningModeToDepth,Gf as reconstructMessagesWithToolGuard,ci as recordAutoModeAllow,bi as recordAutoModeBlock,jh as recordBlockerAttempt,hi as recordBreakerError,Af as recordCompactionSavings,Hh as recordDenial,eh as registerCodingInvariants,rh as registerConfiguredMcpCapabilityProvider,G as registerCustomProviders,P as registerModelProvider,lb as registerOAuthClient,vh as registerOfficialSandboxExtension,Ra as registerPresetDispatcher,De as registerTool,ie as rehydrateActiveArtifacts,$d as remainingSelfModifyBudget,Cg as renameSavedWorkflow,xc as renderChangedScope,Ec as renderImpactEstimate,Bc as renderModuleContext,Dc as renderProcessContext,ef as renderPromptSections,uc as renderRepoOverview,Yc as renderRetrievalResult,Cc as renderSymbolContext,sh as replaceConfiguredMcpCapabilityProvider,Eg as replaceSavedWorkflow,Tf as reportLspDiagnostics,kh as resetBlockerCounter,ae as resetBudget,ki as resolveClassifierModel,md as resolveCodingDispatchableAgent,id as resolveConstructedAgent,Gd as resolveExtensionEntrypoint,cc as resolveKodaXManual,Y as resolveModelCapabilities,U as resolveProvider,X as resolveProviderModelDescriptors,l as resolveReasoningEffort,m as resolveReasoningEffortForModelSwitch,Lf as resolveReasoningMode,Gc as resolveRepoIntelligenceMode,Fc as resolveRepoIntelligenceRuntimeConfig,Cf as resolveResilienceConfig,Db as resolveSessionLineageTarget,yd as resolveToolBridgeTarget,bh as resolveToolCapability,Yb as resolveToolOutputDir,_ as resolveWireEffort,cg as resolveWorkflowGenerationTimeoutMs,yi as resolveWorkflowIdentity,je as revoke,Ib as rewindSessionLineage,ve as rollbackSelfModify,Sd as runAstRules,Yg as runKodaX,Wd as runLlmReview,qh as runManagedTask,wh as runOrchestration,Qg as runWorkflowFromOptions,Og as runWorkflowModule,Jg as safeWorkflowArtifactName,Bg as saveGeneratedWorkflow,Gg as saveGeneratedWorkflowFromRun,tg as scopedReview,bb as searchMcpCatalog,Ad as searchToolIndex,Ae as setActiveExtensionRuntime,Ta as setAgentConfigHome,Eb as setSessionLineageActiveEntry,qd as shouldFlipBudgetLimited,yf as shouldSkipLlmCompaction,Xf as shutdownDefaultLspService,ri as speculativeRace,fe as stage,_g as startKodaX,Tg as startManagedWorkflow,Sh as stripAssistantText,Uc as stripHtmlToText,ge as testArtifact,d as timeoutSecToMs,qc as toolAskUserQuestion,mc as toolBash,Ac as toolChangedDiff,zc as toolChangedScope,ad as toolCodeSearch,gc as toolEdit,nc as toolGlob,oc as toolGrep,Tc as toolImpactEstimate,jc as toolInsertAfterAnchor,Qc as toolModuleContext,ch as toolPermission,Sc as toolProcessContext,_b as toolRead,yc as toolRepoOverview,bd as toolSemanticLookup,Rc as toolSymbolContext,pc as toolUndo,$c as toolWebFetch,_c as toolWebSearch,fc as toolWrite,Vb as truncateHead,Xb as truncateLine,Wb as truncateTail,Xh as trustProjectRules,pd as turnWallTimeDelta,Xa as validateAndFixToolHistory,E as validateCustomProviderConfig,dg as validateGeneratedWorkflowSource,xa as validateInputArtifactsForModel,Ah as validateSubtaskIndependence,Td as validateToolSchemaForProvider,oh as verifyGoalCompletion,Dd as webhook,mh as withGoalBeforeNextTurn,nh as withGoalStopHook,ec as withManualToolBranding,gd as workerAgent,ih as workflowStartOutcomeConsumesTurn,Gi 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-MVCAFD6M.js";import"./chunk-VK5QTHS6.js";import"./chunk-MBAPT2R5.js";import"./chunk-C7TZAT3S.js";import"./chunk-XXQLPTAN.js";import"./chunk-UJS7JAO6.js";import"./chunk-GAFFYJU3.js";import"./chunk-PP53SIIL.js";import"./chunk-F7AIEHSS.js";import"./chunk-ONUPGMER.js";export{a as startManagedWorkflow};
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{I as a,J as b}from"./chunk-M7FXNPWV.js";import"./chunk-HVCNAZ52.js";import"./chunk-XXQLPTAN.js";import"./chunk-OG6DRNKV.js";import"./chunk-GAFFYJU3.js";import"./chunk-BUPJGG3C.js";import"./chunk-F7AIEHSS.js";import"./chunk-ONUPGMER.js";export{a as createWorkflowRunManager,b as getDefaultWorkflowRunManager};
2
+ import{I as a,J as b}from"./chunk-VK5QTHS6.js";import"./chunk-C7TZAT3S.js";import"./chunk-XXQLPTAN.js";import"./chunk-UJS7JAO6.js";import"./chunk-GAFFYJU3.js";import"./chunk-PP53SIIL.js";import"./chunk-F7AIEHSS.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 R,A as q,B as r,C as s,D as t,E as u,F as v,G as w,H as x,I as y,J as z,K as A,L as B,M as C,N as D,O as E,P as F,Q as G,R as H,S as I,T as J,U as K,V as L,W as M,X as N,Y as O,Z as P,_ as Q,aa as S,b as a,ba as T,c as b,ca as U,m as c,n as d,o as e,p as f,q as g,r as h,s as i,t as j,u as k,v as l,w as m,x as n,y as o,z as p}from"./chunk-MLEAQTCD.js";import"./chunk-EAD4SF3Z.js";import"./chunk-6RI2RBTF.js";import"./chunk-M7FXNPWV.js";import"./chunk-AGDDM5AW.js";import"./chunk-64M5HOCA.js";import"./chunk-MBAPT2R5.js";import"./chunk-HVCNAZ52.js";import"./chunk-XXQLPTAN.js";import"./chunk-OG6DRNKV.js";import"./chunk-GAFFYJU3.js";import"./chunk-BUPJGG3C.js";import"./chunk-F7AIEHSS.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};
2
+ import{$ as R,A as q,B as r,C as s,D as t,E as u,F as v,G as w,H as x,I as y,J as z,K as A,L as B,M as C,N as D,O as E,P as F,Q as G,R as H,S as I,T as J,U as K,V as L,W as M,X as N,Y as O,Z as P,_ as Q,aa as S,b as a,ba as T,c as b,ca as U,m as c,n as d,o as e,p as f,q as g,r as h,s as i,t as j,u as k,v as l,w as m,x as n,y as o,z as p}from"./chunk-XMP66YWG.js";import"./chunk-VPURXE2F.js";import"./chunk-MVCAFD6M.js";import"./chunk-VK5QTHS6.js";import"./chunk-XM724XAA.js";import"./chunk-64M5HOCA.js";import"./chunk-MBAPT2R5.js";import"./chunk-C7TZAT3S.js";import"./chunk-XXQLPTAN.js";import"./chunk-UJS7JAO6.js";import"./chunk-GAFFYJU3.js";import"./chunk-PP53SIIL.js";import"./chunk-F7AIEHSS.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
@@ -4,28 +4,29 @@ export { K as KODAX_DEFAULT_PROVIDER, b as KODAX_PROVIDERS, c as KODAX_PROVIDER_
4
4
  export { K as KodaXLlmTimeoutConfig, p as parseTimeoutSecEnvMs, t as timeoutSecToMs } from './types-chunks/cost-tracker.d-BeaenODW.js';
5
5
  export { K as KodaXBaseProvider } from './types-chunks/base.d-ChvpaKjZ.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
- 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 KodaXCompactionOverride, L as KodaXContextOptions, M as KodaXContextTokenSnapshot, N as KodaXEffectiveTaskConfig, O as KodaXEvents, P as KodaXLiveEventMeta, Q as KodaXManagedBudgetSnapshot, S as KodaXManagedTask, T as KodaXManagedTaskRuntimeState, U as KodaXManagedTaskStatusEvent, V as KodaXManualIndexTopic, W as KodaXManualSource, X as KodaXManualTopic, Y as KodaXManualTopicId, Z as KodaXManualTopicInput, _ as KodaXMemoryStrategy, $ as KodaXOptions, a0 as KodaXOrchestrationVerdict, a1 as KodaXParentReductionContract, a2 as KodaXProviderPolicyHints, a3 as KodaXRepoIntelligenceCapability, a4 as KodaXRepoIntelligenceMode, a5 as KodaXRepoIntelligenceResolvedMode, a6 as KodaXRepoIntelligenceTrace, a7 as KodaXRepoIntelligenceTraceEvent, a8 as KodaXRepoRoutingSignals, a9 as KodaXResult, aa as KodaXRoleRoundSummary, ab as KodaXRuntimeVerificationContract, ac as KodaXSelfManualConfig, ad as KodaXSessionControl, ae as KodaXSessionMutators, af as KodaXSessionOptions, ag as KodaXSidecarMessageEvent, ah as KodaXSkillDynamicContextPolicy, ai as KodaXSkillInvocationContext, aj as KodaXSkillMap, ak as KodaXSkillProjectionConfidence, al as KodaXSkillScriptInputFile, am as KodaXSkillScriptOutputFile, an as KodaXSkillScriptRunInput, ao as KodaXSkillScriptRunner, ap as KodaXTaskCapabilityHint, aq as KodaXTaskContract, ar as KodaXTaskEvidenceArtifact, as as KodaXTaskEvidenceBundle, at as KodaXTaskEvidenceEntry, au as KodaXTaskRole, av as KodaXTaskRoleAssignment, aw as KodaXTaskStatus, ax as KodaXTaskSurface, ay as KodaXTaskToolPolicy, az as KodaXTaskVerificationContract, aA as KodaXTaskVerificationCriterion, aB as KodaXTaskWorkItem, aC as KodaXTimeoutConfig, aD as KodaXToolEventMeta, aE as KodaXToolExecutionContext, aF as KodaXToolVisibilityMeta, aG as KodaXToolVisibilityPolicy, aH as KodaXTurnCompletedEvent, aI as KodaXTurnDeliveryKind, aJ as KodaXTurnFailedEvent, aK as KodaXTurnStartedEvent, aL as KodaXVerificationScorecard, aM as KodaXVerificationScorecardCriterion, aN as KodaXWorkflowAgentDigestEvent, aO as KodaXWorkflowEventMeta, aP as KodaXWorkflowTimeoutConfig, aQ as LSP_SERVERS, aR as LspServerInfo, aS as LspService, aT as LspServiceConfig, aU as ProviderExecutionState, aV as ProviderRecoveryEvent, aW as ProviderResilienceConfig, aX as ProviderResiliencePolicy, aY as RecoveryAction, aZ as RecoveryDecision, a_ as RecoveryLadderStep, a$ as RecoveryResult, b0 as ResilienceClassification, b1 as ResilienceErrorClass, b2 as ResolveKodaXManualInput, b3 as ResolveKodaXManualOptions, b4 as ResolveKodaXManualResult, b5 as RuntimeCompactionSkippedEvent, b6 as RuntimeContextBudgetBreakdown, b7 as RuntimeContextBudgetRecommendation, b8 as RuntimeContextBudgetSnapshot, b9 as RuntimeContextBudgetSnapshotInput, ba as RuntimeContextOptimizationProfile, bb as RuntimeContextPressure, bc as RuntimeDefaultsSnapshot, bd as RuntimeToolExposureDecision, be as RuntimeToolExposureMode, bf as RuntimeToolExposurePlan, bg as RuntimeToolExposurePlanInput, bh as RuntimeToolExposureReason, bi as TodoItem, bj as TodoList, bk as TodoStatus, bl as ToolSideEffect, bm as WorkflowHostPolicy, bn as WorkflowInvocationAction, bo as WorkflowInvocationPolicyDecision, bp as WorkflowInvocationPolicyInput, bq as WorkflowInvocationSource, br as WorkflowStartOutcome, bs as WorkflowToolHost, bt as WorkflowToolHostInlineInput, bu as WorkflowToolHostResult, bv as WorkflowToolHostStartResult, bw as buildGoalRuntimeBinding, bx as consumeCompactionCooldown, by as createBashPrefixExtractor, bz as createCompactionAntiThrashState, bA as createExternalActorTurnExecutor, bB as createLocalCodingActorControl, bC as createRuntimeContextBudgetSnapshot, bD as decideWorkflowInvocation, bE as drainPendingSwaps, bF as estimateToolSchemaTokens, bG as extractCommandPrefix, bH as getDefaultLspService, bI as hasExplicitNaturalLanguageWorkflowIntent, bJ as hasPendingSwap, bK as makeDisabledGoalToolsContext, bL as normalizeKodaXAgentMode, bM as planToolExposure, bN as providerResilienceConfigFromTimeouts, bO as recordCompactionSavings, bP as resolveConstructedAgent, bQ as shouldSkipLlmCompaction, bR as shutdownDefaultLspService, bS as withGoalBeforeNextTurn, bT as withGoalStopHook, bU as workflowStartOutcomeConsumesTurn } from './types-chunks/bash-prefix-extractor.d-bApf5nGw.js';
7
+ 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 KodaXCompactionOverride, L as KodaXContextCompactionFinishedEvent, M as KodaXContextIdentity, N as KodaXContextOptions, O as KodaXContextTokenSnapshot, P as KodaXEffectiveTaskConfig, Q as KodaXEvents, R as KodaXLiveEventMeta, S as KodaXManagedBudgetSnapshot, U as KodaXManagedTask, V as KodaXManagedTaskRuntimeState, W as KodaXManagedTaskStatusEvent, X as KodaXManualIndexTopic, Y as KodaXManualSource, Z as KodaXManualTopic, _ as KodaXManualTopicId, $ as KodaXManualTopicInput, a0 as KodaXMemoryStrategy, a1 as KodaXOptions, a2 as KodaXOrchestrationVerdict, a3 as KodaXParentReductionContract, a4 as KodaXProviderPolicyHints, a5 as KodaXRepoIntelligenceCapability, a6 as KodaXRepoIntelligenceMode, a7 as KodaXRepoIntelligenceResolvedMode, a8 as KodaXRepoIntelligenceTrace, a9 as KodaXRepoIntelligenceTraceEvent, aa as KodaXRepoRoutingSignals, ab as KodaXResult, ac as KodaXRoleRoundSummary, ad as KodaXRuntimeVerificationContract, ae as KodaXSelfManualConfig, af as KodaXSessionControl, ag as KodaXSessionMutators, ah as KodaXSessionOptions, ai as KodaXSidecarMessageEvent, aj as KodaXSkillDynamicContextPolicy, ak as KodaXSkillInvocationContext, al as KodaXSkillMap, am as KodaXSkillProjectionConfidence, an as KodaXSkillScriptInputFile, ao as KodaXSkillScriptOutputFile, ap as KodaXSkillScriptRunInput, aq as KodaXSkillScriptRunner, ar as KodaXTaskCapabilityHint, as as KodaXTaskContract, at as KodaXTaskEvidenceArtifact, au as KodaXTaskEvidenceBundle, av as KodaXTaskEvidenceEntry, aw as KodaXTaskRole, ax as KodaXTaskRoleAssignment, ay as KodaXTaskStatus, az as KodaXTaskSurface, aA as KodaXTaskToolPolicy, aB as KodaXTaskVerificationContract, aC as KodaXTaskVerificationCriterion, aD as KodaXTaskWorkItem, aE as KodaXTimeoutConfig, aF as KodaXToolEventMeta, aG as KodaXToolExecutionContext, aH as KodaXToolVisibilityMeta, aI as KodaXToolVisibilityPolicy, aJ as KodaXTurnCompletedEvent, aK as KodaXTurnDeliveryKind, aL as KodaXTurnFailedEvent, aM as KodaXTurnStartedEvent, aN as KodaXVerificationScorecard, aO as KodaXVerificationScorecardCriterion, aP as KodaXWorkflowAgentDigestEvent, aQ as KodaXWorkflowEventMeta, aR as KodaXWorkflowTimeoutConfig, aS as LSP_SERVERS, aT as LspServerInfo, aU as LspService, aV as LspServiceConfig, aW as ProviderExecutionState, aX as ProviderRecoveryEvent, aY as ProviderResilienceConfig, aZ as ProviderResiliencePolicy, a_ as RecoveryAction, a$ as RecoveryDecision, b0 as RecoveryLadderStep, b1 as RecoveryResult, b2 as ResilienceClassification, b3 as ResilienceErrorClass, b4 as ResolveKodaXManualInput, b5 as ResolveKodaXManualOptions, b6 as ResolveKodaXManualResult, b7 as RuntimeCompactionSkippedEvent, b8 as RuntimeContextBudgetBreakdown, b9 as RuntimeContextBudgetRecommendation, ba as RuntimeContextBudgetSnapshot, bb as RuntimeContextBudgetSnapshotInput, bc as RuntimeContextOptimizationProfile, bd as RuntimeContextPressure, be as RuntimeDefaultsSnapshot, bf as RuntimeToolExposureDecision, bg as RuntimeToolExposureMode, bh as RuntimeToolExposurePlan, bi as RuntimeToolExposurePlanInput, bj as RuntimeToolExposureReason, bk as TodoItem, bl as TodoList, bm as TodoStatus, bn as ToolSideEffect, bo as WorkflowHostPolicy, bp as WorkflowInvocationAction, bq as WorkflowInvocationPolicyDecision, br as WorkflowInvocationPolicyInput, bs as WorkflowInvocationSource, bt as WorkflowStartOutcome, bu as WorkflowToolHost, bv as WorkflowToolHostInlineInput, bw as WorkflowToolHostResult, bx as WorkflowToolHostStartResult, by as buildGoalRuntimeBinding, bz as consumeCompactionCooldown, bA as createBashPrefixExtractor, bB as createCompactionAntiThrashState, bC as createExternalActorTurnExecutor, bD as createLocalCodingActorControl, bE as createRuntimeContextBudgetSnapshot, bF as decideWorkflowInvocation, bG as drainPendingSwaps, bH as estimateToolSchemaTokens, bI as extractCommandPrefix, bJ as getDefaultLspService, bK as hasExplicitNaturalLanguageWorkflowIntent, bL as hasPendingSwap, bM as makeDisabledGoalToolsContext, bN as normalizeKodaXAgentMode, bO as planToolExposure, bP as providerResilienceConfigFromTimeouts, bQ as recordCompactionSavings, bR as resolveConstructedAgent, bS as shouldSkipLlmCompaction, bT as shutdownDefaultLspService, bU as withGoalBeforeNextTurn, bV as withGoalStopHook, bW as workflowStartOutcomeConsumesTurn } from './types-chunks/bash-prefix-extractor.d-r1beOESM.js';
8
8
  export { AstCheckResult, AstRuleId, AstRuleViolation, AuditEntry, AuditEventKind, AuthorWorkflowViaWorkerHandle, AuthorWorkflowViaWorkerInput, BLOCKER_REQUIRED_CONSECUTIVE_TURNS, BUILTIN_WORKFLOWS, BashClassificationResult, BashClassifierConfig, BashRiskLevel, 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, ClassifierDecision, ClassifierPrompt, ClassifyDecision, ClassifyOptions, Client, CodingDispatchableAgentRoute, CodingWorkflowBackendDeps, CombinedExtensionRuntime, CreateCtxProxyOptions, CreateKodaXTaskRunnerOptions, CreateWorkflowLifecycleControllerOptions, DEFAULT_CLASSIFIER_TIMEOUT_MS, 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, LanguageCapabilityTier, LlmReviewClient, LlmReviewResult, LlmReviewVerdict, LoadAgentsFromMarkdownOptions, LoadAgentsFromMarkdownResult, LoadGeneratedWorkflowFromRunInput, LoadHandlerOptions, LoadHandlerScope, LoadMarkdownAgentScopeOptions, LoadMarkdownAgentScopeResult, LoadedGeneratedWorkflowFromRun, LoadedMarkdownAgent, MANUAL_REGISTRY, MANUAL_TOPIC_IDS, 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, 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, activate, analyzeChangedScope, appendAuditEntry, applyAccountingDelta, applyFindingVerification, applyToolResultGuardrail, authorWorkflowViaWorker, 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, checkIncompleteToolCalls, checkPromiseSignal, clampToolResultPolicyToBudget, clampWorkflowLimits, classify, classifyBashCommand, classifyError, classifyFileCategory, classifyResilienceError, cleanupExpiredToolOutputs, cleanupUnreferencedToolOutputs, combineExtensionRuntimes, computeInputSignature, configureRuntime, convertCapabilityReadResult, convertProviderSearchResults, createBashClassifierConfig, createBuiltinToolDefinition, createCodingWorkflowBackend, createCtxProxy, createDefaultCodingAgent, createDenialTracker, createExtensionRuntime, createKodaXTaskRunner, createPromptSection, createReasoningPlan, createRunGraphWriter, createSessionControl, createToolResultTruncationGuardrail, createWorkflowLifecycleController, createWorkflowPatternTemplateModule, createWorkflowRunManager, dedupeExtensionPathsByEntrypoint, deleteSavedWorkflow, disableSelfModify, discoverDefaultExtensions, discoverExtensionsInDirectory, discoverExtensionsInDirectoryDetailed, discoverMarkdownAgents, discoverSavedWorkflows, emitVerdict, emitWorkflowAgentDigest, ensureBuiltinRepoExplorerAgent, evaluateProviderPolicy, excludeExtensionPathsByEntrypoint, executeTool, extractComparableUserMessageText, extractHtmlTitle, extractPromptComparableText, fileSignalCollector, finalizeRetrievalResult, findByVersion, 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, isDeniedRecently, isParallelDispatchDirective, 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, normalizeWorkflowModule, orderPromptSections, parallelInvestigation, parseClassifierOutput, parseEditToolError, parseLlmReviewVerdict, parseModelSpec, 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, 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';
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-DKr6TCXL.js';
11
- export { f as Agent, a8 as AgentMessage, ai as AgentReasoningProfile, az as AgentTool, aG as AskUserAnswer, aH as AskUserCustomInputAnswer, aI as AskUserMultiOptions, aJ as AskUserQuestionItem, aK as AskUserQuestionOptions, aL as AskUserSelectionAnswer, aN as CompactionAnchor, aQ as CompactionResult, aS as CompactionUpdate, ba as Guardrail, bc as Handoff, be as InMemorySessionOptions, bj as KodaXCompactMemoryProgress, bk as KodaXCompactMemorySeed, bl as KodaXExtensionSessionRecord, bm as KodaXExtensionSessionState, bp as KodaXFileInputArtifact, bt as KodaXImageInputArtifact, bu as KodaXImageMediaType, bv as KodaXInputArtifact, bw as KodaXInputArtifactSource, bx as KodaXJsonValue, bC as KodaXSessionArtifactLedgerEntry, bD as KodaXSessionBranchSummaryEntry, bF as KodaXSessionCompactionEntry, bG as KodaXSessionData, bH as KodaXSessionEntry, bI as KodaXSessionEntryBase, bK as KodaXSessionLabelEntry, bL as KodaXSessionLineage, bO as KodaXSessionMessageEntry, bP as KodaXSessionMeta, bQ as KodaXSessionNavigationOptions, bS as KodaXSessionRuntimeInfo, bT as KodaXSessionScope, bU as KodaXSessionStorage, bV as KodaXSessionTreeNode, bW as KodaXSessionUiHistoryItem, bX as KodaXSessionUiHistoryItemType, bY as KodaXSessionUiTextHistoryItem, bZ as KodaXSessionUiTextHistoryItemType, b_ as KodaXSessionUiToolCall, b$ as KodaXSessionUiToolCallStatus, c0 as KodaXSessionUiToolGroupHistoryItem, c1 as KodaXSessionWorkspaceKind, c2 as KodaXVideoInputArtifact, c3 as KodaXVideoMediaType, cO as MessageEntry, cR as PresetDispatcher, cW as ReasoningDepth, cY as RunEvent, cZ as RunOptions, c_ as RunResult, d0 as Runner, db as Session, dd as SessionEntry, de as SessionErrorMetadata, df as SessionExtension, dg as SessionForkOptions, dO as WorkflowEventCorrelation, eE as createAgent, eF as createHandoff, eG as createInMemorySession, e$ as registerPresetDispatcher } from './types-chunks/types.d-BnPhGmar.js';
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, a3 as extractArtifactLedger, a5 as extractTitleFromMessages, a6 as findPreviousUserEntryId, a7 as forkSessionLineage, a8 as generateSessionId, a9 as getAgentConfigHome, aa as getAgentConfigPath, ab as getAppDataDir, ac as getSessionLineagePath, ad as getSessionMessagesFromLineage, ag as mergeArtifactLedger, al as resolveSessionLineageTarget, am as rewindSessionLineage, an as setAgentConfigHome, ao as setSessionLineageActiveEntry, ap as validateAndFixToolHistory } from './types-chunks/capsule.d-CGWltwno.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-Bm_y6YuM.js';
11
+ export { f as Agent, a8 as AgentMessage, ai as AgentReasoningProfile, az as AgentTool, aG as AskUserAnswer, aH as AskUserCustomInputAnswer, aI as AskUserMultiOptions, aJ as AskUserQuestionItem, aK as AskUserQuestionOptions, aL as AskUserSelectionAnswer, aN as CompactionAnchor, aR as CompactionResult, aT as CompactionUpdate, bb as Guardrail, bd as Handoff, bf as InMemorySessionOptions, bk as KodaXCompactMemoryProgress, bl as KodaXCompactMemorySeed, bm as KodaXExtensionSessionRecord, bn as KodaXExtensionSessionState, bq as KodaXFileInputArtifact, bu as KodaXImageInputArtifact, bv as KodaXImageMediaType, bw as KodaXInputArtifact, bx as KodaXInputArtifactSource, by as KodaXJsonValue, bD as KodaXSessionArtifactLedgerEntry, bE as KodaXSessionBranchSummaryEntry, bG as KodaXSessionCompactionEntry, bH as KodaXSessionData, bI as KodaXSessionEntry, bJ as KodaXSessionEntryBase, bL as KodaXSessionLabelEntry, bM as KodaXSessionLineage, bP as KodaXSessionMessageEntry, bQ as KodaXSessionMeta, bR as KodaXSessionNavigationOptions, bT as KodaXSessionRuntimeInfo, bU as KodaXSessionScope, bV as KodaXSessionStorage, bW as KodaXSessionTreeNode, bX as KodaXSessionUiHistoryItem, bY as KodaXSessionUiHistoryItemType, bZ as KodaXSessionUiTextHistoryItem, b_ as KodaXSessionUiTextHistoryItemType, b$ as KodaXSessionUiToolCall, c0 as KodaXSessionUiToolCallStatus, c1 as KodaXSessionUiToolGroupHistoryItem, c2 as KodaXSessionWorkspaceKind, c3 as KodaXVideoInputArtifact, c4 as KodaXVideoMediaType, cP as MessageEntry, cS as PresetDispatcher, cX as ReasoningDepth, cZ as RunEvent, c_ as RunOptions, c$ as RunResult, d1 as Runner, dc as Session, de as SessionEntry, df as SessionErrorMetadata, dg as SessionExtension, dh as SessionForkOptions, dP as WorkflowEventCorrelation, eF as createAgent, eG as createHandoff, eH as createInMemorySession, f0 as registerPresetDispatcher } from './types-chunks/types.d-sRLugmjy.js';
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, aa as getAgentConfigHome, ab as getAgentConfigPath, ac as getAppDataDir, ad as getSessionLineagePath, ae as getSessionMessagesFromLineage, ah as mergeArtifactLedger, am as resolveSessionLineageTarget, an as rewindSessionLineage, ao as setAgentConfigHome, ap as setSessionLineageActiveEntry, aq as validateAndFixToolHistory } from './types-chunks/capsule.d-zeqV4IQX.js';
13
13
  export { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
14
14
  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';
15
15
  export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportEvents, O as OAuthClientInfo, d as OAuthLoginConsent, P as PerformOAuthLoginOptions, e as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, f as createMcpTransport, g as discoverAuthorizationServerMetadata, h as discoverOAuthEndpoints, i as discoverProtectedResourceMetadata, j as extractInsufficientScope, k as extractResourceMetadataUrl, l as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-Bgb4rdLN.js';
16
- export { d as ManagedWorkflowStatus } from './types-chunks/run-manager.d-DUNnJcpE.js';
17
- export { C as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD, m as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD, A as AbsoluteDenyCheck, a as AbsoluteDenyMatch, b as AbsoluteDenyMiss, c as AbsoluteDenyResult, d as AgentsFile, e as AutoModeAskUser, f as AutoModeAskUserVerdict, D as AutoModeDenialTracker, g as AutoModeEngine, h as AutoModeGuardrailConfig, i as AutoModeSharedState, j as AutoModeStats, k as AutoModeToolGuardrail, l as AutoRules, E as BREAKER_ERROR_THRESHOLD, W as BREAKER_WINDOW_MS, n as CircuitBreaker, K as KodaXMcpConnectMode, o as KodaXMcpServerConfig, p as KodaXMcpServersConfig, q as KodaXMcpTransport, L as LoadAgentsOptions, r as LoadedRulesSource, R as RulesLoadError, s as RulesLoadResult, S as SignalCollector, t as SkippedRulesSource, T as TierZeroPatternId, u as ToolCallSignal, v as TrustState, U as autoModeDenialShouldFallback, V as breakerShouldFallback, w as checkAbsoluteDeny, x as collectAllSignals, y as computeRulesFingerprint, F as createAutoModeDenialTracker, z as createAutoModeToolGuardrail, B as createCircuitBreaker, G as formatAgentsForPrompt, H as getKodaxGlobalDir, I as loadAgentsFiles, J as loadAutoRules, M as parseAutoRules, N as readTrustState, O as recordAutoModeAllow, P as recordAutoModeBlock, Q as recordBreakerError, X as trustProjectRules } from './types-chunks/guardrail.d-CXIPlWP3.js';
16
+ export { d as ManagedWorkflowStatus } from './types-chunks/run-manager.d-B9fEIjZk.js';
17
+ export { C as AUTO_MODE_DENIAL_CONSECUTIVE_THRESHOLD, u as AUTO_MODE_DENIAL_CUMULATIVE_THRESHOLD, A as AbsoluteDenyCheck, a as AbsoluteDenyMatch, b as AbsoluteDenyMiss, c as AbsoluteDenyResult, d as AgentsFile, e as AutoModeAskUser, f as AutoModeAskUserVerdict, g as AutoModeCallAnalyzer, D as AutoModeDenialTracker, h as AutoModeEngine, i as AutoModeGuardrailConfig, j as AutoModePermissionBoundary, k as AutoModePermissionOperation, l as AutoModePermissionReview, m as AutoModePermissionTarget, n as AutoModeRulesContext, o as AutoModeRulesDecision, p as AutoModeRulesEvaluator, q as AutoModeSharedState, r as AutoModeStats, s as AutoModeToolGuardrail, t as AutoRules, E as BREAKER_ERROR_THRESHOLD, W as BREAKER_WINDOW_MS, v as CircuitBreaker, K as KodaXMcpConnectMode, w as KodaXMcpServerConfig, x as KodaXMcpServersConfig, y as KodaXMcpTransport, L as LoadAgentsOptions, z as LoadedRulesSource, R as RulesLoadError, B as RulesLoadResult, S as SignalCollector, F as SkippedRulesSource, T as TierZeroPatternId, G as ToolCallSignal, H as TrustState, a1 as autoModeDenialShouldFallback, a2 as breakerShouldFallback, I as checkAbsoluteDeny, J as collectAllSignals, M as computeRulesFingerprint, P as createAutoModeDenialTracker, N as createAutoModeToolGuardrail, O as createCircuitBreaker, Q as formatAgentsForPrompt, U as getKodaxGlobalDir, V as loadAgentsFiles, X as loadAutoRules, Y as parseAutoRules, Z as readTrustState, _ as recordAutoModeAllow, $ as recordAutoModeBlock, a0 as recordBreakerError, a3 as trustProjectRules } from './types-chunks/guardrail.d-qjuKJZ31.js';
18
18
  import { KodaXRuntime } from './sdk-runtime.js';
19
- export { CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntimeMode, RuntimeConnectionService, RuntimeConnectionState, RuntimeCreateSessionInput, RuntimeCredentialLease, RuntimeCredentialService, RuntimeDaemonContextOptions, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonPreflight, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonStartRunInput, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeForkSessionInput, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolService, RuntimeIdentity, RuntimeInlineOwnerHandle, RuntimeInteractionResolvedEventPayload, RuntimeKodaXOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionScopeUpgradeRequiredError, RuntimePermissionService, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStatus, RuntimeSession, RuntimeSessionFilter, RuntimeSessionLoadedEventPayload, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionSummary, RuntimeStatusService, RuntimeStatusSnapshot, 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 } from './sdk-runtime.js';
19
+ export { CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntimeMode, RuntimeConnectionService, RuntimeConnectionState, RuntimeCreateSessionInput, RuntimeCredentialLease, RuntimeCredentialService, RuntimeDaemonContextOptions, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonPreflight, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonStartRunInput, RuntimeDeliveredInterruptInput, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeForkSessionInput, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolService, RuntimeIdentity, RuntimeInlineOwnerHandle, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionScopeUpgradeRequiredError, RuntimePermissionService, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStatus, 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 } from './sdk-runtime.js';
20
20
  import { Agent, AgentSideConnection, InitializeRequest, InitializeResponse, NewSessionRequest, NewSessionResponse, SetSessionModeRequest, SetSessionModeResponse, PromptRequest, PromptResponse } from '@agentclientprotocol/sdk';
21
- import { j as FileSessionStorage } from './types-chunks/public-api.d-FBmX0kxo.js';
22
- export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, d as RepLOptions, n as executeCommand, p as parseCommand, q as processSpecialSyntax, r as runInkInteractiveMode, s as runInteractiveMode } from './types-chunks/commands.d-CEHGwRok.js';
23
- 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-BPYX7-KN.js';
21
+ import { j as FileSessionStorage } from './types-chunks/public-api.d-CX4B11qY.js';
22
+ export { B as BUILTIN_COMMANDS, C as Command, I as InkREPLOptions, d as RepLOptions, n as executeCommand, p as parseCommand, q as processSpecialSyntax, r as runInkInteractiveMode, s as runInteractiveMode } from './types-chunks/commands.d-DUxnK2TU.js';
23
+ 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-D0wPxz8y.js';
24
24
  import '@anthropic-ai/sdk';
25
25
  import 'openai';
26
26
  import './types-chunks/types.d-DCQVBqVn.js';
27
27
  import 'vscode-languageserver-protocol';
28
- import './types-chunks/guardrail.d-CC4vAQl7.js';
28
+ import './types-chunks/guardrail.d-CWYD1bdL.js';
29
+ import './types-chunks/history-retrieval.d-BKTJIrVd.js';
29
30
  import './types-chunks/center-types.d-BBT122uJ.js';
30
31
  import 'readline';
31
32
  import 'child_process';