zen-code 4.10.2 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +149 -239
- package/dist/{chunk-pzb224c5.js → chunk-0p3df51n.js} +2 -2
- package/dist/{chunk-tjg2e8v3.js → chunk-0pzpg2ra.js} +2 -2
- package/dist/{chunk-wmyc17aa.js → chunk-142wmdx8.js} +1 -1
- package/dist/chunk-1t3rabge.js +1 -0
- package/dist/chunk-2gd8vzrf.js +2 -0
- package/dist/{chunk-vrnj0659.js → chunk-2z45fjmt.js} +51 -51
- package/dist/chunk-3gn0c0j2.js +2 -0
- package/dist/chunk-3nhw50tg.js +1 -0
- package/dist/{chunk-g974hxbz.js → chunk-4260bzp9.js} +1 -1
- package/dist/{chunk-5c3bpcpm.js → chunk-4vh3dxeg.js} +1 -1
- package/dist/{chunk-hnnwbfqk.js → chunk-5e2s5jvw.js} +2 -2
- package/dist/{chunk-s5cqejr6.js → chunk-5kcxxes1.js} +1 -1
- package/dist/chunk-6t0qzren.js +2 -0
- package/dist/chunk-74k5n8f5.js +2 -0
- package/dist/chunk-780j97nd.js +1 -0
- package/dist/chunk-78t2g3ht.js +1 -0
- package/dist/chunk-7d48d71t.js +228 -0
- package/dist/chunk-96b00ygr.js +1 -0
- package/dist/chunk-9kbktaf8.js +89 -0
- package/dist/chunk-a4rvf135.js +1 -0
- package/dist/chunk-ahsvdb98.js +1 -0
- package/dist/{chunk-k4q8j7pg.js → chunk-an34z8wv.js} +1 -1
- package/dist/chunk-arm90pny.js +1 -0
- package/dist/{chunk-40ht9pe1.js → chunk-avqzptcg.js} +2 -2
- package/dist/{chunk-s1tbdcs8.js → chunk-b0yk07x5.js} +1 -1
- package/dist/{chunk-nqh1pptf.js → chunk-be8n8w26.js} +1 -1
- package/dist/{chunk-c7kd2qrp.js → chunk-bqkrynm6.js} +112 -111
- package/dist/chunk-bv28r5cf.js +1 -0
- package/dist/{chunk-mmx0k2yq.js → chunk-c59eqb10.js} +1 -1
- package/dist/{chunk-t6440ajd.js → chunk-cbr2vrpt.js} +2 -2
- package/dist/{chunk-fzh0v6r0.js → chunk-csn4vg3d.js} +2 -2
- package/dist/chunk-df36fv24.js +1 -0
- package/dist/chunk-e3jv1c1w.js +1 -0
- package/dist/{chunk-vbb3m0vz.js → chunk-e6m161vn.js} +1 -1
- package/dist/{chunk-vfxjbdz4.js → chunk-eqetcfer.js} +1 -1
- package/dist/{chunk-8f19qk9r.js → chunk-eze2fzrq.js} +1 -1
- package/dist/{chunk-nmzx5nmt.js → chunk-femf7e4d.js} +1 -1
- package/dist/{chunk-gt8c6dne.js → chunk-fvg6pct8.js} +1 -1
- package/dist/chunk-g2n6hnjp.js +5 -0
- package/dist/{chunk-e8kxa5vj.js → chunk-ge071wp4.js} +2 -2
- package/dist/chunk-h9w6y105.js +1 -0
- package/dist/chunk-hzxg9kx6.js +1 -0
- package/dist/{chunk-g2zskge5.js → chunk-j2qd9mfs.js} +2 -2
- package/dist/chunk-j40cj742.js +2 -0
- package/dist/chunk-jbqqb1ht.js +2 -0
- package/dist/chunk-jz0kw4yt.js +2 -0
- package/dist/chunk-kknfcsyy.js +1 -0
- package/dist/{chunk-zg54h6gy.js → chunk-kvnw06wg.js} +1 -1
- package/dist/chunk-kyb15dg8.js +2 -0
- package/dist/chunk-mq4m1w4w.js +15 -0
- package/dist/chunk-mqcbjght.js +1 -0
- package/dist/{chunk-pe8mzxwn.js → chunk-mqm8wnc8.js} +11 -11
- package/dist/chunk-n7bpjcb0.js +1 -0
- package/dist/chunk-ncaqgas1.js +160 -0
- package/dist/{chunk-f0m4532p.js → chunk-nh11afw0.js} +5 -5
- package/dist/{chunk-spx7nn8t.js → chunk-nwmvyez4.js} +2 -2
- package/dist/chunk-nzyvqxt4.js +1 -0
- package/dist/{chunk-nsw5168d.js → chunk-p6c1xbd5.js} +2 -2
- package/dist/chunk-p75m7q2h.js +1 -0
- package/dist/{chunk-spa69h7p.js → chunk-pffdbhs6.js} +2 -2
- package/dist/chunk-phw7yp5t.js +1 -0
- package/dist/{chunk-8tbtavry.js → chunk-q0452p0f.js} +2 -2
- package/dist/chunk-r133z8tq.js +8 -0
- package/dist/{chunk-qxebn3jw.js → chunk-rqymdmqg.js} +3 -3
- package/dist/chunk-rr7h6wdp.js +7 -0
- package/dist/{chunk-gfhmzpy7.js → chunk-s04zfe57.js} +2 -3
- package/dist/chunk-twhnh3dc.js +1 -0
- package/dist/chunk-tws3wcnm.js +2 -0
- package/dist/chunk-txnezkkt.js +1 -0
- package/dist/{chunk-tjvhqr94.js → chunk-vttq7sqg.js} +1 -1
- package/dist/chunk-vvs5da2x.js +281 -0
- package/dist/{chunk-n9rpnke9.js → chunk-vwj4n000.js} +1 -1
- package/dist/{chunk-4wnmk2tj.js → chunk-w4tbr5h7.js} +3 -3
- package/dist/{chunk-n7s6my89.js → chunk-wts8db9p.js} +32 -32
- package/dist/{chunk-y8qhrx11.js → chunk-x17jyjan.js} +1 -1
- package/dist/chunk-x7x7esvz.js +8 -0
- package/dist/chunk-xprg4hxp.js +17 -0
- package/dist/chunk-xrfpz1vw.js +2 -0
- package/dist/{chunk-hve2a279.js → chunk-xtr6s7kh.js} +2 -2
- package/dist/{chunk-bzgznka5.js → chunk-y807k0kw.js} +1 -1
- package/dist/chunk-ycp2e43r.js +1 -0
- package/dist/chunk-yfv1xeeh.js +2 -0
- package/dist/chunk-zxpb45tb.js +1 -0
- package/dist/cli.js +1 -1
- package/dist/nonInteractive.js +80 -80
- package/dist/zen-core.js +261 -0
- package/dist/zen-keyboard.js +1 -1
- package/package.json +5 -3
- package/dist/chunk-0ddrb30y.js +0 -1
- package/dist/chunk-215an3fz.js +0 -1
- package/dist/chunk-4z0w0ng1.js +0 -2
- package/dist/chunk-57bj89e2.js +0 -1
- package/dist/chunk-5a5mepqj.js +0 -1
- package/dist/chunk-7kw7ss8d.js +0 -1
- package/dist/chunk-86m0rmtc.js +0 -1
- package/dist/chunk-9rayxazs.js +0 -8
- package/dist/chunk-a9gpb2tx.js +0 -2
- package/dist/chunk-a9tw6d68.js +0 -1
- package/dist/chunk-anbtppz1.js +0 -294
- package/dist/chunk-bca8tkkr.js +0 -1
- package/dist/chunk-bdqds8vh.js +0 -1
- package/dist/chunk-dvbb3dd1.js +0 -233
- package/dist/chunk-ehmmd8qc.js +0 -1
- package/dist/chunk-ejfa95sm.js +0 -1
- package/dist/chunk-f7cps5x1.js +0 -1
- package/dist/chunk-fbemqjck.js +0 -2
- package/dist/chunk-feeqtzv5.js +0 -1
- package/dist/chunk-g9911ymn.js +0 -1
- package/dist/chunk-h8fdexm4.js +0 -2
- package/dist/chunk-hp2jzn9x.js +0 -166
- package/dist/chunk-js4qp900.js +0 -2
- package/dist/chunk-m21hvv91.js +0 -2
- package/dist/chunk-mnnyjmgw.js +0 -224
- package/dist/chunk-mw7x6xqp.js +0 -1
- package/dist/chunk-nk62q95g.js +0 -93
- package/dist/chunk-pg1ppq4y.js +0 -1
- package/dist/chunk-q1cxrg0x.js +0 -2
- package/dist/chunk-swc7se71.js +0 -2
- package/dist/chunk-swyc15ym.js +0 -1
- package/dist/chunk-t2s3s6af.js +0 -1
- package/dist/chunk-vdmq9d9x.js +0 -4
- package/dist/chunk-wt3p1w1g.js +0 -1
- package/dist/chunk-y5ry5c7v.js +0 -1
- package/dist/chunk-yy8p9zph.js +0 -2
- package/dist/chunk-z61m3anh.js +0 -1
- package/dist/chunk-zr90qp47.js +0 -1
- package/dist/chunk-zsa62xr0.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Fe as z,Yd as x,fe as w}from"./chunk-vwj4n000.js";import"./chunk-x17jyjan.js";class J{constructor(h){this.pool=h,this.db=new x({dialect:new z({pool:h})})}db;dateToDb(h){return h}dbToDate(h){return h instanceof Date?h:new Date(h)}jsonToDb(h){return h}dbToJson(h){return h}buildJsonQuery(h,C,H,I){return w`${w.ref(C)}->>${w.lit(H)} = ${w.lit(JSON.stringify(I))}`}now(){return new Date}async createTables(h){await w`
|
|
2
2
|
CREATE TABLE IF NOT EXISTS threads (
|
|
3
3
|
thread_id TEXT PRIMARY KEY,
|
|
4
4
|
created_at TIMESTAMP NOT NULL,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ze as c}from"./chunk-wts8db9p.js";import{Ff as a,Gf as b}from"./chunk-7d48d71t.js";import"./chunk-nh11afw0.js";import"./chunk-mqm8wnc8.js";import"./chunk-ncaqgas1.js";import"./chunk-cbr2vrpt.js";import"./chunk-csn4vg3d.js";import"./chunk-9kbktaf8.js";import"./chunk-p6c1xbd5.js";import"./chunk-r133z8tq.js";import"./chunk-ge071wp4.js";import"./chunk-g2n6hnjp.js";import"./chunk-femf7e4d.js";import"./chunk-jbqqb1ht.js";import"./chunk-0pzpg2ra.js";import"./chunk-xtr6s7kh.js";import"./chunk-x17jyjan.js";export{a as getAgentListFromPackage,c as createSubAgentsMiddleware,b as SubAgentsMiddleware};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var O=(h)=>typeof h==="object"&&h!==null,A=(h)=>{if(!O(h))return!1;if(h instanceof RegExp||h instanceof Error||h instanceof Date||h instanceof Map||h instanceof Set||h instanceof WeakMap||h instanceof WeakSet||h instanceof Promise||h instanceof ArrayBuffer||h instanceof DataView||ArrayBuffer.isView(h)||globalThis.Blob&&h instanceof globalThis.Blob)return!1;if(typeof h.$$typeof==="symbol"||typeof h.asymmetricMatch==="function")return!1;return!0},S=Symbol("mapObjectSkip"),P=(h,f)=>{if(f){let d=Object.keys(h),M=Object.getOwnPropertySymbols(h).filter((z)=>Object.getOwnPropertyDescriptor(h,z)?.enumerable);return[...d,...M]}return Object.keys(h)},N=(h,f,d,M=new WeakMap)=>{let{target:z={},...Y}={deep:!1,includeSymbols:!1,...d};if(M.has(h))return M.get(h);M.set(h,z);let $=(q)=>q.map((Q)=>A(Q)?N(Q,f,Y,M):Q);if(Array.isArray(h))return $(h);for(let q of P(h,Y.includeSymbols)){let Q=h[q],I=f(q,Q);if(I===S)continue;if(!Array.isArray(I))throw TypeError(`Mapper must return an array or mapObjectSkip, got ${I===null?"null":typeof I}`);if(I.length<2)throw TypeError(`Mapper must return an array with at least 2 elements [key, value], got ${I.length} elements`);let[J,X,{shouldRecurse:_=!0}={}]=I;if(J==="__proto__")continue;if(Y.deep&&_&&A(X))X=Array.isArray(X)?$(X):N(X,f,Y,M);try{z[J]=X}catch(G){if(G.name==="TypeError"&&G.message.includes("read only"))continue;throw G}}return z};function K(h,f,d){if(!O(h))throw TypeError(`Expected an object, got \`${h}\` (${typeof h})`);if(Array.isArray(h))throw TypeError("Expected an object, got an array");return N(h,(z,Y)=>f(z,Y,h),d)}var w=/[\p{Lu}]/u,U=/[\p{Ll}]/u,L=/^[\p{Lu}](?![\p{Lu}])/u,V=/[_.\- ]+/,R=/([\p{Alpha}\p{N}_]|$)/u,k=new RegExp("^"+V.source),j=new RegExp(V.source+R.source,"gu"),y=new RegExp(String.raw`\d+`+R.source,"gu"),b=(h,f,d,M)=>{let z=!1,Y=!1,$=!1,q=!1;for(let Q=0;Q<h.length;Q++){let I=h[Q];if(q=Q>2?h[Q-3]==="-":!0,z&&w.test(I))h=h.slice(0,Q)+"-"+h.slice(Q),z=!1,$=Y,Y=!0,Q++;else if(Y&&$&&U.test(I)&&(!q||M))h=h.slice(0,Q-1)+"-"+h.slice(Q-1),$=Y,Y=!1,z=!0;else z=f(I)===I&&d(I)!==I,$=Y,Y=d(I)===I&&f(I)!==I}return h},m=(h,f)=>h.replace(L,(d)=>f(d)),C=(h,f,d)=>{let M="",z=!1,Y=!1,$=[...h];for(let q=0;q<$.length;q++){let Q=$[q],I=w.test(Q),J=q+1<$.length&&w.test($[q+1]);if(z&&/[\p{Alpha}]/u.test(Q))M+=Q,z=!1,Y=I;else if(d&&I&&(Y||J))M+=Q,Y=!0;else if(/\d/.test(Q))M+=Q,z=!0,Y=!1;else if(V.test(Q))M+=Q,Y=!1;else M+=f(Q),z=!1,Y=!1}return M},l=(h,f,{capitalizeAfterNumber:d})=>{let M=d?(z,Y,$,q)=>{let Q=q.charAt($+z.length);if(V.test(Q))return z;return Y?z.slice(0,-Y.length)+f(Y):z}:(z)=>z;return h.replaceAll(y,M).replaceAll(j,(z,Y)=>f(Y))};function W(h,f){if(!(typeof h==="string"||Array.isArray(h)))throw TypeError("Expected the input to be `string | string[]`");if(f={pascalCase:!1,preserveConsecutiveUppercase:!1,capitalizeAfterNumber:!0,...f},Array.isArray(h))h=h.map(($)=>$.trim()).filter(($)=>$.length>0).join("-");else h=h.trim();if(h.length===0)return"";let d=h.match(/^[_$]*/)[0];if(h=h.slice(d.length),h.length===0)return d;let M=f.locale===!1?($)=>$.toLowerCase():($)=>$.toLocaleLowerCase(f.locale),z=f.locale===!1?($)=>$.toUpperCase():($)=>$.toLocaleUpperCase(f.locale);if(h.length===1){if(V.test(h))return d;return d+(f.pascalCase?z(h):M(h))}if(h!==M(h))h=b(h,M,z,f.preserveConsecutiveUppercase);if(h=h.replace(k,""),f.capitalizeAfterNumber)h=f.preserveConsecutiveUppercase?m(h,M):M(h);else h=C(h,M,f.preserveConsecutiveUppercase);if(f.pascalCase&&h.length>0)h=z(h[0])+h.slice(1);return d+l(h,z,f)}class D extends Map{#d=0;#h=new Map;#f=new Map;#z;#Q;#Y;constructor(h={}){super();if(!(h.maxSize&&h.maxSize>0))throw TypeError("`maxSize` must be a number greater than 0");if(typeof h.maxAge==="number"&&h.maxAge===0)throw TypeError("`maxAge` must be a number greater than 0");this.#z=h.maxSize,this.#Q=h.maxAge||Number.POSITIVE_INFINITY,this.#Y=h.onEviction}get __oldCache(){return this.#f}#$(h){if(typeof this.#Y!=="function")return;for(let[f,d]of h)this.#Y(f,d.value)}#M(h,f){if(typeof f.expiry==="number"&&f.expiry<=Date.now()){if(typeof this.#Y==="function")this.#Y(h,f.value);return this.delete(h)}return!1}#J(h,f){if(this.#M(h,f)===!1)return f.value}#q(h,f){return f.expiry?this.#J(h,f):f.value}#x(h,f){let d=f.get(h);return this.#q(h,d)}#H(h,f){if(this.#h.set(h,f),this.#d++,this.#d>=this.#z)this.#d=0,this.#$(this.#f),this.#f=this.#h,this.#h=new Map}#X(h,f){this.#f.delete(h),this.#H(h,f)}*#I(){for(let h of this.#f){let[f,d]=h;if(!this.#h.has(f)){if(this.#M(f,d)===!1)yield h}}for(let h of this.#h){let[f,d]=h;if(this.#M(f,d)===!1)yield h}}get(h){if(this.#h.has(h)){let f=this.#h.get(h);return this.#q(h,f)}if(this.#f.has(h)){let f=this.#f.get(h);if(this.#M(h,f)===!1)return this.#X(h,f),f.value}}set(h,f,{maxAge:d=this.#Q}={}){let M=typeof d==="number"&&d!==Number.POSITIVE_INFINITY?Date.now()+d:void 0;if(this.#h.has(h))this.#h.set(h,{value:f,expiry:M});else this.#H(h,{value:f,expiry:M});return this}has(h){if(this.#h.has(h))return!this.#M(h,this.#h.get(h));if(this.#f.has(h))return!this.#M(h,this.#f.get(h));return!1}peek(h){if(this.#h.has(h))return this.#x(h,this.#h);if(this.#f.has(h))return this.#x(h,this.#f)}expiresIn(h){let f=this.#h.get(h)??this.#f.get(h);if(f)return f.expiry?f.expiry-Date.now():Number.POSITIVE_INFINITY}delete(h){let f=this.#h.delete(h);if(f)this.#d--;return this.#f.delete(h)||f}clear(){this.#h.clear(),this.#f.clear(),this.#d=0}resize(h){if(!(h&&h>0))throw TypeError("`maxSize` must be a number greater than 0");let f=[...this.#I()],d=f.length-h;if(d<0)this.#h=new Map(f),this.#f=new Map,this.#d=f.length;else{if(d>0)this.#$(f.slice(0,d));this.#f=new Map(f.slice(d)),this.#h=new Map,this.#d=0}this.#z=h}evict(h=1){let f=Number(h);if(!f||f<=0)return;let d=[...this.#I()],M=Math.trunc(Math.min(f,Math.max(d.length-1,0)));if(M<=0)return;this.#$(d.slice(0,M)),this.#f=new Map(d.slice(M)),this.#h=new Map,this.#d=0}*keys(){for(let[h]of this)yield h}*values(){for(let[,h]of this)yield h}*[Symbol.iterator](){for(let h of this.#h){let[f,d]=h;if(this.#M(f,d)===!1)yield[f,d.value]}for(let h of this.#f){let[f,d]=h;if(!this.#h.has(f)){if(this.#M(f,d)===!1)yield[f,d.value]}}}*entriesDescending(){let h=[...this.#h];for(let f=h.length-1;f>=0;--f){let d=h[f],[M,z]=d;if(this.#M(M,z)===!1)yield[M,z.value]}h=[...this.#f];for(let f=h.length-1;f>=0;--f){let d=h[f],[M,z]=d;if(!this.#h.has(M)){if(this.#M(M,z)===!1)yield[M,z.value]}}}*entriesAscending(){for(let[h,f]of this.#I())yield[h,f.value]}get size(){if(!this.#d)return this.#f.size;let h=0;for(let f of this.#f.keys())if(!this.#h.has(f))h++;return Math.min(this.#d+h,this.#z)}get maxSize(){return this.#z}get maxAge(){return this.#Q}entries(){return this.entriesAscending()}forEach(h,f=this){for(let[d,M]of this.entriesAscending())h.call(f,M,d,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}var v=(h,f)=>h.some((d)=>{if(typeof d==="string")return d===f;return d.lastIndex=0,d.test(f)}),c=(h)=>h.trim()!==""&&!Number.isNaN(Number(h)),E=new D({maxSize:1e5}),s=(h)=>ArrayBuffer.isView(h)||h instanceof Date||h instanceof RegExp||h instanceof Error||h instanceof Map||h instanceof Set||h instanceof WeakMap||h instanceof WeakSet||h instanceof Promise,T=(h)=>typeof h==="object"&&h!==null&&!s(h),B=(h,f={},d=new WeakMap,M)=>{if(!T(h))return h;if(d.has(h))return d.get(h);let{exclude:z,pascalCase:Y=!1,stopPaths:$,deep:q=!1,preserveConsecutiveUppercase:Q=!1}=f,I=new Set($);if(Array.isArray(h)){let H=[];d.set(h,H);for(let x of h)H.push(T(x)?B(x,f,d,M):x);return H}let J={};d.set(h,J);let _=K(h,((H)=>(x,F)=>{if(q&&T(F)){let Z=H===void 0?x:`${H}.${x}`;if(!I.has(Z))F=Array.isArray(F)?F.map((g)=>T(g)?B(g,f,d,Z):g):B(F,f,d,Z)}if(typeof x==="string"&&!c(x)&&!(z&&v(z,x))){let Z=Y?`${x}_`:x;if(E.has(Z))x=E.get(Z);else if(x=W(x,{pascalCase:Y,locale:!1,preserveConsecutiveUppercase:Q}),x.length<100)E.set(Z,x)}return[x,F]})(M),{deep:!1});Object.assign(J,_);let G=Object.getOwnPropertySymbols(h);for(let H of G)J[H]=q&&T(h[H])?B(h[H],f,d,M):h[H];return J};function o(h,f){let d=new WeakMap;if(Array.isArray(h))return h.map((M)=>T(M)?B(M,f,d,void 0):M);return B(h,f,d)}
|
|
2
|
+
export{o as n};
|