zen-code 4.10.0 → 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 (93) hide show
  1. package/dist/app.js +3 -3
  2. package/dist/chunk-0ddrb30y.js +1 -0
  3. package/dist/{chunk-gz7fz9fg.js → chunk-215an3fz.js} +1 -1
  4. package/dist/{chunk-5m4yb9av.js → chunk-40ht9pe1.js} +2 -2
  5. package/dist/{chunk-dx9k6sdd.js → chunk-4wnmk2tj.js} +1 -1
  6. package/dist/{chunk-e6ggkg36.js → chunk-4z0w0ng1.js} +1 -1
  7. package/dist/chunk-57bj89e2.js +1 -0
  8. package/dist/{chunk-54cdhhqm.js → chunk-5a5mepqj.js} +1 -1
  9. package/dist/{chunk-t0f66x64.js → chunk-5c3bpcpm.js} +1 -1
  10. package/dist/{chunk-8bs8r50r.js → chunk-7kw7ss8d.js} +1 -1
  11. package/dist/chunk-86m0rmtc.js +1 -0
  12. package/dist/{chunk-cef4vbtb.js → chunk-8f19qk9r.js} +1 -1
  13. package/dist/{chunk-yerf10k7.js → chunk-8tbtavry.js} +1 -1
  14. package/dist/{chunk-5yd4ntp6.js → chunk-9rayxazs.js} +2 -2
  15. package/dist/{chunk-1w19w1bm.js → chunk-a9gpb2tx.js} +1 -1
  16. package/dist/{chunk-d2770b2z.js → chunk-a9tw6d68.js} +1 -1
  17. package/dist/{chunk-r0cfe5c1.js → chunk-anbtppz1.js} +3 -3
  18. package/dist/chunk-bca8tkkr.js +1 -0
  19. package/dist/{chunk-bm7578sn.js → chunk-bdqds8vh.js} +1 -1
  20. package/dist/{chunk-gwf8b14k.js → chunk-bzgznka5.js} +1 -1
  21. package/dist/{chunk-1v863afn.js → chunk-c7kd2qrp.js} +3 -3
  22. package/dist/{chunk-vhn13anh.js → chunk-dvbb3dd1.js} +2 -2
  23. package/dist/{chunk-t01t72t2.js → chunk-e8kxa5vj.js} +2 -2
  24. package/dist/{chunk-7yzv6385.js → chunk-ehmmd8qc.js} +1 -1
  25. package/dist/{chunk-whdf0vbb.js → chunk-ejfa95sm.js} +1 -1
  26. package/dist/{chunk-hrcxdj3c.js → chunk-f0m4532p.js} +2 -2
  27. package/dist/{chunk-rtjytfhh.js → chunk-f7cps5x1.js} +1 -1
  28. package/dist/{chunk-7jatn15w.js → chunk-fbemqjck.js} +1 -1
  29. package/dist/{chunk-075hks9v.js → chunk-feeqtzv5.js} +1 -1
  30. package/dist/{chunk-8waww0j9.js → chunk-fzh0v6r0.js} +2 -2
  31. package/dist/{chunk-nm253hhf.js → chunk-g2zskge5.js} +2 -2
  32. package/dist/{chunk-875hayaj.js → chunk-g974hxbz.js} +1 -1
  33. package/dist/{chunk-4scrkcqv.js → chunk-g9911ymn.js} +1 -1
  34. package/dist/{chunk-bytq4kd1.js → chunk-gfhmzpy7.js} +2 -2
  35. package/dist/{chunk-wd3gkd45.js → chunk-gt8c6dne.js} +1 -1
  36. package/dist/{chunk-d72063sm.js → chunk-h8fdexm4.js} +1 -1
  37. package/dist/{chunk-k12y05c3.js → chunk-hnnwbfqk.js} +2 -2
  38. package/dist/{chunk-hz9yw7cs.js → chunk-hp2jzn9x.js} +2 -2
  39. package/dist/{chunk-arv4h3h1.js → chunk-hve2a279.js} +2 -2
  40. package/dist/{chunk-ws232ksq.js → chunk-js4qp900.js} +1 -1
  41. package/dist/{chunk-mv0xzmq8.js → chunk-k4q8j7pg.js} +1 -1
  42. package/dist/{chunk-kmxdq21k.js → chunk-m21hvv91.js} +1 -1
  43. package/dist/{chunk-prg6489q.js → chunk-mmx0k2yq.js} +1 -1
  44. package/dist/{chunk-3dnayvgx.js → chunk-mnnyjmgw.js} +2 -2
  45. package/dist/chunk-mw7x6xqp.js +1 -0
  46. package/dist/{chunk-0fj768k4.js → chunk-n7s6my89.js} +2 -2
  47. package/dist/{chunk-cnzhxgn5.js → chunk-n9rpnke9.js} +1 -1
  48. package/dist/{chunk-tn356gwf.js → chunk-nk62q95g.js} +2 -2
  49. package/dist/{chunk-n849zsd3.js → chunk-nmzx5nmt.js} +1 -1
  50. package/dist/{chunk-7w9y11hj.js → chunk-nqh1pptf.js} +1 -1
  51. package/dist/{chunk-qhzm2qw9.js → chunk-nsw5168d.js} +2 -2
  52. package/dist/{chunk-9tgp14v7.js → chunk-pe8mzxwn.js} +2 -2
  53. package/dist/{chunk-4hg13vwj.js → chunk-pg1ppq4y.js} +1 -1
  54. package/dist/{chunk-yzv3n8mw.js → chunk-pzb224c5.js} +1 -1
  55. package/dist/chunk-q1cxrg0x.js +2 -0
  56. package/dist/{chunk-k6fxqssr.js → chunk-qxebn3jw.js} +3 -3
  57. package/dist/{chunk-mm9w91rj.js → chunk-s1tbdcs8.js} +1 -1
  58. package/dist/{chunk-j4y5rjne.js → chunk-s5cqejr6.js} +1 -1
  59. package/dist/{chunk-qmxtys9q.js → chunk-spa69h7p.js} +1 -1
  60. package/dist/{chunk-znw7fpep.js → chunk-spx7nn8t.js} +2 -2
  61. package/dist/{chunk-wbm7rn9w.js → chunk-swc7se71.js} +1 -1
  62. package/dist/chunk-swyc15ym.js +1 -0
  63. package/dist/chunk-t2s3s6af.js +1 -0
  64. package/dist/{chunk-h0q3dvnv.js → chunk-t6440ajd.js} +2 -2
  65. package/dist/{chunk-vd8kwzra.js → chunk-tjg2e8v3.js} +2 -2
  66. package/dist/{chunk-d988tv30.js → chunk-tjvhqr94.js} +1 -1
  67. package/dist/{chunk-fjqtrakn.js → chunk-vbb3m0vz.js} +1 -1
  68. package/dist/{chunk-9czhw5k6.js → chunk-vdmq9d9x.js} +2 -2
  69. package/dist/{chunk-pxdgy0vr.js → chunk-vfxjbdz4.js} +1 -1
  70. package/dist/{chunk-mcb8rewr.js → chunk-vrnj0659.js} +2 -2
  71. package/dist/{chunk-6scjjkn3.js → chunk-wmyc17aa.js} +1 -1
  72. package/dist/{chunk-vnewbtjy.js → chunk-wt3p1w1g.js} +1 -1
  73. package/dist/{chunk-19mf2aa7.js → chunk-y5ry5c7v.js} +1 -1
  74. package/dist/{chunk-z3e4c424.js → chunk-y8qhrx11.js} +1 -1
  75. package/dist/{chunk-1mq2jmfy.js → chunk-yy8p9zph.js} +2 -2
  76. package/dist/chunk-z61m3anh.js +1 -0
  77. package/dist/{chunk-a239dn0b.js → chunk-zg54h6gy.js} +1 -1
  78. package/dist/chunk-zr90qp47.js +1 -0
  79. package/dist/{chunk-s7ttf0pm.js → chunk-zsa62xr0.js} +2 -2
  80. package/dist/cli.js +1 -1
  81. package/dist/nonInteractive.js +1 -1
  82. package/dist/zen-keyboard.js +1 -1
  83. package/package.json +1 -1
  84. package/dist/chunk-1vn8d8b8.js +0 -1
  85. package/dist/chunk-8ysg0rga.js +0 -1
  86. package/dist/chunk-b2551zfb.js +0 -2
  87. package/dist/chunk-b9emn03n.js +0 -1
  88. package/dist/chunk-c2wfgbj6.js +0 -1
  89. package/dist/chunk-gbfpab0j.js +0 -1
  90. package/dist/chunk-gkvx829z.js +0 -1
  91. package/dist/chunk-h0qb9jk1.js +0 -1
  92. package/dist/chunk-h9y136h8.js +0 -1
  93. package/dist/chunk-zq2g4rfd.js +0 -1
