decocms 2.175.1 → 2.175.2
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/client/assets/{AlertCircle-De9oqjty.js → AlertCircle-CnfwZdxb.js} +1 -1
- package/dist/client/assets/{AlignLeft-BaG4OcCg.js → AlignLeft-zj1VrWVO.js} +1 -1
- package/dist/client/assets/{ArrowDown-PFFBPH3j.js → ArrowDown-BnnQhLmg.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CPWCs_Od.js → ArrowLeft-C3_bzjZf.js} +1 -1
- package/dist/client/assets/{ArrowUp-C6Q-EpUw.js → ArrowUp-BuKX1RSZ.js} +1 -1
- package/dist/client/assets/{Check-BfKCyKXX.js → Check-7kB05ju_.js} +1 -1
- package/dist/client/assets/{CheckCircle-DiRi76qb.js → CheckCircle-DrGaevdP.js} +1 -1
- package/dist/client/assets/{CheckDone01-ZekLHdFZ.js → CheckDone01-CVJEgdwq.js} +1 -1
- package/dist/client/assets/{CheckVerified02-DC3VT092.js → CheckVerified02-DmV5dzDn.js} +1 -1
- package/dist/client/assets/{ChevronDown-BHMaRWRt.js → ChevronDown-DHeagNGb.js} +1 -1
- package/dist/client/assets/{ChevronLeft-0cpA2yNq.js → ChevronLeft-W2gkpjgL.js} +1 -1
- package/dist/client/assets/{ChevronRight-1g9z-Z5h.js → ChevronRight-Blv21S_7.js} +1 -1
- package/dist/client/assets/{ChevronUp-1s_S3eDF.js → ChevronUp-J7upZD3-.js} +1 -1
- package/dist/client/assets/{Clock-rHd8cQAO.js → Clock-9Mm0U0Dg.js} +1 -1
- package/dist/client/assets/{Code01-CoTQP8pZ.js → Code01-DDbKsccR.js} +1 -1
- package/dist/client/assets/{Coins01-D7lfLTbO.js → Coins01-DTz6uYyF.js} +1 -1
- package/dist/client/assets/{Container-DwxLlgWA.js → Container-Ci_1Xm4L.js} +1 -1
- package/dist/client/assets/{Copy01-CIUDy0Hr.js → Copy01-BexEalI-.js} +1 -1
- package/dist/client/assets/{Dataflow03-T9TmjQN-.js → Dataflow03-CKfLDuKw.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CmCKbvuJ.js → DotsHorizontal-3xIvFzgk.js} +1 -1
- package/dist/client/assets/{DotsVertical-Y8XpM2B_.js → DotsVertical-7N_NB6wt.js} +1 -1
- package/dist/client/assets/{Download01-LinNp3zy.js → Download01-D-oC1d8d.js} +1 -1
- package/dist/client/assets/{Edit01-Dw-lPBk-.js → Edit01-gYPHsLoC.js} +1 -1
- package/dist/client/assets/{Edit05-Bx682Mm6.js → Edit05-BA2Lz_6R.js} +1 -1
- package/dist/client/assets/{Eye-JuDcZhJz.js → Eye-Cn6YseXl.js} +1 -1
- package/dist/client/assets/{EyeOff-9_-SJWcU.js → EyeOff-L-SLicw9.js} +1 -1
- package/dist/client/assets/{File02-bFwU_wEK.js → File02-Dx1Iz50W.js} +1 -1
- package/dist/client/assets/{File06-CU5oU1OI.js → File06-Dqc-K1-5.js} +1 -1
- package/dist/client/assets/{FilterLines-BaTxnUjH.js → FilterLines-DCrzLWfV.js} +1 -1
- package/dist/client/assets/{Globe01-DUjsFcPS.js → Globe01-DW2rHI0i.js} +1 -1
- package/dist/client/assets/{Globe02-k3_A41kp.js → Globe02-CyGtzZ8k.js} +1 -1
- package/dist/client/assets/{Grid01-DBOkAm2V.js → Grid01-Dqz--q3o.js} +1 -1
- package/dist/client/assets/{Hash02-gqJDwuju.js → Hash02-pqCZ_ykD.js} +1 -1
- package/dist/client/assets/{Home02-DfEb-Myv.js → Home02-D2W6xjpZ.js} +1 -1
- package/dist/client/assets/{Image01-I9pAeT0N.js → Image01-U7ZIAIPc.js} +1 -1
- package/dist/client/assets/{Inbox01-BgDmihAV.js → Inbox01-DpRIO4ZY.js} +1 -1
- package/dist/client/assets/{InfoCircle-LX1SVC24.js → InfoCircle-CvSmMU6H.js} +1 -1
- package/dist/client/assets/{Key01-DAjAUWfr.js → Key01-Dq5b7fdA.js} +1 -1
- package/dist/client/assets/{LayersTwo01-C-XZtFtv.js → LayersTwo01-Li6JqY2K.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BvuIBX8d.js → LayoutLeft-BAk65lFq.js} +1 -1
- package/dist/client/assets/{Link01-q2vhCqdM.js → Link01-NJWLnzFs.js} +1 -1
- package/dist/client/assets/{LinkExternal01-QGWpvftd.js → LinkExternal01-B8e_Oa3I.js} +1 -1
- package/dist/client/assets/{List-CuV23QYs.js → List-Cc_Ri6eQ.js} +1 -1
- package/dist/client/assets/{Loading01-BNn4YU_K.js → Loading01-Cbk1oNZ2.js} +1 -1
- package/dist/client/assets/{Lock01-DJQX15kR.js → Lock01-dP10fLup.js} +1 -1
- package/dist/client/assets/{Play-C7yKo0dH.js → Play-DqxAqUbl.js} +1 -1
- package/dist/client/assets/{Plus-CT_Gcwl2.js → Plus-CqWob4tu.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-uL9q48A4.js → RefreshCcw01-B6R5Js1R.js} +1 -1
- package/dist/client/assets/{Save01-CuwI4Bxq.js → Save01-BfieBu6m.js} +1 -1
- package/dist/client/assets/{SearchMd-BLeX5weN.js → SearchMd-DJI6OMcD.js} +1 -1
- package/dist/client/assets/{Settings01-2AkYiqYr.js → Settings01-BWkL3Bf9.js} +1 -1
- package/dist/client/assets/{Shield01-D6IOCC-Z.js → Shield01-DMT1motk.js} +1 -1
- package/dist/client/assets/{Terminal-Dlvh4GS2.js → Terminal-zNrinv6B.js} +1 -1
- package/dist/client/assets/{Tool01-CjSIsyxE.js → Tool01-CUx5BAY-.js} +1 -1
- package/dist/client/assets/{Trash01-YPQczxci.js → Trash01-C0891dQq.js} +1 -1
- package/dist/client/assets/{Upload01-BlEN4mwB.js → Upload01-ngHWsp64.js} +1 -1
- package/dist/client/assets/{Users03-B7X28dbt.js → Users03-FsZwQwZq.js} +1 -1
- package/dist/client/assets/{X-B_f76BPZ.js → X-CeRZ6ROs.js} +1 -1
- package/dist/client/assets/{XAxis-Du5m1KMx.js → XAxis-B4Pxztvn.js} +1 -1
- package/dist/client/assets/{XCircle-DDLf4PgL.js → XCircle-X3Ds2fko.js} +1 -1
- package/dist/client/assets/{XClose-eeK1fS1n.js → XClose-BieEiV6P.js} +1 -1
- package/dist/client/assets/{Zap-DHey7Hu_.js → Zap-B-qa654H.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-D6uKmygR.js → agent-connections-preview-BXeLz6mJ.js} +1 -1
- package/dist/client/assets/agent-detail-2cFCKx9t.js +2 -0
- package/dist/client/assets/agents-DS-16MLo.js +1 -0
- package/dist/client/assets/ai-providers-logos-Bb5LHAPU.js +1 -0
- package/dist/client/assets/{alert-dialog-BVglQjyM.js → alert-dialog-DgTufZ_p.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bfllc4Ni.js → auth-catchall-zO2o6cw1.js} +1 -1
- package/dist/client/assets/automation-detail-CyiDphKi.js +1 -0
- package/dist/client/assets/automations-CBvKrAy1.js +1 -0
- package/dist/client/assets/{avatar-OE2URZfM.js → avatar-w6QMWHVj.js} +1 -1
- package/dist/client/assets/{badge-CAg946Xk.js → badge-B-_hRtCy.js} +1 -1
- package/dist/client/assets/{binder-DTBFGqjl.js → binder-BEJ4wRzw.js} +1 -1
- package/dist/client/assets/{breadcrumb-aP02JuZO.js → breadcrumb-Dk9kRV2t.js} +1 -1
- package/dist/client/assets/{card-RQxLVCBk.js → card-BSGld6G2.js} +1 -1
- package/dist/client/assets/{chart-D9IwJUjP.js → chart-CEfru1MQ.js} +1 -1
- package/dist/client/assets/{checkbox-DLsMmmhu.js → checkbox-COsQJsO9.js} +1 -1
- package/dist/client/assets/{collapsible-CGr-TiAc.js → collapsible-BCGKc4Wz.js} +1 -1
- package/dist/client/assets/{collection-detail-CZQpkHig.js → collection-detail-BimbOEiL.js} +2 -2
- package/dist/client/assets/{collection-display-button-VOymjalV.js → collection-display-button-CuyLh-NC.js} +1 -1
- package/dist/client/assets/{collection-search-62vwaqdq.js → collection-search-aJlY7LHs.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DPJfuSg9.js → collection-table-wrapper-CcbJTCba.js} +1 -1
- package/dist/client/assets/{collection-tabs-FJx5TF4Z.js → collection-tabs-B2Xeppc1.js} +1 -1
- package/dist/client/assets/{command-ChmbB2jp.js → command-CyHipwcz.js} +1 -1
- package/dist/client/assets/connect-3nC8bK4k.js +1 -0
- package/dist/client/assets/{connection-card-D9I87KkT.js → connection-card-iA_b7WBI.js} +1 -1
- package/dist/client/assets/connection-detail-B4CoR-IH.js +1 -0
- package/dist/client/assets/{connection-status-D_iX92lK.js → connection-status-BddpcBJZ.js} +1 -1
- package/dist/client/assets/connections-B-zXLcDP.js +1 -0
- package/dist/client/assets/{constants-XtX-WKGm.js → constants-CDL9XClm.js} +1 -1
- package/dist/client/assets/constants-DxY-8FrK.js +1 -0
- package/dist/client/assets/{context-CtrnP3HC.js → context-DDV_uL9a.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DlsDrfHE.js → create-organization-dialog-CG01zre5.js} +1 -1
- package/dist/client/assets/{create-project-dialog-BV-JjiBR.js → create-project-dialog-5e-piQzY.js} +1 -1
- package/dist/client/assets/{danger-B3KgXwQ9.js → danger-_ZcnVgTL.js} +1 -1
- package/dist/client/assets/{danger-zone-C_4VhnMp.js → danger-zone-e3foS_su.js} +1 -1
- package/dist/client/assets/{dependencies-BHUeYRA7.js → dependencies-DUviAtSp.js} +1 -1
- package/dist/client/assets/{dialog-_XYw8lZC.js → dialog-DxTRqiug.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DzFMEBVS.js → dropdown-menu-CdjuOUR6.js} +1 -1
- package/dist/client/assets/dynamic-plugin-layout-DszdejBu.js +1 -0
- package/dist/client/assets/{editable-task-title-B7Ktbs3r.js → editable-task-title-44X_8A19.js} +1 -1
- package/dist/client/assets/{empty-state-AMuFIqs3.js → empty-state-Bj_isc1T.js} +1 -1
- package/dist/client/assets/{empty-state-D4GX29pL.js → empty-state-v8jdj56V.js} +1 -1
- package/dist/client/assets/{env-vars-editor-DTKmdK-v.js → env-vars-editor-Bs6jziXp.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CS_Bn7Ri.js → extract-connection-data-Cyjq-Q5I.js} +1 -1
- package/dist/client/assets/{file-browser-OSAi_CZb.js → file-browser-4NMlO2k_.js} +2 -2
- package/dist/client/assets/{form-BN7_f2uj.js → form-BV3tSlED.js} +1 -1
- package/dist/client/assets/{general-B9J0F1Xq.js → general-LSfgt8-y.js} +1 -1
- package/dist/client/assets/{grid-view-BH674f3N.js → grid-view-BD9vYk3H.js} +1 -1
- package/dist/client/assets/{home-Dam4fMEZ.js → home-Ck605SqF.js} +1 -1
- package/dist/client/assets/{index-CuSj4QrF.js → index-B70G5L15.js} +1 -1
- package/dist/client/assets/{index-Cn8BPdHZ.js → index-BE93ZIdg.js} +1 -1
- package/dist/client/assets/{index-DsOJvxnb.js → index-BXUNq6d7.js} +3 -3
- package/dist/client/assets/{index-DxP-spTj.js → index-CZ7yh8sQ.js} +1 -1
- package/dist/client/assets/index-Ci8WAd55.css +1 -0
- package/dist/client/assets/{index-C-NLwTON.js → index-Dg_kVhT7.js} +1 -1
- package/dist/client/assets/{index-CcA_QriT.js → index-DlhaGZnK.js} +1 -1
- package/dist/client/assets/{index-zjV4p_E5.js → index-L6huQtcJ.js} +1 -1
- package/dist/client/assets/index-rWegviRE.js +1 -0
- package/dist/client/assets/{index-Da9ggy60.js → index-uQDoUdMq.js} +1 -1
- package/dist/client/assets/index-zJEaoyYS.js +25 -0
- package/dist/client/assets/{infiniteQueryObserver-BE0Fq7u7.js → infiniteQueryObserver-DXFe0xIV.js} +1 -1
- package/dist/client/assets/{input-CUT8DBv1.js → input-BFH8rk50.js} +1 -1
- package/dist/client/assets/{integration-icon-CVxvM4fR.js → integration-icon-D6SJHU0f.js} +1 -1
- package/dist/client/assets/{label-iPw5smAw.js → label-DE7vX487.js} +1 -1
- package/dist/client/assets/{layout-C2ZnDBkW.js → layout-B2GnF_Vp.js} +1 -1
- package/dist/client/assets/layout-B_GGomJW.js +1 -0
- package/dist/client/assets/{login-DJvdi7W3.js → login-CgzRmuxY.js} +1 -1
- package/dist/client/assets/{logo-upload-DlKQk0GB.js → logo-upload-Bfzj_LQV.js} +1 -1
- package/dist/client/assets/{markdown-CKKBcXcE.js → markdown-Da-6gcG9.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-IX_OR3wW.js → mcp-app-renderer-CNc9yMN5.js} +1 -1
- package/dist/client/assets/{mcp-server-card-Cq5E9kuT.js → mcp-server-card-s9NGsKpt.js} +1 -1
- package/dist/client/assets/mcp-server-detail-fMXGyX4W.js +2 -0
- package/dist/client/assets/members-BvBWfv9e.js +3 -0
- package/dist/client/assets/{monaco-editor-J8rInsT2.js → monaco-editor-VspAvYbk.js} +1 -1
- package/dist/client/assets/monitoring-B1jfqgQN.js +4 -0
- package/dist/client/assets/monitoring-dashboard-edit-Bdujw4Ym.js +1 -0
- package/dist/client/assets/{monitoring-dashboard-view-Dt4aILCV.js → monitoring-dashboard-view-CSfkxnkl.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-Dx_W_1nT.js → monitoring-stats-row-Ds_uiyYJ.js} +1 -1
- package/dist/client/assets/{oauth-callback-COUada1q.js → oauth-callback-BNPNdlSW.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CqS-ybCD.js → oauth-callback-ai-provider-CODmoIp9.js} +1 -1
- package/dist/client/assets/org-ai-providers-CQKU4ds_.js +1 -0
- package/dist/client/assets/page-Bbbh0c0Z.js +1 -0
- package/dist/client/assets/page-BfphKBfj.js +1 -0
- package/dist/client/assets/{plugin-empty-state-Dt2dvxD9.js → plugin-empty-state-BWhKyfJ8.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CRLH-_5S.js → plugin-empty-state-Cx_CuKe3.js} +1 -1
- package/dist/client/assets/{plugin-header-DLDBKovk.js → plugin-header-ET8DV5kQ.js} +1 -1
- package/dist/client/assets/{plugin-header-CkWzqJkZ.js → plugin-header-ncr8MkbN.js} +1 -1
- package/dist/client/assets/plugins-BdyM0ZUw.js +1 -0
- package/dist/client/assets/{popover-CF3EN_0o.js → popover-BcyJids_.js} +1 -1
- package/dist/client/assets/project-app-view-BdLdOYqG.js +1 -0
- package/dist/client/assets/project-layout-DReK69oR.js +1 -0
- package/dist/client/assets/{project-plugins-DRIvSpW5.js → project-plugins-CXWguN_r.js} +1 -1
- package/dist/client/assets/projects-list-CZANuMq5.js +1 -0
- package/dist/client/assets/{registry-layout-MGTBGYDW.js → registry-layout-CqXQ571U.js} +1 -1
- package/dist/client/assets/{registry-utils-Cd3t_Kmp.js → registry-utils-CaVl1vKg.js} +1 -1
- package/dist/client/assets/{reports-layout-Cu0HmCBt.js → reports-layout-CQyNOFqA.js} +1 -1
- package/dist/client/assets/{reset-password-Dwr8terU.js → reset-password-Bt_v8_59.js} +1 -1
- package/dist/client/assets/{resizable-D4LJctEl.js → resizable-B4X_WbHf.js} +1 -1
- package/dist/client/assets/{save-actions-MzYbolsq.js → save-actions-Py9YKTe0.js} +1 -1
- package/dist/client/assets/{scroll-area-B5XbONJS.js → scroll-area-R7PT492V.js} +1 -1
- package/dist/client/assets/{select-DRPG5csU.js → select-B-f7jgVG.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-B8NgSgPI.js → select-virtual-mcp-YanYQUBn.js} +1 -1
- package/dist/client/assets/{sheet-BQuKOEiL.js → sheet-7nFLkS7G.js} +1 -1
- package/dist/client/assets/shell-layout-Dp8xiQMR.js +3 -0
- package/dist/client/assets/{sidebar-settings-BqDjI96r.js → sidebar-settings-w0p27D0n.js} +1 -1
- package/dist/client/assets/{skeleton-DJFpR-1P.js → skeleton-CK2-6UkT.js} +1 -1
- package/dist/client/assets/{spinner-CqAVfcvO.js → spinner-B1-EIDBS.js} +1 -1
- package/dist/client/assets/{store-invite-JCf8JSic.js → store-invite-DVPM6U-x.js} +1 -1
- package/dist/client/assets/{switch-BQjzAGvm.js → switch-4UL4iV3X.js} +1 -1
- package/dist/client/assets/{table-DJbHB5IL.js → table-Bu98B5a-.js} +1 -1
- package/dist/client/assets/{tabs-CkPDQzeX.js → tabs-Cif80TZ4.js} +1 -1
- package/dist/client/assets/{task-status-wkv2GdSY.js → task-status-BWKjAgiX.js} +16 -16
- package/dist/client/assets/{tasks-panel-TN0GeEUK.js → tasks-panel-D6Bb-wiS.js} +1 -1
- package/dist/client/assets/tasks-tenjlvFT.js +1 -0
- package/dist/client/assets/{textarea-CTzX43MZ.js → textarea-DPLd5P1K.js} +1 -1
- package/dist/client/assets/{time-range-picker-DNJ6dRiN.js → time-range-picker-FJd_w9AH.js} +1 -1
- package/dist/client/assets/{toggle-group-y2h19HHT.js → toggle-group-B4QQy8X1.js} +1 -1
- package/dist/client/assets/{tools-list-Db7zzadA.js → tools-list-BgmW-tI4.js} +1 -1
- package/dist/client/assets/{tooltip-XyKE4lZa.js → tooltip-BGPUMzDS.js} +1 -1
- package/dist/client/assets/{topbar-portal-D3fRQWai.js → topbar-portal-CLOTo-7w.js} +1 -1
- package/dist/client/assets/{types-B3niHy47.js → types-DZ5M-eMJ.js} +1 -1
- package/dist/client/assets/{use-automations-C4CL-jAO.js → use-automations-D7j59hRT.js} +1 -1
- package/dist/client/assets/{use-binding-BfjFWpEn.js → use-binding-CZ8osTa1.js} +1 -1
- package/dist/client/assets/{use-collections-DSWhP4jg.js → use-collections-yY78nnLx.js} +1 -1
- package/dist/client/assets/{use-connection-DmR852Js.js → use-connection-lXrlfojY.js} +1 -1
- package/dist/client/assets/{use-copy-dSR0w-bG.js → use-copy-DZJI58oZ.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DXWAjide.js → use-create-virtual-mcp-DK_WDS9Y.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CvaIKLMy.js → use-infinite-scroll-C-TK62Eo.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-_FQYQGQx.js → use-install-from-registry-C24f0cqa.js} +1 -1
- package/dist/client/assets/{use-list-state-Ck8sSm9J.js → use-list-state-D6LU1koz.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C-XU_-dc.js → use-mcp-prompts-DT9l3i02.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-Bxkx1Ub1.js → use-mcp-resources-DhBJVSsg.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BXmfFmar.js → use-mcp-tools-CwVNqTmj.js} +1 -1
- package/dist/client/assets/{use-members-B-Cx3SpJ.js → use-members-fpZqw1dy.js} +1 -1
- package/dist/client/assets/{use-mobile-O8KVzGuv.js → use-mobile-B0lEbMk3.js} +1 -1
- package/dist/client/assets/{use-project-Bg5pX2Ab.js → use-project-BnRSDoVD.js} +1 -1
- package/dist/client/assets/{use-store-discovery-DPE_0zuT.js → use-store-discovery-C9fJhQ4Y.js} +1 -1
- package/dist/client/assets/{use-view-mode-ve-Q_Sd0.js → use-view-mode-0w9n1sJ-.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C9XdHCA_.js → use-virtual-mcp-CyoGC0aH.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BlrmUHYA.js +1 -0
- package/dist/client/assets/{useMutation-B_cFG709.js → useMutation-CkdHuTyE.js} +1 -1
- package/dist/client/assets/useQuery-Bmc4jnG2.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DD4jjrsx.js +1 -0
- package/dist/client/assets/{user-rS26WEu1.js → user-sbKkVV9F.js} +1 -1
- package/dist/client/assets/workflow-CpP3zoVI.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/node_modules/async-exit-hook/CHANGELOG.md +62 -0
- package/dist/server/node_modules/async-exit-hook/index.js +171 -0
- package/dist/server/node_modules/async-exit-hook/license +21 -0
- package/dist/server/node_modules/async-exit-hook/package.json +66 -0
- package/dist/server/node_modules/async-exit-hook/readme.md +118 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/xtend/LICENSE +20 -0
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- package/package.json +1 -1
- package/dist/client/assets/agent-detail-BS4g93cA.js +0 -2
- package/dist/client/assets/agents-BuWI7PBX.js +0 -1
- package/dist/client/assets/ai-providers-logos-W57Qm-EN.js +0 -1
- package/dist/client/assets/automation-detail-DNo-sbc_.js +0 -1
- package/dist/client/assets/automations-CCXftgU_.js +0 -1
- package/dist/client/assets/circle-alert-DCE_cWKa.js +0 -1
- package/dist/client/assets/connect-Cak7aHsQ.js +0 -1
- package/dist/client/assets/connection-detail-ZRvu6X4P.js +0 -1
- package/dist/client/assets/connections-Bi0oPT3Y.js +0 -1
- package/dist/client/assets/constants-B4Swgi3d.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-b0Zt6Dxk.js +0 -1
- package/dist/client/assets/index-D5cL24p_.css +0 -1
- package/dist/client/assets/index-MKlLgXIW.js +0 -25
- package/dist/client/assets/index-X4FDee1r.js +0 -1
- package/dist/client/assets/layout-CA_pUlCy.js +0 -1
- package/dist/client/assets/mcp-server-detail-CTGb-hF0.js +0 -2
- package/dist/client/assets/members-CYtrIFR5.js +0 -3
- package/dist/client/assets/monitoring-dashboard-edit-6gWIXCOX.js +0 -1
- package/dist/client/assets/monitoring-gb_hJ2kW.js +0 -4
- package/dist/client/assets/org-ai-providers-BDwPbfg4.js +0 -1
- package/dist/client/assets/page-BrXIXidh.js +0 -1
- package/dist/client/assets/page-s-fs9Bly.js +0 -1
- package/dist/client/assets/plugins-DkI_FXfU.js +0 -1
- package/dist/client/assets/project-app-view-Boof680i.js +0 -1
- package/dist/client/assets/project-layout-CxwbtNi5.js +0 -1
- package/dist/client/assets/projects-list-DmvsbHJl.js +0 -1
- package/dist/client/assets/shell-layout-ZGvfzjfQ.js +0 -3
- package/dist/client/assets/tasks-zu-x8h5W.js +0 -1
- package/dist/client/assets/use-llm-BkLbMZPM.js +0 -1
- package/dist/client/assets/use-local-storage-CxC8ozOe.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DEfXPFTs.js +0 -1
- package/dist/client/assets/useQuery-D2ShO4od.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CT40dICu.js +0 -1
- package/dist/client/assets/workflow-C4-p-dLU.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as C,c as we,g as Be,j as t,al as Fe,E as Te,u as Ee,x as Me,v as Re,K as ve,J as ze,B as re,w as pe}from"./index-BXUNq6d7.js";import{b as Oe}from"./use-connection-lXrlfojY.js";import{u as $e,a as Ae}from"./constants-CDL9XClm.js";import{I as le}from"./input-BFH8rk50.js";import{I as ke}from"./integration-icon-D6SJHU0f.js";import{C as We}from"./checkbox-COsQJsO9.js";import{b as Le,P as Ve,a as Ue}from"./popover-BcyJids_.js";import{i as Ge}from"./AlignLeft-zj1VrWVO.js";import{t as Ie}from"./ChevronDown-DHeagNGb.js";import{n as Ke}from"./ChevronUp-J7upZD3-.js";import{s as qe}from"./Hash02-pqCZ_ykD.js";import{i as He}from"./Play-DqxAqUbl.js";import{s as Je}from"./Plus-CqWob4tu.js";import{s as Qe}from"./Trash01-C0891dQq.js";import{S as je,a as be,b as ye,c as Ne,d as w}from"./select-B-f7jgVG.js";import{T as Ye,a as Se}from"./toggle-group-B4QQy8X1.js";import{a as Ze,V as Xe}from"./layout-B2GnF_Vp.js";import{S as et}from"./save-actions-Py9YKTe0.js";import{B as tt,a as st,b as Pe,d as rt,e as lt,c as at}from"./breadcrumb-Dk9kRV2t.js";import"./use-collections-yY78nnLx.js";import"./useMutation-CkdHuTyE.js";import"./Container-Ci_1Xm4L.js";import"./Check-7kB05ju_.js";import"./index-L6huQtcJ.js";import"./index-rWegviRE.js";import"./useQuery-Bmc4jnG2.js";import"./tooltip-BGPUMzDS.js";import"./Save01-BfieBu6m.js";import"./Loading01-Cbk1oNZ2.js";import"./ChevronRight-Blv21S_7.js";const _e=({size:l=24,color:e="currentColor",...s})=>C.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},C.createElement("path",{d:"M8 15v2m4-6v6m4-10v10m-8.2 4h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 18.72 21 17.88 21 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 3 17.88 3 16.2 3H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21Z"}));_e.displayName="BarChartSquare02";function De(l){return{id:l.id,name:l.name,type:l.type,sourcePath:l.source.path,sourceFrom:l.source.from,aggregationFn:l.aggregation.fn,groupBy:l.aggregation.groupBy||"",interval:l.aggregation.interval||""}}function it(l){return{id:l.id,name:l.name,type:l.type,source:{path:l.sourcePath,from:l.sourceFrom},aggregation:{fn:l.aggregationFn,groupBy:l.type==="table"&&l.groupBy?l.groupBy:void 0,interval:l.type==="timeseries"&&l.interval?l.interval:void 0}}}const Ce={id:crypto.randomUUID(),name:"",type:"metric",sourcePath:"$.usage.total_tokens",sourceFrom:"output",aggregationFn:"sum",groupBy:"",interval:""};function nt(l){const e=we.c(36),{result:s,widget:o}=l;if(s.error){let i;return e[0]!==s.error?(i=t.jsx("div",{className:"text-sm text-destructive bg-destructive/10 rounded p-3",children:s.error}),e[0]=s.error,e[1]=i):i=e[1],i}if(o.type==="metric"){const i=s.value??0;let d;e[2]!==i?(d=i>=1e6?`${(i/1e6).toFixed(2)}M`:i>=1e3?`${(i/1e3).toFixed(2)}K`:typeof i=="number"?i.toFixed(2):String(i),e[2]=i,e[3]=d):d=e[3];const c=d;let m;e[4]!==c?(m=t.jsx("div",{className:"text-3xl font-bold tabular-nums",children:c}),e[4]=c,e[5]=m):m=e[5];const x=s.matchedRecords??0;let h;e[6]!==x?(h=t.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:[x," records matched"]}),e[6]=x,e[7]=h):h=e[7];let f;return e[8]!==m||e[9]!==h?(f=t.jsxs("div",{className:"text-center py-4",children:[m,h]}),e[8]=m,e[9]=h,e[10]=f):f=e[10],f}if(o.type==="table"&&s.groups){let i;e[11]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("thead",{className:"bg-muted/50 sticky top-0",children:t.jsxs("tr",{children:[t.jsx("th",{className:"text-left px-3 py-1.5 text-xs font-medium",children:"Key"}),t.jsx("th",{className:"text-right px-3 py-1.5 text-xs font-medium",children:"Value"})]})}),e[11]=i):i=e[11];let d;e[12]!==s.groups?(d=s.groups.length===0?t.jsx("tr",{children:t.jsx("td",{colSpan:2,className:"px-3 py-4 text-center text-muted-foreground text-xs",children:"No data"})}):s.groups.slice(0,10).map(ct),e[12]=s.groups,e[13]=d):d=e[13];let c;e[14]!==d?(c=t.jsxs("table",{className:"w-full text-sm",children:[i,t.jsx("tbody",{children:d})]}),e[14]=d,e[15]=c):c=e[15];let m;e[16]!==s.groups.length?(m=s.groups.length>10&&t.jsxs("div",{className:"text-xs text-muted-foreground text-center py-2",children:["+",s.groups.length-10," more rows"]}),e[16]=s.groups.length,e[17]=m):m=e[17];let x;return e[18]!==c||e[19]!==m?(x=t.jsxs("div",{className:"max-h-[200px] overflow-auto",children:[c,m]}),e[18]=c,e[19]=m,e[20]=x):x=e[20],x}if(o.type==="timeseries"&&s.timeseries){let i;e[21]!==s.timeseries?(i=Math.max(...s.timeseries.map(ot),1),e[21]=s.timeseries,e[22]=i):i=e[22];const d=i;let c;if(e[23]!==d||e[24]!==s.timeseries){let f;e[26]!==d?(f=(u,N)=>t.jsx("div",{className:"flex-1 bg-primary/80 rounded-t",style:{height:`${u.value/d*100}%`,minHeight:u.value>0?"2px":"0px"},title:`${new Date(u.timestamp).toLocaleString()}: ${u.value}`},N),e[26]=d,e[27]=f):f=e[27],c=s.timeseries.slice(-24).map(f),e[23]=d,e[24]=s.timeseries,e[25]=c}else c=e[25];let m;e[28]!==c?(m=t.jsx("div",{className:"flex items-end gap-0.5 h-[80px]",children:c}),e[28]=c,e[29]=m):m=e[29];let x;e[30]!==s.timeseries.length?(x=t.jsxs("div",{className:"text-xs text-muted-foreground text-center mt-2",children:[s.timeseries.length," data points"]}),e[30]=s.timeseries.length,e[31]=x):x=e[31];let h;return e[32]!==m||e[33]!==x?(h=t.jsxs("div",{className:"py-2",children:[m,x]}),e[32]=m,e[33]=x,e[34]=h):h=e[34],h}let j;return e[35]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"text-sm text-muted-foreground text-center py-4",children:"No preview data"}),e[35]=j):j=e[35],j}function ot(l){return l.value}function ct(l,e){return t.jsxs("tr",{className:"border-t",children:[t.jsx("td",{className:"px-3 py-1.5 font-mono text-xs",children:l.key}),t.jsx("td",{className:"px-3 py-1.5 text-right tabular-nums text-xs",children:l.value.toLocaleString()})]},e)}function mt(l){const e=we.c(113),{widget:s,onChange:o,onRemove:j,canRemove:i,onMoveUp:d,onMoveDown:c,canMoveUp:m,canMoveDown:x,onPreview:h,previewResult:f,isPreviewing:u}=l,N=!m;let z;e[0]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(Ke,{size:14}),e[0]=z):z=e[0];let D;e[1]!==d||e[2]!==N?(D=t.jsx(re,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:d,disabled:N,children:z}),e[1]=d,e[2]=N,e[3]=D):D=e[3];const ae=!x;let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(Ie,{size:14}),e[4]=g):g=e[4];let p;e[5]!==c||e[6]!==ae?(p=t.jsx(re,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:c,disabled:ae,children:g}),e[5]=c,e[6]=ae,e[7]=p):p=e[7];let k;e[8]!==D||e[9]!==p?(k=t.jsxs("div",{className:"flex items-center gap-0.5",children:[D,p]}),e[8]=D,e[9]=p,e[10]=k):k=e[10];let S;e[11]!==s.type?(S=t.jsx("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:s.type}),e[11]=s.type,e[12]=S):S=e[12];let F;e[13]!==s.name?(F=s.name&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted-foreground",children:"·"}),t.jsx("span",{className:"text-sm font-medium",children:s.name})]}),e[13]=s.name,e[14]=F):F=e[14];let _;e[15]!==k||e[16]!==S||e[17]!==F?(_=t.jsxs("div",{className:"flex items-center gap-2",children:[k,S,F]}),e[15]=k,e[16]=S,e[17]=F,e[18]=_):_=e[18];let P;e[19]!==u?(P=u?t.jsx(Fe,{size:14,className:"animate-spin"}):t.jsx(He,{size:14}),e[19]=u,e[20]=P):P=e[20];let B;e[21]!==u||e[22]!==h||e[23]!==P?(B=t.jsx(re,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:h,disabled:u,children:P}),e[21]=u,e[22]=h,e[23]=P,e[24]=B):B=e[24];const O=!i,ie=i?"visible":"hidden";let T;e[25]!==ie?(T={visibility:ie},e[25]=ie,e[26]=T):T=e[26];let $;e[27]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(Qe,{size:14}),e[27]=$):$=e[27];let E;e[28]!==j||e[29]!==O||e[30]!==T?(E=t.jsx(re,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:j,disabled:O,style:T,children:$}),e[28]=j,e[29]=O,e[30]=T,e[31]=E):E=e[31];let M;e[32]!==B||e[33]!==E?(M=t.jsxs("div",{className:"flex items-center gap-1",children:[B,E]}),e[32]=B,e[33]=E,e[34]=M):M=e[34];let R;e[35]!==_||e[36]!==M?(R=t.jsxs("div",{className:"flex items-center justify-between px-4 h-11 border-b bg-muted/30",children:[_,M]}),e[35]=_,e[36]=M,e[37]=R):R=e[37];let r;e[38]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("label",{className:"text-sm font-medium block mb-1.5",children:"Widget Name"}),e[38]=r):r=e[38];let a;e[39]!==o||e[40]!==s?(a=b=>o({...s,name:b.target.value}),e[39]=o,e[40]=s,e[41]=a):a=e[41];let n;e[42]!==a||e[43]!==s.name?(n=t.jsxs("div",{children:[r,t.jsx(le,{placeholder:"e.g., Total Tokens",value:s.name,onChange:a})]}),e[42]=a,e[43]=s.name,e[44]=n):n=e[44];let v;e[45]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("label",{className:"text-sm font-medium block mb-1.5",children:"Type"}),e[45]=v):v=e[45];let y;e[46]!==o||e[47]!==s?(y=b=>{b&&o({...s,type:b,groupBy:b==="table"?s.groupBy:"",interval:b==="timeseries"?s.interval||"1h":""})},e[46]=o,e[47]=s,e[48]=y):y=e[48];let I;e[49]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(Se,{value:"metric",className:"flex-1 h-full data-[state=on]:!bg-accent/70","aria-label":"Metric",children:t.jsx(qe,{size:14})}),e[49]=I):I=e[49];let A;e[50]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(Se,{value:"timeseries",className:"flex-1 h-full data-[state=on]:!bg-accent/70","aria-label":"Timeseries",children:t.jsx(_e,{size:14})}),e[50]=A):A=e[50];let ne;e[51]===Symbol.for("react.memo_cache_sentinel")?(ne=t.jsx(Se,{value:"table",className:"flex-1 h-full data-[state=on]:!bg-accent/70","aria-label":"Table",children:t.jsx(Ge,{size:14})}),e[51]=ne):ne=e[51];let W;e[52]!==y||e[53]!==s.type?(W=t.jsxs("div",{children:[v,t.jsxs(Ye,{type:"single",variant:"outline",size:"sm",value:s.type,onValueChange:y,className:"w-full h-10",children:[I,A,ne]})]}),e[52]=y,e[53]=s.type,e[54]=W):W=e[54];let L;e[55]!==n||e[56]!==W?(L=t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[n,W]}),e[55]=n,e[56]=W,e[57]=L):L=e[57];let oe;e[58]===Symbol.for("react.memo_cache_sentinel")?(oe=t.jsx("label",{className:"text-sm font-medium block mb-1.5",children:"JSONPath Expression"}),e[58]=oe):oe=e[58];let V;e[59]!==o||e[60]!==s?(V=b=>o({...s,sourcePath:b.target.value}),e[59]=o,e[60]=s,e[61]=V):V=e[61];let U;e[62]!==V||e[63]!==s.sourcePath?(U=t.jsx(le,{placeholder:"$.usage.total_tokens",value:s.sourcePath,onChange:V,className:"font-mono text-sm"}),e[62]=V,e[63]=s.sourcePath,e[64]=U):U=e[64];let G;e[65]!==s.sourceFrom?(G=t.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Path to extract from tool call ",s.sourceFrom]}),e[65]=s.sourceFrom,e[66]=G):G=e[66];let K;e[67]!==U||e[68]!==G?(K=t.jsxs("div",{children:[oe,U,G]}),e[67]=U,e[68]=G,e[69]=K):K=e[69];let ce;e[70]===Symbol.for("react.memo_cache_sentinel")?(ce=t.jsx("label",{className:"text-sm font-medium block mb-1.5",children:"Extract From"}),e[70]=ce):ce=e[70];let q;e[71]!==o||e[72]!==s?(q=b=>o({...s,sourceFrom:b}),e[71]=o,e[72]=s,e[73]=q):q=e[73];let me;e[74]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(be,{children:t.jsx(ye,{})}),e[74]=me):me=e[74];let de;e[75]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsxs(Ne,{children:[t.jsx(w,{value:"output",children:"Output"}),t.jsx(w,{value:"input",children:"Input"})]}),e[75]=de):de=e[75];let H;e[76]!==q||e[77]!==s.sourceFrom?(H=t.jsxs("div",{children:[ce,t.jsxs(je,{value:s.sourceFrom,onValueChange:q,children:[me,de]})]}),e[76]=q,e[77]=s.sourceFrom,e[78]=H):H=e[78];let ue;e[79]===Symbol.for("react.memo_cache_sentinel")?(ue=t.jsx("label",{className:"text-sm font-medium block mb-1.5",children:"Aggregation"}),e[79]=ue):ue=e[79];let J;e[80]!==o||e[81]!==s?(J=b=>o({...s,aggregationFn:b}),e[80]=o,e[81]=s,e[82]=J):J=e[82];let xe;e[83]===Symbol.for("react.memo_cache_sentinel")?(xe=t.jsx(be,{children:t.jsx(ye,{})}),e[83]=xe):xe=e[83];let he;e[84]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsxs(Ne,{children:[t.jsx(w,{value:"sum",children:"Sum"}),t.jsx(w,{value:"avg",children:"Average"}),t.jsx(w,{value:"min",children:"Minimum"}),t.jsx(w,{value:"max",children:"Maximum"}),t.jsx(w,{value:"count",children:"Count"}),t.jsx(w,{value:"last",children:"Last"})]}),e[84]=he):he=e[84];let Q;e[85]!==J||e[86]!==s.aggregationFn?(Q=t.jsxs("div",{children:[ue,t.jsxs(je,{value:s.aggregationFn,onValueChange:J,children:[xe,he]})]}),e[85]=J,e[86]=s.aggregationFn,e[87]=Q):Q=e[87];let Y;e[88]!==H||e[89]!==Q?(Y=t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[H,Q]}),e[88]=H,e[89]=Q,e[90]=Y):Y=e[90];let Z;e[91]!==o||e[92]!==s?(Z=s.type==="table"&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium block mb-1.5",children:"Group By (JSONPath)"}),t.jsx(le,{placeholder:"$.model",value:s.groupBy,onChange:b=>o({...s,groupBy:b.target.value}),className:"font-mono text-sm"})]}),e[91]=o,e[92]=s,e[93]=Z):Z=e[93];let X;e[94]!==o||e[95]!==s?(X=s.type==="timeseries"&&t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium block mb-1.5",children:"Time Interval"}),t.jsxs(je,{value:s.interval||"1h",onValueChange:b=>o({...s,interval:b}),children:[t.jsx(be,{children:t.jsx(ye,{})}),t.jsxs(Ne,{children:[t.jsx(w,{value:"15m",children:"15 minutes"}),t.jsx(w,{value:"1h",children:"1 hour"}),t.jsx(w,{value:"1d",children:"1 day"})]})]})]}),e[94]=o,e[95]=s,e[96]=X):X=e[96];let ee;e[97]!==L||e[98]!==K||e[99]!==Y||e[100]!==Z||e[101]!==X?(ee=t.jsxs("div",{className:"space-y-4",children:[L,K,Y,Z,X]}),e[97]=L,e[98]=K,e[99]=Y,e[100]=Z,e[101]=X,e[102]=ee):ee=e[102];let fe;e[103]===Symbol.for("react.memo_cache_sentinel")?(fe=t.jsx("div",{className:"px-3 py-2 border-b text-xs font-medium text-muted-foreground",children:"Preview (last 24h)"}),e[103]=fe):fe=e[103];let te;e[104]!==f||e[105]!==s?(te=t.jsxs("div",{className:"border rounded-lg bg-muted/20 flex flex-col",children:[fe,t.jsx("div",{className:"p-3 flex-1 flex items-center justify-center",children:f?t.jsx(nt,{result:f,widget:s}):t.jsx("div",{className:"text-sm text-muted-foreground text-center",children:'Click "Preview" to test your aggregation'})})]}),e[104]=f,e[105]=s,e[106]=te):te=e[106];let se;e[107]!==ee||e[108]!==te?(se=t.jsx("div",{className:"p-4",children:t.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[ee,te]})}),e[107]=ee,e[108]=te,e[109]=se):se=e[109];let ge;return e[110]!==R||e[111]!==se?(ge=t.jsxs("div",{className:"border rounded-lg bg-card overflow-hidden",children:[R,se]}),e[110]=R,e[111]=se,e[112]=ge):ge=e[112],ge}function dt({dashboardId:l}){const{org:e,project:s,locator:o}=Ee(),j=Me(),i=$e({connectionId:Ae,orgId:e.id}),d=Oe(),{data:c}=Re({queryKey:ve.monitoringDashboardDetails(o,l),queryFn:async()=>{if(!i)throw new Error("MCP client not available");const r=await i.callTool({name:"MONITORING_DASHBOARD_GET",arguments:{id:l}});return r.structuredContent??r}}),[m,x]=C.useState(c?.name??""),[h,f]=C.useState(c?.description??""),[u,N]=C.useState(c?.widgets?.map(De)??[{...Ce}]),[z,D]=C.useState(!1),[ae,g]=C.useState(!1),[p,k]=C.useState(c?.filters?.connectionIds??[]),[S,F]=C.useState(c?.filters?.toolNames?.[0]??""),[_,P]=C.useState({}),[B,O]=C.useState(new Set),ie=()=>{N([...u,{...Ce,id:crypto.randomUUID()}]),g(!0)},T=r=>{N(u.filter((a,n)=>n!==r)),g(!0)},$=(r,a)=>{const n=[...u];n[r]=a,N(n),g(!0),P(v=>{const y={...v};return delete y[a.id],y})},E=async r=>{if(i){O(a=>new Set(a).add(r.id));try{const a=new Date,n=new Date(a.getTime()-1440*60*1e3),v={};p.length>0&&(v.connectionIds=p),S.trim()&&(v.toolNames=[S.trim()]);const I=(await i.callTool({name:"MONITORING_WIDGET_PREVIEW",arguments:{widget:{type:r.type,source:{path:r.sourcePath,from:r.sourceFrom},aggregation:{fn:r.aggregationFn,groupBy:r.type==="table"&&r.groupBy?r.groupBy:void 0,interval:r.type==="timeseries"&&r.interval?r.interval:void 0},filter:Object.keys(v).length>0?v:void 0},timeRange:{startDate:n.toISOString(),endDate:a.toISOString()}}})).structuredContent;P(A=>({...A,[r.id]:{value:I?.value,groups:I?.groups,timeseries:I?.timeseries,matchedRecords:I?.matchedRecords??0}}))}catch(a){console.error("Preview failed:",a),P(n=>({...n,[r.id]:{error:"Preview failed. Check your JSONPath expression."}}))}finally{O(a=>{const n=new Set(a);return n.delete(r.id),n})}}},M=async()=>{if(i){if(!m.trim()){pe.error("Please enter a dashboard name");return}if(u.some(r=>!r.name.trim())){pe.error("Please enter a name for all widgets");return}D(!0);try{const r={};p.length>0&&(r.connectionIds=p),S.trim()&&(r.toolNames=[S.trim()]),await i.callTool({name:"MONITORING_DASHBOARD_UPDATE",arguments:{id:l,name:m.trim(),description:h.trim()||null,filters:Object.keys(r).length>0?r:null,widgets:u.map(it)}}),pe.success("Dashboard saved"),g(!1),j.invalidateQueries({queryKey:ve.monitoringDashboards(o)}),j.invalidateQueries({queryKey:ve.monitoringDashboardDetails(o,l)})}catch(r){pe.error("Failed to save dashboard"),console.error(r)}finally{D(!1)}}};if(!c)return t.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Dashboard not found"});const R=t.jsx(tt,{children:t.jsxs(st,{children:[t.jsx(Pe,{children:t.jsx(rt,{asChild:!0,children:t.jsx(ze,{to:"/$org/$project/monitoring",params:{org:e.slug,project:s.slug},search:{tab:"dashboards"},children:"Monitoring"})})}),t.jsx(lt,{}),t.jsx(Pe,{children:t.jsxs(at,{children:["Edit ",c.name]})})]})});return t.jsxs(Ze,{breadcrumb:R,children:[t.jsx(Xe,{children:t.jsx(et,{onSave:M,onUndo:()=>{x(c?.name??""),f(c?.description??""),N(c?.widgets?.map(De)??[{...Ce}]),k(c?.filters?.connectionIds??[]),F(c?.filters?.toolNames?.[0]??""),g(!1)},isDirty:ae,isSaving:z})}),t.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:t.jsxs("div",{className:"max-w-4xl mx-auto space-y-6",children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium block mb-1.5",children:"Dashboard Name"}),t.jsx(le,{placeholder:"e.g., LLM Usage Overview",value:m,onChange:r=>{x(r.target.value),g(!0)}})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium block mb-1.5",children:"Description"}),t.jsx(le,{placeholder:"What does this dashboard show?",value:h,onChange:r=>{f(r.target.value),g(!0)}})]})]}),t.jsxs("div",{className:"border rounded-lg p-4 bg-muted/30",children:[t.jsxs("h2",{className:"text-sm font-medium mb-3",children:["Dashboard Filters",t.jsx("span",{className:"text-muted-foreground font-normal ml-2",children:"(applied to all widgets)"})]}),t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium block mb-1.5",children:"Servers"}),t.jsxs(Le,{children:[t.jsx(Ve,{asChild:!0,children:t.jsxs(re,{variant:"outline",className:"w-full justify-between font-normal",children:[t.jsx("span",{className:"flex items-center gap-2 truncate",children:p.length===0?t.jsx("span",{className:"text-muted-foreground",children:"All servers"}):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"flex items-center -space-x-1",children:p.slice(0,3).map(r=>{const a=(d??[]).find(n=>n.id===r);return a?t.jsx(ke,{icon:a.icon,name:a.title||a.id,size:"xs"},r):null})}),t.jsxs("span",{children:[p.length," server",p.length!==1?"s":""]})]})}),t.jsx(Ie,{size:14,className:"text-muted-foreground shrink-0"})]})}),t.jsxs(Ue,{align:"start",className:"w-72 p-1",children:[t.jsx("div",{className:"max-h-[240px] overflow-y-auto",children:(d??[]).map(r=>{const a=p.includes(r.id);return t.jsxs("button",{type:"button",className:"flex items-center gap-3 w-full rounded-md px-2 py-2 text-sm hover:bg-muted transition-colors",onClick:()=>{k(n=>a?n.filter(v=>v!==r.id):[...n,r.id]),g(!0)},children:[t.jsx(We,{checked:a}),t.jsx(ke,{icon:r.icon,name:r.title||r.id,size:"xs"}),t.jsx("span",{className:"truncate",children:r.title||r.id})]},r.id)})}),p.length>0&&t.jsx("div",{className:"border-t p-1",children:t.jsx("button",{type:"button",className:"w-full text-xs text-muted-foreground hover:text-foreground py-1.5 transition-colors",onClick:()=>{k([]),g(!0)},children:"Clear selection"})})]})]})]}),t.jsxs("div",{children:[t.jsx("label",{className:"text-sm font-medium block mb-1.5",children:"Tool Name Filter"}),t.jsx(le,{placeholder:"e.g., openai_chat",value:S,onChange:r=>{F(r.target.value),g(!0)},className:"font-mono text-sm"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Filter to specific tool names (partial match)"})]})]})]}),t.jsxs("div",{className:"mt-12",children:[t.jsxs("div",{className:"flex items-center justify-between mb-4",children:[t.jsx("h2",{className:"text-lg font-medium",children:"Widgets"}),t.jsxs(re,{variant:"outline",size:"sm",onClick:ie,children:[t.jsx(Je,{size:14,className:"mr-1.5"}),"Add Widget"]})]}),t.jsx("div",{className:"space-y-4",children:u.map((r,a)=>t.jsx(mt,{widget:r,onChange:n=>$(a,n),onRemove:()=>T(a),canRemove:u.length>1,onMoveUp:()=>{const n=[...u],v=n[a-1],y=n[a];n[a-1]=y,n[a]=v,N(n),g(!0)},onMoveDown:()=>{const n=[...u],v=n[a],y=n[a+1];n[a]=y,n[a+1]=v,N(n),g(!0)},canMoveUp:a>0,canMoveDown:a<u.length-1,onPreview:()=>E(r),previewResult:_[r.id]??null,isPreviewing:B.has(r.id)},r.id))})]})]})})]})}function Lt(){const l=we.c(5);let e;l[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},l[0]=e):e=l[0];const{dashboardId:s}=Be(e);let o;l[1]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Failed to load dashboard editor"}),l[1]=o):o=l[1];let j;l[2]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Fe,{size:24,className:"animate-spin text-muted-foreground"})}),l[2]=j):j=l[2];let i;return l[3]!==s?(i=t.jsx(Te,{fallback:o,children:t.jsx(C.Suspense,{fallback:j,children:t.jsx(dt,{dashboardId:s})})}),l[3]=s,l[4]=i):i=l[4],i}export{Lt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as $,j as t,B as R,c as D,x as xe,al as re,E as ge,u as fe,v as ne,K as oe,J as pe,g as he,e as je}from"./index-
|
|
1
|
+
import{r as $,j as t,B as R,c as D,x as xe,al as re,E as ge,u as fe,v as ne,K as oe,J as pe,g as he,e as je}from"./index-BXUNq6d7.js";import{a as be,u as ye}from"./constants-CDL9XClm.js";import{p as ee,a as ce,s as ve,b as Ne,e as me,T as we}from"./time-range-picker-FJd_w9AH.js";import{i as ke}from"./Edit05-BA2Lz_6R.js";import{V as Se,a as Ce}from"./layout-B2GnF_Vp.js";import{b as de,c as $e,d as Fe,e as Re,B as De,a as Te}from"./breadcrumb-Dk9kRV2t.js";import{B as _e}from"./badge-B-_hRtCy.js";import{I as ue}from"./input-BFH8rk50.js";import{b as Pe,P as Ie,a as Me}from"./popover-BcyJids_.js";import{S as ze,a as Be,b as Ee,c as Oe,d as Ae}from"./select-B-f7jgVG.js";import{T as Ke}from"./textarea-DPLd5P1K.js";import{T as Le,a as Ve,b as qe}from"./tooltip-BGPUMzDS.js";import{i as Qe}from"./Code01-DDbKsccR.js";import{i as We}from"./FilterLines-DCrzLWfV.js";import{c as Ge}from"./Grid01-Dqz--q3o.js";import{s as He}from"./Plus-CqWob4tu.js";import{s as Ye}from"./Trash01-C0891dQq.js";import{s as Je}from"./XClose-BieEiV6P.js";import"./Check-7kB05ju_.js";import"./Copy01-BexEalI-.js";import"./Download01-D-oC1d8d.js";import"./Key01-Dq5b7fdA.js";import"./Play-DqxAqUbl.js";import"./monaco-editor-VspAvYbk.js";import"./spinner-B1-EIDBS.js";import"./scroll-area-R7PT492V.js";import"./ChevronUp-J7upZD3-.js";import"./ChevronDown-DHeagNGb.js";import"./Clock-9Mm0U0Dg.js";import"./ChevronLeft-W2gkpjgL.js";import"./ChevronRight-Blv21S_7.js";import"./index-rWegviRE.js";import"./useQuery-Bmc4jnG2.js";import"./useMutation-CkdHuTyE.js";import"./index-L6huQtcJ.js";const Ue=[{value:"eq",label:"equals"},{value:"contains",label:"contains"},{value:"in",label:"in (list)"},{value:"exists",label:"exists"}];function Xe({value:s,onChange:e}){const[r,i]=$.useState(!1),[l,n]=$.useState("raw"),[c,o]=$.useState(s),[m,d]=$.useState(ee(s)),g=$.useRef(s);g.current!==s&&(g.current=s,o(s),d(ee(s)));const f=()=>{e(c.filter(a=>a.key.trim()))},p=()=>{const a=ce(m);o(a),e(a)},j=()=>{if(l==="raw"){const a=ce(m);o(a),n("form")}else d(ee(c)),n("raw")},v=(a,x)=>{const u=[...c],h=u[a];h&&(u[a]={key:x.key??h.key,operator:x.operator??h.operator,value:x.value??h.value},o(u))},b=()=>{o([...c,{key:"",operator:"eq",value:""}])},w=a=>{const x=c.filter((u,h)=>h!==a);o(x),d(ee(x)),e(x.filter(u=>u.key.trim()))},y=()=>{o([]),d(""),e([]),i(!1)},k=s.filter(a=>a.key.trim()).length;return t.jsxs("div",{className:"flex items-center gap-1.5",children:[s.filter(a=>a.key.trim()).map((a,x)=>{const u=a.operator==="exists"?`${a.key}?`:a.operator==="contains"?`${a.key}~${a.value}`:a.operator==="in"?`${a.key}@${a.value}`:`${a.key}=${a.value}`;return t.jsxs(_e,{variant:"secondary",className:"gap-1 pl-2 pr-1 h-7 text-xs font-mono font-normal cursor-default",children:[u,t.jsx("button",{type:"button",className:"ml-0.5 rounded-full p-0.5 hover:bg-muted-foreground/20 transition-colors",onClick:()=>{const h=s.filter((C,F)=>F!==x);e(h)},children:t.jsx(Je,{size:12})})]},`${a.key}-${x}`)}),t.jsxs(Pe,{open:r,onOpenChange:i,children:[t.jsx(Ie,{asChild:!0,children:t.jsxs(R,{variant:"outline",size:"sm",className:"h-7 px-2 gap-1.5",children:[t.jsx(We,{className:"h-3.5 w-3.5 text-muted-foreground"}),k===0?t.jsx("span",{className:"text-sm",children:"Filter"}):t.jsx("span",{className:"text-sm",children:k})]})}),t.jsxs(Me,{className:"w-[380px] p-4",align:"end",sideOffset:4,children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsx("h4",{className:"text-sm font-medium",children:"Property Filters"}),t.jsxs(Le,{children:[t.jsx(Ve,{asChild:!0,children:t.jsx(R,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:j,children:l==="raw"?t.jsx(Ge,{size:14}):t.jsx(Qe,{size:14})})}),t.jsx(qe,{children:l==="raw"?"Switch to form view":"Switch to raw text"})]})]}),l==="raw"?t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(Ke,{placeholder:`Paste property filters here:
|
|
2
2
|
thread_id=abc123
|
|
3
3
|
user~test
|
|
4
|
-
debug?`,value:m,onChange:a=>d(a.target.value),onBlur:p,onKeyDown:a=>{a.key==="Enter"&&a.metaKey&&p()},className:"font-mono text-sm min-h-[80px] resize-none"}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["One per line:"," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key=value"})," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key~contains"})," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key@in_list"})," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key?"})]})]}):t.jsxs("div",{className:"space-y-3",children:[c.map((a,x)=>t.jsxs("div",{className:"p-2.5 rounded-md border border-border bg-muted/30 space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("span",{className:"text-xs text-muted-foreground",children:["Filter ",x+1]}),t.jsx(R,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:()=>w(x),children:t.jsx(Ye,{size:12})})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(ue,{placeholder:"Key (e.g., thread_id)",value:a.key,onChange:u=>v(x,{key:u.target.value}),onBlur:f,onKeyDown:u=>{u.key==="Enter"&&f()},className:"flex-1 font-mono text-sm"}),t.jsxs(ze,{value:a.operator,onValueChange:u=>{const h=[...c],C=h[x];C&&(h[x]={...C,operator:u,value:u==="exists"?"":C.value},o(h),e(h.filter(F=>F.key.trim())))},children:[t.jsx(Be,{className:"w-28",children:t.jsx(Ee,{})}),t.jsx(Oe,{children:Ue.map(u=>t.jsx(Ae,{value:u.value,children:u.label},u.value))})]})]}),a.operator!=="exists"&&t.jsx(ue,{placeholder:"Value",value:a.value,onChange:u=>v(x,{value:u.target.value}),onBlur:f,onKeyDown:u=>{u.key==="Enter"&&f()},className:"w-full font-mono text-sm"})]},x)),t.jsxs(R,{variant:"outline",size:"sm",className:"w-full",onClick:b,children:[t.jsx(He,{size:14,className:"mr-1.5"}),"Add filter"]})]}),k>0&&t.jsx(R,{variant:"ghost",size:"sm",className:"w-full mt-3 text-muted-foreground",onClick:y,children:"Clear all filters"})]})]})]})}function G(s,e){return e||Number.isInteger(s)?s>=1e6?`${(s/1e6).toFixed(1)}M`:s>=1e3?`${(s/1e3).toFixed(1)}K`:s.toLocaleString():s>=1e6?`${(s/1e6).toFixed(2)}M`:s>=1e3?`${(s/1e3).toFixed(2)}K`:s.toFixed(2)}function ae(s){return{sum:"Total",avg:"Average",min:"Minimum",max:"Maximum",count:"Count",last:"Latest"}[s]??s}function le(s){const e=D.c(7),{name:r,subtitle:i}=s;let l;e[0]!==r?(l=t.jsx("div",{className:"text-sm font-medium text-foreground",children:r}),e[0]=r,e[1]=l):l=e[1];let n;e[2]!==i?(n=t.jsx("div",{className:"text-xs text-muted-foreground",children:i}),e[2]=i,e[3]=n):n=e[3];let c;return e[4]!==l||e[5]!==n?(c=t.jsxs("div",{className:"px-4 py-3",children:[l,n]}),e[4]=l,e[5]=n,e[6]=c):c=e[6],c}function Ze(s){const e=D.c(13),{widget:r,result:i}=s,l=i?.value??0,n=r.aggregation.fn==="count",c=r.name;let o;e[0]!==r.aggregation.fn?(o=ae(r.aggregation.fn),e[0]=r.aggregation.fn,e[1]=o):o=e[1];let m;e[2]!==o||e[3]!==r.name?(m=t.jsx(le,{name:c,subtitle:o}),e[2]=o,e[3]=r.name,e[4]=m):m=e[4];let d;e[5]!==n||e[6]!==l?(d=G(l,n),e[5]=n,e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=t.jsx("div",{className:"px-4 pb-4 mt-auto",children:t.jsx("div",{className:"text-4xl font-bold tabular-nums",children:d})}),e[8]=d,e[9]=g):g=e[9];let f;return e[10]!==m||e[11]!==g?(f=t.jsxs("div",{className:"border rounded-lg bg-card flex flex-col h-full",children:[m,g]}),e[10]=m,e[11]=g,e[12]=f):f=e[12],f}function et(s){const e=D.c(15),{widget:r,result:i}=s;let l,n;e[0]!==i?.groups?(l=i?.groups??[],n=Math.max(...l.map(tt),1),e[0]=i?.groups,e[1]=l,e[2]=n):(l=e[1],n=e[2]);const c=n;let o;e[3]!==r.aggregation.fn||e[4]!==r.aggregation.groupBy?(o=r.aggregation.groupBy?`Grouped by ${r.aggregation.groupBy}`:ae(r.aggregation.fn),e[3]=r.aggregation.fn,e[4]=r.aggregation.groupBy,e[5]=o):o=e[5];let m;e[6]!==o||e[7]!==r.name?(m=t.jsx(le,{name:r.name,subtitle:o}),e[6]=o,e[7]=r.name,e[8]=m):m=e[8];let d;e[9]!==l||e[10]!==c?(d=t.jsx("div",{className:"max-h-[300px] overflow-auto",children:l.length===0?t.jsx("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground",children:"No data available for this query"}):t.jsx("div",{className:"divide-y",children:l.map(f=>t.jsxs("div",{className:"flex items-center gap-3 px-4 py-2",children:[t.jsx("span",{className:"text-sm truncate flex-1 min-w-0",children:f.key||"(empty)"}),t.jsxs("div",{className:"flex items-center gap-2 shrink-0 w-32",children:[t.jsx("div",{className:"flex-1 h-1.5 bg-muted rounded-full overflow-hidden",children:t.jsx("div",{className:"h-full bg-primary rounded-full",style:{width:`${f.value/c*100}%`}})}),t.jsx("span",{className:"text-xs tabular-nums text-muted-foreground w-10 text-right",children:G(f.value,!0)})]})]},f.key))})}),e[9]=l,e[10]=c,e[11]=d):d=e[11];let g;return e[12]!==m||e[13]!==d?(g=t.jsxs("div",{className:"border rounded-lg bg-card overflow-hidden flex flex-col h-full",children:[m,d]}),e[12]=m,e[13]=d,e[14]=g):g=e[14],g}function tt(s){return s.value}function st(s){const e=D.c(37),{widget:r,result:i}=s;let l,n,c,o,m,d,g,f,p;if(e[0]!==i?.timeseries||e[1]!==r.aggregation.fn||e[2]!==r.aggregation.interval||e[3]!==r.name){p=i?.timeseries??[],n=Math.max(...p.map(at),1);const a=p.reduce(rt,0);l=r.aggregation.fn==="count",f="border rounded-lg bg-card overflow-hidden flex flex-col h-full",d="flex items-start justify-between pr-4";const x=r.name;let u;e[13]!==r.aggregation.fn?(u=ae(r.aggregation.fn),e[13]=r.aggregation.fn,e[14]=u):u=e[14];const h=`${u} per ${r.aggregation.interval}`;e[15]!==h||e[16]!==r.name?(g=t.jsx(le,{name:x,subtitle:h}),e[15]=h,e[16]=r.name,e[17]=g):g=e[17],m="text-right pt-3",c="text-lg font-semibold tabular-nums leading-tight",o=G(a,l),e[0]=i?.timeseries,e[1]=r.aggregation.fn,e[2]=r.aggregation.interval,e[3]=r.name,e[4]=l,e[5]=n,e[6]=c,e[7]=o,e[8]=m,e[9]=d,e[10]=g,e[11]=f,e[12]=p}else l=e[4],n=e[5],c=e[6],o=e[7],m=e[8],d=e[9],g=e[10],f=e[11],p=e[12];let j;e[18]!==c||e[19]!==o?(j=t.jsx("div",{className:c,children:o}),e[18]=c,e[19]=o,e[20]=j):j=e[20];let v;e[21]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("div",{className:"text-xs text-muted-foreground",children:"total"}),e[21]=v):v=e[21];let b;e[22]!==m||e[23]!==j?(b=t.jsxs("div",{className:m,children:[j,v]}),e[22]=m,e[23]=j,e[24]=b):b=e[24];let w;e[25]!==d||e[26]!==g||e[27]!==b?(w=t.jsxs("div",{className:d,children:[g,b]}),e[25]=d,e[26]=g,e[27]=b,e[28]=w):w=e[28];let y;e[29]!==l||e[30]!==n||e[31]!==p?(y=t.jsx("div",{className:"px-4 pb-3 flex-1 flex flex-col min-h-0",children:p.length===0?t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"No data available"}):t.jsxs("div",{className:"flex-1 flex flex-col",children:[t.jsx("div",{className:"text-[10px] text-muted-foreground mb-1 tabular-nums",children:G(n,l)}),t.jsx("div",{className:"flex items-end gap-[2px] flex-1",children:p.map((a,x)=>t.jsx("div",{className:"group relative flex-1 bg-primary/70 rounded-t transition-all hover:bg-primary cursor-default",style:{height:`${a.value/n*100}%`,minHeight:a.value>0?"3px":"0px"},children:t.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-1.5 hidden group-hover:block z-10 pointer-events-none",children:t.jsx("div",{className:"bg-foreground text-background text-[10px] px-1.5 py-0.5 rounded whitespace-nowrap tabular-nums",children:G(a.value,l)})})},x))}),t.jsx("div",{className:"flex justify-between text-[10px] text-muted-foreground mt-1.5 tabular-nums",children:p.length>0&&(()=>{const a=new Date(p[0].timestamp),x=new Date(p[p.length-1].timestamp),C=x.getTime()-a.getTime()>864e5?{month:"short",day:"numeric"}:{hour:"2-digit",minute:"2-digit"};return t.jsxs(t.Fragment,{children:[t.jsx("span",{children:a.toLocaleString([],C)}),t.jsx("span",{children:x.toLocaleString([],C)})]})})()})]})}),e[29]=l,e[30]=n,e[31]=p,e[32]=y):y=e[32];let k;return e[33]!==w||e[34]!==y||e[35]!==f?(k=t.jsxs("div",{className:f,children:[w,y]}),e[33]=w,e[34]=y,e[35]=f,e[36]=k):k=e[36],k}function rt(s,e){return s+e.value}function at(s){return s.value}function lt(s){const e=D.c(81),{dashboardId:r,timeRange:i,propertyFilters:l,onEdit:n,onRefresh:c,onTimeRangeChange:o,onPropertyFiltersChange:m}=s,{org:d,project:g,locator:f}=fe();let p;e[0]!==d.id?(p={connectionId:be,orgId:d.id},e[0]=d.id,e[1]=p):p=e[1];const j=ye(p);let v;e[2]!==r||e[3]!==f?(v=oe.monitoringDashboardDetails(f,r),e[2]=r,e[3]=f,e[4]=v):v=e[4];let b;e[5]!==j||e[6]!==r?(b=async()=>{if(!j)throw new Error("MCP client not available");const N=await j.callTool({name:"MONITORING_DASHBOARD_GET",arguments:{id:r}});return N.structuredContent??N},e[5]=j,e[6]=r,e[7]=b):b=e[7];let w;e[8]!==v||e[9]!==b?(w={queryKey:v,queryFn:b},e[8]=v,e[9]=b,e[10]=w):w=e[10];const{data:y}=ne(w);let k,a,x;if(e[11]!==r||e[12]!==f||e[13]!==l||e[14]!==i.from||e[15]!==i.to){const N=l.filter(ot),S=ve(N);k=N.length>0?Ne(N):void 0,x=ne,a=oe.monitoringDashboardQuery(f,r,i.from,i.to,S||void 0),e[11]=r,e[12]=f,e[13]=l,e[14]=i.from,e[15]=i.to,e[16]=k,e[17]=a,e[18]=x}else k=e[16],a=e[17],x=e[18];let u;e[19]!==k||e[20]!==j||e[21]!==r||e[22]!==i.from||e[23]!==i.to?(u=async()=>{if(!j)throw new Error("MCP client not available");const N=me(i.from),S=me(i.to),W=N.date||new Date(Date.now()-864e5),se=S.date||new Date,ie=await j.callTool({name:"MONITORING_DASHBOARD_QUERY",arguments:{dashboardId:r,timeRange:{startDate:W.toISOString(),endDate:se.toISOString()},...k?{propertyFilters:k}:{}}});return ie.structuredContent??ie},e[19]=k,e[20]=j,e[21]=r,e[22]=i.from,e[23]=i.to,e[24]=u):u=e[24];let h;e[25]!==a||e[26]!==u?(h={queryKey:a,queryFn:u,refetchInterval:3e4},e[25]=a,e[26]=u,e[27]=h):h=e[27];const{data:C,isRefetching:F}=x(h);if(!y){let N;return e[28]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Dashboard not found"}),e[28]=N):N=e[28],N}let H;e[29]!==C?.results?(H=new Map(C?.results?.map(nt)??[]),e[29]=C?.results,e[30]=H):H=e[30];const Q=H;let T;e[31]!==d.slug||e[32]!==g.slug?(T={org:d.slug,project:g.slug},e[31]=d.slug,e[32]=g.slug,e[33]=T):T=e[33];let Y;e[34]===Symbol.for("react.memo_cache_sentinel")?(Y={tab:"dashboards"},e[34]=Y):Y=e[34];let _;e[35]!==T?(_=t.jsx(de,{children:t.jsx(Fe,{asChild:!0,children:t.jsx(pe,{to:"/$org/$project/monitoring",params:T,search:Y,children:"Monitoring"})})}),e[35]=T,e[36]=_):_=e[36];let J;e[37]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Re,{}),e[37]=J):J=e[37];let P;e[38]!==y.name?(P=t.jsx(de,{children:t.jsx($e,{children:y.name})}),e[38]=y.name,e[39]=P):P=e[39];let U;e[40]!==_||e[41]!==P?(U=t.jsx(De,{children:t.jsxs(Te,{children:[_,J,P]})}),e[40]=_,e[41]=P,e[42]=U):U=e[42];const te=U;let I;e[43]!==n?(I=n&&t.jsx(R,{variant:"outline",size:"icon",className:"h-7 w-7",onClick:n,children:t.jsx(ke,{size:14})}),e[43]=n,e[44]=I):I=e[44];let X;e[45]===Symbol.for("react.memo_cache_sentinel")?(X=t.jsx(re,{size:14}),e[45]=X):X=e[45];let M;e[46]!==c?(M=t.jsx(R,{variant:"outline",size:"icon",className:"h-7 w-7",onClick:c,children:X}),e[46]=c,e[47]=M):M=e[47];let z;e[48]!==m||e[49]!==l?(z=t.jsx(Xe,{value:l,onChange:m}),e[48]=m,e[49]=l,e[50]=z):z=e[50];let B;e[51]!==i.from||e[52]!==i.to?(B={from:i.from,to:i.to},e[51]=i.from,e[52]=i.to,e[53]=B):B=e[53];let E;e[54]!==o||e[55]!==B?(E=t.jsx(we,{value:B,onChange:o,className:"min-w-0"}),e[54]=o,e[55]=B,e[56]=E):E=e[56];let O;e[57]!==I||e[58]!==M||e[59]!==z||e[60]!==E?(O=t.jsxs(Se,{children:[I,M,z,E]}),e[57]=I,e[58]=M,e[59]=z,e[60]=E,e[61]=O):O=e[61];let A;e[62]!==y.description?(A=y.description&&t.jsx("div",{className:"mb-6",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:y.description})}),e[62]=y.description,e[63]=A):A=e[63];let K;if(e[64]!==y.widgets||e[65]!==Q){let N;e[67]!==Q?(N=S=>{const W=Q.get(S.id),se=S.type==="metric"?"":"col-span-2";return t.jsxs("div",{className:se,children:[S.type==="metric"&&t.jsx(Ze,{widget:S,result:W}),S.type==="table"&&t.jsx(et,{widget:S,result:W}),S.type==="timeseries"&&t.jsx(st,{widget:S,result:W})]},S.id)},e[67]=Q,e[68]=N):N=e[68],K=y.widgets.map(N),e[64]=y.widgets,e[65]=Q,e[66]=K}else K=e[66];let L;e[69]!==K?(L=t.jsx("div",{className:"grid grid-cols-5 gap-4",ref:it,children:K}),e[69]=K,e[70]=L):L=e[70];let V;e[71]!==F?(V=F&&t.jsxs("div",{className:"fixed bottom-4 right-4 bg-background border rounded-lg px-3 py-2 shadow-lg flex items-center gap-2 text-sm",children:[t.jsx(re,{size:14,className:"animate-spin"}),"Refreshing..."]}),e[71]=F,e[72]=V):V=e[72];let q;e[73]!==A||e[74]!==L||e[75]!==V?(q=t.jsxs("div",{className:"flex-1 flex flex-col overflow-auto p-5",children:[A,L,V]}),e[73]=A,e[74]=L,e[75]=V,e[76]=q):q=e[76];let Z;return e[77]!==te||e[78]!==O||e[79]!==q?(Z=t.jsxs(Ce,{breadcrumb:te,children:[O,q]}),e[77]=te,e[78]=O,e[79]=q,e[80]=Z):Z=e[80],Z}function it(s){if(!s)return;const e=()=>{const i=(s.clientWidth-64)/5;s.style.gridAutoRows=`${i}px`};e(),new ResizeObserver(e).observe(s)}function nt(s){return[s.widgetId,s]}function ot(s){return s.key.trim()}function ct(s){const e=D.c(13),{dashboardId:r,onEdit:i}=s,l=xe();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"now-24h",to:"now"},e[0]=n):n=e[0];const[c,o]=$.useState(n);let m;e[1]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[1]=m):m=e[1];const[d,g]=$.useState(m);let f;e[2]!==r||e[3]!==l?(f=()=>{l.invalidateQueries({predicate:w=>w.queryKey[0]==="monitoringDashboardQuery"&&w.queryKey[2]===r})},e[2]=r,e[3]=l,e[4]=f):f=e[4];const p=f;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Failed to load dashboard"}),e[5]=j):j=e[5];let v;e[6]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(re,{size:24,className:"animate-spin text-muted-foreground"})}),e[6]=v):v=e[6];let b;return e[7]!==r||e[8]!==p||e[9]!==i||e[10]!==d||e[11]!==c?(b=t.jsx(ge,{fallback:j,children:t.jsx($.Suspense,{fallback:v,children:t.jsx(lt,{dashboardId:r,timeRange:c,propertyFilters:d,onEdit:i,onRefresh:p,onTimeRangeChange:o,onPropertyFiltersChange:g})})}),e[7]=r,e[8]=p,e[9]=i,e[10]=d,e[11]=c,e[12]=b):b=e[12],b}function Wt(){const s=D.c(9);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},s[0]=e):e=s[0];const{dashboardId:r}=he(e),{org:i,project:l}=fe(),n=je();let c;s[1]!==r||s[2]!==n||s[3]!==i.slug||s[4]!==l.slug?(c=()=>{n({to:"/$org/$project/monitoring/dashboards/$dashboardId/edit",params:{org:i.slug,project:l.slug,dashboardId:r}})},s[1]=r,s[2]=n,s[3]=i.slug,s[4]=l.slug,s[5]=c):c=s[5];const o=c;let m;return s[6]!==r||s[7]!==o?(m=t.jsx(ct,{dashboardId:r,onEdit:o}),s[6]=r,s[7]=o,s[8]=m):m=s[8],m}export{Wt as default};
|
|
4
|
+
debug?`,value:m,onChange:a=>d(a.target.value),onBlur:p,onKeyDown:a=>{a.key==="Enter"&&a.metaKey&&p()},className:"font-mono text-sm min-h-[80px] resize-none"}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["One per line:"," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key=value"})," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key~contains"})," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key@in_list"})," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key?"})]})]}):t.jsxs("div",{className:"space-y-3",children:[c.map((a,x)=>t.jsxs("div",{className:"p-2.5 rounded-md border border-border bg-muted/30 space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("span",{className:"text-xs text-muted-foreground",children:["Filter ",x+1]}),t.jsx(R,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:()=>w(x),children:t.jsx(Ye,{size:12})})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(ue,{placeholder:"Key (e.g., thread_id)",value:a.key,onChange:u=>v(x,{key:u.target.value}),onBlur:f,onKeyDown:u=>{u.key==="Enter"&&f()},className:"flex-1 font-mono text-sm"}),t.jsxs(ze,{value:a.operator,onValueChange:u=>{const h=[...c],C=h[x];C&&(h[x]={...C,operator:u,value:u==="exists"?"":C.value},o(h),e(h.filter(F=>F.key.trim())))},children:[t.jsx(Be,{className:"w-28",children:t.jsx(Ee,{})}),t.jsx(Oe,{children:Ue.map(u=>t.jsx(Ae,{value:u.value,children:u.label},u.value))})]})]}),a.operator!=="exists"&&t.jsx(ue,{placeholder:"Value",value:a.value,onChange:u=>v(x,{value:u.target.value}),onBlur:f,onKeyDown:u=>{u.key==="Enter"&&f()},className:"w-full font-mono text-sm"})]},x)),t.jsxs(R,{variant:"outline",size:"sm",className:"w-full",onClick:b,children:[t.jsx(He,{size:14,className:"mr-1.5"}),"Add filter"]})]}),k>0&&t.jsx(R,{variant:"ghost",size:"sm",className:"w-full mt-3 text-muted-foreground",onClick:y,children:"Clear all filters"})]})]})]})}function G(s,e){return e||Number.isInteger(s)?s>=1e6?`${(s/1e6).toFixed(1)}M`:s>=1e3?`${(s/1e3).toFixed(1)}K`:s.toLocaleString():s>=1e6?`${(s/1e6).toFixed(2)}M`:s>=1e3?`${(s/1e3).toFixed(2)}K`:s.toFixed(2)}function ae(s){return{sum:"Total",avg:"Average",min:"Minimum",max:"Maximum",count:"Count",last:"Latest"}[s]??s}function le(s){const e=D.c(7),{name:r,subtitle:i}=s;let l;e[0]!==r?(l=t.jsx("div",{className:"text-sm font-medium text-foreground",children:r}),e[0]=r,e[1]=l):l=e[1];let n;e[2]!==i?(n=t.jsx("div",{className:"text-xs text-muted-foreground",children:i}),e[2]=i,e[3]=n):n=e[3];let c;return e[4]!==l||e[5]!==n?(c=t.jsxs("div",{className:"px-4 py-3",children:[l,n]}),e[4]=l,e[5]=n,e[6]=c):c=e[6],c}function Ze(s){const e=D.c(13),{widget:r,result:i}=s,l=i?.value??0,n=r.aggregation.fn==="count",c=r.name;let o;e[0]!==r.aggregation.fn?(o=ae(r.aggregation.fn),e[0]=r.aggregation.fn,e[1]=o):o=e[1];let m;e[2]!==o||e[3]!==r.name?(m=t.jsx(le,{name:c,subtitle:o}),e[2]=o,e[3]=r.name,e[4]=m):m=e[4];let d;e[5]!==n||e[6]!==l?(d=G(l,n),e[5]=n,e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=t.jsx("div",{className:"px-4 pb-4 mt-auto",children:t.jsx("div",{className:"text-4xl font-bold tabular-nums",children:d})}),e[8]=d,e[9]=g):g=e[9];let f;return e[10]!==m||e[11]!==g?(f=t.jsxs("div",{className:"border rounded-lg bg-card flex flex-col h-full",children:[m,g]}),e[10]=m,e[11]=g,e[12]=f):f=e[12],f}function et(s){const e=D.c(15),{widget:r,result:i}=s;let l,n;e[0]!==i?.groups?(l=i?.groups??[],n=Math.max(...l.map(tt),1),e[0]=i?.groups,e[1]=l,e[2]=n):(l=e[1],n=e[2]);const c=n;let o;e[3]!==r.aggregation.fn||e[4]!==r.aggregation.groupBy?(o=r.aggregation.groupBy?`Grouped by ${r.aggregation.groupBy}`:ae(r.aggregation.fn),e[3]=r.aggregation.fn,e[4]=r.aggregation.groupBy,e[5]=o):o=e[5];let m;e[6]!==o||e[7]!==r.name?(m=t.jsx(le,{name:r.name,subtitle:o}),e[6]=o,e[7]=r.name,e[8]=m):m=e[8];let d;e[9]!==l||e[10]!==c?(d=t.jsx("div",{className:"max-h-[300px] overflow-auto",children:l.length===0?t.jsx("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground",children:"No data available for this query"}):t.jsx("div",{className:"divide-y",children:l.map(f=>t.jsxs("div",{className:"flex items-center gap-3 px-4 py-2",children:[t.jsx("span",{className:"text-sm truncate flex-1 min-w-0",children:f.key||"(empty)"}),t.jsxs("div",{className:"flex items-center gap-2 shrink-0 w-32",children:[t.jsx("div",{className:"flex-1 h-1.5 bg-muted rounded-full overflow-hidden",children:t.jsx("div",{className:"h-full bg-primary rounded-full",style:{width:`${f.value/c*100}%`}})}),t.jsx("span",{className:"text-xs tabular-nums text-muted-foreground w-10 text-right",children:G(f.value,!0)})]})]},f.key))})}),e[9]=l,e[10]=c,e[11]=d):d=e[11];let g;return e[12]!==m||e[13]!==d?(g=t.jsxs("div",{className:"border rounded-lg bg-card overflow-hidden flex flex-col h-full",children:[m,d]}),e[12]=m,e[13]=d,e[14]=g):g=e[14],g}function tt(s){return s.value}function st(s){const e=D.c(37),{widget:r,result:i}=s;let l,n,c,o,m,d,g,f,p;if(e[0]!==i?.timeseries||e[1]!==r.aggregation.fn||e[2]!==r.aggregation.interval||e[3]!==r.name){p=i?.timeseries??[],n=Math.max(...p.map(at),1);const a=p.reduce(rt,0);l=r.aggregation.fn==="count",f="border rounded-lg bg-card overflow-hidden flex flex-col h-full",d="flex items-start justify-between pr-4";const x=r.name;let u;e[13]!==r.aggregation.fn?(u=ae(r.aggregation.fn),e[13]=r.aggregation.fn,e[14]=u):u=e[14];const h=`${u} per ${r.aggregation.interval}`;e[15]!==h||e[16]!==r.name?(g=t.jsx(le,{name:x,subtitle:h}),e[15]=h,e[16]=r.name,e[17]=g):g=e[17],m="text-right pt-3",c="text-lg font-semibold tabular-nums leading-tight",o=G(a,l),e[0]=i?.timeseries,e[1]=r.aggregation.fn,e[2]=r.aggregation.interval,e[3]=r.name,e[4]=l,e[5]=n,e[6]=c,e[7]=o,e[8]=m,e[9]=d,e[10]=g,e[11]=f,e[12]=p}else l=e[4],n=e[5],c=e[6],o=e[7],m=e[8],d=e[9],g=e[10],f=e[11],p=e[12];let j;e[18]!==c||e[19]!==o?(j=t.jsx("div",{className:c,children:o}),e[18]=c,e[19]=o,e[20]=j):j=e[20];let v;e[21]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("div",{className:"text-xs text-muted-foreground",children:"total"}),e[21]=v):v=e[21];let b;e[22]!==m||e[23]!==j?(b=t.jsxs("div",{className:m,children:[j,v]}),e[22]=m,e[23]=j,e[24]=b):b=e[24];let w;e[25]!==d||e[26]!==g||e[27]!==b?(w=t.jsxs("div",{className:d,children:[g,b]}),e[25]=d,e[26]=g,e[27]=b,e[28]=w):w=e[28];let y;e[29]!==l||e[30]!==n||e[31]!==p?(y=t.jsx("div",{className:"px-4 pb-3 flex-1 flex flex-col min-h-0",children:p.length===0?t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"No data available"}):t.jsxs("div",{className:"flex-1 flex flex-col",children:[t.jsx("div",{className:"text-[10px] text-muted-foreground mb-1 tabular-nums",children:G(n,l)}),t.jsx("div",{className:"flex items-end gap-[2px] flex-1",children:p.map((a,x)=>t.jsx("div",{className:"group relative flex-1 bg-primary/70 rounded-t transition-all hover:bg-primary cursor-default",style:{height:`${a.value/n*100}%`,minHeight:a.value>0?"3px":"0px"},children:t.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-1.5 hidden group-hover:block z-10 pointer-events-none",children:t.jsx("div",{className:"bg-foreground text-background text-[10px] px-1.5 py-0.5 rounded whitespace-nowrap tabular-nums",children:G(a.value,l)})})},x))}),t.jsx("div",{className:"flex justify-between text-[10px] text-muted-foreground mt-1.5 tabular-nums",children:p.length>0&&(()=>{const a=new Date(p[0].timestamp),x=new Date(p[p.length-1].timestamp),C=x.getTime()-a.getTime()>864e5?{month:"short",day:"numeric"}:{hour:"2-digit",minute:"2-digit"};return t.jsxs(t.Fragment,{children:[t.jsx("span",{children:a.toLocaleString([],C)}),t.jsx("span",{children:x.toLocaleString([],C)})]})})()})]})}),e[29]=l,e[30]=n,e[31]=p,e[32]=y):y=e[32];let k;return e[33]!==w||e[34]!==y||e[35]!==f?(k=t.jsxs("div",{className:f,children:[w,y]}),e[33]=w,e[34]=y,e[35]=f,e[36]=k):k=e[36],k}function rt(s,e){return s+e.value}function at(s){return s.value}function lt(s){const e=D.c(81),{dashboardId:r,timeRange:i,propertyFilters:l,onEdit:n,onRefresh:c,onTimeRangeChange:o,onPropertyFiltersChange:m}=s,{org:d,project:g,locator:f}=fe();let p;e[0]!==d.id?(p={connectionId:be,orgId:d.id},e[0]=d.id,e[1]=p):p=e[1];const j=ye(p);let v;e[2]!==r||e[3]!==f?(v=oe.monitoringDashboardDetails(f,r),e[2]=r,e[3]=f,e[4]=v):v=e[4];let b;e[5]!==j||e[6]!==r?(b=async()=>{if(!j)throw new Error("MCP client not available");const N=await j.callTool({name:"MONITORING_DASHBOARD_GET",arguments:{id:r}});return N.structuredContent??N},e[5]=j,e[6]=r,e[7]=b):b=e[7];let w;e[8]!==v||e[9]!==b?(w={queryKey:v,queryFn:b},e[8]=v,e[9]=b,e[10]=w):w=e[10];const{data:y}=ne(w);let k,a,x;if(e[11]!==r||e[12]!==f||e[13]!==l||e[14]!==i.from||e[15]!==i.to){const N=l.filter(ot),S=ve(N);k=N.length>0?Ne(N):void 0,x=ne,a=oe.monitoringDashboardQuery(f,r,i.from,i.to,S||void 0),e[11]=r,e[12]=f,e[13]=l,e[14]=i.from,e[15]=i.to,e[16]=k,e[17]=a,e[18]=x}else k=e[16],a=e[17],x=e[18];let u;e[19]!==k||e[20]!==j||e[21]!==r||e[22]!==i.from||e[23]!==i.to?(u=async()=>{if(!j)throw new Error("MCP client not available");const N=me(i.from),S=me(i.to),W=N.date||new Date(Date.now()-864e5),se=S.date||new Date,ie=await j.callTool({name:"MONITORING_DASHBOARD_QUERY",arguments:{dashboardId:r,timeRange:{startDate:W.toISOString(),endDate:se.toISOString()},...k?{propertyFilters:k}:{}}});return ie.structuredContent??ie},e[19]=k,e[20]=j,e[21]=r,e[22]=i.from,e[23]=i.to,e[24]=u):u=e[24];let h;e[25]!==a||e[26]!==u?(h={queryKey:a,queryFn:u,refetchInterval:3e4},e[25]=a,e[26]=u,e[27]=h):h=e[27];const{data:C,isRefetching:F}=x(h);if(!y){let N;return e[28]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Dashboard not found"}),e[28]=N):N=e[28],N}let H;e[29]!==C?.results?(H=new Map(C?.results?.map(nt)??[]),e[29]=C?.results,e[30]=H):H=e[30];const Q=H;let T;e[31]!==d.slug||e[32]!==g.slug?(T={org:d.slug,project:g.slug},e[31]=d.slug,e[32]=g.slug,e[33]=T):T=e[33];let Y;e[34]===Symbol.for("react.memo_cache_sentinel")?(Y={tab:"dashboards"},e[34]=Y):Y=e[34];let _;e[35]!==T?(_=t.jsx(de,{children:t.jsx(Fe,{asChild:!0,children:t.jsx(pe,{to:"/$org/$project/monitoring",params:T,search:Y,children:"Monitoring"})})}),e[35]=T,e[36]=_):_=e[36];let J;e[37]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Re,{}),e[37]=J):J=e[37];let P;e[38]!==y.name?(P=t.jsx(de,{children:t.jsx($e,{children:y.name})}),e[38]=y.name,e[39]=P):P=e[39];let U;e[40]!==_||e[41]!==P?(U=t.jsx(De,{children:t.jsxs(Te,{children:[_,J,P]})}),e[40]=_,e[41]=P,e[42]=U):U=e[42];const te=U;let I;e[43]!==n?(I=n&&t.jsx(R,{variant:"outline",size:"icon",className:"h-7 w-7",onClick:n,children:t.jsx(ke,{size:14})}),e[43]=n,e[44]=I):I=e[44];let X;e[45]===Symbol.for("react.memo_cache_sentinel")?(X=t.jsx(re,{size:14}),e[45]=X):X=e[45];let M;e[46]!==c?(M=t.jsx(R,{variant:"outline",size:"icon",className:"h-7 w-7",onClick:c,children:X}),e[46]=c,e[47]=M):M=e[47];let z;e[48]!==m||e[49]!==l?(z=t.jsx(Xe,{value:l,onChange:m}),e[48]=m,e[49]=l,e[50]=z):z=e[50];let B;e[51]!==i.from||e[52]!==i.to?(B={from:i.from,to:i.to},e[51]=i.from,e[52]=i.to,e[53]=B):B=e[53];let E;e[54]!==o||e[55]!==B?(E=t.jsx(we,{value:B,onChange:o,className:"min-w-0"}),e[54]=o,e[55]=B,e[56]=E):E=e[56];let O;e[57]!==I||e[58]!==M||e[59]!==z||e[60]!==E?(O=t.jsxs(Se,{children:[I,M,z,E]}),e[57]=I,e[58]=M,e[59]=z,e[60]=E,e[61]=O):O=e[61];let A;e[62]!==y.description?(A=y.description&&t.jsx("div",{className:"mb-6",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:y.description})}),e[62]=y.description,e[63]=A):A=e[63];let K;if(e[64]!==y.widgets||e[65]!==Q){let N;e[67]!==Q?(N=S=>{const W=Q.get(S.id),se=S.type==="metric"?"":"col-span-2";return t.jsxs("div",{className:se,children:[S.type==="metric"&&t.jsx(Ze,{widget:S,result:W}),S.type==="table"&&t.jsx(et,{widget:S,result:W}),S.type==="timeseries"&&t.jsx(st,{widget:S,result:W})]},S.id)},e[67]=Q,e[68]=N):N=e[68],K=y.widgets.map(N),e[64]=y.widgets,e[65]=Q,e[66]=K}else K=e[66];let L;e[69]!==K?(L=t.jsx("div",{className:"grid grid-cols-5 gap-4",ref:it,children:K}),e[69]=K,e[70]=L):L=e[70];let V;e[71]!==F?(V=F&&t.jsxs("div",{className:"fixed bottom-4 right-4 bg-background border rounded-lg px-3 py-2 shadow-lg flex items-center gap-2 text-sm",children:[t.jsx(re,{size:14,className:"animate-spin"}),"Refreshing..."]}),e[71]=F,e[72]=V):V=e[72];let q;e[73]!==A||e[74]!==L||e[75]!==V?(q=t.jsxs("div",{className:"flex-1 flex flex-col overflow-auto p-5",children:[A,L,V]}),e[73]=A,e[74]=L,e[75]=V,e[76]=q):q=e[76];let Z;return e[77]!==te||e[78]!==O||e[79]!==q?(Z=t.jsxs(Ce,{breadcrumb:te,children:[O,q]}),e[77]=te,e[78]=O,e[79]=q,e[80]=Z):Z=e[80],Z}function it(s){if(!s)return;const e=()=>{const i=(s.clientWidth-64)/5;s.style.gridAutoRows=`${i}px`};e(),new ResizeObserver(e).observe(s)}function nt(s){return[s.widgetId,s]}function ot(s){return s.key.trim()}function ct(s){const e=D.c(13),{dashboardId:r,onEdit:i}=s,l=xe();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"now-24h",to:"now"},e[0]=n):n=e[0];const[c,o]=$.useState(n);let m;e[1]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[1]=m):m=e[1];const[d,g]=$.useState(m);let f;e[2]!==r||e[3]!==l?(f=()=>{l.invalidateQueries({predicate:w=>w.queryKey[0]==="monitoringDashboardQuery"&&w.queryKey[2]===r})},e[2]=r,e[3]=l,e[4]=f):f=e[4];const p=f;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Failed to load dashboard"}),e[5]=j):j=e[5];let v;e[6]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(re,{size:24,className:"animate-spin text-muted-foreground"})}),e[6]=v):v=e[6];let b;return e[7]!==r||e[8]!==p||e[9]!==i||e[10]!==d||e[11]!==c?(b=t.jsx(ge,{fallback:j,children:t.jsx($.Suspense,{fallback:v,children:t.jsx(lt,{dashboardId:r,timeRange:c,propertyFilters:d,onEdit:i,onRefresh:p,onTimeRangeChange:o,onPropertyFiltersChange:g})})}),e[7]=r,e[8]=p,e[9]=i,e[10]=d,e[11]=c,e[12]=b):b=e[12],b}function Qt(){const s=D.c(9);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},s[0]=e):e=s[0];const{dashboardId:r}=he(e),{org:i,project:l}=fe(),n=je();let c;s[1]!==r||s[2]!==n||s[3]!==i.slug||s[4]!==l.slug?(c=()=>{n({to:"/$org/$project/monitoring/dashboards/$dashboardId/edit",params:{org:i.slug,project:l.slug,dashboardId:r}})},s[1]=r,s[2]=n,s[3]=i.slug,s[4]=l.slug,s[5]=c):c=s[5];const o=c;let m;return s[6]!==r||s[7]!==o?(m=t.jsx(ct,{dashboardId:r,onEdit:o}),s[6]=r,s[7]=o,s[8]=m):m=s[8],m}export{Qt as default};
|
package/dist/client/assets/{monitoring-stats-row-Dx_W_1nT.js → monitoring-stats-row-Ds_uiyYJ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,
|
|
1
|
+
import{r as d,c5 as se,bR as ct,ck as ut,c as $e,y as _r,j as P}from"./index-BXUNq6d7.js";import{aH as vt,aI as ve,F as ee,M as le,aJ as Nr,r as Ae,z as Le,aK as $r,J as Ke,aL as I,A as w,aM as Q,aN as pe,W as me,aO as H,aP as Ue,L as re,aw as ft,a2 as Re,aQ as dt,aR as pt,aS as mt,aT as ht,y as Ie,ax as we,ar as gt,c as G,aU as yt,aa as bt,s as ne,an as xt,ap as Y,e as te,aq as V,f as ae,h as Lr,g as Kr,aV as Rr,aW as Ot,aX as Pt,as as He,aY as jt,aZ as Ze,at as At,p as It,u as zr,R as St,S as Et,j as kt,Z as ze,D as We,k as Wr,l as Tt,n as wt,m as Mt,q as Ct,a_ as Bt,t as he,w as Fr,G as Dt,P as qr,T as _t,a0 as Gr,a$ as Nt,b0 as $t,b1 as Ye,B as Lt,E as Kt,H as Rt,b2 as zt,av as Wt,I as Ft,K as qt,a as Gt,b as Ut,C as Ht}from"./chart-CEfru1MQ.js";const Ur=Math.cos,ge=Math.sin,$=Math.sqrt,ye=Math.PI,Se=2*ye,Fe={draw(r,e){const t=$(e/ye);r.moveTo(t,0),r.arc(0,0,t,0,Se)}},Zt={draw(r,e){const t=$(e/5)/2;r.moveTo(-3*t,-t),r.lineTo(-t,-t),r.lineTo(-t,-3*t),r.lineTo(t,-3*t),r.lineTo(t,-t),r.lineTo(3*t,-t),r.lineTo(3*t,t),r.lineTo(t,t),r.lineTo(t,3*t),r.lineTo(-t,3*t),r.lineTo(-t,t),r.lineTo(-3*t,t),r.closePath()}},Hr=$(1/3),Yt=Hr*2,Vt={draw(r,e){const t=$(e/Yt),a=t*Hr;r.moveTo(0,-t),r.lineTo(a,0),r.lineTo(0,t),r.lineTo(-a,0),r.closePath()}},Xt={draw(r,e){const t=$(e),a=-t/2;r.rect(a,a,t,t)}},Jt=.8908130915292852,Zr=ge(ye/10)/ge(7*ye/10),Qt=ge(Se/10)*Zr,ea=-Ur(Se/10)*Zr,ra={draw(r,e){const t=$(e*Jt),a=Qt*t,i=ea*t;r.moveTo(0,-t),r.lineTo(a,i);for(let n=1;n<5;++n){const o=Se*n/5,s=Ur(o),u=ge(o);r.lineTo(u*t,-s*t),r.lineTo(s*a-u*i,u*a+s*i)}r.closePath()}},Ee=$(3),ta={draw(r,e){const t=-$(e/(Ee*3));r.moveTo(0,t*2),r.lineTo(-Ee*t,-t),r.lineTo(Ee*t,-t),r.closePath()}},_=-.5,N=$(3)/2,Me=1/$(12),aa=(Me/2+1)*3,na={draw(r,e){const t=$(e/aa),a=t/2,i=t*Me,n=a,o=t*Me+t,s=-n,u=o;r.moveTo(a,i),r.lineTo(n,o),r.lineTo(s,u),r.lineTo(_*a-N*i,N*a+_*i),r.lineTo(_*n-N*o,N*n+_*o),r.lineTo(_*s-N*u,N*s+_*u),r.lineTo(_*a+N*i,_*i-N*a),r.lineTo(_*n+N*o,_*o-N*n),r.lineTo(_*s+N*u,_*u-N*s),r.closePath()}};function ia(r,e){let t=null,a=vt(i);r=typeof r=="function"?r:ve(r||Fe),e=typeof e=="function"?e:ve(e===void 0?64:+e);function i(){let n;if(t||(t=n=a()),r.apply(this,arguments).draw(t,+e.apply(this,arguments)),n)return t=null,n+""||null}return i.type=function(n){return arguments.length?(r=typeof n=="function"?n:ve(n),i):r},i.size=function(n){return arguments.length?(e=typeof n=="function"?n:ve(+n),i):e},i.context=function(n){return arguments.length?(t=n??null,i):t},i}var oa=["type","size","sizeType"];function Ce(){return Ce=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var a in t)({}).hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},Ce.apply(null,arguments)}function Ve(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,a)}return t}function Xe(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ve(Object(t),!0).forEach(function(a){la(r,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ve(Object(t)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(t,a))})}return r}function la(r,e,t){return(e=sa(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function sa(r){var e=ca(r,"string");return typeof e=="symbol"?e:e+""}function ca(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function ua(r,e){if(r==null)return{};var t,a,i=va(r,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);for(a=0;a<n.length;a++)t=n[a],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(r,t)&&(i[t]=r[t])}return i}function va(r,e){if(r==null)return{};var t={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(e.indexOf(a)!==-1)continue;t[a]=r[a]}return t}var Yr={symbolCircle:Fe,symbolCross:Zt,symbolDiamond:Vt,symbolSquare:Xt,symbolStar:ra,symbolTriangle:ta,symbolWye:na},fa=Math.PI/180,da=r=>{var e="symbol".concat(Nr(r));return Yr[e]||Fe},pa=(r,e,t)=>{if(e==="area")return r;switch(t){case"cross":return 5*r*r/9;case"diamond":return .5*r*r/Math.sqrt(3);case"square":return r*r;case"star":{var a=18*fa;return 1.25*r*r*(Math.tan(a)-Math.tan(a*2)*Math.tan(a)**2)}case"triangle":return Math.sqrt(3)*r*r/4;case"wye":return(21-10*Math.sqrt(3))*r*r/8;default:return Math.PI*r*r/4}},ma=(r,e)=>{Yr["symbol".concat(Nr(r))]=e},Vr=r=>{var{type:e="circle",size:t=64,sizeType:a="area"}=r,i=ua(r,oa),n=Xe(Xe({},i),{},{type:e,size:t,sizeType:a}),o="circle";typeof e=="string"&&(o=e);var s=()=>{var v=da(o),m=ia().type(v).size(pa(t,a,o)),h=m();if(h!==null)return h},{className:u,cx:c,cy:l}=n,f=ee(n);return le(c)&&le(l)&&le(t)?d.createElement("path",Ce({},f,{className:se("recharts-symbols",u),transform:"translate(".concat(c,", ").concat(l,")"),d:s()})):null};Vr.registerSymbol=ma;var ha=["radius"],ga=["radius"],Je,Qe,er,rr,tr,ar,nr,ir,or,lr;function sr(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,a)}return t}function cr(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?sr(Object(t),!0).forEach(function(a){ya(r,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):sr(Object(t)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(t,a))})}return r}function ya(r,e,t){return(e=ba(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function ba(r){var e=xa(r,"string");return typeof e=="symbol"?e:e+""}function xa(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function be(){return be=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var a in t)({}).hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},be.apply(null,arguments)}function ur(r,e){if(r==null)return{};var t,a,i=Oa(r,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);for(a=0;a<n.length;a++)t=n[a],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(r,t)&&(i[t]=r[t])}return i}function Oa(r,e){if(r==null)return{};var t={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(e.indexOf(a)!==-1)continue;t[a]=r[a]}return t}function K(r,e){return e||(e=r.slice(0)),Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(e)}}))}var vr=(r,e,t,a,i)=>{var n=Q(t),o=Q(a),s=Math.min(Math.abs(n)/2,Math.abs(o)/2),u=o>=0?1:-1,c=n>=0?1:-1,l=o>=0&&n>=0||o<0&&n<0?1:0,f;if(s>0&&Array.isArray(i)){for(var v=[0,0,0,0],m=0,h=4;m<h;m++){var g,b=(g=i[m])!==null&&g!==void 0?g:0;v[m]=b>s?s:b}f=I(Je||(Je=K(["M",",",""])),r,e+u*v[0]),v[0]>0&&(f+=I(Qe||(Qe=K(["A ",",",",0,0,",",",",",""])),v[0],v[0],l,r+c*v[0],e)),f+=I(er||(er=K(["L ",",",""])),r+t-c*v[1],e),v[1]>0&&(f+=I(rr||(rr=K(["A ",",",",0,0,",`,
|
|
2
2
|
`,",",""])),v[1],v[1],l,r+t,e+u*v[1])),f+=I(tr||(tr=K(["L ",",",""])),r+t,e+a-u*v[2]),v[2]>0&&(f+=I(ar||(ar=K(["A ",",",",0,0,",`,
|
|
3
3
|
`,",",""])),v[2],v[2],l,r+t-c*v[2],e+a)),f+=I(nr||(nr=K(["L ",",",""])),r+c*v[3],e+a),v[3]>0&&(f+=I(ir||(ir=K(["A ",",",",0,0,",`,
|
|
4
4
|
`,",",""])),v[3],v[3],l,r,e+a-u*v[3])),f+="Z"}else if(s>0&&i===+i&&i>0){var p=Math.min(s,i);f=I(or||(or=K(["M ",",",`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,j as e,h as n}from"./index-
|
|
1
|
+
import{r,j as e,h as n}from"./index-BXUNq6d7.js";import{i as l}from"./Loading01-Cbk1oNZ2.js";function d(){const[t,c]=r.useState(null),[i,a]=r.useState(!1);return r.useEffect(()=>{(async()=>{try{const s=await n();if(!s.success){c(s.error||"MCP authentication failed"),setTimeout(()=>{window.close()},3e3);return}a(!0),setTimeout(()=>{window.close()},1500)}catch(s){c(s instanceof Error?s.message:String(s)),setTimeout(()=>{window.close()},3e3)}})()},[]),e.jsx("div",{className:"min-h-screen flex items-center justify-center p-8 bg-background",children:e.jsxs("div",{className:"w-full max-w-md flex flex-col items-center justify-center gap-8",children:[i&&e.jsx("img",{src:"/empty-state-success.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),!i&&!t&&e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(l,{size:32,className:"animate-spin text-primary"})}),t&&e.jsx("img",{src:"/empty-state-error.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),e.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[e.jsx("h2",{className:"text-lg font-medium text-foreground",children:t?"Authentication Failed":i?"Authentication Successful":"Authentication in progress..."}),e.jsx("div",{className:"text-sm text-muted-foreground",children:t?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mb-2",children:"An error occurred during authentication:"}),e.jsx("p",{className:"text-destructive",children:t}),e.jsxs("p",{className:"mt-2",children:[e.jsx("br",{}),"This window will close automatically."]})]}):i?e.jsxs("p",{children:["Authentication complete.",e.jsx("br",{}),"This window will close automatically."]}):e.jsx("p",{children:"Processing authentication..."})})]})]})})}export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,j as e}from"./index-
|
|
1
|
+
import{r,j as e}from"./index-BXUNq6d7.js";import{i as d}from"./Loading01-Cbk1oNZ2.js";function h(){const[t,i]=r.useState("loading"),[o,l]=r.useState(null),c=r.useRef(!1);return c.current||(c.current=!0,queueMicrotask(()=>{try{const s=new URLSearchParams(window.location.search),a=s.get("code"),n=s.get("state");if(!a||!n)throw new Error("Missing code or state parameter");if(window.opener)window.opener.postMessage({type:"AI_PROVIDER_OAUTH_CALLBACK",code:a,stateToken:n},window.location.origin),i("success"),setTimeout(()=>window.close(),1500);else throw new Error("No opener window found")}catch(s){console.error("OAuth callback error:",s),l(s instanceof Error?s.message:String(s)),i("error"),setTimeout(()=>window.close(),3e3)}})),e.jsx("div",{className:"min-h-screen flex items-center justify-center p-8 bg-background",children:e.jsxs("div",{className:"w-full max-w-md flex flex-col items-center justify-center gap-8",children:[t==="success"&&e.jsx("img",{src:"/empty-state-success.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),t==="loading"&&e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(d,{size:32,className:"animate-spin text-primary"})}),t==="error"&&e.jsx("img",{src:"/empty-state-error.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),e.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[e.jsx("h2",{className:"text-lg font-medium text-foreground",children:t==="error"?"Authentication Failed":t==="success"?"Authentication Successful":"Authentication in progress..."}),e.jsx("div",{className:"text-sm text-muted-foreground",children:t==="error"?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mb-2",children:"An error occurred during authentication:"}),e.jsx("p",{className:"text-destructive",children:o}),e.jsx("p",{className:"mt-2",children:"This window will close automatically."})]}):t==="success"?e.jsx("p",{children:"Authentication complete. This window will close automatically."}):e.jsx("p",{children:"Processing authentication..."})})]})]})})}export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as v,c as E,aw as re,e as ae,d as ne,g as ie,u as Z,x as W,w as C,K as b,j as s,y as oe,B as V,E as le}from"./index-BXUNq6d7.js";import{a as ce}from"./index-rWegviRE.js";import{u as Y}from"./useMutation-CkdHuTyE.js";import{i as de}from"./AlertCircle-CnfwZdxb.js";import{i as me}from"./EyeOff-L-SLicw9.js";import{s as ue}from"./Eye-Cn6YseXl.js";import{i as fe}from"./Key01-Dq5b7fdA.js";import{s as he}from"./Trash01-C0891dQq.js";import{C as xe}from"./card-BSGld6G2.js";import{I as G}from"./input-BFH8rk50.js";import{S as pe}from"./skeleton-CK2-6UkT.js";import{A as ge}from"./avatar-w6QMWHVj.js";import{b as X,P as J,a as ee}from"./popover-BcyJids_.js";import{a as ve,b as ye}from"./ai-providers-logos-Bb5LHAPU.js";import{u as te,a as se}from"./constants-CDL9XClm.js";import{f as je}from"./formatDistanceToNow-Cb2QZZJn.js";const Ce=({size:t=24,color:e="currentColor",...i})=>v.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},v.createElement("path",{d:"M9 2v2m6-2v2M9 20v2m6-2v2m5-13h2m-2 5h2M2 9h2m-2 5h2m4.8 6h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 17.72 20 16.88 20 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 4 16.88 4 15.2 4H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 6.28 4 7.12 4 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 20 7.12 20 8.8 20Zm1.8-5h2.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C15 14.24 15 13.96 15 13.4v-2.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 9 13.96 9 13.4 9h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 9.76 9 10.04 9 10.6v2.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C9.76 15 10.04 15 10.6 15Z"}));Ce.displayName="CpuChip01";const _e={devMode:!1,toolApprovalLevel:"none",enableNotifications:typeof Notification<"u",experimentalAutomations:!1};function Ze(){const t=E.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=re.preferences(),t[0]=e):e=t[0],ce(e,Ae)}function Ae(t){return{..._e,...t}}const Se=new Set(["account.profile","account.preferences","org.general","org.plugins","org.ai-providers","org.billing","org.members"]);function Ne(t){return t?Se.has(t):!1}function We(){const t=E.c(17),e=ae();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},t[0]=i):i=t[0];const o=ne(i);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},t[1]=r):r=t[1];const{org:a,project:l}=ie(r);let c;t[2]!==o.settings?(c=Ne(o.settings)?o.settings:void 0,t[2]=o.settings,t[3]=c):c=t[3];const d=c,u=!!d;let f;t[4]!==e||t[5]!==a||t[6]!==l?(f=g=>{!a||!l||e({to:"/$org/$project",params:{org:a,project:l},search:{settings:g}})},t[4]=e,t[5]=a,t[6]=l,t[7]=f):f=t[7];const x=f;let m;t[8]!==e||t[9]!==a||t[10]!==l?(m=()=>{!a||!l||e({to:"/$org/$project",params:{org:a,project:l},search:{}})},t[8]=e,t[9]=a,t[10]=l,t[11]=m):m=t[11];const N=m,h=d??"account.preferences";let y;return t[12]!==N||t[13]!==u||t[14]!==x||t[15]!==h?(y={isOpen:u,activeSection:h,open:x,close:N},t[12]=N,t[13]=u,t[14]=x,t[15]=h,t[16]=y):y=t[16],y}function be(t){const e=E.c(3),{error:i}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(de,{size:16}),e[0]=o):o=e[0];let r;return e[1]!==i.message?(r=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[o,s.jsxs("span",{className:"text-sm font-medium",children:["Failed to load AI providers: ",i.message]})]}),e[1]=i.message,e[2]=r):r=e[2],r}function Ee(t){const e=E.c(9),{keys:i,onDelete:o,isDeleting:r}=t;let a;if(e[0]!==r||e[1]!==i||e[2]!==o){let c;e[4]!==r||e[5]!==o?(c=d=>s.jsxs("div",{className:"flex items-center justify-between p-2 rounded-md bg-muted/50 text-sm",children:[s.jsxs("div",{className:"flex items-center gap-2 overflow-hidden",children:[s.jsx(fe,{size:14,className:"text-muted-foreground shrink-0"}),s.jsx("span",{className:"font-medium truncate",children:d.label}),s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["added ",je(new Date(d.createdAt))," ago"]})]}),s.jsx("div",{onClick:Pe,children:s.jsxs(X,{children:[s.jsx(J,{asChild:!0,children:s.jsx(V,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",disabled:r,children:s.jsx(he,{size:14})})}),s.jsx(ee,{className:"w-auto p-2",align:"end",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{className:"text-xs font-medium",children:"Delete this key?"}),s.jsx("div",{className:"flex gap-2",children:s.jsx(V,{variant:"destructive",size:"xs",onClick:()=>o(d.id),disabled:r,children:"Delete"})})]})})]})})]},d.id),e[4]=r,e[5]=o,e[6]=c):c=e[6],a=i.map(c),e[0]=r,e[1]=i,e[2]=o,e[3]=a}else a=e[3];let l;return e[7]!==a?(l=s.jsx("div",{className:"flex flex-col gap-2 mt-4",children:a}),e[7]=a,e[8]=l):l=e[8],l}function Pe(t){return t.stopPropagation()}function we(t){const e=E.c(52),{providerId:i,onCancel:o,onSuccess:r}=t,{locator:a,org:l}=Z();let c;e[0]!==l.id?(c={connectionId:se,orgId:l.id},e[0]=l.id,e[1]=c):c=e[1];const d=te(c),u=W(),[f,x]=v.useState(""),[m,N]=v.useState(""),[h,y]=v.useState(!1);let g;e[2]!==m||e[3]!==d||e[4]!==f||e[5]!==i?(g=async()=>{await d.callTool({name:"AI_PROVIDER_KEY_CREATE",arguments:{providerId:i,label:f||"Personal key",apiKey:m}})},e[2]=m,e[3]=d,e[4]=f,e[5]=i,e[6]=g):g=e[6];let _;e[7]!==a||e[8]!==r||e[9]!==u?(_=()=>{u.invalidateQueries({queryKey:b.aiProviderKeys(a)}),u.invalidateQueries({queryKey:b.aiProviders(a)}),C.success("Key saved successfully"),r()},e[7]=a,e[8]=r,e[9]=u,e[10]=_):_=e[10];let P;e[11]!==g||e[12]!==_?(P={mutationFn:g,onSuccess:_,onError:Ie},e[11]=g,e[12]=_,e[13]=P):P=e[13];const{mutate:F,isPending:n,error:A}=Y(P);let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Label"}),e[14]=p):p=e[14];let S;e[15]===Symbol.for("react.memo_cache_sentinel")?(S=B=>x(B.target.value),e[15]=S):S=e[15];let j;e[16]!==f?(j=s.jsxs("div",{className:"space-y-1",children:[p,s.jsx(G,{placeholder:"e.g. Personal key",value:f,onChange:S,className:"h-8 text-sm"})]}),e[16]=f,e[17]=j):j=e[17];let z;e[18]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"API Key"}),e[18]=z):z=e[18];const Q=h?"text":"password";let M;e[19]===Symbol.for("react.memo_cache_sentinel")?(M=B=>N(B.target.value),e[19]=M):M=e[19];let w;e[20]!==m||e[21]!==Q?(w=s.jsx(G,{type:Q,placeholder:"sk-...",value:m,onChange:M,className:"h-8 text-sm pr-8"}),e[20]=m,e[21]=Q,e[22]=w):w=e[22];let I;e[23]!==h?(I=()=>y(!h),e[23]=h,e[24]=I):I=e[24];let k;e[25]!==h?(k=h?s.jsx(me,{size:14}):s.jsx(ue,{size:14}),e[25]=h,e[26]=k):k=e[26];let K;e[27]!==I||e[28]!==k?(K=s.jsx("button",{type:"button",onClick:I,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:k}),e[27]=I,e[28]=k,e[29]=K):K=e[29];let O;e[30]!==w||e[31]!==K?(O=s.jsxs("div",{className:"space-y-1",children:[z,s.jsxs("div",{className:"relative",children:[w,K]})]}),e[30]=w,e[31]=K,e[32]=O):O=e[32];let T;e[33]!==A?(T=A&&s.jsx("p",{className:"text-xs text-destructive",children:A.message}),e[33]=A,e[34]=T):T=e[34];let $;e[35]!==n||e[36]!==o?($=s.jsx(V,{variant:"ghost",size:"sm",onClick:o,disabled:n,children:"Cancel"}),e[35]=n,e[36]=o,e[37]=$):$=e[37];let L;e[38]!==F?(L=()=>F(),e[38]=F,e[39]=L):L=e[39];const U=!m||n,H=n?"Saving...":"Save Key";let R;e[40]!==L||e[41]!==U||e[42]!==H?(R=s.jsx(V,{size:"sm",onClick:L,disabled:U,children:H}),e[40]=L,e[41]=U,e[42]=H,e[43]=R):R=e[43];let D;e[44]!==$||e[45]!==R?(D=s.jsxs("div",{className:"flex justify-end gap-2 pt-1",children:[$,R]}),e[44]=$,e[45]=R,e[46]=D):D=e[46];let q;return e[47]!==O||e[48]!==T||e[49]!==D||e[50]!==j?(q=s.jsxs("div",{className:"space-y-3",children:[j,O,T,D]}),e[47]=O,e[48]=T,e[49]=D,e[50]=j,e[51]=q):q=e[51],q}function Ie(t){C.error(`Failed to save key: ${t.message}`)}function ke({provider:t,keys:e}){const{locator:i,org:o}=Z(),r=te({connectionId:se,orgId:o.id}),a=W(),[l,c]=v.useState(!1),[d,u]=v.useState(!1),[f,x]=v.useState(null),m=e.length>0,{mutate:N,isPending:h}=Y({mutationFn:async n=>(await r.callTool({name:"AI_PROVIDER_KEY_DELETE",arguments:{keyId:n}}),n),onSuccess:n=>{a.invalidateQueries({queryKey:b.aiProviderKeys(i)}),a.invalidateQueries({queryKey:b.aiProviders(i)}),a.invalidateQueries({queryKey:b.aiProviderModels(i,n)}),C.success("Key deleted")},onError:n=>{C.error(`Failed to delete key: ${n.message}`)}}),{mutate:y}=Y({mutationFn:async({code:n,stateToken:A})=>{const p=await r.callTool({name:"AI_PROVIDER_OAUTH_EXCHANGE",arguments:{providerId:t.id,code:n,stateToken:A,label:"Connected via OAuth"}});if(p?.isError){const S=p.content?.[0]?.text??"OAuth exchange failed";throw new Error(S)}},onSuccess:()=>{a.invalidateQueries({queryKey:b.aiProviderKeys(i)}),a.invalidateQueries({queryKey:b.aiProviders(i)}),C.success(`${t.name} connected successfully`),u(!1),x(null)},onError:n=>{C.error(`OAuth connection failed: ${n.message}`),u(!1),x(null)}});v.useEffect(()=>{if(!d||!f)return;const n=p=>{if(p.origin===window.location.origin&&p.data?.type==="AI_PROVIDER_OAUTH_CALLBACK"){const{code:S,stateToken:j}=p.data;j===f?y({code:S,stateToken:j}):(console.error("State token mismatch"),C.error("Security check failed: State token mismatch"),u(!1),x(null))}};window.addEventListener("message",n);const A=setTimeout(()=>{d&&(u(!1),x(null),C.error("Connection timed out"))},12e4);return()=>{window.removeEventListener("message",n),clearTimeout(A)}},[d,f,y]);const g=t.supportedMethods.includes("oauth-pkce"),_=t.supportedMethods.includes("api-key"),P=()=>{l||d||(g?F():_&&c(!0))},F=async()=>{try{u(!0);const n=await r.callTool({name:"AI_PROVIDER_OAUTH_URL",arguments:{providerId:t.id,callbackUrl:`${window.location.origin}/oauth/callback/ai-provider`}});if(n.structuredContent)x(n.structuredContent.stateToken),window.open(n.structuredContent.url,"AiProviderOAuth","width=600,height=700");else throw new Error("Invalid response from AI_PROVIDER_OAUTH_URL")}catch(n){u(!1),C.error(`Failed to start OAuth: ${n instanceof Error?n.message:String(n)}`)}};return s.jsxs(X,{open:l,onOpenChange:n=>{n||c(!1)},children:[s.jsx(J,{asChild:!0,children:s.jsxs(xe,{className:oe("p-4 flex flex-col gap-3 transition-colors relative",m&&"border-primary/20",!d&&"cursor-pointer hover:bg-muted/30",d&&"cursor-wait"),onClick:P,children:[m&&s.jsx("div",{className:"absolute top-4 right-4 w-2 h-2 rounded-full bg-green-500"}),s.jsx("div",{className:"flex items-start justify-between",children:s.jsxs("div",{className:"flex items-center gap-3",children:[t.logo?s.jsx("img",{src:t.logo,alt:t.name,className:"size-8 rounded-md object-contain"}):s.jsx(ge,{fallback:t.name.charAt(0),className:"size-8 bg-primary/10 text-primary"}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium text-base",children:t.name}),s.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1",children:d?"Authorizing...":t.description})]})]})}),m&&s.jsxs("div",{className:"mt-1",children:[s.jsxs("p",{className:"text-xs font-medium text-muted-foreground",children:[e.length," key",e.length!==1?"s":""," configured"]}),s.jsx(Ee,{keys:e,onDelete:N,isDeleting:h})]})]})}),s.jsx(ee,{className:"w-72 p-4",align:"start",onInteractOutside:()=>c(!1),children:s.jsx(we,{providerId:t.id,onCancel:()=>c(!1),onSuccess:()=>c(!1)})})]})}function Ke(){const t=E.c(6),e=ve(),i=ye();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs("div",{children:[s.jsx("h2",{className:"text-lg font-medium",children:"AI Providers"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Set up AI model providers. Keys are stored encrypted in the vault."})]}),t[0]=o):o=t[0];let r;t[1]!==e?.providers||t[2]!==i?(r=e?.providers?.map(l=>s.jsx(ke,{provider:l,keys:i.filter(c=>c.providerId===l.id)},l.id)),t[1]=e?.providers,t[2]=i,t[3]=r):r=t[3];let a;return t[4]!==r?(a=s.jsxs("div",{className:"space-y-6",children:[o,s.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 [&>*:first-child]:lg:col-span-2",children:r})]}),t[4]=r,t[5]=a):a=t[5],a}function Xe(){const t=E.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(le,{fallback:Oe,children:s.jsx(v.Suspense,{fallback:s.jsx(pe,{className:"h-64 w-full"}),children:s.jsx(Ke,{})})}),t[0]=e):e=t[0],e}function Oe(t){const{error:e}=t;return s.jsx(be,{error:e??new Error("Failed to load AI providers")})}export{Xe as O,ke as P,We as a,Ce as i,Ze as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as g,c as b,j as s,y as L,E as Z,u as G,f as K,B as U}from"./index-BXUNq6d7.js";import{C as h}from"./task-status-BWKjAgiX.js";import{E as J,C as Q}from"./editable-task-title-44X_8A19.js";import{a as X}from"./tasks-panel-D6Bb-wiS.js";import{u as B,a as Y}from"./context-DDV_uL9a.js";import{V as ee}from"./select-virtual-mcp-YanYQUBn.js";import{I as O}from"./integration-icon-D6SJHU0f.js";import{P as te,a as se,b as ie}from"./popover-BcyJids_.js";import{S as H}from"./skeleton-CK2-6UkT.js";import{i as re,d as le}from"./constants-CDL9XClm.js";import{b as oe}from"./use-virtual-mcp-CyoGC0aH.js";import{i as ne}from"./ChevronRight-Blv21S_7.js";import{t as F}from"./Users03-FsZwQwZq.js";import{P}from"./index-rWegviRE.js";import{R as A,a as T,b as ae}from"./resizable-B4X_WbHf.js";import"./spinner-B1-EIDBS.js";import"./tooltip-BGPUMzDS.js";import"./index-L6huQtcJ.js";import"./use-mcp-prompts-DT9l3i02.js";import"./useQuery-Bmc4jnG2.js";import"./dialog-DxTRqiug.js";import"./X-CeRZ6ROs.js";import"./form-BV3tSlED.js";import"./label-DE7vX487.js";import"./input-BFH8rk50.js";import"./index-B70G5L15.js";import"./usage-B8rgFVXq.js";import"./ArrowUp-BuKX1RSZ.js";import"./ChevronDown-DHeagNGb.js";import"./Edit01-gYPHsLoC.js";import"./Lock01-dP10fLup.js";import"./XCircle-X3Ds2fko.js";import"./AlertCircle-CnfwZdxb.js";import"./select-B-f7jgVG.js";import"./ChevronUp-J7upZD3-.js";import"./Check-7kB05ju_.js";import"./org-ai-providers-CQKU4ds_.js";import"./useMutation-CkdHuTyE.js";import"./EyeOff-L-SLicw9.js";import"./Eye-Cn6YseXl.js";import"./Key01-Dq5b7fdA.js";import"./Trash01-C0891dQq.js";import"./card-BSGld6G2.js";import"./avatar-w6QMWHVj.js";import"./ai-providers-logos-Bb5LHAPU.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./ArrowLeft-C3_bzjZf.js";import"./use-copy-DZJI58oZ.js";import"./tabs-Cif80TZ4.js";import"./badge-B-_hRtCy.js";import"./collapsible-BCGKc4Wz.js";import"./index-Dg_kVhT7.js";import"./Code01-DDbKsccR.js";import"./checkbox-COsQJsO9.js";import"./AlignLeft-zj1VrWVO.js";import"./Image01-U7ZIAIPc.js";import"./RefreshCcw01-B6R5Js1R.js";import"./SearchMd-DJI6OMcD.js";import"./Settings01-BWkL3Bf9.js";import"./Tool01-CUx5BAY-.js";import"./use-mcp-resources-DhBJVSsg.js";import"./Copy01-BexEalI-.js";import"./marked.esm-BaswSlok.js";import"./markdown-Da-6gcG9.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CNc9yMN5.js";import"./types-DZ5M-eMJ.js";import"./Globe02-CyGtzZ8k.js";import"./LayersTwo01-Li6JqY2K.js";import"./XClose-BieEiV6P.js";import"./Clock-9Mm0U0Dg.js";import"./use-collections-yY78nnLx.js";import"./useSuspenseInfiniteQuery-DD4jjrsx.js";import"./infiniteQueryObserver-DXFe0xIV.js";import"./CheckCircle-DrGaevdP.js";import"./Loading01-Cbk1oNZ2.js";import"./ChevronLeft-W2gkpjgL.js";import"./collection-search-aJlY7LHs.js";import"./user-sbKkVV9F.js";import"./format-time-CMKyl-GC.js";import"./Plus-CqWob4tu.js";import"./dropdown-menu-CdjuOUR6.js";import"./decopilot-events-Brt4gAR6.js";import"./use-create-virtual-mcp-DK_WDS9Y.js";import"./Container-Ci_1Xm4L.js";const W=({size:e=24,color:t="currentColor",...i})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},g.createElement("path",{d:"M15 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));W.displayName="LayoutRight";const q=({size:e=24,color:t="currentColor",...i})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},g.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z"}));q.displayName="MessageChatSquare";function ce(e){const t=b.c(15),{agent:i}=e,{setVirtualMcpId:u}=B();let c;t[0]!==i.id||t[1]!==u?(c=()=>{u(i.id)},t[0]=i.id,t[1]=u,t[2]=c):c=t[2];const l=c;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=L("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[3]=m):m=t[3];const p=`Select agent ${i.title}`;let o;t[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(F,{size:20}),t[4]=o):o=t[4];let n;t[5]!==i.icon||t[6]!==i.title?(n=s.jsx(O,{icon:i.icon,name:i.title,fallbackIcon:o}),t[5]=i.icon,t[6]=i.title,t[7]=n):n=t[7];let r;t[8]!==i.title?(r=s.jsx("p",{className:"text-sm text-foreground text-center leading-tight line-clamp-2",children:i.title}),t[8]=i.title,t[9]=r):r=t[9];let a;return t[10]!==l||t[11]!==p||t[12]!==n||t[13]!==r?(a=s.jsxs("button",{type:"button",onClick:l,className:m,"aria-label":p,children:[n,r]}),t[10]=l,t[11]=p,t[12]=n,t[13]=r,t[14]=a):a=t[14],a}function me(e){const t=b.c(14),{virtualMcps:i,selectedVirtualMcpId:u,onVirtualMcpChange:c}=e,[l,m]=g.useState(!1),p=g.useRef(null);let o,n;t[0]!==l?(o=()=>{l&&setTimeout(()=>{p.current?.focus()},0)},n=[l],t[0]=l,t[1]=o,t[2]=n):(o=t[1],n=t[2]),g.useEffect(o,n);let r;t[3]!==c?(r=N=>{c(N),m(!1)},t[3]=c,t[4]=r):r=t[4];const a=r;let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=L("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[5]=d):d=t[5];let f;t[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(te,{asChild:!0,children:s.jsxs("button",{type:"button",className:d,"aria-label":"See all agents",children:[s.jsx("div",{className:"size-12 rounded-lg bg-accent flex items-center justify-center shrink-0",children:s.jsx(ne,{size:24,className:"text-foreground"})}),s.jsx("p",{className:"text-sm text-foreground text-center leading-tight",children:"See all"})]})}),t[6]=f):f=t[6];let x;t[7]!==a||t[8]!==u||t[9]!==i?(x=s.jsx(se,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:s.jsx(ee,{virtualMcps:i,selectedVirtualMcpId:u,onVirtualMcpChange:a,searchInputRef:p})}),t[7]=a,t[8]=u,t[9]=i,t[10]=x):x=t[10];let V;return t[11]!==l||t[12]!==x?(V=s.jsxs(ie,{open:l,onOpenChange:m,children:[f,x]}),t[11]=l,t[12]=x,t[13]=V):V=t[13],V}function de(){const e=b.c(20),t=oe(),{selectedVirtualMcp:i,setVirtualMcpId:u}=B();let c,l,m,p,o,n;if(e[0]!==t){o=Symbol.for("react.early_return_sentinel");e:{const x=t.filter(ue).slice(0,6);if(x.length===0){o=null;break e}n=t.map(fe),m="w-full max-w-[800px]",e[7]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx("h2",{className:"text-sm font-medium text-muted-foreground mb-4",children:"Recently used agents"}),e[7]=p):p=e[7],c="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",l=x.map(pe)}e[0]=t,e[1]=c,e[2]=l,e[3]=m,e[4]=p,e[5]=o,e[6]=n}else c=e[1],l=e[2],m=e[3],p=e[4],o=e[5],n=e[6];if(o!==Symbol.for("react.early_return_sentinel"))return o;const r=i?.id??null;let a;e[8]!==u||e[9]!==r||e[10]!==n?(a=s.jsx(me,{virtualMcps:n,selectedVirtualMcpId:r,onVirtualMcpChange:u}),e[8]=u,e[9]=r,e[10]=n,e[11]=a):a=e[11];let d;e[12]!==c||e[13]!==l||e[14]!==a?(d=s.jsxs("div",{className:c,children:[l,a]}),e[12]=c,e[13]=l,e[14]=a,e[15]=d):d=e[15];let f;return e[16]!==m||e[17]!==p||e[18]!==d?(f=s.jsxs("div",{className:m,children:[p,d]}),e[16]=m,e[17]=p,e[18]=d,e[19]=f):f=e[19],f}function pe(e){return s.jsx(ce,{agent:e},e.id??"default")}function fe(e){return{id:e.id,title:e.title,description:e.description,icon:e.icon}}function ue(e){return e.id!==null&&!re(e.id)}function xe(){const e=b.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(H,{className:"h-5 w-40 mb-4"}),e[0]=t):t=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs("div",{className:"w-full max-w-[800px]",children:[t,s.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",children:Array.from({length:7}).map(he)})]}),e[1]=i):i=e[1],i}function he(e,t){return s.jsxs("div",{className:"flex flex-col items-center gap-3 p-2 self-stretch",children:[s.jsx(H,{className:"size-6 rounded-md shrink-0"}),s.jsx(H,{className:"h-4 w-full"})]},t)}function ge(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(g.Suspense,{fallback:s.jsx(xe,{}),children:s.jsx(de,{})}),e[0]=t):t=e[0],t}function je(){const e=b.c(39),{org:t}=G(),{data:i}=K.useSession(),{allModelsConnections:u,isChatEmpty:c,activeTaskId:l,tasks:m,selectedVirtualMcp:p}=Y();let o;if(e[0]!==l||e[1]!==m){let j;e[3]!==l?(j=D=>D.id===l,e[3]=l,e[4]=j):j=e[4],o=m.find(j),e[0]=l,e[1]=m,e[2]=o}else o=e[2];const n=o,[r,a]=g.useState(!1);let d;e[5]!==i?.user?.name?(d=i?.user?.name?.split(" ")[0]||"there",e[5]=i?.user?.name,e[6]=d):d=e[6];const f=d;let x;e[7]!==t.id?(x=le(t.id),e[7]=t.id,e[8]=x):x=e[8];const N=p??x;if(u.length===0){let j;return e[9]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex flex-col h-full bg-background items-center justify-center",children:s.jsx(h.NoLlmBindingEmptyState,{})}),e[9]=j):j=e[9],j}let E,I;e[10]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(A,{defaultSize:20,minSize:10,id:"tasks",order:1,children:s.jsx(X,{})}),I=s.jsx(T,{className:"bg-border/30"}),e[10]=E,e[11]=I):(E=e[10],I=e[11]);const $=r?50:80;let C;e[12]!==n?(C=n?.title&&s.jsx(J,{taskId:n.id,text:n.title,className:"text-sm font-medium text-foreground"}),e[12]=n,e[13]=C):C=e[13];let v;e[14]!==C?(v=s.jsx(P.Header.Left,{className:"gap-2",children:C}),e[14]=C,e[15]=v):v=e[15];let y;e[16]!==c||e[17]!==r?(y=!c&&s.jsx("button",{type:"button",onClick:()=>a(be),className:L("flex size-7 items-center justify-center rounded-md border border-input hover:bg-accent transition-colors",r&&"bg-accent"),title:"Toggle context panel",children:s.jsx(W,{size:14,className:"text-muted-foreground"})}),e[16]=c,e[17]=r,e[18]=y):y=e[18];let S;e[19]!==y?(S=s.jsx(P.Header.Right,{className:"gap-1",children:y}),e[19]=y,e[20]=S):S=e[20];let k;e[21]!==v||e[22]!==S?(k=s.jsxs(P.Header,{className:"flex-none z-10 bg-background",children:[v,S]}),e[21]=v,e[22]=S,e[23]=k):k=e[23];let _;e[24]!==N||e[25]!==c||e[26]!==f?(_=c?s.jsxs("div",{className:"flex-1 min-h-0 flex flex-col items-center justify-center px-10 pb-32 pt-10",children:[s.jsxs("div",{className:"flex flex-col items-center w-full max-w-[600px]",children:[s.jsx("div",{className:"flex justify-center mb-4",children:s.jsx(O,{icon:N.icon,name:N.title,size:"md",fallbackIcon:s.jsx(F,{size:20}),className:"size-12 rounded-xl border border-stone-200/60 shadow-sm aspect-square transition-opacity duration-200"})}),s.jsx("div",{className:"text-center mb-8",children:s.jsxs("p",{className:"text-xl font-medium text-foreground",children:["What's on your mind, ",f,"?"]})}),s.jsx("div",{className:"w-full",children:s.jsx(h.Input,{})}),s.jsx(h.IceBreakers,{className:"w-full"})]}),s.jsx("div",{className:"flex flex-col items-center w-full mt-4",children:s.jsx(ge,{})})]}):s.jsxs(s.Fragment,{children:[s.jsx(h.Main,{children:s.jsx(h.Messages,{})}),s.jsx(h.Footer,{children:s.jsx(h.Input,{onOpenContextPanel:()=>a(!0)})})]}),e[24]=N,e[25]=c,e[26]=f,e[27]=_):_=e[27];let w;e[28]!==k||e[29]!==_?(w=s.jsxs(h,{className:"h-full bg-background",children:[k,_]}),e[28]=k,e[29]=_,e[30]=w):w=e[30];let z;e[31]!==w||e[32]!==$?(z=s.jsx(A,{defaultSize:$,minSize:30,id:"main",order:2,children:w}),e[31]=w,e[32]=$,e[33]=z):z=e[33];let M;e[34]!==r?(M=r&&s.jsxs(s.Fragment,{children:[s.jsx(T,{className:"bg-border/30"}),s.jsx(A,{defaultSize:30,minSize:15,id:"context",order:3,children:s.jsx(Q,{onClose:()=>a(!1)})})]}),e[34]=r,e[35]=M):M=e[35];let R;return e[36]!==z||e[37]!==M?(R=s.jsxs(ae,{direction:"horizontal",className:"size-full",children:[E,I,z,M]}),e[36]=z,e[37]=M,e[38]=R):R=e[38],R}function be(e){return!e}function Ne(e){const t=b.c(14),{error:i,onRetry:u}=e,c=i?.message?.includes("401")||i?.message?.toLowerCase().includes("unauthorized");let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(P.Header,{className:"flex-none",children:[s.jsx(P.Header.Left,{className:"gap-2"}),s.jsx(P.Header.Right,{className:"gap-1"})]}),t[0]=l):l=t[0];let m;t[1]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full mx-auto w-fit",children:s.jsx(q,{className:"h-6 w-6 text-destructive"})}),t[1]=m):m=t[1];const p=c?"Unable to load models":"Something went wrong";let o;t[2]!==p?(o=s.jsx("h3",{className:"text-lg font-medium",children:p}),t[2]=p,t[3]=o):o=t[3];const n=c?"There was an authentication error while loading the models. This might be due to an expired session or invalid API key.":i?.message||"An unexpected error occurred";let r;t[4]!==n?(r=s.jsx("p",{className:"text-sm text-muted-foreground",children:n}),t[4]=n,t[5]=r):r=t[5];let a;t[6]!==o||t[7]!==r?(a=s.jsxs("div",{className:"space-y-2",children:[o,r]}),t[6]=o,t[7]=r,t[8]=a):a=t[8];let d;t[9]!==u?(d=s.jsx(U,{variant:"outline",onClick:u,children:"Try again"}),t[9]=u,t[10]=d):d=t[10];let f;return t[11]!==a||t[12]!==d?(f=s.jsxs(h,{children:[l,s.jsx("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:s.jsxs("div",{className:"max-w-sm space-y-4",children:[m,a,d]})})]}),t[11]=a,t[12]=d,t[13]=f):f=t[13],f}function es(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Z,{fallback:Ce,children:s.jsx(g.Suspense,{fallback:s.jsx(h.Skeleton,{}),children:s.jsx(je,{})})}),e[0]=t):t=e[0],t}function Ce(e){const{error:t,resetError:i}=e;return s.jsx(Ne,{error:t,onRetry:i})}export{es as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as Y,r as D,j as s,y as ce,B as te,e as ue,u as me,ak as xe,al as pe,O as ge,f as Re,au as Te,c3 as oe,K as Pe,aw as ze,E as ke,av as $e}from"./index-BXUNq6d7.js";import{a as Le,P as se}from"./index-rWegviRE.js";import{B as Ee,a as Oe,b as Fe,c as Ke}from"./breadcrumb-Dk9kRV2t.js";import{i as he}from"./FilterLines-DCrzLWfV.js";import{n as je}from"./Inbox01-DpRIO4ZY.js";import{i as le}from"./Loading01-Cbk1oNZ2.js";import{i as ye}from"./SearchMd-DJI6OMcD.js";import{u as Ae}from"./use-store-discovery-C9fJhQ4Y.js";import{u as _e,a as ve,b as Be}from"./use-connection-lXrlfojY.js";import{s as Me}from"./slugify-CEUa2lfQ.js";import{f as De,d as Ge}from"./registry-utils-CaVl1vKg.js";import{C as Ve}from"./collection-search-aJlY7LHs.js";import{M as ae}from"./mcp-server-card-s9NGsKpt.js";import{I as We}from"./input-BFH8rk50.js";import{b as be,P as Ne,a as Ce}from"./popover-BcyJids_.js";import{i as Se}from"./Check-7kB05ju_.js";import{t as we}from"./ChevronDown-DHeagNGb.js";import{s as re}from"./XClose-BieEiV6P.js";import{s as Ue}from"./Plus-CqWob4tu.js";import{E as He}from"./empty-state-v8jdj56V.js";import{u as qe}from"./use-binding-CZ8osTa1.js";import{u as Je}from"./useQuery-Bmc4jnG2.js";import{W as Ye,a as Qe,u as Xe,e as Ze,b as et}from"./constants-CDL9XClm.js";import"./useMutation-CkdHuTyE.js";import"./tooltip-BGPUMzDS.js";import"./index-L6huQtcJ.js";import"./ChevronRight-Blv21S_7.js";import"./useInfiniteQuery-BlrmUHYA.js";import"./infiniteQueryObserver-DXFe0xIV.js";import"./use-collections-yY78nnLx.js";import"./CheckVerified02-DmV5dzDn.js";import"./Globe02-CyGtzZ8k.js";import"./Lock01-dP10fLup.js";import"./Terminal-zNrinv6B.js";import"./card-BSGld6G2.js";import"./integration-icon-D6SJHU0f.js";import"./Container-Ci_1Xm4L.js";import"./binder-BEJ4wRzw.js";function tt(t,e){const r=Y.c(4),[l,d]=D.useState(t),o=D.useRef(null),n=D.useRef(!0);let a,f;return r[0]!==e||r[1]!==t?(a=()=>{if(n.current){n.current=!1;return}return o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{d(t)},e),()=>{o.current&&clearTimeout(o.current)}},f=[t,e],r[0]=e,r[1]=t,r[2]=a,r[3]=f):(a=r[2],f=r[3]),D.useEffect(a,f),l}function st(t){const e=Y.c(14),r=D.useRef(null),l=`scroll-position:${t}`,d=D.useRef(null);let o;e[0]!==l?(o=()=>{r.current&&sessionStorage.setItem(l,String(r.current.scrollTop))},e[0]=l,e[1]=o):o=e[1];const n=o;let a;e[2]!==l?(a=()=>{if(d.current===l)return;const p=sessionStorage.getItem(l);if(p&&r.current){const $=Number.parseInt(p,10);r.current.scrollTop=$}d.current=l},e[2]=l,e[3]=a):a=e[3];const f=a;let c;e[4]!==f||e[5]!==l?(c=()=>{d.current!==l&&f()},e[4]=f,e[5]=l,e[6]=c):c=e[6];const T=c;let m;e[7]!==f||e[8]!==l?(m=p=>{r.current=p,p&&d.current!==l&&requestAnimationFrame(()=>{f()})},e[7]=f,e[8]=l,e[9]=m):m=e[9];const x=m;let i;return e[10]!==T||e[11]!==n||e[12]!==x?(i={scrollRef:x,saveScrollPosition:n,handleScroll:T},e[10]=T,e[11]=n,e[12]=x,e[13]=i):i=e[13],i}function rt(t,e){return[...t].sort((r,l)=>l.count-r.count).slice(0,e)}function fe(t){const e=Y.c(52),{label:r,items:l,selectedItems:d,onToggle:o,onClear:n}=t,[a,f]=D.useState(""),[c,T]=D.useState(!1);let m,x,i,p,$,C,R,y,L,v,b;if(e[0]!==l||e[1]!==r||e[2]!==o||e[3]!==c||e[4]!==a||e[5]!==d){const S=[...a?l.filter(F=>F.value.toLowerCase().includes(a.toLowerCase())):l].sort(lt);i=d.length,x=be,L=c,v=T;let g;e[17]!==r?(g=s.jsx("span",{children:r}),e[17]=r,e[18]=g):g=e[18];let w;e[19]!==i?(w=i>0&&s.jsx("span",{className:"ml-1 rounded-full bg-primary text-primary-foreground px-1.5 py-0.5 text-[10px] font-medium",children:i}),e[19]=i,e[20]=w):w=e[20];let h;e[21]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(we,{size:14,className:"opacity-50"}),e[21]=h):h=e[21],e[22]!==w||e[23]!==g?(b=s.jsx(Ne,{asChild:!0,children:s.jsxs(te,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[g,w,h]})}),e[22]=w,e[23]=g,e[24]=b):b=e[24],m=Ce,C="w-64 p-0",R="start";let E;e[25]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(ye,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=E):E=e[25];let I;e[26]!==r?(I=r.toLowerCase(),e[26]=r,e[27]=I):I=e[27];const O=`Search ${I}...`;let A;e[28]===Symbol.for("react.memo_cache_sentinel")?(A=F=>f(F.target.value),e[28]=A):A=e[28],e[29]!==a||e[30]!==O?(y=s.jsx("div",{className:"shrink-0 w-full border-b border-border h-10",children:s.jsxs("label",{className:"flex items-center gap-2.5 h-10 px-4 cursor-text",children:[E,s.jsx(We,{type:"text",placeholder:O,value:a,onChange:A,className:"flex-1 border-0 shadow-none focus-visible:ring-0 px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[29]=a,e[30]=O,e[31]=y):y=e[31],p="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",$=S.length===0?s.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):S.map(F=>{const H=d.includes(F.value);return s.jsxs("button",{onClick:()=>o(F.value),className:ce("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",H?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[s.jsxs("span",{className:"truncate flex items-center gap-2",children:[H&&s.jsx(Se,{size:16,className:"text-muted-foreground shrink-0"}),F.value]}),s.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:F.count})]},F.value)}),e[0]=l,e[1]=r,e[2]=o,e[3]=c,e[4]=a,e[5]=d,e[6]=m,e[7]=x,e[8]=i,e[9]=p,e[10]=$,e[11]=C,e[12]=R,e[13]=y,e[14]=L,e[15]=v,e[16]=b}else m=e[6],x=e[7],i=e[8],p=e[9],$=e[10],C=e[11],R=e[12],y=e[13],L=e[14],v=e[15],b=e[16];let N;e[32]!==p||e[33]!==$?(N=s.jsx("div",{className:p,children:$}),e[32]=p,e[33]=$,e[34]=N):N=e[34];let z;e[35]!==r||e[36]!==n||e[37]!==i?(z=i>0&&s.jsx("div",{className:"p-2 border-t border-border",children:s.jsxs(te,{variant:"ghost",size:"sm",onClick:n,className:"w-full text-xs text-muted-foreground hover:text-foreground",children:["Clear ",r.toLowerCase()]})}),e[35]=r,e[36]=n,e[37]=i,e[38]=z):z=e[38];let k;e[39]!==m||e[40]!==z||e[41]!==C||e[42]!==R||e[43]!==y||e[44]!==N?(k=s.jsxs(m,{className:C,align:R,children:[y,N,z]}),e[39]=m,e[40]=z,e[41]=C,e[42]=R,e[43]=y,e[44]=N,e[45]=k):k=e[45];let P;return e[46]!==x||e[47]!==k||e[48]!==L||e[49]!==v||e[50]!==b?(P=s.jsxs(x,{open:L,onOpenChange:v,children:[b,k]}),e[46]=x,e[47]=k,e[48]=L,e[49]=v,e[50]=b,e[51]=P):P=e[51],P}function lt(t,e){return e.count-t.count}function nt(t){const e=Y.c(67),{availableTags:r,availableCategories:l,selectedTags:d,selectedCategories:o,onTagChange:n,onCategoryChange:a}=t,f=r&&r.length>0||l&&l.length>0,c=d.length>0||o.length>0;if(!f)return null;let T;e[0]!==n||e[1]!==d?(T=g=>{d.includes(g)?n(d.filter(w=>w!==g)):n([...d,g])},e[0]=n,e[1]=d,e[2]=T):T=e[2];const m=T;let x;e[3]!==a||e[4]!==o?(x=g=>{o.includes(g)?a(o.filter(w=>w!==g)):a([...o,g])},e[3]=a,e[4]=o,e[5]=x):x=e[5];const i=x;let p;e[6]!==a||e[7]!==n?(p=()=>{n([]),a([])},e[6]=a,e[7]=n,e[8]=p):p=e[8];const $=p;let C,R,y,L,v,b,N;if(e[9]!==l||e[10]!==r||e[11]!==a||e[12]!==n||e[13]!==o||e[14]!==d||e[15]!==i||e[16]!==m){const g=l?rt(l,6):[];C=o,R=d,N=new Set(g.map(it)),v="flex items-center border-b border-border";let w;e[24]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:s.jsx(he,{size:16})}),e[24]=w):w=e[24];let h;e[25]!==l||e[26]!==a||e[27]!==o||e[28]!==i?(h=l&&l.length>0&&s.jsx(fe,{label:"Categories",items:l,selectedItems:o,onToggle:i,onClear:()=>a([])}),e[25]=l,e[26]=a,e[27]=o,e[28]=i,e[29]=h):h=e[29];let E;e[30]!==r||e[31]!==n||e[32]!==d||e[33]!==m?(E=r&&r.length>0&&s.jsx(fe,{label:"Tags",items:r,selectedItems:d,onToggle:m,onClear:()=>n([])}),e[30]=r,e[31]=n,e[32]=d,e[33]=m,e[34]=E):E=e[34],e[35]!==E||e[36]!==h?(b=s.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[w,h,E]}),e[35]=E,e[36]=h,e[37]=b):b=e[37],y="flex items-center gap-3 flex-wrap px-5 py-3";let I;e[38]!==o||e[39]!==i?(I=O=>{const A=o.includes(O.value);return s.jsxs("div",{onClick:()=>i(O.value),className:ce("inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer",A?"bg-primary text-primary-foreground hover:bg-primary/80":"bg-muted hover:bg-accent text-muted-foreground"),children:[s.jsx("span",{children:O.value}),A&&s.jsx("span",{onClick:F=>{F.stopPropagation(),i(O.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},O.value)},e[38]=o,e[39]=i,e[40]=I):I=e[40],L=g.map(I),e[9]=l,e[10]=r,e[11]=a,e[12]=n,e[13]=o,e[14]=d,e[15]=i,e[16]=m,e[17]=C,e[18]=R,e[19]=y,e[20]=L,e[21]=v,e[22]=b,e[23]=N}else C=e[17],R=e[18],y=e[19],L=e[20],v=e[21],b=e[22],N=e[23];let z;if(e[41]!==C||e[42]!==i||e[43]!==N){let g;e[45]!==N?(g=h=>!N.has(h),e[45]=N,e[46]=g):g=e[46];let w;e[47]!==i?(w=h=>s.jsxs("div",{onClick:()=>i(h),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[s.jsx("span",{children:h}),s.jsx("span",{onClick:E=>{E.stopPropagation(),i(h)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`cat-${h}`),e[47]=i,e[48]=w):w=e[48],z=C.filter(g).map(w),e[41]=C,e[42]=i,e[43]=N,e[44]=z}else z=e[44];let k;if(e[49]!==R||e[50]!==m){let g;e[52]!==m?(g=w=>s.jsxs("div",{onClick:()=>m(w),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[s.jsx("span",{children:w}),s.jsx("span",{onClick:h=>{h.stopPropagation(),m(w)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`tag-${w}`),e[52]=m,e[53]=g):g=e[53],k=R.map(g),e[49]=R,e[50]=m,e[51]=k}else k=e[51];let P;e[54]!==$||e[55]!==c?(P=c&&s.jsxs(te,{variant:"ghost",size:"sm",onClick:$,className:"h-7 text-xs text-muted-foreground hover:text-foreground gap-1 px-2",children:[s.jsx(re,{size:14}),"Clear all"]}),e[54]=$,e[55]=c,e[56]=P):P=e[56];let j;e[57]!==P||e[58]!==y||e[59]!==L||e[60]!==z||e[61]!==k?(j=s.jsxs("div",{className:y,children:[L,z,k,P]}),e[57]=P,e[58]=y,e[59]=L,e[60]=z,e[61]=k,e[62]=j):j=e[62];let S;return e[63]!==j||e[64]!==v||e[65]!==b?(S=s.jsxs("div",{className:v,children:[b,j]}),e[63]=j,e[64]=v,e[65]=b,e[66]=S):S=e[66],S}function it(t){return t.value}function ot(t,e){if(!e)return t;const r=e.toLowerCase();return t.filter(l=>(l.name||l.title||"").toLowerCase().includes(r)||(l.description||l.server?.description||"").toLowerCase().includes(r))}function Ie(t){return t.verified===!0||t._meta?.["mcp.mesh"]?.verified===!0}function de(t){return t._meta?.["mcp.mesh"]?.official===!0}function at(t){const e=Y.c(58),{registryId:r,listToolName:l,filtersToolName:d,storePrivateOnly:o}=t,[n,a]=D.useState(""),f=tt(n,300),c=ue(),{org:T}=me(),{scrollRef:m,saveScrollPosition:x,handleScroll:i}=st(`store-discovery:${r}`);let p;e[0]!==f||e[1]!==d||e[2]!==l||e[3]!==r?(p={registryId:r,listToolName:l,filtersToolName:d,search:f},e[0]=f,e[1]=d,e[2]=l,e[3]=r,e[4]=p):p=e[4];const{items:$,hasMore:C,isLoadingMore:R,isInitialLoading:y,isFetching:L,error:v,loadMore:b,availableTags:N,availableCategories:z,selectedTags:k,selectedCategories:P,setSelectedTags:j,setSelectedCategories:S,hasActiveFilters:g}=Ae(p);let w;e[5]!==$||e[6]!==n?(w=n?ot($,n):$,e[5]=$,e[6]=n,e[7]=w):w=e[7];const h=w;let E;e[8]!==h||e[9]!==o?(E=o?h.filter(ft):h,e[8]=h,e[9]=o,e[10]=E):E=e[10];const I=E,O=(n!==f||L)&&!y&&!!n;let A;e[11]!==I?(A=I.filter(de),e[11]=I,e[12]=A):A=e[12];const F=A;let H;e[13]!==I?(H=I.filter(dt),e[13]=I,e[14]=H):H=e[14];const W=H;let Q;e[15]!==I?(Q=I.filter(mt),e[15]=I,e[16]=Q):Q=e[16];const ee=Q;let X;e[17]!==c||e[18]!==T.slug||e[19]!==r||e[20]!==x?(X=K=>{x();const u=Me(K.name||K.title||K.server?.title||""),Z=typeof K.id=="string"&&K.id.includes("/"),ne=typeof K.server?.name=="string"&&K.server.name.includes("/"),ie=Z&&!ne?K.id:K.server?.name||K.id||"";c({to:"/$org/$project/store/$appName",params:{org:T.slug,project:ge,appName:u},search:{registryId:r,serverName:ie}})},e[17]=c,e[18]=T.slug,e[19]=r,e[20]=x,e[21]=X):X=e[21];const q=X;let J;e[22]!==i||e[23]!==C||e[24]!==R||e[25]!==b?(J=K=>{if(i(),!C||R)return;const u=K.currentTarget;u.scrollHeight-u.scrollTop-u.clientHeight<200&&b()},e[22]=i,e[23]=C,e[24]=R,e[25]=b,e[26]=J):J=e[26];const U=J;let _;e[27]!==O||e[28]!==n?(_=s.jsx(Ve,{value:n,onChange:a,placeholder:"Search for an MCP Server...",isSearching:O}),e[27]=O,e[28]=n,e[29]=_):_=e[29];let B;e[30]!==z||e[31]!==N||e[32]!==P||e[33]!==k||e[34]!==S||e[35]!==j?(B=s.jsx(nt,{availableTags:N,availableCategories:z,selectedTags:k,selectedCategories:P,onTagChange:j,onCategoryChange:S}),e[30]=z,e[31]=N,e[32]=P,e[33]=k,e[34]=S,e[35]=j,e[36]=B):B=e[36];let G;e[37]!==ee||e[38]!==v||e[39]!==q||e[40]!==g||e[41]!==C||e[42]!==y||e[43]!==R||e[44]!==O||e[45]!==F||e[46]!==n||e[47]!==W||e[48]!==I.length?(G=s.jsx("div",{className:"p-5",children:s.jsx("div",{children:v&&!y?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center space-y-4",children:[s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(xe,{className:"size-8 text-destructive"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-lg font-medium",children:"Registry unavailable"}),s.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:"Could not load items from this registry. It may be temporarily offline."}),v.message&&s.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:v.message})]}),s.jsxs(te,{variant:"outline",size:"sm",onClick:ct,children:[s.jsx(pe,{className:"size-4"}),"Try again"]})]}):y?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading items..."})]}):I.length===0&&!g?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(je,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No items available"}),s.jsx("p",{className:"text-muted-foreground",children:"This store doesn't have any available items yet."})]}):I.length===0&&g&&!n?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(he,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No matching items"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your filters to find more results."})]}):n&&I.length===0&&!O?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ye,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No results found"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your search terms."})]}):s.jsxs("div",{className:"flex flex-col gap-8",children:[O&&I.length===0&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Searching..."})]}),F.length>0&&s.jsx(ae,{items:F,title:"Official",onItemClick:q}),W.length>0&&s.jsx(ae,{items:W,title:"Verified",onItemClick:q}),ee.length>0&&s.jsx(ae,{items:ee,title:F.length>0||W.length>0?"All":"",onItemClick:q}),C&&R&&s.jsx("div",{className:"flex justify-center py-8",children:s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[s.jsx(le,{size:20,className:"animate-spin"}),s.jsx("span",{className:"text-sm",children:"Loading more items..."})]})})]})})}),e[37]=ee,e[38]=v,e[39]=q,e[40]=g,e[41]=C,e[42]=y,e[43]=R,e[44]=O,e[45]=F,e[46]=n,e[47]=W,e[48]=I.length,e[49]=G):G=e[49];let M;e[50]!==U||e[51]!==m||e[52]!==G?(M=s.jsx("div",{ref:m,className:"flex-1 overflow-y-auto",onScroll:U,children:G}),e[50]=U,e[51]=m,e[52]=G,e[53]=M):M=e[53];let V;return e[54]!==B||e[55]!==M||e[56]!==_?(V=s.jsxs("div",{className:"flex flex-col h-full",children:[_,B,M]}),e[54]=B,e[55]=M,e[56]=_,e[57]=V):V=e[57],V}function ct(){return window.location.reload()}function mt(t){return!Ie(t)&&!de(t)}function dt(t){return Ie(t)&&!de(t)}function ft(t){return t.is_public!==!0}function ut(t){const e=Y.c(11),{registryId:r,storePrivateOnly:l}=t,d=_e(r),o=d?.tools;let n;e[0]!==o?(n=De(o),e[0]=o,e[1]=n):n=e[1];const a=n;if(!a){let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(je,{className:"size-8 text-muted-foreground"})}),e[2]=i):i=e[2];let p;return e[3]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full py-12 text-center space-y-4",children:[i,s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-lg font-medium",children:"Registry not available"}),s.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:"This registry does not support listing store items, or the connection is not responding."})]})]}),e[3]=p):p=e[3],p}const f=d?.tools;let c;e[4]!==f?(c=Ge(f),e[4]=f,e[5]=c):c=e[5];const m=c||void 0;let x;return e[6]!==a||e[7]!==r||e[8]!==l||e[9]!==m?(x=s.jsx(at,{registryId:r,listToolName:a,filtersToolName:m,storePrivateOnly:l}),e[6]=a,e[7]=r,e[8]=l,e[9]=m,e[10]=x):x=e[10],x}function xt(t){const e=Y.c(43),{registries:r,value:l,onValueChange:d,onAddWellKnown:o,wellKnownRegistries:n,placeholder:a}=t,f=a===void 0?"Select a registry...":a,[c,T]=D.useState(!1);let m,x,i,p,$,C,R,y;if(e[0]!==c||e[1]!==f||e[2]!==r||e[3]!==l){let j;e[12]!==l?(j=g=>g.id===l,e[12]=l,e[13]=j):j=e[13];const S=r.find(j);x=be,R=c,y=T,m=Ne,C=!0,i="button",e[14]===Symbol.for("react.memo_cache_sentinel")?(p=ce("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 hover:bg-accent hover:text-accent-foreground dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-lg border bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] h-7 min-w-[160px]"),e[14]=p):p=e[14],$=S?s.jsxs("span",{className:"flex items-center gap-2",children:[S.icon?s.jsx("img",{src:S.icon,alt:S.name,className:"w-4 h-4 rounded"}):s.jsx("span",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:S.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:S.name})]}):s.jsx("span",{className:"text-muted-foreground",children:f}),e[0]=c,e[1]=f,e[2]=r,e[3]=l,e[4]=m,e[5]=x,e[6]=i,e[7]=p,e[8]=$,e[9]=C,e[10]=R,e[11]=y}else m=e[4],x=e[5],i=e[6],p=e[7],$=e[8],C=e[9],R=e[10],y=e[11];let L;e[15]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(we,{className:"size-4 opacity-50"}),e[15]=L):L=e[15];let v;e[16]!==i||e[17]!==p||e[18]!==$?(v=s.jsxs("button",{type:i,className:p,children:[$,L]}),e[16]=i,e[17]=p,e[18]=$,e[19]=v):v=e[19];let b;e[20]!==m||e[21]!==C||e[22]!==v?(b=s.jsx(m,{asChild:C,children:v}),e[20]=m,e[21]=C,e[22]=v,e[23]=b):b=e[23];let N;if(e[24]!==d||e[25]!==r||e[26]!==l){let j;e[28]!==d||e[29]!==l?(j=S=>s.jsxs("button",{type:"button",onClick:()=>{d(S.id??S.name),T(!1)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[S.icon?s.jsx("img",{src:S.icon,alt:S.name,className:"w-4 h-4 rounded"}):s.jsx("span",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:S.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:S.name})]}),l===(S.id??S.name)&&s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:s.jsx(Se,{className:"size-4"})})]},S.id??S.name),e[28]=d,e[29]=l,e[30]=j):j=e[30],N=r.map(j),e[24]=d,e[25]=r,e[26]=l,e[27]=N}else N=e[27];let z;e[31]!==o||e[32]!==n?(z=n.length>0&&s.jsxs("div",{className:"border-t border-border pt-1 mt-1",children:[s.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Other known registries"}),n.map(j=>s.jsxs("button",{type:"button",onClick:()=>{o(j),T(!1)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[j.icon?s.jsx("img",{src:j.icon,alt:j.title,className:"w-4 h-4 rounded"}):s.jsx("span",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:j.title.slice(0,1).toUpperCase()}),s.jsx("span",{className:"flex-1",children:j.title})]}),s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:s.jsx(Ue,{size:16})})]},j.id??j.title))]}),e[31]=o,e[32]=n,e[33]=z):z=e[33];let k;e[34]!==N||e[35]!==z?(k=s.jsxs(Ce,{align:"end",className:"w-auto min-w-[200px] p-1",children:[N,z]}),e[34]=N,e[35]=z,e[36]=k):k=e[36];let P;return e[37]!==x||e[38]!==b||e[39]!==k||e[40]!==R||e[41]!==y?(P=s.jsxs(x,{open:R,onOpenChange:y,children:[b,k]}),e[37]=x,e[38]=b,e[39]=k,e[40]=R,e[41]=y,e[42]=P):P=e[42],P}function pt({registries:t,onConnected:e}){const r=ve(),{org:{slug:l}}=me(),{data:d}=Re.useSession(),o=ue(),[n,a]=D.useState(!1),f=t[0],c=async()=>{if(!(!f||!d?.user?.id)){a(!0);try{const m=await r.create.mutateAsync(f);e?.(m.id)}finally{a(!1)}}},T=()=>{o({to:"/$org/$project/mcps",params:{org:l,project:ge},search:{action:"create"}})};return s.jsx(He,{image:s.jsx("img",{src:"/store-empty-state.svg",alt:"No store connected",width:336,height:320,className:"max-w-full h-auto"}),title:"Connect to registry",description:"Connect to discover and use Connections from the community.",actions:s.jsxs(s.Fragment,{children:[s.jsxs(te,{variant:"outline",onClick:c,disabled:n||!f,children:[f?.icon&&s.jsx("img",{src:f.icon,alt:"",className:"size-4"}),n?"Installing...":"Install Registry"]}),s.jsx(te,{variant:"outline",onClick:T,children:"Custom Connection"})]})})}function gt(t){const e=Y.c(15),{error:r,onRetry:l,registryName:d}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(xe,{className:"h-6 w-6 text-destructive"})}),e[0]=o):o=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("h3",{className:"text-lg font-medium",children:"Unable to load store"}),e[1]=n):n=e[1];let a;e[2]!==d?(a=s.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:["The ",s.jsx("strong",{children:d})," registry is currently unreachable. This may be a temporary issue — try again in a moment."]}),e[2]=d,e[3]=a):a=e[3];let f;e[4]!==r?(f=r?.message&&s.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:r.message}),e[4]=r,e[5]=f):f=e[5];let c;e[6]!==a||e[7]!==f?(c=s.jsxs("div",{className:"space-y-2",children:[n,a,f]}),e[6]=a,e[7]=f,e[8]=c):c=e[8];let T;e[9]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(pe,{className:"size-4"}),e[9]=T):T=e[9];let m;e[10]!==l?(m=s.jsxs(te,{variant:"outline",size:"sm",onClick:l,children:[T,"Try again"]}),e[10]=l,e[11]=m):m=e[11];let x;return e[12]!==c||e[13]!==m?(x=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[o,c,m]}),e[12]=c,e[13]=m,e[14]=x):x=e[14],x}function rs(){const t=Y.c(53),{org:e,project:r}=me(),l=Be(),d=ve(),o=Te(),n=o.location.pathname.includes("/store/")&&o.location.pathname.split("/").length>3,a=qe(l);let f;t[0]!==e.id?(f=Ye.SELF(e.id),t[0]=e.id,t[1]=f):f=t[1];const c=f,T=r.enabledPlugins,m=T==null||T.includes(oe);let x;t[2]!==c?(x=(u,Z)=>u.id===c?1:Z.id===c?-1:0,t[2]=c,t[3]=x):x=t[3];const i=a.filter(u=>u.id!==c?!0:m).sort(x);let p;t[4]!==c?(p=u=>u.id===c,t[4]=c,t[5]=p):p=t[5];const $=i.some(p);let C;t[6]!==e.id?(C={connectionId:Qe,orgId:e.id},t[6]=e.id,t[7]=C):C=t[7];const R=Xe(C);let y;t[8]!==r.id||t[9]!==R?(y=async()=>{const u=await R.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:r.id,pluginId:oe}});return u.structuredContent??u},t[8]=r.id,t[9]=R,t[10]=y):y=t[10];const{data:L}=Je({queryKey:Pe.projectPluginConfig(r.id??"",oe),queryFn:y,enabled:$&&!!r.id,staleTime:6e4}),v=L?.config?.settings;let b;t[11]!==v||t[12]!==c?(b=u=>u.id===c&&v?{id:u.id,name:v.registryName||u.title,icon:v.registryIcon||u.icon||void 0}:{id:u.id,name:u.title,icon:u.icon||void 0},t[11]=v,t[12]=c,t[13]=b):b=t[13];const N=i.map(b);let z;t[14]!==e.slug?(z=ze.selectedRegistry(e.slug),t[14]=e.slug,t[15]=z):z=t[15];const[k,P]=Le(z,jt);let j;t[16]!==k?(j=u=>u.id===k,t[16]=k,t[17]=j):j=t[17];const S=i.find(j);let g;t[18]!==c?(g=u=>u.id!==c,t[18]=c,t[19]=g):g=t[19];const w=i.find(g),h=S?.id||w?.id||i[0]?.id||"",E=h===c&&v?.storePrivateOnly===!0;let I;t[20]!==e.id?(I=Ze(e.id),t[20]=e.id,t[21]=I):I=t[21];let O;t[22]!==I?(O=[I],t[22]=I,t[23]=O):O=t[23];const A=O;let F;t[24]===Symbol.for("react.memo_cache_sentinel")?(F=[et()],t[24]=F):F=t[24];const H=F;let W;t[25]!==d.create||t[26]!==P?(W=async u=>{const Z=await d.create.mutateAsync(u);P(Z.id)},t[25]=d.create,t[26]=P,t[27]=W):W=t[27];const Q=W,ee=new Set(i.map(ht)),X=A.filter(u=>u.id&&!ee.has(u.id)),q=H.filter(u=>u.id&&!ee.has(u.id));if(n){let u;return t[28]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx($e,{}),t[28]=u):u=t[28],u}let J;t[29]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(se.Header.Left,{children:s.jsx(Ee,{children:s.jsx(Oe,{children:s.jsx(Fe,{children:s.jsx(Ke,{children:"Store"})})})})}),t[29]=J):J=t[29];let U;t[30]!==Q?(U=async u=>Q(u),t[30]=Q,t[31]=U):U=t[31];let _;t[32]!==X||t[33]!==h||t[34]!==N||t[35]!==P||t[36]!==U?(_=s.jsxs(se.Header,{children:[J,s.jsx(se.Header.Right,{children:s.jsx(xt,{wellKnownRegistries:X,registries:N,value:h,onValueChange:P,onAddWellKnown:U,placeholder:"Select store..."})})]}),t[32]=X,t[33]=h,t[34]=N,t[35]=P,t[36]=U,t[37]=_):_=t[37];let B;t[38]!==h||t[39]!==N?(B=u=>{const{error:Z,resetError:ne}=u;return s.jsx(gt,{error:Z,onRetry:ne,registryName:N.find(ie=>ie.id===h)?.name??"registry"})},t[38]=h,t[39]=N,t[40]=B):B=t[40];let G;t[41]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading store items..."})]}),t[41]=G):G=t[41];let M;t[42]!==q||t[43]!==h||t[44]!==P||t[45]!==E?(M=s.jsx(D.Suspense,{fallback:G,children:h?s.jsx(ut,{registryId:h,storePrivateOnly:E}):s.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:s.jsx(pt,{registries:q,onConnected:u=>{P(u)}})})}),t[42]=q,t[43]=h,t[44]=P,t[45]=E,t[46]=M):M=t[46];let V;t[47]!==B||t[48]!==M?(V=s.jsx(se.Content,{children:s.jsx(ke,{fallback:B,children:M})}),t[47]=B,t[48]=M,t[49]=V):V=t[49];let K;return t[50]!==_||t[51]!==V?(K=s.jsxs(se,{children:[_,V]}),t[50]=_,t[51]=V,t[52]=K):K=t[52],K}function ht(t){return t.id}function jt(t){return t??""}export{rs as default};
|
package/dist/client/assets/{plugin-empty-state-Dt2dvxD9.js → plugin-empty-state-BWhKyfJ8.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,j as t}from"./index-
|
|
1
|
+
import{c as s,j as t}from"./index-BXUNq6d7.js";import{e as r}from"./Dataflow03-CKfLDuKw.js";function a(){const o=s.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[t.jsx(r,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No workflows connected"}),t.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:"Connect a workflow provider to create and manage automated workflows with multiple steps and integrations."})]}),o[0]=e):e=o[0],e}export{a as default};
|
package/dist/client/assets/{plugin-empty-state-CRLH-_5S.js → plugin-empty-state-Cx_CuKe3.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,j as t,as as n}from"./index-
|
|
1
|
+
import{c as a,j as t,as as n}from"./index-BXUNq6d7.js";function c(){const s=a.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[t.jsx(n,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No storage connected"}),t.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:"Connect an S3-compatible storage service to browse and manage files."})]}),s[0]=e):e=s[0],e}export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,j as s,r as S,as as y}from"./index-
|
|
1
|
+
import{c as w,j as s,r as S,as as y}from"./index-BXUNq6d7.js";import{i as _}from"./Check-7kB05ju_.js";import{t as k}from"./ChevronDown-DHeagNGb.js";function E(x){const e=w.c(32),{connections:l,selectedConnectionId:n,onConnectionChange:N}=x,[r,z]=S.useState(!1),C=S.useRef(null);let p;if(e[0]!==l||e[1]!==n){let t;e[3]!==n?(t=u=>u.id===n,e[3]=n,e[4]=t):t=e[4],p=l.find(t),e[0]=l,e[1]=n,e[2]=p}else p=e[2];const i=p;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t=>{C.current?.contains(t.relatedTarget)||z(!1)},e[5]=j):j=e[5];const R=j;if(l.length===1){let t;e[6]!==i?(t=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[6]=i,e[7]=t):t=e[7];const u=i?.title||"Storage";let f;e[8]!==u?(f=s.jsx("span",{children:u}),e[8]=u,e[9]=f):f=e[9];let h;return e[10]!==t||e[11]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t,f]}),e[10]=t,e[11]=f,e[12]=h):h=e[12],h}let o;e[13]!==r?(o=()=>z(!r),e[13]=r,e[14]=o):o=e[14];let a;e[15]!==i?(a=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[15]=i,e[16]=a):a=e[16];const v=i?.title||"Select storage";let c;e[17]!==v?(c=s.jsx("span",{children:v}),e[17]=v,e[18]=c):c=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(k,{size:14}),e[19]=b):b=e[19];let d;e[20]!==o||e[21]!==a||e[22]!==c?(d=s.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-accent transition-colors",children:[a,c,b]}),e[20]=o,e[21]=a,e[22]=c,e[23]=d):d=e[23];let m;e[24]!==l||e[25]!==r||e[26]!==N||e[27]!==n?(m=r&&s.jsx("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-48 rounded-md border border-border bg-popover p-1 shadow-md",children:l.map(t=>s.jsxs("button",{type:"button",onClick:()=>{N(t.id),z(!1)},className:"flex items-center gap-2 w-full px-2 py-1.5 text-sm rounded-sm hover:bg-accent transition-colors",children:[t.icon?s.jsx("img",{src:t.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),s.jsx("span",{className:"flex-1 text-left",children:t.title}),t.id===n&&s.jsx(_,{size:14,className:"text-primary"})]},t.id))}),e[24]=l,e[25]=r,e[26]=N,e[27]=n,e[28]=m):m=e[28];let g;return e[29]!==d||e[30]!==m?(g=s.jsxs("div",{className:"relative",ref:C,onBlur:R,children:[d,m]}),e[29]=d,e[30]=m,e[31]=g):g=e[31],g}function O(x){const e=w.c(2);let l;return e[0]!==x?(l=s.jsx(E,{...x}),e[0]=x,e[1]=l):l=e[1],l}export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,j as s,r as w}from"./index-
|
|
1
|
+
import{c as S,j as s,r as w}from"./index-BXUNq6d7.js";import{i as R}from"./Check-7kB05ju_.js";import{t as _}from"./ChevronDown-DHeagNGb.js";import{e as y}from"./Dataflow03-CKfLDuKw.js";function E(x){const e=S.c(32),{connections:l,selectedConnectionId:r,onConnectionChange:N}=x,[n,z]=w.useState(!1),C=w.useRef(null);let p;if(e[0]!==l||e[1]!==r){let t;e[3]!==r?(t=u=>u.id===r,e[3]=r,e[4]=t):t=e[4],p=l.find(t),e[0]=l,e[1]=r,e[2]=p}else p=e[2];const i=p;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t=>{C.current?.contains(t.relatedTarget)||z(!1)},e[5]=j):j=e[5];const k=j;if(l.length===1){let t;e[6]!==i?(t=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[6]=i,e[7]=t):t=e[7];const u=i?.title||"Workflows";let f;e[8]!==u?(f=s.jsx("span",{children:u}),e[8]=u,e[9]=f):f=e[9];let h;return e[10]!==t||e[11]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t,f]}),e[10]=t,e[11]=f,e[12]=h):h=e[12],h}let o;e[13]!==n?(o=()=>z(!n),e[13]=n,e[14]=o):o=e[14];let c;e[15]!==i?(c=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[15]=i,e[16]=c):c=e[16];const v=i?.title||"Select provider";let a;e[17]!==v?(a=s.jsx("span",{children:v}),e[17]=v,e[18]=a):a=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(_,{size:14}),e[19]=b):b=e[19];let d;e[20]!==o||e[21]!==c||e[22]!==a?(d=s.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-accent transition-colors",children:[c,a,b]}),e[20]=o,e[21]=c,e[22]=a,e[23]=d):d=e[23];let m;e[24]!==l||e[25]!==n||e[26]!==N||e[27]!==r?(m=n&&s.jsx("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-48 rounded-md border border-border bg-popover p-1 shadow-md",children:l.map(t=>s.jsxs("button",{type:"button",onClick:()=>{N(t.id),z(!1)},className:"flex items-center gap-2 w-full px-2 py-1.5 text-sm rounded-sm hover:bg-accent transition-colors",children:[t.icon?s.jsx("img",{src:t.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),s.jsx("span",{className:"flex-1 text-left",children:t.title}),t.id===r&&s.jsx(R,{size:14,className:"text-primary"})]},t.id))}),e[24]=l,e[25]=n,e[26]=N,e[27]=r,e[28]=m):m=e[28];let g;return e[29]!==d||e[30]!==m?(g=s.jsxs("div",{className:"relative",ref:C,onBlur:k,children:[d,m]}),e[29]=d,e[30]=m,e[31]=g):g=e[31],g}function H(x){const e=S.c(2);let l;return e[0]!==x?(l=s.jsx(E,{...x}),e[0]=x,e[1]=l):l=e[1],l}export{H as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as r,j as i}from"./index-BXUNq6d7.js";import{P as m}from"./project-plugins-CXWguN_r.js";import"./useQuery-Bmc4jnG2.js";import"./useMutation-CkdHuTyE.js";import"./constants-CDL9XClm.js";import"./switch-4UL4iV3X.js";import"./label-DE7vX487.js";import"./Container-Ci_1Xm4L.js";import"./use-connection-lXrlfojY.js";import"./use-collections-yY78nnLx.js";import"./use-binding-CZ8osTa1.js";import"./binder-BEJ4wRzw.js";import"./use-install-from-registry-C24f0cqa.js";import"./extract-connection-data-Cyjq-Q5I.js";import"./constants-DxY-8FrK.js";import"./registry-utils-CaVl1vKg.js";import"./generate-id-Dyweu44Y.js";import"./Loading01-Cbk1oNZ2.js";import"./Plus-CqWob4tu.js";import"./select-B-f7jgVG.js";import"./ChevronUp-J7upZD3-.js";import"./index-L6huQtcJ.js";import"./Check-7kB05ju_.js";import"./ChevronDown-DHeagNGb.js";function v(){const o=r.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(m,{}),o[0]=t):t=o[0],t}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,a6 as $,j as c,b1 as L,a8 as z,ac as O,a7 as A,a9 as g,a$ as _,ab as j,b0 as G,b2 as w,b7 as H,b8 as K,aa as U,b9 as V,ba as W,bb as Z,b3 as q,b4 as B,b6 as J,c as R,y as Q}from"./index-
|
|
1
|
+
import{r as i,a6 as $,j as c,b1 as L,a8 as z,ac as O,a7 as A,a9 as g,a$ as _,ab as j,b0 as G,b2 as w,b7 as H,b8 as K,aa as U,b9 as V,ba as W,bb as Z,b3 as q,b4 as B,b6 as J,c as R,y as Q}from"./index-BXUNq6d7.js";var C="Popover",[E]=U(C,[w]),P=w(),[X,d]=E(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=P(e),l=i.useRef(null),[u,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(L,{...p,children:c.jsx(X,{scope:e,contentId:z(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",Y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(_,{...s,...r,ref:e})});Y.displayName=F;var y="PopoverTrigger",S=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(y,o),s=P(o),a=O(e,n.triggerRef),p=c.jsx(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...r,ref:a,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(_,{asChild:!0,...s,children:p})});S.displayName=y;var b="PopoverPortal",[ee,oe]=E(b,{forceMount:void 0}),D=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=d(b,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(j,{present:o||s.open,children:c.jsx(G,{asChild:!0,container:n,children:r})})})};D.displayName=b;var v="PopoverContent",M=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=d(v,t.__scopePopover);return c.jsx(j,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=V("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(null),n=O(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return H(a)},[]),c.jsx(K,{as:te,allowPinchZoom:!0,children:c.jsx(T,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,u=p.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:h,...x}=t,f=d(v,o),m=P(o);return W(),c.jsx(Z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(q,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(B,{"data-state":I(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(k,o);return c.jsx(A.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=k;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(J,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=S,le=D,ue=M;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=Q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let u;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(u=c.jsx(le,{children:c.jsx(ue,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=u):u=e[11],u}export{ve as P,ge as a,fe as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as P,g as A,j as r,E as y,r as R,u as T}from"./index-BXUNq6d7.js";import{u as S}from"./use-connection-lXrlfojY.js";import{u as U}from"./constants-CDL9XClm.js";import{u as v}from"./use-mcp-tools-CwVNqTmj.js";import{c as E}from"./content-blocks-o63cs2vh.js";import{M as H}from"./mcp-app-renderer-CNc9yMN5.js";import{g as O,M as $}from"./types-DZ5M-eMJ.js";import{u as D}from"./context-DDV_uL9a.js";import{P as _,u as k}from"./index-rWegviRE.js";import"./use-collections-yY78nnLx.js";import"./useMutation-CkdHuTyE.js";import"./useQuery-Bmc4jnG2.js";import"./use-mcp-resources-DhBJVSsg.js";import"./decopilot-events-Brt4gAR6.js";import"./tooltip-BGPUMzDS.js";import"./index-L6huQtcJ.js";const b={};function w(t){const e=P.c(22),{client:o,resourceURI:m,tool:i,connectionId:f}=t,{sendMessage:a,setAppContext:c,clearAppContext:n}=D(),[,p]=k(),l=`${f}:${i.name}`;let d;e[0]!==o||e[1]!==i.name?(d={client:o,toolName:i.name,toolArguments:b},e[0]=o,e[1]=i.name,e[2]=d):d=e[2];const{data:u}=v(d);let s;e[3]!==a||e[4]!==p?(s=N=>{const M=E(N.content);M.content.length>0&&(p(!0),a(M))},e[3]=a,e[4]=p,e[5]=s):s=e[5];const g=s,I=i;let x;e[6]!==I?(x={tool:I},e[6]=I,e[7]=x):x=e[7];let h;e[8]!==c||e[9]!==l?(h=N=>c(l,N),e[8]=c,e[9]=l,e[10]=h):h=e[10];let j;e[11]!==n||e[12]!==l?(j=()=>n(l),e[11]=n,e[12]=l,e[13]=j):j=e[13];let C;return e[14]!==o||e[15]!==g||e[16]!==m||e[17]!==x||e[18]!==h||e[19]!==j||e[20]!==u?(C=r.jsx(H,{resourceURI:m,toolInfo:x,toolInput:b,toolResult:u,displayMode:"fullscreen",minHeight:$.fullscreen.minHeight,maxHeight:$.fullscreen.maxHeight,client:o,onMessage:g,onUpdateModelContext:h,onTeardown:j,className:"h-full"}),e[14]=o,e[15]=g,e[16]=m,e[17]=x,e[18]=h,e[19]=j,e[20]=u,e[21]=C):C=e[21],C}function L(t){const e=P.c(17),{connectionId:o,toolName:m}=t,{org:i}=T();let f;e[0]!==o||e[1]!==i.id?(f={connectionId:o,orgId:i.id},e[0]=o,e[1]=i.id,e[2]=f):f=e[2];const a=U(f),c=S(o),n=decodeURIComponent(m);let p,l;if(e[3]!==c?.tools||e[4]!==n){let s;e[7]!==n?(s=g=>g.name===n,e[7]=n,e[8]=s):s=e[8],l=(c?.tools??[]).find(s),p=l?._meta?O(l._meta):void 0,e[3]=c?.tools,e[4]=n,e[5]=p,e[6]=l}else p=e[5],l=e[6];const d=p;if(!c){let s;return e[9]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Connection not found"})}),e[9]=s):s=e[9],s}if(!l||!d){let s;return e[10]!==n?(s=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',n,'" not found or has no UI']})}),e[10]=n,e[11]=s):s=e[11],s}let u;return e[12]!==a||e[13]!==o||e[14]!==d||e[15]!==l?(u=r.jsx(w,{client:a,resourceURI:d,tool:l,connectionId:o}),e[12]=a,e[13]=o,e[14]=d,e[15]=l,e[16]=u):u=e[16],u}function se(){const t=P.c(9);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/$project/apps/$connectionId/$toolName"},t[0]=e):e=t[0];const{connectionId:o,toolName:m}=A(e);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(_.Header,{}),t[1]=i):i=t[1];const f=`${o}:${m}`;let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[r.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),r.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),t[2]=a):a=t[2];let c;t[3]!==o||t[4]!==m?(c=r.jsx(R.Suspense,{fallback:a,children:r.jsx(L,{connectionId:o,toolName:m})}),t[3]=o,t[4]=m,t[5]=c):c=t[5];let n;return t[6]!==f||t[7]!==c?(n=r.jsxs(_,{children:[i,r.jsx(_.Content,{children:r.jsx(y,{fallback:void 0,children:c},f)})]}),t[6]=f,t[7]=c,t[8]=n):n=t[8],n}export{se as default};
|