ai-agent-session-center 2.3.2 → 2.3.3
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/README.md +30 -16
- package/dist/client/assets/{AnalyticsView-YRASbt1m.js → AnalyticsView-DVDqblSH.js} +1 -1
- package/dist/client/assets/{Charts.module-CrwDIRs9.js → Charts.module-CQf7HQCb.js} +1 -1
- package/dist/client/assets/{CyberdromeScene-CQ0JUjR0.js → CyberdromeScene-w4bk6IXJ.js} +1 -1
- package/dist/client/assets/{HistoryView-Fz2_E2lb.js → HistoryView--XwKlCyd.js} +1 -1
- package/dist/client/assets/{ProjectBrowserView-DYnCNpma.js → ProjectBrowserView-CTN5CmBa.js} +1 -1
- package/dist/client/assets/{QueueView-Ben9YLiL.js → QueueView-Bj-e0m_U.js} +1 -1
- package/dist/client/assets/{TimelineView-CtshpaEr.js → TimelineView-CoTsTAGd.js} +1 -1
- package/dist/client/assets/index-Dgi6T0Nt.js +128 -0
- package/dist/client/assets/index-DqtLpLIs.css +1 -0
- package/dist/client/assets/{useQuery-C9Q607lk.js → useQuery-5GNo2Ewt.js} +1 -1
- package/dist/client/assets/{with-selector-DNJRp3mp.js → with-selector-DTnjuyBc.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/client/screenshot-dashboard.png +0 -0
- package/dist/client/screenshot-project-tab.png +0 -0
- package/package.json +1 -1
- package/static/screenshot-dashboard.png +0 -0
- package/static/screenshot-mobile-history.png +0 -0
- package/static/screenshot-mobile-home.png +0 -0
- package/static/screenshot-mobile-project.png +0 -0
- package/static/screenshot-mobile-terminal.png +0 -0
- package/static/screenshot-project-tab.png +0 -0
- package/dist/client/assets/index-B1iUo-kL.js +0 -122
- package/dist/client/assets/index-C5tAimN4.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{U as _r,B as Sm,N as xr,C as ql,V as wn,D as Ot,F as Nf,M as ki,E as ft,G as xm,H as Yt,I as Vt,J as Lu,K as wl,W as Uu,L as Hr,O as tn,Q as fo,T as ci,X as Sr,Y as dr,Z as mo,_ as xo,$ as L_,a0 as Ta,a1 as Du,a2 as bm,a3 as br,a4 as va,a5 as Xt,a6 as Em,a7 as kt,a8 as si,a9 as Mm,aa as _l,ab as Dr,ac as ma,ad as ba,ae as go,af as Bi,ag as ps,ah as U_,ai as Tm,aj as vo,ak as Vn,al as Pl,am as pa,an as hs,ao as ym,ap as Am,aq as co,ar as Cm,as as Rm,at as wm,au as Pm,av as Lm,aw as Um,ax as Dm,ay as Im,az as Nm,aA as Fm,aB as Om,aC as km,aD as Bm,aE as Gm,aF as zm,aG as Hm,aH as Vm,aI as Sl,aJ as os,aK as Wm,aL as Fi,aM as jm,aN as Xm,aO as Kl,aP as Ym,aQ as Zl,aR as qm,aS as Km,aT as Zm,aU as Ff,aV as Ut,aW as Of,aX as kf,aY as ui,aZ as _a,a_ as po,a$ as ho,b0 as li,b1 as ga,b2 as oi,b3 as Bf,b4 as Qm,b5 as Gf,b6 as zf,b7 as Hf,b8 as ms,b9 as Vf,ba as Wf,bb as jf,bc as bo,bd as Jm,be as $m,bf as eg,bg as tg,bh as Xf,bi as ng,bj as rg,bk as ig,bl as xl,bm as bl,bn as El,bo as Ml,bp as Iu,bq as Nu,br as Fu,bs as Ou,bt as ku,bu as Bu,bv as Gu,bw as zu,bx as Hu,by as Vu,bz as Wu,bA as ju,bB as Xu,bC as Yu,bD as qu,bE as Ku,bF as Zu,bG as Qu,bH as Ju,bI as $u,bJ as ef,bK as tf,bL as nf,bM as rf,bN as af,bO as of,bP as sf,bQ as lf,bR as cf,bS as uf,bT as ff,bU as df,bV as Ll,bW as Ul,bX as Dl,bY as Il,bZ as Nl,b_ as Fl,b$ as Ol,c0 as ag,c1 as pf,c2 as og,c3 as cs,c4 as sg,c5 as hf,c6 as mf,c7 as kl,c8 as Bl,c9 as Gl,ca as Yf,cb as qf,cc as Ss,cd as lg,ce as cg,cf as ug,cg as Kf,ch as fh,ci as Zf,cj as Qf,ck as Jf,cl as $f,cm as xs,cn as ed,co as td,cp as nd,cq as dh,cr as rd,cs as _o,ct as Ea,cu as id,cv as fg,cw as dg,cx as D_,cy as gf,cz as Kn,cA as zl,cB as pg,cC as hg,cD as I_,cE as mg,cF as gg,cG as vg,cH as ad,cI as _g,cJ as Sg,cK as N_,cL as F_,cM as O_,cN as k_,cO as B_,cP as G_,cQ as z_,cR as H_,cS as V_,cT as W_,cU as j_,cV as X_,cW as Y_,cX as q_,cY as K_,cZ as Z_,c_ as Q_,c$ as J_,d0 as $_,d1 as xg,d2 as eS,d3 as tS,d4 as nS,d5 as rS,d6 as od,d7 as iS,d8 as aS,d9 as oS,da as sS,db as lS,dc as cS,dd as uS,de as fS,df as dS,dg as pS,dh as bg,di as hS,dj as mS,dk as gS,dl as vS,dm as _S,dn as SS,dp as xS,dq as bS,dr as ES,ds as MS,dt as TS,du as yS,dv as AS,dw as CS,dx as RS,dy as wS,dz as PS,dA as LS,dB as US,dC as DS,dD as IS,dE as NS,dF as FS,dG as OS,dH as kS,dI as BS,dJ as GS,dK as zS,dL as HS,dM as VS,dN as ua,dO as WS,dP as jS,dQ as XS,dR as YS,dS as qS,dT as KS,dU as vf,dV as ZS,dW as QS,dX as JS,dY as $S,dZ as ex,d_ as tx,d$ as nx,e0 as rx,e1 as ix,e2 as ax,e3 as ox,e4 as sx,e5 as lx,e6 as cx,e7 as ux,e8 as fx,e9 as Eg,ea as Mg,eb as dx,ec as px,ed as hx,ee as mx,ef as gx,eg as vx,eh as _x,ei as Sx,ej as xx,ek as bx,el as Ex,em as Mx,en as Tx,eo as yx,ep as Ax,eq as Cx,er as Rx,es as wx,et as Px,eu as Lx,ev as Ux,ew as Dx,ex as Tg,ey as Ix,ez as Nx,eA as Fx,eB as Ox,eC as yg,eD as kx,eE as Bx,eF as Gx,eG as zx,eH as Hx,eI as Vx,eJ as Wx,eK as jx,eL as Xx,eM as Yx,eN as qx,eO as fa,eP as Kx,eQ as Zx,eR as _f,eS as Qx,eT as Jx,eU as $x,eV as eb,eW as tb,eX as nb,eY as fr,eZ as rb,e_ as ib,e$ as ab,f0 as ob,f1 as sb,f2 as lb,f3 as cb,f4 as ub,f5 as fb,f6 as db,f7 as pb,f8 as hb,f9 as mb,fa as gb,fb as vb,fc as _b,fd as Sb,fe as xb,ff as Ag,fg as bb,fh as Eb,fi as Mb,fj as Tb,fk as yb,fl as Ab,fm as Cb,fn as Hl,fo as Rb,fp as wb,fq as Cg,fr as Pb,fs as Lb,ft as Ub,fu as Rg,fv as wg,fw as Db,fx as Ib,fy as Nb,fz as Fb,fA as Ob,fB as Pg,fC as kb,fD as Bb,fE as Gb,fF as zb,fG as Hb,fH as Vb,fI as Wb,fJ as jb,fK as Xb,fL as Lg,fM as Yb,fN as Sf,fO as qb,fP as Kb,fQ as Zb,fR as Qb,fS as Jb,fT as $b,fU as eE,fV as tE,fW as nE,fX as rE,fY as iE,fZ as aE,f_ as oE,f$ as sE,g0 as da,g1 as lE,g2 as cE,g3 as uE,g4 as fE,g5 as dE,g6 as pE,g7 as hE,g8 as mE,g9 as gE,ga as vE,gb as _E,gc as SE,gd as xE,ge as bE,gf as EE,gg as ME,gh as TE,gi as yE,gj as AE,gk as CE,gl as RE,gm as wE,gn as PE,go as LE,gp as UE,gq as DE,gr as IE,gs as NE,gt as FE,gu as OE,gv as kE,gw as Ug,gx as BE,g as GE,r as oe,j as Q,gy as zE,gz as HE,gA as fi,gB as oa,gC as Dg,gD as VE,gE as sl,gF as ph,gG as WE,gH as jE,gI as XE,gJ as YE,gK as Ql,gL as ll,gM as Tl,gN as kn,gO as es,gP as hh,gQ as xf,gR as pu,gS as qE,gT as KE,gU as ZE,gV as QE,gW as Vl,w as mh,gX as JE,gY as $E,gZ as e1,g_ as t1,g$ as n1,h0 as r1,h1 as i1,h2 as a1,h3 as o1}from"./index-
|
|
1
|
+
import{U as _r,B as Sm,N as xr,C as ql,V as wn,D as Ot,F as Nf,M as ki,E as ft,G as xm,H as Yt,I as Vt,J as Lu,K as wl,W as Uu,L as Hr,O as tn,Q as fo,T as ci,X as Sr,Y as dr,Z as mo,_ as xo,$ as L_,a0 as Ta,a1 as Du,a2 as bm,a3 as br,a4 as va,a5 as Xt,a6 as Em,a7 as kt,a8 as si,a9 as Mm,aa as _l,ab as Dr,ac as ma,ad as ba,ae as go,af as Bi,ag as ps,ah as U_,ai as Tm,aj as vo,ak as Vn,al as Pl,am as pa,an as hs,ao as ym,ap as Am,aq as co,ar as Cm,as as Rm,at as wm,au as Pm,av as Lm,aw as Um,ax as Dm,ay as Im,az as Nm,aA as Fm,aB as Om,aC as km,aD as Bm,aE as Gm,aF as zm,aG as Hm,aH as Vm,aI as Sl,aJ as os,aK as Wm,aL as Fi,aM as jm,aN as Xm,aO as Kl,aP as Ym,aQ as Zl,aR as qm,aS as Km,aT as Zm,aU as Ff,aV as Ut,aW as Of,aX as kf,aY as ui,aZ as _a,a_ as po,a$ as ho,b0 as li,b1 as ga,b2 as oi,b3 as Bf,b4 as Qm,b5 as Gf,b6 as zf,b7 as Hf,b8 as ms,b9 as Vf,ba as Wf,bb as jf,bc as bo,bd as Jm,be as $m,bf as eg,bg as tg,bh as Xf,bi as ng,bj as rg,bk as ig,bl as xl,bm as bl,bn as El,bo as Ml,bp as Iu,bq as Nu,br as Fu,bs as Ou,bt as ku,bu as Bu,bv as Gu,bw as zu,bx as Hu,by as Vu,bz as Wu,bA as ju,bB as Xu,bC as Yu,bD as qu,bE as Ku,bF as Zu,bG as Qu,bH as Ju,bI as $u,bJ as ef,bK as tf,bL as nf,bM as rf,bN as af,bO as of,bP as sf,bQ as lf,bR as cf,bS as uf,bT as ff,bU as df,bV as Ll,bW as Ul,bX as Dl,bY as Il,bZ as Nl,b_ as Fl,b$ as Ol,c0 as ag,c1 as pf,c2 as og,c3 as cs,c4 as sg,c5 as hf,c6 as mf,c7 as kl,c8 as Bl,c9 as Gl,ca as Yf,cb as qf,cc as Ss,cd as lg,ce as cg,cf as ug,cg as Kf,ch as fh,ci as Zf,cj as Qf,ck as Jf,cl as $f,cm as xs,cn as ed,co as td,cp as nd,cq as dh,cr as rd,cs as _o,ct as Ea,cu as id,cv as fg,cw as dg,cx as D_,cy as gf,cz as Kn,cA as zl,cB as pg,cC as hg,cD as I_,cE as mg,cF as gg,cG as vg,cH as ad,cI as _g,cJ as Sg,cK as N_,cL as F_,cM as O_,cN as k_,cO as B_,cP as G_,cQ as z_,cR as H_,cS as V_,cT as W_,cU as j_,cV as X_,cW as Y_,cX as q_,cY as K_,cZ as Z_,c_ as Q_,c$ as J_,d0 as $_,d1 as xg,d2 as eS,d3 as tS,d4 as nS,d5 as rS,d6 as od,d7 as iS,d8 as aS,d9 as oS,da as sS,db as lS,dc as cS,dd as uS,de as fS,df as dS,dg as pS,dh as bg,di as hS,dj as mS,dk as gS,dl as vS,dm as _S,dn as SS,dp as xS,dq as bS,dr as ES,ds as MS,dt as TS,du as yS,dv as AS,dw as CS,dx as RS,dy as wS,dz as PS,dA as LS,dB as US,dC as DS,dD as IS,dE as NS,dF as FS,dG as OS,dH as kS,dI as BS,dJ as GS,dK as zS,dL as HS,dM as VS,dN as ua,dO as WS,dP as jS,dQ as XS,dR as YS,dS as qS,dT as KS,dU as vf,dV as ZS,dW as QS,dX as JS,dY as $S,dZ as ex,d_ as tx,d$ as nx,e0 as rx,e1 as ix,e2 as ax,e3 as ox,e4 as sx,e5 as lx,e6 as cx,e7 as ux,e8 as fx,e9 as Eg,ea as Mg,eb as dx,ec as px,ed as hx,ee as mx,ef as gx,eg as vx,eh as _x,ei as Sx,ej as xx,ek as bx,el as Ex,em as Mx,en as Tx,eo as yx,ep as Ax,eq as Cx,er as Rx,es as wx,et as Px,eu as Lx,ev as Ux,ew as Dx,ex as Tg,ey as Ix,ez as Nx,eA as Fx,eB as Ox,eC as yg,eD as kx,eE as Bx,eF as Gx,eG as zx,eH as Hx,eI as Vx,eJ as Wx,eK as jx,eL as Xx,eM as Yx,eN as qx,eO as fa,eP as Kx,eQ as Zx,eR as _f,eS as Qx,eT as Jx,eU as $x,eV as eb,eW as tb,eX as nb,eY as fr,eZ as rb,e_ as ib,e$ as ab,f0 as ob,f1 as sb,f2 as lb,f3 as cb,f4 as ub,f5 as fb,f6 as db,f7 as pb,f8 as hb,f9 as mb,fa as gb,fb as vb,fc as _b,fd as Sb,fe as xb,ff as Ag,fg as bb,fh as Eb,fi as Mb,fj as Tb,fk as yb,fl as Ab,fm as Cb,fn as Hl,fo as Rb,fp as wb,fq as Cg,fr as Pb,fs as Lb,ft as Ub,fu as Rg,fv as wg,fw as Db,fx as Ib,fy as Nb,fz as Fb,fA as Ob,fB as Pg,fC as kb,fD as Bb,fE as Gb,fF as zb,fG as Hb,fH as Vb,fI as Wb,fJ as jb,fK as Xb,fL as Lg,fM as Yb,fN as Sf,fO as qb,fP as Kb,fQ as Zb,fR as Qb,fS as Jb,fT as $b,fU as eE,fV as tE,fW as nE,fX as rE,fY as iE,fZ as aE,f_ as oE,f$ as sE,g0 as da,g1 as lE,g2 as cE,g3 as uE,g4 as fE,g5 as dE,g6 as pE,g7 as hE,g8 as mE,g9 as gE,ga as vE,gb as _E,gc as SE,gd as xE,ge as bE,gf as EE,gg as ME,gh as TE,gi as yE,gj as AE,gk as CE,gl as RE,gm as wE,gn as PE,go as LE,gp as UE,gq as DE,gr as IE,gs as NE,gt as FE,gu as OE,gv as kE,gw as Ug,gx as BE,g as GE,r as oe,j as Q,gy as zE,gz as HE,gA as fi,gB as oa,gC as Dg,gD as VE,gE as sl,gF as ph,gG as WE,gH as jE,gI as XE,gJ as YE,gK as Ql,gL as ll,gM as Tl,gN as kn,gO as es,gP as hh,gQ as xf,gR as pu,gS as qE,gT as KE,gU as ZE,gV as QE,gW as Vl,w as mh,gX as JE,gY as $E,gZ as e1,g_ as t1,g$ as n1,h0 as r1,h1 as i1,h2 as a1,h3 as o1}from"./index-Dgi6T0Nt.js";import{u as s1}from"./with-selector-DTnjuyBc.js";function Ig(){let n=null,r=!1,s=null,l=null;function a(i,f){s(i,f),l=n.requestAnimationFrame(a)}return{start:function(){r!==!0&&s!==null&&(l=n.requestAnimationFrame(a),r=!0)},stop:function(){n.cancelAnimationFrame(l),r=!1},setAnimationLoop:function(i){s=i},setContext:function(i){n=i}}}function l1(n){const r=new WeakMap;function s(u,d){const p=u.array,h=u.usage,v=p.byteLength,S=n.createBuffer();n.bindBuffer(d,S),n.bufferData(d,p,h),u.onUploadCallback();let b;if(p instanceof Float32Array)b=n.FLOAT;else if(typeof Float16Array<"u"&&p instanceof Float16Array)b=n.HALF_FLOAT;else if(p instanceof Uint16Array)u.isFloat16BufferAttribute?b=n.HALF_FLOAT:b=n.UNSIGNED_SHORT;else if(p instanceof Int16Array)b=n.SHORT;else if(p instanceof Uint32Array)b=n.UNSIGNED_INT;else if(p instanceof Int32Array)b=n.INT;else if(p instanceof Int8Array)b=n.BYTE;else if(p instanceof Uint8Array)b=n.UNSIGNED_BYTE;else if(p instanceof Uint8ClampedArray)b=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+p);return{buffer:S,type:b,bytesPerElement:p.BYTES_PER_ELEMENT,version:u.version,size:v}}function l(u,d,p){const h=d.array,v=d.updateRanges;if(n.bindBuffer(p,u),v.length===0)n.bufferSubData(p,0,h);else{v.sort((b,A)=>b.start-A.start);let S=0;for(let b=1;b<v.length;b++){const A=v[S],P=v[b];P.start<=A.start+A.count+1?A.count=Math.max(A.count,P.start+P.count-A.start):(++S,v[S]=P)}v.length=S+1;for(let b=0,A=v.length;b<A;b++){const P=v[b];n.bufferSubData(p,P.start*h.BYTES_PER_ELEMENT,h,P.start,P.count)}d.clearUpdateRanges()}d.onUploadCallback()}function a(u){return u.isInterleavedBufferAttribute&&(u=u.data),r.get(u)}function i(u){u.isInterleavedBufferAttribute&&(u=u.data);const d=r.get(u);d&&(n.deleteBuffer(d.buffer),r.delete(u))}function f(u,d){if(u.isInterleavedBufferAttribute&&(u=u.data),u.isGLBufferAttribute){const h=r.get(u);(!h||h.version<u.version)&&r.set(u,{buffer:u.buffer,type:u.type,bytesPerElement:u.elementSize,version:u.version});return}const p=r.get(u);if(p===void 0)r.set(u,s(u,d));else if(p.version<u.version){if(p.size!==u.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");l(p.buffer,u,d),p.version=u.version}}return{get:a,remove:i,update:f}}var c1=`#ifdef USE_ALPHAHASH
|
|
2
2
|
if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;
|
|
3
3
|
#endif`,u1=`#ifdef USE_ALPHAHASH
|
|
4
4
|
const float ALPHA_HASH_SCALE = 0.05;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as _,j as t,u as w,a as j}from"./index-B1iUo-kL.js";import{u as g}from"./useQuery-C9Q607lk.js";function S({value:e,onChange:s,placeholder:l="Search...",debounceMs:c=300,className:r,inputClassName:u}){const[n,m]=_.useState(e??""),p=_.useRef(null);_.useEffect(()=>{e!==void 0&&m(e)},[e]);const d=_.useCallback(h=>{p.current&&clearTimeout(p.current),p.current=setTimeout(()=>s(h),c)},[s,c]);_.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);function v(h){const i=h.target.value;m(i),d(i)}function x(){m(""),p.current&&clearTimeout(p.current),s("")}return t.jsxs("div",{className:r,style:{position:"relative",display:"flex",alignItems:"center"},children:[t.jsx("input",{type:"text",value:n,onChange:v,placeholder:l,className:u,style:u?void 0:{width:"100%",padding:"8px 32px 8px 12px",background:"var(--bg-primary, #0a0a1a)",border:"1px solid var(--border-subtle, rgba(255,255,255,0.06))",borderRadius:"6px",color:"var(--text-primary, #e0e0ff)",fontSize:"0.85rem",fontFamily:"var(--font-mono, monospace)",outline:"none"}}),n&&t.jsx("button",{onClick:x,"aria-label":"Clear search",style:{position:"absolute",right:"8px",background:"none",border:"none",color:"var(--text-secondary, #8888aa)",cursor:"pointer",fontSize:"0.9rem",padding:"2px 4px",lineHeight:1},children:"x"})]})}function B({tabs:e,activeTab:s,onTabChange:l,containerClassName:c,panelClassName:r,tabListClassName:u,tabClassName:n,activeTabClassName:m}){return t.jsxs("div",{className:c,children:[t.jsx("div",{role:"tablist",className:u,style:u?void 0:{display:"flex",gap:"2px",borderBottom:"1px solid var(--border-subtle, rgba(255,255,255,0.06))",marginBottom:"12px"},children:e.map(p=>{const d=s===p.id,v=[n,d&&m].filter(Boolean).join(" ");return t.jsx("button",{role:"tab","aria-selected":d,onClick:()=>l(p.id),className:v||void 0,style:v?void 0:{padding:"8px 16px",background:d?"var(--bg-accent, rgba(0,229,255,0.1))":"transparent",border:"none",borderBottom:d?"2px solid var(--accent-cyan, #00e5ff)":"2px solid transparent",color:d?"var(--accent-cyan, #00e5ff)":"var(--text-secondary, #8888aa)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-mono, monospace)",transition:"color 0.15s, background 0.15s"},children:p.label},p.id)})}),t.jsx("div",{role:"tabpanel",className:r,children:e.find(p=>p.id===s)?.content})]})}const C="_container_ip9o0_5",E="_filters_ip9o0_15",D="_filterGroup_ip9o0_22",k="_filterLabel_ip9o0_28",F="_filterSelect_ip9o0_35",$="_filterInput_ip9o0_36",P="_sortToggle_ip9o0_52",q="_results_ip9o0_70",L="_emptyState_ip9o0_78",M="_row_ip9o0_87",I="_rowTitle_ip9o0_105",R="_rowProject_ip9o0_113",A="_rowDate_ip9o0_121",H="_rowDuration_ip9o0_127",G="_rowStatus_ip9o0_133",U="_rowMeta_ip9o0_163",O="_deleteBtn_ip9o0_169",z="_pagination_ip9o0_187",K="_pageBtn_ip9o0_195",Q="_pageBtnActive_ip9o0_216",W="_pageEllipsis_ip9o0_222",Z="_detailOverlay_ip9o0_229",J="_detailCard_ip9o0_239",V="_detailTabs_ip9o0_253",X="_detailTabPanel_ip9o0_261",Y="_detailHeader_ip9o0_269",tt="_detailTitle_ip9o0_276",et="_detailMeta_ip9o0_282",at="_detailCloseBtn_ip9o0_289",st="_detailBody_ip9o0_302",ot="_convoEntry_ip9o0_307",it="_convoEntryHeader_ip9o0_315",nt="_copyBtn_ip9o0_322",rt="_convoPrompt_ip9o0_344",lt="_convoResponse_ip9o0_349",ct="_convoTime_ip9o0_354",dt="_convoText_ip9o0_360",pt="_activityEntry_ip9o0_367",ut="_activityTime_ip9o0_375",mt="_activityBadge_ip9o0_381",_t="_activityBadgeTool_ip9o0_390",vt="_activityBadgeEvent_ip9o0_395",ht="_activityDetail_ip9o0_400",a={container:C,filters:E,filterGroup:D,filterLabel:k,filterSelect:F,filterInput:$,sortToggle:P,results:q,emptyState:L,row:M,rowTitle:I,rowProject:R,rowDate:A,rowDuration:H,rowStatus:G,rowMeta:U,deleteBtn:O,pagination:z,pageBtn:K,pageBtnActive:Q,pageEllipsis:W,detailOverlay:Z,detailCard:J,detailTabs:V,detailTabPanel:X,detailHeader:Y,detailTitle:tt,detailMeta:et,detailCloseBtn:at,detailBody:st,convoEntry:ot,convoEntryHeader:it,copyBtn:nt,convoPrompt:rt,convoResponse:lt,convoTime:ct,convoText:dt,activityEntry:pt,activityTime:ut,activityBadge:mt,activityBadgeTool:_t,activityBadgeEvent:vt,activityDetail:ht},N=50;function f(e){if(e<1e3)return"<1s";const s=Math.floor(e/1e3);if(s<60)return`${s}s`;const l=Math.floor(s/60);return l<60?`${l}m ${s%60}s`:`${Math.floor(l/60)}h ${l%60}m`}function xt(e){return e?new Date(e).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}):"--"}function b(e){return new Date(e).toLocaleTimeString("en-US",{hour12:!1})}function yt(e){const s=new URLSearchParams;e.query&&s.set("query",e.query),e.project&&s.set("project",e.project),e.status==="archived"?s.set("archived","true"):e.status&&s.set("status",e.status),e.dateFrom&&s.set("dateFrom",String(new Date(e.dateFrom).getTime())),e.dateTo&&s.set("dateTo",String(new Date(e.dateTo+"T23:59:59").getTime()));const l={date:"started_at",duration:"last_activity_at",prompts:"started_at",tools:"started_at"};return s.set("sortBy",l[e.sortBy]||"started_at"),s.set("sortDir",e.sortDir),s.set("page",String(e.page)),s.set("pageSize",String(N)),s.toString()}function wt(){const e=w(),[s,l]=_.useState({query:"",project:"",status:"",dateFrom:"",dateTo:"",sortBy:"date",sortDir:"desc",page:1}),[c,r]=_.useState(null),{data:u}=g({queryKey:["db-projects"],queryFn:async()=>{const o=await j("/api/db/projects");if(!o.ok)throw new Error("Failed to load projects");return o.json()},staleTime:6e4}),{data:n,isLoading:m}=g({queryKey:["db-sessions",s],queryFn:async()=>{const o=await j(`/api/db/sessions?${yt(s)}`);if(!o.ok)throw new Error("Failed to load sessions");return o.json()}}),{data:p}=g({queryKey:["db-session-detail",c],queryFn:async()=>{if(!c)return null;const o=await j(`/api/db/sessions/${encodeURIComponent(c)}`);if(!o.ok)throw new Error("Failed to load session detail");return o.json()},enabled:!!c}),d=_.useCallback((o,y)=>{l(T=>({...T,[o]:y,page:o==="page"?y:1}))},[]),v=_.useCallback(async(o,y)=>{o.stopPropagation(),window.confirm("Delete this session from history? This cannot be undone.")&&(await j(`/api/db/sessions/${encodeURIComponent(y)}`,{method:"DELETE"}),e.invalidateQueries({queryKey:["db-sessions"]}))},[e]),x=n?.sessions??[],h=n?.total??0,i=Math.ceil(h/N);return t.jsxs("div",{className:a.container,"data-testid":"history-view",children:[t.jsxs("div",{className:a.filters,children:[t.jsx(S,{value:s.query,onChange:o=>d("query",o),placeholder:"Search prompts..."}),t.jsxs("div",{className:a.filterGroup,children:[t.jsx("span",{className:a.filterLabel,children:"Project"}),t.jsxs("select",{className:a.filterSelect,value:s.project,onChange:o=>d("project",o.target.value),children:[t.jsx("option",{value:"",children:"All"}),u?.map(o=>t.jsx("option",{value:o.project_path,children:o.project_name},o.project_path))]})]}),t.jsxs("div",{className:a.filterGroup,children:[t.jsx("span",{className:a.filterLabel,children:"Status"}),t.jsxs("select",{className:a.filterSelect,value:s.status,onChange:o=>d("status",o.target.value),children:[t.jsx("option",{value:"",children:"All"}),t.jsx("option",{value:"idle",children:"Idle"}),t.jsx("option",{value:"working",children:"Working"}),t.jsx("option",{value:"waiting",children:"Waiting"}),t.jsx("option",{value:"ended",children:"Ended"}),t.jsx("option",{value:"archived",children:"Archived"})]})]}),t.jsxs("div",{className:a.filterGroup,children:[t.jsx("span",{className:a.filterLabel,children:"From"}),t.jsx("input",{type:"date",className:a.filterInput,value:s.dateFrom,onChange:o=>d("dateFrom",o.target.value)})]}),t.jsxs("div",{className:a.filterGroup,children:[t.jsx("span",{className:a.filterLabel,children:"To"}),t.jsx("input",{type:"date",className:a.filterInput,value:s.dateTo,onChange:o=>d("dateTo",o.target.value)})]}),t.jsxs("div",{className:a.filterGroup,children:[t.jsx("span",{className:a.filterLabel,children:"Sort"}),t.jsxs("select",{className:a.filterSelect,value:s.sortBy,onChange:o=>d("sortBy",o.target.value),children:[t.jsx("option",{value:"date",children:"Date"}),t.jsx("option",{value:"duration",children:"Activity"}),t.jsx("option",{value:"prompts",children:"Prompts"}),t.jsx("option",{value:"tools",children:"Tools"})]}),t.jsx("button",{className:a.sortToggle,onClick:()=>d("sortDir",s.sortDir==="desc"?"asc":"desc"),children:s.sortDir.toUpperCase()})]})]}),t.jsxs("div",{className:a.results,children:[m&&t.jsx("div",{className:a.emptyState,children:"Loading..."}),!m&&x.length===0&&t.jsx("div",{className:a.emptyState,children:"No sessions found"}),x.map(o=>t.jsx(jt,{session:o,onClick:()=>r(o.id),onDelete:y=>v(y,o.id)},o.id))]}),i>1&&t.jsx(ft,{currentPage:s.page,totalPages:i,onPageChange:o=>d("page",o)}),c&&p&&t.jsx(bt,{detail:p,onClose:()=>r(null)})]})}function jt({session:e,onClick:s,onDelete:l}){const c=e.ended_at&&e.started_at?f(e.ended_at-e.started_at):e.started_at?f(Date.now()-e.started_at):"--";return t.jsxs("div",{className:a.row,onClick:s,children:[t.jsx("span",{className:a.rowTitle,children:e.title||e.project_name||e.id}),t.jsx("span",{className:a.rowProject,children:e.project_name}),t.jsx("span",{className:a.rowDate,children:xt(e.started_at)}),t.jsx("span",{className:a.rowDuration,children:c}),t.jsx("span",{className:a.rowStatus,"data-status":e.status,children:e.status.toUpperCase()}),t.jsxs("span",{className:a.rowMeta,children:[e.total_prompts," prompts"]}),t.jsxs("span",{className:a.rowMeta,children:[e.total_tool_calls," tools"]}),t.jsx("button",{className:a.deleteBtn,onClick:l,title:"Delete session","aria-label":"Delete session",children:"x"})]})}function ft({currentPage:e,totalPages:s,onPageChange:l}){const c=[];for(let n=1;n<=s;n++)(n===1||n===s||n>=e-2&&n<=e+2)&&c.push(n);const r=[];let u=0;for(const n of c)typeof n=="number"&&(u&&n-u>1&&r.push("ellipsis"),r.push(n),u=n);return t.jsxs("div",{className:a.pagination,children:[t.jsx("button",{className:a.pageBtn,disabled:e<=1,onClick:()=>l(e-1),children:"Prev"}),r.map((n,m)=>n==="ellipsis"?t.jsx("span",{className:a.pageEllipsis,children:"..."},`e-${m}`):t.jsx("button",{className:`${a.pageBtn} ${n===e?a.pageBtnActive:""}`,onClick:()=>l(n),children:n},n)),t.jsx("button",{className:a.pageBtn,disabled:e>=s,onClick:()=>l(e+1),children:"Next"})]})}function gt({text:e}){const[s,l]=_.useState(!1),c=r=>{r.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{l(!0),setTimeout(()=>l(!1),1500)})};return t.jsx("button",{className:a.copyBtn,onClick:c,"aria-label":"Copy to clipboard",title:"Copy to clipboard",children:s?"✓":"⎘"})}function bt({detail:e,onClose:s}){const[l,c]=_.useState("conversation"),{session:r,prompts:u,responses:n,tool_calls:m,events:p}=e,d=[...u.map(i=>({type:"prompt",timestamp:i.timestamp,text:i.text})),...n.map(i=>({type:"response",timestamp:i.timestamp,text:i.text_excerpt}))].sort((i,o)=>i.timestamp-o.timestamp),v=[...m.map(i=>({kind:"tool",label:i.tool_name,detail:i.tool_input_summary,timestamp:i.timestamp})),...p.map(i=>({kind:"event",label:i.event_type,detail:i.detail,timestamp:i.timestamp}))].sort((i,o)=>o.timestamp-i.timestamp),x=r.ended_at&&r.started_at?f(r.ended_at-r.started_at):r.started_at?f(Date.now()-r.started_at):"--",h=[{id:"conversation",label:`Conversation (${d.length})`,content:t.jsxs("div",{className:a.detailBody,children:[d.length===0&&t.jsx("div",{className:a.emptyState,children:"No conversation recorded"}),d.map((i,o)=>t.jsxs("div",{className:`${a.convoEntry} ${i.type==="prompt"?a.convoPrompt:a.convoResponse}`,children:[t.jsxs("div",{className:a.convoEntryHeader,children:[t.jsx("div",{className:a.convoTime,children:b(i.timestamp)}),t.jsx(gt,{text:i.text})]}),t.jsx("div",{className:a.convoText,children:i.text})]},o))]})},{id:"activity",label:`Activity (${v.length})`,content:t.jsxs("div",{className:a.detailBody,children:[v.length===0&&t.jsx("div",{className:a.emptyState,children:"No activity recorded"}),v.map((i,o)=>t.jsxs("div",{className:a.activityEntry,children:[t.jsx("span",{className:a.activityTime,children:b(i.timestamp)}),t.jsx("span",{className:`${a.activityBadge} ${i.kind==="tool"?a.activityBadgeTool:a.activityBadgeEvent}`,children:i.label}),t.jsx("span",{className:a.activityDetail,children:i.detail})]},o))]})}];return t.jsx("div",{className:a.detailOverlay,onClick:s,children:t.jsxs("div",{className:a.detailCard,onClick:i=>i.stopPropagation(),children:[t.jsxs("div",{className:a.detailHeader,children:[t.jsxs("div",{children:[t.jsx("h2",{className:a.detailTitle,children:r.project_name||r.id}),t.jsxs("div",{className:a.detailMeta,children:[t.jsxs("span",{children:["Status: ",r.status.toUpperCase()]}),t.jsxs("span",{children:["Model: ",r.model||"--"]}),t.jsxs("span",{children:["Duration: ",x]}),t.jsxs("span",{children:[r.total_prompts," prompts / ",r.total_tool_calls," tools"]})]})]}),t.jsx("button",{className:a.detailCloseBtn,onClick:s,"aria-label":"Close",children:"x"})]}),t.jsx(B,{tabs:h,activeTab:l,onTabChange:c,containerClassName:a.detailTabs,panelClassName:a.detailTabPanel})]})})}export{wt as default};
|
|
1
|
+
import{r as _,j as t,u as w,a as j}from"./index-Dgi6T0Nt.js";import{u as g}from"./useQuery-5GNo2Ewt.js";function S({value:e,onChange:s,placeholder:l="Search...",debounceMs:c=300,className:r,inputClassName:u}){const[n,m]=_.useState(e??""),p=_.useRef(null);_.useEffect(()=>{e!==void 0&&m(e)},[e]);const d=_.useCallback(h=>{p.current&&clearTimeout(p.current),p.current=setTimeout(()=>s(h),c)},[s,c]);_.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);function v(h){const i=h.target.value;m(i),d(i)}function x(){m(""),p.current&&clearTimeout(p.current),s("")}return t.jsxs("div",{className:r,style:{position:"relative",display:"flex",alignItems:"center"},children:[t.jsx("input",{type:"text",value:n,onChange:v,placeholder:l,className:u,style:u?void 0:{width:"100%",padding:"8px 32px 8px 12px",background:"var(--bg-primary, #0a0a1a)",border:"1px solid var(--border-subtle, rgba(255,255,255,0.06))",borderRadius:"6px",color:"var(--text-primary, #e0e0ff)",fontSize:"0.85rem",fontFamily:"var(--font-mono, monospace)",outline:"none"}}),n&&t.jsx("button",{onClick:x,"aria-label":"Clear search",style:{position:"absolute",right:"8px",background:"none",border:"none",color:"var(--text-secondary, #8888aa)",cursor:"pointer",fontSize:"0.9rem",padding:"2px 4px",lineHeight:1},children:"x"})]})}function B({tabs:e,activeTab:s,onTabChange:l,containerClassName:c,panelClassName:r,tabListClassName:u,tabClassName:n,activeTabClassName:m}){return t.jsxs("div",{className:c,children:[t.jsx("div",{role:"tablist",className:u,style:u?void 0:{display:"flex",gap:"2px",borderBottom:"1px solid var(--border-subtle, rgba(255,255,255,0.06))",marginBottom:"12px"},children:e.map(p=>{const d=s===p.id,v=[n,d&&m].filter(Boolean).join(" ");return t.jsx("button",{role:"tab","aria-selected":d,onClick:()=>l(p.id),className:v||void 0,style:v?void 0:{padding:"8px 16px",background:d?"var(--bg-accent, rgba(0,229,255,0.1))":"transparent",border:"none",borderBottom:d?"2px solid var(--accent-cyan, #00e5ff)":"2px solid transparent",color:d?"var(--accent-cyan, #00e5ff)":"var(--text-secondary, #8888aa)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-mono, monospace)",transition:"color 0.15s, background 0.15s"},children:p.label},p.id)})}),t.jsx("div",{role:"tabpanel",className:r,children:e.find(p=>p.id===s)?.content})]})}const C="_container_ip9o0_5",E="_filters_ip9o0_15",D="_filterGroup_ip9o0_22",k="_filterLabel_ip9o0_28",F="_filterSelect_ip9o0_35",$="_filterInput_ip9o0_36",P="_sortToggle_ip9o0_52",q="_results_ip9o0_70",L="_emptyState_ip9o0_78",M="_row_ip9o0_87",I="_rowTitle_ip9o0_105",R="_rowProject_ip9o0_113",A="_rowDate_ip9o0_121",H="_rowDuration_ip9o0_127",G="_rowStatus_ip9o0_133",U="_rowMeta_ip9o0_163",O="_deleteBtn_ip9o0_169",z="_pagination_ip9o0_187",K="_pageBtn_ip9o0_195",Q="_pageBtnActive_ip9o0_216",W="_pageEllipsis_ip9o0_222",Z="_detailOverlay_ip9o0_229",J="_detailCard_ip9o0_239",V="_detailTabs_ip9o0_253",X="_detailTabPanel_ip9o0_261",Y="_detailHeader_ip9o0_269",tt="_detailTitle_ip9o0_276",et="_detailMeta_ip9o0_282",at="_detailCloseBtn_ip9o0_289",st="_detailBody_ip9o0_302",ot="_convoEntry_ip9o0_307",it="_convoEntryHeader_ip9o0_315",nt="_copyBtn_ip9o0_322",rt="_convoPrompt_ip9o0_344",lt="_convoResponse_ip9o0_349",ct="_convoTime_ip9o0_354",dt="_convoText_ip9o0_360",pt="_activityEntry_ip9o0_367",ut="_activityTime_ip9o0_375",mt="_activityBadge_ip9o0_381",_t="_activityBadgeTool_ip9o0_390",vt="_activityBadgeEvent_ip9o0_395",ht="_activityDetail_ip9o0_400",a={container:C,filters:E,filterGroup:D,filterLabel:k,filterSelect:F,filterInput:$,sortToggle:P,results:q,emptyState:L,row:M,rowTitle:I,rowProject:R,rowDate:A,rowDuration:H,rowStatus:G,rowMeta:U,deleteBtn:O,pagination:z,pageBtn:K,pageBtnActive:Q,pageEllipsis:W,detailOverlay:Z,detailCard:J,detailTabs:V,detailTabPanel:X,detailHeader:Y,detailTitle:tt,detailMeta:et,detailCloseBtn:at,detailBody:st,convoEntry:ot,convoEntryHeader:it,copyBtn:nt,convoPrompt:rt,convoResponse:lt,convoTime:ct,convoText:dt,activityEntry:pt,activityTime:ut,activityBadge:mt,activityBadgeTool:_t,activityBadgeEvent:vt,activityDetail:ht},N=50;function f(e){if(e<1e3)return"<1s";const s=Math.floor(e/1e3);if(s<60)return`${s}s`;const l=Math.floor(s/60);return l<60?`${l}m ${s%60}s`:`${Math.floor(l/60)}h ${l%60}m`}function xt(e){return e?new Date(e).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}):"--"}function b(e){return new Date(e).toLocaleTimeString("en-US",{hour12:!1})}function yt(e){const s=new URLSearchParams;e.query&&s.set("query",e.query),e.project&&s.set("project",e.project),e.status==="archived"?s.set("archived","true"):e.status&&s.set("status",e.status),e.dateFrom&&s.set("dateFrom",String(new Date(e.dateFrom).getTime())),e.dateTo&&s.set("dateTo",String(new Date(e.dateTo+"T23:59:59").getTime()));const l={date:"started_at",duration:"last_activity_at",prompts:"started_at",tools:"started_at"};return s.set("sortBy",l[e.sortBy]||"started_at"),s.set("sortDir",e.sortDir),s.set("page",String(e.page)),s.set("pageSize",String(N)),s.toString()}function wt(){const e=w(),[s,l]=_.useState({query:"",project:"",status:"",dateFrom:"",dateTo:"",sortBy:"date",sortDir:"desc",page:1}),[c,r]=_.useState(null),{data:u}=g({queryKey:["db-projects"],queryFn:async()=>{const o=await j("/api/db/projects");if(!o.ok)throw new Error("Failed to load projects");return o.json()},staleTime:6e4}),{data:n,isLoading:m}=g({queryKey:["db-sessions",s],queryFn:async()=>{const o=await j(`/api/db/sessions?${yt(s)}`);if(!o.ok)throw new Error("Failed to load sessions");return o.json()}}),{data:p}=g({queryKey:["db-session-detail",c],queryFn:async()=>{if(!c)return null;const o=await j(`/api/db/sessions/${encodeURIComponent(c)}`);if(!o.ok)throw new Error("Failed to load session detail");return o.json()},enabled:!!c}),d=_.useCallback((o,y)=>{l(T=>({...T,[o]:y,page:o==="page"?y:1}))},[]),v=_.useCallback(async(o,y)=>{o.stopPropagation(),window.confirm("Delete this session from history? This cannot be undone.")&&(await j(`/api/db/sessions/${encodeURIComponent(y)}`,{method:"DELETE"}),e.invalidateQueries({queryKey:["db-sessions"]}))},[e]),x=n?.sessions??[],h=n?.total??0,i=Math.ceil(h/N);return t.jsxs("div",{className:a.container,"data-testid":"history-view",children:[t.jsxs("div",{className:a.filters,children:[t.jsx(S,{value:s.query,onChange:o=>d("query",o),placeholder:"Search prompts..."}),t.jsxs("div",{className:a.filterGroup,children:[t.jsx("span",{className:a.filterLabel,children:"Project"}),t.jsxs("select",{className:a.filterSelect,value:s.project,onChange:o=>d("project",o.target.value),children:[t.jsx("option",{value:"",children:"All"}),u?.map(o=>t.jsx("option",{value:o.project_path,children:o.project_name},o.project_path))]})]}),t.jsxs("div",{className:a.filterGroup,children:[t.jsx("span",{className:a.filterLabel,children:"Status"}),t.jsxs("select",{className:a.filterSelect,value:s.status,onChange:o=>d("status",o.target.value),children:[t.jsx("option",{value:"",children:"All"}),t.jsx("option",{value:"idle",children:"Idle"}),t.jsx("option",{value:"working",children:"Working"}),t.jsx("option",{value:"waiting",children:"Waiting"}),t.jsx("option",{value:"ended",children:"Ended"}),t.jsx("option",{value:"archived",children:"Archived"})]})]}),t.jsxs("div",{className:a.filterGroup,children:[t.jsx("span",{className:a.filterLabel,children:"From"}),t.jsx("input",{type:"date",className:a.filterInput,value:s.dateFrom,onChange:o=>d("dateFrom",o.target.value)})]}),t.jsxs("div",{className:a.filterGroup,children:[t.jsx("span",{className:a.filterLabel,children:"To"}),t.jsx("input",{type:"date",className:a.filterInput,value:s.dateTo,onChange:o=>d("dateTo",o.target.value)})]}),t.jsxs("div",{className:a.filterGroup,children:[t.jsx("span",{className:a.filterLabel,children:"Sort"}),t.jsxs("select",{className:a.filterSelect,value:s.sortBy,onChange:o=>d("sortBy",o.target.value),children:[t.jsx("option",{value:"date",children:"Date"}),t.jsx("option",{value:"duration",children:"Activity"}),t.jsx("option",{value:"prompts",children:"Prompts"}),t.jsx("option",{value:"tools",children:"Tools"})]}),t.jsx("button",{className:a.sortToggle,onClick:()=>d("sortDir",s.sortDir==="desc"?"asc":"desc"),children:s.sortDir.toUpperCase()})]})]}),t.jsxs("div",{className:a.results,children:[m&&t.jsx("div",{className:a.emptyState,children:"Loading..."}),!m&&x.length===0&&t.jsx("div",{className:a.emptyState,children:"No sessions found"}),x.map(o=>t.jsx(jt,{session:o,onClick:()=>r(o.id),onDelete:y=>v(y,o.id)},o.id))]}),i>1&&t.jsx(ft,{currentPage:s.page,totalPages:i,onPageChange:o=>d("page",o)}),c&&p&&t.jsx(bt,{detail:p,onClose:()=>r(null)})]})}function jt({session:e,onClick:s,onDelete:l}){const c=e.ended_at&&e.started_at?f(e.ended_at-e.started_at):e.started_at?f(Date.now()-e.started_at):"--";return t.jsxs("div",{className:a.row,onClick:s,children:[t.jsx("span",{className:a.rowTitle,children:e.title||e.project_name||e.id}),t.jsx("span",{className:a.rowProject,children:e.project_name}),t.jsx("span",{className:a.rowDate,children:xt(e.started_at)}),t.jsx("span",{className:a.rowDuration,children:c}),t.jsx("span",{className:a.rowStatus,"data-status":e.status,children:e.status.toUpperCase()}),t.jsxs("span",{className:a.rowMeta,children:[e.total_prompts," prompts"]}),t.jsxs("span",{className:a.rowMeta,children:[e.total_tool_calls," tools"]}),t.jsx("button",{className:a.deleteBtn,onClick:l,title:"Delete session","aria-label":"Delete session",children:"x"})]})}function ft({currentPage:e,totalPages:s,onPageChange:l}){const c=[];for(let n=1;n<=s;n++)(n===1||n===s||n>=e-2&&n<=e+2)&&c.push(n);const r=[];let u=0;for(const n of c)typeof n=="number"&&(u&&n-u>1&&r.push("ellipsis"),r.push(n),u=n);return t.jsxs("div",{className:a.pagination,children:[t.jsx("button",{className:a.pageBtn,disabled:e<=1,onClick:()=>l(e-1),children:"Prev"}),r.map((n,m)=>n==="ellipsis"?t.jsx("span",{className:a.pageEllipsis,children:"..."},`e-${m}`):t.jsx("button",{className:`${a.pageBtn} ${n===e?a.pageBtnActive:""}`,onClick:()=>l(n),children:n},n)),t.jsx("button",{className:a.pageBtn,disabled:e>=s,onClick:()=>l(e+1),children:"Next"})]})}function gt({text:e}){const[s,l]=_.useState(!1),c=r=>{r.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{l(!0),setTimeout(()=>l(!1),1500)})};return t.jsx("button",{className:a.copyBtn,onClick:c,"aria-label":"Copy to clipboard",title:"Copy to clipboard",children:s?"✓":"⎘"})}function bt({detail:e,onClose:s}){const[l,c]=_.useState("conversation"),{session:r,prompts:u,responses:n,tool_calls:m,events:p}=e,d=[...u.map(i=>({type:"prompt",timestamp:i.timestamp,text:i.text})),...n.map(i=>({type:"response",timestamp:i.timestamp,text:i.text_excerpt}))].sort((i,o)=>i.timestamp-o.timestamp),v=[...m.map(i=>({kind:"tool",label:i.tool_name,detail:i.tool_input_summary,timestamp:i.timestamp})),...p.map(i=>({kind:"event",label:i.event_type,detail:i.detail,timestamp:i.timestamp}))].sort((i,o)=>o.timestamp-i.timestamp),x=r.ended_at&&r.started_at?f(r.ended_at-r.started_at):r.started_at?f(Date.now()-r.started_at):"--",h=[{id:"conversation",label:`Conversation (${d.length})`,content:t.jsxs("div",{className:a.detailBody,children:[d.length===0&&t.jsx("div",{className:a.emptyState,children:"No conversation recorded"}),d.map((i,o)=>t.jsxs("div",{className:`${a.convoEntry} ${i.type==="prompt"?a.convoPrompt:a.convoResponse}`,children:[t.jsxs("div",{className:a.convoEntryHeader,children:[t.jsx("div",{className:a.convoTime,children:b(i.timestamp)}),t.jsx(gt,{text:i.text})]}),t.jsx("div",{className:a.convoText,children:i.text})]},o))]})},{id:"activity",label:`Activity (${v.length})`,content:t.jsxs("div",{className:a.detailBody,children:[v.length===0&&t.jsx("div",{className:a.emptyState,children:"No activity recorded"}),v.map((i,o)=>t.jsxs("div",{className:a.activityEntry,children:[t.jsx("span",{className:a.activityTime,children:b(i.timestamp)}),t.jsx("span",{className:`${a.activityBadge} ${i.kind==="tool"?a.activityBadgeTool:a.activityBadgeEvent}`,children:i.label}),t.jsx("span",{className:a.activityDetail,children:i.detail})]},o))]})}];return t.jsx("div",{className:a.detailOverlay,onClick:s,children:t.jsxs("div",{className:a.detailCard,onClick:i=>i.stopPropagation(),children:[t.jsxs("div",{className:a.detailHeader,children:[t.jsxs("div",{children:[t.jsx("h2",{className:a.detailTitle,children:r.project_name||r.id}),t.jsxs("div",{className:a.detailMeta,children:[t.jsxs("span",{children:["Status: ",r.status.toUpperCase()]}),t.jsxs("span",{children:["Model: ",r.model||"--"]}),t.jsxs("span",{children:["Duration: ",x]}),t.jsxs("span",{children:[r.total_prompts," prompts / ",r.total_tool_calls," tools"]})]})]}),t.jsx("button",{className:a.detailCloseBtn,onClick:s,"aria-label":"Close",children:"x"})]}),t.jsx(B,{tabs:h,activeTab:l,onTabChange:c,containerClassName:a.detailTabs,panelClassName:a.detailTabPanel})]})})}export{wt as default};
|
package/dist/client/assets/{ProjectBrowserView-DYnCNpma.js → ProjectBrowserView-CTN5CmBa.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as o,j as s,A as e,P as r}from"./index-
|
|
1
|
+
import{z as o,j as s,A as e,P as r}from"./index-Dgi6T0Nt.js";function l(){const[t]=o(),a=t.get("path");if(!a)return s.jsx("div",{className:e.standalone,children:s.jsxs("div",{className:e.standaloneEmpty,children:["No project path specified. Use ",s.jsx("code",{children:"?path=/your/project"})," to open a project."]})});const n=a.split("/").filter(Boolean).pop()||a;return s.jsxs("div",{className:e.standalone,children:[s.jsxs("div",{className:e.standaloneHeader,children:[s.jsx("span",{className:e.standaloneTitle,children:n}),s.jsx("span",{className:e.standalonePath,children:a})]}),s.jsx("div",{className:e.standaloneContent,children:s.jsx(r,{projectPath:a})})]})}export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as x,w as I,r as u,x as S,j as e,y as a}from"./index-
|
|
1
|
+
import{v as x,w as I,r as u,x as S,j as e,y as a}from"./index-Dgi6T0Nt.js";const D="_controls_uyjqd_6",$="_title_uyjqd_11",B="_stats_uyjqd_13",E="_statsSep_uyjqd_17",T="_content_uyjqd_19",M="_viewGroup_uyjqd_21",H="_groupHeader_uyjqd_22",P="_sessionName_uyjqd_23",R="_label_uyjqd_24",z="_sid_uyjqd_25",G="_itemCount_uyjqd_26",U="_table_uyjqd_28",K="_pos_uyjqd_34",L="_text_uyjqd_36",Q="_date_uyjqd_37",F="_deleteBtn_uyjqd_38",s={controls:D,title:$,stats:B,statsSep:E,content:T,viewGroup:M,groupHeader:H,sessionName:P,label:R,sid:z,itemCount:G,table:U,pos:K,text:L,date:Q,deleteBtn:F};let O=Date.now();function V(){return O++}function W(o){return new Date(o).toLocaleTimeString("en-US",{hour12:!1})}function J(){const o=x(t=>t.queues),v=x(t=>t.add),w=x(t=>t.remove),y=x(t=>t.moveToSession),h=I(t=>t.sessions),[r,k]=u.useState(""),[p,b]=u.useState(""),[d,g]=u.useState(null),m=Array.from(new Set([...o.keys(),...h.keys()])).filter(t=>{const n=o.get(t);return n&&n.length>0}),f=Array.from(o.values()).reduce((t,n)=>t+n.length,0),q=u.useCallback(()=>{const t=p.trim();if(!t||!r)return;const n=o.get(r)??[],i={id:V(),sessionId:r,text:t,position:n.length,createdAt:Date.now()};v(r,i),b(""),S("Prompt added to queue","info",2e3)},[p,r,o,v]),A=u.useCallback(t=>{d&&(y([d.itemId],d.fromSessionId,t),g(null),S("Prompt moved","info",2e3))},[d,y]),N=Array.from(h.entries());return e.jsxs("div",{"data-testid":"queue-view",style:{height:"100%",overflow:"auto"},children:[e.jsx("div",{className:s.controls,children:e.jsx("h2",{className:s.title,children:"PROMPT QUEUE"})}),e.jsxs("div",{className:s.stats,children:[e.jsxs("span",{children:[f," queued prompt",f!==1?"s":""]}),e.jsx("span",{className:s.statsSep,children:"|"}),e.jsxs("span",{children:[m.length," session",m.length!==1?"s":""]})]}),e.jsx("div",{style:{padding:"0 24px 16px"},children:e.jsxs("div",{className:a.queueCompose,children:[e.jsxs("select",{value:r,onChange:t=>k(t.target.value),style:{background:"rgba(255,255,255,0.04)",border:"1px solid var(--border-subtle, rgba(255,255,255,0.08))",borderRadius:"4px",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:"11px",padding:"6px 8px",minWidth:"180px"},children:[e.jsx("option",{value:"",children:"Select session..."}),N.map(([t,n])=>e.jsxs("option",{value:t,children:[n.projectName||t.slice(0,8),n.title?` — ${n.title}`:""]},t))]}),e.jsx("textarea",{className:a.queueTextarea,placeholder:"Add a prompt to the queue...",rows:2,value:p,onChange:t=>b(t.target.value),onKeyDown:t=>{t.key==="Enter"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),q())}}),e.jsx("button",{className:`${a.toolbarBtn} ${a.queueAddBtn}`,onClick:q,disabled:!p.trim()||!r,children:"ADD"})]})}),e.jsx("div",{className:s.content,children:m.length===0?e.jsx("div",{style:{textAlign:"center",padding:"40px 0",color:"var(--text-dim)",fontSize:"13px"},children:"No prompts in queue. Add prompts from session detail panels or above."}):m.map(t=>{const n=o.get(t)??[],i=h.get(t);return e.jsxs("div",{className:s.viewGroup,children:[e.jsxs("div",{className:s.groupHeader,children:[e.jsx("span",{className:s.sessionName,children:i?.projectName||"Unknown"}),i?.label&&e.jsx("span",{className:s.label,children:i.label}),e.jsx("span",{className:s.sid,children:t.slice(0,8)}),e.jsxs("span",{className:s.itemCount,children:[n.length," item",n.length!==1?"s":""]})]}),e.jsxs("table",{className:s.table,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{className:s.pos,children:"#"}),e.jsx("th",{children:"Prompt"}),e.jsx("th",{children:"Added"}),e.jsx("th",{children:"Actions"})]})}),e.jsx("tbody",{children:n.map((l,C)=>e.jsxs("tr",{children:[e.jsx("td",{className:s.pos,children:C+1}),e.jsx("td",{className:s.text,children:l.text}),e.jsx("td",{className:s.date,children:W(l.createdAt)}),e.jsxs("td",{children:[e.jsxs("div",{style:{display:"flex",gap:"4px"},children:[e.jsx("button",{className:`${a.queueActionBtn} ${a.queueMove}`,onClick:()=>g(d?.itemId===l.id?null:{itemId:l.id,fromSessionId:t}),children:"MOVE"}),e.jsx("button",{className:`${a.queueActionBtn} ${a.queueDelete} ${s.deleteBtn}`,onClick:()=>w(t,l.id),children:"DEL"})]}),d?.itemId===l.id&&e.jsx("div",{style:{position:"absolute",zIndex:10,background:"var(--surface-card, #12122a)",border:"1px solid var(--border-subtle, rgba(255,255,255,0.08))",borderRadius:"4px",padding:"4px",maxHeight:"160px",overflowY:"auto",minWidth:"180px"},children:N.filter(([c])=>c!==t).map(([c,j])=>e.jsxs("button",{onClick:()=>A(c),style:{display:"block",width:"100%",padding:"4px 8px",background:"transparent",border:"none",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:"10px",textAlign:"left",cursor:"pointer",borderRadius:"3px"},onMouseEnter:_=>{_.target.style.background="rgba(0,229,255,0.1)"},onMouseLeave:_=>{_.target.style.background="transparent"},children:[j.projectName||c.slice(0,8),j.title?` — ${j.title}`:""]},c))})]})]},l.id))})]})]},t)})})]})}export{J as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as l,b as A,j as c}from"./index-
|
|
1
|
+
import{r as l,b as A,j as c}from"./index-Dgi6T0Nt.js";import{u as O}from"./useQuery-5GNo2Ewt.js";import{r as T,c as _,a as L,S as M,b as F,u as I,s as B,d as W,e as K,f as q,g as H,h as R,i as C,j as $,k as D,l as V,m as x,R as U,B as J,C as G,X,Y,T as Q,n as w}from"./Charts.module-CQf7HQCb.js";import"./with-selector-DTnjuyBc.js";function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j.apply(null,arguments)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(n){ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ee(e,t,r){return(t=te(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function te(e){var t=re(e,"string");return typeof t=="symbol"?t:t+""}function re(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p=32,ne={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function ae(e){var{data:t,iconType:r,inactiveColor:n}=e,a=p/2,o=p/6,f=p/3,g=t.inactive?n:t.color,u=r??t.type;if(u==="none")return null;if(u==="plainline"){var d;return l.createElement("line",{strokeWidth:4,fill:"none",stroke:g,strokeDasharray:(d=t.payload)===null||d===void 0?void 0:d.strokeDasharray,x1:0,y1:a,x2:p,y2:a,className:"recharts-legend-icon"})}if(u==="line")return l.createElement("path",{strokeWidth:4,fill:"none",stroke:g,d:"M0,".concat(a,"h").concat(f,`
|
|
2
2
|
A`).concat(o,",").concat(o,",0,1,1,").concat(2*f,",").concat(a,`
|
|
3
3
|
H`).concat(p,"M").concat(2*f,",").concat(a,`
|
|
4
4
|
A`).concat(o,",").concat(o,",0,1,1,").concat(f,",").concat(a),className:"recharts-legend-icon"});if(u==="rect")return l.createElement("path",{stroke:"none",fill:g,d:"M0,".concat(p/8,"h").concat(p,"v").concat(p*3/4,"h").concat(-p,"z"),className:"recharts-legend-icon"});if(l.isValidElement(t.legendIcon)){var s=Z({},t);return delete s.legendIcon,l.cloneElement(t.legendIcon,s)}return l.createElement(F,{fill:g,cx:a,cy:a,size:p,sizeType:"diameter",type:u})}function ie(e){var{payload:t,iconSize:r,layout:n,formatter:a,inactiveColor:o,iconType:f}=e,g={x:0,y:0,width:p,height:p},u={display:n==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((s,m)=>{var h=s.formatter||a,i=_({"recharts-legend-item":!0,["legend-item-".concat(m)]:!0,inactive:s.inactive});if(s.type==="none")return null;var v=s.inactive?o:s.color,b=h?h(s.value,s,m):s.value;return l.createElement("li",j({className:i,style:u,key:"legend-item-".concat(m)},L(e,s,m)),l.createElement(M,{width:r,height:r,viewBox:g,style:d,"aria-label":"".concat(b," legend icon")},l.createElement(ae,{data:s,iconType:f,inactiveColor:o})),l.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},b))})}var oe=e=>{var t=T(e,ne),{payload:r,layout:n,align:a}=t;if(!r||!r.length)return null;var o={padding:0,margin:0,textAlign:n==="horizontal"?a:"left"};return l.createElement("ul",{className:"recharts-default-legend",style:o},l.createElement(ie,j({},t,{payload:r})))};function le(){return I(B)}var ce=["contextPayload"];function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P.apply(null,arguments)}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k(Object(r),!0).forEach(function(n){se(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function se(e,t,r){return(t=ue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ue(e){var t=de(e,"string");return typeof t=="symbol"?t:t+""}function de(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fe(e,t){if(e==null)return{};var r,n,a=ge(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function ge(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function he(e){return e.value}function pe(e){var{contextPayload:t}=e,r=fe(e,ce),n=V(t,e.payloadUniqBy,he),a=y(y({},r),{},{payload:n});return l.isValidElement(e.content)?l.cloneElement(e.content,a):typeof e.content=="function"?l.createElement(e.content,a):l.createElement(oe,a)}function me(e,t,r,n,a,o){var{layout:f,align:g,verticalAlign:u}=t,d,s;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(g==="center"&&f==="vertical"?d={left:((n||0)-o.width)/2}:d=g==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(u==="middle"?s={top:((a||0)-o.height)/2}:s=u==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),y(y({},d),s)}function ve(e){var t=C();return l.useEffect(()=>{t($(e))},[t,e]),null}function ye(e){var t=C();return l.useEffect(()=>(t(D(e)),()=>{t(D({width:0,height:0}))}),[t,e]),null}function be(e,t,r,n){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:r||n}:null}var je={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function z(e){var t=T(e,je),r=le(),n=W(),a=K(),{width:o,height:f,wrapperStyle:g,portal:u}=t,[d,s]=q([r]),m=H(),h=R();if(m==null||h==null)return null;var i=m-(a?.left||0)-(a?.right||0),v=be(t.layout,f,o,i),b=u?g:y(y({position:"absolute",width:v?.width||o||"auto",height:v?.height||f||"auto"},me(g,t,a,m,h,d)),g),S=u??n;if(S==null||r==null)return null;var N=l.createElement("div",{className:"recharts-legend-wrapper",style:b,ref:s},l.createElement(ve,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!u&&l.createElement(ye,{width:d.width,height:d.height}),l.createElement(pe,P({},t,v,{margin:a,chartWidth:m,chartHeight:h,contextPayload:r})));return A.createPortal(N,S)}z.displayName="Legend";function xe(){return new Date(Date.now()-2592e6).toISOString().split("T")[0]}function we(){return new Date().toISOString().split("T")[0]}function Pe(e,t){const r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];if(t==="week"){const a=e.match(/^(\d{4})-W(\d{1,2})$/);if(a){const o=parseInt(a[1],10),f=parseInt(a[2],10),g=new Date(o,0,1),u=(f-1)*7-g.getDay()+1,d=new Date(o,0,1+u);return r[d.getMonth()]+" "+d.getDate()}}if(t==="hour"){const a=e.match(/^(\d{4}-\d{2}-\d{2})\s+(\d{2}):(\d{2})$/);if(a){const o=new Date(a[1]+"T"+a[2]+":"+a[3]+":00");if(!isNaN(o.getTime()))return r[o.getMonth()]+" "+o.getDate()+" "+o.getHours().toString().padStart(2,"0")+":00"}}const n=new Date(e+(e.includes("T")?"":"T00:00:00"));return isNaN(n.getTime())?e:r[n.getMonth()]+" "+n.getDate()}function ke(){const[e,t]=l.useState("day"),[r,n]=l.useState(""),[a,o]=l.useState(xe),[f,g]=l.useState(we),{data:u}=O({queryKey:["timeline-projects"],queryFn:async()=>{const i=await fetch("/api/db/projects");return i.ok?i.json():[]}}),d=l.useMemo(()=>{const i=new URLSearchParams;return i.set("granularity",e),r&&i.set("project",r),a&&i.set("dateFrom",String(new Date(a).getTime())),f&&i.set("dateTo",String(new Date(f+"T23:59:59").getTime())),i.toString()},[e,r,a,f]),{data:s,isLoading:m}=O({queryKey:["timeline",d],queryFn:async()=>{const i=await fetch(`/api/db/analytics/timeline?${d}`);return i.ok?i.json():{buckets:[]}}}),h=l.useMemo(()=>s?.buckets?s.buckets.map(i=>({...i,label:Pe(i.period,e)})):[],[s,e]);return c.jsxs("div",{className:x.timelineView,"data-testid":"timeline-view",children:[c.jsxs("div",{className:x.timelineControls,children:[c.jsxs("select",{value:e,onChange:i=>t(i.target.value),children:[c.jsx("option",{value:"hour",children:"Hourly"}),c.jsx("option",{value:"day",children:"Daily"}),c.jsx("option",{value:"week",children:"Weekly"})]}),c.jsxs("select",{value:r,onChange:i=>n(i.target.value),children:[c.jsx("option",{value:"",children:"All Projects"}),u?.map(i=>c.jsx("option",{value:i.project_path,children:i.project_name},i.project_path))]}),c.jsx("input",{type:"date",value:a,onChange:i=>o(i.target.value)}),c.jsx("input",{type:"date",value:f,onChange:i=>g(i.target.value)})]}),c.jsx("div",{className:x.timelineChart,children:m?c.jsx("div",{style:{color:"var(--text-dim)",padding:"40px",textAlign:"center"},children:"Loading..."}):h.length===0?c.jsx("div",{style:{color:"var(--text-dim)",padding:"40px",textAlign:"center"},children:"No data for this period"}):c.jsx(U,{width:"100%",height:350,children:c.jsxs(J,{data:h,margin:{top:10,right:10,left:0,bottom:20},children:[c.jsx(G,{strokeDasharray:"3 3",stroke:"rgba(255,255,255,0.06)"}),c.jsx(X,{dataKey:"label",stroke:"#8892b0",fontSize:9,interval:h.length>15?Math.ceil(h.length/15):0,angle:h.length>10||e==="hour"?-40:0,textAnchor:h.length>10||e==="hour"?"end":"middle",height:e==="hour"?60:40}),c.jsx(Y,{stroke:"#8892b0",fontSize:10}),c.jsx(Q,{contentStyle:{background:"var(--bg-card, #12122a)",border:"1px solid var(--accent-cyan, #00e5ff)",borderRadius:"4px",fontSize:"11px",color:"var(--text-primary, #e0e0ff)"}}),c.jsx(z,{wrapperStyle:{fontSize:"10px",color:"#8892b0"}}),c.jsx(w,{dataKey:"session_count",name:"Sessions",fill:"#00e5ff",opacity:.85,radius:[2,2,0,0]}),c.jsx(w,{dataKey:"prompt_count",name:"Prompts",fill:"#00ff88",opacity:.85,radius:[2,2,0,0]}),c.jsx(w,{dataKey:"tool_call_count",name:"Tool Calls",fill:"#ff9800",opacity:.85,radius:[2,2,0,0]})]})})})]})}export{ke as default};
|