@@ -1,6 +1,6 @@
1
- import{Be as j,Ce as E,Le as t,ye as c0}from"./chunk-1v863afn.js";import{ff as B}from"./chunk-mcb8rewr.js";import{Fl as h,Hl as T,Kl as M}from"./chunk-z3e4c424.js";var b=T((IA,X0)=>{var n0=M("child_process").spawn;function p0(A,G,X,L){if(typeof X==="function")L=X,X=void 0;let J=!1,H=n0(A,G,X),K="",Y="";H.stdout.on("data",function($){K+=$.toString()}),H.stderr.on("data",function($){Y+=$.toString()}),H.on("error",function($){if(J)return;J=!0,L(Error($))}),H.on("close",function($,Q){if(J)return;if(J=!0,Y)return L(Error(Y));L(null,K,$)})}X0.exports=p0});var k=T((EA,L0)=>{var y={},w={},g={},n=0,R=null;function a0(A,G){if(G<=0)return;if(w[A]!==void 0)y[A]=Date.now()+(G||60000);return w[A]}function i0(A,G,X,L){if(G===void 0||X<=0)return;if(y[A]=Date.now()+(X||60000),w[A]===void 0)n++,G0(X);if(w[A]=G,L)g[A]=L}function G0(A){if(n>0){if(R===null){if(R=setInterval(d0,(A||60000)/2),typeof R.unref==="function")R.unref()}return}if(R!==null)clearInterval(R),R=null}function d0(){let A=Date.now(),G=Object.keys(y);for(let X=0;X<G.length;X++){let L=G[X];if(y[L]<A){if(n--,g[L])g[L](w[L]);delete w[L],delete y[L],delete g[L]}}G0()}function c(A){for(let G in A)delete A[G]}function o0(){if(R!==null)clearInterval(R),R=null;c(w),c(y),c(g)}L0.exports={get:a0,set:i0,clear:o0}});var W0=T((SA,Q0)=>{var K0=M("os"),r0=b(),H0=k(),f=K0.platform();function J0(A,G){let X=0,L=A.split(/-|:|\./),J=L.length-1;if(J>=0&&G&&f==="darwin")X+=parseInt(L[J--],10)*10;if(J>=0)X+=parseInt(L[J--],10)*1000;if(J>=0)X+=parseInt(L[J--],10)*60000;if(J>=0)X+=parseInt(L[J--],10)*3600000;if(J>=0)X+=parseInt(L[J--],10)*86400000;return X}function s0(A,G,X){let L=A.join(","),J=["-o","etime,pid,ppid,pcpu,rss,time","-p",L];if(f==="aix"||f==="os400")J=["-o","etime,pid,ppid,pcpu,rssize,time","-p",L];r0("ps",J,function(H,K,Y){if(H){if(f==="os390"&&/no matching processes found/.test(H))H=Error("No matching pid found"),H.code="ENOENT";return X(H)}if(Y===1){let U=Error("No matching pid found");return U.code="ENOENT",X(U)}if(Y!==0)return X(Error("pidusage ps command exited with code "+Y));let $=Date.now();K=K.split(K0.EOL);let Q={};for(let U=1;U<K.length;U++){let q=K[U].trim().split(/\s+/);if(!q||q.length!==6)continue;let W=parseInt(q[1],10),N=H0.get(W,G.maxage);if(N===void 0)N={};let Z=parseInt(q[2],10),v=parseInt(q[4],10)*1024,_=J0(q[0]),C=J0(q[5],!0),D=C-(N.ctime||0),V=Math.abs(N.elapsed!==void 0?_-N.elapsed:_),P=V>0?D/V*100:0;Q[W]={cpu:P,memory:v,ppid:Z,pid:W,ctime:C,elapsed:_,timestamp:$},H0.set(W,Q[W],G.maxage)}X(null,Q)})}Q0.exports=s0});var p=T((jA,Y0)=>{function t0(A,G,X){if(typeof G==="function")X=G,G={};let L;if(!Array.isArray(A))L=Object.keys(A);let J=L?L.length:A.length,H=J,K=L?{}:[];function Y($,Q,U){if(K[$]=U,--H===0||Q&&!G.graceful){if(G.graceful&&Q&&J>1)Q=null;X&&X(Q,K),X=null}}if(L)L.forEach(function($){A[$](function(Q,U){Y($,Q,U)})});else A.forEach(function($,Q){$(function(U,q){Y(Q,U,q)})})}Y0.exports=t0});var Z0=T((wA,N0)=>{var e0=M("os"),AA=M("fs"),XA=M("child_process").exec,q0=p();function GA(A,G){if(A!==null){$0(function(X,L){if(X)return G(X);A.uptime=L,G(null,A)});return}q0([LA,$0],function(X,L){if(X)return G(X);A={clockTick:L[0].clockTick,pageSize:L[0].pageSize,uptime:L[1]},G(null,A)})}N0.exports=GA;function $0(A){AA.readFile("/proc/uptime","utf8",function(G,X){if(G||X===void 0){if(!process.env.PIDUSAGE_SILENT)console.warn("[pidusage] We couldn't find uptime from /proc/uptime, using os.uptime() value");return A(null,e0.uptime()||new Date/1000)}return A(null,parseFloat(X.split(" ")[0]))})}function LA(A){q0([function(X){U0("CLK_TCK",{default:100},X)},function(X){U0("PAGESIZE",{default:4096},X)}],function(G,X){if(G)return A(G);A(null,{clockTick:X[0],pageSize:X[1]})})}function U0(A,G,X){if(typeof G==="function")X=G,G={default:""};XA("getconf "+A,function(L,J,H){if(L!==null){if(!process.env.PIDUSAGE_SILENT)console.error('Error while calling "getconf '+A+'"',L);return X(null,G.default)}if(J=parseInt(J),!isNaN(J))return X(null,J);return X(null,G.default)})}});var M0=T((a,v0)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var l=M("buffer"),O=l.Buffer;function F0(A,G){for(var X in A)G[X]=A[X]}if(O.from&&O.alloc&&O.allocUnsafe&&O.allocUnsafeSlow)v0.exports=l;else F0(l,a),a.Buffer=z;function z(A,G,X){return O(A,G,X)}z.prototype=Object.create(O.prototype);F0(O,z);z.from=function(A,G,X){if(typeof A==="number")throw TypeError("Argument must not be a number");return O(A,G,X)};z.alloc=function(A,G,X){if(typeof A!=="number")throw TypeError("Argument must be a number");var L=O(A);if(G!==void 0)if(typeof X==="string")L.fill(G,X);else L.fill(G);else L.fill(0);return L};z.allocUnsafe=function(A){if(typeof A!=="number")throw TypeError("Argument must be a number");return O(A)};z.allocUnsafeSlow=function(A){if(typeof A!=="number")throw TypeError("Argument must be a number");return l.SlowBuffer(A)}});var R0=T((zA,T0)=>{var d=M("fs"),HA=M("path"),JA=Z0(),KA=p(),_0=k(),I=null,C0=M0().Buffer,i=1024;function QA(){}function WA(A,G,X){if(G.fd)return X(null,G.fd);d.open(A,"r",X)}function YA(A){if(A.fd)d.close(A.fd,QA)}function D0(A,G,X){let L=!1;if(typeof G==="function")X=G,G=C0.alloc(i),L=!0;d.read(A,G,0,i,0,function(J,H,K){if(J){X(J);return}let Y=C0.concat([G,K],L?H:G.length+H);if(H===i){D0(A,Y,X);return}X(null,G)})}function P0(A,G,X){let L=_0.get(A,G.maxage),J=!1;if(L===void 0)J=!0,L={};WA(HA.join("/proc",""+A,"stat"),L,function(H,K){if(H){if(H.code==="ENOENT")H.message="No matching pid found";return X(H,null)}if(H)return X(H);D0(K,function(Y,$){if(Y)return X(Y);let Q=$.toString("utf8"),U=Date.now(),q=Q.lastIndexOf(")");Q=Q.substr(q+2).split(" ");let W={ppid:parseInt(Q[1]),utime:parseFloat(Q[11])*1000/I.clockTick,stime:parseFloat(Q[12])*1000/I.clockTick,cutime:parseFloat(Q[13])*1000/I.clockTick,cstime:parseFloat(Q[14])*1000/I.clockTick,start:parseFloat(Q[19])*1000/I.clockTick,rss:parseFloat(Q[21]),uptime:I.uptime*1000,fd:K},N=W.rss*I.pageSize,Z=G.childrens?W.cutime+W.cstime:0,v=W.stime-(L.stime||0)+W.utime-(L.utime||0)+Z,_=Math.abs(L.uptime!==void 0?W.uptime-L.uptime:W.start-W.uptime),C=_>0?v/_*100:0;if(_0.set(A,W,G.maxage,YA),J)return P0(A,G,X);return X(null,{cpu:C,memory:N,ctime:W.utime+W.stime,elapsed:W.uptime-W.start,timestamp:U,pid:A,ppid:W.ppid})})})}function $A(A,G,X){JA(I,function(L,J){if(L)return X(L);I=J;let H={};A.forEach(function(K,Y){H[K]=function($){P0(K,G,$)}}),KA(H,{graceful:!0},X)})}T0.exports=$A});var S0=T((BA,E0)=>{var O0=M("os"),UA=b(),V0=k();function qA(A){let G=A.substring(0,4),X=A.substring(4,6),L=A.substring(6,8),J=A.substring(8,10),H=A.substring(10,12),K=A.substring(12,14),Y=A.substring(15,21),$=A.substring(21,22),Q=parseInt(A.substring(22,25),10),U=Math.floor(Q/60),q=Q%60;return new Date(G+"-"+X+"-"+L+"T"+J+":"+H+":"+K+"."+Y+$+(U>9?U:"0"+U)+(q>9?q:"0"+q))}function I0(A,G,X){let L="ProcessId="+A[0];for(let H=1;H<A.length;H++)L+=" or ProcessId="+A[H];let J=["PROCESS","where",'"'+L+'"',"get","CreationDate,KernelModeTime,ParentProcessId,ProcessId,UserModeTime,WorkingSetSize"];UA("wmic",J,{windowsHide:!0,windowsVerbatimArguments:!0},function(H,K,Y){if(H){if(H.message.indexOf("No Instance(s) Available.")!==-1){let W=Error("No matching pid found");return W.code="ENOENT",X(W)}return X(H)}if(Y!==0)return X(Error("pidusage wmic command exited with code "+Y));let $=Date.now(),Q=Math.floor(O0.uptime()||$/1000);K=K.split(O0.EOL);let U=!1,q={};for(let W=1;W<K.length;W++){let N=K[W].trim().split(/\s+/);if(!N||N.length!==6)continue;let Z=qA(N[0]),v=parseInt(N[2],10),_=parseInt(N[3],10),C=Math.round(parseInt(N[1],10)/1e4),D=Math.round(parseInt(N[4],10)/1e4),V=parseInt(N[5],10),P=V0.get(_,G.maxage);if(P===void 0)U=!0,P={ctime:C+D,uptime:Q};let m=(C+D-P.ctime)/1000,S=Q-P.uptime,u=S>0?m/S*100:0;V0.set(_,{ctime:D+C,uptime:Q},G.maxage),q[_]={cpu:u,memory:V,ppid:v,pid:_,ctime:D+C,elapsed:$-Z.getTime(),timestamp:$}}if(U)return I0(A,G,function(W,N){if(W)return X(W);X(null,Object.assign(q,N))});X(null,q)})}E0.exports=I0});var y0=T((yA,B0)=>{var j0=M("os"),NA=b(),w0=k();function ZA(A){let G=A.substring(0,4),X=A.substring(4,6),L=A.substring(6,8),J=A.substring(8,10),H=A.substring(10,12),K=A.substring(12,14),Y=A.substring(15,21),$=A.substring(21,22),Q=parseInt(A.substring(22,25),10),U=Math.floor(Q/60),q=Q%60;return new Date(G+"-"+X+"-"+L+"T"+J+":"+H+":"+K+"."+Y+$+(U>9?U:"0"+U)+(q>9?q:"0"+q))}function z0(A,G,X){let L="ProcessId="+A[0];for(let K=1;K<A.length;K++)L+=" or ProcessId="+A[K];let J="CreationDate,KernelModeTime,ParentProcessId,ProcessId,UserModeTime,WorkingSetSize",H=["win32_process","-Filter","'"+L+"'","| select "+J,"| format-table"];NA("gwmi",H,{windowsHide:!0,windowsVerbatimArguments:!0,shell:"powershell.exe"},function(K,Y,$){if(K){if(K.message.indexOf("No Instance(s) Available.")!==-1){let Z=Error("No matching pid found");return Z.code="ENOENT",X(Z)}return X(K)}if($!==0)return X(Error("pidusage gwmi command exited with code "+$));let Q=Date.now(),U=Math.floor(j0.uptime()||Q/1000);Y=Y.split(j0.EOL).slice(1);let q=Y.findIndex((Z)=>!!Z);if(Y=Y.slice(q+2),!Y.length){let Z=Error("No matching pid found");return Z.code="ENOENT",X(Z)}let W=!1,N={};for(let Z=0;Z<Y.length;Z++){let v=Y[Z].trim().split(/\s+/);if(!v||v.length===1)continue;let _=ZA(v[0]),C=parseInt(v[2],10),D=parseInt(v[3],10),V=Math.round(parseInt(v[1],10)/1e4),P=Math.round(parseInt(v[4],10)/1e4),m=parseInt(v[5],10),S=w0.get(D,G.maxage);if(S===void 0)W=!0,S={ctime:V+P,uptime:U};let u=(V+P-S.ctime)/1000,s=U-S.uptime,u0=s>0?u/s*100:0;w0.set(D,{ctime:P+V,uptime:U},G.maxage),N[D]={cpu:u0,memory:m,ppid:C,pid:D,ctime:P+V,elapsed:Q-_.getTime(),timestamp:Q}}if(W)return z0(A,G,function(Z,v){if(Z)return X(Z);X(null,Object.assign(N,v))});X(null,N)})}B0.exports=z0});var h0=T((kA,g0)=>{var FA=M("fs"),k0=M("os"),vA=M("child_process").spawn,o={ps:()=>W0(),procfile:()=>R0(),wmic:()=>S0(),gwmi:()=>y0()},MA={aix:"ps",os400:"ps",android:"procfile",alpine:"procfile",darwin:"ps",freebsd:"ps",os390:"ps",linux:"procfile",netbsd:"procfile",openbsd:"ps",sunos:"ps",win:"wmic"},x=k0.platform();if(FA.existsSync("/etc/alpine-release"))x="alpine";if(x.match(/^win/))x="win";var x0;try{x0=o[MA[x]]()}catch(A){}function _A(A,G,X){let L=x0;if(x!=="win"&&G.usePs===!0)L=o.ps();if(x==="win"){let H;try{H=vA("wmic",function(K){if(K)throw Error(K)})}catch(K){L=o.gwmi()}finally{if(H)H.kill()}}if(L===void 0)return X(Error(k0.platform()+" is not supported yet, please open an issue (https://github.com/soyuka/pidusage)"));let J=!1;if(!Array.isArray(A))J=!0,A=[A];if(A.length===0)return X(TypeError("You must provide at least one pid"));for(let H=0;H<A.length;H++)if(A[H]=parseInt(A[H],10),isNaN(A[H])||A[H]<0)return X(TypeError("One of the pids provided is invalid"));L(A,G,function(H,K){if(H)return X(H);if(J)X(null,K[A[0]]);else X(null,K)})}g0.exports=_A});var f0=T((xA,r)=>{var b0=h0();function CA(A,G,X){if(typeof G==="function")X=G,G={};if(G===void 0)G={};if(G=Object.assign({usePs:/^true$/i.test(process.env.PIDUSAGE_USE_PS),maxage:process.env.PIDUSAGE_MAXAGE},G),typeof X==="function"){b0(A,G,X);return}return new Promise(function(L,J){b0(A,G,function(H,K){if(H)return J(H);L(K)})})}r.exports=CA;r.exports.clear=k().clear});var e=h(c0(),1);var F=h(t(),1);class A0 extends e.Component{state={hasError:!1,error:null,errorInfo:null};static getDerivedStateFromError(A){return{hasError:!0,error:A}}componentDidCatch(A,G){let{name:X="ErrorBoundary"}=this.props;console.error(`
1
+ import{Ae as E,Je as t,we as c0,ze as j}from"./chunk-c7kd2qrp.js";import{df as B}from"./chunk-vrnj0659.js";import{Dl as h,Fl as T,Il as M}from"./chunk-y8qhrx11.js";var b=T((IA,X0)=>{var n0=M("child_process").spawn;function p0(A,G,X,L){if(typeof X==="function")L=X,X=void 0;let J=!1,H=n0(A,G,X),K="",Y="";H.stdout.on("data",function($){K+=$.toString()}),H.stderr.on("data",function($){Y+=$.toString()}),H.on("error",function($){if(J)return;J=!0,L(Error($))}),H.on("close",function($,Q){if(J)return;if(J=!0,Y)return L(Error(Y));L(null,K,$)})}X0.exports=p0});var k=T((EA,L0)=>{var y={},w={},g={},n=0,R=null;function a0(A,G){if(G<=0)return;if(w[A]!==void 0)y[A]=Date.now()+(G||60000);return w[A]}function i0(A,G,X,L){if(G===void 0||X<=0)return;if(y[A]=Date.now()+(X||60000),w[A]===void 0)n++,G0(X);if(w[A]=G,L)g[A]=L}function G0(A){if(n>0){if(R===null){if(R=setInterval(d0,(A||60000)/2),typeof R.unref==="function")R.unref()}return}if(R!==null)clearInterval(R),R=null}function d0(){let A=Date.now(),G=Object.keys(y);for(let X=0;X<G.length;X++){let L=G[X];if(y[L]<A){if(n--,g[L])g[L](w[L]);delete w[L],delete y[L],delete g[L]}}G0()}function c(A){for(let G in A)delete A[G]}function o0(){if(R!==null)clearInterval(R),R=null;c(w),c(y),c(g)}L0.exports={get:a0,set:i0,clear:o0}});var W0=T((SA,Q0)=>{var K0=M("os"),r0=b(),H0=k(),f=K0.platform();function J0(A,G){let X=0,L=A.split(/-|:|\./),J=L.length-1;if(J>=0&&G&&f==="darwin")X+=parseInt(L[J--],10)*10;if(J>=0)X+=parseInt(L[J--],10)*1000;if(J>=0)X+=parseInt(L[J--],10)*60000;if(J>=0)X+=parseInt(L[J--],10)*3600000;if(J>=0)X+=parseInt(L[J--],10)*86400000;return X}function s0(A,G,X){let L=A.join(","),J=["-o","etime,pid,ppid,pcpu,rss,time","-p",L];if(f==="aix"||f==="os400")J=["-o","etime,pid,ppid,pcpu,rssize,time","-p",L];r0("ps",J,function(H,K,Y){if(H){if(f==="os390"&&/no matching processes found/.test(H))H=Error("No matching pid found"),H.code="ENOENT";return X(H)}if(Y===1){let U=Error("No matching pid found");return U.code="ENOENT",X(U)}if(Y!==0)return X(Error("pidusage ps command exited with code "+Y));let $=Date.now();K=K.split(K0.EOL);let Q={};for(let U=1;U<K.length;U++){let q=K[U].trim().split(/\s+/);if(!q||q.length!==6)continue;let W=parseInt(q[1],10),N=H0.get(W,G.maxage);if(N===void 0)N={};let Z=parseInt(q[2],10),v=parseInt(q[4],10)*1024,_=J0(q[0]),C=J0(q[5],!0),D=C-(N.ctime||0),V=Math.abs(N.elapsed!==void 0?_-N.elapsed:_),P=V>0?D/V*100:0;Q[W]={cpu:P,memory:v,ppid:Z,pid:W,ctime:C,elapsed:_,timestamp:$},H0.set(W,Q[W],G.maxage)}X(null,Q)})}Q0.exports=s0});var p=T((jA,Y0)=>{function t0(A,G,X){if(typeof G==="function")X=G,G={};let L;if(!Array.isArray(A))L=Object.keys(A);let J=L?L.length:A.length,H=J,K=L?{}:[];function Y($,Q,U){if(K[$]=U,--H===0||Q&&!G.graceful){if(G.graceful&&Q&&J>1)Q=null;X&&X(Q,K),X=null}}if(L)L.forEach(function($){A[$](function(Q,U){Y($,Q,U)})});else A.forEach(function($,Q){$(function(U,q){Y(Q,U,q)})})}Y0.exports=t0});var Z0=T((wA,N0)=>{var e0=M("os"),AA=M("fs"),XA=M("child_process").exec,q0=p();function GA(A,G){if(A!==null){$0(function(X,L){if(X)return G(X);A.uptime=L,G(null,A)});return}q0([LA,$0],function(X,L){if(X)return G(X);A={clockTick:L[0].clockTick,pageSize:L[0].pageSize,uptime:L[1]},G(null,A)})}N0.exports=GA;function $0(A){AA.readFile("/proc/uptime","utf8",function(G,X){if(G||X===void 0){if(!process.env.PIDUSAGE_SILENT)console.warn("[pidusage] We couldn't find uptime from /proc/uptime, using os.uptime() value");return A(null,e0.uptime()||new Date/1000)}return A(null,parseFloat(X.split(" ")[0]))})}function LA(A){q0([function(X){U0("CLK_TCK",{default:100},X)},function(X){U0("PAGESIZE",{default:4096},X)}],function(G,X){if(G)return A(G);A(null,{clockTick:X[0],pageSize:X[1]})})}function U0(A,G,X){if(typeof G==="function")X=G,G={default:""};XA("getconf "+A,function(L,J,H){if(L!==null){if(!process.env.PIDUSAGE_SILENT)console.error('Error while calling "getconf '+A+'"',L);return X(null,G.default)}if(J=parseInt(J),!isNaN(J))return X(null,J);return X(null,G.default)})}});var M0=T((a,v0)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var l=M("buffer"),O=l.Buffer;function F0(A,G){for(var X in A)G[X]=A[X]}if(O.from&&O.alloc&&O.allocUnsafe&&O.allocUnsafeSlow)v0.exports=l;else F0(l,a),a.Buffer=z;function z(A,G,X){return O(A,G,X)}z.prototype=Object.create(O.prototype);F0(O,z);z.from=function(A,G,X){if(typeof A==="number")throw TypeError("Argument must not be a number");return O(A,G,X)};z.alloc=function(A,G,X){if(typeof A!=="number")throw TypeError("Argument must be a number");var L=O(A);if(G!==void 0)if(typeof X==="string")L.fill(G,X);else L.fill(G);else L.fill(0);return L};z.allocUnsafe=function(A){if(typeof A!=="number")throw TypeError("Argument must be a number");return O(A)};z.allocUnsafeSlow=function(A){if(typeof A!=="number")throw TypeError("Argument must be a number");return l.SlowBuffer(A)}});var R0=T((zA,T0)=>{var d=M("fs"),HA=M("path"),JA=Z0(),KA=p(),_0=k(),I=null,C0=M0().Buffer,i=1024;function QA(){}function WA(A,G,X){if(G.fd)return X(null,G.fd);d.open(A,"r",X)}function YA(A){if(A.fd)d.close(A.fd,QA)}function D0(A,G,X){let L=!1;if(typeof G==="function")X=G,G=C0.alloc(i),L=!0;d.read(A,G,0,i,0,function(J,H,K){if(J){X(J);return}let Y=C0.concat([G,K],L?H:G.length+H);if(H===i){D0(A,Y,X);return}X(null,G)})}function P0(A,G,X){let L=_0.get(A,G.maxage),J=!1;if(L===void 0)J=!0,L={};WA(HA.join("/proc",""+A,"stat"),L,function(H,K){if(H){if(H.code==="ENOENT")H.message="No matching pid found";return X(H,null)}if(H)return X(H);D0(K,function(Y,$){if(Y)return X(Y);let Q=$.toString("utf8"),U=Date.now(),q=Q.lastIndexOf(")");Q=Q.substr(q+2).split(" ");let W={ppid:parseInt(Q[1]),utime:parseFloat(Q[11])*1000/I.clockTick,stime:parseFloat(Q[12])*1000/I.clockTick,cutime:parseFloat(Q[13])*1000/I.clockTick,cstime:parseFloat(Q[14])*1000/I.clockTick,start:parseFloat(Q[19])*1000/I.clockTick,rss:parseFloat(Q[21]),uptime:I.uptime*1000,fd:K},N=W.rss*I.pageSize,Z=G.childrens?W.cutime+W.cstime:0,v=W.stime-(L.stime||0)+W.utime-(L.utime||0)+Z,_=Math.abs(L.uptime!==void 0?W.uptime-L.uptime:W.start-W.uptime),C=_>0?v/_*100:0;if(_0.set(A,W,G.maxage,YA),J)return P0(A,G,X);return X(null,{cpu:C,memory:N,ctime:W.utime+W.stime,elapsed:W.uptime-W.start,timestamp:U,pid:A,ppid:W.ppid})})})}function $A(A,G,X){JA(I,function(L,J){if(L)return X(L);I=J;let H={};A.forEach(function(K,Y){H[K]=function($){P0(K,G,$)}}),KA(H,{graceful:!0},X)})}T0.exports=$A});var S0=T((BA,E0)=>{var O0=M("os"),UA=b(),V0=k();function qA(A){let G=A.substring(0,4),X=A.substring(4,6),L=A.substring(6,8),J=A.substring(8,10),H=A.substring(10,12),K=A.substring(12,14),Y=A.substring(15,21),$=A.substring(21,22),Q=parseInt(A.substring(22,25),10),U=Math.floor(Q/60),q=Q%60;return new Date(G+"-"+X+"-"+L+"T"+J+":"+H+":"+K+"."+Y+$+(U>9?U:"0"+U)+(q>9?q:"0"+q))}function I0(A,G,X){let L="ProcessId="+A[0];for(let H=1;H<A.length;H++)L+=" or ProcessId="+A[H];let J=["PROCESS","where",'"'+L+'"',"get","CreationDate,KernelModeTime,ParentProcessId,ProcessId,UserModeTime,WorkingSetSize"];UA("wmic",J,{windowsHide:!0,windowsVerbatimArguments:!0},function(H,K,Y){if(H){if(H.message.indexOf("No Instance(s) Available.")!==-1){let W=Error("No matching pid found");return W.code="ENOENT",X(W)}return X(H)}if(Y!==0)return X(Error("pidusage wmic command exited with code "+Y));let $=Date.now(),Q=Math.floor(O0.uptime()||$/1000);K=K.split(O0.EOL);let U=!1,q={};for(let W=1;W<K.length;W++){let N=K[W].trim().split(/\s+/);if(!N||N.length!==6)continue;let Z=qA(N[0]),v=parseInt(N[2],10),_=parseInt(N[3],10),C=Math.round(parseInt(N[1],10)/1e4),D=Math.round(parseInt(N[4],10)/1e4),V=parseInt(N[5],10),P=V0.get(_,G.maxage);if(P===void 0)U=!0,P={ctime:C+D,uptime:Q};let m=(C+D-P.ctime)/1000,S=Q-P.uptime,u=S>0?m/S*100:0;V0.set(_,{ctime:D+C,uptime:Q},G.maxage),q[_]={cpu:u,memory:V,ppid:v,pid:_,ctime:D+C,elapsed:$-Z.getTime(),timestamp:$}}if(U)return I0(A,G,function(W,N){if(W)return X(W);X(null,Object.assign(q,N))});X(null,q)})}E0.exports=I0});var y0=T((yA,B0)=>{var j0=M("os"),NA=b(),w0=k();function ZA(A){let G=A.substring(0,4),X=A.substring(4,6),L=A.substring(6,8),J=A.substring(8,10),H=A.substring(10,12),K=A.substring(12,14),Y=A.substring(15,21),$=A.substring(21,22),Q=parseInt(A.substring(22,25),10),U=Math.floor(Q/60),q=Q%60;return new Date(G+"-"+X+"-"+L+"T"+J+":"+H+":"+K+"."+Y+$+(U>9?U:"0"+U)+(q>9?q:"0"+q))}function z0(A,G,X){let L="ProcessId="+A[0];for(let K=1;K<A.length;K++)L+=" or ProcessId="+A[K];let J="CreationDate,KernelModeTime,ParentProcessId,ProcessId,UserModeTime,WorkingSetSize",H=["win32_process","-Filter","'"+L+"'","| select "+J,"| format-table"];NA("gwmi",H,{windowsHide:!0,windowsVerbatimArguments:!0,shell:"powershell.exe"},function(K,Y,$){if(K){if(K.message.indexOf("No Instance(s) Available.")!==-1){let Z=Error("No matching pid found");return Z.code="ENOENT",X(Z)}return X(K)}if($!==0)return X(Error("pidusage gwmi command exited with code "+$));let Q=Date.now(),U=Math.floor(j0.uptime()||Q/1000);Y=Y.split(j0.EOL).slice(1);let q=Y.findIndex((Z)=>!!Z);if(Y=Y.slice(q+2),!Y.length){let Z=Error("No matching pid found");return Z.code="ENOENT",X(Z)}let W=!1,N={};for(let Z=0;Z<Y.length;Z++){let v=Y[Z].trim().split(/\s+/);if(!v||v.length===1)continue;let _=ZA(v[0]),C=parseInt(v[2],10),D=parseInt(v[3],10),V=Math.round(parseInt(v[1],10)/1e4),P=Math.round(parseInt(v[4],10)/1e4),m=parseInt(v[5],10),S=w0.get(D,G.maxage);if(S===void 0)W=!0,S={ctime:V+P,uptime:U};let u=(V+P-S.ctime)/1000,s=U-S.uptime,u0=s>0?u/s*100:0;w0.set(D,{ctime:P+V,uptime:U},G.maxage),N[D]={cpu:u0,memory:m,ppid:C,pid:D,ctime:P+V,elapsed:Q-_.getTime(),timestamp:Q}}if(W)return z0(A,G,function(Z,v){if(Z)return X(Z);X(null,Object.assign(N,v))});X(null,N)})}B0.exports=z0});var h0=T((kA,g0)=>{var FA=M("fs"),k0=M("os"),vA=M("child_process").spawn,o={ps:()=>W0(),procfile:()=>R0(),wmic:()=>S0(),gwmi:()=>y0()},MA={aix:"ps",os400:"ps",android:"procfile",alpine:"procfile",darwin:"ps",freebsd:"ps",os390:"ps",linux:"procfile",netbsd:"procfile",openbsd:"ps",sunos:"ps",win:"wmic"},x=k0.platform();if(FA.existsSync("/etc/alpine-release"))x="alpine";if(x.match(/^win/))x="win";var x0;try{x0=o[MA[x]]()}catch(A){}function _A(A,G,X){let L=x0;if(x!=="win"&&G.usePs===!0)L=o.ps();if(x==="win"){let H;try{H=vA("wmic",function(K){if(K)throw Error(K)})}catch(K){L=o.gwmi()}finally{if(H)H.kill()}}if(L===void 0)return X(Error(k0.platform()+" is not supported yet, please open an issue (https://github.com/soyuka/pidusage)"));let J=!1;if(!Array.isArray(A))J=!0,A=[A];if(A.length===0)return X(TypeError("You must provide at least one pid"));for(let H=0;H<A.length;H++)if(A[H]=parseInt(A[H],10),isNaN(A[H])||A[H]<0)return X(TypeError("One of the pids provided is invalid"));L(A,G,function(H,K){if(H)return X(H);if(J)X(null,K[A[0]]);else X(null,K)})}g0.exports=_A});var f0=T((xA,r)=>{var b0=h0();function CA(A,G,X){if(typeof G==="function")X=G,G={};if(G===void 0)G={};if(G=Object.assign({usePs:/^true$/i.test(process.env.PIDUSAGE_USE_PS),maxage:process.env.PIDUSAGE_MAXAGE},G),typeof X==="function"){b0(A,G,X);return}return new Promise(function(L,J){b0(A,G,function(H,K){if(H)return J(H);L(K)})})}r.exports=CA;r.exports.clear=k().clear});var e=h(c0(),1);var F=h(t(),1);class A0 extends e.Component{state={hasError:!1,error:null,errorInfo:null};static getDerivedStateFromError(A){return{hasError:!0,error:A}}componentDidCatch(A,G){let{name:X="ErrorBoundary"}=this.props;console.error(`
2
2
  ========================================`),console.error(`[${X}] React Error Caught`),console.error("========================================"),console.error("Error:",A.message),console.error("Stack:",A.stack),console.error("Component Stack:",G.componentStack),console.error(`========================================
3
- `),import("./chunk-t0f66x64.js").then(({logAgentError:L})=>{L(X,A)}).catch((L)=>{console.warn("Failed to log React error:",L)}),this.setState({errorInfo:G})}render(){let{hasError:A,error:G,errorInfo:X}=this.state,{name:L="ErrorBoundary",fallback:J,children:H}=this.props;if(A){if(J)return F.jsxDEV(F.Fragment,{children:J},void 0,!1,void 0,this);return F.jsxDEV(j,{flexDirection:"column",padding:1,borderStyle:"double",borderColor:"red",children:[F.jsxDEV(j,{marginBottom:1,children:F.jsxDEV(E,{color:"red",bold:!0,children:["✗ [",L,"] Render Error"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(j,{marginBottom:1,children:F.jsxDEV(E,{color:"red",children:["Message: ",G?.message||"Unknown error"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),G?.stack&&F.jsxDEV(j,{flexDirection:"column",marginBottom:1,children:[F.jsxDEV(E,{color:"yellow",bold:!0,children:"Stack Trace:"},void 0,!1,void 0,this),F.jsxDEV(E,{color:"gray",children:G.stack.split(`
3
+ `),import("./chunk-5c3bpcpm.js").then(({logAgentError:L})=>{L(X,A)}).catch((L)=>{console.warn("Failed to log React error:",L)}),this.setState({errorInfo:G})}render(){let{hasError:A,error:G,errorInfo:X}=this.state,{name:L="ErrorBoundary",fallback:J,children:H}=this.props;if(A){if(J)return F.jsxDEV(F.Fragment,{children:J},void 0,!1,void 0,this);return F.jsxDEV(j,{flexDirection:"column",padding:1,borderStyle:"double",borderColor:"red",children:[F.jsxDEV(j,{marginBottom:1,children:F.jsxDEV(E,{color:"red",bold:!0,children:["✗ [",L,"] Render Error"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),F.jsxDEV(j,{marginBottom:1,children:F.jsxDEV(E,{color:"red",children:["Message: ",G?.message||"Unknown error"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),G?.stack&&F.jsxDEV(j,{flexDirection:"column",marginBottom:1,children:[F.jsxDEV(E,{color:"yellow",bold:!0,children:"Stack Trace:"},void 0,!1,void 0,this),F.jsxDEV(E,{color:"gray",children:G.stack.split(`
4
4
  `).slice(0,5).join(`
5
5
  `)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X?.componentStack&&F.jsxDEV(j,{flexDirection:"column",children:[F.jsxDEV(E,{color:"yellow",bold:!0,children:"Component Stack:"},void 0,!1,void 0,this),F.jsxDEV(E,{color:"gray",dimColor:!0,children:X.componentStack.split(`
6
6
  `).slice(0,5).join(`
@@ -1,2 +1,2 @@
1
1
  async function v(j){let m=await j.listAgents(),h={};for(let b of m)h[b.id]={id:b.id,name:b.name,description:b.description,system_prompt:b.systemPromptId,model:b.modelId};return h}
2
- export{v as Se};
2
+ export{v as Qe};
@@ -1 +1 @@
1
- import{vl as G}from"./chunk-vd8kwzra.js";var W=G.enum(["idea","bug_report","feature","refactor"]),K=G.enum(["low","medium","high","critical"]),F=G.enum(["pending","planned","archived"]),_=G.enum(["user_input","ai_suggestion","conversation_derived"]),H=G.object({id:G.string().uuid(),type:W,title:G.string().min(1).max(200),description:G.string(),priority:K.default("medium"),source:_,status:F.default("pending"),createdAt:G.string().datetime(),tags:G.array(G.string()).default([]),metadata:G.object({relatedFiles:G.array(G.string()).optional(),conversationContext:G.string().optional(),estimatedComplexity:G.enum(["simple","medium","complex"]).optional()}).optional()}),c=G.object({version:G.literal("1.0"),sparks:G.array(H),lastUpdated:G.string().datetime()}),$=G.enum(["pickup","running","complete","error","review","feedback"]),O=G.enum(["default","planner","reviewer","refactor","finder","debugger","architect"]),M=G.enum(["serial","parallel"]),N=G.lazy(()=>G.object({id:G.string(),title:G.string().min(1).max(200),description:G.string(),execution:M.optional(),children:G.array(G.lazy(()=>N)).optional(),agentType:O.optional(),threadId:G.string().optional(),estimatedTime:G.string().optional(),complexity:G.enum(["simple","medium","complex"]).optional(),dependencies:G.array(G.string()).optional(),acceptanceCriteria:G.array(G.string()).optional(),status:$.optional(),startedAt:G.string().datetime().optional(),completedAt:G.string().datetime().optional(),assignedTo:O.optional(),error:G.object({message:G.string(),stack:G.string().optional(),retryCount:G.number().optional()}).optional()})),L=G.object({taskId:G.string(),planId:G.string(),threadId:G.string(),agentType:O,status:$,startedAt:G.string().datetime(),completedAt:G.string().datetime().optional(),output:G.string().optional(),error:G.string().optional(),changedFiles:G.array(G.string()).optional()}),m=G.object({version:G.literal("1.0"),lastUpdated:G.string().datetime(),activePlanId:G.string().optional(),tasks:G.record(G.string(),N),history:G.array(L),config:G.object({maxConcurrentAgents:G.number().min(1).max(10).default(3),retryLimit:G.number().min(0).max(10).default(3),autoResume:G.boolean().default(!1)})});
1
+ import{tl as G}from"./chunk-tjg2e8v3.js";var W=G.enum(["idea","bug_report","feature","refactor"]),K=G.enum(["low","medium","high","critical"]),F=G.enum(["pending","planned","archived"]),_=G.enum(["user_input","ai_suggestion","conversation_derived"]),H=G.object({id:G.string().uuid(),type:W,title:G.string().min(1).max(200),description:G.string(),priority:K.default("medium"),source:_,status:F.default("pending"),createdAt:G.string().datetime(),tags:G.array(G.string()).default([]),metadata:G.object({relatedFiles:G.array(G.string()).optional(),conversationContext:G.string().optional(),estimatedComplexity:G.enum(["simple","medium","complex"]).optional()}).optional()}),c=G.object({version:G.literal("1.0"),sparks:G.array(H),lastUpdated:G.string().datetime()}),$=G.enum(["pickup","running","complete","error","review","feedback"]),O=G.enum(["default","planner","reviewer","refactor","finder","debugger","architect"]),M=G.enum(["serial","parallel"]),N=G.lazy(()=>G.object({id:G.string(),title:G.string().min(1).max(200),description:G.string(),execution:M.optional(),children:G.array(G.lazy(()=>N)).optional(),agentType:O.optional(),threadId:G.string().optional(),estimatedTime:G.string().optional(),complexity:G.enum(["simple","medium","complex"]).optional(),dependencies:G.array(G.string()).optional(),acceptanceCriteria:G.array(G.string()).optional(),status:$.optional(),startedAt:G.string().datetime().optional(),completedAt:G.string().datetime().optional(),assignedTo:O.optional(),error:G.object({message:G.string(),stack:G.string().optional(),retryCount:G.number().optional()}).optional()})),L=G.object({taskId:G.string(),planId:G.string(),threadId:G.string(),agentType:O,status:$,startedAt:G.string().datetime(),completedAt:G.string().datetime().optional(),output:G.string().optional(),error:G.string().optional(),changedFiles:G.array(G.string()).optional()}),m=G.object({version:G.literal("1.0"),lastUpdated:G.string().datetime(),activePlanId:G.string().optional(),tasks:G.record(G.string(),N),history:G.array(L),config:G.object({maxConcurrentAgents:G.number().min(1).max(10).default(3),retryLimit:G.number().min(0).max(10).default(3),autoResume:G.boolean().default(!1)})});