agentix-cli 0.226.3 → 0.226.5

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.
@@ -1,2 +1,2 @@
1
- import{A as a,B as b,C as c}from"./chunk-LACHXOBO.js";import"./chunk-SFQUP3BP.js";import"./chunk-LY4G7PCW.js";import"./chunk-AHWWJ7AF.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-JHCI6XCJ.js";import"./chunk-DSYKYZMT.js";import"./chunk-QIJLFPWE.js";export{a as createAgentContext,b as generate,c as generateStream};
2
- //# sourceMappingURL=agent-F2VJKD7X.js.map
1
+ import{A as a,B as b,C as c}from"./chunk-ZQN2UETA.js";import"./chunk-SFQUP3BP.js";import"./chunk-LY4G7PCW.js";import"./chunk-AHWWJ7AF.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import"./chunk-JHCI6XCJ.js";import"./chunk-DSYKYZMT.js";import"./chunk-QIJLFPWE.js";export{a as createAgentContext,b as generate,c as generateStream};
2
+ //# sourceMappingURL=agent-XNZ5TOG5.js.map
@@ -1,4 +1,4 @@
1
- import{A as Ld,B as ta,D as Md,F as Nr,I as Nd,K as Dd,L as $d,M as Hd,N as Fe,O as na,P as Bd,Q as Wd,R as Fd,S as qd,T as zd,U as Ud,Y as Gd,Z as Vd,a as Xe,aa as Xd,b as X,ba as Kd,c as ee,d as ea,da as Yd,e as yd,f as kd,g as _d,i as Sd,ia as aa,j as Ad,ja as ec,k as Td,ka as tc,l as Ed,la as nc,m as Cd,ma as ac,n as Rd,na as rc,oa as oc,pa as sc,ra as ic,sa as lc,v as Id,w as Pd,x as ot,y as Mr,z as Od}from"./chunk-ATZRBMUZ.js";import"./chunk-EFGAPAYZ.js";import{a as Jd}from"./chunk-FFOGEFPT.js";import{a as Qd,b as Zd}from"./chunk-NZQBS7GN.js";import"./chunk-QAWKN2N4.js";import"./chunk-DODL5POT.js";import{a as jd}from"./chunk-WMZ4TGMR.js";import{b as vd}from"./chunk-2YDG5CSS.js";import{a as xd}from"./chunk-LNY6N73E.js";import{$ as $l,Ea as Kl,Fb as rd,Ga as Jl,Hb as od,Ib as sd,J as jl,Jb as id,Ka as Yl,Lb as ld,M as Be,N as Ol,O as xe,P as Hn,Pa as Z,Q as Bn,Qa as Or,R as Wn,Ra as Ql,S as Fn,Sa as Zl,Sb as dd,T as Ll,Ta as ed,U as qn,Ub as We,V as zn,Va as td,Vb as Lr,W as Un,Wa as nd,Wb as cd,X as Ml,Xb as pd,Y as Nl,Z as Dl,Zb as ud,_a as ad,a as bl,aa as Hl,ac as fd,ba as Gn,c as Nn,ca as Bl,cc as St,d as Rr,da as Wl,dc as Kn,e as wl,ea as Fl,ec as Jn,fa as ql,fc as Yn,ga as Pr,gc as Qn,ha as Vn,hc as hd,ia as zl,ic as gd,jc as md,kc as Zn,la as Ul,mc as bd,na as Xn,oa as Gl,p as Zt,pa as Vl,pc as wd,r as xl,ra as en,va as Ve,w as Il,y as Pl,ya as Xl,za as jr}from"./chunk-LLVVT5OB.js";import"./chunk-GTJIKXDB.js";import{i as gl,j as ml}from"./chunk-2TVJTWFC.js";import{S as vl,U as yl,i as il,j as ll,k as dl,l as cl,s as ul,t as Ge,u as fl,v as hl}from"./chunk-BDHWTWD7.js";import{a as _t}from"./chunk-IMLAPB7G.js";import"./chunk-MRIVENBY.js";import"./chunk-UBONPGNT.js";import{a as kl,b as oe,c as $e,d as _l,e as Ir}from"./chunk-UKUH662W.js";import{a as Al,b as He,d as Tl,e as El,f as Dn}from"./chunk-2VDO2HEK.js";import{b as Sl}from"./chunk-JWDJMFU6.js";import{g as $n}from"./chunk-LQE73AZR.js";import{b as Cl,c as Rl}from"./chunk-2D3RYIDU.js";import{a as D}from"./chunk-A24QXLEG.js";import"./chunk-7K7ZQU3C.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-RX5O5637.js";import"./chunk-5ELIX7BQ.js";import"./chunk-LTOSEP7C.js";import{d as pl}from"./chunk-QPABR72X.js";import"./chunk-QU7ICYFR.js";import"./chunk-KP7KDLZ2.js";import"./chunk-XVV7ZZ77.js";import{A as Pn,B as Fi,C as qi,Ca as rl,D as zi,Da as Mn,E as Ui,Ea as ol,F as jn,Fa as sl,G as Gi,Ga as Qt,H as Vi,I as On,J as Cr,N as Xi,P as Ki,Q as Ji,a as Li,ba as tl,g as Ni,h as Di,ha as nl,o as $i,q as Hi,r as Yt,s as Er,t as Bi,u as Wi,y as Rn,ya as al,z as In}from"./chunk-TA437DWX.js";import"./chunk-MEFPXHQJ.js";import{a as H,b as F,c as Mi,e as rt}from"./chunk-7AB3QUGH.js";import"./chunk-EFXZACH4.js";import"./chunk-7YOLZGB5.js";import{n as Yi,o as Qi,p as Zi}from"./chunk-IH65GDJR.js";import"./chunk-CF2R6BOX.js";import{a as Ln,b as el}from"./chunk-Q6TGKWZE.js";import"./chunk-3UOTLMXD.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-FG2FPOML.js";import"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import{b as Ci,c as Ri,s as Ii,t as Tr,u as Pi}from"./chunk-3323WFVK.js";import"./chunk-4NZ4T3TQ.js";import{c as V}from"./chunk-BERWTVG2.js";import"./chunk-A7JSRDJL.js";import"./chunk-MM7U4PWY.js";import"./chunk-6ECXITK2.js";import{g as Oi}from"./chunk-2XQMUSGM.js";import{b as ji}from"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import"./chunk-AHWWJ7AF.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-BTLADRMY.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-7IW25T4K.js";import"./chunk-Q3A5P373.js";import"./chunk-JLBRNYKY.js";import{a as Ti,b as Ei}from"./chunk-BYEL7KKR.js";import"./chunk-QUFIUXMQ.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import{A as Ks,B as Js,Bb as En,C as Ys,D as Qs,Dc as Jt,E as Zs,Eb as Cn,Fa as pi,Ha as Ww,Ib as wi,J as Xt,K as vr,Kb as kt,Lb as xi,M as ei,Mb as vi,N as ti,Nb as yi,O as ni,Oa as kr,Pb as ki,Q as ai,R as ri,S as oi,T as si,Tb as Kt,U as ii,Ua as zw,V as Hw,Va as ae,Wa as _r,Xa as mi,Za as Sr,ab as bi,cb as Ar,hb as De,m as _n,n as qs,o as zs,p as Us,pa as Sn,q as Gs,qa as Bw,r as Vs,rc as _i,sc as Si,tc as re,vc as Ai,z as Xs}from"./chunk-FWNP27H4.js";import{a as li,b as An,c as yr,d as di,h as ci}from"./chunk-KEUW6YLL.js";import{d as ui,e as Fw,g as fi,h as hi,i as qw,j as Tn,r as gi}from"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";qs();function Dr(e,t,n=Date.now()){let r=Math.max(0,n-(e.updatedAt||n)),a=e.clientId?t[e.clientId]:void 0;if(!a)return{score:r/864e5,ageMs:r,rising:!1,overdue:!1};let o=r/(a*6e4);return{score:1e3+o,ageMs:r,rising:!0,overdue:o>=1}}function dc(e,t,n=Date.now()){return e.map((r,a)=>({i:a,s:Dr(r,t,n).score})).sort((r,a)=>a.s-r.s||r.i-a.i).map(r=>r.i)}var Ae={refresh:'<path d="M21 2v6h-6"/><path d="M3 12a9 9 0 0 1 15-6.7L21 8"/><path d="M3 22v-6h6"/><path d="M21 12a9 9 0 0 1-15 6.7L3 16"/>',clock:'<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>',alert:'<path d="M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z"/><path d="M12 9v4"/><path d="M12 17h.01"/>',gavel:'<path d="M12 3 6 9"/><path d="m9 6 6 6"/><path d="M15 9 9 15"/><path d="m12 12 6 6"/><path d="M4 21h10"/>',loop:'<path d="M17 2l4 4-4 4"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><path d="M7 22l-4-4 4-4"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/>',broom:'<path d="M3 21h18"/><path d="M12 3v9"/><path d="m7 12 5-3 5 3-1.5 6h-7Z"/>',server:'<rect x="2" y="3" width="20" height="7" rx="2"/><rect x="2" y="14" width="20" height="7" rx="2"/><path d="M6 6.5h.01"/><path d="M6 17.5h.01"/>',inbox:'<path d="M21 12h-6l-2 3h-2l-2-3H3"/><path d="M5 5h14l2 7v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Z"/>',cross:'<circle cx="12" cy="12" r="9"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/>',file:'<path d="M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z"/><path d="M14 2v5h5"/>',search:'<circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/>',chev:'<path d="m6 9 6 6 6-6"/>',chevr:'<path d="m9 6 6 6-6 6"/>',ext:'<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',pulse:'<path d="M3 12h4l3-8 4 16 3-8h4"/>',plug:'<path d="M9 2v6"/><path d="M15 2v6"/><path d="M6 8h12v3a6 6 0 0 1-12 0Z"/><path d="M12 17v5"/>',check:'<path d="M20 6 9 17l-5-5"/>',route:'<circle cx="6" cy="19" r="3"/><circle cx="18" cy="5" r="3"/><path d="M9 19h6a4 4 0 0 0 0-8H9a4 4 0 0 1 0-8h6"/>',branch:'<circle cx="6" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="8" r="3"/><path d="M18 11v1a3 3 0 0 1-3 3H9"/><path d="M6 9v6"/>',send:'<path d="M22 2 11 13"/><path d="M22 2l-7 20-4-9-9-4Z"/>',msg:'<path d="M21 11.5a8.4 8.4 0 0 1-12.9 7.5L3 21l2-5.1A8.4 8.4 0 1 1 21 11.5Z"/>',code:'<path d="m9 18-6-6 6-6"/><path d="m15 6 6 6-6 6"/>',hash:'<path d="M4 9h16"/><path d="M4 15h16"/><path d="M10 3 8 21"/><path d="M16 3l-2 18"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',trace:'<path d="M4 4v16h16"/><path d="m7 15 4-4 3 3 5-6"/>'},st=(e,t=14)=>'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="'+t+'" height="'+t+'" aria-hidden="true">'+e+"</svg>",ra=(e,t,n,r="")=>'<div class="ax-sec-label"><h3>'+st(e,13)+t+(n?'<span class="ax-sec-label__n" id="'+n+'"></span>':"")+"</h3>"+r+"</div>";function cc(e={}){return ee({title:"AgentX \xB7 Monitor",activeTab:"monitor",subtitle:"Monitor",peers:e.peers,localToken:e.localToken,body:`<div class="bf">
1
+ import{A as Ld,B as ta,D as Md,F as Nr,I as Nd,K as Dd,L as $d,M as Hd,N as Fe,O as na,P as Bd,Q as Wd,R as Fd,S as qd,T as zd,U as Ud,Y as Gd,Z as Vd,a as Xe,aa as Xd,b as X,ba as Kd,c as ee,d as ea,da as Yd,e as yd,f as kd,g as _d,i as Sd,ia as aa,j as Ad,ja as ec,k as Td,ka as tc,l as Ed,la as nc,m as Cd,ma as ac,n as Rd,na as rc,oa as oc,pa as sc,ra as ic,sa as lc,v as Id,w as Pd,x as ot,y as Mr,z as Od}from"./chunk-3IL57455.js";import"./chunk-EFGAPAYZ.js";import{a as Jd}from"./chunk-FFOGEFPT.js";import{a as Qd,b as Zd}from"./chunk-NZQBS7GN.js";import"./chunk-QAWKN2N4.js";import"./chunk-DODL5POT.js";import{a as jd}from"./chunk-WMZ4TGMR.js";import{b as vd}from"./chunk-2YDG5CSS.js";import{a as xd}from"./chunk-LNY6N73E.js";import{$ as $l,Ea as Kl,Fb as rd,Ga as Jl,Hb as od,Ib as sd,J as jl,Jb as id,Ka as Yl,Lb as ld,M as Be,N as Ol,O as xe,P as Hn,Pa as Z,Q as Bn,Qa as Or,R as Wn,Ra as Ql,S as Fn,Sa as Zl,Sb as dd,T as Ll,Ta as ed,U as qn,Ub as We,V as zn,Va as td,Vb as Lr,W as Un,Wa as nd,Wb as cd,X as Ml,Xb as pd,Y as Nl,Z as Dl,Zb as ud,_a as ad,a as bl,aa as Hl,ac as fd,ba as Gn,c as Nn,ca as Bl,cc as St,d as Rr,da as Wl,dc as Kn,e as wl,ea as Fl,ec as Jn,fa as ql,fc as Yn,ga as Pr,gc as Qn,ha as Vn,hc as hd,ia as zl,ic as gd,jc as md,kc as Zn,la as Ul,mc as bd,na as Xn,oa as Gl,p as Zt,pa as Vl,pc as wd,r as xl,ra as en,va as Ve,w as Il,y as Pl,ya as Xl,za as jr}from"./chunk-SPVGDMR7.js";import"./chunk-GTJIKXDB.js";import{i as gl,j as ml}from"./chunk-2TVJTWFC.js";import{S as vl,U as yl,i as il,j as ll,k as dl,l as cl,s as ul,t as Ge,u as fl,v as hl}from"./chunk-BDHWTWD7.js";import{a as _t}from"./chunk-IMLAPB7G.js";import"./chunk-MRIVENBY.js";import"./chunk-UBONPGNT.js";import{a as kl,b as oe,c as $e,d as _l,e as Ir}from"./chunk-UKUH662W.js";import{a as Al,b as He,d as Tl,e as El,f as Dn}from"./chunk-2VDO2HEK.js";import{b as Sl}from"./chunk-JWDJMFU6.js";import{g as $n}from"./chunk-LQE73AZR.js";import{b as Cl,c as Rl}from"./chunk-2D3RYIDU.js";import{a as D}from"./chunk-A24QXLEG.js";import"./chunk-7K7ZQU3C.js";import"./chunk-2AXFYDWF.js";import"./chunk-AQASR6KR.js";import"./chunk-RX5O5637.js";import"./chunk-5ELIX7BQ.js";import"./chunk-LTOSEP7C.js";import{d as pl}from"./chunk-QPABR72X.js";import"./chunk-QU7ICYFR.js";import"./chunk-KP7KDLZ2.js";import"./chunk-XVV7ZZ77.js";import{A as Pn,B as Fi,C as qi,Ca as rl,D as zi,Da as Mn,E as Ui,Ea as ol,F as jn,Fa as sl,G as Gi,Ga as Qt,H as Vi,I as On,J as Cr,N as Xi,P as Ki,Q as Ji,a as Li,ba as tl,g as Ni,h as Di,ha as nl,o as $i,q as Hi,r as Yt,s as Er,t as Bi,u as Wi,y as Rn,ya as al,z as In}from"./chunk-WXV3KLNI.js";import"./chunk-MEFPXHQJ.js";import{a as H,b as F,c as Mi,e as rt}from"./chunk-7AB3QUGH.js";import"./chunk-EFXZACH4.js";import"./chunk-7YOLZGB5.js";import{n as Yi,o as Qi,p as Zi}from"./chunk-IH65GDJR.js";import"./chunk-CF2R6BOX.js";import{a as Ln,b as el}from"./chunk-Q6TGKWZE.js";import"./chunk-3UOTLMXD.js";import"./chunk-GV7S5BAX.js";import"./chunk-GSX4NK2N.js";import"./chunk-FG2FPOML.js";import"./chunk-5ONH4ITT.js";import"./chunk-JRAG37V5.js";import"./chunk-ILEC3IAV.js";import{b as Ci,c as Ri,s as Ii,t as Tr,u as Pi}from"./chunk-3323WFVK.js";import"./chunk-4NZ4T3TQ.js";import{c as V}from"./chunk-BERWTVG2.js";import"./chunk-A7JSRDJL.js";import"./chunk-MM7U4PWY.js";import"./chunk-6ECXITK2.js";import{g as Oi}from"./chunk-2XQMUSGM.js";import{b as ji}from"./chunk-WPNRDEHW.js";import"./chunk-OWNQ2FD4.js";import"./chunk-AHWWJ7AF.js";import"./chunk-KEXBEUSU.js";import"./chunk-ROLSSYXE.js";import"./chunk-BTLADRMY.js";import"./chunk-72SZI2UW.js";import"./chunk-FCPTN6NF.js";import"./chunk-MCI3DIWW.js";import"./chunk-7IW25T4K.js";import"./chunk-Q3A5P373.js";import"./chunk-JLBRNYKY.js";import{a as Ti,b as Ei}from"./chunk-BYEL7KKR.js";import"./chunk-QUFIUXMQ.js";import"./chunk-DCIYOPJF.js";import"./chunk-7I7IEX4S.js";import{A as Ks,B as Js,Bb as En,C as Ys,D as Qs,Dc as Jt,E as Zs,Eb as Cn,Fa as pi,Ha as Ww,Ib as wi,J as Xt,K as vr,Kb as kt,Lb as xi,M as ei,Mb as vi,N as ti,Nb as yi,O as ni,Oa as kr,Pb as ki,Q as ai,R as ri,S as oi,T as si,Tb as Kt,U as ii,Ua as zw,V as Hw,Va as ae,Wa as _r,Xa as mi,Za as Sr,ab as bi,cb as Ar,hb as De,m as _n,n as qs,o as zs,p as Us,pa as Sn,q as Gs,qa as Bw,r as Vs,rc as _i,sc as Si,tc as re,vc as Ai,z as Xs}from"./chunk-FWNP27H4.js";import{a as li,b as An,c as yr,d as di,h as ci}from"./chunk-KEUW6YLL.js";import{d as ui,e as Fw,g as fi,h as hi,i as qw,j as Tn,r as gi}from"./chunk-N47Y5ADQ.js";import"./chunk-VQRY4IDI.js";import"./chunk-YSCT6DPR.js";import"./chunk-RGDKHYY2.js";import"./chunk-QIJLFPWE.js";qs();function Dr(e,t,n=Date.now()){let r=Math.max(0,n-(e.updatedAt||n)),a=e.clientId?t[e.clientId]:void 0;if(!a)return{score:r/864e5,ageMs:r,rising:!1,overdue:!1};let o=r/(a*6e4);return{score:1e3+o,ageMs:r,rising:!0,overdue:o>=1}}function dc(e,t,n=Date.now()){return e.map((r,a)=>({i:a,s:Dr(r,t,n).score})).sort((r,a)=>a.s-r.s||r.i-a.i).map(r=>r.i)}var Ae={refresh:'<path d="M21 2v6h-6"/><path d="M3 12a9 9 0 0 1 15-6.7L21 8"/><path d="M3 22v-6h6"/><path d="M21 12a9 9 0 0 1-15 6.7L3 16"/>',clock:'<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>',alert:'<path d="M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z"/><path d="M12 9v4"/><path d="M12 17h.01"/>',gavel:'<path d="M12 3 6 9"/><path d="m9 6 6 6"/><path d="M15 9 9 15"/><path d="m12 12 6 6"/><path d="M4 21h10"/>',loop:'<path d="M17 2l4 4-4 4"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><path d="M7 22l-4-4 4-4"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/>',broom:'<path d="M3 21h18"/><path d="M12 3v9"/><path d="m7 12 5-3 5 3-1.5 6h-7Z"/>',server:'<rect x="2" y="3" width="20" height="7" rx="2"/><rect x="2" y="14" width="20" height="7" rx="2"/><path d="M6 6.5h.01"/><path d="M6 17.5h.01"/>',inbox:'<path d="M21 12h-6l-2 3h-2l-2-3H3"/><path d="M5 5h14l2 7v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Z"/>',cross:'<circle cx="12" cy="12" r="9"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/>',file:'<path d="M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z"/><path d="M14 2v5h5"/>',search:'<circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/>',chev:'<path d="m6 9 6 6 6-6"/>',chevr:'<path d="m9 6 6 6-6 6"/>',ext:'<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',pulse:'<path d="M3 12h4l3-8 4 16 3-8h4"/>',plug:'<path d="M9 2v6"/><path d="M15 2v6"/><path d="M6 8h12v3a6 6 0 0 1-12 0Z"/><path d="M12 17v5"/>',check:'<path d="M20 6 9 17l-5-5"/>',route:'<circle cx="6" cy="19" r="3"/><circle cx="18" cy="5" r="3"/><path d="M9 19h6a4 4 0 0 0 0-8H9a4 4 0 0 1 0-8h6"/>',branch:'<circle cx="6" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="8" r="3"/><path d="M18 11v1a3 3 0 0 1-3 3H9"/><path d="M6 9v6"/>',send:'<path d="M22 2 11 13"/><path d="M22 2l-7 20-4-9-9-4Z"/>',msg:'<path d="M21 11.5a8.4 8.4 0 0 1-12.9 7.5L3 21l2-5.1A8.4 8.4 0 1 1 21 11.5Z"/>',code:'<path d="m9 18-6-6 6-6"/><path d="m15 6 6 6-6 6"/>',hash:'<path d="M4 9h16"/><path d="M4 15h16"/><path d="M10 3 8 21"/><path d="M16 3l-2 18"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',trace:'<path d="M4 4v16h16"/><path d="m7 15 4-4 3 3 5-6"/>'},st=(e,t=14)=>'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="'+t+'" height="'+t+'" aria-hidden="true">'+e+"</svg>",ra=(e,t,n,r="")=>'<div class="ax-sec-label"><h3>'+st(e,13)+t+(n?'<span class="ax-sec-label__n" id="'+n+'"></span>':"")+"</h3>"+r+"</div>";function cc(e={}){return ee({title:"AgentX \xB7 Monitor",activeTab:"monitor",subtitle:"Monitor",peers:e.peers,localToken:e.localToken,body:`<div class="bf">
2
2
 
3
3
  <div class="bf-head">
4
4
  <div>
@@ -23163,4 +23163,4 @@ data: ${f.replace(/\n/g," ")}
23163
23163
  `)}catch{}}};s.stdout?.on("data",l),s.stderr?.on("data",l);let d=setInterval(()=>{try{t.write(`: hb
23164
23164
 
23165
23165
  `)}catch{}},15e3),c=()=>{clearInterval(d);try{s.kill()}catch{}try{t.end()}catch{}};e.on("close",c),s.on("exit",c),s.on("error",c)}async function Sw(e,t,n,r){let a=n.url+r,o=(e.method||"GET").toUpperCase(),i=o!=="GET"&&o!=="HEAD"?await new Promise((p,u)=>{let f=[];e.on("data",g=>f.push(g)),e.on("end",()=>p(Buffer.concat(f))),e.on("error",u)}):void 0,l={},d=e.headers["content-type"];d&&(l["Content-Type"]=Array.isArray(d)?d[0]:d);let c=e.headers["x-requested-with"];c&&(l["X-Requested-With"]=Array.isArray(c)?c[0]:c),n.token&&(l.Authorization=`Bearer ${n.token}`),l["X-Agentx-Peer"]="primary";try{let p=await fetch(a,{method:o,headers:l,body:i&&i.length>0?i:void 0}),u=Buffer.from(await p.arrayBuffer());t.writeHead(p.status,{"Content-Type":p.headers.get("content-type")||"application/json","Cache-Control":"no-store"}),t.end(u)}catch(p){E(t,502,{error:`proxy to peer failed: ${p?.message||p}`,target:a})}}function Ut(e,t){let n=e.replace(/\/+$/,""),r=(t.dashboard?.daemons||[]).find(a=>a.url.replace(/\/+$/,"")===n);return r?{url:Hs(r),token:r.dashboardToken||r.token}:null}export{L1 as RETIRED_PAGES,X1 as applyAttachSessions,Ew as configNodeTargets,hw as fetchDaemonAgents,M1 as handleBoardRequest,H1 as liveOverlaps,MD as resetLiveCaches,ND as resetWallFleetCaches,nt as resolveNodeTargets,LD as startBoardDashboard,V1 as withLastGood};
