local-operator-ui 0.46.0 → 0.46.1
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/out/main/index.js +5462 -3030
- package/out/preload/index.js +3 -0
- package/out/renderer/assets/{_basePickBy-Bg2PntRn.js → _basePickBy-Cj0fEIOH.js} +1 -1
- package/out/renderer/assets/{_baseUniq-Sw_DRRUZ.js → _baseUniq-Cz-33liX.js} +1 -1
- package/out/renderer/assets/addressOverlayList-AR8aOeNw.js +1 -0
- package/out/renderer/assets/{addressOverlayList-B7X6o95l.css → addressOverlayList-Csi0NFuY.css} +1 -1
- package/out/renderer/assets/agent-details-page-B_RY1sJD.js +6 -0
- package/out/renderer/assets/agent-hub-page-PLff8S61.js +6 -0
- package/out/renderer/assets/agents-page-DjxNEBlZ.js +14 -0
- package/out/renderer/assets/approvalsOverlay-D8l6Tw61.js +1 -0
- package/out/renderer/assets/{arc-BjEpYkt3.js → arc-BoGkGb9O.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-IEHRJDOE-n2nrkgqq.js → architectureDiagram-IEHRJDOE-DIk417XV.js} +1 -1
- package/out/renderer/assets/{blockDiagram-JOT3LUYC-CBHAlphe.js → blockDiagram-JOT3LUYC-CnvuT-yC.js} +1 -1
- package/out/renderer/assets/{book-open-1zGbkXts.js → book-open-C3_WLj7w.js} +1 -1
- package/out/renderer/assets/browser-page-CWu1j6RM.js +1 -0
- package/out/renderer/assets/{browser-webauthn-prompt-DF7G3wHO.js → browser-webauthn-prompt-Du6obwHK.js} +1 -1
- package/out/renderer/assets/{building-2-xAIkeocN.js → building-2-CLOF900G.js} +1 -1
- package/out/renderer/assets/{c4Diagram-VJAJSXHY-BeEL1M9r.js → c4Diagram-VJAJSXHY-BVhES_2B.js} +1 -1
- package/out/renderer/assets/channel-CJkPlu3m.js +1 -0
- package/out/renderer/assets/{chunk-4BMEZGHF-DrBLki1x.js → chunk-4BMEZGHF-DgE_mqR9.js} +1 -1
- package/out/renderer/assets/{chunk-A2AXSNBT-CcpqDYyq.js → chunk-A2AXSNBT-D08EB0eQ.js} +1 -1
- package/out/renderer/assets/{chunk-AEK57VVT-By2248qy.js → chunk-AEK57VVT-BDtiHBHO.js} +1 -1
- package/out/renderer/assets/{chunk-D6G4REZN-70TDt_Io.js → chunk-D6G4REZN-B7aVznI0.js} +1 -1
- package/out/renderer/assets/{chunk-RZ5BOZE2-xZsyOq6V.js → chunk-RZ5BOZE2-BKygjVB2.js} +1 -1
- package/out/renderer/assets/{chunk-XZIHB7SX-DvNMGF5J.js → chunk-XZIHB7SX-WCJjYEMM.js} +1 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-qpQhrrhz.js +1 -0
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-qpQhrrhz.js +1 -0
- package/out/renderer/assets/clone-Dg8l-jy4.js +1 -0
- package/out/renderer/assets/{console-mirror-DLnj_s8B.js → console-mirror-DeqlFqxb.js} +1 -1
- package/out/renderer/assets/{consoleCapture-D06Kq6KP.js → consoleCapture-CQlGEG3v.js} +1 -1
- package/out/renderer/assets/{conversation-input-sync-wILdIPP1.js → conversation-input-sync-Cqe7zy7f.js} +250 -250
- package/out/renderer/assets/{dagre-OKDRZEBW-CLd7U4De.js → dagre-OKDRZEBW-CVWKP4bn.js} +1 -1
- package/out/renderer/assets/{diagram-SSKATNLV-nSRWWPzA.js → diagram-SSKATNLV-BC-K6ofw.js} +1 -1
- package/out/renderer/assets/{diagram-VNBRO52H-D3LSHEXi.js → diagram-VNBRO52H-Cb3_NzRb.js} +1 -1
- package/out/renderer/assets/{erDiagram-Q7BY3M3F-CwYNgJEl.js → erDiagram-Q7BY3M3F-BbKSqMZd.js} +1 -1
- package/out/renderer/assets/{error-boundary-BwM9HB5p.js → error-boundary-D9GOvskD.js} +2 -2
- package/out/renderer/assets/{flowDiagram-4HSFHLVR-Dd8IxxGC.js → flowDiagram-4HSFHLVR-Cpli-q1Q.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-APWFNJXF-JScwUa8i.js → ganttDiagram-APWFNJXF-i6JdfeW8.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-7IBYFJ6S-CniLBv5X.js → gitGraphDiagram-7IBYFJ6S-CPPfXcNo.js} +1 -1
- package/out/renderer/assets/{graph-DLIX7dfC.js → graph-DN2ItNYX.js} +1 -1
- package/out/renderer/assets/{hash-CfghQFJz.js → hash-BIJpkSWf.js} +1 -1
- package/out/renderer/assets/{heart-CbNuxwI-.js → heart-D2NQaIZG.js} +1 -1
- package/out/renderer/assets/{index-CH-k2xgZ.js → index-AFJQ1QjL.js} +205 -205
- package/out/renderer/assets/index-B64TRZpD.css +1 -0
- package/out/renderer/assets/{index-A1hV3Zf6.js → index-BMMKLQIt.js} +1 -1
- package/out/renderer/assets/{index-BIxwLxvA.js → index-Cc73tz3D.js} +1 -1
- package/out/renderer/assets/{index-BIOVGPUK.js → index-CcuBo9nT.js} +1 -1
- package/out/renderer/assets/infoDiagram-PH2N3AL5-DhvQOOVe.js +2 -0
- package/out/renderer/assets/{installer-qsxCAFP3.js → installer-DFfS2SVK.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-U35MCT3I-9Mk8BYjc.js → journeyDiagram-U35MCT3I-BRkHsPvh.js} +1 -1
- package/out/renderer/assets/{kanban-definition-NDS4AKOZ-CJT2kV3V.js → kanban-definition-NDS4AKOZ-CMiqan9t.js} +1 -1
- package/out/renderer/assets/{layout-HxyRPQFo.js → layout-Z7uXh1qn.js} +1 -1
- package/out/renderer/assets/{legacy-agents-page-CP11tw2r.js → legacy-agents-page-BHBgHvV3.js} +8 -8
- package/out/renderer/assets/{library-page-DCvoJ9B1.js → library-page-EGjIy1i-.js} +3 -3
- package/out/renderer/assets/{mermaid.core-JDDWxi_1.js → mermaid.core-IQK_8xGt.js} +5 -5
- package/out/renderer/assets/{mesh-page-Nt5c_UBP.js → mesh-page-Bc9ilTD0.js} +1 -1
- package/out/renderer/assets/messages-BHHYgmiq.js +27 -0
- package/out/renderer/assets/{mindmap-definition-ALO5MXBD-EnBWrd7h.js → mindmap-definition-ALO5MXBD-CI_JdH5p.js} +1 -1
- package/out/renderer/assets/{mini-BYAAu7K2.js → mini-gBq8umUW.js} +1 -1
- package/out/renderer/assets/{notebook-pen-C8ZCuuoa.js → notebook-pen-DRDufegP.js} +1 -1
- package/out/renderer/assets/{notifications-page-Bs0KizWL.js → notifications-page-Bu5qf7Fp.js} +1 -1
- package/out/renderer/assets/{org-access-Bui0nch2.js → org-access-Ds8FeuE9.js} +1 -1
- package/out/renderer/assets/{org-surface-gate-CfqBVm1m.js → org-surface-gate-DBqmiY3f.js} +1 -1
- package/out/renderer/assets/{page-header-ieQr-cSr.js → page-header-CcfnNa21.js} +1 -1
- package/out/renderer/assets/{path-utils-Cpj2hmLX.js → path-utils-CEoNIn5y.js} +1 -1
- package/out/renderer/assets/{pieDiagram-IB7DONF6-DYDYBgsV.js → pieDiagram-IB7DONF6-CZPP2edW.js} +1 -1
- package/out/renderer/assets/{project-markdown-BG7r7Py7.js → project-markdown-CD_uBmTI.js} +1 -1
- package/out/renderer/assets/{projects-page-Cw7uMv2F.js → projects-page-DFUD33vh.js} +5 -5
- package/out/renderer/assets/{publication-validation-Bop1t9Rh.js → publication-validation-DGR8lqu1.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-CoLcq4Bm.js → quadrantDiagram-7GDLP6J5-CJeiyx_t.js} +1 -1
- package/out/renderer/assets/{radar-MK3ICKWK-Dva6bZY9.js → radar-MK3ICKWK-lTUr66ub.js} +1 -1
- package/out/renderer/assets/{radient-auth-buttons-BwliPxWF.js → radient-auth-buttons-DkoyJ9mK.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-KVF5MWMF-BAYToXyc.js → requirementDiagram-KVF5MWMF-BZyNKL7q.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-QLVOVGJD-DSNfEfFy.js → sankeyDiagram-QLVOVGJD-YGTZYJF4.js} +1 -1
- package/out/renderer/assets/{schedules-page-DCGkJc3y.js → schedules-page-C4TSKd4h.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-CQ-BX5x7.js → sequenceDiagram-X6HHIX6F-BA4KFDyE.js} +1 -1
- package/out/renderer/assets/{settings-page-CHq-2h3E.js → settings-page-BP9Gt9PN.js} +1 -1
- package/out/renderer/assets/{smartart-D7OeUYx2.js → smartart-MrgQ4iBs.js} +1 -1
- package/out/renderer/assets/{stateDiagram-DGXRK772-C1MDmeSB.js → stateDiagram-DGXRK772-DxbUUQKF.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-BcSdZSDe.js +1 -0
- package/out/renderer/assets/{team-bridge-page-DiTUSNgx.js → team-bridge-page-Y8GmEvgr.js} +1 -1
- package/out/renderer/assets/{timeline-definition-BDJGKUSR-80bVHpbY.js → timeline-definition-BDJGKUSR-BsEl_rbb.js} +1 -1
- package/out/renderer/assets/{use-default-on-banner-BVJsVIHY.js → use-default-on-banner-8zeoWhwA.js} +1 -1
- package/out/renderer/assets/use-download-agent-mutation-A5L-m_C-.js +56 -0
- package/out/renderer/assets/{use-session-snapshot-DVBRW4Uy.js → use-session-snapshot-DQWB2js_.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-VJFVF3MP-BpWfZyAr.js → xychartDiagram-VJFVF3MP-uv2av9fE.js} +1 -1
- package/out/renderer/browser-address-overlay-list.html +2 -2
- package/out/renderer/browser-approvals-overlay.html +2 -2
- package/out/renderer/console-capture.html +6 -6
- package/out/renderer/index.html +8 -8
- package/out/renderer/installer.html +5 -5
- package/out/renderer/mini.html +8 -8
- package/package.json +2 -2
- package/out/renderer/assets/addressOverlayList-SGt8bawf.js +0 -1
- package/out/renderer/assets/agent-details-page-HD9ux8Ah.js +0 -6
- package/out/renderer/assets/agent-hub-page-Dzr7pO0y.js +0 -6
- package/out/renderer/assets/agents-page-l7a_qK5a.js +0 -14
- package/out/renderer/assets/approvalsOverlay-4fcnnxqV.js +0 -1
- package/out/renderer/assets/browser-page-4sDvzTWx.js +0 -1
- package/out/renderer/assets/channel-B1PQ42_m.js +0 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-D6nDNM9M.js +0 -1
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-D6nDNM9M.js +0 -1
- package/out/renderer/assets/clone-CP1xdDT6.js +0 -1
- package/out/renderer/assets/index-iwMVQVee.css +0 -1
- package/out/renderer/assets/infoDiagram-PH2N3AL5-BdAARVKc.js +0 -2
- package/out/renderer/assets/messages-BaR4LA7j.js +0 -27
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-D88m2aTt.js +0 -1
- package/out/renderer/assets/use-download-agent-mutation-CZ6tp236.js +0 -56
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as r,b as e,a,S as s}from"./chunk-AEK57VVT-By2248qy.js";import{_ as i}from"./mermaid.core-JDDWxi_1.js";import"./chunk-RZ5BOZE2-xZsyOq6V.js";import"./conversation-input-sync-wILdIPP1.js";import"./index-A1hV3Zf6.js";import"./messages-BaR4LA7j.js";import"./path-utils-Cpj2hmLX.js";import"./error-boundary-BwM9HB5p.js";var b={parser:a,get db(){return new s(2)},renderer:e,styles:r,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{b as diagram};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import{t as N,c as Q,n as B,a as S,g as V,e as k,h as D,i as C,j as v,f as q}from"./en-US-CW_dDnkH.js";import{j as c,c as p,r as P}from"./index-A1hV3Zf6.js";import{c as d,u as T,j as Y}from"./error-boundary-BwM9HB5p.js";import{t as r}from"./messages-BaR4LA7j.js";import{c5 as E,c2 as K,c6 as Z,b9 as M,ba as A,aZ as I,bK as G,a7 as L,bL as W}from"./conversation-input-sync-wILdIPP1.js";import{b4 as X,b5 as J,b6 as ee,b7 as te,b8 as ae,b9 as ne,ba as se,bb as H}from"./index-CH-k2xgZ.js";import{B as oe}from"./book-open-1zGbkXts.js";import{i as re,u as _,B as ie,q as ce}from"./path-utils-Cpj2hmLX.js";import{b as ue,l as le}from"./publication-validation-Bop1t9Rh.js";/**
|
|
2
|
-
* @license lucide-react v0.507.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const de=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],he=d("briefcase",de);/**
|
|
7
|
-
* @license lucide-react v0.507.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const me=[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]],ge=d("chart-no-axes-column",me);/**
|
|
12
|
-
* @license lucide-react v0.507.0 - ISC
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the ISC license.
|
|
15
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const ye=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],fe=d("clipboard-list",ye);/**
|
|
17
|
-
* @license lucide-react v0.507.0 - ISC
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the ISC license.
|
|
20
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const pe=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],xe=d("earth",pe);/**
|
|
22
|
-
* @license lucide-react v0.507.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const be=[["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]],we=d("file-question",be);/**
|
|
27
|
-
* @license lucide-react v0.507.0 - ISC
|
|
28
|
-
*
|
|
29
|
-
* This source code is licensed under the ISC license.
|
|
30
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const ke=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],Me=d("flask-conical",ke);/**
|
|
32
|
-
* @license lucide-react v0.507.0 - ISC
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the ISC license.
|
|
35
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const Ae=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],_e=d("graduation-cap",Ae);/**
|
|
37
|
-
* @license lucide-react v0.507.0 - ISC
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the ISC license.
|
|
40
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const je=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]],ze=d("heart-pulse",je);/**
|
|
42
|
-
* @license lucide-react v0.507.0 - ISC
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the ISC license.
|
|
45
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const Ne=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],Se=d("megaphone",Ne);/**
|
|
47
|
-
* @license lucide-react v0.507.0 - ISC
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the ISC license.
|
|
50
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const De=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],Ce=d("scale",De);/**
|
|
52
|
-
* @license lucide-react v0.507.0 - ISC
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the ISC license.
|
|
55
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const ve=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],qe=d("shopping-cart",ve);function Ie(e,t){const o=+N(e)-+N(t);return o<0?-1:o>0?1:o}function Le(e){return Q(e,Date.now())}function Oe(e){return t=>{const a=(e?Math[e]:Math.trunc)(t);return a===0?0:a}}function F(e,t,o){const a=V(),n=o?.locale??a.locale??k,s=Ie(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const i=Object.assign({},o,{addSuffix:o?.addSuffix,comparison:s}),[m,g]=B(o?.in,...s>0?[t,e]:[e,t]),h=Oe(o?.roundingMethod??"round"),b=g.getTime()-m.getTime(),y=b/q,$=S(g)-S(m),f=(b-$)/q,w=o?.unit;let u;if(w?u=w:y<1?u="second":y<60?u="minute":y<D?u="hour":f<C?u="day":f<v?u="month":u="year",u==="second"){const l=h(b/1e3);return n.formatDistance("xSeconds",l,i)}else if(u==="minute"){const l=h(y);return n.formatDistance("xMinutes",l,i)}else if(u==="hour"){const l=h(y/60);return n.formatDistance("xHours",l,i)}else if(u==="day"){const l=h(f/D);return n.formatDistance("xDays",l,i)}else if(u==="month"){const l=h(f/C);return l===12&&w!=="month"?n.formatDistance("xYears",1,i):n.formatDistance("xMonths",l,i)}else{const l=h(f/v);return n.formatDistance("xYears",l,i)}}function We(e,t){return F(e,Le(e),t)}const Te={investment:{icon:c.jsx(he,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.investment")}},accounting:{icon:c.jsx(oe,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.accounting")}},healthcare:{icon:c.jsx(ze,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.healthcare")}},legal:{icon:c.jsx(Ce,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.legal")}},software:{icon:c.jsx(Z,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.software")}},security:{icon:c.jsx(J,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.security")}},role_play:{icon:c.jsx(K,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.role_play")}},personal_assistance:{icon:c.jsx(X,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.personal_assistance")}},education:{icon:c.jsx(_e,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.education")}},marketing:{icon:c.jsx(Se,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.marketing")}},sales:{icon:c.jsx(qe,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.sales")}},research:{icon:c.jsx(Me,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.research")}},analysis:{icon:c.jsx(ge,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.analysis")}},management:{icon:c.jsx(fe,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.management")}},social_media:{icon:c.jsx(xe,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.social_media")}},other:{icon:c.jsx(we,{size:14,"aria-hidden":"true"}),get label(){return r("ui.hub.taxonomy.category.other")}}};function x(e){const t=e.split("_").join(" ");return t.charAt(0).toUpperCase()+t.slice(1)}const Ee=e=>Te[e]??{icon:c.jsx(E,{size:14,"aria-hidden":"true"}),label:x(e)},O="inline-flex min-h-5.5 items-center rounded-full border border-hairline bg-sunken px-2 text-meta leading-none",Xe=({tags:e,categories:t,className:o})=>{if(T(),(!e||e.length===0)&&(!t||t.length===0))return null;const a=new Set((t??[]).map(s=>x(s).toLowerCase())),n=(e??[]).filter(s=>!a.has(x(s).toLowerCase()));return c.jsxs("div",{className:p("relative flex flex-wrap items-center gap-1.5 overflow-hidden",o),"data-testid":"agent-tags-and-categories",children:[t?.map(s=>{const i=Ee(s);return c.jsxs("span",{className:p(O,"gap-1 font-medium text-ink-muted"),children:[i.icon,i.label]},s)}),n.map(s=>c.jsxs("span",{className:p(O,"gap-1 font-normal text-ink-dim"),children:[c.jsx(E,{size:12,"aria-hidden":"true"}),x(s)]},s))]})};function Je(e,t=Date.now()){return F(e,t,{locale:{...k,formatDistance(o,a,n){switch(o){case"xSeconds":return r("ui.hub.comments.age.seconds",{count:a});case"xMinutes":return r("ui.hub.comments.age.minutes",{count:a});case"xHours":return r("ui.hub.comments.age.hours",{count:a});case"xDays":return r("ui.hub.comments.age.days",{count:a});case"xMonths":return r("ui.hub.comments.age.months",{count:a});case"xYears":return r("ui.hub.comments.age.years",{count:a});default:return r("ui.hub.comments.age.fallback",{duration:k.formatDistance(o,a,n)})}}}})}const et=({orgName:e,className:t})=>(T(),c.jsxs(Y,{variant:"neutral",className:p("gap-1",t),"data-testid":"agent-org-badge",title:e?r("ui.hub.taxonomy.origin.named",{name:e}):r("ui.hub.taxonomy.origin.unnamed"),children:[c.jsx(K,{"aria-hidden":"true"}),e??r("ui.hub.taxonomy.origin.organization")]})),Ke=new Set(["qa","ai","api","tui","ux","ui"]),R=/[._-]+/,tt=e=>e.toLowerCase().replace(R," "),He=e=>e.split(R).filter(Boolean).map(t=>Ke.has(t.toLowerCase())?t.toUpperCase():t.charAt(0).toUpperCase()+t.slice(1)).join(" "),at=e=>He(e),j={all:["agent-statuses"],page:e=>[...j.all,"page",[...e]]},Fe=e=>[...new Set(e)].sort(),nt=({agentIds:e,enabled:t=!0})=>{const{isAuthenticated:o}=M(),a=e.join(","),n=P.useMemo(()=>Fe(e),[a]),s=re({queryKey:j.page(n),queryFn:async()=>(await ee(n)).result?.statuses??{},enabled:t&&o&&n.length>0,staleTime:5*60*1e3,gcTime:10*60*1e3,refetchOnWindowFocus:!1,retry:!1});return{...s,statuses:s.data??{},isKnown:s.isSuccess}},st=(e,t,o)=>o?e&&t[o]!==void 0:!1,U=(e,t,o)=>{e.setQueriesData({queryKey:j.all},a=>{if(!a)return a;const n=a[t]??{liked:!1,favourited:!1};return{...a,[t]:{...n,...o}}})},z=(e,{agentId:t,field:o,delta:a})=>{e.setQueriesData({queryKey:ue.all},n=>{if(!n)return n;const s=n.result?.records??[];return s.some(i=>i.id===t)?{...n,result:{...n.result,records:s.map(i=>i.id===t?{...i,[o]:Math.max(0,(i[o]??0)+a)}:i)}}:n})},ot=()=>{const e=_(),{isAuthenticated:t}=M();return A({mutationFn:async({agentId:a,isCurrentlyFavourited:n})=>{if(!t)throw new Error("Authentication required to favourite/unfavourite an agent.");if(!a)throw new Error("Agent ID is required.");return n?(await te(a),{favourited:!1,changed:!0}):{favourited:!0,changed:(await ae(a)).result?.already_favourited!==!0}},onSuccess:({favourited:a,changed:n},s)=>{U(e,s.agentId,{favourited:a}),n&&z(e,{agentId:s.agentId,field:"favourite_count",delta:a?1:-1})}})},rt=()=>{const e=_(),{isAuthenticated:t}=M();return A({mutationFn:async({agentId:a,isCurrentlyLiked:n})=>{if(!t)throw new Error("Authentication required to like/unlike an agent.");if(!a)throw new Error("Agent ID is required.");return n?(await ne(a),{liked:!1,changed:!0}):{liked:!0,changed:(await se(a)).result?.already_liked!==!0}},onSuccess:({liked:a,changed:n},s)=>{U(e,s.agentId,{liked:a}),n&&z(e,{agentId:s.agentId,field:"like_count",delta:a?1:-1})}})},Re=(e,t)=>{const o=[];for(const[,a]of e.getQueriesData({queryKey:H}))for(const n of a?.agents??[])n.id!==t&&o.push(n.name);return o},it=()=>{const e=_(),t=ie();return A({mutationFn:async({agentId:a})=>{if(!L.baseUrl)throw new Error("Local Operator API URL is not configured.");return W.downloadAgentFromRadient(L.baseUrl,a)},onSuccess:(a,n)=>{const s=a.result,i=s?.name?.trim()||n.agentName?.trim()||"Agent",m=s?.renamed_from?.trim()||null,g=s?.id?le(i,Re(e,s.id)):null;m?I(r("ui.notices.hub.downloaded_renamed",{name:i,existing:m})):g?G(r("ui.notices.hub.downloaded_collision",{name:i,existing:g})):I(r("ui.notices.hub.downloaded",{name:i})),e.invalidateQueries({queryKey:H}),z(e,{agentId:n.agentId,field:"download_count",delta:1}),a.result?.id?(ce.getState().stageDraft({kind:"agent",name:i}),t("/chat")):console.warn("Downloaded agent ID not found in response, cannot navigate to chat.")}})};export{Xe as A,Te as C,et as O,rt as a,ot as b,Je as c,it as d,Ee as e,We as f,at as h,st as i,tt as n,nt as u};
|