@kodax-ai/kodax 0.7.58 → 0.7.60

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 (73) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +11 -4
  3. package/README_CN.md +10 -4
  4. package/dist/chunks/{agent-YJNC2755.js → agent-L5FC3YOY.js} +1 -1
  5. package/dist/chunks/argument-completer-BQDAYT7W.js +2 -0
  6. package/dist/chunks/chunk-2RLIKZOZ.js +18 -0
  7. package/dist/chunks/chunk-4K5BDO7S.js +721 -0
  8. package/dist/chunks/{chunk-XXEIFNBE.js → chunk-5TRQBMPR.js} +1 -1
  9. package/dist/chunks/{chunk-QHWXPJEG.js → chunk-6DWXUZMO.js} +166 -167
  10. package/dist/chunks/{chunk-CV6JHPEO.js → chunk-6OZ5KWG3.js} +1 -1
  11. package/dist/chunks/chunk-IJN6ZJVI.js +310 -0
  12. package/dist/chunks/chunk-QFCF3GNT.js +326 -0
  13. package/dist/chunks/{chunk-HS2K74I4.js → chunk-S4GVQO3W.js} +13 -13
  14. package/dist/chunks/{chunk-6AU6EPO6.js → chunk-SGNM3UP6.js} +1 -1
  15. package/dist/chunks/chunk-U6BNMGSK.js +17 -0
  16. package/dist/chunks/{chunk-526OILYL.js → chunk-UA744TZM.js} +1 -1
  17. package/dist/chunks/{chunk-NKHXRN7G.js → chunk-XULI4U7I.js} +119 -117
  18. package/dist/chunks/chunk-ZL5CEANW.js +7 -0
  19. package/dist/chunks/chunk-ZPD7IUKW.js +322 -0
  20. package/dist/chunks/compaction-config-E4LN3M53.js +2 -0
  21. package/dist/chunks/{construction-bootstrap-CIXFH5SE.js → construction-bootstrap-GIFDM4L5.js} +1 -1
  22. package/dist/chunks/dist-73L4OYPD.js +2 -0
  23. package/dist/chunks/dist-7PXDYX2R.js +2 -0
  24. package/dist/chunks/host-FLG7FJZT.js +2 -0
  25. package/dist/chunks/{paste-Y4DVUWSM.js → paste-FDYM7SZX.js} +1 -1
  26. package/dist/chunks/run-manager-IU5COC6X.js +2 -0
  27. package/dist/chunks/{utils-FLVVQHM7.js → utils-NP42DKL3.js} +1 -1
  28. package/dist/index.d.ts +13 -12
  29. package/dist/index.js +2 -2
  30. package/dist/kodax_cli.js +1063 -1020
  31. package/dist/provider-capabilities.json +971 -986
  32. package/dist/sdk-agent.d.ts +27 -15
  33. package/dist/sdk-agent.js +1 -1
  34. package/dist/sdk-coding.d.ts +84 -17
  35. package/dist/sdk-coding.js +1 -1
  36. package/dist/sdk-llm.d.ts +6 -6
  37. package/dist/sdk-llm.js +1 -1
  38. package/dist/sdk-mcp.js +1 -1
  39. package/dist/sdk-media.d.ts +1 -1
  40. package/dist/sdk-media.js +1 -1
  41. package/dist/sdk-repl.d.ts +13 -11
  42. package/dist/sdk-repl.js +2 -2
  43. package/dist/sdk-session.d.ts +7 -6
  44. package/dist/sdk-session.js +1 -1
  45. package/dist/sdk-skills.d.ts +4 -231
  46. package/dist/sdk-skills.js +1 -1
  47. package/dist/types-chunks/{base.d-BA9Doaj_.d.ts → base.d-DalIRhbb.d.ts} +1 -1
  48. package/dist/types-chunks/{bash-prefix-extractor.d-D3cddmyV.d.ts → bash-prefix-extractor.d-Ds1THKeH.d.ts} +88 -27
  49. package/dist/types-chunks/{capability-learning.d-DRV80ISB.d.ts → capability-learning.d-BQB0M70w.d.ts} +1 -1
  50. package/dist/types-chunks/{guardrail.d-iK7FwMdW.d.ts → guardrail.d-CdqJwwN7.d.ts} +3 -3
  51. package/dist/types-chunks/{process.d-DHow2y2G.d.ts → process.d-C93UMgPK.d.ts} +39 -6
  52. package/dist/types-chunks/{resolver.d-DDOfVYDr.d.ts → resolver.d-CGkfRULj.d.ts} +58 -4
  53. package/dist/types-chunks/{run-manager.d-ByDcJc5g.d.ts → run-manager.d-DLK3ed-T.d.ts} +5 -5
  54. package/dist/types-chunks/{sdk-session-21Tt3N_x.d.ts → sdk-session-CtwN7iBO.d.ts} +56 -8
  55. package/dist/types-chunks/{storage.d-BsZrBPYu.d.ts → storage.d-DlZS0g8w.d.ts} +2 -2
  56. package/dist/types-chunks/{types.d-Ci5YPFEh.d.ts → types.d-Bp4Lm1jv.d.ts} +37 -3
  57. package/dist/types-chunks/{types.d-D4ZA8LJV.d.ts → types.d-CSZAMmU-.d.ts} +4 -1
  58. package/dist/types-chunks/types.d-vJExiRje.d.ts +232 -0
  59. package/dist/types-chunks/{utils.d-BURxOxFd.d.ts → utils.d-Boz9k2HB.d.ts} +6 -5
  60. package/package.json +1 -1
  61. package/dist/chunks/argument-completer-QGBNXTYJ.js +0 -2
  62. package/dist/chunks/chunk-73Z7BK5H.js +0 -15
  63. package/dist/chunks/chunk-7QB55SYG.js +0 -326
  64. package/dist/chunks/chunk-CQ6EQG7E.js +0 -322
  65. package/dist/chunks/chunk-OBPB5BQ6.js +0 -310
  66. package/dist/chunks/chunk-P4VF3JEP.js +0 -7
  67. package/dist/chunks/chunk-PIQWODWN.js +0 -18
  68. package/dist/chunks/chunk-ZZDC75H4.js +0 -681
  69. package/dist/chunks/compaction-config-OPMRZSAK.js +0 -2
  70. package/dist/chunks/dist-JSE7NICF.js +0 -2
  71. package/dist/chunks/dist-SDNQOW52.js +0 -2
  72. package/dist/chunks/host-H7FQMMRC.js +0 -2
  73. package/dist/chunks/run-manager-4H5HWMVW.js +0 -2
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{b as i,j as c,k as d,o as l}from"./chunk-P4VF3JEP.js";import{a as t}from"./chunk-V4WSBIXB.js";var b="\x1B[?2004h",P="\x1B[?2004l",f=!1,a=!1;function T(){if(!a)try{process.stdout.write(b),a=!0}catch{}}t(T,"enableBracketedPasteMode");function g(){if(a)try{process.stdout.write(P)}catch{}finally{a=!1}}t(g,"disableBracketedPasteMode");function h(){return a}t(h,"isBracketedPasteModeEnabled");function _(){if(f)return;f=!0;let e=t(()=>g(),"handler");process.once("beforeExit",e),process.once("exit",e),process.once("SIGINT",()=>{e(),process.kill(process.pid,"SIGINT")}),process.once("SIGTERM",()=>{e(),process.kill(process.pid,"SIGTERM")}),process.once("uncaughtException",r=>{throw e(),r})}t(_,"installBracketedPasteShutdownGuard");import{readFile as R}from"node:fs/promises";var y=/\.(png|jpe?g|gif|webp|bmp)$/i;async function N(e){if(e.length===0)return process.platform==="darwin"?I():{kind:"text",text:""};let r=k(e);return r.length>0?G(r,e):{kind:"text",text:e}}t(N,"handleBracketedPaste");async function z(){return I()}t(z,"triggerExplicitClipboardImage");async function I(){let e;try{e=await d()}catch(r){return{kind:"error",message:`Failed to read clipboard image: ${m(r)}`}}return e?E(e):{kind:"noop"}}t(I,"readClipboardAsImagesOutcome");async function G(e,r){let o=[],s=[];for(let p of e){let u;try{u=await R(p)}catch(x){s.push(`Failed to read ${p}: ${m(x)}`);continue}let n=await E(u);n.kind==="images"?o.push(...n.blocks):n.kind==="error"&&s.push(n.message)}return o.length===0?s.length>0?{kind:"error",message:s.join("; ")}:{kind:"text",text:r}:{kind:"images",blocks:o}}t(G,"readImagePathsAsOutcome");async function E(e){try{let r=await c(e);return{kind:"images",blocks:[await l(r)]}}catch(r){return r instanceof i?{kind:"error",message:r.message}:{kind:"error",message:`Failed to process pasted image: ${m(r)}`}}}t(E,"decodeBufferToOutcome");function k(e){return e.split(/ (?=\/|[A-Za-z]:\\)/).filter(o=>y.test(o.trim()))}t(k,"extractImagePaths");function m(e){return e instanceof Error?e.message:String(e)}t(m,"describeError");export{T as a,g as b,h as c,_ as d,N as e,z as f,k as g};
2
+ import{b as i,j as c,k as d,o as l}from"./chunk-ZL5CEANW.js";import{a as t}from"./chunk-V4WSBIXB.js";var b="\x1B[?2004h",P="\x1B[?2004l",f=!1,a=!1;function T(){if(!a)try{process.stdout.write(b),a=!0}catch{}}t(T,"enableBracketedPasteMode");function g(){if(a)try{process.stdout.write(P)}catch{}finally{a=!1}}t(g,"disableBracketedPasteMode");function h(){return a}t(h,"isBracketedPasteModeEnabled");function _(){if(f)return;f=!0;let e=t(()=>g(),"handler");process.once("beforeExit",e),process.once("exit",e),process.once("SIGINT",()=>{e(),process.kill(process.pid,"SIGINT")}),process.once("SIGTERM",()=>{e(),process.kill(process.pid,"SIGTERM")}),process.once("uncaughtException",r=>{throw e(),r})}t(_,"installBracketedPasteShutdownGuard");import{readFile as R}from"node:fs/promises";var y=/\.(png|jpe?g|gif|webp|bmp)$/i;async function N(e){if(e.length===0)return process.platform==="darwin"?I():{kind:"text",text:""};let r=k(e);return r.length>0?G(r,e):{kind:"text",text:e}}t(N,"handleBracketedPaste");async function z(){return I()}t(z,"triggerExplicitClipboardImage");async function I(){let e;try{e=await d()}catch(r){return{kind:"error",message:`Failed to read clipboard image: ${m(r)}`}}return e?E(e):{kind:"noop"}}t(I,"readClipboardAsImagesOutcome");async function G(e,r){let o=[],s=[];for(let p of e){let u;try{u=await R(p)}catch(x){s.push(`Failed to read ${p}: ${m(x)}`);continue}let n=await E(u);n.kind==="images"?o.push(...n.blocks):n.kind==="error"&&s.push(n.message)}return o.length===0?s.length>0?{kind:"error",message:s.join("; ")}:{kind:"text",text:r}:{kind:"images",blocks:o}}t(G,"readImagePathsAsOutcome");async function E(e){try{let r=await c(e);return{kind:"images",blocks:[await l(r)]}}catch(r){return r instanceof i?{kind:"error",message:r.message}:{kind:"error",message:`Failed to process pasted image: ${m(r)}`}}}t(E,"decodeBufferToOutcome");function k(e){return e.split(/ (?=\/|[A-Za-z]:\\)/).filter(o=>y.test(o.trim()))}t(k,"extractImagePaths");function m(e){return e instanceof Error?e.message:String(e)}t(m,"describeError");export{T as a,g as b,h as c,_ as d,N as e,z as f,k as g};