PageSourceSearch

https://app.agenticdeploy.ai/_next/static/chunks/3951.08a6b8829b753934.js

js agenticdeploy.ai collected 2026-10-05 15:18:09 UTC 3,665 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f9ad0849-d86e-4c78-941a-e8cc5f3025c2",e._sentryDebugIdIdentifier="sentry-dbid-f9ad0849-d86e-4c78-941a-e8cc5f3025c2")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3951],{3951:(e,t,n)=>{n.r(t),n.d(t,{AgentLeaderboard:()=>b});var s=n(95155),r=n(90751),d=n(98128),a=n(64471),o=n(47734),l=n(73697),i=n(33420),c=n(14989),u=n(69386),x=n(83209),m=n(68122);let f=["#3B82F6","#10B981","#F59E0B","#8B5CF6","#F43F5E","#06B6D4","#EC4899","#84CC16"];function h(e){let t=Number(e);return Number.isFinite(t)?t:0}function g(e){let t=h(e);return t>=1e6?"".concat((t/1e6).toFixed(1),"M"):t>=1e3?"".concat((t/1e3).toFixed(1),"K"):String(Math.round(t))}function p(e){var t,n,r;let{active:d,payload:a}=e;if(!d||!a||0===a.length)return null;let o=null==(t=a[0])?void 0:t.payload;return o?(0,s.jsxs)("div",{className:"rounded-lg border border-border bg-popover p-3 shadow-md text-xs",children:[(0,s.jsx)("p",{className:"font-semibold text-foreground mb-1",children:null!=(n=o.agentName)?n:"Unknown"}),(0,s.jsxs)("div",{className:"space-y-0.5 text-muted-foreground",children:[(0,s.jsxs)("p",{children:["Spend:"," ",(0,s.jsxs)("span",{className:"text-foreground font-medium",children:["$",h(o.totalSpend).toFixed(2)]})]}),(0,s.jsxs)("p",{children:["Tokens:"," ",(0,s.jsx)("span",{className:"text-foreground font-medium",children:g(o.totalTokens)})]}),(0,s.jsxs)("p",{children:["Messages:"," ",(0,s.jsx)("span",{className:"text-foreground font-medium",children:h(o.messageCount)})]}),(0,s.jsxs)("p",{children:["Top model:"," ",(0,s.jsx)("span",{className:"text-foreground font-medium",children:null!=(r=o.topModel)?r:"N/A"})]})]})]}):null}function b(e){let{data:t,loading:n,onAgentClick:b}=e,j=[...Array.isArray(t)?t:[]].sort((e,t)=>h(t.totalSpend)-h(e.totalSpend)),y=j.reduce((e,t)=>e+h(t.totalTokens),0);return(0,s.jsxs)(x.Zp,{className:"rounded-xl border border-border bg-card shadow-sm",children:[(0,s.jsxs)(x.aR,{className:"pb-2",children:[(0,s.jsx)(x.ZB,{className:"text-base font-semibold",children:"Agent Leaderboard"}),(0,s.jsx)(x.BT,{className:"text-xs",children:"Spend per agent for this period"})]}),(0,s.jsx)(x.Wu,{children:n||!t?(0,s.jsx)(m.E,{className:"h-[280px] w-full rounded-lg"}):0===j.length?(0,s.jsx)("div",{className:"flex items-center justify-center h-[280px] text-sm text-muted-foreground",children:"No agent usage data"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.u,{width:"100%",height:Math.max(200,44*j.length),children:(0,s.jsxs)(d.E,{data:j,layout:"vertical",margin:{top:0,right:40,left:0,bottom:0},children:[(0,s.jsx)(a.d,{strokeDasharray:"3 3",className:"stroke-border",horizontal:!1}),(0,s.jsx)(o.W,{type:"number",tickFormatter:e=>"$".concat(h(e)),tick:{fontSize:11},className:"text-muted-foreground",axisLine:!1,tickLine:!1}),(0,s.jsx)(l.h,{type:"category",dataKey:"agentName",tick:{fontSize:11},className:"text-muted-foreground",width:100,axisLine:!1,tickLine:!1}),(0,s.jsx)(i.m,{content:(0,s.jsx)(p,{}),cursor:{fill:"hsl(var(--muted))",opacity:.5}}),(0,s.jsx)(c.yP,{dataKey:"totalSpend",radius:[0,4,4,0],cursor:"pointer",onClick:(e,t)=>{if("number"!=typeof t||t<0||t>=j.length)return;let n=j[t];(null==n?void 0:n.agentId)&&b(n.agentId)},children:j.map((e,t)=>(0,s.jsx)(u.f,{fill:f[t%f.length]},t))})]})}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground mt-2",children:[j.length," agent",1!==j.length?"s":"",","," ",g(y)," tokens total"]})]})})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.