zen-code 4.10.1 → 4.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/app.js +157 -2615
  2. package/dist/chunk-0ddrb30y.js +1 -0
  3. package/dist/chunk-215an3fz.js +1 -0
  4. package/dist/chunk-40ht9pe1.js +91 -0
  5. package/dist/chunk-4wnmk2tj.js +7 -0
  6. package/dist/chunk-4z0w0ng1.js +2 -0
  7. package/dist/chunk-57bj89e2.js +1 -0
  8. package/dist/chunk-5a5mepqj.js +1 -0
  9. package/dist/chunk-5c3bpcpm.js +1 -0
  10. package/dist/chunk-7kw7ss8d.js +1 -0
  11. package/dist/chunk-86m0rmtc.js +1 -0
  12. package/dist/chunk-8f19qk9r.js +26 -0
  13. package/dist/chunk-8tbtavry.js +6 -0
  14. package/dist/chunk-9rayxazs.js +8 -0
  15. package/dist/chunk-a9gpb2tx.js +2 -0
  16. package/dist/chunk-a9tw6d68.js +1 -0
  17. package/dist/chunk-anbtppz1.js +294 -0
  18. package/dist/chunk-bca8tkkr.js +1 -0
  19. package/dist/chunk-bdqds8vh.js +1 -0
  20. package/dist/chunk-bzgznka5.js +3 -0
  21. package/dist/chunk-c7kd2qrp.js +278 -0
  22. package/dist/chunk-dvbb3dd1.js +233 -0
  23. package/dist/chunk-e8kxa5vj.js +140 -0
  24. package/dist/chunk-ehmmd8qc.js +1 -0
  25. package/dist/chunk-ejfa95sm.js +1 -0
  26. package/dist/chunk-f0m4532p.js +54 -0
  27. package/dist/chunk-f7cps5x1.js +1 -0
  28. package/dist/chunk-fbemqjck.js +2 -0
  29. package/dist/chunk-feeqtzv5.js +1 -0
  30. package/dist/chunk-fzh0v6r0.js +6 -0
  31. package/dist/chunk-g2zskge5.js +81 -0
  32. package/dist/chunk-g974hxbz.js +3 -0
  33. package/dist/chunk-g9911ymn.js +1 -0
  34. package/dist/chunk-gfhmzpy7.js +176 -0
  35. package/dist/chunk-gt8c6dne.js +3 -0
  36. package/dist/chunk-h8fdexm4.js +2 -0
  37. package/dist/chunk-hnnwbfqk.js +3 -0
  38. package/dist/chunk-hp2jzn9x.js +166 -0
  39. package/dist/chunk-hve2a279.js +2 -0
  40. package/dist/chunk-js4qp900.js +2 -0
  41. package/dist/chunk-k4q8j7pg.js +2 -0
  42. package/dist/chunk-m21hvv91.js +2 -0
  43. package/dist/chunk-mmx0k2yq.js +1 -0
  44. package/dist/chunk-mnnyjmgw.js +224 -0
  45. package/dist/chunk-mw7x6xqp.js +1 -0
  46. package/dist/chunk-n7s6my89.js +112 -0
  47. package/dist/chunk-n9rpnke9.js +4 -0
  48. package/dist/chunk-nk62q95g.js +93 -0
  49. package/dist/chunk-nmzx5nmt.js +1 -0
  50. package/dist/chunk-nqh1pptf.js +88 -0
  51. package/dist/chunk-nsw5168d.js +2 -0
  52. package/dist/chunk-pe8mzxwn.js +16 -0
  53. package/dist/chunk-pg1ppq4y.js +1 -0
  54. package/dist/chunk-pzb224c5.js +2 -0
  55. package/dist/chunk-q1cxrg0x.js +2 -0
  56. package/dist/chunk-qxebn3jw.js +18 -0
  57. package/dist/chunk-s1tbdcs8.js +4 -0
  58. package/dist/chunk-s5cqejr6.js +79 -0
  59. package/dist/chunk-spa69h7p.js +2 -0
  60. package/dist/chunk-spx7nn8t.js +6 -0
  61. package/dist/chunk-swc7se71.js +2 -0
  62. package/dist/chunk-swyc15ym.js +1 -0
  63. package/dist/chunk-t2s3s6af.js +1 -0
  64. package/dist/chunk-t6440ajd.js +5 -0
  65. package/dist/chunk-tjg2e8v3.js +41 -0
  66. package/dist/chunk-tjvhqr94.js +1 -0
  67. package/dist/chunk-vbb3m0vz.js +1 -0
  68. package/dist/chunk-vdmq9d9x.js +4 -0
  69. package/dist/chunk-vfxjbdz4.js +2 -0
  70. package/dist/chunk-vrnj0659.js +213 -0
  71. package/dist/chunk-wmyc17aa.js +23 -0
  72. package/dist/chunk-wt3p1w1g.js +1 -0
  73. package/dist/chunk-y5ry5c7v.js +1 -0
  74. package/dist/chunk-y8qhrx11.js +2 -0
  75. package/dist/chunk-yy8p9zph.js +2 -0
  76. package/dist/chunk-z61m3anh.js +1 -0
  77. package/dist/chunk-zg54h6gy.js +1 -0
  78. package/dist/chunk-zr90qp47.js +1 -0
  79. package/dist/chunk-zsa62xr0.js +2 -0
  80. package/dist/cli.js +1 -3116
  81. package/dist/nonInteractive.js +180 -1950
  82. package/dist/zen-keyboard.js +3 -358
  83. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import{createRequire as u}from"node:module";var n=Object.create;var{getPrototypeOf:o,defineProperty:e,getOwnPropertyNames:k,getOwnPropertyDescriptor:p}=Object,l=Object.prototype.hasOwnProperty;function m(a){return this[a]}var q,r,v=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?q??=new WeakMap:r??=new WeakMap,i=h.get(a);if(i)return i}c=a!=null?n(o(a)):{};let f=b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c;for(let g of k(a))if(!l.call(f,g))e(f,g,{get:m.bind(a,g),enumerable:!0});if(d)h.set(a,f);return f},w=(a)=>{var b=(j??=new WeakMap).get(a),c;if(b)return b;if(b=e({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of k(a))if(!l.call(b,d))e(b,d,{get:m.bind(a,d),enumerable:!(c=p(a,d))||c.enumerable})}return j.set(a,b),b},j,x=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var s=(a)=>a;function t(a,b){this[a]=s.bind(null,b)}var y=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0,configurable:!0,set:t.bind(b,c)})};var z=(a,b)=>()=>(a&&(b=a(a=0)),b);var B=u(import.meta.url);
