@tickernelz/paperclip-pro-ui 2026.1007.3 → 2026.1008.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AgentAvatar-CJxUMdmk.js → AgentAvatar-SJDPbZfK.js} +1 -1
- package/dist/assets/{AgentIdentity-D9ti_IEi.js → AgentIdentity-BW3dAZQD.js} +1 -1
- package/dist/assets/{Agents.production-DonAKR8K.js → Agents.production-BG82xP3I.js} +2 -2
- package/dist/assets/{CompanyActivity.production-DSbPGLZv.js → CompanyActivity.production-woUD9oNT.js} +1 -1
- package/dist/assets/{CompanyExport-D6Hn27B_.js → CompanyExport-B7LRHKGs.js} +4 -4
- package/dist/assets/{CompanySkills.production-NS3jGhDW.js → CompanySkills.production-DObYIR8Z.js} +2 -2
- package/dist/assets/Costs.production--VN7RT_9.js +1 -0
- package/dist/assets/{EmptyState-BZtI8X0G.js → EmptyState-Cpsu2EbU.js} +1 -1
- package/dist/assets/{MarkdownBody-C_h6YRQp.js → MarkdownBody-DRqRjF-_.js} +8 -8
- package/dist/assets/{MarkdownEditor-BOTosEGR.js → MarkdownEditor-DqSHOPon.js} +2 -2
- package/dist/assets/{OrgChart.production-DieTRMth.js → OrgChart.production-DIn23yrs.js} +1 -1
- package/dist/assets/{PageSkeleton-Cy0AuFsD.js → PageSkeleton-Boeat-pa.js} +1 -1
- package/dist/assets/{RoutineDetail.production-Qq6ShQm5.js → RoutineDetail.production-B0SwbVFq.js} +1 -1
- package/dist/assets/{RoutineRunVariablesDialog-DCnWm09I.js → RoutineRunVariablesDialog-BHfjTN1x.js} +2 -2
- package/dist/assets/{Routines.production-BxvC3L7v.js → Routines.production-CG5ixad2.js} +1 -1
- package/dist/assets/{SidebarContext-zupbpsOa.js → SidebarContext--Pt-RovF.js} +1 -1
- package/dist/assets/{StatusIcon-mIm27nQw.js → StatusIcon-CMOBM0cz.js} +1 -1
- package/dist/assets/{agent-avatar-url-BcyFoVtv.js → agent-avatar-url-COB3FyNh.js} +10 -10
- package/dist/assets/{agents-DQx-dvSi.js → agents-Bce8O2iW.js} +1 -1
- package/dist/assets/{badge-BqqBOTVc.js → badge-CUxm7Dtn.js} +1 -1
- package/dist/assets/{bot-DKL-W8OH.js → bot-Dsp1n_bc.js} +1 -1
- package/dist/assets/{boxes-tcjFwFpA.js → boxes-B17SB309.js} +3 -3
- package/dist/assets/{button-BY21O8GT.js → button-B-wjguAV.js} +1 -1
- package/dist/assets/{card-De_lOmuE.js → card-DBEYqFNF.js} +1 -1
- package/dist/assets/{check-CnODEUG9.js → check-BMyl919B.js} +1 -1
- package/dist/assets/{checkbox-I5XQmb-K.js → checkbox-iAfQowi2.js} +1 -1
- package/dist/assets/{chevron-down-DFUcku8q.js → chevron-down-CUaHIP4O.js} +1 -1
- package/dist/assets/{chevron-right-B6d9r4Ro.js → chevron-right-Dz0Hakt6.js} +1 -1
- package/dist/assets/{clipboard-DHhOZMRn.js → clipboard-B0eiwEg1.js} +1 -1
- package/dist/assets/{company-members-Dzwzy-as.js → company-members-2JwSIlm7.js} +1 -1
- package/dist/assets/{definition-CK1a00WC.js → definition-BCKL7Z75.js} +1 -1
- package/dist/assets/{dist-BCtf-vM2.js → dist-CKsixJWn.js} +1 -1
- package/dist/assets/{dist-C42YHTVB.js → dist-L4Fio05O.js} +1 -1
- package/dist/assets/{environments-B7NZX_ky.js → environments-BAip07cp.js} +1 -1
- package/dist/assets/{external-link-C19HtmzW.js → external-link-C16DZ_8E.js} +1 -1
- package/dist/assets/{file-text-CeE8_Vjy.js → file-text-CGuZU4dO.js} +1 -1
- package/dist/assets/{health-CQndBw_N.js → health-Boo6Fbfs.js} +1 -1
- package/dist/assets/{heartbeats-DF-m9cYQ.js → heartbeats-C0D9bcc5.js} +1 -1
- package/dist/assets/{index-D6Rnj-qc.js → index-DlP9bxBd.js} +156 -156
- package/dist/assets/{input-B204XBDT.js → input-D907RXni.js} +1 -1
- package/dist/assets/{label-CZQ8NWbL.js → label-DghWCun3.js} +1 -1
- package/dist/assets/{loader-circle-Bq0tfpSr.js → loader-circle-BqmoALPC.js} +1 -1
- package/dist/assets/{mention-chips-D_n_qKFh.js → mention-chips-gWjq0PC7.js} +1 -1
- package/dist/assets/{octagon-alert-D4baqyHT.js → octagon-alert-CnEZnFXW.js} +1 -1
- package/dist/assets/{rotate-ccw-LNlo9y5X.js → rotate-ccw-lfP1J5rp.js} +1 -1
- package/dist/assets/{router-DesWEj2C.js → router-BOhyEQ-H.js} +3 -3
- package/dist/assets/{save-DDenfr8W.js → save-COX6cDHs.js} +1 -1
- package/dist/assets/{select-CTeNTKSP.js → select-BA5jC_nQ.js} +1 -1
- package/dist/assets/{sheet-DaK7uiF0.js → sheet-BByJ5Lv5.js} +1 -1
- package/dist/assets/skeleton-D17djeDO.js +1 -0
- package/dist/assets/{tabs-De8GZtQI.js → tabs-DIoJxDqx.js} +1 -1
- package/dist/assets/{triangle-alert-6xzP6adj.js → triangle-alert-CDiu0Pgq.js} +1 -1
- package/dist/assets/{use-adapter-capabilities-BoIn6U4T.js → use-adapter-capabilities-qYdYowvE.js} +1 -1
- package/dist/assets/{useHiddenSettings-Cx5eN_RQ.js → useHiddenSettings-DscFeNyr.js} +1 -1
- package/dist/index.html +45 -45
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Costs.production-Dv0d-Z6H.js +0 -1
- package/dist/assets/skeleton-CLIvalUo.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var u=Object.defineProperty;var s=(t,a)=>u(t,"name",{value:a,configurable:!0});import{i as n}from"./rolldown-runtime-ZpX3ckPj.js";import{
|
|
1
|
+
var u=Object.defineProperty;var s=(t,a)=>u(t,"name",{value:a,configurable:!0});import{i as n}from"./rolldown-runtime-ZpX3ckPj.js";import{S as r,ji as m,ki as p,t as x}from"./agent-avatar-url-COB3FyNh.js";import{a as f,c as g,d as h,f as v,h as S,i as b,l as j,m as w,n as y,o as z,p as _,r as N,s as $,t as k,u as I}from"./dist-L4Fio05O.js";import{t as C}from"./check-BMyl919B.js";import{t as i}from"./chevron-down-CUaHIP4O.js";var c={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};c.node;var B=x(c),M=n(m(),1),e=n(p(),1);function P({...t}){return(0,e.jsx)(k,{"data-slot":"select",...t})}s(P,"Select");function A({...t}){return(0,e.jsx)(N,{"data-slot":"select-group",...t})}s(A,"SelectGroup");function F({...t}){return(0,e.jsx)(w,{"data-slot":"select-value",...t})}s(F,"SelectValue");function H({className:t,size:a="default",children:o,...l}){return(0,e.jsxs)(_,{"data-slot":"select-trigger","data-size":a,className:r("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-base md:text-sm whitespace-nowrap shadow-xs transition-(--tp-color-box-shadow) outline-none focus-visible:ring-(length:--rad-3) disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...l,children:[o,(0,e.jsx)(b,{asChild:!0,children:(0,e.jsx)(i,{className:"size-4 opacity-50"})})]})}s(H,"SelectTrigger");function J({className:t,children:a,position:o="item-aligned",align:l="center",...d}){return(0,e.jsx)(j,{children:(0,e.jsxs)(y,{"data-slot":"select-content",className:r("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-(--sz-8rem) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,align:l,...d,children:[(0,e.jsx)(D,{}),(0,e.jsx)(S,{className:r("p-1",o==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:a}),(0,e.jsx)(L,{})]})})}s(J,"SelectContent");function K({className:t,...a}){return(0,e.jsx)(g,{"data-slot":"select-label",className:r("text-muted-foreground px-2 py-1.5 text-xs",t),...a})}s(K,"SelectLabel");function O({className:t,children:a,...o}){return(0,e.jsxs)(f,{"data-slot":"select-item",className:r("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...o,children:[(0,e.jsx)("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,e.jsx)(z,{children:(0,e.jsx)(C,{className:"size-4"})})}),(0,e.jsx)($,{children:a})]})}s(O,"SelectItem");function Q({className:t,...a}){return(0,e.jsx)(v,{"data-slot":"select-separator",className:r("bg-border pointer-events-none -mx-1 my-1 h-px",t),...a})}s(Q,"SelectSeparator");function D({className:t,...a}){return(0,e.jsx)(h,{"data-slot":"select-scroll-up-button",className:r("flex cursor-default items-center justify-center py-1",t),...a,children:(0,e.jsx)(B,{className:"size-4"})})}s(D,"SelectScrollUpButton");function L({className:t,...a}){return(0,e.jsx)(I,{"data-slot":"select-scroll-down-button",className:r("flex cursor-default items-center justify-center py-1",t),...a,children:(0,e.jsx)(i,{className:"size-4"})})}s(L,"SelectScrollDownButton");export{K as a,F as c,O as i,B as l,J as n,Q as o,A as r,H as s,P as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var T=Object.defineProperty;var o=(t,e)=>T(t,"name",{value:e,configurable:!0});import{i as v}from"./rolldown-runtime-ZpX3ckPj.js";import{
|
|
1
|
+
var T=Object.defineProperty;var o=(t,e)=>T(t,"name",{value:e,configurable:!0});import{i as v}from"./rolldown-runtime-ZpX3ckPj.js";import{S as i,c as O,ji as $,ki as M,m as A,s as H,t as D}from"./agent-avatar-url-COB3FyNh.js";import{Z as E}from"./mention-chips-gWjq0PC7.js";import{A as h,C as f,D as j,E as _,O as y,S as b,T as S,k as C,w}from"./MarkdownEditor-DqSHOPon.js";import{n as P}from"./button-B-wjguAV.js";var c=v($(),1),a=v(M(),1),F=Object.defineProperty,d=o((t,e)=>F(t,"name",{value:e,configurable:!0}),"__name"),[L,vt]=O("AlertDialog",[h]),g=h(),q=d(t=>{const{__scopeAlertDialog:e,...r}=t,l=g(e);return(0,a.jsx)(b,{...l,...r,modal:!0})},"AlertDialog"),I=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(C,{...n,...s,ref:r})},"AlertDialogTrigger2"),"AlertDialogTrigger")),V=d(t=>{const{__scopeAlertDialog:e,...r}=t,l=g(e);return(0,a.jsx)(j,{...l,...r})},"AlertDialogPortal"),X=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(_,{...n,...s,ref:r})},"AlertDialogOverlay2"),"AlertDialogOverlay")),[Z,B]=L("AlertDialogContent"),G=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,children:s,...n}=e,p=g(l),m=c.useRef(null),z=A(r,m),x=c.useRef(null);return(0,a.jsx)(Z,{scope:l,cancelRef:x,children:(0,a.jsx)(w,{role:"alertdialog",...p,...n,ref:z,onOpenAutoFocus:H(n.onOpenAutoFocus,u=>{u.preventDefault(),x.current?.focus({preventScroll:!0})}),onPointerDownOutside:o(u=>u.preventDefault(),"onPointerDownOutside"),onInteractOutside:o(u=>u.preventDefault(),"onInteractOutside"),children:s})})},"AlertDialogContent2"),"AlertDialogContent")),J=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(y,{...n,...s,ref:r})},"AlertDialogTitle2"),"AlertDialogTitle")),K=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(S,{...n,...s,ref:r})},"AlertDialogDescription2"),"AlertDialogDescription")),Q=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,n=g(l);return(0,a.jsx)(f,{...n,...s,ref:r})},"AlertDialogAction2"),"AlertDialogAction")),U="AlertDialogCancel",W=c.forwardRef(d(o(function(e,r){const{__scopeAlertDialog:l,...s}=e,{cancelRef:n}=B(U,l),p=g(l),m=A(r,n);return(0,a.jsx)(f,{...p,...s,ref:m})},"AlertDialogCancel2"),"AlertDialogCancel")),Y=q,tt=I,et=V,at=X,ot=G,rt=Q,lt=W,st=J,nt=K,N={name:"folder-search",size:24,node:[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]]};N.node;var At=D(N),k={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};k.node;var ht=D(k),R={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};R.node;var jt=D(R);function _t({...t}){return(0,a.jsx)(Y,{"data-slot":"alert-dialog",...t})}o(_t,"AlertDialog");function yt({...t}){return(0,a.jsx)(tt,{"data-slot":"alert-dialog-trigger",...t})}o(yt,"AlertDialogTrigger");function it({...t}){return(0,a.jsx)(et,{"data-slot":"alert-dialog-portal",...t})}o(it,"AlertDialogPortal");function ct({className:t,...e}){return(0,a.jsx)(at,{"data-slot":"alert-dialog-overlay",className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 duration-100",t),...e})}o(ct,"AlertDialogOverlay");function bt({className:t,...e}){return(0,a.jsxs)(it,{children:[(0,a.jsx)(ct,{}),(0,a.jsx)(ot,{"data-slot":"alert-dialog-content",className:i("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-[0.97] data-[state=open]:zoom-in-[0.97] fixed top-(--sz-calc-26) md:top-(--pct-50) left-(--pct-50) z-50 grid w-full max-w-(--sz-calc-25) translate-x-(--pct-neg-50) translate-y-0 md:translate-y-(--pct-neg-50) gap-4 rounded-lg border p-6 shadow-lg duration-150 ease-(--e-cubic-bezier-0_16-1-0_3-1) outline-none sm:max-w-lg [&>*]:min-w-0",t),...e})]})}o(bt,"AlertDialogContent");function St({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-header",className:i("flex flex-col gap-2 text-center sm:text-left",t),...e})}o(St,"AlertDialogHeader");function Ct({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-footer",className:i("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}o(Ct,"AlertDialogFooter");function wt({className:t,...e}){return(0,a.jsx)(st,{"data-slot":"alert-dialog-title",className:i("text-lg leading-none font-semibold",t),...e})}o(wt,"AlertDialogTitle");function Pt({className:t,...e}){return(0,a.jsx)(nt,{"data-slot":"alert-dialog-description",className:i("text-muted-foreground text-sm",t),...e})}o(Pt,"AlertDialogDescription");function Nt({className:t,...e}){return(0,a.jsx)(rt,{"data-slot":"alert-dialog-action",className:i(P(),t),...e})}o(Nt,"AlertDialogAction");function kt({className:t,...e}){return(0,a.jsx)(lt,{"data-slot":"alert-dialog-cancel",className:i(P({variant:"outline"}),t),...e})}o(kt,"AlertDialogCancel");function Rt({...t}){return(0,a.jsx)(b,{"data-slot":"sheet",...t})}o(Rt,"Sheet");function zt({...t}){return(0,a.jsx)(C,{"data-slot":"sheet-trigger",...t})}o(zt,"SheetTrigger");function Tt({...t}){return(0,a.jsx)(f,{"data-slot":"sheet-close",...t})}o(Tt,"SheetClose");function dt({...t}){return(0,a.jsx)(j,{"data-slot":"sheet-portal",...t})}o(dt,"SheetPortal");function gt({className:t,...e}){return(0,a.jsx)(_,{"data-slot":"sheet-overlay",className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}o(gt,"SheetOverlay");function Ot({className:t,children:e,side:r="right",showCloseButton:l=!0,...s}){return(0,a.jsxs)(dt,{children:[(0,a.jsx)(gt,{}),(0,a.jsxs)(w,{"data-slot":"sheet-content",className:i("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...s,children:[e,l&&(0,a.jsxs)(f,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,a.jsx)(E,{className:"size-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}o(Ot,"SheetContent");function $t({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"sheet-header",className:i("flex flex-col gap-1.5 p-4",t),...e})}o($t,"SheetHeader");function Mt({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"sheet-footer",className:i("mt-auto flex flex-col gap-2 p-4",t),...e})}o(Mt,"SheetFooter");function Ht({className:t,...e}){return(0,a.jsx)(y,{"data-slot":"sheet-title",className:i("text-foreground font-semibold",t),...e})}o(Ht,"SheetTitle");function Et({className:t,...e}){return(0,a.jsx)(S,{"data-slot":"sheet-description",className:i("text-muted-foreground text-sm",t),...e})}o(Et,"SheetDescription");export{yt as _,Mt as a,At as b,zt as c,kt as d,bt as f,wt as g,St as h,Et as i,_t as l,Ct as m,Tt as n,$t as o,Pt as p,Ot as r,Ht as s,Rt as t,Nt as u,jt as v,ht as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=Object.defineProperty;var e=(t,r)=>o(t,"name",{value:r,configurable:!0});import{i as s}from"./rolldown-runtime-ZpX3ckPj.js";import{S as a,ki as i}from"./agent-avatar-url-COB3FyNh.js";var n=s(i(),1);function c({className:t,...r}){return(0,n.jsx)("div",{"data-slot":"skeleton",className:a("bg-accent/75 rounded-md",t),...r})}e(c,"Skeleton");export{c as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var S=Object.defineProperty;var n=(a,t)=>S(a,"name",{value:t,configurable:!0});import{i as I}from"./rolldown-runtime-ZpX3ckPj.js";import{S as T,a as z,c as A,i as P,ji as R,ki as M,l as x,r as E,s as h}from"./agent-avatar-url-COB3FyNh.js";import{i as N,n as F,r as k,t as V}from"./dist-CKsixJWn.js";import{r as L}from"./button-B-wjguAV.js";var f=I(R(),1),s=I(M(),1),$=Object.defineProperty,v=n((a,t)=>$(a,"name",{value:t,configurable:!0}),"__name"),_="Tabs",[D,nt]=A(_,[k]),w=k(),[G,C]=D(_),q=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,value:e,onValueChange:i,defaultValue:l,orientation:r="horizontal",dir:b,activationMode:p="automatic",...m}=t,d=N(b),[o,g]=z({prop:e,onChange:i,defaultProp:l??"",caller:_});return(0,s.jsx)(G,{scope:u,baseId:E(),value:o,onValueChange:g,orientation:r,dir:d,activationMode:p,children:(0,s.jsx)(x.div,{dir:d,"data-orientation":r,...m,ref:c})})},"Tabs2"),"Tabs")),K="TabsList",B=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,loop:e=!0,...i}=t,l=C(K,u),r=w(u);return(0,s.jsx)(F,{asChild:!0,...r,orientation:l.orientation,dir:l.dir,loop:e,children:(0,s.jsx)(x.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:c})})},"TabsList2"),"TabsList")),O="TabsTrigger",H=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,value:e,disabled:i=!1,...l}=t,r=C(O,u),b=w(u),p=j(r.baseId,e),m=y(r.baseId,e),d=e===r.value;return(0,s.jsx)(V,{asChild:!0,...b,focusable:!i,active:d,children:(0,s.jsx)(x.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":m,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:p,...l,ref:c,onMouseDown:h(t.onMouseDown,o=>{!i&&o.button===0&&o.ctrlKey===!1?r.onValueChange(e):o.preventDefault()}),onKeyDown:h(t.onKeyDown,o=>{i||o.target!==o.currentTarget||[" ","Enter"].includes(o.key)&&r.onValueChange(e)}),onFocus:h(t.onFocus,()=>{const o=r.activationMode!=="manual";!d&&!i&&o&&r.onValueChange(e)})})})},"TabsTrigger2"),"TabsTrigger")),J="TabsContent",Q=f.forwardRef(v(n(function(t,c){const{__scopeTabs:u,value:e,forceMount:i,children:l,...r}=t,b=C(J,u),p=j(b.baseId,e),m=y(b.baseId,e),d=e===b.value,o=f.useRef(d);return f.useEffect(()=>{const g=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(g)},[]),(0,s.jsx)(P,{present:i||d,children:n(({present:g})=>(0,s.jsx)(x.div,{"data-state":d?"active":"inactive","data-orientation":b.orientation,role:"tabpanel","aria-labelledby":p,hidden:!g,id:m,tabIndex:0,...r,ref:c,style:{...t.style,animationDuration:o.current?"0s":void 0},children:g&&l}),"children")})},"TabsContent2"),"TabsContent"));function j(a,t){return`${a}-trigger-${t}`}n(j,"makeTriggerId");v(j,"makeTriggerId");function y(a,t){return`${a}-content-${t}`}n(y,"makeContentId");v(y,"makeContentId");var U=q,W=B,X=H,Y=Q;function it({className:a,orientation:t="horizontal",...c}){return(0,s.jsx)(U,{"data-slot":"tabs","data-orientation":t,orientation:t,className:T("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",a),...c})}n(it,"Tabs");var Z=L("p-(--sz-3px) group-data-[orientation=horizontal]/tabs:h-9 group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function st({className:a,variant:t="default",...c}){return(0,s.jsx)(W,{"data-slot":"tabs-list","data-variant":t,className:T(Z({variant:t}),a),...c})}n(st,"TabsList");function ct({className:a,...t}){return(0,s.jsx)(X,{"data-slot":"tabs-trigger",className:T("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-(--sz-calc-27) flex-1 items-center justify-center gap-1.5 border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-(--tp-color-background-color-border-color-box-shadow) group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-(length:--rad-3) focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-(--sz-neg-5px) group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",a),...t})}n(ct,"TabsTrigger");function dt({className:a,...t}){return(0,s.jsx)(Y,{"data-slot":"tabs-content",className:T("flex-1 outline-none",a),...t})}n(dt,"TabsContent");export{ct as i,dt as n,st as r,it as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./agent-avatar-url-
|
|
1
|
+
import{t as e}from"./agent-avatar-url-COB3FyNh.js";var a={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};a.node;var r=e(a);export{r as t};
|
package/dist/assets/{use-adapter-capabilities-BoIn6U4T.js → use-adapter-capabilities-qYdYowvE.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _=Object.defineProperty;var s=(e,r)=>_(e,"name",{value:r,configurable:!0});import{i as p}from"./rolldown-runtime-ZpX3ckPj.js";import{
|
|
1
|
+
var _=Object.defineProperty;var s=(e,r)=>_(e,"name",{value:r,configurable:!0});import{i as p}from"./rolldown-runtime-ZpX3ckPj.js";import{S as g,Xr as k,Z as A,ji as S,ki as w,t as n,zr as l}from"./agent-avatar-url-COB3FyNh.js";import{r as x}from"./save-COX6cDHs.js";import{c as M}from"./button-B-wjguAV.js";import{t as v}from"./triangle-alert-CDiu0Pgq.js";var c={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};c.node;var J=n(c),d={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};d.node;var L=n(d),a=p(w(),1),h={info:L,warning:v,danger:x};function N({tone:e="info",title:r,children:t,icon:o,actions:i,compact:f=!1,className:y}){const u=o===!1?null:o??h[e];return(0,a.jsxs)("div",{role:"note",className:g("flex flex-col gap-2 rounded-lg border sm:flex-row sm:items-start sm:justify-between",f?"p-3":"p-4",M[e],y),children:[(0,a.jsxs)("div",{className:"flex items-start gap-2.5",children:[u&&(0,a.jsx)(u,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),(0,a.jsxs)("div",{className:"space-y-1 text-sm",children:[r&&(0,a.jsx)("p",{className:"font-medium leading-tight",children:r}),t&&(0,a.jsx)("div",{className:"leading-snug opacity-90",children:t})]})]}),i&&(0,a.jsx)("div",{className:"flex shrink-0 flex-wrap items-center gap-2 pl-6 sm:pl-0",children:i})]})}s(N,"InlineBanner");var q=p(S(),1),I={list:s(()=>l.get("/adapters"),"list"),install:s(e=>l.post("/adapters/install",e),"install"),remove:s(e=>l.delete(`/adapters/${e}`),"remove"),setDisabled:s((e,r)=>l.patch(`/adapters/${e}`,{disabled:r}),"setDisabled"),setOverridePaused:s((e,r)=>l.patch(`/adapters/${e}/override`,{paused:r}),"setOverridePaused"),reload:s(e=>l.post(`/adapters/${e}/reload`,{}),"reload"),reinstall:s(e=>l.post(`/adapters/${e}/reinstall`,{}),"reinstall")},m={supportsInstructionsBundle:!1,supportsSkills:!1,supportsLocalAgentJwt:!1,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1},z={claude_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!0,readOnlyToolProfile:"enforced",login:{panelMode:"submitted_browser_code",timeoutPolicy:"fixed"}},codex_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!0,readOnlyToolProfile:"enforced",login:{panelMode:"displayed_code",timeoutPolicy:"caller_bounded"}},paperclip_runner:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!1,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1},cursor:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only"},gemini_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!0,readOnlyToolProfile:"instruction_only"},grok_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only",login:{panelMode:"displayed_code",timeoutPolicy:"caller_bounded"}},kimi_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!0,readOnlyToolProfile:"instruction_only"},opencode_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"instruction_only"},pi_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!0,supportsAcp:!1,readOnlyToolProfile:"enforced"},omp_local:{supportsInstructionsBundle:!0,supportsSkills:!0,supportsLocalAgentJwt:!0,requiresMaterializedRuntimeSkills:!1,supportsAcp:!1,readOnlyToolProfile:"enforced",supportsLiveSteering:!0},openclaw_gateway:m};function R(){const{data:e}=k({queryKey:A.adapters.all,queryFn:s(()=>I.list(),"queryFn"),staleTime:3e5}),r=(0,q.useMemo)(()=>{const t=new Map;if(e)for(const o of e)t.set(o.type,o.capabilities);return t},[e]);return t=>r.get(t)??z[t]??m}s(R,"useAdapterCapabilities");export{J as a,L as i,I as n,N as r,R as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var i=Object.defineProperty;var a=(e,r)=>i(e,"name",{value:r,configurable:!0});import{i as n}from"./rolldown-runtime-ZpX3ckPj.js";import{
|
|
1
|
+
var i=Object.defineProperty;var a=(e,r)=>i(e,"name",{value:r,configurable:!0});import{i as n}from"./rolldown-runtime-ZpX3ckPj.js";import{Xr as s,Z as o,ji as d,t as u}from"./agent-avatar-url-COB3FyNh.js";import{t as m}from"./health-Boo6Fbfs.js";var t={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};t.node;var f=u(t),h=n(d(),1);function l(){const e=s({queryKey:o.health,queryFn:a(()=>m.get(),"queryFn"),enabled:!1}).data;return(0,h.useMemo)(()=>({hidden:new Set(e?.hiddenSettings??[]),loaded:e!==void 0}),[e])}a(l,"useHiddenSettings");export{f as n,l as t};
|
package/dist/index.html
CHANGED
|
@@ -47,54 +47,54 @@
|
|
|
47
47
|
}
|
|
48
48
|
})();
|
|
49
49
|
</script>
|
|
50
|
-
<script type="module" crossorigin src="/assets/index-
|
|
50
|
+
<script type="module" crossorigin src="/assets/index-DlP9bxBd.js"></script>
|
|
51
51
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-ZpX3ckPj.js">
|
|
52
|
-
<link rel="modulepreload" crossorigin href="/assets/agent-avatar-url-
|
|
52
|
+
<link rel="modulepreload" crossorigin href="/assets/agent-avatar-url-COB3FyNh.js">
|
|
53
53
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-CceJXRIF.js">
|
|
54
|
-
<link rel="modulepreload" crossorigin href="/assets/boxes-
|
|
55
|
-
<link rel="modulepreload" crossorigin href="/assets/agents-
|
|
56
|
-
<link rel="modulepreload" crossorigin href="/assets/button-
|
|
57
|
-
<link rel="modulepreload" crossorigin href="/assets/EmptyState-
|
|
58
|
-
<link rel="modulepreload" crossorigin href="/assets/router-
|
|
59
|
-
<link rel="modulepreload" crossorigin href="/assets/mention-chips-
|
|
60
|
-
<link rel="modulepreload" crossorigin href="/assets/dist-
|
|
61
|
-
<link rel="modulepreload" crossorigin href="/assets/dist-
|
|
62
|
-
<link rel="modulepreload" crossorigin href="/assets/AgentAvatar-
|
|
54
|
+
<link rel="modulepreload" crossorigin href="/assets/boxes-B17SB309.js">
|
|
55
|
+
<link rel="modulepreload" crossorigin href="/assets/agents-Bce8O2iW.js">
|
|
56
|
+
<link rel="modulepreload" crossorigin href="/assets/button-B-wjguAV.js">
|
|
57
|
+
<link rel="modulepreload" crossorigin href="/assets/EmptyState-Cpsu2EbU.js">
|
|
58
|
+
<link rel="modulepreload" crossorigin href="/assets/router-BOhyEQ-H.js">
|
|
59
|
+
<link rel="modulepreload" crossorigin href="/assets/mention-chips-gWjq0PC7.js">
|
|
60
|
+
<link rel="modulepreload" crossorigin href="/assets/dist-CKsixJWn.js">
|
|
61
|
+
<link rel="modulepreload" crossorigin href="/assets/dist-L4Fio05O.js">
|
|
62
|
+
<link rel="modulepreload" crossorigin href="/assets/AgentAvatar-SJDPbZfK.js">
|
|
63
63
|
<link rel="modulepreload" crossorigin href="/assets/dist-DCJXgQu0.js">
|
|
64
|
-
<link rel="modulepreload" crossorigin href="/assets/MarkdownEditor-
|
|
65
|
-
<link rel="modulepreload" crossorigin href="/assets/sheet-
|
|
66
|
-
<link rel="modulepreload" crossorigin href="/assets/check-
|
|
67
|
-
<link rel="modulepreload" crossorigin href="/assets/chevron-right-
|
|
68
|
-
<link rel="modulepreload" crossorigin href="/assets/checkbox-
|
|
69
|
-
<link rel="modulepreload" crossorigin href="/assets/label-
|
|
70
|
-
<link rel="modulepreload" crossorigin href="/assets/clipboard-
|
|
71
|
-
<link rel="modulepreload" crossorigin href="/assets/loader-circle-
|
|
72
|
-
<link rel="modulepreload" crossorigin href="/assets/octagon-alert-
|
|
73
|
-
<link rel="modulepreload" crossorigin href="/assets/StatusIcon-
|
|
74
|
-
<link rel="modulepreload" crossorigin href="/assets/bot-
|
|
75
|
-
<link rel="modulepreload" crossorigin href="/assets/chevron-down-
|
|
76
|
-
<link rel="modulepreload" crossorigin href="/assets/select-
|
|
77
|
-
<link rel="modulepreload" crossorigin href="/assets/heartbeats-
|
|
78
|
-
<link rel="modulepreload" crossorigin href="/assets/health-
|
|
79
|
-
<link rel="modulepreload" crossorigin href="/assets/useHiddenSettings-
|
|
80
|
-
<link rel="modulepreload" crossorigin href="/assets/rotate-ccw-
|
|
81
|
-
<link rel="modulepreload" crossorigin href="/assets/triangle-alert-
|
|
82
|
-
<link rel="modulepreload" crossorigin href="/assets/badge-
|
|
83
|
-
<link rel="modulepreload" crossorigin href="/assets/environments-
|
|
84
|
-
<link rel="modulepreload" crossorigin href="/assets/input-
|
|
85
|
-
<link rel="modulepreload" crossorigin href="/assets/company-members-
|
|
86
|
-
<link rel="modulepreload" crossorigin href="/assets/AgentIdentity-
|
|
87
|
-
<link rel="modulepreload" crossorigin href="/assets/card-
|
|
88
|
-
<link rel="modulepreload" crossorigin href="/assets/skeleton-
|
|
89
|
-
<link rel="modulepreload" crossorigin href="/assets/PageSkeleton-
|
|
90
|
-
<link rel="modulepreload" crossorigin href="/assets/RoutineRunVariablesDialog-
|
|
91
|
-
<link rel="modulepreload" crossorigin href="/assets/tabs-
|
|
92
|
-
<link rel="modulepreload" crossorigin href="/assets/save-
|
|
93
|
-
<link rel="modulepreload" crossorigin href="/assets/use-adapter-capabilities-
|
|
94
|
-
<link rel="modulepreload" crossorigin href="/assets/external-link-
|
|
95
|
-
<link rel="modulepreload" crossorigin href="/assets/MarkdownBody-
|
|
96
|
-
<link rel="modulepreload" crossorigin href="/assets/file-text-
|
|
97
|
-
<link rel="modulepreload" crossorigin href="/assets/SidebarContext-
|
|
64
|
+
<link rel="modulepreload" crossorigin href="/assets/MarkdownEditor-DqSHOPon.js">
|
|
65
|
+
<link rel="modulepreload" crossorigin href="/assets/sheet-BByJ5Lv5.js">
|
|
66
|
+
<link rel="modulepreload" crossorigin href="/assets/check-BMyl919B.js">
|
|
67
|
+
<link rel="modulepreload" crossorigin href="/assets/chevron-right-Dz0Hakt6.js">
|
|
68
|
+
<link rel="modulepreload" crossorigin href="/assets/checkbox-iAfQowi2.js">
|
|
69
|
+
<link rel="modulepreload" crossorigin href="/assets/label-DghWCun3.js">
|
|
70
|
+
<link rel="modulepreload" crossorigin href="/assets/clipboard-B0eiwEg1.js">
|
|
71
|
+
<link rel="modulepreload" crossorigin href="/assets/loader-circle-BqmoALPC.js">
|
|
72
|
+
<link rel="modulepreload" crossorigin href="/assets/octagon-alert-CnEZnFXW.js">
|
|
73
|
+
<link rel="modulepreload" crossorigin href="/assets/StatusIcon-CMOBM0cz.js">
|
|
74
|
+
<link rel="modulepreload" crossorigin href="/assets/bot-Dsp1n_bc.js">
|
|
75
|
+
<link rel="modulepreload" crossorigin href="/assets/chevron-down-CUaHIP4O.js">
|
|
76
|
+
<link rel="modulepreload" crossorigin href="/assets/select-BA5jC_nQ.js">
|
|
77
|
+
<link rel="modulepreload" crossorigin href="/assets/heartbeats-C0D9bcc5.js">
|
|
78
|
+
<link rel="modulepreload" crossorigin href="/assets/health-Boo6Fbfs.js">
|
|
79
|
+
<link rel="modulepreload" crossorigin href="/assets/useHiddenSettings-DscFeNyr.js">
|
|
80
|
+
<link rel="modulepreload" crossorigin href="/assets/rotate-ccw-lfP1J5rp.js">
|
|
81
|
+
<link rel="modulepreload" crossorigin href="/assets/triangle-alert-CDiu0Pgq.js">
|
|
82
|
+
<link rel="modulepreload" crossorigin href="/assets/badge-CUxm7Dtn.js">
|
|
83
|
+
<link rel="modulepreload" crossorigin href="/assets/environments-BAip07cp.js">
|
|
84
|
+
<link rel="modulepreload" crossorigin href="/assets/input-D907RXni.js">
|
|
85
|
+
<link rel="modulepreload" crossorigin href="/assets/company-members-2JwSIlm7.js">
|
|
86
|
+
<link rel="modulepreload" crossorigin href="/assets/AgentIdentity-BW3dAZQD.js">
|
|
87
|
+
<link rel="modulepreload" crossorigin href="/assets/card-DBEYqFNF.js">
|
|
88
|
+
<link rel="modulepreload" crossorigin href="/assets/skeleton-D17djeDO.js">
|
|
89
|
+
<link rel="modulepreload" crossorigin href="/assets/PageSkeleton-Boeat-pa.js">
|
|
90
|
+
<link rel="modulepreload" crossorigin href="/assets/RoutineRunVariablesDialog-BHfjTN1x.js">
|
|
91
|
+
<link rel="modulepreload" crossorigin href="/assets/tabs-DIoJxDqx.js">
|
|
92
|
+
<link rel="modulepreload" crossorigin href="/assets/save-COX6cDHs.js">
|
|
93
|
+
<link rel="modulepreload" crossorigin href="/assets/use-adapter-capabilities-qYdYowvE.js">
|
|
94
|
+
<link rel="modulepreload" crossorigin href="/assets/external-link-C16DZ_8E.js">
|
|
95
|
+
<link rel="modulepreload" crossorigin href="/assets/MarkdownBody-DRqRjF-_.js">
|
|
96
|
+
<link rel="modulepreload" crossorigin href="/assets/file-text-CGuZU4dO.js">
|
|
97
|
+
<link rel="modulepreload" crossorigin href="/assets/SidebarContext--Pt-RovF.js">
|
|
98
98
|
<link rel="stylesheet" crossorigin href="/assets/index-Brs96tf5.css">
|
|
99
99
|
</head>
|
|
100
100
|
<body>
|
package/dist/sw.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// browser install a new worker, which — via skipWaiting + controllerchange —
|
|
5
5
|
// reloads parked tabs onto the fresh bundle. Left as the literal placeholder in
|
|
6
6
|
// dev, where HMR (not the worker) drives refreshes.
|
|
7
|
-
const BUILD_ID = "index-
|
|
7
|
+
const BUILD_ID = "index-DlP9bxBd";
|
|
8
8
|
// Separate this allowlisted cache from older workers that cached arbitrary URLs.
|
|
9
9
|
const CACHE_NAME = `paperclip-public-assets-${BUILD_ID}`;
|
|
10
10
|
const privateRequests = new Set();
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var ot=Object.defineProperty;var o=(i,h)=>ot(i,"name",{value:h,configurable:!0});import{i as _e}from"./rolldown-runtime-ZpX3ckPj.js";import{Ai as dt,Di as lt,Jr as Ie,L as X,M,Oi as ct,S as qe,T as m,U as ut,X as v,Yr as S,x as mt}from"./agent-avatar-url-BcyFoVtv.js";import{i as z,n as B,r as pt,t as te}from"./tabs-De8GZtQI.js";import{r as gt,t as xt}from"./EmptyState-BZtI8X0G.js";import{t as ht}from"./chevron-down-DFUcku8q.js";import{t as bt}from"./chevron-right-B6d9r4Ro.js";import{t as vt}from"./button-BY21O8GT.js";import{t as yt}from"./AgentIdentity-D9ti_IEi.js";import{i as _,o as $,r as F,s as L,t as q}from"./card-De_lOmuE.js";import{t as se}from"./PageSkeleton-Cy0AuFsD.js";import{C as De,Cn as re,D as Ae,E as jt,Kn as ft,Ln as ne,O as Fe,Rn as ie,S as Nt,T as Ct,Wn as oe,b as wt,k as N,qt as kt,tn as Ke,vt as Tt,w as Ee,x as St,yt as ae}from"./index-D6Rnj-qc.js";var l=_e(dt(),1),e=_e(ct(),1),Bt="__none__";function Mt(){const i=new Date,h=i.getDay(),y=h===0?-6:1-h,u=new Date(i.getFullYear(),i.getMonth(),i.getDate()+y,0,0,0,0),j=new Date(u.getFullYear(),u.getMonth(),u.getDate()+6,23,59,59,999);return{from:u.toISOString(),to:j.toISOString()}}o(Mt,"currentWeekRange");function Pt({provider:i,rows:h}){const y=h.reduce((j,b)=>j+b.inputTokens+b.cachedInputTokens+b.outputTokens,0),u=h.reduce((j,b)=>j+b.costCents,0);return(0,e.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("span",{children:X(i)}),(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:M(y)}),(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:m(u)})]})}o(Pt,"ProviderTabLabel");function It({biller:i,rows:h}){const y=h.reduce((j,b)=>j+b.inputTokens+b.cachedInputTokens+b.outputTokens,0),u=h.reduce((j,b)=>j+b.costCents,0);return(0,e.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("span",{children:X(i)}),(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:M(y)}),(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:m(u)})]})}o(It,"BillerTabLabel");function C({label:i,value:h,subtitle:y,icon:u}){return(0,e.jsx)(q,{className:"block p-4",children:(0,e.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)("div",{className:"text-(length:--text-micro) uppercase tracking-(--tracking-eyebrow) text-muted-foreground",children:i}),(0,e.jsx)("div",{className:"mt-2 text-2xl font-semibold tabular-nums",children:h}),(0,e.jsx)("div",{className:"mt-1 text-xs leading-5 text-muted-foreground",children:y})]}),(0,e.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md border border-border",children:(0,e.jsx)(u,{className:"h-4 w-4 text-muted-foreground"})})]})})}o(C,"MetricTile");function Re({debitCents:i,creditCents:h,netCents:y,estimatedDebitCents:u,eventCount:j}){return(0,e.jsxs)(q,{children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-2",children:[(0,e.jsx)(L,{className:"text-base",children:"Finance ledger"}),(0,e.jsx)(_,{children:"Account-level charges that do not map to a single inference request."})]}),(0,e.jsxs)(F,{className:"grid gap-3 px-5 pb-5 pt-2 sm:grid-cols-2 xl:grid-cols-4",children:[(0,e.jsx)(C,{label:"Debits",value:m(i),subtitle:`${j} total event${j===1?"":"s"} in range`,icon:oe}),(0,e.jsx)(C,{label:"Credits",value:m(h),subtitle:"Refunds, offsets, and credit returns",icon:ft}),(0,e.jsx)(C,{label:"Net",value:m(y),subtitle:"Debit minus credit for the selected period",icon:re}),(0,e.jsx)(C,{label:"Estimated",value:m(u),subtitle:"Estimated debits that are not yet invoice-authoritative",icon:ie})]})]})}o(Re,"FinanceSummaryCard");function zt(){const{selectedCompanyId:i}=ut(),{setBreadcrumbs:h}=gt(),y=lt(),[u,j]=(0,l.useState)("overview"),[b,de]=(0,l.useState)("all"),[O,le]=(0,l.useState)("all"),{preset:K,setPreset:$e,customFrom:Le,setCustomFrom:Oe,customTo:We,setCustomTo:ze,from:g,to:x,customReady:D}=Nt();(0,l.useEffect)(()=>{h([{label:"Costs"}])},[h]);const[Qe,Ye]=(0,l.useState)(()=>new Date().toDateString()),G=(0,l.useRef)(null);(0,l.useEffect)(()=>{const t=o(()=>{const s=new Date,n=new Date(s.getFullYear(),s.getMonth(),s.getDate()+1).getTime()-s.getTime();G.current=setTimeout(()=>{Ye(new Date().toDateString()),t()},n)},"schedule");return t(),()=>{G.current!=null&&clearTimeout(G.current)}},[]);const P=(0,l.useMemo)(()=>Mt(),[Qe]),d=i??Bt,{data:A,isLoading:Ue,error:ce}=S({queryKey:v.budgets.overview(d),queryFn:o(()=>ae.overview(d),"queryFn"),enabled:!!i&&D,refetchInterval:3e4,staleTime:5e3}),ue=o(()=>{i&&(y.invalidateQueries({queryKey:v.budgets.overview(i)}),y.invalidateQueries({queryKey:v.dashboard(i)}),y.invalidateQueries({queryKey:v.agents.list(i)}),y.invalidateQueries({queryKey:v.projects.all(i)}))},"invalidateBudgetViews"),me=Ie({mutationFn:o(t=>ae.upsertPolicy(d,{scopeType:t.scopeType,scopeId:t.scopeId,amount:t.amount,windowKind:t.windowKind}),"mutationFn"),onSuccess:ue}),E=Ie({mutationFn:o(t=>ae.resolveIncident(d,t.incidentId,t),"mutationFn"),onSuccess:ue}),{data:a,isLoading:Ve,error:He}=S({queryKey:v.costs(d,g||void 0,x||void 0),queryFn:o(async()=>{const[t,s,n,r]=await Promise.all([N.summary(d,g||void 0,x||void 0),N.byAgent(d,g||void 0,x||void 0),N.byProject(d,g||void 0,x||void 0),N.byAgentModel(d,g||void 0,x||void 0)]);return{summary:t,byAgent:s,byProject:n,byAgentModel:r}},"queryFn"),enabled:!!i&&D}),{data:p,isLoading:pe,error:Z}=S({queryKey:[v.financeSummary(d,g||void 0,x||void 0),v.financeByBiller(d,g||void 0,x||void 0),v.financeByKind(d,g||void 0,x||void 0),v.financeEvents(d,g||void 0,x||void 0,18)],queryFn:o(async()=>{const[t,s,n,r]=await Promise.all([N.financeSummary(d,g||void 0,x||void 0),N.financeByBiller(d,g||void 0,x||void 0),N.financeByKind(d,g||void 0,x||void 0),N.financeEvents(d,g||void 0,x||void 0,18)]);return{summary:t,byBiller:s,byKind:n,events:r}},"queryFn"),enabled:!!i&&D}),[Je,ge]=(0,l.useState)(new Set);(0,l.useEffect)(()=>{ge(new Set)},[d,g,x]);function Xe(t){ge(s=>{const n=new Set(s);return n.has(t)?n.delete(t):n.add(t),n})}o(Xe,"toggleAgent");const Ge=(0,l.useMemo)(()=>{const t=new Map;for(const s of a?.byAgentModel??[]){const n=t.get(s.agentId)??[];n.push(s),t.set(s.agentId,n)}for(const[s,n]of t)t.set(s,n.slice().sort((r,c)=>c.costCents-r.costCents));return t},[a?.byAgentModel]),{data:Q}=S({queryKey:v.usageByProvider(d,g||void 0,x||void 0),queryFn:o(()=>N.byProvider(d,g||void 0,x||void 0),"queryFn"),enabled:!!i&&D&&(u==="providers"||u==="billers"),refetchInterval:3e4,staleTime:1e4}),{data:xe}=S({queryKey:v.usageByBiller(d,g||void 0,x||void 0),queryFn:o(()=>N.byBiller(d,g||void 0,x||void 0),"queryFn"),enabled:!!i&&D&&u==="billers",refetchInterval:3e4,staleTime:1e4}),{data:he}=S({queryKey:v.usageByProvider(d,P.from,P.to),queryFn:o(()=>N.byProvider(d,P.from,P.to),"queryFn"),enabled:!!i&&(u==="providers"||u==="billers"),refetchInterval:3e4,staleTime:1e4}),{data:be}=S({queryKey:v.usageByBiller(d,P.from,P.to),queryFn:o(()=>N.byBiller(d,P.from,P.to),"queryFn"),enabled:!!i&&u==="billers",refetchInterval:3e4,staleTime:1e4}),{data:ve}=S({queryKey:v.usageWindowSpend(d),queryFn:o(()=>N.windowSpend(d),"queryFn"),enabled:!!i&&u==="providers",refetchInterval:3e4,staleTime:1e4}),{data:R,isLoading:ye}=S({queryKey:v.usageQuotaWindows(d),queryFn:o(()=>N.quotaWindows(d),"queryFn"),enabled:!!i&&u==="providers",refetchInterval:3e5,staleTime:6e4}),w=(0,l.useMemo)(()=>{const t=new Map;for(const s of Q??[]){const n=t.get(s.provider)??[];n.push(s),t.set(s.provider,n)}return t},[Q]),T=(0,l.useMemo)(()=>{const t=new Map;for(const s of xe??[]){const n=t.get(s.biller)??[];n.push(s),t.set(s.biller,n)}return t},[xe]),je=(0,l.useMemo)(()=>{const t=new Map;for(const s of he??[])t.set(s.provider,(t.get(s.provider)??0)+s.costCents);return t},[he]),fe=(0,l.useMemo)(()=>{const t=new Map;for(const s of be??[])t.set(s.biller,(t.get(s.biller)??0)+s.costCents);return t},[be]),Ne=(0,l.useMemo)(()=>{const t=new Map;for(const s of ve??[]){const n=t.get(s.provider)??[];n.push(s),t.set(s.provider,n)}return t},[ve]),Ce=(0,l.useMemo)(()=>{const t=new Map;for(const s of R??[])s.ok&&s.windows.length>0&&t.set(s.provider,s.windows);return t},[R]),we=(0,l.useMemo)(()=>{const t=new Map;for(const s of R??[])!s.ok&&s.error&&t.set(s.provider,s.error);return t},[R]),ke=(0,l.useMemo)(()=>{const t=new Map;for(const s of R??[])typeof s.source=="string"&&s.source.length>0&&t.set(s.provider,s.source);return t},[R]),Te=(0,l.useMemo)(()=>{const t=new Map;if(K!=="mtd")return t;const s=a?.summary.budgetCents??0;if(s<=0)return t;const n=a?.summary.spendCents??0,r=new Date,c=r.getDate(),k=new Date(r.getFullYear(),r.getMonth()+1,0).getDate();for(const[f,nt]of w){const ee=nt.reduce((rt,it)=>rt+it.costCents,0),Pe=s*(n>0?ee/n:0);if(Pe<=0){t.set(f,!1);continue}const at=ee/Math.max(c,1);t.set(f,ee+at*(k-c)>Pe)}return t},[K,a,w]),Y=(0,l.useMemo)(()=>Array.from(w.keys()),[w]),U=(0,l.useMemo)(()=>Array.from(T.keys()),[T]),V=b==="all"||Y.includes(b)?b:"all";(0,l.useEffect)(()=>{V!==b&&de("all")},[V,b]);const H=O==="all"||U.includes(O)?O:"all";(0,l.useEffect)(()=>{H!==O&&le("all")},[H,O]);const Ze=(0,l.useMemo)(()=>{const t=Array.from(w.keys()),s=t.reduce((r,c)=>r+(w.get(c)?.reduce((k,f)=>k+f.inputTokens+f.cachedInputTokens+f.outputTokens,0)??0),0),n=t.reduce((r,c)=>r+(w.get(c)?.reduce((k,f)=>k+f.costCents,0)??0),0);return[{value:"all",label:(0,e.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("span",{children:"All providers"}),t.length>0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:M(s)}),(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:m(n)})]}):null]})},...t.map(r=>({value:r,label:(0,e.jsx)(Pt,{provider:r,rows:w.get(r)??[]})}))]},[w]),et=(0,l.useMemo)(()=>{const t=Array.from(T.keys()),s=t.reduce((r,c)=>r+(T.get(c)?.reduce((k,f)=>k+f.inputTokens+f.cachedInputTokens+f.outputTokens,0)??0),0),n=t.reduce((r,c)=>r+(T.get(c)?.reduce((k,f)=>k+f.costCents,0)??0),0);return[{value:"all",label:(0,e.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("span",{children:"All billers"}),t.length>0?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:M(s)}),(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:m(n)})]}):null]})},...t.map(r=>({value:r,label:(0,e.jsx)(It,{biller:r,rows:T.get(r)??[]})}))]},[T]),Se=(a?.byAgent??[]).reduce((t,s)=>t+s.inputTokens+s.cachedInputTokens+s.outputTokens,0),Be=p?.events??[],W=A?.policies??[],I=A?.activeIncidents??[],tt=(0,l.useMemo)(()=>({company:W.filter(t=>t.scopeType==="company"),agent:W.filter(t=>t.scopeType==="agent"),project:W.filter(t=>t.scopeType==="project")}),[W]);if(!i)return(0,e.jsx)(xt,{icon:ne,message:"Select a company to view costs."});const J=K==="custom"&&!D,st=(Ve||pe)&&D,Me=He??Z;return(0,e.jsxs)("div",{className:"space-y-6",children:[(0,e.jsxs)("div",{className:"space-y-5",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:"Costs"}),(0,e.jsx)("p",{className:"mt-2 max-w-2xl text-sm leading-6 text-muted-foreground",children:"Inference spend, platform fees, credits, and live quota windows."})]}),(0,e.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:wt.map(t=>(0,e.jsx)(vt,{variant:K===t?"secondary":"ghost",size:"sm",onClick:o(()=>$e(t),"onClick"),"aria-pressed":K===t,children:St[t]},t))})]}),K==="custom"?(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2 border border-border p-3",children:[(0,e.jsx)("input",{type:"date",value:Le,onChange:o(t=>Oe(t.target.value),"onChange"),className:"h-9 rounded-md border border-input bg-background px-3 text-sm text-foreground"}),(0,e.jsx)("span",{className:"text-sm text-muted-foreground",children:"to"}),(0,e.jsx)("input",{type:"date",value:We,onChange:o(t=>ze(t.target.value),"onChange"),className:"h-9 rounded-md border border-input bg-background px-3 text-sm text-foreground"})]}):null,(0,e.jsxs)("div",{className:"grid gap-3 lg:grid-cols-4",children:[(0,e.jsx)(C,{label:"Inference spend",value:m(a?.summary.spendCents??0),subtitle:`${M(Se)} tokens across request-scoped events`,icon:ne}),(0,e.jsx)(C,{label:"Budget",value:I.length>0?String(I.length):a?.summary.budgetCents&&a.summary.budgetCents>0?`${a.summary.utilizationPercent}%`:"Open",subtitle:I.length>0?`${A?.pausedAgentCount??0} agents paused · ${A?.pausedProjectCount??0} projects paused`:a?.summary.budgetCents&&a.summary.budgetCents>0?`${m(a.summary.spendCents)} of ${m(a.summary.budgetCents)}`:"No monthly cap configured",icon:ie}),(0,e.jsx)(C,{label:"Finance net",value:m(p?.summary.netCents??0),subtitle:`${m(p?.summary.debitCents??0)} debits · ${m(p?.summary.creditCents??0)} credits`,icon:re}),(0,e.jsx)(C,{label:"Finance events",value:String(p?.summary.eventCount??0),subtitle:`${m(p?.summary.estimatedDebitCents??0)} estimated in range`,icon:oe})]})]}),(0,e.jsxs)(te,{value:u,onValueChange:o(t=>j(t),"onValueChange"),children:[(0,e.jsxs)(pt,{variant:"line",className:"justify-start",children:[(0,e.jsx)(z,{value:"overview",children:"Overview"}),(0,e.jsx)(z,{value:"budgets",children:"Budgets"}),(0,e.jsx)(z,{value:"providers",children:"Providers"}),(0,e.jsx)(z,{value:"billers",children:"Billers"}),(0,e.jsx)(z,{value:"finance",children:"Finance"})]}),(0,e.jsx)(B,{value:"overview",className:"mt-4 space-y-4",children:J?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a start and end date to load data."}):st?(0,e.jsx)(se,{variant:"costs"}):Me?(0,e.jsx)("p",{className:"text-sm text-destructive",children:Me.message}):(0,e.jsxs)(e.Fragment,{children:[I.length>0?(0,e.jsx)("div",{className:"grid gap-4 xl:grid-cols-2",children:I.slice(0,2).map(t=>(0,e.jsx)(Ae,{incident:t,isMutating:E.isPending,onKeepPaused:o(()=>E.mutate({incidentId:t.id,action:"keep_paused"}),"onKeepPaused"),onRaiseAndResume:o(s=>E.mutate({incidentId:t.id,action:"raise_budget_and_resume",amount:s}),"onRaiseAndResume")},t.id))}):null,(0,e.jsxs)("div",{className:"grid gap-4 xl:grid-cols-(--gtc-31)",children:[(0,e.jsxs)(q,{children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-2",children:[(0,e.jsx)(L,{className:"text-base",children:"Inference ledger"}),(0,e.jsx)(_,{children:"Request-scoped inference spend for the selected period."})]}),(0,e.jsxs)(F,{className:"space-y-4 px-5 pb-5 pt-2",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-3",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-3xl font-semibold tabular-nums",children:m(a?.summary.spendCents??0)}),(0,e.jsx)("div",{className:"mt-1 text-sm text-muted-foreground",children:a?.summary.budgetCents&&a.summary.budgetCents>0?`Budget ${m(a.summary.budgetCents)}`:"Unlimited budget"})]}),(0,e.jsxs)("div",{className:"border border-border px-4 py-3 text-right",children:[(0,e.jsx)("div",{className:"text-(length:--text-micro) uppercase tracking-(--tracking-eyebrow) text-muted-foreground",children:"usage"}),(0,e.jsx)("div",{className:"mt-1 text-lg font-medium tabular-nums",children:M(Se)})]})]}),a?.summary.budgetCents&&a.summary.budgetCents>0?(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsx)("div",{className:"h-2 overflow-hidden bg-muted",children:(0,e.jsx)("div",{className:qe("h-full transition-(--tp-width-background-color) duration-150",a.summary.utilizationPercent>90?"bg-(--status-task-blocked)":a.summary.utilizationPercent>70?"bg-(--status-task-todo)":"bg-(--status-task-done)"),style:{width:`${Math.min(100,a.summary.utilizationPercent)}%`}})}),(0,e.jsxs)("div",{className:"text-xs text-muted-foreground",children:[a.summary.utilizationPercent,"% of monthly budget consumed in this range."]})]}):null]})]}),(0,e.jsx)(Re,{debitCents:p?.summary.debitCents??0,creditCents:p?.summary.creditCents??0,netCents:p?.summary.netCents??0,estimatedDebitCents:p?.summary.estimatedDebitCents??0,eventCount:p?.summary.eventCount??0})]}),(0,e.jsxs)("div",{className:"grid gap-4 xl:grid-cols-(--gtc-32)",children:[(0,e.jsxs)(q,{children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-2",children:[(0,e.jsx)(L,{className:"text-base",children:"By agent"}),(0,e.jsx)(_,{children:"What each agent consumed in the selected period."})]}),(0,e.jsx)(F,{className:"space-y-2 px-5 pb-5 pt-2",children:(a?.byAgent.length??0)===0?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No cost events yet."}):a?.byAgent.map(t=>{const s=Ge.get(t.agentId)??[],n=Je.has(t.agentId),r=s.length>0;return(0,e.jsxs)("div",{className:"border border-border px-4 py-3",children:[(0,e.jsxs)("div",{className:qe("flex items-start justify-between gap-3",r?"cursor-pointer select-none":""),onClick:o(()=>r&&Xe(t.agentId),"onClick"),children:[(0,e.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[r?n?(0,e.jsx)(ht,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):(0,e.jsx)(bt,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):(0,e.jsx)("span",{className:"h-3 w-3 shrink-0"}),(0,e.jsx)(yt,{agent:{id:t.agentId,name:t.agentName??t.agentId,appearance:t.agentAppearance},size:"sm"}),t.agentStatus==="terminated"?(0,e.jsx)(kt,{status:"terminated"}):null]}),(0,e.jsxs)("div",{className:"text-right text-sm tabular-nums",children:[(0,e.jsx)("div",{className:"font-medium",children:m(t.costCents)}),(0,e.jsxs)("div",{className:"text-xs text-muted-foreground",children:["in ",M(t.inputTokens+t.cachedInputTokens)," · out ",M(t.outputTokens)]}),t.apiRunCount>0||t.subscriptionRunCount>0?(0,e.jsxs)("div",{className:"text-xs text-muted-foreground",children:[t.apiRunCount>0?`${t.apiRunCount} api`:"0 api"," · ",t.subscriptionRunCount>0?`${t.subscriptionRunCount} subscription`:"0 subscription"]}):null]})]}),n&&s.length>0?(0,e.jsx)("div",{className:"mt-3 space-y-2 border-l border-border pl-4",children:s.map(c=>{const k=t.costCents>0?Math.round(c.costCents/t.costCents*100):0;return(0,e.jsxs)("div",{className:"flex items-start justify-between gap-3 text-xs",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"truncate font-medium text-foreground",children:[X(c.provider),(0,e.jsx)("span",{className:"mx-1 text-border",children:"/"}),(0,e.jsx)("span",{className:"font-mono",children:c.model})]}),(0,e.jsxs)("div",{className:"truncate text-muted-foreground",children:[X(c.biller)," · ",mt(c.billingType)]})]}),(0,e.jsxs)("div",{className:"text-right tabular-nums",children:[(0,e.jsxs)("div",{className:"font-medium",children:[m(c.costCents),(0,e.jsxs)("span",{className:"ml-1 font-normal text-muted-foreground",children:["(",k,"%)"]})]}),(0,e.jsxs)("div",{className:"text-muted-foreground",children:[M(c.inputTokens+c.cachedInputTokens+c.outputTokens)," tok"]})]})]},`${c.provider}:${c.model}:${c.billingType}`)})}):null]},t.agentId)})})]}),(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)(q,{children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-2",children:[(0,e.jsx)(L,{className:"text-base",children:"By project"}),(0,e.jsx)(_,{children:"Run costs attributed through project-linked tasks."})]}),(0,e.jsx)(F,{className:"space-y-2 px-5 pb-5 pt-2",children:(a?.byProject.length??0)===0?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No project-attributed run costs yet."}):a?.byProject.map((t,s)=>(0,e.jsxs)("div",{className:"flex items-center justify-between gap-3 border border-border px-3 py-2 text-sm",children:[(0,e.jsx)("span",{className:"truncate",children:t.projectName??t.projectId??"Unattributed"}),(0,e.jsx)("span",{className:"font-medium tabular-nums",children:m(t.costCents)})]},t.projectId??`unattributed-${s}`))})]}),(0,e.jsx)(Ee,{rows:Be.slice(0,6),emptyMessage:"No finance events yet. Add account-level charges once biller invoices or credits land."})]})]})]})}),(0,e.jsx)(B,{value:"budgets",className:"mt-4 space-y-4",children:Ue?(0,e.jsx)(se,{variant:"costs"}):ce?(0,e.jsx)("p",{className:"text-sm text-destructive",children:ce.message}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(q,{className:"border-border/70 bg-(image:--gradient-extract-2)",children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-3",children:[(0,e.jsx)(L,{className:"text-base",children:"Budget control plane"}),(0,e.jsx)(_,{children:"Hard-stop spend limits for agents and projects. Provider subscription quota stays separate and appears under Providers."})]}),(0,e.jsxs)(F,{className:"grid gap-3 px-5 pb-5 pt-0 md:grid-cols-4",children:[(0,e.jsx)(C,{label:"Active incidents",value:String(I.length),subtitle:"Open soft or hard threshold crossings",icon:re}),(0,e.jsx)(C,{label:"Pending approvals",value:String(A?.pendingApprovalCount??0),subtitle:"Budget override approvals awaiting board action",icon:oe}),(0,e.jsx)(C,{label:"Paused agents",value:String(A?.pausedAgentCount??0),subtitle:"Agent heartbeats blocked by budget",icon:ie}),(0,e.jsx)(C,{label:"Paused projects",value:String(A?.pausedProjectCount??0),subtitle:"Project execution blocked by budget",icon:ne})]})]}),I.length>0?(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("h2",{className:"text-lg font-semibold",children:"Active incidents"}),(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Resolve hard stops here by raising the budget or explicitly keeping the scope paused."})]}),(0,e.jsx)("div",{className:"grid gap-4 xl:grid-cols-2",children:I.map(t=>(0,e.jsx)(Ae,{incident:t,isMutating:E.isPending,onKeepPaused:o(()=>E.mutate({incidentId:t.id,action:"keep_paused"}),"onKeepPaused"),onRaiseAndResume:o(s=>E.mutate({incidentId:t.id,action:"raise_budget_and_resume",amount:s}),"onRaiseAndResume")},t.id))})]}):null,(0,e.jsxs)("div",{className:"space-y-5",children:[["company","agent","project"].map(t=>{const s=tt[t];return s.length===0?null:(0,e.jsxs)("section",{className:"space-y-3",children:[(0,e.jsxs)("div",{children:[(0,e.jsxs)("h2",{className:"text-lg font-semibold capitalize",children:[t," budgets"]}),(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:t==="company"?"Company-wide monthly policy.":t==="agent"?"Recurring monthly spend policies for individual agents.":"Lifetime spend policies for execution-bound projects."})]}),(0,e.jsx)("div",{className:"grid gap-4 xl:grid-cols-2",children:s.map(n=>(0,e.jsx)(Tt,{summary:n,isSaving:me.isPending,onSave:o(r=>me.mutate({scopeType:n.scopeType,scopeId:n.scopeId,amount:r,windowKind:n.windowKind}),"onSave")},n.policyId))})]},t)}),W.length===0?(0,e.jsx)(q,{children:(0,e.jsx)(F,{className:"px-5 py-8 text-sm text-muted-foreground",children:"No budget policies yet. Set agent and project budgets from their detail pages, or use the existing company monthly budget control."})}):null]})]})}),(0,e.jsx)(B,{value:"providers",className:"mt-4 space-y-4",children:J?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a start and end date to load data."}):(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(te,{value:V,onValueChange:de,children:[(0,e.jsx)(Ke,{items:Ze,value:V}),(0,e.jsx)(B,{value:"all",className:"mt-4",children:Y.length===0?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No cost events in this period."}):(0,e.jsx)("div",{className:"grid gap-4 md:grid-cols-2",children:Y.map(t=>(0,e.jsx)(De,{provider:t,rows:w.get(t)??[],budgetMonthlyCents:a?.summary.budgetCents??0,totalCompanySpendCents:a?.summary.spendCents??0,weekSpendCents:je.get(t)??0,windowRows:Ne.get(t)??[],showDeficitNotch:Te.get(t)??!1,quotaWindows:Ce.get(t)??[],quotaError:we.get(t)??null,quotaSource:ke.get(t)??null,quotaLoading:ye},t))})}),Y.map(t=>(0,e.jsx)(B,{value:t,className:"mt-4",children:(0,e.jsx)(De,{provider:t,rows:w.get(t)??[],budgetMonthlyCents:a?.summary.budgetCents??0,totalCompanySpendCents:a?.summary.spendCents??0,weekSpendCents:je.get(t)??0,windowRows:Ne.get(t)??[],showDeficitNotch:Te.get(t)??!1,quotaWindows:Ce.get(t)??[],quotaError:we.get(t)??null,quotaSource:ke.get(t)??null,quotaLoading:ye})},t))]})})}),(0,e.jsx)(B,{value:"billers",className:"mt-4 space-y-4",children:J?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a start and end date to load data."}):(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(te,{value:H,onValueChange:le,children:[(0,e.jsx)(Ke,{items:et,value:H}),(0,e.jsx)(B,{value:"all",className:"mt-4",children:U.length===0?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No billable events in this period."}):(0,e.jsx)("div",{className:"grid gap-4 md:grid-cols-2",children:U.map(t=>{const s=(T.get(t)??[])[0];if(!s)return null;const n=(Q??[]).filter(r=>r.biller===t);return(0,e.jsx)(Fe,{row:s,weekSpendCents:fe.get(t)??0,budgetMonthlyCents:a?.summary.budgetCents??0,totalCompanySpendCents:a?.summary.spendCents??0,providerRows:n},t)})})}),U.map(t=>{const s=(T.get(t)??[])[0];if(!s)return null;const n=(Q??[]).filter(r=>r.biller===t);return(0,e.jsx)(B,{value:t,className:"mt-4",children:(0,e.jsx)(Fe,{row:s,weekSpendCents:fe.get(t)??0,budgetMonthlyCents:a?.summary.budgetCents??0,totalCompanySpendCents:a?.summary.spendCents??0,providerRows:n})},t)})]})})}),(0,e.jsx)(B,{value:"finance",className:"mt-4 space-y-4",children:J?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a start and end date to load data."}):pe?(0,e.jsx)(se,{variant:"costs"}):Z?(0,e.jsx)("p",{className:"text-sm text-destructive",children:Z.message}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Re,{debitCents:p?.summary.debitCents??0,creditCents:p?.summary.creditCents??0,netCents:p?.summary.netCents??0,estimatedDebitCents:p?.summary.estimatedDebitCents??0,eventCount:p?.summary.eventCount??0}),(0,e.jsxs)("div",{className:"grid gap-4 xl:grid-cols-(--gtc-33)",children:[(0,e.jsxs)("div",{className:"space-y-4",children:[(0,e.jsxs)(q,{children:[(0,e.jsxs)($,{className:"px-5 pt-5 pb-2",children:[(0,e.jsx)(L,{className:"text-base",children:"By biller"}),(0,e.jsx)(_,{children:"Account-level financial events grouped by who charged or credited them."})]}),(0,e.jsx)(F,{className:"grid gap-4 px-5 pb-5 pt-2 md:grid-cols-2",children:(p?.byBiller.length??0)===0?(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No finance events yet."}):p?.byBiller.map(t=>(0,e.jsx)(jt,{row:t},t.biller))})]}),(0,e.jsx)(Ee,{rows:Be})]}),(0,e.jsx)(Ct,{rows:p?.byKind??[]})]})]})})]})]})}o(zt,"Costs");export{zt as Costs};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var o=Object.defineProperty;var e=(t,r)=>o(t,"name",{value:r,configurable:!0});import{i as s}from"./rolldown-runtime-ZpX3ckPj.js";import{Oi as a,S as i}from"./agent-avatar-url-BcyFoVtv.js";var n=s(a(),1);function c({className:t,...r}){return(0,n.jsx)("div",{"data-slot":"skeleton",className:i("bg-accent/75 rounded-md",t),...r})}e(c,"Skeleton");export{c as t};
|