23166
- //# sourceMappingURL=board-dashboard-B6QSOGCC.js.map
23166
+ //# sourceMappingURL=board-dashboard-MG7HVCKE.js.map
@@ -1,4 +1,4 @@
1
- import{a as Ze,b as k,c as D,d as ea,e as fe,f as he,g as H,h as be,i as L,j as N,n as aa,o as ta,p as ra,q as na}from"./chunk-EFGAPAYZ.js";import{e as Ve,i as Qe}from"./chunk-QAWKN2N4.js";import{b as me}from"./chunk-DODL5POT.js";import{$a as Xe,Aa as qe,Lb as Ge,Xa as Ke,Ya as Ye,Za as Je,c as Le,va as _}from"./chunk-LLVVT5OB.js";import{a as V}from"./chunk-IMLAPB7G.js";import{b as Fe}from"./chunk-MRIVENBY.js";import{k as Be}from"./chunk-UBONPGNT.js";import{b as Q}from"./chunk-2VDO2HEK.js";import{c as Ne,e as We}from"./chunk-LQE73AZR.js";import{a as Z,b as Ue}from"./chunk-A24QXLEG.js";import{ia as G}from"./chunk-TA437DWX.js";import{b as ue}from"./chunk-7AB3QUGH.js";import{a as K,b as X}from"./chunk-Q6TGKWZE.js";import{s as ge,u as Oe}from"./chunk-3323WFVK.js";import{b as He}from"./chunk-MM7U4PWY.js";import{c as De,d as Me}from"./chunk-OWNQ2FD4.js";import{a as je}from"./chunk-ROLSSYXE.js";import{Dc as xe,J as le,M as F,Mb as Ee,S as Za,Tb as at,Va as ce,Wa as Pe,hb as et,oc as pe,sc as q,tc as Re}from"./chunk-FWNP27H4.js";import{existsSync as Y,readFileSync as xa,writeFileSync as ga,appendFileSync as lt,mkdirSync as ct}from"fs";import{dirname as pt,resolve as M}from"path";import{fileURLToPath as xt}from"url";import{hostname as gt}from"os";import{spawn as ut}from"child_process";var ve=`:root {
1
+ import{a as Ze,b as k,c as D,d as ea,e as fe,f as he,g as H,h as be,i as L,j as N,n as aa,o as ta,p as ra,q as na}from"./chunk-EFGAPAYZ.js";import{e as Ve,i as Qe}from"./chunk-QAWKN2N4.js";import{b as me}from"./chunk-DODL5POT.js";import{$a as Xe,Aa as qe,Lb as Ge,Xa as Ke,Ya as Ye,Za as Je,c as Le,va as _}from"./chunk-SPVGDMR7.js";import{a as V}from"./chunk-IMLAPB7G.js";import{b as Fe}from"./chunk-MRIVENBY.js";import{k as Be}from"./chunk-UBONPGNT.js";import{b as Q}from"./chunk-2VDO2HEK.js";import{c as Ne,e as We}from"./chunk-LQE73AZR.js";import{a as Z,b as Ue}from"./chunk-A24QXLEG.js";import{ia as G}from"./chunk-WXV3KLNI.js";import{b as ue}from"./chunk-7AB3QUGH.js";import{a as K,b as X}from"./chunk-Q6TGKWZE.js";import{s as ge,u as Oe}from"./chunk-3323WFVK.js";import{b as He}from"./chunk-MM7U4PWY.js";import{c as De,d as Me}from"./chunk-OWNQ2FD4.js";import{a as je}from"./chunk-ROLSSYXE.js";import{Dc as xe,J as le,M as F,Mb as Ee,S as Za,Tb as at,Va as ce,Wa as Pe,hb as et,oc as pe,sc as q,tc as Re}from"./chunk-FWNP27H4.js";import{existsSync as Y,readFileSync as xa,writeFileSync as ga,appendFileSync as lt,mkdirSync as ct}from"fs";import{dirname as pt,resolve as M}from"path";import{fileURLToPath as xt}from"url";import{hostname as gt}from"os";import{spawn as ut}from"child_process";var ve=`:root {
2
2
  /* --- Brand (agentina) --------------------------------------------- */
3
3
  --ax-blue: #2979FF;
4
4
  --ax-blue-d: #1B5FD9;
@@ -2903,4 +2903,4 @@ tr:hover td { background: var(--bg-hover); }
2903
2903
  ${r}`).all(a,...t,...n).map(i=>({id:i.id,state:i.state,channel:i.channel,agentId:i.agent_id,text:i.text,createdAt:i.created_at})):[]}function Qo(e,a){return Ua(e,a,ce,"ORDER BY created_at")}function Zo(e,a,t=50){return Ua(e,a,[...ce,...Pe],"ORDER BY created_at DESC, rowid DESC LIMIT ?",Math.max(1,Math.min(t,500)))}at();var ze="member:",pr=90,xr="members",gr="tailscale-user-login",ur=400,mr=60*60*1e3;function fr(e){let a=e.scopes.find(t=>t.startsWith(ze));return a?a.slice(ze.length):null}function qa(e,a){if(!e)return null;let t=a.verify(e),r=t?fr(t):null;return t&&r?{rec:t,personId:r}:null}function ii(e,a){let t=e.people().find(s=>s.id===a);if(!t)return{ok:!1,error:`No person "${a}". Add them first: agentx people add ${a} --name "\u2026"`};let{token:r,record:n}=e.tokens.create({name:`${t.name} (machine not paired yet)`,scopes:[`${ze}${t.id}`],expiresInDays:pr}),{code:o,expiresAt:i}=e.codes.create({token:r,tokenId:n.id,name:t.id});return e.members.log({person:t.id,device:n.id,event:"invited"}),{ok:!0,code:o,expiresAt:i,tokenId:n.id,person:t}}var hr=Math.round(Ne/6e4);function br(e){return e==="client"?"Your project":"My work"}function si(e){let a=br(e.person.role),t=e.person.role==="client"?`I use AgentX to keep track of the work I do for you. It has a page for you, "${a}": what you asked us for, and where each request stands.`:`I use AgentX to give our AI agents their jobs. It has a page for you, "${a}": what you asked the agents for, and where each request stands.`;return[`Hi ${e.person.name},`,"",t,"","To open it:","1. Accept the Tailscale share I sent you. Tailscale is a small program that connects your computer to mine, privately.",`2. Open ${e.origin.replace(/\/+$/,"")}/member in Edge or Chrome, give your computer a name and type this code: ${We(e.code)}`,` The code works once, for ${hr} minutes. If it has stopped working, tell me and I will send you a new one.`,"","I then approve your machine, and the page opens by itself."].join(`
2904
2904
  `)}var vr="The private network says someone else is connecting from this machine. Ask the person who invited you for a new code.",wr="Too many machines are waiting for the owner's answer. Try again later.",Fa="That code didn't work. Check it, or ask the person who invited you for a new one.",Ka=(e,a)=>{let t=e.headers[a];return(Array.isArray(t)?t[0]:t||"").trim()};function Ya(e){let a=e.socket?.remoteAddress||"";return a==="127.0.0.1"||a==="::1"||a==="::ffff:127.0.0.1"}function yr(e){if(!Ya(e))return null;let a=Ka(e,gr).toLowerCase();return a?a.slice(0,80):null}function kr(e){let a=e.socket?.remoteAddress||"unknown";if(!Ya(e))return a;let t=Ka(e,"x-forwarded-for").split(",").pop().trim();return/^[0-9a-fA-F:.]{2,45}$/.test(t)?t:a}function $r(e){return typeof e=="string"?e.replace(/[^\p{L}\p{N} ._'()-]/gu," ").replace(/\s+/g," ").trim().slice(0,60):""}function _r(e){return e.identities.map(Ee).filter(a=>!!a&&a.channel==="tailscale").map(a=>a.value)}async function di(e,a){let t=Date.now(),r=a.now??Date.now,n=a.log??(b=>console.log(b)),o=kr(e),i=a.limiter.retryAfter(o);if(i>0)return n(`[member] pair-code refused from ${o}: locked out for ${i}s more`),{status:429,body:{error:"too many attempts",retryAfter:i},retryAfter:i};let s=null,d="";try{let b=await Q(e,2048);s=b.code,d=$r(b.machine)}catch{}let l=a.codes.redeem(s),c=l?qa(l.token,a.tokens):null;if(await Cr(t,a.minMs??ur),!l||!c)return a.limiter.fail(o),n(`[member] pair-code failed from ${o}`),{status:401,body:{error:Fa}};a.limiter.succeed(o);let{rec:m,personId:g}=c,u=a.people().find(b=>b.id===g);if(!u)return a.tokens.revoke(m.id),a.members.log({person:g,device:m.id,event:"refused",address:o,detail:"person no longer listed"}),n(`[member] pair-code for ${g} refused from ${o}: person no longer listed`),{status:403,body:{error:Fa}};let x=yr(e),f=_r(u);if(f.length&&(!x||!f.includes(x)))return a.tokens.revoke(m.id),a.members.log({person:g,device:m.id,event:"refused",address:o,detail:`network login ${x??"missing"}; expected ${f.join(" or ")}`}),n(`[member] ${g}: pairing from ${o} refused: the network says "${x??"nobody"}", expected ${f.join(" or ")}`),{status:403,body:{error:vr}};let A=d||"Unnamed machine",y=u.name.slice(0,40),v=Oe(a.root,{title:`New machine for ${y}`,ask:`From ${o}, ${x?`network login ${x}`:"no network login reported"}. Machine name, as typed there: "${A}". Let it see their own work?`,recommend:`Yes if ${y} told you they just paired this machine. No if you did not expect it.`,if_silent:"discard",raised_by:xr},{now:r()});return v.ok?(a.members.add({tokenId:m.id,personId:g,name:A,state:"pending",cardId:v.card.id,address:o,...x?{network:x}:{},createdAt:new Date(r()).toISOString()}),a.members.log({person:g,device:m.id,event:"paired",address:o,detail:A}),n(`[member] ${g} paired "${A}" from ${o}; waiting for the owner (card ${v.card.id})`),{status:200,body:{person:g,name:A,state:"pending"},token:l.token}):(a.tokens.revoke(m.id),a.members.log({person:g,device:m.id,event:"refused",address:o,detail:v.error}),n(`[member] ${g}: pairing from ${o} refused: ${v.error}`),{status:503,body:{error:wr}})}var de="this machine is not paired",Sr="waiting for the owner to approve this machine";function Ja(e){return e?e.status==="decided"?e.verdict??null:e.status==="expired"?"no":null:null}function li(e,a){return a.state==="pending"&&a.cardId?Ja(ge(e,a.cardId)):null}function ci(e,a,t){let r=a.now??Date.now,n=a.log??(c=>console.log(c)),o=qa(e,a.tokens);if(!o)return{ok:!1,status:401,error:de};let{rec:i,personId:s}=o,d=a.members.byToken(i.id);if(!d||d.state==="removed"||d.personId!==s)return{ok:!1,status:401,error:de};if(a.people&&!a.people().some(c=>c.id===s))return Xa(a,i.id,"person no longer listed"),n(`[member] ${s}: "${d.name}" ended: person no longer listed`),{ok:!1,status:401,error:de};if(d.state==="pending"){let c=d.cardId?ge(a.root,d.cardId):null,m=Ja(c);if(m==="yes")d=a.members.update(i.id,{state:"active",approvedAt:new Date(r()).toISOString()})??d,a.members.log({person:s,device:i.id,event:"approved",detail:c?.decided_by}),n(`[member] ${s}: "${d.name}" approved`);else if(m==="no"){let g=c?.status==="expired"?"the owner did not answer in time":"the owner said no";return a.tokens.revoke(i.id),a.members.update(i.id,{state:"removed",removedAt:new Date(r()).toISOString(),removedReason:g}),a.members.log({person:s,device:i.id,event:"refused",detail:g}),n(`[member] ${s}: "${d.name}" refused: ${g}`),{ok:!1,status:401,error:de}}else return{ok:!1,status:403,error:Sr,waiting:!0}}let l=d.lastSeenAt?Date.parse(d.lastSeenAt):0;return t&&(r()-l>=mr||d.lastAddress!==t)&&(d=a.members.update(i.id,{lastSeenAt:new Date(r()).toISOString(),lastAddress:t})??d,a.members.log({person:s,device:i.id,event:"signed-in",address:t})),{ok:!0,device:d,personId:s,rec:i}}function Xa(e,a,t="removed by the owner"){let r=e.members.byToken(a);if(!r)return null;e.tokens.revoke(a);let n=e.members.update(a,{state:"removed",removedAt:new Date((e.now??Date.now)()).toISOString(),removedReason:t});return e.members.log({person:r.personId,device:a,event:"removed",detail:t}),n}function pi(e,a){return e.members.devices(a).filter(t=>t.state!=="removed").map(t=>Xa(e,t.tokenId,"person removed by the owner")).filter(t=>!!t)}async function Cr(e,a){let t=e+a-Date.now();t>0&&await new Promise(r=>setTimeout(r,t))}var Ga=["gitlab","github"];function Ar(e,a,t){let r=String(a||"").trim().toLowerCase();if(!Ga.includes(r))throw new Error(`Request status works on ${Ga.join(" and ")}, not on "${a}".`);e.requestStatus=e.requestStatus&&typeof e.requestStatus=="object"?e.requestStatus:{};let n=Array.isArray(e.requestStatus.channels)?e.requestStatus.channels.map(o=>String(o).toLowerCase()):[];return e.requestStatus.channels=t?[...new Set([...n,r])]:n.filter(o=>o!==r),`request status on ${r} is ${t?"on":"off"}`}function ui(e){return Array.isArray(e?.requestStatus?.channels)?e.requestStatus.channels.map(a=>String(a).toLowerCase()):[]}function mi(e){let{summary:a}=Z(t=>Ar(t,e?.channel,!!e?.enabled));return{summary:a}}var hi="https://myaccount.google.com/apppasswords";function bi(e){let a=e.split("@")[1]?.toLowerCase()??"";if(a==="gmail.com"||a==="googlemail.com")return{imapHost:"imap.gmail.com",imapPort:993,smtpHost:"smtp.gmail.com",smtpPort:465}}function vi(e){let a=e.user&&e.user!==e.address?{user:e.user}:{};return{agent:e.agent,address:e.address,imap:{host:e.imapHost,port:e.imapPort,secure:e.imapPort===993,...a,password:`\${${e.passwordEnv}}`},smtp:{host:e.smtpHost,port:e.smtpPort,secure:e.smtpPort===465},allowFrom:e.allowFrom,send:e.send}}function wi(e){return`EMAIL_${e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_PASSWORD`}function $i(e){return`${e.name} <${e.from}> via ${e.host}:${e.port}`}async function _i(e,a){return Be({host:e.host,port:e.port,secure:e.secure,user:e.user,password:e.password},{name:e.name,address:e.from},a,{"Auto-Submitted":"auto-generated"})}function Si(e,a){return{to:e,subject:`${a.name}: test mail`,text:[`This is a test mail from ${a.name}.`,"","If it reached you, AgentX can send mail through this sender.","You can ignore it."].join(`
2905
2905
  `)}}function Ai(e){return new Set(Object.entries(e).filter(([,a])=>a?.wiki?.absorb?.enabled===!1).map(([a])=>a))}function Ti(e,a){return a.only?{agents:[a.only],skipped:[]}:{agents:e.filter(t=>!a.off.has(t)),skipped:e.filter(t=>a.off.has(t))}}function Ii(e,a){return`absorb is off for this agent (agents.${e}.wiki.absorb.enabled); skipped.${e===a?" It reads the wiki notes inbox, so the inbox was not read.":""} Use --agent ${e} to run it anyway.`}function zi(e,a){if(a){if(!e.wiki?.absorb)return;delete e.wiki.absorb.enabled,Object.keys(e.wiki.absorb).length===0&&delete e.wiki.absorb,Object.keys(e.wiki).length===0&&delete e.wiki;return}e.wiki??={},e.wiki.absorb??={},e.wiki.absorb.enabled=!1}var Tr="https://ntfy.sh";function Ei(e){return{enabled:!!e?.enabled,server:e?.server||Tr,topicSet:!!e?.topic,tokenSet:!!e?.token}}function Ri(e,a){let t={...e??{}};if("enabled"in a&&(t.enabled=!!a.enabled),"server"in a){let r=String(a.server).trim().replace(/\/+$/,"");if(!/^https?:\/\/\S+$/.test(r))throw new Error("ntfy server must be an http(s) URL");t.server=r}if("topic"in a){let r=String(a.topic).trim();if(!r)throw new Error("ntfy topic cannot be empty");t.topic=r}if("token"in a){let r=String(a.token??"").trim();r?t.token=r:delete t.token}if(t.enabled&&!t.topic)throw new Error("set a topic before enabling ntfy");return t}Za();function Va(e){return/^(agent|person):/.test(e)?F(e):`person:${e}`}function ji(e){let a=(e?.projects??[]).filter(t=>t?.id);return a.map(t=>({id:t.id,name:t.name?.trim()||t.id,client:Le(t.id,a),...t.pm?{pm:F(t.pm)}:{},...t.lead?{lead:Va(t.lead)}:{},team:[...new Set((t.team??[]).filter(Boolean).map(F))]})).sort((t,r)=>t.client.localeCompare(r.client)||t.name.localeCompare(r.name)||t.id.localeCompare(r.id))}function Hi(e,a,t){if(!t.lead&&!t.team?.length)return;let r=new Set(Object.keys(e.business?.orgChart||{})),n=new Set((e.people||[]).map(i=>String(i.id))),o={id:a,name:a,client:"",...t.lead?{lead:Va(t.lead)}:{},team:(t.team??[]).map(F)};return Ir([o],r,n)}function Ir(e,a,t){let r=n=>{let o=le(n);return o.kind==="agent"?a.has(o.id)?void 0:`"${o.id}", which is not an agent in business.orgChart`:t.has(o.id)?void 0:`"${o.id}", which is not a person in people`};for(let n of e){if(n.lead){if(le(n.lead).kind!=="person")return`Project ${n.name} is led by "${n.lead}"; a lead is a person (person:<id>), the PM is the agent`;let o=r(n.lead);if(o)return`Project ${n.name} is led by ${o}`}for(let o of n.team){let i=r(o);if(i)return`Project ${n.name} has ${i} in its team`}}}export{ve as a,da as b,ye as c,nt as d,ot as e,it as f,ua as g,mt as h,_n as i,Sn as j,Cn as k,ko as l,Co as m,Ba as n,Yo as o,Jo as p,Rn as q,On as r,It as s,Et as t,ke as u,Dn as v,Mn as w,Rt as x,Bn as y,Un as z,Fn as A,Vo as B,Qo as C,Zo as D,pr as E,xr as F,ii as G,hr as H,br as I,si as J,vr as K,wr as L,yr as M,kr as N,$r as O,_r as P,di as Q,Ja as R,li as S,ci as T,Xa as U,pi as V,Ga as W,Ar as X,ui as Y,mi as Z,hi as _,bi as $,vi as aa,wi as ba,$i as ca,_i as da,Si as ea,Ai as fa,Ti as ga,Ii as ha,zi as ia,Ei as ja,Ri as ka,Va as la,ji as ma,Hi as na,Ir as oa,Qt as pa,go as qa,vo as ra,wo as sa};
2906
- //# sourceMappingURL=chunk-ATZRBMUZ.js.map
2906
+ //# sourceMappingURL=chunk-3IL57455.js.map