2
+ export{v as Dl,w as El,x as Fl,y as Gl,z as Hl,B as Il};
@@ -0,0 +1,2 @@
1
+ import{tg as j,vg as k,wg as q}from"./chunk-pe8mzxwn.js";import{tl as f}from"./chunk-tjg2e8v3.js";var v=new k({messages:q,task_store:new j(f.record(f.string(),f.any()).default(()=>({})),{reducer:(w,x)=>({...w,...x})}),provider_id:f.string().default("default"),provider_type:f.string().default("openai"),model_id:f.string().default("qwen-plus"),agent_name:f.string().default("Code Agent"),switch_command:f.string().optional(),enable_thinking:f.boolean().default(!0),streaming:f.boolean().default(!1),user_id:f.string().optional(),thread_id:f.string().optional(),cwd:f.string().default(process.cwd())}),B=v,D=v;
2
+ export{B as uf,D as vf};
@@ -0,0 +1 @@
1
+ import"./chunk-a9tw6d68.js";import{ff as x}from"./chunk-k4q8j7pg.js";import"./chunk-spx7nn8t.js";import"./chunk-vfxjbdz4.js";import"./chunk-qxebn3jw.js";import{Vf as v}from"./chunk-mnnyjmgw.js";import"./chunk-fzh0v6r0.js";import"./chunk-t6440ajd.js";import"./chunk-f0m4532p.js";import"./chunk-pe8mzxwn.js";import"./chunk-hp2jzn9x.js";import"./chunk-nk62q95g.js";import"./chunk-nmzx5nmt.js";import"./chunk-e8kxa5vj.js";import"./chunk-q1cxrg0x.js";import"./chunk-tjg2e8v3.js";import"./chunk-nsw5168d.js";import"./chunk-hve2a279.js";import"./chunk-y8qhrx11.js";var u=null;function A(){if(!u)u=(async()=>{let k=new x;return await k.initialize(),k})();return u}class z extends v{constructor(k){super({configProvider:async()=>z.loadConfigFromStore(),cache:k})}static async loadConfigFromStore(){try{let q=await(await A()).getConfig();if(!q.mcp_config||Object.keys(q.mcp_config).length===0)return null;return{servers:q.mcp_config}}catch(k){return console.error("Failed to load MCP config from store:",k),null}}}export{z as MCPWithConfigMiddleware};
@@ -0,0 +1 @@
1
+ import{d as V,e as L,g as M}from"./chunk-swc7se71.js";import{Kd as U}from"./chunk-n9rpnke9.js";import"./chunk-y8qhrx11.js";async function P(z){return typeof z==="function"?await z():z}var Z=class extends M{constructor(z){super(async()=>{let x=await P(z.database);return{db:x,close:()=>x.close(),query:L({all:async(H,A)=>{return await x.execO(H,A)},run:async()=>({numAffectedRows:BigInt(x.api.changes(x.db)),insertId:BigInt((await x.execA("SELECT last_insert_rowid()"))[0])})})}},z.onCreateConnection)}},_=class extends V{constructor(){super(()=>new U)}},$=class extends M{constructor(z){super(async()=>{let x=await P(z.database);return{db:x,close:()=>x.close(),query:L({all:(H,A)=>{return x.all(H,A)},run:(H)=>{let{changes:A,lastInsertRowid:K}=x.run(H);return{insertId:BigInt(K),numAffectedRows:BigInt(A)}}}),iterator:(H,A,K)=>{if(!H)throw Error("Only support select query");return x.prepare(A).iterate(K)}}},z.onCreateConnection)}},v=class extends M{constructor(z){super(async()=>{let x=await P(z.database);return{db:x,close:()=>x.close(),query:L({all:(H,A)=>{return x.selectObjects(H,A)},run:()=>({insertId:BigInt(x.selectArray("SELECT last_insert_rowid()")?.[0]||0),numAffectedRows:BigInt(x.changes(!1,!0))})})}},z.onCreateConnection)}},C=class extends M{constructor(z){super(async()=>{let x=await P(z.database);return{db:x,close:()=>x.close(),query:L({run:()=>({insertId:BigInt(x.exec("SELECT last_insert_rowid()")[0].values[0][0]),numAffectedRows:BigInt(x.getRowsModified())}),all:(H,A)=>{let K=x.prepare(H);try{if(A?.length)K.bind(A);let T=[];while(K.step())T.push(K.getAsObject());return T}finally{K.free()}}})}},z.onCreateConnection)}};export{C as SqlJsDialect,v as OfficialWasmDialect,$ as NodeWasmDialect,_ as EmptyDialect,Z as CrSqliteDialect};
@@ -0,0 +1 @@
1
+ import{se as o}from"./chunk-gfhmzpy7.js";import"./chunk-f0m4532p.js";import"./chunk-pe8mzxwn.js";import"./chunk-hp2jzn9x.js";import"./chunk-nk62q95g.js";import"./chunk-nmzx5nmt.js";import"./chunk-q1cxrg0x.js";import"./chunk-tjg2e8v3.js";import"./chunk-hve2a279.js";import"./chunk-y8qhrx11.js";var a={name:"task",tools:[o]};export{a as taskMiddleware};
@@ -0,0 +1,2 @@
1
+ import{tf as B}from"./chunk-n7s6my89.js";import{vf as z}from"./chunk-yy8p9zph.js";import{bg as q,cg as v}from"./chunk-mnnyjmgw.js";async function O(x){let D=await q(x);return new v({agents:D,stateSchema:z,async createAgent(E,G,H){return await B(G.subagent_id,x,H,{},{parent_id:E})}})}
2
+ export{O as lf};