@lacneu/atrium 0.40.0 → 0.41.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/AccessTab-Dxz0E_KE.js +1 -0
- package/dist/assets/{AdvancedFilter-C0THAQ2E.js → AdvancedFilter-B31lk9q3.js} +1 -1
- package/dist/assets/AgentFilesTab-DeCWC1w-.js +3 -0
- package/dist/assets/AnomaliesTab-CrtrCVM2.js +1 -0
- package/dist/assets/AuditTab-BBsxqs3y.js +1 -0
- package/dist/assets/BridgeTab-BVZtXJSI.js +1 -0
- package/dist/assets/ChatDefaultsTab-DLvh7i7g.js +1 -0
- package/dist/assets/DataTableShell-2dt7qzK1.js +1 -0
- package/dist/assets/{DetailChips-jl8VAars.js → DetailChips-PeX_dqPr.js} +1 -1
- package/dist/assets/FeedbacksTab-CWlAV3go.js +1 -0
- package/dist/assets/{FieldLabel-B8G-MYNo.js → FieldLabel-DLQqitFA.js} +2 -2
- package/dist/assets/FilesTab-BKNZcTjL.js +1 -0
- package/dist/assets/{FilterBar-DRUEEKsU.js → FilterBar-C4F1dTQ_.js} +1 -1
- package/dist/assets/GroupsTab-B8NcjrCa.js +1 -0
- package/dist/assets/InstancesTab-0dB_8WYK.js +1 -0
- package/dist/assets/IntegrationsTab-DxwU-vz4.js +1 -0
- package/dist/assets/KpiTab-I_L7bxeO.js +1 -0
- package/dist/assets/PreferencesTab-Civ5ZM-T.js +1 -0
- package/dist/assets/PromptInjectionsTab-Se2h3t86.js +4 -0
- package/dist/assets/RolesTab-DzHzo0im.js +1 -0
- package/dist/assets/ServiceAccountsTab-BI3REx76.js +1 -0
- package/dist/assets/SubAgentReportsTab-CdEDescp.js +1 -0
- package/dist/assets/ThemeShowroom-_GVi_9TD.js +1 -0
- package/dist/assets/{TimeRangePicker-D48D83Oh.js → TimeRangePicker-BCP5a7nZ.js} +1 -1
- package/dist/assets/TracesTab-Vf93xOCT.js +1 -0
- package/dist/assets/UsersTab-BTN0I3fC.js +1 -0
- package/dist/assets/VoiceTab-CBjiLYeR.js +1 -0
- package/dist/assets/{button-CckfHMbj.js → button-CW3POj4v.js} +1 -1
- package/dist/assets/{card-DypYZQqW.js → card-DejnuKjD.js} +1 -1
- package/dist/assets/chevrons-up-down-CTpaTY5v.js +1 -0
- package/dist/assets/compatView-C2GqOCte.js +1 -0
- package/dist/assets/{confTabs-O2Cp4dmA.css → confTabs-C35Io1ep.css} +1 -1
- package/dist/assets/dispatchErrorInfo-DO-P1x_v.js +1 -0
- package/dist/assets/dist-0NlyORTv.js +44 -0
- package/dist/assets/{dist-B9DB48K7.js → dist-D34PU2vz.js} +1 -1
- package/dist/assets/{dist-CM845ILS.js → dist-PBgCwwDJ.js} +1 -1
- package/dist/assets/{dist-4hLW9pCQ.js → dist-cyUFYUNU.js} +1 -1
- package/dist/assets/{highlighted-body-OFNGDK62-DNPEG4ak.js → highlighted-body-OFNGDK62-DK7X_glc.js} +1 -1
- package/dist/assets/{index-BXEqld-9.css → index-B0GLWnUI.css} +1 -1
- package/dist/assets/index-Oefe3uVe.js +233 -0
- package/dist/assets/mermaid-GHXKKRXX-Ck3CTZBR.js +1 -0
- package/dist/assets/roleDescriptions-C_V0jprM.js +1 -0
- package/dist/assets/{table-CnKDuavw.js → table-BytigxuJ.js} +1 -1
- package/dist/assets/{tabs-DqVkAM7O.js → tabs-j7vaNyRB.js} +1 -1
- package/dist/assets/x-C93RBiVN.js +1 -0
- package/dist/index.html +8 -8
- package/package.json +1 -1
- package/dist/assets/AccessTab-BUu-z3sx.js +0 -1
- package/dist/assets/AgentFilesTab-CofVyQgk.js +0 -3
- package/dist/assets/AnomaliesTab-Bq3RmQHz.js +0 -1
- package/dist/assets/AuditTab-BS5US2vo.js +0 -1
- package/dist/assets/BridgeTab-BRhL8-C3.js +0 -1
- package/dist/assets/ChatDefaultsTab-DaSmKDML.js +0 -1
- package/dist/assets/DataTableShell-u1nLRhQM.js +0 -1
- package/dist/assets/FeedbacksTab-B7hyTj7i.js +0 -1
- package/dist/assets/FilesTab-CsZJjp3v.js +0 -1
- package/dist/assets/GroupsTab-Dash5os_.js +0 -1
- package/dist/assets/InstancesTab-M-1_F4WA.js +0 -1
- package/dist/assets/IntegrationsTab-DPL5iBqB.js +0 -1
- package/dist/assets/KpiTab-BXsIWGMh.js +0 -1
- package/dist/assets/PreferencesTab-BX3y939D.js +0 -1
- package/dist/assets/PromptInjectionsTab-Cnu3mata.js +0 -4
- package/dist/assets/RolesTab-BR7F3TsM.js +0 -1
- package/dist/assets/ServiceAccountsTab-Do8ADcys.js +0 -1
- package/dist/assets/SubAgentReportsTab-638o4lZF.js +0 -1
- package/dist/assets/ThemeShowroom-BZIH2Ja8.js +0 -1
- package/dist/assets/TracesTab-DrJDpSUE.js +0 -1
- package/dist/assets/UsersTab-BhMKwkaB.js +0 -1
- package/dist/assets/chevrons-up-down-DGKOAhJM.js +0 -1
- package/dist/assets/compatView-ZCfRu3f5.js +0 -1
- package/dist/assets/dispatchErrorInfo-DioyF49L.js +0 -1
- package/dist/assets/dist-0orl0RkM.js +0 -44
- package/dist/assets/index-CFTFwlx0.js +0 -231
- package/dist/assets/mermaid-GHXKKRXX-DmskwXIX.js +0 -1
- package/dist/assets/roleDescriptions-DHFs-TkY.js +0 -1
- package/dist/assets/x-DBdlW6Pd.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,l as t,r as n}from"./bundle-mjs-C73ZY4La.js";import{$C as r,$g as i,AC as a,Ag as o,Bg as s,CC as c,Cg as l,D as u,DC as d,Dg as f,E as p,EC as m,Eg as h,FC as g,Fg as _,GC as v,Gg as y,HC as b,Hg as ee,IC as te,Ig as ne,JC as x,Jg as re,Jt as S,KC as C,Kg as ie,Kt as w,LC as ae,Lg as oe,MC as T,Mg as se,NC as E,Ng as ce,OC as le,Og as ue,PC as de,Pg as fe,QC as pe,Qg as me,Rg as he,TC as ge,Tg as _e,UC as D,Ug as ve,Vg as ye,WC as be,Wg as xe,XC as O,Xg as Se,YC as k,Yg as Ce,ZC as we,Zg as Te,a_ as Ee,aw as A,cw as j,dw as M,e_ as De,ej as N,ew as P,fw as Oe,i_ as ke,iw as Ae,jC as je,jg as Me,kC as Ne,kg as Pe,lw as Fe,n_ as Ie,nw as Le,o_ as Re,ow as ze,qC as Be,qg as Ve,qt as He,r_ as Ue,rw as We,s_ as Ge,sw as Ke,t_ as qe,tj as F,tw as Je,uw as Ye,wC as Xe,wg as Ze,zg as Qe}from"./dist-0NlyORTv.js";import{n as $e}from"./dist-cyUFYUNU.js";import{t as et}from"./x-C93RBiVN.js";import{i as I,n as L,r as tt,t as nt}from"./tabs-j7vaNyRB.js";import{t as R}from"./button-CW3POj4v.js";import{A as z,Bt as rt,C as B,It as it,Mt as at,N as ot,Nt as st,S as V,Vt as ct,a as lt,at as H,b as U,ct as ut,dt,ft,ht as pt,i as mt,j as ht,lt as gt,o as _t,r as vt,st as yt,w as W,x as G}from"./index-Oefe3uVe.js";import{n as K}from"./TimeRangePicker-BCP5a7nZ.js";import{t as bt}from"./FilterBar-C4F1dTQ_.js";import{t as xt}from"./AdvancedFilter-B31lk9q3.js";import{t as St}from"./DataTableShell-2dt7qzK1.js";var Ct=u(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),wt=u(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),q=t(e(),1),J=n(),Y={kind:`relative`,from:`now-520w`,to:`now`},X=e=>e===null?`-`:String(Math.round(e));function Tt(e){let t=e.indexOf(`:`);if(t<0)return e;let n=e.slice(0,t),r=e.slice(t+1);return n===`admin`?Be():n===`agent`?`${C()} - ${r}`:e}function Et(){let e=F(p.me.getMe,{host:pt})?.role===`admin`,t=F(p.deliveryTiming.getDeliveryStatus,{}),n=N(p.deliveryTiming.startDeliveryRecord),r=N(p.deliveryTiming.stopDeliveryRecord),[i,a]=(0,q.useState)(!1),[o,s]=(0,q.useState)(!1),c=t?.recording??!1,l=async()=>{s(!0);try{c?await r({}):await n({})}finally{s(!1)}};return(0,J.jsxs)(`section`,{className:`mb-4 flex flex-col gap-3 rounded-lg border border-border p-4`,children:[(0,J.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`h3`,{className:`text-sm font-semibold`,children:Oe()}),(0,J.jsx)(`p`,{className:`oc-admin__hint`,children:M()})]}),e?(0,J.jsx)(R,{variant:c?`destructive`:`default`,size:`sm`,disabled:o||t===void 0,onClick:()=>void l(),children:c?Fe():Ye()}):null]}),c?(0,J.jsxs)(`p`,{className:`flex items-center gap-2 text-sm`,children:[(0,J.jsx)(H,{variant:`secondary`,children:j()}),t?.startedAt?(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:Ke({time:ht(t.startedAt)})}):null]}):null,(0,J.jsx)(`div`,{children:(0,J.jsx)(R,{variant:`outline`,size:`sm`,onClick:()=>a(e=>!e),children:i?Ae():A()})}),i?(0,J.jsx)(Dt,{isAdmin:e}):null]})}function Dt({isAdmin:e}){let t=F(p.deliveryTiming.listDeliverySessions,{}),n=N(p.deliveryTiming.deleteDeliverySessions),[i,a]=(0,q.useState)(``),[o,s]=(0,q.useState)(`all`),[c,l]=(0,q.useState)(Y),[u,d]=(0,q.useState)(null),{from:f,to:m}=K(c),h=c.to===`now`?1/0:m,g=i.trim()!==``||o!==`all`||c!==Y,_=()=>{a(``),s(`all`),l(Y)},y=(0,q.useMemo)(()=>{if(t===void 0)return;let e=i.trim().toLowerCase();return t.filter(t=>(e===``||t.startedBy.toLowerCase().includes(e))&&(o===`all`||(o===`active`?t.active:!t.active))&&t.startedAt>=f&&t.startedAt<=h).map(e=>({...e,_id:e.sessionId}))},[t,i,o,f,h]),b=e=>{let t=new Set((y??[]).map(e=>e.sessionId)),r=e.filter(e=>t.has(e));r.length!==0&&(n({sessionIds:r}),u!==null&&r.includes(u)&&d(null))};return(0,J.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(bt,{q:i,onQChange:a,searchPlaceholder:Le(),timeRange:c,onTimeRangeChange:l,onReset:_,canReset:g,children:(0,J.jsxs)(U,{value:o,onValueChange:e=>s(e),children:[(0,J.jsx)(B,{size:`sm`,className:`w-36`,children:(0,J.jsx)(W,{})}),(0,J.jsxs)(G,{children:[(0,J.jsx)(V,{value:`all`,children:Je()}),(0,J.jsx)(V,{value:`active`,children:P()}),(0,J.jsx)(V,{value:`stopped`,children:r()})]})]})}),(0,J.jsx)(St,{title:We(),rows:y,emptyHint:Xe(),columns:[{header:``,className:`w-8`,cell:e=>(0,J.jsx)(R,{variant:`ghost`,size:`icon`,"aria-label":u===e.sessionId?be():v(),onClick:()=>d(t=>t===e.sessionId?null:e.sessionId),children:u===e.sessionId?(0,J.jsx)(Ct,{size:15,"aria-hidden":!0}):(0,J.jsx)(st,{size:15,"aria-hidden":!0})})},{header:pe(),sort:e=>e.startedAt,cell:e=>(0,J.jsx)(`span`,{className:`tabular-nums`,children:z(e.startedAt)})},{header:we(),sort:e=>e.stoppedAt,cell:e=>e.stoppedAt===null?(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:`-`}):(0,J.jsx)(`span`,{className:`tabular-nums`,children:z(e.stoppedAt)})},{header:O(),sort:e=>e.count,cell:e=>(0,J.jsx)(`span`,{className:`tabular-nums`,children:X(e.count)})},{header:k(),sort:e=>e.startedBy,cell:e=>Tt(e.startedBy)},{header:x(),sort:e=>e.active,cell:e=>e.active?(0,J.jsx)(H,{variant:`secondary`,children:P()}):(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:r()})}],rowActions:e?e=>[{label:D(),variant:`destructive`,onSelect:()=>b([e.sessionId])}]:void 0,bulkActions:e?[{label:D(),variant:`destructive`,onSelect:e=>b(e)}]:void 0,isExpanded:e=>e.sessionId===u,renderExpanded:e=>(0,J.jsx)(Ot,{sessionId:e.sessionId})})]})}function Ot({sessionId:e}){let t=F(p.deliveryTiming.getDeliveryReport,{sessionId:e}),[n,r]=(0,q.useState)(!1);return(0,J.jsx)(kt,{report:t,copied:n,onCopy:()=>{t&&navigator.clipboard?.writeText(ot(t)).then(()=>{r(!0),window.setTimeout(()=>r(!1),1200)}).catch(()=>{})}})}function kt({report:e,copied:t,onCopy:n}){if(!e)return(0,J.jsx)(`p`,{className:`oc-admin__hint`,children:b()});if(e.count===0||e.segments===null)return(0,J.jsx)(`p`,{className:`oc-admin__hint`,children:ze()});let r=e.segments,i=(e,t)=>(0,J.jsxs)(`tr`,{className:`border-t border-border`,children:[(0,J.jsx)(`td`,{className:`py-1`,children:e}),(0,J.jsx)(`td`,{className:`py-1 text-right tabular-nums`,children:t.count}),(0,J.jsxs)(`td`,{className:`py-1 text-right tabular-nums`,children:[X(t.p50),` / `,X(t.p95),` / `,X(t.max)]})]});return(0,J.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[e.count,` `,c()]}),(0,J.jsxs)(R,{variant:`outline`,size:`sm`,onClick:n,children:[t?(0,J.jsx)($e,{size:13,"aria-hidden":!0}):(0,J.jsx)(it,{size:13,"aria-hidden":!0}),t?ge():m()]})]}),(0,J.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,J.jsx)(`thead`,{children:(0,J.jsxs)(`tr`,{className:`text-left text-muted-foreground`,children:[(0,J.jsx)(`th`,{className:`py-1 font-medium`,children:g()}),(0,J.jsx)(`th`,{className:`py-1 text-right font-medium`,children:de()}),(0,J.jsx)(`th`,{className:`py-1 text-right font-medium`,children:E()})]})}),(0,J.jsxs)(`tbody`,{children:[i(T(),r.bridge),i(je(),r.A),i(a(),r.C)]})]}),(0,J.jsx)(`p`,{className:`oc-admin__hint`,children:Ne()}),e.truncated?(0,J.jsx)(`p`,{className:`oc-admin__hint`,children:d()}):null,(0,J.jsx)(`p`,{className:`oc-admin__hint`,children:le()})]})}var At=[50,100,200,500],Z=`all`,Q=`__all__`,jt=[`2xx`,`4xx`,`5xx`],Mt=[`user`,`service`,`system`],Nt=[`inbound`,`outbound`,`internal`],Pt={kind:`relative`,from:`now-30d`,to:`now`},Ft=[{value:`kind`,label:`kind`},{value:`status`,label:`status`},{value:`latencyMs`,label:S()},{value:`principalType`,label:He()},{value:`direction`,label:`direction`},{value:`roleKey`,label:w()},{value:`route`,label:`route`},{value:`correlationId`,label:`correlationId`}];function It(){let e=ct({from:`/settings/traces`}),t=rt({from:`/settings/traces`}),n=e.limit,r=e.kind,a=e.statusClass??Q,c=e.principalType??Q,l=e.direction??Q,u=e.roleKey??Q,d=e.q??``,m=vt(e.from,e.to),g=(0,q.useMemo)(()=>_t(e.adv),[e.adv]),{from:v,to:b}=K(m),[x,S]=(0,q.useState)(null),[C,w]=(0,q.useState)(null),T=e=>void t({search:t=>({...t,limit:e})}),E=e=>void t({search:t=>({...t,kind:e})}),le=e=>void t({search:t=>({...t,q:e||void 0}),replace:!0}),de=e=>void t({search:t=>({...t,statusClass:e===Q?void 0:e})}),pe=e=>void t({search:t=>({...t,principalType:e===Q?void 0:e})}),ge=e=>void t({search:t=>({...t,direction:e===Q?void 0:e})}),_e=e=>void t({search:t=>({...t,roleKey:e===Q?void 0:e})}),D=e=>void t({search:t=>({...t,...lt(e)})}),be=e=>void t({search:t=>({...t,adv:mt(e)}),replace:!0}),O=F(p.observability.listEvents,{limit:n}),k=F(p.observability.listEvents,{limit:n,kind:r===Z?void 0:r,filter:{q:d||void 0,from:v,to:b,statusClass:a===Q?void 0:a,principalType:c===Q?void 0:c,direction:l===Q?void 0:l,roleKey:u===Q?void 0:u,advanced:g.length>0?g:void 0}}),we=(0,q.useMemo)(()=>{let e=new Set;for(let t of O??[])e.add(t.kind);return[...e].sort()},[O]),A=(0,q.useMemo)(()=>{let e=new Set;for(let t of O??[])t.roleKey&&e.add(t.roleKey);return[...e].sort()},[O]),j=d!==``||a!==Q||c!==Q||l!==Q||u!==Q||g.length>0||m.kind!==`relative`||m.from!==Pt.from;function M(){t({search:{limit:100,kind:`all`},replace:!0})}let N=x?O?.filter(e=>e.correlationId===x):k,[P,Oe]=(0,q.useState)(`events`);return(0,J.jsxs)(nt,{value:P,onValueChange:e=>Oe(e),children:[(0,J.jsxs)(tt,{className:`w-full`,children:[(0,J.jsxs)(I,{value:`latency`,className:`flex-1 gap-1.5`,children:[(0,J.jsx)(at,{size:13,"aria-hidden":!0}),ae()]}),(0,J.jsxs)(I,{value:`events`,className:`flex-1 gap-1.5`,children:[(0,J.jsx)(wt,{size:13,"aria-hidden":!0}),te()]})]}),(0,J.jsx)(L,{value:`latency`,children:(0,J.jsx)(Et,{})}),(0,J.jsxs)(L,{value:`events`,className:`flex flex-col gap-3`,children:[(0,J.jsxs)(`p`,{className:`oc-admin__hint`,children:[Ge(),(0,J.jsx)(`strong`,{children:Re()}),Ee(),` `,(0,J.jsx)(`span`,{className:`oc-filter__window`,children:ke()})]}),(0,J.jsxs)(bt,{q:d,onQChange:le,searchPlaceholder:Ue(),timeRange:m,onTimeRangeChange:D,onReset:M,canReset:j,children:[(0,J.jsxs)(U,{value:a,onValueChange:de,children:[(0,J.jsx)(B,{size:`sm`,className:`w-32`,children:(0,J.jsx)(W,{placeholder:Ie()})}),(0,J.jsxs)(G,{children:[(0,J.jsx)(V,{value:Q,children:qe()}),jt.map(e=>(0,J.jsx)(V,{value:e,children:e},e))]})]}),(0,J.jsxs)(U,{value:c,onValueChange:pe,children:[(0,J.jsx)(B,{size:`sm`,className:`w-32`,children:(0,J.jsx)(W,{placeholder:De()})}),(0,J.jsxs)(G,{children:[(0,J.jsx)(V,{value:Q,children:i()}),Mt.map(e=>(0,J.jsx)(V,{value:e,children:e},e))]})]}),(0,J.jsxs)(U,{value:l,onValueChange:ge,children:[(0,J.jsx)(B,{size:`sm`,className:`w-32`,children:(0,J.jsx)(W,{placeholder:me()})}),(0,J.jsxs)(G,{children:[(0,J.jsx)(V,{value:Q,children:Te()}),Nt.map(e=>(0,J.jsx)(V,{value:e,children:e},e))]})]}),(0,J.jsxs)(U,{value:u,onValueChange:_e,children:[(0,J.jsx)(B,{size:`sm`,className:`w-36`,children:(0,J.jsx)(W,{placeholder:Se()})}),(0,J.jsxs)(G,{children:[(0,J.jsx)(V,{value:Q,children:Ce()}),A.map(e=>(0,J.jsx)(V,{value:e,children:e},e))]})]}),(0,J.jsxs)(U,{value:r,onValueChange:E,children:[(0,J.jsx)(B,{size:`sm`,className:`w-44`,children:(0,J.jsx)(W,{placeholder:re()})}),(0,J.jsxs)(G,{children:[(0,J.jsx)(V,{value:Z,children:Ve()}),we.map(e=>(0,J.jsx)(V,{value:e,children:e},e))]})]}),(0,J.jsxs)(U,{value:String(n),onValueChange:e=>T(Number(e)),children:[(0,J.jsx)(B,{size:`sm`,className:`w-28`,children:(0,J.jsx)(W,{})}),(0,J.jsx)(G,{children:At.map(e=>(0,J.jsx)(V,{value:String(e),children:ie({count:e})},e))})]})]}),(0,J.jsx)(xt,{fields:Ft,seed:g,onChange:be}),x?(0,J.jsx)(`div`,{className:`oc-traces__followline`,children:(0,J.jsxs)(`button`,{type:`button`,className:`oc-traces__chip`,onClick:()=>S(null),title:y(),children:[(0,J.jsxs)(`span`,{className:`oc-traces__chip-label`,children:[xe(),(0,J.jsx)(`code`,{children:$(x)})]}),(0,J.jsx)(et,{className:`oc-traces__chip-x`,"aria-hidden":!0}),(0,J.jsx)(`span`,{className:`sr-only`,children:ve()})]})}):null,(0,J.jsx)(St,{title:ee(),rows:N,emptyHint:x?ye():s(),columns:[{header:Qe(),sort:e=>e.at,cell:e=>(0,J.jsx)(`span`,{className:`oc-traces__time`,children:z(e.at)})},{header:he(),sort:e=>e.kind,cell:e=>(0,J.jsx)(H,{variant:`secondary`,children:e.kind})},{header:oe(),sort:e=>Rt(e)??null,cell:e=>{let t=Rt(e);return t?(0,J.jsxs)(`span`,{className:`oc-traces__fail`,title:t,children:[`✕ `,t]}):(0,J.jsx)(`span`,{className:`oc-traces__ok`,"aria-label":ne(),children:`✓`})}},{header:_(),sort:e=>e.direction,cell:e=>e.direction?(0,J.jsx)(H,{variant:`outline`,children:e.direction}):(0,J.jsx)(`span`,{className:`oc-traces__muted`,children:`—`})},{header:fe(),sort:e=>e.principalType,cell:e=>(0,J.jsxs)(`span`,{className:`oc-traces__principal`,children:[(0,J.jsx)(H,{variant:`outline`,children:e.principalType}),e.principalId?(0,J.jsx)(`code`,{className:`oc-traces__mono`,children:$(e.principalId)}):null]})},{header:ce(),sort:e=>e.roleKey,cell:e=>e.roleKey?(0,J.jsx)(H,{variant:`secondary`,children:e.roleKey}):(0,J.jsx)(`span`,{className:`oc-traces__muted`,children:`—`})},{header:se(),sort:e=>e.route,cell:e=>e.route?(0,J.jsxs)(`span`,{className:`oc-traces__route`,children:[e.method?(0,J.jsx)(`span`,{className:`oc-traces__method`,children:e.method}):null,(0,J.jsx)(`code`,{className:`oc-traces__mono`,children:e.route})]}):(0,J.jsx)(`span`,{className:`oc-traces__muted`,children:`—`})},{header:Me(),sort:e=>e.status,cell:e=>e.status===null?(0,J.jsx)(`span`,{className:`oc-traces__muted`,children:`—`}):(0,J.jsx)(`span`,{className:`oc-traces__status ${Lt(e.status)}`,children:e.status})},{header:o(),sort:e=>e.latencyMs,cell:e=>e.latencyMs===null?(0,J.jsx)(`span`,{className:`oc-traces__muted`,children:`—`}):(0,J.jsxs)(`span`,{className:`oc-traces__mono`,children:[e.latencyMs,` ms`]})},{header:Pe(),sort:e=>e.correlationId,cell:e=>e.correlationId?(0,J.jsx)(`button`,{type:`button`,className:`oc-traces__corr`,title:ue(),onClick:()=>S(e.correlationId),children:$(e.correlationId)}):(0,J.jsx)(`span`,{className:`oc-traces__muted`,children:`—`})},{header:f(),sort:e=>+!!e.meta,cell:e=>e.meta?(0,J.jsx)(R,{variant:`outline`,size:`sm`,onClick:()=>w(e),children:h()}):(0,J.jsx)(`span`,{className:`oc-traces__muted`,children:`—`})}]}),(0,J.jsx)(zt,{row:C,onClose:()=>w(null)})]})]})}function Lt(e){return e>=500?`oc-traces__status--5xx`:e>=400?`oc-traces__status--4xx`:e>=200&&e<300?`oc-traces__status--2xx`:`oc-traces__status--other`}function $(e){return e.length>8?e.slice(0,8):e}function Rt(e){if(typeof e.status==`number`&&e.status>=400)return String(e.status);if(!e.meta)return null;try{let t=JSON.parse(e.meta);if(e.kind===`openclaw.dispatch`&&t.dispatchStatus===`failed`)return t.errorCode??`failed`;if(e.kind===`assistant.stream`&&t.phase===`finalize`&&(t.streamStatus===`error`||t.streamStatus===`aborted`))return t.streamStatus;if(e.kind===`openclaw.ingest.denied`)return`denied`}catch{}return null}function zt({row:e,onClose:t}){let n=(0,q.useMemo)(()=>{if(!e?.meta)return``;try{return JSON.stringify(JSON.parse(e.meta),null,2)}catch{return e.meta}},[e]);return(0,J.jsx)(yt,{open:e!==null,onOpenChange:e=>{e||t()},children:e?(0,J.jsxs)(ut,{className:`max-w-lg`,children:[(0,J.jsxs)(dt,{children:[(0,J.jsxs)(ft,{className:`oc-traces__meta-title`,children:[_e(),` `,(0,J.jsx)(`code`,{children:e.kind}),(0,J.jsx)(H,{variant:`outline`,children:Ze()})]}),(0,J.jsx)(gt,{children:l()})]}),(0,J.jsx)(`pre`,{className:`oc-traces__meta-json`,children:n})]}):null})}export{It as TracesTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,l as t,r as n}from"./bundle-mjs-C73ZY4La.js";import{Ax as r,Bh as i,Bx as a,Cx as o,Dx as s,E as c,Ex as l,Fx as u,Gh as d,Hh as f,Hx as p,Ix as m,Jh as h,Kh as g,Lh as _,Lx as v,Mx as ee,Nx as te,Ox as ne,Px as re,Rh as y,Rx as ie,Sx as ae,Tx as oe,Uh as b,Vh as x,Vx as S,Wh as C,Yb as w,Yh as T,_x as se,bl as E,bx as ce,ej as D,gx as le,hx as ue,jx as de,kx as fe,mx as pe,qh as O,tj as k,vx as me,wx as he,xl as A,xx as ge,yl as j,yx as _e,zh as M,zx as N}from"./dist-0NlyORTv.js";import{t as P}from"./button-CW3POj4v.js";import{$ as F,B as I,Bt as ve,C as L,Et as R,S as z,Tt as B,V as ye,Vt as be,at as V,b as H,c as xe,ct as Se,dt as Ce,et as we,ft as Te,ht as Ee,it as De,l as U,lt as Oe,nt as ke,p as W,s as G,st as Ae,tt as je,w as K,x as q,z as J}from"./index-Oefe3uVe.js";import{t as Y}from"./FilterBar-C4F1dTQ_.js";import{t as Me}from"./DataTableShell-2dt7qzK1.js";import{t as Ne}from"./DetailChips-PeX_dqPr.js";var X=t(e(),1),Z=n();function Pe({profileId:e,userLabel:t,open:n,onOpenChange:r}){let i=k(c.agents.listAgentPoolForUser,n&&e?{profileId:e}:`skip`),a=k(c.agents.listUserAgents,n&&e?{profileId:e}:`skip`),o=new Set((a??[]).map(e=>`${e.instanceName}/${e.agentId}`)),s=(a??[]).find(e=>e.isDefault)??null,l=s?`${s.instanceName}/${s.agentId}`:null,u=new Set((i?.agents??[]).map(e=>`${e.instanceName}/${e.agentId}`)),p=[...(i?.agents??[]).map(e=>({...e,outOfPool:!1})),...(a??[]).filter(e=>!u.has(`${e.instanceName}/${e.agentId}`)).map(e=>({instanceName:e.instanceName,agentId:e.agentId,displayName:e.displayName,emoji:e.emoji,model:e.model,kind:e.kind,state:e.state,outOfPool:!0}))],m=new Map;for(let e of p){let t=m.get(e.instanceName)??[];t.push(e),m.set(e.instanceName,t)}return(0,Z.jsx)(Ae,{open:n,onOpenChange:r,children:(0,Z.jsxs)(Se,{className:`oc-access`,children:[(0,Z.jsxs)(Ce,{children:[(0,Z.jsx)(Te,{children:T({user:t})}),(0,Z.jsx)(Oe,{children:h()})]}),i?(0,Z.jsx)(`p`,{className:`oc-access__hint`,children:i.inGroup?O():g()}):null,(0,Z.jsx)(`div`,{className:`oc-access__list`,children:i===void 0?(0,Z.jsx)(`p`,{className:`oc-access__hint`,children:d()}):p.length===0?(0,Z.jsx)(`p`,{className:`oc-access__hint`,children:f()}):[...m.entries()].map(([t,n])=>(0,Z.jsx)(Fe,{profileId:e,instanceName:t,kind:n[0].kind,agents:n,assigned:o,defaultKey:l},t))})]})})}function Fe({profileId:e,instanceName:t,kind:n,agents:r,assigned:a,defaultKey:o}){let s=D(c.agents.assignAgent),l=D(c.agents.removeAgent),u=D(c.agents.setDefaultAgent),d=J();if(!e)return null;async function f(n,r){try{r?await l({profileId:e,instanceName:t,agentId:n}):await s({profileId:e,instanceName:t,agentId:n})}catch(e){d.error(C(),e)}}async function p(n){try{await u({profileId:e,instanceName:t,agentId:n})}catch(e){d.error(b(),e)}}return(0,Z.jsxs)(`div`,{className:`oc-access__group`,children:[(0,Z.jsxs)(`div`,{className:`oc-access__instance`,children:[(0,Z.jsx)(R,{size:13,"aria-hidden":!0}),(0,Z.jsx)(`span`,{children:t}),(0,Z.jsx)(V,{variant:`outline`,className:`oc-access__kind`,children:n})]}),r.map(e=>{let n=`${t}/${e.agentId}`,r=a.has(n),s=o===n,c=e.state===`deleted`;return(0,Z.jsxs)(`div`,{className:`oc-access__row`,children:[(0,Z.jsx)(W,{checked:r,disabled:c&&!r,onCheckedChange:()=>void f(e.agentId,r),"aria-label":x({name:e.displayName??e.agentId})}),(0,Z.jsxs)(`span`,{className:`oc-access__label`,children:[e.emoji?`${e.emoji} `:``,e.displayName??e.agentId]}),e.model?(0,Z.jsx)(`span`,{className:`oc-access__model`,children:e.model}):null,c?(0,Z.jsx)(V,{variant:`outline`,className:`oc-access__gone`,children:i()}):null,e.outOfPool?(0,Z.jsx)(V,{variant:`outline`,className:`oc-access__gone`,children:M()}):null,r?s?(0,Z.jsx)(`span`,{className:`oc-access__fav`,role:`img`,"aria-label":y(),title:y(),children:(0,Z.jsx)(B,{size:14,fill:`currentColor`})}):(0,Z.jsx)(P,{type:`button`,size:`icon-sm`,variant:`ghost`,className:`oc-access__setdefault`,"aria-label":_(),title:_(),onClick:()=>void p(e.agentId),children:(0,Z.jsx)(B,{size:14})}):null]},e.agentId)})]})}var Q=`__all__`;function $(e){switch(e){case`pending`:return j();case`user`:return E();case`admin`:return A();default:return e}}function Ie({granted:e,onToggle:t}){let n=new Set(e),r=G.filter(e=>n.has(U[e])).length;return(0,Z.jsxs)(F,{children:[(0,Z.jsx)(De,{asChild:!0,children:(0,Z.jsx)(P,{variant:`outline`,size:`sm`,className:`h-8 w-36 justify-start font-normal`,children:r===0?p():S({count:r})})}),(0,Z.jsxs)(we,{align:`start`,className:`w-52`,children:[(0,Z.jsx)(ke,{children:a()}),G.map(e=>{let r=U[e];return(0,Z.jsxs)(je,{className:`gap-2`,onSelect:e=>{e.preventDefault(),t(r)},children:[(0,Z.jsx)(W,{checked:n.has(r),"aria-hidden":!0,tabIndex:-1,className:`pointer-events-none`}),(0,Z.jsx)(`span`,{children:xe[e]()})]},e)})]})]})}function Le(){let e=be({from:`/settings/users`}),t=ve({from:`/settings/users`}),n=e.q??``,i=e.role??Q,a=e=>void t({search:t=>({...t,q:e||void 0}),replace:!0}),d=e=>void t({search:t=>({...t,role:e===Q?void 0:e})}),f=k(c.admin.listUsers,{filter:{q:n||void 0,role:i===Q?void 0:i},withAgents:!0}),p=k(c.me.getMe,{host:Ee}),h=D(c.admin.setRole),g=D(c.admin.setUserPermissions),_=D(c.admin.startImpersonation),y=D(c.admin.deleteUser),b=D(c.admin.setUserName),x=I(),S=ye(),C=J(),[T,E]=(0,X.useState)(null),O=(0,X.useMemo)(()=>{let e=new Set([`pending`,`user`,`admin`]);for(let t of f??[])e.add(t.role);return[...e]},[f]),A=n!==``||i!==Q;function j(){t({search:{},replace:!0})}async function M(e){try{await h(e)}catch(e){C.error(N(),e)}}async function P(e){try{await g(e)}catch(e){C.error(ie(),e)}}async function F(e){let t=e.email||e.name||e.canonical||e.userId.slice(0,8);if(await x({title:de(),description:r({user:t}),confirmWord:fe(),confirmLabel:ne(),destructive:!0}))try{await y({profileId:e._id}),C.success(l({user:t}))}catch(e){C.error(s(),e)}}async function B(e){let t=e.email||e.name||e.userId.slice(0,8),n=await S({title:he(),label:o({user:t}),placeholder:ae(),defaultValue:e.name??``,confirmLabel:w()});if(n!==null)try{await b({profileId:e._id,name:n}),C.success(ge())}catch(e){C.error(ce(),e)}}return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Y,{q:n,onQChange:a,searchPlaceholder:v(),onReset:j,canReset:A,children:(0,Z.jsxs)(H,{value:i,onValueChange:d,children:[(0,Z.jsx)(L,{size:`sm`,className:`w-36`,children:(0,Z.jsx)(K,{})}),(0,Z.jsxs)(q,{children:[(0,Z.jsx)(z,{value:Q,children:m()}),O.map(e=>(0,Z.jsx)(z,{value:e,children:$(e)},e))]})]})}),(0,Z.jsx)(Me,{title:u(),rows:f,emptyHint:re(),rowActions:e=>{let t=[{label:pe(),onSelect:()=>E({profileId:e._id,label:e.email||e.name||e.canonical||e.userId.slice(0,8)})},{label:oe(),onSelect:()=>void B(e)}];return e.userId!==p?.userId&&t.push({label:te(),onSelect:()=>void _({profileId:e._id})},{label:ee(),variant:`destructive`,onSelect:()=>void F(e)}),t},columns:[{header:_e(),cell:e=>{let t=e.email||e.name||e.canonical||e.userId.slice(0,8),n=e.email&&e.name&&e.name!==e.email?e.name:null;return(0,Z.jsxs)(`div`,{className:`flex flex-col`,children:[(0,Z.jsx)(`span`,{children:t}),n?(0,Z.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:n}):null]})},sort:e=>e.email||e.name||e.canonical||e.userId},{header:me(),sort:e=>e.role===`admin`?2:+(e.role===`user`),cell:e=>(0,Z.jsxs)(H,{value:e.role,onValueChange:t=>void M({profileId:e._id,role:t}),children:[(0,Z.jsx)(L,{size:`sm`,className:`w-28`,children:(0,Z.jsx)(K,{})}),(0,Z.jsxs)(q,{children:[(0,Z.jsx)(z,{value:`pending`,children:$(`pending`)}),(0,Z.jsx)(z,{value:`user`,children:$(`user`)}),(0,Z.jsx)(z,{value:`admin`,children:$(`admin`)})]})]})},{header:se(),sort:e=>e.role===`admin`?9999:e.extraPermissions?.length??0,cell:e=>e.role===`admin`?(0,Z.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:le()}):(0,Z.jsx)(Ie,{granted:e.extraPermissions??[],onToggle:t=>{let n=new Set(e.extraPermissions??[]);n.has(t)?n.delete(t):n.add(t),P({profileId:e._id,permissions:[...n]})}})},{header:ue(),cell:e=>(0,Z.jsx)(Ne,{icon:(0,Z.jsx)(R,{size:12,"aria-hidden":!0}),total:e.agentCount??0,items:e.agents.map(e=>({label:e}))}),sort:e=>e.agentCount??0}]}),(0,Z.jsx)(Pe,{profileId:T?.profileId??null,userLabel:T?.label??``,open:T!==null,onOpenChange:e=>{e||E(null)}})]})}export{Le as UsersTab};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,l as t,r as n}from"./bundle-mjs-C73ZY4La.js";import{$ as r,A as i,E as a,G as o,H as s,J as c,JA as l,K as u,KA as d,M as f,N as p,Nc as m,P as h,Q as ee,U as g,W as _,X as v,Y as y,Z as b,at as x,ct as S,ds as te,dt as ne,ej as re,et as C,fs as w,ft as T,it as E,j as D,lt as O,nt as k,ot as A,ps as j,pt as M,q as N,rt as P,st as F,tj as I,tt as L,ut as R}from"./dist-0NlyORTv.js";import{t as z}from"./button-CW3POj4v.js";import{C as B,F as V,I as H,L as U,P as W,R as G,S as K,at as q,b as J,p as Y,w as X,x as Z}from"./index-Oefe3uVe.js";/* empty css */var Q=t(e(),1),$=n(),ie=[[`auto`,()=>A()],[`fr-FR`,()=>h()],[`en-US`,()=>p()],[`en-GB`,()=>f()],[`de-DE`,()=>D()],[`es-ES`,()=>i()]],ae=[[`0.75`,()=>E()],[`1`,()=>P()],[`1.25`,()=>k()],[`1.5`,()=>L()]];function oe({instance:e}){let t=re(a.admin.upsertInstanceConfig),n=e.config??{},i={enabled:n.voiceEnabled===!0,lang:typeof n.voiceLang==`string`?n.voiceLang:`auto`,rate:typeof n.voiceRate==`number`?String(n.voiceRate):`1`,autoRead:n.voiceAutoRead===!0},[o,s]=(0,Q.useState)(i),[c,u]=(0,Q.useState)(`idle`);(0,Q.useEffect)(()=>{s({enabled:n.voiceEnabled===!0,lang:typeof n.voiceLang==`string`?n.voiceLang:`auto`,rate:typeof n.voiceRate==`number`?String(n.voiceRate):`1`,autoRead:n.voiceAutoRead===!0}),u(`idle`)},[e._id]);let d=o.enabled!==i.enabled||o.lang!==i.lang||o.rate!==i.rate||o.autoRead!==i.autoRead;async function f(){u(`saving`);try{let n={...e.config??{}};n.voiceEnabled=o.enabled,o.lang===`auto`?delete n.voiceLang:n.voiceLang=o.lang;let r=Number.parseFloat(o.rate);!Number.isFinite(r)||r===1?delete n.voiceRate:n.voiceRate=r,o.autoRead?n.voiceAutoRead=!0:delete n.voiceAutoRead,await t({instanceId:e._id,config:n}),u(`done`)}catch{u(`error`)}}return(0,$.jsxs)(`section`,{className:`oc-voice__card`,children:[(0,$.jsxs)(`header`,{className:`oc-voice__cardhead`,children:[(0,$.jsx)(`span`,{className:`oc-voice__instance`,children:e.name}),(0,$.jsx)(q,{variant:`secondary`,children:e.kind===`hermes`?`Hermes`:`OpenClaw`})]}),(0,$.jsxs)(`label`,{className:`oc-cdefaults__inline`,style:{cursor:`pointer`},children:[(0,$.jsx)(Y,{checked:o.enabled,onCheckedChange:e=>s({...o,enabled:e===!0}),"aria-label":S()}),(0,$.jsx)(`span`,{className:`oc-cdefaults__label`,children:S()})]}),(0,$.jsxs)(`div`,{className:`oc-voice__row`,children:[(0,$.jsx)(`span`,{className:`oc-cdefaults__label`,children:F()}),(0,$.jsxs)(J,{value:o.lang,onValueChange:e=>s({...o,lang:e}),disabled:!o.enabled,children:[(0,$.jsx)(B,{size:`sm`,"aria-label":F(),children:(0,$.jsx)(X,{})}),(0,$.jsx)(Z,{children:ie.map(([e,t])=>(0,$.jsx)(K,{value:e,children:t()},e))})]})]}),(0,$.jsxs)(`div`,{className:`oc-voice__row`,children:[(0,$.jsx)(`span`,{className:`oc-cdefaults__label`,children:x()}),(0,$.jsxs)(J,{value:o.rate,onValueChange:e=>s({...o,rate:e}),disabled:!o.enabled,children:[(0,$.jsx)(B,{size:`sm`,"aria-label":x(),children:(0,$.jsx)(X,{})}),(0,$.jsx)(Z,{children:ae.map(([e,t])=>(0,$.jsx)(K,{value:e,children:t()},e))})]})]}),(0,$.jsxs)(`label`,{className:`oc-cdefaults__inline`,style:{cursor:`pointer`},children:[(0,$.jsx)(Y,{checked:o.autoRead,onCheckedChange:e=>s({...o,autoRead:e===!0}),disabled:!o.enabled,"aria-label":C()}),(0,$.jsx)(`span`,{className:`oc-cdefaults__label`,children:C()})]}),(0,$.jsx)(`p`,{className:`oc-cdefaults__help`,children:r()}),(0,$.jsxs)(`div`,{className:`oc-cdefaults__inline`,children:[(0,$.jsx)(z,{size:`sm`,disabled:!d||c===`saving`,onClick:()=>void f(),children:c===`saving`?m():j()}),(0,$.jsx)(z,{variant:`outline`,size:`sm`,disabled:!o.enabled,onClick:()=>{let e=Number.parseFloat(o.rate)||1;H(v(),{lang:V(o.lang,l()),rate:e})},children:ee()}),(0,$.jsx)(z,{variant:`ghost`,size:`sm`,onClick:()=>U(),children:b()})]}),c===`done`?(0,$.jsx)(`p`,{className:`oc-admin__hint`,role:`status`,children:w()}):null,c===`error`?(0,$.jsx)(`p`,{className:`oc-cdefaults__error`,role:`alert`,children:te()}):null]})}function se(){let e=I(a.admin.listInstances,{}),t=(0,Q.useMemo)(()=>G(),[]),n=(0,Q.useMemo)(()=>W(),[]);return(0,$.jsxs)(`div`,{className:`oc-admin__tab oc-voice`,children:[(0,$.jsx)(`p`,{className:`oc-admin__hint`,children:M()}),(0,$.jsxs)(`div`,{className:`oc-voice__support`,children:[(0,$.jsx)(q,{variant:t?`secondary`:`destructive`,children:t?T():ne()}),(0,$.jsx)(q,{variant:n?`secondary`:`destructive`,children:n?R():O()})]}),e===void 0?(0,$.jsx)(`p`,{className:`oc-admin__hint`,children:d()}):e.length===0?(0,$.jsx)(`p`,{className:`oc-admin__hint`,children:y()}):e.map(e=>(0,$.jsx)(oe,{instance:e},e._id)),(0,$.jsxs)(`section`,{className:`oc-voice__card`,children:[(0,$.jsxs)(`header`,{className:`oc-voice__cardhead`,children:[(0,$.jsx)(`span`,{className:`oc-voice__instance`,children:c()}),(0,$.jsx)(q,{variant:n?`secondary`:`outline`,children:n?g():s()})]}),(0,$.jsx)(`p`,{className:`oc-cdefaults__help`,children:N()})]}),(0,$.jsxs)(`section`,{className:`oc-voice__card`,children:[(0,$.jsxs)(`header`,{className:`oc-voice__cardhead`,children:[(0,$.jsx)(`span`,{className:`oc-voice__instance`,children:u()}),(0,$.jsx)(q,{variant:`outline`,children:o()})]}),(0,$.jsx)(`p`,{className:`oc-cdefaults__help`,children:_()})]})]})}export{se as VoiceTab};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{n,t as r,x as i}from"./dist-
|
|
1
|
+
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{n,t as r,x as i}from"./dist-0NlyORTv.js";e();var a=t(),o=r(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function s({className:e,variant:t=`default`,size:r=`default`,asChild:s=!1,...c}){return(0,a.jsx)(s?i:`button`,{"data-slot":`button`,"data-variant":t,"data-size":r,className:n(o({variant:t,size:r,className:e})),...c})}export{o as n,s as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{n}from"./dist-
|
|
1
|
+
import{a as e,r as t}from"./bundle-mjs-C73ZY4La.js";import{n}from"./dist-0NlyORTv.js";e();var r=t();function i({className:e,size:t=`default`,...i}){return(0,r.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:n(`group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,e),...i})}function a({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-header`,className:n(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3`,e),...t})}function o({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-title`,className:n(`font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...t})}function s({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-description`,className:n(`text-sm text-muted-foreground`,e),...t})}function c({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-content`,className:n(`px-4 group-data-[size=sm]/card:px-3`,e),...t})}function l({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:n(`flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3`,e),...t})}export{a,l as i,c as n,o,s as r,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e}from"./dist-0NlyORTv.js";var t=e(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ko as e,Tt as t,Xo as n,Yo as r,Zo as i,as as a,qo as o}from"./dist-0NlyORTv.js";var s=e=>typeof e==`string`?e:null;function c(e){return/^\d+\.\d+\.\d+$/.test(e)?e.split(`.`).map(e=>Number.parseInt(e,10)):null}function l(e,t){let n=c(e),r=c(t);if(n===null||r===null)return null;for(let e=0;e<3;e++){let t=n[e]-r[e];if(t!==0)return t}return 0}function u(e,t){if(e===null||t===null)return!1;let n=l(t,e.min);return n!==null&&n>=0}function d(e,t){let n={range:null,validatedVersions:[]};if(typeof e!=`object`||!e)return n;let r=e.providers;if(typeof r!=`object`||!r)return n;let i=r[t];if(typeof i!=`object`||!i)return n;let a=i,o=null;if(typeof a.supportedRange==`object`&&a.supportedRange!==null){let e=a.supportedRange,t=s(e.min),n=s(e.maxValidated);t!==null&&n!==null&&(o={min:t,maxValidated:n})}let c=Array.isArray(a.validatedVersions)?a.validatedVersions.filter(e=>typeof e==`string`):[];return{range:o,validatedVersions:c}}function f(e,t,n){if(e===null)return`unknown`;let{range:r}=d(n,t);return u(r,e)?r!==null&&(l(e,r.maxValidated)??0)>0?`beyond`:`supported`:`unknown`}function p(e){return e===`supported`?i():e===`beyond`?n():r()}function m(e){return e??a()}function h(n,r){return r&&r!==`openclaw`?t({provider:r}):n===null?e():o({version:n})}function g(e,t){if(typeof e!=`object`||!e)return!1;let n=e.providers;return typeof n!=`object`||!n?!1:t in n}export{m as a,h as i,g as n,l as o,p as r,d as s,f as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.oc-afiles{flex-direction:column;gap:.75rem;display:flex}.oc-afiles__picker{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.oc-afiles__list{border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;display:flex;overflow:hidden}.oc-afiles__row{border-bottom:1px solid var(--border);align-items:center;gap:.75rem;padding:.5rem .75rem;font-size:.85rem;display:flex}.oc-afiles__row:last-child{border-bottom:none}.oc-afiles__name{text-overflow:ellipsis;white-space:nowrap;flex:0 0 10rem;font-weight:500;overflow:hidden}.oc-afiles__size{text-align:right;color:var(--muted-foreground);font-variant-numeric:tabular-nums;flex:0 0 4.5rem}.oc-afiles__gauge{background:var(--muted);border-radius:999px;flex:6rem;height:.375rem;overflow:hidden}.oc-afiles__gauge-fill{border-radius:inherit;background:var(--primary);height:100%;display:block}.oc-afiles__gauge.is-warn .oc-afiles__gauge-fill{background:var(--destructive)}.oc-afiles__pct{text-align:right;color:var(--muted-foreground);font-variant-numeric:tabular-nums;flex:0 0 3rem}.oc-afiles__warn{color:var(--destructive);flex:none}.oc-afiles__warn-slot{flex:none;width:14px}.oc-afiles__open{margin-left:auto}.oc-afiles__budget{color:var(--muted-foreground);font-size:.8rem}.oc-afiles__error,.oc-cdefaults__error{color:var(--destructive);align-items:center;gap:.5rem;font-size:.85rem;display:flex}[data-slot=dialog-content].oc-afiles__editor{flex-direction:column;width:calc(100vw - 2rem);max-width:72rem;height:calc(100vh - 2rem);max-height:none;display:flex}.oc-afiles__source{resize:none;min-height:0;font-family:var(--font-mono,ui-monospace, monospace);border:1px solid var(--border);border-radius:var(--radius);background:var(--background);color:var(--foreground);flex:auto;padding:.75rem;font-size:.8rem;line-height:1.5}.oc-afiles__source:focus-visible{outline:2px solid var(--ring);outline-offset:-1px}.oc-afiles__hint{color:var(--muted-foreground);font-size:.75rem}.oc-afiles__editor-foot{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.oc-afiles__count{color:var(--muted-foreground);font-variant-numeric:tabular-nums;font-size:.8rem}.oc-afiles__count.is-over{color:var(--destructive);font-weight:600}.oc-afiles__diff{flex-direction:column;gap:.5rem;max-height:14rem;display:flex;overflow-y:auto}.oc-afiles__diff-counts{font-size:.85rem;font-weight:500}.oc-afiles__diff-block{flex-direction:column;gap:.125rem;display:flex}.oc-afiles__diff-label{color:var(--muted-foreground);font-size:.75rem}.oc-afiles__diff-line{border-radius:calc(var(--radius) / 2);white-space:pre-wrap;word-break:break-word;padding:.125rem .375rem;font-size:.75rem}.oc-afiles__diff-line.is-add{background:color-mix(in oklab, var(--primary) 12%, transparent)}.oc-afiles__diff-line.is-del{background:color-mix(in oklab, var(--destructive) 12%, transparent);text-decoration:line-through}.oc-cdefaults{flex-direction:column;gap:.75rem;max-width:36rem;display:flex}.oc-cdefaults__row{border-bottom:1px solid var(--border);flex-direction:column;gap:.375rem;padding:.625rem 0;display:flex}.oc-cdefaults__label{font-size:.85rem;font-weight:500}.oc-cdefaults__help,.oc-cdefaults__note{color:var(--muted-foreground);margin:0;font-size:.75rem}.oc-cdefaults__actions{justify-content:flex-end;display:flex}
|
|
1
|
+
.oc-afiles{flex-direction:column;gap:.75rem;display:flex}.oc-afiles__picker{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.oc-afiles__list{border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;display:flex;overflow:hidden}.oc-afiles__row{border-bottom:1px solid var(--border);align-items:center;gap:.75rem;padding:.5rem .75rem;font-size:.85rem;display:flex}.oc-afiles__row:last-child{border-bottom:none}.oc-afiles__name{text-overflow:ellipsis;white-space:nowrap;flex:0 0 10rem;font-weight:500;overflow:hidden}.oc-afiles__size{text-align:right;color:var(--muted-foreground);font-variant-numeric:tabular-nums;flex:0 0 4.5rem}.oc-afiles__gauge{background:var(--muted);border-radius:999px;flex:6rem;height:.375rem;overflow:hidden}.oc-afiles__gauge-fill{border-radius:inherit;background:var(--primary);height:100%;display:block}.oc-afiles__gauge.is-warn .oc-afiles__gauge-fill{background:var(--destructive)}.oc-afiles__pct{text-align:right;color:var(--muted-foreground);font-variant-numeric:tabular-nums;flex:0 0 3rem}.oc-afiles__warn{color:var(--destructive);flex:none}.oc-afiles__warn-slot{flex:none;width:14px}.oc-afiles__open{margin-left:auto}.oc-afiles__budget{color:var(--muted-foreground);font-size:.8rem}.oc-afiles__error,.oc-cdefaults__error{color:var(--destructive);align-items:center;gap:.5rem;font-size:.85rem;display:flex}[data-slot=dialog-content].oc-afiles__editor{flex-direction:column;width:calc(100vw - 2rem);max-width:72rem;height:calc(100vh - 2rem);max-height:none;display:flex}.oc-afiles__source{resize:none;min-height:0;font-family:var(--font-mono,ui-monospace, monospace);border:1px solid var(--border);border-radius:var(--radius);background:var(--background);color:var(--foreground);flex:auto;padding:.75rem;font-size:.8rem;line-height:1.5}.oc-afiles__source:focus-visible{outline:2px solid var(--ring);outline-offset:-1px}.oc-afiles__hint{color:var(--muted-foreground);font-size:.75rem}.oc-afiles__editor-foot{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.oc-afiles__count{color:var(--muted-foreground);font-variant-numeric:tabular-nums;font-size:.8rem}.oc-afiles__count.is-over{color:var(--destructive);font-weight:600}.oc-afiles__diff{flex-direction:column;gap:.5rem;max-height:14rem;display:flex;overflow-y:auto}.oc-afiles__diff-counts{font-size:.85rem;font-weight:500}.oc-afiles__diff-block{flex-direction:column;gap:.125rem;display:flex}.oc-afiles__diff-label{color:var(--muted-foreground);font-size:.75rem}.oc-afiles__diff-line{border-radius:calc(var(--radius) / 2);white-space:pre-wrap;word-break:break-word;padding:.125rem .375rem;font-size:.75rem}.oc-afiles__diff-line.is-add{background:color-mix(in oklab, var(--primary) 12%, transparent)}.oc-afiles__diff-line.is-del{background:color-mix(in oklab, var(--destructive) 12%, transparent);text-decoration:line-through}.oc-cdefaults{flex-direction:column;gap:.75rem;max-width:36rem;display:flex}.oc-cdefaults__row{border-bottom:1px solid var(--border);flex-direction:column;gap:.375rem;padding:.625rem 0;display:flex}.oc-cdefaults__label{font-size:.85rem;font-weight:500}.oc-cdefaults__help,.oc-cdefaults__note{color:var(--muted-foreground);margin:0;font-size:.75rem}.oc-cdefaults__actions{justify-content:flex-end;display:flex}.oc-voice__support{flex-wrap:wrap;gap:.5rem;margin-bottom:1rem;display:flex}.oc-voice__card{border:1px solid var(--border);border-radius:var(--radius);background:var(--card);flex-direction:column;gap:.6rem;margin-bottom:.9rem;padding:.9rem 1rem;display:flex}.oc-voice__cardhead{align-items:center;gap:.6rem;display:flex}.oc-voice__instance{font-weight:600}.oc-voice__row{align-items:center;gap:.75rem;display:flex}.oc-voice__row .oc-cdefaults__label{min-width:10rem}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ad as e,Cd as t,Dd as n,Ed as r,Od as i,Sd as a,Td as o,_d as s,ad as c,bd as l,cd as u,dd as d,fd as f,gd as p,hd as m,id as h,jd as g,kd as _,ld as v,md as y,od as b,pd as x,rd as S,sd as C,ud as w,vd as T,wd as E,xd as D,yd as O}from"./dist-0NlyORTv.js";var k={AGENT_NOT_FOUND:()=>({label:g(),hint:e()}),AUTH_TOKEN_MISMATCH:()=>({label:_(),hint:i()}),DEVICE_SIGNING_FAILED:()=>({label:n(),hint:r()}),SESSION_SCOPE_DENIED:()=>({label:o(),hint:E()}),GATEWAY_TIMEOUT:()=>({label:t(),hint:a()}),GATEWAY_DISCONNECTED:()=>({label:D(),hint:l()}),ATTACHMENT_TOO_LARGE:()=>({label:s(),hint:p()}),ATTACHMENT_REJECTED:()=>({label:m(),hint:y()}),BRIDGE_UNREACHABLE:()=>({label:O(),hint:T()}),INVALID_REQUEST:()=>({label:x(),hint:f()}),NOT_CONFIGURED:()=>({label:d(),hint:w()}),UNROUTED:()=>({label:v(),hint:u()}),UPSTREAM_ERROR:()=>({label:C(),hint:b()}),UNKNOWN:()=>({label:c(),hint:h()})};function A(e){return e?k[e]?.()??{label:e,hint:S()}:k.UNKNOWN()}export{A as t};
|