local-operator-ui 0.44.0 → 0.44.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 +31786 -27953
- package/out/preload/index.js +9 -2
- package/out/renderer/assets/{_basePickBy-D3VtwrNY.js → _basePickBy-ndHGqeK3.js} +1 -1
- package/out/renderer/assets/{_baseUniq-D5X85E0S.js → _baseUniq-DKFx5rny.js} +1 -1
- package/out/renderer/assets/agent-details-page-DPEkyWrQ.js +6 -0
- package/out/renderer/assets/agent-hub-page-C_oaRRRS.js +6 -0
- package/out/renderer/assets/agents-page-B2-Fw5cY.js +7 -0
- package/out/renderer/assets/{approvalsOverlay-BUwR8zXi.js → approvalsOverlay-DqenFdln.js} +1 -1
- package/out/renderer/assets/{arc-C5lHNCVd.js → arc-BW1-eqAD.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-IEHRJDOE-DMuNgh30.js → architectureDiagram-IEHRJDOE-Bt4SPfEG.js} +1 -1
- package/out/renderer/assets/{blockDiagram-JOT3LUYC-DBulh7Ye.js → blockDiagram-JOT3LUYC-DENsJjhF.js} +1 -1
- package/out/renderer/assets/{book-open-YbPNmvto.js → book-open-C6y4tYxb.js} +1 -1
- package/out/renderer/assets/browser-page-4Pd09ZRi.js +1 -0
- package/out/renderer/assets/{browser-webauthn-prompt-YVU9CDM6.js → browser-webauthn-prompt-Cw1yV55x.js} +1 -1
- package/out/renderer/assets/{building-2-Dk-t19G0.js → building-2-3HN1Jd44.js} +1 -1
- package/out/renderer/assets/{c4Diagram-VJAJSXHY-L3-9aXQh.js → c4Diagram-VJAJSXHY-BSbyPibR.js} +1 -1
- package/out/renderer/assets/channel-BdO3JV1i.js +1 -0
- package/out/renderer/assets/{chunk-4BMEZGHF-CgXFdlYf.js → chunk-4BMEZGHF-0s8hO13R.js} +1 -1
- package/out/renderer/assets/{chunk-A2AXSNBT-DT1C_gy2.js → chunk-A2AXSNBT-C7C9468i.js} +1 -1
- package/out/renderer/assets/{chunk-AEK57VVT-YwH-fCeY.js → chunk-AEK57VVT-DEnoRoZS.js} +1 -1
- package/out/renderer/assets/{chunk-D6G4REZN-CPspVwrW.js → chunk-D6G4REZN-CV1eSjZ5.js} +1 -1
- package/out/renderer/assets/{chunk-RZ5BOZE2-BEbcJaEy.js → chunk-RZ5BOZE2-DYUw7sGJ.js} +1 -1
- package/out/renderer/assets/{chunk-XZIHB7SX-BZPybVmi.js → chunk-XZIHB7SX-a1Gm7k6u.js} +1 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-QIHhGtkO.js +1 -0
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-QIHhGtkO.js +1 -0
- package/out/renderer/assets/clone-DNk4VBpX.js +1 -0
- package/out/renderer/assets/{console-mirror-BiNs1Fcs.js → console-mirror-CNc2WEem.js} +1 -1
- package/out/renderer/assets/{consoleCapture-C6-j0c5S.js → consoleCapture-CYSIHyD6.js} +1 -1
- package/out/renderer/assets/{conversation-input-sync-BNDyyAZz.js → conversation-input-sync-nqpmI0zJ.js} +225 -225
- package/out/renderer/assets/{dagre-OKDRZEBW-WqN1d2Ic.js → dagre-OKDRZEBW-BMpFclbT.js} +1 -1
- package/out/renderer/assets/{diagram-SSKATNLV-DYfmB1X1.js → diagram-SSKATNLV-YtFgpAyc.js} +1 -1
- package/out/renderer/assets/{diagram-VNBRO52H-Bfu4SDNY.js → diagram-VNBRO52H-RgXiwGWq.js} +1 -1
- package/out/renderer/assets/{en-US-CHJkXXr4.js → en-US-CW_dDnkH.js} +1 -1
- package/out/renderer/assets/{erDiagram-Q7BY3M3F-IWOis8-U.js → erDiagram-Q7BY3M3F-Cc3Z_iPE.js} +1 -1
- package/out/renderer/assets/{error-boundary-Bq37z0Vv.js → error-boundary-By5hceVb.js} +1 -1
- package/out/renderer/assets/{flowDiagram-4HSFHLVR-DG_QDSF3.js → flowDiagram-4HSFHLVR-KwbskmA7.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-APWFNJXF-BN03PoHm.js → ganttDiagram-APWFNJXF-CQPssJrs.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-7IBYFJ6S-Bif0BK48.js → gitGraphDiagram-7IBYFJ6S-BamwRKnz.js} +1 -1
- package/out/renderer/assets/{graph-C-tc8AsB.js → graph-CPVQL3U3.js} +1 -1
- package/out/renderer/assets/{hash-C3PLrCW5.js → hash-B6EnYJqO.js} +1 -1
- package/out/renderer/assets/{heart-DDY0lTmm.js → heart-Bbe81rsc.js} +1 -1
- package/out/renderer/assets/{index-OcjLnSVT.js → index-AfF6GcLd.js} +1 -1
- package/out/renderer/assets/{index-C1xioNnx.js → index-BFQ8MnMi.js} +108 -108
- package/out/renderer/assets/{index-B4nU7SY-.js → index-CbXTthtT.js} +1 -1
- package/out/renderer/assets/{index-IM2mLpeL.js → index-VZJPlqAN.js} +1 -1
- package/out/renderer/assets/infoDiagram-PH2N3AL5-9stnlWnw.js +2 -0
- package/out/renderer/assets/{installer-DVWaW2Cw.js → installer-BBvg9H1m.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-U35MCT3I-_OmkcLjc.js → journeyDiagram-U35MCT3I-D7Q5PjTQ.js} +1 -1
- package/out/renderer/assets/{kanban-definition-NDS4AKOZ-DUSiV5yR.js → kanban-definition-NDS4AKOZ-D84f-1NL.js} +1 -1
- package/out/renderer/assets/{layout-BwlaoNdS.js → layout-B9Rf382e.js} +1 -1
- package/out/renderer/assets/legacy-agents-page-C3wRE_B2.js +33 -0
- package/out/renderer/assets/{library-page-ckanGPFY.js → library-page-CQlL8tMz.js} +3 -3
- package/out/renderer/assets/{mermaid.core-CrjcyFIw.js → mermaid.core-384l0qRV.js} +5 -5
- package/out/renderer/assets/{mesh-page-DUvJxJjk.js → mesh-page-Dt9ym7fs.js} +1 -1
- package/out/renderer/assets/{messages-Bsgf6o-p.js → messages-B-ZruEU4.js} +10 -10
- package/out/renderer/assets/{mindmap-definition-ALO5MXBD-B-X_MKbg.js → mindmap-definition-ALO5MXBD-DIQ8Tp4d.js} +1 -1
- package/out/renderer/assets/{mini-_lgzfzw2.js → mini-DLXn148T.js} +1 -1
- package/out/renderer/assets/{notebook-pen-BYY7185A.js → notebook-pen-NTSqgCct.js} +1 -1
- package/out/renderer/assets/{org-access-M6CGnpV0.js → org-access-Dg0_A14g.js} +1 -1
- package/out/renderer/assets/org-surface-gate-J2cqQUny.js +1 -0
- package/out/renderer/assets/{page-header-CSOT2M6K.js → page-header-DYYNR6ta.js} +1 -1
- package/out/renderer/assets/parseISO-CxPiCKvF.js +1 -0
- package/out/renderer/assets/path-utils-Df1aSfST.js +58 -0
- package/out/renderer/assets/{pieDiagram-IB7DONF6-KbwgG4tn.js → pieDiagram-IB7DONF6-O0elqS06.js} +1 -1
- package/out/renderer/assets/{projects-page-CVNMOB_d.js → projects-page-CDZhwpg2.js} +1 -1
- package/out/renderer/assets/publication-validation-xLDz3KF1.js +1 -0
- package/out/renderer/assets/{quadrantDiagram-7GDLP6J5-Bjz4TG3c.js → quadrantDiagram-7GDLP6J5-aIes5dKA.js} +1 -1
- package/out/renderer/assets/{radar-MK3ICKWK-BKRNfIwb.js → radar-MK3ICKWK-UxRQC5wV.js} +1 -1
- package/out/renderer/assets/{radient-auth-buttons-OK28kSbr.js → radient-auth-buttons-DD_c1yIy.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-KVF5MWMF-D4k7IA0L.js → requirementDiagram-KVF5MWMF-CHpwQCNK.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-QLVOVGJD-Dd96CGIr.js → sankeyDiagram-QLVOVGJD-BshWvjPm.js} +1 -1
- package/out/renderer/assets/{schedules-page-Bf3w5M5d.js → schedules-page-CnzVmbRX.js} +2 -2
- package/out/renderer/assets/{sequenceDiagram-X6HHIX6F-dLuGQfA8.js → sequenceDiagram-X6HHIX6F-ChmjS2T4.js} +1 -1
- package/out/renderer/assets/{settings-page-CfM3A9yR.js → settings-page-DLaEpBB3.js} +3 -3
- package/out/renderer/assets/{smartart-BKb_WKE6.js → smartart-Ccwq-Nc5.js} +1 -1
- package/out/renderer/assets/{stateDiagram-DGXRK772-xdA_EMO3.js → stateDiagram-DGXRK772-DdDHMkkC.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-BYZWnIq5.js +1 -0
- package/out/renderer/assets/team-bridge-page-CXwjsmIu.js +21 -0
- package/out/renderer/assets/{timeline-definition-BDJGKUSR-DJcCw_S5.js → timeline-definition-BDJGKUSR-BjD0dpVE.js} +1 -1
- package/out/renderer/assets/use-download-agent-mutation-BfQgsvf5.js +56 -0
- package/out/renderer/assets/{use-session-snapshot-1Qr287OF.js → use-session-snapshot-WaDf8bZQ.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-VJFVF3MP-AN9BWRc1.js → xychartDiagram-VJFVF3MP-BDqiFOiY.js} +1 -1
- package/out/renderer/browser-approvals-overlay.html +2 -2
- package/out/renderer/console-capture.html +5 -5
- package/out/renderer/index.html +7 -7
- package/out/renderer/installer.html +4 -4
- package/out/renderer/mini.html +7 -7
- package/package.json +2 -2
- package/out/renderer/assets/agent-details-page-DuT7ksQQ.js +0 -6
- package/out/renderer/assets/agent-hub-page-Ql4T_UHE.js +0 -6
- package/out/renderer/assets/agents-page-b9zRicwX.js +0 -7
- package/out/renderer/assets/browser-page-B3tf6s7R.js +0 -1
- package/out/renderer/assets/channel-DL0ftT8O.js +0 -1
- package/out/renderer/assets/classDiagram-GIVACNV2-jy6TeuKv.js +0 -1
- package/out/renderer/assets/classDiagram-v2-COTLJTTW-jy6TeuKv.js +0 -1
- package/out/renderer/assets/clone-CxDM6XKV.js +0 -1
- package/out/renderer/assets/format-esAOn2VS.js +0 -1
- package/out/renderer/assets/infoDiagram-PH2N3AL5-BSH7k17A.js +0 -2
- package/out/renderer/assets/legacy-agents-page-oa1T18xF.js +0 -33
- package/out/renderer/assets/org-surface-gate-BwyP7jwt.js +0 -1
- package/out/renderer/assets/parseISO-BHJWTxrA.js +0 -1
- package/out/renderer/assets/path-utils-Dy8qomEz.js +0 -58
- package/out/renderer/assets/publication-validation-DaTmgJDa.js +0 -1
- package/out/renderer/assets/stateDiagram-v2-YXO3MK2T-eb84WKtw.js +0 -1
- package/out/renderer/assets/team-bridge-page-Bq0clyqS.js +0 -21
- package/out/renderer/assets/use-download-agent-mutation-BsUnGrAQ.js +0 -56
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import{t as z,c as H,n as U,b as N,g as Q,e as V,h as S,i as C,j as D,a as v}from"./en-US-CHJkXXr4.js";import{j as i,c as p,r as B}from"./index-B4nU7SY-.js";import{c as d,u as O,z as P}from"./error-boundary-Bq37z0Vv.js";import{t as c}from"./messages-Bsgf6o-p.js";import{bl as $,bb as T,bm as Y,ap as k,aq as M,ar as q,bg as Z,a4 as I,bh as G}from"./conversation-input-sync-BNDyyAZz.js";import{aZ as W,a_ as X,a$ as J,b0 as ee,b1 as te,b2 as ae,b3 as ne,b4 as E}from"./index-C1xioNnx.js";import{B as se}from"./book-open-YbPNmvto.js";import{h as oe,u as A,A as re,q as ie}from"./path-utils-Dy8qomEz.js";import{b as ce,l as ue}from"./publication-validation-DaTmgJDa.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 le=[["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"}]],de=d("briefcase",le);/**
|
|
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 he=[["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"}]],me=d("chart-no-axes-column",he);/**
|
|
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"}]],ge=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 fe=[["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"}]],pe=d("earth",fe);/**
|
|
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 xe=[["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"}]],be=d("file-question",xe);/**
|
|
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 we=[["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"}]],ke=d("flask-conical",we);/**
|
|
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 Me=[["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"}]],Ae=d("graduation-cap",Me);/**
|
|
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 _e=[["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"}]],je=d("heart-pulse",_e);/**
|
|
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 ze=[["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"}]],Ne=d("megaphone",ze);/**
|
|
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 Se=[["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",Se);/**
|
|
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 De=[["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"}]],ve=d("shopping-cart",De);function qe(e,t){const o=+z(e)-+z(t);return o<0?-1:o>0?1:o}function Ie(e){return H(e,Date.now())}function Le(e){return t=>{const a=(e?Math[e]:Math.trunc)(t);return a===0?0:a}}function Oe(e,t,o){const a=Q(),n=o?.locale??a.locale??V,s=qe(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const r=Object.assign({},o,{addSuffix:o?.addSuffix,comparison:s}),[m,y]=U(o?.in,...s>0?[t,e]:[e,t]),h=Le(o?.roundingMethod??"round"),b=y.getTime()-m.getTime(),g=b/v,F=N(y)-N(m),f=(b-F)/v,w=o?.unit;let u;if(w?u=w:g<1?u="second":g<60?u="minute":g<S?u="hour":f<C?u="day":f<D?u="month":u="year",u==="second"){const l=h(b/1e3);return n.formatDistance("xSeconds",l,r)}else if(u==="minute"){const l=h(g);return n.formatDistance("xMinutes",l,r)}else if(u==="hour"){const l=h(g/60);return n.formatDistance("xHours",l,r)}else if(u==="day"){const l=h(f/S);return n.formatDistance("xDays",l,r)}else if(u==="month"){const l=h(f/C);return l===12&&w!=="month"?n.formatDistance("xYears",1,r):n.formatDistance("xMonths",l,r)}else{const l=h(f/D);return n.formatDistance("xYears",l,r)}}function We(e,t){return Oe(e,Ie(e),t)}const $e={investment:{icon:i.jsx(de,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.investment")}},accounting:{icon:i.jsx(se,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.accounting")}},healthcare:{icon:i.jsx(je,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.healthcare")}},legal:{icon:i.jsx(Ce,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.legal")}},software:{icon:i.jsx(Y,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.software")}},security:{icon:i.jsx(X,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.security")}},role_play:{icon:i.jsx(T,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.role_play")}},personal_assistance:{icon:i.jsx(W,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.personal_assistance")}},education:{icon:i.jsx(Ae,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.education")}},marketing:{icon:i.jsx(Ne,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.marketing")}},sales:{icon:i.jsx(ve,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.sales")}},research:{icon:i.jsx(ke,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.research")}},analysis:{icon:i.jsx(me,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.analysis")}},management:{icon:i.jsx(ge,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.management")}},social_media:{icon:i.jsx(pe,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.social_media")}},other:{icon:i.jsx(be,{size:14,"aria-hidden":"true"}),get label(){return c("ui.hub.taxonomy.category.other")}}};function x(e){const t=e.split("_").join(" ");return t.charAt(0).toUpperCase()+t.slice(1)}const Te=e=>$e[e]??{icon:i.jsx($,{size:14,"aria-hidden":"true"}),label:x(e)},L="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(O(),(!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 i.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 r=Te(s);return i.jsxs("span",{className:p(L,"gap-1 font-medium text-ink-muted"),children:[r.icon,r.label]},s)}),n.map(s=>i.jsxs("span",{className:p(L,"gap-1 font-normal text-ink-dim"),children:[i.jsx($,{size:12,"aria-hidden":"true"}),x(s)]},s))]})},Je=({orgName:e,className:t})=>(O(),i.jsxs(P,{variant:"neutral",className:p("gap-1",t),"data-testid":"agent-org-badge",title:e?c("ui.hub.taxonomy.origin.named",{name:e}):c("ui.hub.taxonomy.origin.unnamed"),children:[i.jsx(T,{"aria-hidden":"true"}),e??c("ui.hub.taxonomy.origin.organization")]})),Ee=new Set(["qa","ai","api","tui","ux","ui"]),K=/[._-]+/,et=e=>e.toLowerCase().replace(K," "),Ke=e=>e.split(K).filter(Boolean).map(t=>Ee.has(t.toLowerCase())?t.toUpperCase():t.charAt(0).toUpperCase()+t.slice(1)).join(" "),tt=e=>Ke(e),_={all:["agent-statuses"],page:e=>[..._.all,"page",[...e]]},Re=e=>[...new Set(e)].sort(),at=({agentIds:e,enabled:t=!0})=>{const{isAuthenticated:o}=k(),a=e.join(","),n=B.useMemo(()=>Re(e),[a]),s=oe({queryKey:_.page(n),queryFn:async()=>(await J(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}},nt=(e,t,o)=>o?e&&t[o]!==void 0:!1,R=(e,t,o)=>{e.setQueriesData({queryKey:_.all},a=>{if(!a)return a;const n=a[t]??{liked:!1,favourited:!1};return{...a,[t]:{...n,...o}}})},j=(e,{agentId:t,field:o,delta:a})=>{e.setQueriesData({queryKey:ce.all},n=>{if(!n)return n;const s=n.result?.records??[];return s.some(r=>r.id===t)?{...n,result:{...n.result,records:s.map(r=>r.id===t?{...r,[o]:Math.max(0,(r[o]??0)+a)}:r)}}:n})},st=()=>{const e=A(),{isAuthenticated:t}=k();return M({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 ee(a),{favourited:!1,changed:!0}):{favourited:!0,changed:(await te(a)).result?.already_favourited!==!0}},onSuccess:({favourited:a,changed:n},s)=>{R(e,s.agentId,{favourited:a}),n&&j(e,{agentId:s.agentId,field:"favourite_count",delta:a?1:-1})}})},ot=()=>{const e=A(),{isAuthenticated:t}=k();return M({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 ae(a),{liked:!1,changed:!0}):{liked:!0,changed:(await ne(a)).result?.already_liked!==!0}},onSuccess:({liked:a,changed:n},s)=>{R(e,s.agentId,{liked:a}),n&&j(e,{agentId:s.agentId,field:"like_count",delta:a?1:-1})}})},Fe=(e,t)=>{const o=[];for(const[,a]of e.getQueriesData({queryKey:E}))for(const n of a?.agents??[])n.id!==t&&o.push(n.name);return o},rt=()=>{const e=A(),t=re();return M({mutationFn:async({agentId:a})=>{if(!I.baseUrl)throw new Error("Local Operator API URL is not configured.");return G.downloadAgentFromRadient(I.baseUrl,a)},onSuccess:(a,n)=>{const s=a.result,r=s?.name?.trim()||n.agentName?.trim()||"Agent",m=s?.renamed_from?.trim()||null,y=s?.id?ue(r,Fe(e,s.id)):null;m?q(`Downloaded "${r}" — you already have an agent called "${m}".`):y?Z(`Downloaded "${r}". You already have an agent called "${y}", so two agents now answer to that name and either may be picked. Rename one of them.`):q(`Downloaded "${r}" from the hub.`),e.invalidateQueries({queryKey:E}),j(e,{agentId:n.agentId,field:"download_count",delta:1}),a.result?.id?(ie.getState().stageDraft({kind:"agent",name:r}),t("/chat")):console.warn("Downloaded agent ID not found in response, cannot navigate to chat.")}})};export{Xe as A,$e as C,Je as O,ot as a,st as b,rt as c,We as d,Te as e,Oe as f,tt as h,nt as i,et as n,at as u};
|