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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,y as n,j as c,a4 as l,a5 as m}from"./index-
|
|
1
|
+
import{c as d,y as n,j as c,a4 as l,a5 as m}from"./index-BXUNq6d7.js";import{i as b}from"./Check-7kB05ju_.js";function x(o){const e=d.c(9);let r,a;e[0]!==o?({className:r,...a}=o,e[0]=o,e[1]=r,e[2]=a):(r=e[1],a=e[2]);let i;e[3]!==r?(i=n("peer border-foreground dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",r),e[3]=r,e[4]=i):i=e[4];let t;e[5]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx(m,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-primary-foreground transition-none",children:c.jsx(b,{className:"size-3.5"})}),e[5]=t):t=e[5];let s;return e[6]!==a||e[7]!==i?(s=c.jsx(l,{"data-slot":"checkbox",className:i,...a,children:t}),e[6]=a,e[7]=i,e[8]=s):s=e[8],s}export{x as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,c as i,j as r}from"./index-
|
|
1
|
+
import{r as l,c as i,j as r}from"./index-BXUNq6d7.js";import{R as a,C as n,a as c}from"./index-Dg_kVhT7.js";const p=({size:o=24,color:e="currentColor",...t})=>l.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},l.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));p.displayName="ArrowsRight";const m=({size:o=24,color:e="currentColor",...t})=>l.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},l.createElement("path",{d:"M10 17.659V20a2 2 0 1 0 4 0v-2.341M12 2v1m-9 9H2m3.5-6.5-.6-.6m13.6.6.6-.6M22 12h-1m-3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"}));m.displayName="Lightbulb02";function u(o){const e=i.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(a,{"data-slot":"collapsible",...t}),e[2]=t,e[3]=s):s=e[3],s}function f(o){const e=i.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(n,{"data-slot":"collapsible-trigger",...t}),e[2]=t,e[3]=s):s=e[3],s}function g(o){const e=i.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(c,{"data-slot":"collapsible-content",...t}),e[2]=t,e[3]=s):s=e[3],s}export{u as C,m as a,f as b,g as c,p as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bi as oe,r as k,o as Zs,n as Tt,c as N,j as o,E as En,u as Q,t as Ys,y as A,_ as eo,g as ge,d as to,J as nt,O as st,B as X,w as On,bQ as J,co as no,cp as so,a$ as oo,a7 as Vt,a9 as fe,ab as Rn,b0 as ro,a6 as Ut,b1 as io,b2 as An,ac as Mn,b3 as lo,b4 as co,aa as Pn,b6 as ao,cq as Bt,cr as uo,a8 as fo,bc as mo,am as po,x as xo,cs as ho,ct as go,cu as Ln}from"./index-DsOJvxnb.js";import{E as Dn}from"./empty-state-D4GX29pL.js";import{d as qt,u as Kt}from"./use-collections-DSWhP4jg.js";import{u as re,g as Ke,i as bo}from"./constants-XtX-WKGm.js";import{F as $t,a as jo,b as Jt,d as Gt}from"./form-BN7_f2uj.js";import{I as Xt}from"./input-CUT8DBv1.js";import{T as Dt}from"./textarea-CTzX43MZ.js";import{V as zn,b as Wn,a as ve}from"./layout-C2ZnDBkW.js";import{S as Fn}from"./save-actions-MzYbolsq.js";import{M as vo}from"./mcp-app-renderer-IX_OR3wW.js";import{g as So,M as gn}from"./types-B3niHy47.js";import{S as Hn,a as Vn,b as Un,c as Bn,d as ot}from"./select-DRPG5csU.js";import{b as Qt,c as rt,a as it,T as lt}from"./tooltip-XyKE4lZa.js";import{i as yo}from"./AlertCircle-De9oqjty.js";import{s as wo}from"./Clock-rHd8cQAO.js";import{i as bn}from"./Code01-CoTQP8pZ.js";import{a as No}from"./Copy01-CIUDy0Hr.js";import{s as Co}from"./LayersTwo01-C-XZtFtv.js";import{i as mt}from"./Loading01-BNn4YU_K.js";import{i as Zt}from"./Play-C7yKo0dH.js";import{B as qn,a as Kn,b as We,d as ct,e as at,c as Jn}from"./breadcrumb-aP02JuZO.js";import{u as ko,O as Io,M as _o,F as To,v as $o,n as Et}from"./index-MKlLgXIW.js";import{u as pt,b as Eo}from"./use-connection-DmR852Js.js";import{d as Yt,b as en,a as tn}from"./use-mcp-tools-BXmfFmar.js";import{c as Oo}from"./content-blocks-o63cs2vh.js";import{I as xt}from"./integration-icon-CVxvM4fR.js";import{T as Ro}from"./tools-list-Db7zzadA.js";import{u as Ao,c as Mo}from"./context-CtrnP3HC.js";import{u as Po}from"./index-X4FDee1r.js";import{M as Fe,n as Lo}from"./monaco-editor-J8rInsT2.js";import{E as nn}from"./empty-state-AMuFIqs3.js";import{n as Do}from"./Container-DwxLlgWA.js";import{b as Gn}from"./use-virtual-mcp-C9XdHCA_.js";import{b as zo,R as jn,a as Wo}from"./resizable-D4LJctEl.js";import{B as he}from"./badge-CAg946Xk.js";import{S as ht}from"./spinner-CqAVfcvO.js";import{V as Fo}from"./collection-display-button-VOymjalV.js";import{N as Ho,S as Vo,a as Uo,c as Bo,m as et,P as qo,i as Ko,R as Jo,u as Go,b as Xo,d as vn,E as Qo,e as Zo}from"./index-CuSj4QrF.js";import{a as Yo}from"./use-binding-BfjFWpEn.js";import{b as er,D as tr,a as nr,e as sr,c as or,d as rr}from"./dialog-_XYw8lZC.js";import"./index-Cn8BPdHZ.js";import{s as Xn}from"./Plus-CT_Gcwl2.js";import{i as gt}from"./Check-BfKCyKXX.js";import{i as ir}from"./DotsHorizontal-CmCKbvuJ.js";import{a as lr}from"./Tool01-CjSIsyxE.js";import{s as sn}from"./XClose-eeK1fS1n.js";import{D as cr,a as ar,b as dr,c as Sn}from"./dropdown-menu-DzFMEBVS.js";import{T as ur,R as fr,b as mr,c as Qn}from"./index-C-NLwTON.js";import{i as pr}from"./ChevronRight-1g9z-Z5h.js";import{a as xr,S as hr}from"./scroll-area-B5XbONJS.js";import{i as Zn}from"./X-B_f76BPZ.js";import"./useMutation-B_cFG709.js";import"./label-iPw5smAw.js";import"./Save01-CuwI4Bxq.js";import"./use-mcp-resources-Bxkx1Ub1.js";import"./useQuery-D2ShO4od.js";import"./ChevronUp-1s_S3eDF.js";import"./index-zjV4p_E5.js";import"./ChevronDown-BHMaRWRt.js";import"./File06-CU5oU1OI.js";import"./Key01-DAjAUWfr.js";import"./constants-B4Swgi3d.js";import"./registry-utils-Cd3t_Kmp.js";import"./extract-connection-data-CS_Bn7Ri.js";import"./generate-id-Dyweu44Y.js";import"./use-install-from-registry-_FQYQGQx.js";import"./circle-alert-DCE_cWKa.js";import"./index-DxP-spTj.js";import"./index-CcA_QriT.js";import"./select-virtual-mcp-B8NgSgPI.js";import"./popover-CF3EN_0o.js";import"./SearchMd-BLeX5weN.js";import"./Users03-B7X28dbt.js";import"./use-create-virtual-mcp-DXWAjide.js";import"./collection-search-62vwaqdq.js";import"./collection-table-wrapper-DPJfuSg9.js";import"./table-DJbHB5IL.js";import"./ArrowDown-PFFBPH3j.js";import"./ArrowUp-C6Q-EpUw.js";import"./card-RQxLVCBk.js";import"./Eye-JuDcZhJz.js";import"./Globe02-k3_A41kp.js";import"./decopilot-events-Brt4gAR6.js";import"./use-local-storage-CxC8ozOe.js";import"./Grid01-DBOkAm2V.js";import"./List-CuV23QYs.js";import"./binder-DTBFGqjl.js";const Yn=oe("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const es=oe("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const on=oe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const rn=oe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const gr=oe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const br=oe("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const jr=oe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const ts=oe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const ns=oe("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const ss=oe("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const vr=oe("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const os=oe("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const rs=oe("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]),ln=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M12 8v4m0 4h.01M2 8.523v6.954c0 .245 0 .367.028.482a1 1 0 0 0 .12.29c.061.1.148.187.32.36l4.923 4.922c.173.173.26.26.36.322.09.054.188.095.29.12.115.027.237.027.482.027h6.954c.245 0 .367 0 .482-.028a.998.998 0 0 0 .29-.12c.1-.061.187-.148.36-.32l4.922-4.923c.173-.173.26-.26.322-.36a.998.998 0 0 0 .12-.29c.027-.115.027-.237.027-.482V8.523c0-.245 0-.367-.028-.482a.998.998 0 0 0-.12-.29c-.061-.1-.148-.187-.32-.36L16.608 2.47c-.173-.173-.26-.26-.36-.322a1 1 0 0 0-.29-.12C15.844 2 15.722 2 15.477 2H8.523c-.245 0-.367 0-.482.028a1 1 0 0 0-.29.12c-.1.061-.187.148-.36.32L2.47 7.392c-.173.173-.26.26-.322.36a1 1 0 0 0-.12.29C2 8.156 2 8.278 2 8.523Z"}));ln.displayName="AlertOctagon";const is=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M20.5 8v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.22 21 17.38 21 15.7 21H8.3c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3.5 18.72 3.5 17.88 3.5 16.2V8m.1-5h16.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C22 3.76 22 4.04 22 4.6v1.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C21.24 8 20.96 8 20.4 8H3.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C2 7.24 2 6.96 2 6.4V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C2.76 3 3.04 3 3.6 3Zm6 8.5h4.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C16 12.26 16 12.54 16 13.1v.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437c-.214.109-.494.109-1.054.109H9.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C8 14.74 8 14.46 8 13.9v-.8c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C8.76 11.5 9.04 11.5 9.6 11.5Z"}));is.displayName="Box";const ls=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m22.7 11.5-2 2-2-2m2.245 1.5A9 9 0 1 0 19 17.657M12 7v5l3 2"}));ls.displayName="ClockFastForward";const cs=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m17 17 5-5-5-5M7 7l-5 5 5 5m7-14-4 18"}));cs.displayName="Code02";const as=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M4 4v1.4c0 3.36 0 5.04.654 6.324a6 6 0 0 0 2.622 2.622C8.56 15 10.24 15 13.6 15H20m0 0-5-5m5 5-5 5"}));as.displayName="CornerDownRight";const ds=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M21 5c0 1.657-4.03 3-9 3S3 6.657 3 5m18 0c0-1.657-4.03-3-9-3S3 3.343 3 5m18 0v14c0 1.66-4 3-9 3s-9-1.34-9-3V5m18 7c0 1.66-4 3-9 3s-9-1.34-9-3"}));ds.displayName="Database01";const us=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));us.displayName="GitBranch01";const fs=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m13 22-3-3m0 0 3-3m-3 3h5a7 7 0 0 0 3-13.326M6 18.326A7 7 0 0 1 9 5h5m0 0-3-3m3 3-3 3"}));fs.displayName="Repeat03";const ms=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}),k.createElement("path",{d:"M8 9.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C8.76 8 9.04 8 9.6 8h4.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C16 8.76 16 9.04 16 9.6v4.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C15.24 16 14.96 16 14.4 16H9.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C8 15.24 8 14.96 8 14.4V9.6Z"}));ms.displayName="StopCircle";Zs({title:Tt().min(1),description:Tt().nullable(),body:Tt()});function Ot(t){for(const e of t.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Sr(){const t=window.location.pathname.split("/").filter(Boolean),e=t.findIndex(s=>s==="mcps"),n=e>=0?t[e+1]:void 0;return n?decodeURIComponent(n):void 0}function yr(t){const e=N.c(13),{form:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=s):s=e[0];let i;e[1]!==n.control?(i=o.jsxs("div",{className:"flex flex-col gap-4",children:[s,o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[o.jsx($t,{control:n.control,name:"title",render:Cr}),o.jsx($t,{control:n.control,name:"description",render:Nr})]})]}),e[1]=n.control,e[2]=i):i=e[2];let r,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),l=o.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=r,e[4]=l):(r=e[3],l=e[4]);let c;e[5]!==n.control?(c=o.jsxs("div",{className:"flex flex-col gap-2",children:[r,l,o.jsx($t,{control:n.control,name:"body",render:wr})]}),e[5]=n.control,e[6]=c):c=e[6];let a;e[7]!==i||e[8]!==c?(a=o.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[i,c]}),e[7]=i,e[8]=c,e[9]=a):a=e[9];let d;return e[10]!==n||e[11]!==a?(d=o.jsx(jo,{...n,children:a}),e[10]=n,e[11]=a,e[12]=d):d=e[12],d}function wr(t){const{field:e}=t;return o.jsx(Jt,{children:o.jsx(Gt,{children:o.jsx(Dt,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function Nr(t){const{field:e}=t;return o.jsxs(Jt,{children:[o.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),o.jsx(Gt,{children:o.jsx(Xt,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Cr(t){const{field:e}=t;return o.jsxs(Jt,{children:[o.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),o.jsx(Gt,{children:o.jsx(Xt,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function kr(t){const e=N.c(35),{providerId:n,promptId:s}=t,{org:i}=Q(),r=n||null;let l;e[0]!==i.id||e[1]!==r?(l={connectionId:r,orgId:i.id},e[0]=i.id,e[1]=r,e[2]=l):l=e[2];const c=re(l),a=qt(n,"PROMPT",s,c),d=Kt(n,"PROMPT",c),u=d.update.isPending;let f;e[3]!==a?(f=a?{title:a.title,description:a.description??null,body:Ot(a)}:void 0,e[3]=a,e[4]=f):f=e[4];let m;e[5]!==f?(m={values:f},e[5]=f,e[6]=m):m=e[6];const x=Ys(m);let p;e[7]!==x||e[8]!==a?(p=()=>{a&&x.reset({title:a.title,description:a.description??null,body:Ot(a)})},e[7]=x,e[8]=a,e[9]=p):p=e[9];const h=p;let g;e[10]!==d.update||e[11]!==x||e[12]!==s?(g=x.handleSubmit(async _=>{const O=await d.update.mutateAsync({id:s,data:{title:_.title,description:_.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:_.body}}]}});x.reset({title:O.title,description:O.description??null,body:Ot(O)})}),e[10]=d.update,e[11]=x,e[12]=s,e[13]=g):g=e[13];const b=g;if(!a){let _;return e[14]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(Dn,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[14]=_):_=e[14],_}let j;e[15]!==a.title?(j=o.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:a.title}),e[15]=a.title,e[16]=j):j=e[16];let S;e[17]!==a.description?(S=a.description?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),o.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:a.description})]}):null,e[17]=a.description,e[18]=S):S=e[18];let y;e[19]!==j||e[20]!==S?(y=o.jsx(Wn,{children:o.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[j,S]})}),e[19]=j,e[20]=S,e[21]=y):y=e[21];let v;e[22]!==b?(v=()=>{b()},e[22]=b,e[23]=v):v=e[23];let w;e[24]!==x.formState.isDirty||e[25]!==u||e[26]!==h||e[27]!==v?(w=o.jsx(zn,{children:o.jsx(Fn,{onSave:v,onUndo:h,isDirty:x.formState.isDirty,isSaving:u})}),e[24]=x.formState.isDirty,e[25]=u,e[26]=h,e[27]=v,e[28]=w):w=e[28];let C;e[29]!==x?(C=o.jsx("div",{className:"h-full",children:o.jsx(yr,{form:x})}),e[29]=x,e[30]=C):C=e[30];let $;return e[31]!==w||e[32]!==C||e[33]!==y?($=o.jsxs(ve,{children:[y,w,C]}),e[31]=w,e[32]=C,e[33]=y,e[34]=$):$=e[34],$}function Ir(t){const e=N.c(4),{itemId:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=Sr(),e[0]=s):s=e[0];const i=s;if(!i){let l;return e[1]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(Dn,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=l):l=e[1],l}let r;return e[2]!==n?(r=o.jsx(En,{children:o.jsx(k.Suspense,{fallback:null,children:o.jsx(kr,{providerId:i,promptId:n})})}),e[2]=n,e[3]=r):r=e[3],r}const _r=eo("relative w-full rounded-lg border px-4 py-3 text-sm flex items-start gap-3 [&>svg]:size-4 [&>svg]:flex-shrink-0 [&>svg]:mt-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-destructive/5 text-destructive border-destructive/25 [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-warning/10 text-warning-foreground border-warning [&>svg]:text-current *:data-[slot=alert-description]:text-warning-foreground/90",success:"bg-success/10 text-success-foreground border-success [&>svg]:text-current *:data-[slot=alert-description]:text-success-foreground/90",info:"bg-card text-card-foreground border-border [&>svg]:text-current *:data-[slot=alert-description]:text-muted-foreground/90"}},defaultVariants:{variant:"default"}});function Tr(t){const e=N.c(10);let n,s,i;e[0]!==t?({className:n,variant:i,...s}=t,e[0]=t,e[1]=n,e[2]=s,e[3]=i):(n=e[1],s=e[2],i=e[3]);let r;e[4]!==n||e[5]!==i?(r=A(_r({variant:i}),n),e[4]=n,e[5]=i,e[6]=r):r=e[6];let l;return e[7]!==s||e[8]!==r?(l=o.jsx("div",{"data-slot":"alert",role:"alert",className:r,...s}),e[7]=s,e[8]=r,e[9]=l):l=e[9],l}function $r(t){const e=N.c(8);let n,s;e[0]!==t?({className:n,...s}=t,e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let i;e[3]!==n?(i=A("line-clamp-1 min-h-4 font-medium tracking-tight",n),e[3]=n,e[4]=i):i=e[4];let r;return e[5]!==s||e[6]!==i?(r=o.jsx("div",{"data-slot":"alert-title",className:i,...s}),e[5]=s,e[6]=i,e[7]=r):r=e[7],r}function Er(t){const e=N.c(8);let n,s;e[0]!==t?({className:n,...s}=t,e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let i;e[3]!==n?(i=A("text-muted-foreground leading-relaxed",n),e[3]=n,e[4]=i):i=e[4];let r;return e[5]!==s||e[6]!==i?(r=o.jsx("div",{"data-slot":"alert-description",className:i,...s}),e[5]=s,e[6]=i,e[7]=r):r=e[7],r}const Or=t=>t.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Rr(t){const e=N.c(9),{toolName:n,connectionId:s,onBack:i}=t;let r;e[0]!==s?(r={connectionId:s},e[0]=s,e[1]=r):r=e[1];const l=ko(r);if(!l.isAuthenticated){let d;return e[2]!==l.supportsOAuth||e[3]!==i?(d=o.jsx("div",{className:"flex h-full items-center justify-center",children:l.supportsOAuth?o.jsx(Io,{onAuthenticate:()=>i(),buttonText:"Go back to authenticate"}):o.jsx(_o,{hasReadme:!1})}),e[2]=l.supportsOAuth,e[3]=i,e[4]=d):d=e[4],d}const c=`${s}:${n}`;let a;return e[5]!==s||e[6]!==c||e[7]!==n?(a=o.jsx(Ar,{toolName:n,connectionId:s},c),e[5]=s,e[6]=c,e[7]=n,e[8]=a):a=e[8],a}function Ar({toolName:t,connectionId:e}){const{replayId:n}=to({strict:!1}),s=(()=>{if(!n)return null;const T=`replay-${n}`,R=sessionStorage.getItem(T);if(!R)return null;sessionStorage.removeItem(T);try{return JSON.parse(R)}catch{return null}})(),i=(()=>{if(!s)return null;const T={};for(const[R,P]of Object.entries(s))P!==null&&typeof P=="object"?T[R]=JSON.stringify(P,null,2):T[R]=P;return T})(),[r,l]=k.useState(i??{}),[c,a]=k.useState(s?JSON.stringify(s,null,2):"{}"),[d,u]=k.useState(null),[f,m]=k.useState(null),[x,p]=k.useState(null),[h,g]=k.useState(null),[b,j]=k.useState(!1),[S,y]=k.useState(null),{org:v}=Q(),w=pt(e),{sendMessage:C,setAppContext:$,clearAppContext:_}=Ao(),[,O]=Po(),M=`${e}:${t}`,D=re({connectionId:e,orgId:v.id}),I=Yt({client:D}),E=I.data?.tools?.find(T=>T.name===t),z=So(E?._meta),H=T=>{const R=Oo(T.content);R.content.length>0&&(O(!0),C(R))},[G,U]=k.useState("json"),[V,Z]=k.useState(!1);z&&!V&&(U("ui"),Z(!0));const ie=E?.inputSchema?.properties,Y=ie?Object.keys(ie):[],W=Y.length>0,B={};if(W&&E?.inputSchema?.properties)for(const T of Y)B[T]=E.inputSchema.required?.includes(T)?"":void 0;const q=T=>Object.prototype.hasOwnProperty.call(r,T),ee=async()=>{j(!0),g(null),u(null),m(null),p(null),y(null);const T=performance.now();try{if(!D)throw new Error("MCP client is not available");const R=W?{...B,...r}:(()=>{const de=c.trim();if(!de)return{};const ue=JSON.parse(de);if(ue&&typeof ue=="object")return ue;throw new Error("Raw JSON input must be an object.")})();W&&E?.inputSchema?.properties&&Object.entries(E.inputSchema.properties).forEach(([de,ue])=>{if((ue.type==="object"||ue.type==="array")&&typeof R[de]=="string")try{R[de]=JSON.parse(R[de])}catch{}});const P=await D.callTool({name:t,arguments:R}),F=P.structuredContent??P,be=performance.now(),Ze=Math.round(be-T);u(F),m(P),p(R);const Ue=JSON.stringify(F),xe=new TextEncoder().encode(Ue).length;y({duration:`${Ze}ms`,bytes:`${xe} bytes`,tokens:`~${Math.ceil(xe/4)} tokens`,cost:"$0.0000"})}catch(R){const P=R instanceof Error?R.message:String(R);g(P||"Unknown error occurred");const F=performance.now();y({duration:`${Math.round(F-T)}ms`})}finally{j(!1)}},te=(T,R)=>{l(P=>({...P,[T]:R}))},le=()=>{u(null),m(null),p(null),g(null),y(null)},ce=E?.name??Or(t),se=o.jsx(qn,{children:o.jsxs(Kn,{children:[o.jsx(We,{children:o.jsx(ct,{asChild:!0,children:o.jsx(nt,{to:"/$org/$project/mcps",params:{org:v.slug,project:st},children:"Connections"})})}),o.jsx(at,{}),w&&o.jsxs(o.Fragment,{children:[o.jsx(We,{children:o.jsx(ct,{asChild:!0,children:o.jsx(nt,{to:"/$org/$project/mcps/$connectionId",params:{org:v.slug,project:st,connectionId:e},search:{tab:"tools"},children:w.title})})}),o.jsx(at,{})]}),o.jsx(We,{children:o.jsx(Jn,{children:ce})})]})});return o.jsx(ve,{breadcrumb:se,children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[30%_70%] h-full",children:[o.jsx("div",{className:"flex flex-col border-r border-border overflow-hidden",children:o.jsxs("div",{className:"flex-1 overflow-auto",children:[o.jsx("div",{className:"flex flex-col gap-4 p-6 border-b border-border min-h-28",children:o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(xt,{icon:w?.icon||null,name:w?.title||t,size:"sm",className:"shadow-sm shrink-0"}),o.jsx("h1",{className:"text-lg font-medium text-foreground leading-none",children:t}),o.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit",children:[I.isSuccess?o.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):I.isLoading?o.jsx(mt,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):o.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),o.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:I.isSuccess?"ready":I.isLoading?"connecting":"error"})]})]}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:E?.description||"No description available"})]})}),o.jsxs("div",{className:"flex flex-col p-6 gap-4",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),E?.inputSchema?.required&&E.inputSchema.required.length>0&&o.jsxs("span",{className:"text-xs text-muted-foreground",children:[o.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),o.jsx("div",{className:"space-y-4",children:W&&E?.inputSchema?.properties?Object.entries(E.inputSchema.properties).map(([T,R])=>o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[T,E.inputSchema?.required?.includes(T)&&o.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),o.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:R.type})]}),R.description&&o.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:R.description}),R.type==="object"||R.type==="array"?o.jsx(Dt,{className:"font-mono text-xs",value:q(T)?r[T]??"":B[T]??"",onChange:P=>te(T,P.target.value),placeholder:`Enter ${T} as JSON...`,rows:3}):R.type==="boolean"?o.jsxs(Hn,{value:q(T)?String(r[T]??""):"",onValueChange:P=>te(T,P==="true"),children:[o.jsx(Vn,{children:o.jsx(Un,{placeholder:"Select true or false..."})}),o.jsxs(Bn,{children:[o.jsx(ot,{value:"true",children:"true"}),o.jsx(ot,{value:"false",children:"false"})]})]}):o.jsx(Xt,{value:q(T)?r[T]??"":B[T]??"",onChange:P=>te(T,P.target.value),placeholder:`Enter ${T}...`})]},T)):E?.inputSchema&&!W?o.jsxs("div",{className:"space-y-2",children:[o.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),o.jsx(Dt,{className:"font-mono text-xs min-h-[120px]",value:c,onChange:T=>a(T.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):o.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:o.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})})]})]})}),o.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[o.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-t lg:border-t-0 border-b border-border bg-background",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),o.jsx(Ro,{annotations:E?.annotations,_meta:E?._meta})]}),S&&o.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(wo,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:S.duration})]}),S.tokens&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(is,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:S.tokens})]}),S.bytes&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(ds,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:S.bytes})]}),S.cost&&o.jsx("div",{className:"flex items-center gap-1.5",children:o.jsx("span",{className:"font-mono text-foreground",children:S.cost})})]})]}),o.jsxs("div",{className:"flex items-center justify-end lg:justify-between px-4 h-14 border-b border-border bg-background",children:[o.jsx("div",{className:"flex items-center gap-2 w-full lg:w-auto",children:b?o.jsxs(X,{size:"sm",variant:"destructive",className:"h-8 gap-2 flex-1 lg:flex-none",onClick:le,children:[o.jsx(ms,{className:"h-3.5 w-3.5"}),"Cancel"]}):o.jsxs(X,{size:"sm",variant:"default",className:"h-8 gap-2 flex-1 lg:flex-none",onClick:ee,children:[o.jsx(Zt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})}),z&&o.jsx(Qt,{children:o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsxs(rt,{children:[o.jsx(it,{asChild:!0,children:o.jsx(X,{size:"icon",variant:G==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>U("ui"),children:o.jsx(Co,{size:14})})}),o.jsx(lt,{children:"Interactive view"})]}),o.jsxs(rt,{children:[o.jsx(it,{asChild:!0,children:o.jsx(X,{size:"icon",variant:G==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>U("json"),children:o.jsx(bn,{size:14})})}),o.jsx(lt,{children:"JSON view"})]})]})})]}),h&&o.jsx("div",{className:"px-6 py-4 bg-background",children:o.jsx(Tr,{variant:"destructive",children:o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(yo,{className:"h-4 w-4"}),o.jsx($r,{className:"mb-0",children:"Execution Failed"})]}),o.jsx(Er,{className:"text-xs text-destructive",children:h})]})})}),o.jsx("div",{className:"relative flex-1 overflow-auto bg-muted/50",children:z&&G==="ui"&&D?o.jsx(k.Suspense,{fallback:o.jsx("div",{className:"flex items-center justify-center h-48",children:o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[o.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),o.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:o.jsx(vo,{resourceURI:z,toolInfo:E?{tool:E}:void 0,toolInput:x??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:gn.view.minHeight,maxHeight:gn.view.maxHeight,client:D,onMessage:H,onUpdateModelContext:T=>$(M,T),onTeardown:()=>_(M),className:"h-full"})}):d?o.jsxs(o.Fragment,{children:[o.jsx(Fe,{code:JSON.stringify(d,null,2),language:"json",height:"100%",readOnly:!0}),o.jsx(X,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(d,null,2)),On.success("Copied to clipboard")},children:o.jsx(No,{className:"h-3.5 w-3.5"})})]}):o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[o.jsx(bn,{className:"h-12 w-12 mb-3 opacity-40"}),o.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]})]})})}function Mr(t){const e=N.c(7),{itemId:n,onBack:s}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[0]=i):i=e[0];const l=ge(i).connectionId;if(!pt(l)||!l){let u;return e[1]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[o.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[1]=u):u=e[1],u}let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(mt,{size:32,className:"animate-spin text-muted-foreground"})}),e[2]=a):a=e[2];let d;return e[3]!==l||e[4]!==s||e[5]!==n?(d=o.jsx(k.Suspense,{fallback:a,children:o.jsx(Rr,{toolName:n,connectionId:l,onBack:s})}),e[3]=l,e[4]=s,e[5]=n,e[6]=d):d=e[6],d}const yn=t=>{let e;const n=new Set,s=(d,u)=>{const f=typeof d=="function"?d(e):d;if(!Object.is(f,e)){const m=e;e=u??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(x=>x(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:d=>(n.add(d),()=>n.delete(d))},a=e=t(s,i,c);return c},cn=(t=>t?yn(t):yn),Pr=t=>t;function zt(t,e=Pr){const n=J.useSyncExternalStore(t.subscribe,J.useCallback(()=>e(t.getState()),[t,e]),J.useCallback(()=>e(t.getInitialState()),[t,e]));return J.useDebugValue(n),n}const Lr=t=>{const e=cn(t),n=s=>zt(e,s);return Object.assign(n,e),n},Dr=(t=>Lr);function ps(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const Wt=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return Wt(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Wt(s)(n)}}}},zr=(t,e)=>(n,s,i)=>{let r={storage:ps(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,d=new Set;let u=r.storage;if(!u)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return u.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const x=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>x;let p;const h=()=>{var g,b;if(!u)return;const j=++c;l=!1,a.forEach(y=>{var v;return y((v=s())!=null?v:x)});const S=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:x))||void 0;return Wt(u.getItem.bind(u))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const v=r.migrate(y.state,y.version);return v instanceof Promise?v.then(w=>[!0,w]):[!0,v]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var v;if(j!==c)return;const[w,C]=y;if(p=r.merge(C,(v=s())!=null?v:x),n(p,!0),w)return f()}).then(()=>{j===c&&(S?.(p,void 0),p=s(),l=!0,d.forEach(y=>y(p)))}).catch(y=>{j===c&&S?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(d.add(g),()=>{d.delete(g)})},r.skipHydration||h(),p||x},xs=zr,{useSyncExternalStoreWithSelector:Wr}=no,Fr=t=>t;function Hr(t,e=Fr,n){const s=Wr(t.subscribe,t.getState,t.getInitialState,e,n);return J.useDebugValue(s),s}const wn=t=>Symbol.iterator in t,Nn=t=>"entries"in t,Cn=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},Vr=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function Ur(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:wn(t)&&wn(e)?Nn(t)&&Nn(e)?Cn(t,e):Vr(t,e):Cn({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Br(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
|
|
1
|
+
import{bi as oe,r as k,o as Zs,n as Tt,c as N,j as o,E as En,u as Q,t as Ys,y as A,_ as eo,g as ge,d as to,J as nt,O as st,B as X,w as On,bQ as J,co as no,cp as so,a$ as oo,a7 as Vt,a9 as fe,ab as Rn,b0 as ro,a6 as Ut,b1 as io,b2 as An,ac as Mn,b3 as lo,b4 as co,aa as Pn,b6 as ao,cq as Bt,cr as uo,a8 as fo,bc as mo,am as po,x as xo,cs as ho,ct as go,cu as Ln}from"./index-BXUNq6d7.js";import{E as Dn}from"./empty-state-v8jdj56V.js";import{d as qt,u as Kt}from"./use-collections-yY78nnLx.js";import{u as re,g as Ke,i as bo}from"./constants-CDL9XClm.js";import{F as $t,a as jo,b as Jt,d as Gt}from"./form-BV3tSlED.js";import{I as Xt}from"./input-BFH8rk50.js";import{T as Dt}from"./textarea-DPLd5P1K.js";import{V as zn,b as Wn,a as ve}from"./layout-B2GnF_Vp.js";import{S as Fn}from"./save-actions-Py9YKTe0.js";import{M as vo}from"./mcp-app-renderer-CNc9yMN5.js";import{g as So,M as gn}from"./types-DZ5M-eMJ.js";import{S as Hn,a as Vn,b as Un,c as Bn,d as ot}from"./select-B-f7jgVG.js";import{c as Qt,T as rt,a as it,b as lt}from"./tooltip-BGPUMzDS.js";import{i as yo}from"./AlertCircle-CnfwZdxb.js";import{s as wo}from"./Clock-9Mm0U0Dg.js";import{i as bn}from"./Code01-DDbKsccR.js";import{a as No}from"./Copy01-BexEalI-.js";import{s as Co}from"./LayersTwo01-Li6JqY2K.js";import{i as mt}from"./Loading01-Cbk1oNZ2.js";import{i as Zt}from"./Play-DqxAqUbl.js";import{B as qn,a as Kn,b as We,d as ct,e as at,c as Jn}from"./breadcrumb-Dk9kRV2t.js";import{u as ko,O as Io,M as _o,F as To,v as $o,n as Et}from"./index-zJEaoyYS.js";import{u as pt,b as Eo}from"./use-connection-lXrlfojY.js";import{d as Yt,b as en,a as tn}from"./use-mcp-tools-CwVNqTmj.js";import{c as Oo}from"./content-blocks-o63cs2vh.js";import{I as xt}from"./integration-icon-D6SJHU0f.js";import{T as Ro}from"./tools-list-BgmW-tI4.js";import{u as Ao,c as Mo}from"./context-DDV_uL9a.js";import{u as Po}from"./index-rWegviRE.js";import{M as Fe,n as Lo}from"./monaco-editor-VspAvYbk.js";import{E as nn}from"./empty-state-Bj_isc1T.js";import{n as Do}from"./Container-Ci_1Xm4L.js";import{b as Gn}from"./use-virtual-mcp-CyoGC0aH.js";import{b as zo,R as jn,a as Wo}from"./resizable-B4X_WbHf.js";import{B as he}from"./badge-B-_hRtCy.js";import{S as ht}from"./spinner-B1-EIDBS.js";import{V as Fo}from"./collection-display-button-CuyLh-NC.js";import{N as Ho,S as Vo,a as Uo,c as Bo,m as et,P as qo,i as Ko,R as Jo,u as Go,b as Xo,d as vn,E as Qo,e as Zo}from"./index-B70G5L15.js";import{a as Yo}from"./use-binding-CZ8osTa1.js";import{b as er,D as tr,a as nr,e as sr,c as or,d as rr}from"./dialog-DxTRqiug.js";import"./index-BE93ZIdg.js";import{s as Xn}from"./Plus-CqWob4tu.js";import{i as gt}from"./Check-7kB05ju_.js";import{i as ir}from"./DotsHorizontal-3xIvFzgk.js";import{a as lr}from"./Tool01-CUx5BAY-.js";import{s as sn}from"./XClose-BieEiV6P.js";import{D as cr,a as ar,b as dr,c as Sn}from"./dropdown-menu-CdjuOUR6.js";import{T as ur,R as fr,b as mr,c as Qn}from"./index-Dg_kVhT7.js";import{i as pr}from"./ChevronRight-Blv21S_7.js";import{a as xr,S as hr}from"./scroll-area-R7PT492V.js";import{i as Zn}from"./X-CeRZ6ROs.js";import"./useMutation-CkdHuTyE.js";import"./label-DE7vX487.js";import"./Save01-BfieBu6m.js";import"./use-mcp-resources-DhBJVSsg.js";import"./useQuery-Bmc4jnG2.js";import"./ChevronUp-J7upZD3-.js";import"./index-L6huQtcJ.js";import"./ChevronDown-DHeagNGb.js";import"./File06-Dqc-K1-5.js";import"./Key01-Dq5b7fdA.js";import"./constants-DxY-8FrK.js";import"./registry-utils-CaVl1vKg.js";import"./extract-connection-data-Cyjq-Q5I.js";import"./generate-id-Dyweu44Y.js";import"./use-install-from-registry-C24f0cqa.js";import"./index-CZ7yh8sQ.js";import"./index-DlhaGZnK.js";import"./select-virtual-mcp-YanYQUBn.js";import"./popover-BcyJids_.js";import"./SearchMd-DJI6OMcD.js";import"./Users03-FsZwQwZq.js";import"./use-create-virtual-mcp-DK_WDS9Y.js";import"./collection-search-aJlY7LHs.js";import"./collection-table-wrapper-CcbJTCba.js";import"./table-Bu98B5a-.js";import"./ArrowDown-BnnQhLmg.js";import"./ArrowUp-BuKX1RSZ.js";import"./card-BSGld6G2.js";import"./Eye-Cn6YseXl.js";import"./Globe02-CyGtzZ8k.js";import"./decopilot-events-Brt4gAR6.js";import"./Grid01-Dqz--q3o.js";import"./List-Cc_Ri6eQ.js";import"./binder-BEJ4wRzw.js";const Yn=oe("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const es=oe("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const on=oe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const rn=oe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const gr=oe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const br=oe("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const jr=oe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const ts=oe("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const ns=oe("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const ss=oe("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const vr=oe("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const os=oe("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const rs=oe("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]),ln=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M12 8v4m0 4h.01M2 8.523v6.954c0 .245 0 .367.028.482a1 1 0 0 0 .12.29c.061.1.148.187.32.36l4.923 4.922c.173.173.26.26.36.322.09.054.188.095.29.12.115.027.237.027.482.027h6.954c.245 0 .367 0 .482-.028a.998.998 0 0 0 .29-.12c.1-.061.187-.148.36-.32l4.922-4.923c.173-.173.26-.26.322-.36a.998.998 0 0 0 .12-.29c.027-.115.027-.237.027-.482V8.523c0-.245 0-.367-.028-.482a.998.998 0 0 0-.12-.29c-.061-.1-.148-.187-.32-.36L16.608 2.47c-.173-.173-.26-.26-.36-.322a1 1 0 0 0-.29-.12C15.844 2 15.722 2 15.477 2H8.523c-.245 0-.367 0-.482.028a1 1 0 0 0-.29.12c-.1.061-.187.148-.36.32L2.47 7.392c-.173.173-.26.26-.322.36a1 1 0 0 0-.12.29C2 8.156 2 8.278 2 8.523Z"}));ln.displayName="AlertOctagon";const is=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M20.5 8v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.22 21 17.38 21 15.7 21H8.3c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3.5 18.72 3.5 17.88 3.5 16.2V8m.1-5h16.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C22 3.76 22 4.04 22 4.6v1.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C21.24 8 20.96 8 20.4 8H3.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C2 7.24 2 6.96 2 6.4V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C2.76 3 3.04 3 3.6 3Zm6 8.5h4.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C16 12.26 16 12.54 16 13.1v.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437c-.214.109-.494.109-1.054.109H9.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C8 14.74 8 14.46 8 13.9v-.8c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C8.76 11.5 9.04 11.5 9.6 11.5Z"}));is.displayName="Box";const ls=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m22.7 11.5-2 2-2-2m2.245 1.5A9 9 0 1 0 19 17.657M12 7v5l3 2"}));ls.displayName="ClockFastForward";const cs=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m17 17 5-5-5-5M7 7l-5 5 5 5m7-14-4 18"}));cs.displayName="Code02";const as=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M4 4v1.4c0 3.36 0 5.04.654 6.324a6 6 0 0 0 2.622 2.622C8.56 15 10.24 15 13.6 15H20m0 0-5-5m5 5-5 5"}));as.displayName="CornerDownRight";const ds=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M21 5c0 1.657-4.03 3-9 3S3 6.657 3 5m18 0c0-1.657-4.03-3-9-3S3 3.343 3 5m18 0v14c0 1.66-4 3-9 3s-9-1.34-9-3V5m18 7c0 1.66-4 3-9 3s-9-1.34-9-3"}));ds.displayName="Database01";const us=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));us.displayName="GitBranch01";const fs=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"m13 22-3-3m0 0 3-3m-3 3h5a7 7 0 0 0 3-13.326M6 18.326A7 7 0 0 1 9 5h5m0 0-3-3m3 3-3 3"}));fs.displayName="Repeat03";const ms=({size:t=24,color:e="currentColor",...n})=>k.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},k.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}),k.createElement("path",{d:"M8 9.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C8.76 8 9.04 8 9.6 8h4.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C16 8.76 16 9.04 16 9.6v4.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C15.24 16 14.96 16 14.4 16H9.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C8 15.24 8 14.96 8 14.4V9.6Z"}));ms.displayName="StopCircle";Zs({title:Tt().min(1),description:Tt().nullable(),body:Tt()});function Ot(t){for(const e of t.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Sr(){const t=window.location.pathname.split("/").filter(Boolean),e=t.findIndex(s=>s==="mcps"),n=e>=0?t[e+1]:void 0;return n?decodeURIComponent(n):void 0}function yr(t){const e=N.c(13),{form:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=s):s=e[0];let i;e[1]!==n.control?(i=o.jsxs("div",{className:"flex flex-col gap-4",children:[s,o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[o.jsx($t,{control:n.control,name:"title",render:Cr}),o.jsx($t,{control:n.control,name:"description",render:Nr})]})]}),e[1]=n.control,e[2]=i):i=e[2];let r,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),l=o.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=r,e[4]=l):(r=e[3],l=e[4]);let c;e[5]!==n.control?(c=o.jsxs("div",{className:"flex flex-col gap-2",children:[r,l,o.jsx($t,{control:n.control,name:"body",render:wr})]}),e[5]=n.control,e[6]=c):c=e[6];let a;e[7]!==i||e[8]!==c?(a=o.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[i,c]}),e[7]=i,e[8]=c,e[9]=a):a=e[9];let d;return e[10]!==n||e[11]!==a?(d=o.jsx(jo,{...n,children:a}),e[10]=n,e[11]=a,e[12]=d):d=e[12],d}function wr(t){const{field:e}=t;return o.jsx(Jt,{children:o.jsx(Gt,{children:o.jsx(Dt,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function Nr(t){const{field:e}=t;return o.jsxs(Jt,{children:[o.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),o.jsx(Gt,{children:o.jsx(Xt,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Cr(t){const{field:e}=t;return o.jsxs(Jt,{children:[o.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),o.jsx(Gt,{children:o.jsx(Xt,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function kr(t){const e=N.c(35),{providerId:n,promptId:s}=t,{org:i}=Q(),r=n||null;let l;e[0]!==i.id||e[1]!==r?(l={connectionId:r,orgId:i.id},e[0]=i.id,e[1]=r,e[2]=l):l=e[2];const c=re(l),a=qt(n,"PROMPT",s,c),d=Kt(n,"PROMPT",c),u=d.update.isPending;let f;e[3]!==a?(f=a?{title:a.title,description:a.description??null,body:Ot(a)}:void 0,e[3]=a,e[4]=f):f=e[4];let m;e[5]!==f?(m={values:f},e[5]=f,e[6]=m):m=e[6];const x=Ys(m);let p;e[7]!==x||e[8]!==a?(p=()=>{a&&x.reset({title:a.title,description:a.description??null,body:Ot(a)})},e[7]=x,e[8]=a,e[9]=p):p=e[9];const h=p;let g;e[10]!==d.update||e[11]!==x||e[12]!==s?(g=x.handleSubmit(async _=>{const O=await d.update.mutateAsync({id:s,data:{title:_.title,description:_.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:_.body}}]}});x.reset({title:O.title,description:O.description??null,body:Ot(O)})}),e[10]=d.update,e[11]=x,e[12]=s,e[13]=g):g=e[13];const b=g;if(!a){let _;return e[14]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(Dn,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[14]=_):_=e[14],_}let j;e[15]!==a.title?(j=o.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:a.title}),e[15]=a.title,e[16]=j):j=e[16];let S;e[17]!==a.description?(S=a.description?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),o.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:a.description})]}):null,e[17]=a.description,e[18]=S):S=e[18];let y;e[19]!==j||e[20]!==S?(y=o.jsx(Wn,{children:o.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[j,S]})}),e[19]=j,e[20]=S,e[21]=y):y=e[21];let v;e[22]!==b?(v=()=>{b()},e[22]=b,e[23]=v):v=e[23];let w;e[24]!==x.formState.isDirty||e[25]!==u||e[26]!==h||e[27]!==v?(w=o.jsx(zn,{children:o.jsx(Fn,{onSave:v,onUndo:h,isDirty:x.formState.isDirty,isSaving:u})}),e[24]=x.formState.isDirty,e[25]=u,e[26]=h,e[27]=v,e[28]=w):w=e[28];let C;e[29]!==x?(C=o.jsx("div",{className:"h-full",children:o.jsx(yr,{form:x})}),e[29]=x,e[30]=C):C=e[30];let $;return e[31]!==w||e[32]!==C||e[33]!==y?($=o.jsxs(ve,{children:[y,w,C]}),e[31]=w,e[32]=C,e[33]=y,e[34]=$):$=e[34],$}function Ir(t){const e=N.c(4),{itemId:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=Sr(),e[0]=s):s=e[0];const i=s;if(!i){let l;return e[1]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(Dn,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=l):l=e[1],l}let r;return e[2]!==n?(r=o.jsx(En,{children:o.jsx(k.Suspense,{fallback:null,children:o.jsx(kr,{providerId:i,promptId:n})})}),e[2]=n,e[3]=r):r=e[3],r}const _r=eo("relative w-full rounded-lg border px-4 py-3 text-sm flex items-start gap-3 [&>svg]:size-4 [&>svg]:flex-shrink-0 [&>svg]:mt-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-destructive/5 text-destructive border-destructive/25 [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-warning/10 text-warning-foreground border-warning [&>svg]:text-current *:data-[slot=alert-description]:text-warning-foreground/90",success:"bg-success/10 text-success-foreground border-success [&>svg]:text-current *:data-[slot=alert-description]:text-success-foreground/90",info:"bg-card text-card-foreground border-border [&>svg]:text-current *:data-[slot=alert-description]:text-muted-foreground/90"}},defaultVariants:{variant:"default"}});function Tr(t){const e=N.c(10);let n,s,i;e[0]!==t?({className:n,variant:i,...s}=t,e[0]=t,e[1]=n,e[2]=s,e[3]=i):(n=e[1],s=e[2],i=e[3]);let r;e[4]!==n||e[5]!==i?(r=A(_r({variant:i}),n),e[4]=n,e[5]=i,e[6]=r):r=e[6];let l;return e[7]!==s||e[8]!==r?(l=o.jsx("div",{"data-slot":"alert",role:"alert",className:r,...s}),e[7]=s,e[8]=r,e[9]=l):l=e[9],l}function $r(t){const e=N.c(8);let n,s;e[0]!==t?({className:n,...s}=t,e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let i;e[3]!==n?(i=A("line-clamp-1 min-h-4 font-medium tracking-tight",n),e[3]=n,e[4]=i):i=e[4];let r;return e[5]!==s||e[6]!==i?(r=o.jsx("div",{"data-slot":"alert-title",className:i,...s}),e[5]=s,e[6]=i,e[7]=r):r=e[7],r}function Er(t){const e=N.c(8);let n,s;e[0]!==t?({className:n,...s}=t,e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]);let i;e[3]!==n?(i=A("text-muted-foreground leading-relaxed",n),e[3]=n,e[4]=i):i=e[4];let r;return e[5]!==s||e[6]!==i?(r=o.jsx("div",{"data-slot":"alert-description",className:i,...s}),e[5]=s,e[6]=i,e[7]=r):r=e[7],r}const Or=t=>t.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Rr(t){const e=N.c(9),{toolName:n,connectionId:s,onBack:i}=t;let r;e[0]!==s?(r={connectionId:s},e[0]=s,e[1]=r):r=e[1];const l=ko(r);if(!l.isAuthenticated){let d;return e[2]!==l.supportsOAuth||e[3]!==i?(d=o.jsx("div",{className:"flex h-full items-center justify-center",children:l.supportsOAuth?o.jsx(Io,{onAuthenticate:()=>i(),buttonText:"Go back to authenticate"}):o.jsx(_o,{hasReadme:!1})}),e[2]=l.supportsOAuth,e[3]=i,e[4]=d):d=e[4],d}const c=`${s}:${n}`;let a;return e[5]!==s||e[6]!==c||e[7]!==n?(a=o.jsx(Ar,{toolName:n,connectionId:s},c),e[5]=s,e[6]=c,e[7]=n,e[8]=a):a=e[8],a}function Ar({toolName:t,connectionId:e}){const{replayId:n}=to({strict:!1}),s=(()=>{if(!n)return null;const T=`replay-${n}`,R=sessionStorage.getItem(T);if(!R)return null;sessionStorage.removeItem(T);try{return JSON.parse(R)}catch{return null}})(),i=(()=>{if(!s)return null;const T={};for(const[R,P]of Object.entries(s))P!==null&&typeof P=="object"?T[R]=JSON.stringify(P,null,2):T[R]=P;return T})(),[r,l]=k.useState(i??{}),[c,a]=k.useState(s?JSON.stringify(s,null,2):"{}"),[d,u]=k.useState(null),[f,m]=k.useState(null),[x,p]=k.useState(null),[h,g]=k.useState(null),[b,j]=k.useState(!1),[S,y]=k.useState(null),{org:v}=Q(),w=pt(e),{sendMessage:C,setAppContext:$,clearAppContext:_}=Ao(),[,O]=Po(),M=`${e}:${t}`,D=re({connectionId:e,orgId:v.id}),I=Yt({client:D}),E=I.data?.tools?.find(T=>T.name===t),z=So(E?._meta),H=T=>{const R=Oo(T.content);R.content.length>0&&(O(!0),C(R))},[G,U]=k.useState("json"),[V,Z]=k.useState(!1);z&&!V&&(U("ui"),Z(!0));const ie=E?.inputSchema?.properties,Y=ie?Object.keys(ie):[],W=Y.length>0,B={};if(W&&E?.inputSchema?.properties)for(const T of Y)B[T]=E.inputSchema.required?.includes(T)?"":void 0;const q=T=>Object.prototype.hasOwnProperty.call(r,T),ee=async()=>{j(!0),g(null),u(null),m(null),p(null),y(null);const T=performance.now();try{if(!D)throw new Error("MCP client is not available");const R=W?{...B,...r}:(()=>{const de=c.trim();if(!de)return{};const ue=JSON.parse(de);if(ue&&typeof ue=="object")return ue;throw new Error("Raw JSON input must be an object.")})();W&&E?.inputSchema?.properties&&Object.entries(E.inputSchema.properties).forEach(([de,ue])=>{if((ue.type==="object"||ue.type==="array")&&typeof R[de]=="string")try{R[de]=JSON.parse(R[de])}catch{}});const P=await D.callTool({name:t,arguments:R}),F=P.structuredContent??P,be=performance.now(),Ze=Math.round(be-T);u(F),m(P),p(R);const Ue=JSON.stringify(F),xe=new TextEncoder().encode(Ue).length;y({duration:`${Ze}ms`,bytes:`${xe} bytes`,tokens:`~${Math.ceil(xe/4)} tokens`,cost:"$0.0000"})}catch(R){const P=R instanceof Error?R.message:String(R);g(P||"Unknown error occurred");const F=performance.now();y({duration:`${Math.round(F-T)}ms`})}finally{j(!1)}},te=(T,R)=>{l(P=>({...P,[T]:R}))},le=()=>{u(null),m(null),p(null),g(null),y(null)},ce=E?.name??Or(t),se=o.jsx(qn,{children:o.jsxs(Kn,{children:[o.jsx(We,{children:o.jsx(ct,{asChild:!0,children:o.jsx(nt,{to:"/$org/$project/mcps",params:{org:v.slug,project:st},children:"Connections"})})}),o.jsx(at,{}),w&&o.jsxs(o.Fragment,{children:[o.jsx(We,{children:o.jsx(ct,{asChild:!0,children:o.jsx(nt,{to:"/$org/$project/mcps/$connectionId",params:{org:v.slug,project:st,connectionId:e},search:{tab:"tools"},children:w.title})})}),o.jsx(at,{})]}),o.jsx(We,{children:o.jsx(Jn,{children:ce})})]})});return o.jsx(ve,{breadcrumb:se,children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[30%_70%] h-full",children:[o.jsx("div",{className:"flex flex-col border-r border-border overflow-hidden",children:o.jsxs("div",{className:"flex-1 overflow-auto",children:[o.jsx("div",{className:"flex flex-col gap-4 p-6 border-b border-border min-h-28",children:o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(xt,{icon:w?.icon||null,name:w?.title||t,size:"sm",className:"shadow-sm shrink-0"}),o.jsx("h1",{className:"text-lg font-medium text-foreground leading-none",children:t}),o.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit",children:[I.isSuccess?o.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):I.isLoading?o.jsx(mt,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):o.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),o.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:I.isSuccess?"ready":I.isLoading?"connecting":"error"})]})]}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:E?.description||"No description available"})]})}),o.jsxs("div",{className:"flex flex-col p-6 gap-4",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),E?.inputSchema?.required&&E.inputSchema.required.length>0&&o.jsxs("span",{className:"text-xs text-muted-foreground",children:[o.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),o.jsx("div",{className:"space-y-4",children:W&&E?.inputSchema?.properties?Object.entries(E.inputSchema.properties).map(([T,R])=>o.jsxs("div",{className:"space-y-2",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[T,E.inputSchema?.required?.includes(T)&&o.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),o.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:R.type})]}),R.description&&o.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:R.description}),R.type==="object"||R.type==="array"?o.jsx(Dt,{className:"font-mono text-xs",value:q(T)?r[T]??"":B[T]??"",onChange:P=>te(T,P.target.value),placeholder:`Enter ${T} as JSON...`,rows:3}):R.type==="boolean"?o.jsxs(Hn,{value:q(T)?String(r[T]??""):"",onValueChange:P=>te(T,P==="true"),children:[o.jsx(Vn,{children:o.jsx(Un,{placeholder:"Select true or false..."})}),o.jsxs(Bn,{children:[o.jsx(ot,{value:"true",children:"true"}),o.jsx(ot,{value:"false",children:"false"})]})]}):o.jsx(Xt,{value:q(T)?r[T]??"":B[T]??"",onChange:P=>te(T,P.target.value),placeholder:`Enter ${T}...`})]},T)):E?.inputSchema&&!W?o.jsxs("div",{className:"space-y-2",children:[o.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),o.jsx(Dt,{className:"font-mono text-xs min-h-[120px]",value:c,onChange:T=>a(T.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):o.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:o.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})})]})]})}),o.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[o.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-t lg:border-t-0 border-b border-border bg-background",children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),o.jsx(Ro,{annotations:E?.annotations,_meta:E?._meta})]}),S&&o.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(wo,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:S.duration})]}),S.tokens&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(is,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:S.tokens})]}),S.bytes&&o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx(ds,{className:"h-3 w-3 text-muted-foreground"}),o.jsx("span",{className:"font-mono text-foreground",children:S.bytes})]}),S.cost&&o.jsx("div",{className:"flex items-center gap-1.5",children:o.jsx("span",{className:"font-mono text-foreground",children:S.cost})})]})]}),o.jsxs("div",{className:"flex items-center justify-end lg:justify-between px-4 h-14 border-b border-border bg-background",children:[o.jsx("div",{className:"flex items-center gap-2 w-full lg:w-auto",children:b?o.jsxs(X,{size:"sm",variant:"destructive",className:"h-8 gap-2 flex-1 lg:flex-none",onClick:le,children:[o.jsx(ms,{className:"h-3.5 w-3.5"}),"Cancel"]}):o.jsxs(X,{size:"sm",variant:"default",className:"h-8 gap-2 flex-1 lg:flex-none",onClick:ee,children:[o.jsx(Zt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})}),z&&o.jsx(Qt,{children:o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsxs(rt,{children:[o.jsx(it,{asChild:!0,children:o.jsx(X,{size:"icon",variant:G==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>U("ui"),children:o.jsx(Co,{size:14})})}),o.jsx(lt,{children:"Interactive view"})]}),o.jsxs(rt,{children:[o.jsx(it,{asChild:!0,children:o.jsx(X,{size:"icon",variant:G==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>U("json"),children:o.jsx(bn,{size:14})})}),o.jsx(lt,{children:"JSON view"})]})]})})]}),h&&o.jsx("div",{className:"px-6 py-4 bg-background",children:o.jsx(Tr,{variant:"destructive",children:o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(yo,{className:"h-4 w-4"}),o.jsx($r,{className:"mb-0",children:"Execution Failed"})]}),o.jsx(Er,{className:"text-xs text-destructive",children:h})]})})}),o.jsx("div",{className:"relative flex-1 overflow-auto bg-muted/50",children:z&&G==="ui"&&D?o.jsx(k.Suspense,{fallback:o.jsx("div",{className:"flex items-center justify-center h-48",children:o.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[o.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),o.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:o.jsx(vo,{resourceURI:z,toolInfo:E?{tool:E}:void 0,toolInput:x??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:gn.view.minHeight,maxHeight:gn.view.maxHeight,client:D,onMessage:H,onUpdateModelContext:T=>$(M,T),onTeardown:()=>_(M),className:"h-full"})}):d?o.jsxs(o.Fragment,{children:[o.jsx(Fe,{code:JSON.stringify(d,null,2),language:"json",height:"100%",readOnly:!0}),o.jsx(X,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(d,null,2)),On.success("Copied to clipboard")},children:o.jsx(No,{className:"h-3.5 w-3.5"})})]}):o.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[o.jsx(bn,{className:"h-12 w-12 mb-3 opacity-40"}),o.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]})]})})}function Mr(t){const e=N.c(7),{itemId:n,onBack:s}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[0]=i):i=e[0];const l=ge(i).connectionId;if(!pt(l)||!l){let u;return e[1]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[o.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[1]=u):u=e[1],u}let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(mt,{size:32,className:"animate-spin text-muted-foreground"})}),e[2]=a):a=e[2];let d;return e[3]!==l||e[4]!==s||e[5]!==n?(d=o.jsx(k.Suspense,{fallback:a,children:o.jsx(Rr,{toolName:n,connectionId:l,onBack:s})}),e[3]=l,e[4]=s,e[5]=n,e[6]=d):d=e[6],d}const yn=t=>{let e;const n=new Set,s=(d,u)=>{const f=typeof d=="function"?d(e):d;if(!Object.is(f,e)){const m=e;e=u??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(x=>x(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:d=>(n.add(d),()=>n.delete(d))},a=e=t(s,i,c);return c},cn=(t=>t?yn(t):yn),Pr=t=>t;function zt(t,e=Pr){const n=J.useSyncExternalStore(t.subscribe,J.useCallback(()=>e(t.getState()),[t,e]),J.useCallback(()=>e(t.getInitialState()),[t,e]));return J.useDebugValue(n),n}const Lr=t=>{const e=cn(t),n=s=>zt(e,s);return Object.assign(n,e),n},Dr=(t=>Lr);function ps(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const Wt=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return Wt(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Wt(s)(n)}}}},zr=(t,e)=>(n,s,i)=>{let r={storage:ps(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,d=new Set;let u=r.storage;if(!u)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return u.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const x=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>x;let p;const h=()=>{var g,b;if(!u)return;const j=++c;l=!1,a.forEach(y=>{var v;return y((v=s())!=null?v:x)});const S=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:x))||void 0;return Wt(u.getItem.bind(u))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const v=r.migrate(y.state,y.version);return v instanceof Promise?v.then(w=>[!0,w]):[!0,v]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var v;if(j!==c)return;const[w,C]=y;if(p=r.merge(C,(v=s())!=null?v:x),n(p,!0),w)return f()}).then(()=>{j===c&&(S?.(p,void 0),p=s(),l=!0,d.forEach(y=>y(p)))}).catch(y=>{j===c&&S?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(d.add(g),()=>{d.delete(g)})},r.skipHydration||h(),p||x},xs=zr,{useSyncExternalStoreWithSelector:Wr}=no,Fr=t=>t;function Hr(t,e=Fr,n){const s=Wr(t.subscribe,t.getState,t.getInitialState,e,n);return J.useDebugValue(s),s}const wn=t=>Symbol.iterator in t,Nn=t=>"entries"in t,Cn=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},Vr=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function Ur(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:wn(t)&&wn(e)?Nn(t)&&Nn(e)?Cn(t,e):Vr(t,e):Cn({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Br(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
|
|
2
2
|
${Object.entries(l).map(([d,u])=>{const f=c.has(d)?"":"?";return`${u.description?` /** ${u.description} */
|
|
3
3
|
`:""} ${d}${f}: ${n(u)};`}).join(`
|
|
4
4
|
`)}
|
|
@@ -23,4 +23,4 @@ export default async function(input: Input): Promise<Output> {
|
|
|
23
23
|
return {
|
|
24
24
|
result: input,
|
|
25
25
|
};
|
|
26
|
-
}`;s(n.name,{action:{...n.action,transformCode:_}}),l(xc)},e[2]=m,e[3]=n.action,e[4]=n.name,e[5]=s,e[6]=x):x=e[6];const p=x;let h;e[7]!==n.action||e[8]!==n.name||e[9]!==s?(h=($,_)=>{s(n.name,{action:{...n.action,transformCode:$},..._?{outputSchema:_}:{}})},e[7]=n.action,e[8]=n.name,e[9]=s,e[10]=h):h=e[10];const g=h;if("code"in n.action&&n.action.code)return null;const b=r?"flex-1 min-h-0 overflow-hidden":"shrink-0";let j;e[11]!==b?(j=A("flex flex-col flex-1 min-h-0 overflow-hidden border-b border-border",b),e[11]=b,e[12]=j):j=e[12];let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Transform Code"}),e[13]=S):S=e[13];let y;e[14]!==r?(y=o.jsxs("div",{className:"flex items-center justify-between",children:[S,r?o.jsx(rn,{size:14,className:"text-muted-foreground"}):o.jsx(on,{size:14,className:"text-muted-foreground"})]}),e[14]=r,e[15]=y):y=e[15];let v;e[16]!==y||e[17]!==p?(v=o.jsx("div",{className:"p-5 shrink-0 cursor-pointer hover:bg-accent/50 transition-colors",onClick:p,children:y}),e[16]=y,e[17]=p,e[18]=v):v=e[18];let w;e[19]!==g||e[20]!==r||e[21]!==n.name||e[22]!==i||e[23]!==u?(w=r&&o.jsx("div",{className:"flex-1 min-h-0",children:o.jsx(Fe,{code:u,language:"typescript",readOnly:i!==void 0,onSave:g,height:"100%"},`transform-code-${n.name}-${i}`)}),e[19]=g,e[20]=r,e[21]=n.name,e[22]=i,e[23]=u,e[24]=w):w=e[24];let C;return e[25]!==j||e[26]!==v||e[27]!==w?(C=o.jsxs("div",{className:j,children:[v,w]}),e[25]=j,e[26]=v,e[27]=w,e[28]=C):C=e[28],C}function xc(t){return!t}function hc(t){return!t}function gc(t){const e=N.c(24),{step:n}=t,[s,i]=k.useState(!1),{updateStep:r}=ne(),l="code"in n.action&&n.action.code?n.action.code:null,c=K();let a;e[0]!==n.action||e[1]!==n.name||e[2]!==r?(a=(j,S)=>{r(n.name,{action:{...n.action,code:j},...S?{outputSchema:S}:{}})},e[0]=n.action,e[1]=n.name,e[2]=r,e[3]=a):a=e[3];const d=a;if(!l)return null;const u=s?"flex-1 min-h-0 overflow-hidden":"shrink-0";let f;e[4]!==u?(f=A("flex flex-col border-b border-border",u),e[4]=u,e[5]=f):f=e[5];let m;e[6]!==s?(m=()=>i(!s),e[6]=s,e[7]=m):m=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Step Code"}),e[8]=x):x=e[8];let p;e[9]!==s?(p=o.jsxs("div",{className:"flex items-center justify-between",children:[x,s?o.jsx(rn,{size:14,className:"text-muted-foreground"}):o.jsx(on,{size:14,className:"text-muted-foreground"})]}),e[9]=s,e[10]=p):p=e[10];let h;e[11]!==m||e[12]!==p?(h=o.jsx("div",{className:"p-5 shrink-0 cursor-pointer hover:bg-accent/50 transition-colors",onClick:m,children:p}),e[11]=m,e[12]=p,e[13]=h):h=e[13];let g;e[14]!==l||e[15]!==d||e[16]!==s||e[17]!==n.name||e[18]!==c?(g=s&&o.jsx("div",{className:"flex-1 min-h-0",children:o.jsx(Fe,{onSave:(j,S)=>d(j,S),code:l,language:"typescript",height:"100%",readOnly:c!==void 0},`step-code-${n.name}-${c}`)}),e[14]=l,e[15]=d,e[16]=s,e[17]=n.name,e[18]=c,e[19]=g):g=e[19];let b;return e[20]!==f||e[21]!==h||e[22]!==g?(b=o.jsxs("div",{className:f,children:[h,g]}),e[20]=f,e[21]=h,e[22]=g,e[23]=b):b=e[23],b}function tt(t){if(Array.isArray(t.type))return t.type.map(n=>tt({...t,type:n})).join(" | ");switch(t.type){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"array":return t.items?`${tt(t.items)}[]`:"unknown[]";case"object":return t.properties?`{ ${Object.entries(t.properties).map(([s,i])=>{const r=tt(i),l=!t.required?.includes(s);return`${s}${l?"?":""}: ${r}`}).join("; ")} }`:"Record<string, unknown>";case"null":return"null";default:return"unknown"}}function bc(t){switch(t){case"success":return o.jsxs(he,{variant:"success",className:"gap-1",children:[o.jsx(gt,{size:11}),"Success"]});case"error":case"failed":return o.jsxs(he,{variant:"destructive",className:"gap-1",children:[o.jsx(ln,{size:11}),"Error"]});case"running":return o.jsxs(he,{variant:"secondary",className:"gap-1",children:[o.jsx(Et,{size:11}),"Running"]});case"enqueued":return o.jsxs(he,{variant:"secondary",className:"gap-1",children:[o.jsx(Et,{size:11}),"On hold"]});case"cancelled":return o.jsxs(he,{variant:"secondary",className:"gap-1",children:[o.jsx(Zn,{size:11}),"Cancelled"]});default:return o.jsxs(he,{variant:"secondary",className:"gap-1",children:[o.jsx(Et,{size:11}),t]})}}function jc(t){return`Run #${t.slice(-4).toUpperCase()}`}function vc(t){const e=N.c(21),{className:n}=t,{executions:s,isLoading:i}=ri(),{setShowExecutionsList:r}=an(),{setTrackingExecutionId:l}=ne(),c=K();let a;e[0]!==l?(a=S=>{l(S)},e[0]=l,e[1]=a):a=e[1];const d=a;let u;e[2]!==r?(u=()=>{r(!1)},e[2]=r,e[3]=u):u=e[3];const f=u;let m;e[4]!==n?(m=A("flex flex-col h-full bg-sidebar border-l border-border",n),e[4]=n,e[5]=m):m=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx("p",{className:"flex-1 text-base font-medium text-foreground",children:"Runs"}),e[6]=x):x=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(Zn,{size:11}),e[7]=p):p=e[7];let h;e[8]!==f?(h=o.jsxs("div",{className:"flex items-center h-12 px-5 border-b border-border shrink-0",children:[x,o.jsx(X,{variant:"ghost",size:"icon",className:"size-7",onClick:f,children:p})]}),e[8]=f,e[9]=h):h=e[9];let g;e[10]!==s||e[11]!==d||e[12]!==i||e[13]!==c?(g=i?o.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground",children:"Loading executions..."}):s.map((S,y)=>o.jsx(Sc,{execution:S,isSelected:S.id===c,isFirst:y===0,onSelect:()=>d(S.id)},S.id)),e[10]=s,e[11]=d,e[12]=i,e[13]=c,e[14]=g):g=e[14];let b;e[15]!==g?(b=o.jsx("div",{className:"flex-1 overflow-auto",children:g}),e[15]=g,e[16]=b):b=e[16];let j;return e[17]!==m||e[18]!==h||e[19]!==b?(j=o.jsxs("div",{className:m,children:[h,b]}),e[17]=m,e[18]=h,e[19]=b,e[20]=j):j=e[20],j}function Sc(t){const e=N.c(17),{execution:n,isSelected:s,isFirst:i,onSelect:r}=t,l=s&&"bg-accent/50",c=i&&s&&"bg-accent/50",a=!s&&"hover:bg-accent/30";let d;e[0]!==l||e[1]!==c||e[2]!==a?(d=A("flex flex-col justify-center h-[60px] px-4 border-b border-border cursor-pointer transition-colors",l,c,a),e[0]=l,e[1]=c,e[2]=a,e[3]=d):d=e[3];let u;e[4]!==n.status?(u=bc(n.status),e[4]=n.status,e[5]=u):u=e[5];let f;e[6]!==n.id?(f=jc(n.id),e[6]=n.id,e[7]=f):f=e[7];let m;e[8]!==f?(m=o.jsx("p",{className:"flex-1 text-base font-medium text-foreground",children:f}),e[8]=f,e[9]=m):m=e[9];let x;e[10]!==u||e[11]!==m?(x=o.jsxs("div",{className:"flex items-center gap-2 w-full",children:[u,m]}),e[10]=u,e[11]=m,e[12]=x):x=e[12];let p;return e[13]!==r||e[14]!==d||e[15]!==x?(p=o.jsx("div",{className:d,onClick:r,children:x}),e[13]=r,e[14]=d,e[15]=x,e[16]=p):p=e[16],p}const yc=["workflow.execution.created","workflow.execution.resumed","workflow.step.execute","workflow.step.completed"],wc=Mo({buildUrl:t=>`/org/${t}/watch?types=workflow.*`,eventTypes:yc}),Nc=["COLLECTION_WORKFLOW_EXECUTION_LIST","COLLECTION_WORKFLOW_EXECUTION_GET","COLLECTION_WORKFLOW_EXECUTION_GET_STEP_RESULT"],Cc=500,qe=new Map,Be=new Map;function kc(t){const e=Be.get(t);if(e)for(const n of e)n.invalidateQueries({predicate:s=>s.queryKey.some(i=>typeof i=="string"&&Nc.includes(i))})}function Ic(t){qe.has(t)||qe.set(t,setTimeout(()=>{qe.delete(t),kc(t)},Cc))}const $n=()=>0;function _c(){const t=N.c(3),{org:e}=Q(),n=xo(),s=e.id;let i;t[0]!==s||t[1]!==n?(i=l=>{let c=Be.get(s);c||(c=new Set,Be.set(s,c)),c.add(n);const a=()=>{Ic(s),l()},d=wc.subscribe(s,a);return()=>{d(),c.delete(n),c.size===0&&Be.delete(s);const u=qe.get(s);u&&!Be.has(s)&&(clearTimeout(u),qe.delete(s))}},t[0]=s,t[1]=n,t[2]=i):i=t[2];const r=i;k.useSyncExternalStore(r,$n,$n)}function qs(t){const e=N.c(11),{itemId:n}=t,[s,i]=k.useState(!1);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},e[0]=r):r=e[0];const{connectionId:l}=ge(r),c=l??"no-connection",{org:a}=Q(),d=l??null;let u;e[1]!==a.id||e[2]!==d?(u={connectionId:d,orgId:a.id},e[1]=a.id,e[2]=d,e[3]=u):u=e[3];const f=re(u),m=qt(c,"WORKFLOW",n,f),x=Kt(c,"WORKFLOW",f);let p;e[4]!==x||e[5]!==n?(p=async b=>{i(!0),await x.update.mutateAsync({id:n,data:b}).finally(()=>{i(!1)})},e[4]=x,e[5]=n,e[6]=p):p=e[6];const h=p;let g;return e[7]!==s||e[8]!==m||e[9]!==h?(g={item:m,update:h,isUpdating:s},e[7]=s,e[8]=m,e[9]=h,e[10]=g):g=e[10],g}function Tc(t){const e=N.c(18),{workflow:n,onUpdate:s}=t,{setWorkflow:i}=ne();let r,l,c,a;if(e[0]!==n.description||e[1]!==n.id||e[2]!==n.steps||e[3]!==n.title){const f={title:n.title,description:n.description,steps:n.steps};r=Fe,l=`workflow-${n.id}`,c="100%",a=JSON.stringify(f,null,2),e[0]=n.description,e[1]=n.id,e[2]=n.steps,e[3]=n.title,e[4]=r,e[5]=l,e[6]=c,e[7]=a}else r=e[4],l=e[5],c=e[6],a=e[7];let d;e[8]!==s||e[9]!==i||e[10]!==n?(d=f=>{const m=JSON.parse(f);i({...n,...m}),s(m)},e[8]=s,e[9]=i,e[10]=n,e[11]=d):d=e[11];let u;return e[12]!==r||e[13]!==l||e[14]!==c||e[15]!==a||e[16]!==d?(u=o.jsx(r,{height:c,code:a,language:"json",onSave:d},l),e[12]=r,e[13]=l,e[14]=c,e[15]=a,e[16]=d,e[17]=u):u=e[17],u}function $c(){const t=N.c(9),e=K(),{item:n}=pe(e),s=n?.start_at_epoch_ms,i=n?.completed_at_epoch_ms,r=n?.status==="running"&&s&&!i;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=Date.now(),t[0]=l):l=t[0];const c=k.useRef(l);let a;t[1]!==r?(a=h=>{if(!r)return Ec;const g=setInterval(()=>{c.current=Date.now(),h()},50);return()=>clearInterval(g)},t[1]=r,t[2]=a):a=t[2];const d=a;let u;t[3]!==r?(u=()=>r?c.current:0,t[3]=r,t[4]=u):u=t[4];const f=u,m=k.useSyncExternalStore(d,f,f),x=i&&s?Math.max(0,i-s):null;let p=null;if(s){let h;t[5]!==s?(h=new Date(s).getTime(),t[5]=s,t[6]=h):h=t[6];const g=h;if(i){let b;t[7]!==i?(b=new Date(i).getTime(),t[7]=i,t[8]=b):b=t[8],p=Math.max(0,b-g)}else r&&(p=Math.max(0,m-g))}return p??x}function Ec(){}function Oc(t){if(t<1e3)return`${t}ms`;const e=t/1e3,n=e%60,s=Math.floor(e/60),i=s%60,r=Math.floor(s/60);return r>0?`${r}h ${i}m ${n.toFixed(3)}s`:i>0?`${i}m ${n.toFixed(3)}s`:`${n.toFixed(3)}s`}function Rc(){const t=N.c(26),{setTrackingExecutionId:e}=ne(),n=K(),{item:s}=pe(n),i=$c();let r;t[0]!==i?(r=i!=null?Oc(i):null,t[0]=i,t[1]=r):r=t[1];const l=r,c=s?.status,a=c==="error"||c==="failed",d=c==="success";let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx("div",{className:"flex items-center justify-center h-full w-12",children:o.jsx(ho,{className:"w-4 h-4 text-muted-foreground"})}),t[2]=u):u=t[2];let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx("strong",{className:"text-base text-foreground",children:"Run"}),t[3]=f):f=t[3];let m;t[4]!==n?(m=o.jsxs("p",{className:"flex gap-3 items-center h-full",children:[f,o.jsxs("span",{className:"text-sm text-muted-foreground",children:["#",n]})]}),t[4]=n,t[5]=m):m=t[5];let x;t[6]!==d?(x=d&&o.jsxs(he,{variant:"success",className:"gap-1 ml-3",children:[o.jsx(go,{size:11}),"Success"]}),t[6]=d,t[7]=x):x=t[7];let p;t[8]!==a?(p=a&&o.jsxs(he,{variant:"destructive",className:"gap-1 ml-3",children:[o.jsx(vr,{size:11}),"Failed"]}),t[8]=a,t[9]=p):p=t[9];let h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsx(gr,{className:"w-4 h-4 text-muted-foreground"}),t[10]=h):h=t[10];let g;t[11]!==l?(g=o.jsxs("div",{className:"flex items-center gap-1 ml-6",children:[h,o.jsx("span",{className:"text-sm text-muted-foreground",children:l})]}),t[11]=l,t[12]=g):g=t[12];let b;t[13]!==m||t[14]!==x||t[15]!==p||t[16]!==g?(b=o.jsxs("div",{className:"flex items-center h-full",children:[u,m,x,p,g]}),t[13]=m,t[14]=x,t[15]=p,t[16]=g,t[17]=b):b=t[17];let j;t[18]!==e?(j=()=>e(void 0),t[18]=e,t[19]=j):j=t[19];let S;t[20]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(Bt,{className:"w-4 h-4 text-muted-foreground"}),t[20]=S):S=t[20];let y;t[21]!==j?(y=o.jsx(X,{variant:"ghost",size:"xs",onClick:j,children:S}),t[21]=j,t[22]=y):y=t[22];let v;return t[23]!==y||t[24]!==b?(v=o.jsx("div",{className:"flex flex-col border-b border-border",children:o.jsxs("div",{className:"h-10 bg-accent flex items-center justify-between",children:[b,y]})}),t[23]=y,t[24]=b,t[25]=v):v=t[25],v}function Ac(){const t=N.c(15);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},t[0]=e):e=t[0];const{itemId:n}=ge(e);let s;t[1]!==n?(s={itemId:n},t[1]=n,t[2]=s):s=t[2];const{item:i,update:r,isUpdating:l}=qs(s);let c;t[3]!==i?(c=JSON.stringify(i),t[3]=i,t[4]=c):c=t[4];const a=c;if(!i){let m;return t[5]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(ve,{children:o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(nn,{icon:o.jsx(ns,{className:"w-10 h-10 text-muted-foreground"}),title:"Workflow not found",description:"This workflow may have been deleted or you may not have access to it."})})}),t[5]=m):m=t[5],m}let d;t[6]!==i?(d={workflow:i,trackingExecutionId:void 0,currentStepTab:"input"},t[6]=i,t[7]=d):d=t[7];let u;t[8]!==l||t[9]!==r?(u=o.jsx(Mc,{onUpdate:r,isUpdating:l}),t[8]=l,t[9]=r,t[10]=u):u=t[10];let f;return t[11]!==a||t[12]!==d||t[13]!==u?(f=o.jsx(Jr,{initialState:d,children:u},a),t[11]=a,t[12]=d,t[13]=u,t[14]=f):f=t[14],f}function Mc(t){const e=N.c(21),{onUpdate:n,isUpdating:s}=t;_c();const i=He(),r=K(),{viewMode:l,showExecutionsList:c}=an(),a=Ge();let d;e[0]!==n||e[1]!==i?(d=async()=>{await n(i)},e[0]=n,e[1]=i,e[2]=d):d=e[2];const u=d,f=a&&"toolName"in a.action,m=f?a.action.toolName:null,x=f&&!m&&!r,p=!x&&(a||r||!c);let h;e[3]!==u||e[4]!==s||e[5]!==i.description||e[6]!==i.title?(h=o.jsx(ul,{title:i.title,description:i.description,onSave:u,isSaving:s}),e[3]=u,e[4]=s,e[5]=i.description,e[6]=i.title,e[7]=h):h=e[7];let g;e[8]!==r?(g=r&&o.jsx(Rc,{}),e[8]=r,e[9]=g):g=e[9];let b;e[10]!==n||e[11]!==c||e[12]!==p||e[13]!==x||e[14]!==l||e[15]!==i?(b=o.jsx("div",{className:"flex-1 overflow-hidden",children:l==="code"?o.jsx(Tc,{workflow:i,onUpdate:n}):o.jsxs(zo,{direction:"horizontal",className:"flex w-full h-full",children:[o.jsx(jn,{defaultSize:50,minSize:30,children:o.jsx($l,{})}),o.jsx(Wo,{}),o.jsxs(jn,{defaultSize:50,minSize:25,children:[x&&o.jsx(Rl,{className:"border-l border-border"}),c&&o.jsx(vc,{}),p&&o.jsx(sc,{className:"border-l border-border"})]})]})}),e[10]=n,e[11]=c,e[12]=p,e[13]=x,e[14]=l,e[15]=i,e[16]=b):b=e[16];let j;return e[17]!==h||e[18]!==g||e[19]!==b?(j=o.jsx(ve,{children:o.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-background",children:[h,g,b]})}),e[17]=h,e[18]=g,e[19]=b,e[20]=j):j=e[20],j}function Pc(t){const e=N.c(6),{itemId:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},e[0]=s):s=e[0];const{connectionId:i}=ge(s),r=i??"no-connection",{org:l}=Q(),c=i??null;let a;e[1]!==l.id||e[2]!==c?(a={connectionId:c,orgId:l.id},e[1]=l.id,e[2]=c,e[3]=a):a=e[3];const d=re(a),u=qt(r,"WORKFLOW_EXECUTION",n,d);let f;return e[4]!==u?(f={item:u},e[4]=u,e[5]=f):f=e[5],f}function Lc(){const t=N.c(8);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},t[0]=e):e=t[0];const{itemId:n}=ge(e);let s;t[1]!==n?(s={itemId:n},t[1]=n,t[2]=s):s=t[2];const{item:i}=Pc(s);if(!i){let c;return t[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(ve,{children:o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(nn,{icon:o.jsx(ns,{className:"w-10 h-10 text-muted-foreground"}),title:"Workflow execution not found",description:"This workflow execution may have been deleted or you may not have access to it."})})}),t[3]=c):c=t[3],c}let r;t[4]!==i?(r=JSON.stringify(i,null,2),t[4]=i,t[5]=r):r=t[5];let l;return t[6]!==r?(l=o.jsx(ve,{children:o.jsx("div",{className:"flex flex-col h-full overflow-hidden bg-background",children:o.jsx(Fe,{height:"100%",code:r,language:"json",readOnly:!0})})}),t[6]=r,t[7]=l):l=t[7],l}const Dc={workflow:Ac,workflow_execution:Lc,prompt:Ir};function zc(){const t=N.c(6),e=Ln();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},t[0]=n):n=t[0];const s=ge(n),i=decodeURIComponent(s.itemId);let r;t[1]!==e.history?(r=()=>{e.history.back()},t[1]=e.history,t[2]=r):r=t[2];const l=r,c=Wc;let a;return t[3]!==l||t[4]!==i?(a=o.jsx(Mr,{itemId:i,onBack:l,onUpdate:c}),t[3]=l,t[4]=i,t[5]=a):a=t[5],a}async function Wc(t){return Promise.resolve()}function Fc(t){return t.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Hc(){const t=N.c(38),e=Ln();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},t[0]=n):n=t[0];const s=ge(n),i=s.connectionId,r=decodeURIComponent(s.collectionName),l=decodeURIComponent(s.itemId);let c;t[1]!==e.history?(c=()=>{e.history.back()},t[1]=e.history,t[2]=c):c=t[2];const a=c,d=i??"no-connection",{org:u}=Q(),f=pt(i),m=i??null;let x;t[3]!==u.id||t[4]!==m?(x={connectionId:m,orgId:u.id},t[3]=u.id,t[4]=m,t[5]=x):x=t[5];const p=re(x),h=Kt(d,r,p);let g;t[6]!==h||t[7]!==l?(g=async H=>{l&&await h.update.mutateAsync({id:l,data:H})},t[6]=h,t[7]=l,t[8]=g):g=t[8];const b=g;let j;t[9]!==r?(j=r?.toLowerCase(),t[9]=r,t[10]=j):j=t[10];const S=j,y=S&&Dc[S];let v;t[11]!==r?(v=Fc(r),t[11]=r,t[12]=v):v=t[12];const w=v;let C;t[13]!==u.slug?(C=o.jsx(We,{children:o.jsx(ct,{asChild:!0,children:o.jsx(nt,{to:"/$org/$project/mcps",params:{org:u.slug,project:st},children:"Connections"})})}),t[13]=u.slug,t[14]=C):C=t[14];let $;t[15]===Symbol.for("react.memo_cache_sentinel")?($=o.jsx(at,{}),t[15]=$):$=t[15];let _;t[16]!==r||t[17]!==f||t[18]!==i||t[19]!==u.slug?(_=f&&o.jsxs(o.Fragment,{children:[o.jsx(We,{children:o.jsx(ct,{asChild:!0,children:o.jsx(nt,{to:"/$org/$project/mcps/$connectionId",params:{org:u.slug,project:st,connectionId:i},search:{tab:r},children:f.title})})}),o.jsx(at,{})]}),t[16]=r,t[17]=f,t[18]=i,t[19]=u.slug,t[20]=_):_=t[20];let O;t[21]!==w?(O=o.jsx(We,{children:o.jsx(Jn,{children:w})}),t[21]=w,t[22]=O):O=t[22];let M;t[23]!==O||t[24]!==C||t[25]!==_?(M=o.jsx(qn,{children:o.jsxs(Kn,{children:[C,$,_,O]})}),t[23]=O,t[24]=C,t[25]=_,t[26]=M):M=t[26];const D=M;if(y){let H;return t[27]!==y||t[28]!==a||t[29]!==b||t[30]!==l?(H=o.jsx(y,{itemId:l,onBack:a,onUpdate:b}),t[27]=y,t[28]=a,t[29]=b,t[30]=l,t[31]=H):H=t[31],H}let I;t[32]===Symbol.for("react.memo_cache_sentinel")?(I=o.jsx(Do,{size:36,className:"text-muted-foreground"}),t[32]=I):I=t[32];let E;t[33]!==a?(E=o.jsx(nn,{icon:I,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:a,children:"Go back"}}),t[33]=a,t[34]=E):E=t[34];let z;return t[35]!==D||t[36]!==E?(z=o.jsx(ve,{breadcrumb:D,children:E}),t[35]=D,t[36]=E,t[37]=z):z=t[37],z}function Vc(){const t=N.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},t[0]=e):e=t[0];const n=ge(e);if(decodeURIComponent(n.collectionName)==="tools"){let l;return t[1]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(zc,{}),t[1]=l):l=t[1],l}let r;return t[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Hc,{}),t[2]=r):r=t[2],r}function Nd(){const t=N.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(En,{children:o.jsx(k.Suspense,{fallback:o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(mt,{size:32,className:"animate-spin text-muted-foreground"})}),children:o.jsx(Vc,{})})}),t[0]=e):e=t[0],e}export{Nd as default};
|
|
26
|
+
}`;s(n.name,{action:{...n.action,transformCode:_}}),l(xc)},e[2]=m,e[3]=n.action,e[4]=n.name,e[5]=s,e[6]=x):x=e[6];const p=x;let h;e[7]!==n.action||e[8]!==n.name||e[9]!==s?(h=($,_)=>{s(n.name,{action:{...n.action,transformCode:$},..._?{outputSchema:_}:{}})},e[7]=n.action,e[8]=n.name,e[9]=s,e[10]=h):h=e[10];const g=h;if("code"in n.action&&n.action.code)return null;const b=r?"flex-1 min-h-0 overflow-hidden":"shrink-0";let j;e[11]!==b?(j=A("flex flex-col flex-1 min-h-0 overflow-hidden border-b border-border",b),e[11]=b,e[12]=j):j=e[12];let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Transform Code"}),e[13]=S):S=e[13];let y;e[14]!==r?(y=o.jsxs("div",{className:"flex items-center justify-between",children:[S,r?o.jsx(rn,{size:14,className:"text-muted-foreground"}):o.jsx(on,{size:14,className:"text-muted-foreground"})]}),e[14]=r,e[15]=y):y=e[15];let v;e[16]!==y||e[17]!==p?(v=o.jsx("div",{className:"p-5 shrink-0 cursor-pointer hover:bg-accent/50 transition-colors",onClick:p,children:y}),e[16]=y,e[17]=p,e[18]=v):v=e[18];let w;e[19]!==g||e[20]!==r||e[21]!==n.name||e[22]!==i||e[23]!==u?(w=r&&o.jsx("div",{className:"flex-1 min-h-0",children:o.jsx(Fe,{code:u,language:"typescript",readOnly:i!==void 0,onSave:g,height:"100%"},`transform-code-${n.name}-${i}`)}),e[19]=g,e[20]=r,e[21]=n.name,e[22]=i,e[23]=u,e[24]=w):w=e[24];let C;return e[25]!==j||e[26]!==v||e[27]!==w?(C=o.jsxs("div",{className:j,children:[v,w]}),e[25]=j,e[26]=v,e[27]=w,e[28]=C):C=e[28],C}function xc(t){return!t}function hc(t){return!t}function gc(t){const e=N.c(24),{step:n}=t,[s,i]=k.useState(!1),{updateStep:r}=ne(),l="code"in n.action&&n.action.code?n.action.code:null,c=K();let a;e[0]!==n.action||e[1]!==n.name||e[2]!==r?(a=(j,S)=>{r(n.name,{action:{...n.action,code:j},...S?{outputSchema:S}:{}})},e[0]=n.action,e[1]=n.name,e[2]=r,e[3]=a):a=e[3];const d=a;if(!l)return null;const u=s?"flex-1 min-h-0 overflow-hidden":"shrink-0";let f;e[4]!==u?(f=A("flex flex-col border-b border-border",u),e[4]=u,e[5]=f):f=e[5];let m;e[6]!==s?(m=()=>i(!s),e[6]=s,e[7]=m):m=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Step Code"}),e[8]=x):x=e[8];let p;e[9]!==s?(p=o.jsxs("div",{className:"flex items-center justify-between",children:[x,s?o.jsx(rn,{size:14,className:"text-muted-foreground"}):o.jsx(on,{size:14,className:"text-muted-foreground"})]}),e[9]=s,e[10]=p):p=e[10];let h;e[11]!==m||e[12]!==p?(h=o.jsx("div",{className:"p-5 shrink-0 cursor-pointer hover:bg-accent/50 transition-colors",onClick:m,children:p}),e[11]=m,e[12]=p,e[13]=h):h=e[13];let g;e[14]!==l||e[15]!==d||e[16]!==s||e[17]!==n.name||e[18]!==c?(g=s&&o.jsx("div",{className:"flex-1 min-h-0",children:o.jsx(Fe,{onSave:(j,S)=>d(j,S),code:l,language:"typescript",height:"100%",readOnly:c!==void 0},`step-code-${n.name}-${c}`)}),e[14]=l,e[15]=d,e[16]=s,e[17]=n.name,e[18]=c,e[19]=g):g=e[19];let b;return e[20]!==f||e[21]!==h||e[22]!==g?(b=o.jsxs("div",{className:f,children:[h,g]}),e[20]=f,e[21]=h,e[22]=g,e[23]=b):b=e[23],b}function tt(t){if(Array.isArray(t.type))return t.type.map(n=>tt({...t,type:n})).join(" | ");switch(t.type){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"array":return t.items?`${tt(t.items)}[]`:"unknown[]";case"object":return t.properties?`{ ${Object.entries(t.properties).map(([s,i])=>{const r=tt(i),l=!t.required?.includes(s);return`${s}${l?"?":""}: ${r}`}).join("; ")} }`:"Record<string, unknown>";case"null":return"null";default:return"unknown"}}function bc(t){switch(t){case"success":return o.jsxs(he,{variant:"success",className:"gap-1",children:[o.jsx(gt,{size:11}),"Success"]});case"error":case"failed":return o.jsxs(he,{variant:"destructive",className:"gap-1",children:[o.jsx(ln,{size:11}),"Error"]});case"running":return o.jsxs(he,{variant:"secondary",className:"gap-1",children:[o.jsx(Et,{size:11}),"Running"]});case"enqueued":return o.jsxs(he,{variant:"secondary",className:"gap-1",children:[o.jsx(Et,{size:11}),"On hold"]});case"cancelled":return o.jsxs(he,{variant:"secondary",className:"gap-1",children:[o.jsx(Zn,{size:11}),"Cancelled"]});default:return o.jsxs(he,{variant:"secondary",className:"gap-1",children:[o.jsx(Et,{size:11}),t]})}}function jc(t){return`Run #${t.slice(-4).toUpperCase()}`}function vc(t){const e=N.c(21),{className:n}=t,{executions:s,isLoading:i}=ri(),{setShowExecutionsList:r}=an(),{setTrackingExecutionId:l}=ne(),c=K();let a;e[0]!==l?(a=S=>{l(S)},e[0]=l,e[1]=a):a=e[1];const d=a;let u;e[2]!==r?(u=()=>{r(!1)},e[2]=r,e[3]=u):u=e[3];const f=u;let m;e[4]!==n?(m=A("flex flex-col h-full bg-sidebar border-l border-border",n),e[4]=n,e[5]=m):m=e[5];let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx("p",{className:"flex-1 text-base font-medium text-foreground",children:"Runs"}),e[6]=x):x=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(Zn,{size:11}),e[7]=p):p=e[7];let h;e[8]!==f?(h=o.jsxs("div",{className:"flex items-center h-12 px-5 border-b border-border shrink-0",children:[x,o.jsx(X,{variant:"ghost",size:"icon",className:"size-7",onClick:f,children:p})]}),e[8]=f,e[9]=h):h=e[9];let g;e[10]!==s||e[11]!==d||e[12]!==i||e[13]!==c?(g=i?o.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground",children:"Loading executions..."}):s.map((S,y)=>o.jsx(Sc,{execution:S,isSelected:S.id===c,isFirst:y===0,onSelect:()=>d(S.id)},S.id)),e[10]=s,e[11]=d,e[12]=i,e[13]=c,e[14]=g):g=e[14];let b;e[15]!==g?(b=o.jsx("div",{className:"flex-1 overflow-auto",children:g}),e[15]=g,e[16]=b):b=e[16];let j;return e[17]!==m||e[18]!==h||e[19]!==b?(j=o.jsxs("div",{className:m,children:[h,b]}),e[17]=m,e[18]=h,e[19]=b,e[20]=j):j=e[20],j}function Sc(t){const e=N.c(17),{execution:n,isSelected:s,isFirst:i,onSelect:r}=t,l=s&&"bg-accent/50",c=i&&s&&"bg-accent/50",a=!s&&"hover:bg-accent/30";let d;e[0]!==l||e[1]!==c||e[2]!==a?(d=A("flex flex-col justify-center h-[60px] px-4 border-b border-border cursor-pointer transition-colors",l,c,a),e[0]=l,e[1]=c,e[2]=a,e[3]=d):d=e[3];let u;e[4]!==n.status?(u=bc(n.status),e[4]=n.status,e[5]=u):u=e[5];let f;e[6]!==n.id?(f=jc(n.id),e[6]=n.id,e[7]=f):f=e[7];let m;e[8]!==f?(m=o.jsx("p",{className:"flex-1 text-base font-medium text-foreground",children:f}),e[8]=f,e[9]=m):m=e[9];let x;e[10]!==u||e[11]!==m?(x=o.jsxs("div",{className:"flex items-center gap-2 w-full",children:[u,m]}),e[10]=u,e[11]=m,e[12]=x):x=e[12];let p;return e[13]!==r||e[14]!==d||e[15]!==x?(p=o.jsx("div",{className:d,onClick:r,children:x}),e[13]=r,e[14]=d,e[15]=x,e[16]=p):p=e[16],p}const yc=["workflow.execution.created","workflow.execution.resumed","workflow.step.execute","workflow.step.completed"],wc=Mo({buildUrl:t=>`/org/${t}/watch?types=workflow.*`,eventTypes:yc}),Nc=["COLLECTION_WORKFLOW_EXECUTION_LIST","COLLECTION_WORKFLOW_EXECUTION_GET","COLLECTION_WORKFLOW_EXECUTION_GET_STEP_RESULT"],Cc=500,qe=new Map,Be=new Map;function kc(t){const e=Be.get(t);if(e)for(const n of e)n.invalidateQueries({predicate:s=>s.queryKey.some(i=>typeof i=="string"&&Nc.includes(i))})}function Ic(t){qe.has(t)||qe.set(t,setTimeout(()=>{qe.delete(t),kc(t)},Cc))}const $n=()=>0;function _c(){const t=N.c(3),{org:e}=Q(),n=xo(),s=e.id;let i;t[0]!==s||t[1]!==n?(i=l=>{let c=Be.get(s);c||(c=new Set,Be.set(s,c)),c.add(n);const a=()=>{Ic(s),l()},d=wc.subscribe(s,a);return()=>{d(),c.delete(n),c.size===0&&Be.delete(s);const u=qe.get(s);u&&!Be.has(s)&&(clearTimeout(u),qe.delete(s))}},t[0]=s,t[1]=n,t[2]=i):i=t[2];const r=i;k.useSyncExternalStore(r,$n,$n)}function qs(t){const e=N.c(11),{itemId:n}=t,[s,i]=k.useState(!1);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},e[0]=r):r=e[0];const{connectionId:l}=ge(r),c=l??"no-connection",{org:a}=Q(),d=l??null;let u;e[1]!==a.id||e[2]!==d?(u={connectionId:d,orgId:a.id},e[1]=a.id,e[2]=d,e[3]=u):u=e[3];const f=re(u),m=qt(c,"WORKFLOW",n,f),x=Kt(c,"WORKFLOW",f);let p;e[4]!==x||e[5]!==n?(p=async b=>{i(!0),await x.update.mutateAsync({id:n,data:b}).finally(()=>{i(!1)})},e[4]=x,e[5]=n,e[6]=p):p=e[6];const h=p;let g;return e[7]!==s||e[8]!==m||e[9]!==h?(g={item:m,update:h,isUpdating:s},e[7]=s,e[8]=m,e[9]=h,e[10]=g):g=e[10],g}function Tc(t){const e=N.c(18),{workflow:n,onUpdate:s}=t,{setWorkflow:i}=ne();let r,l,c,a;if(e[0]!==n.description||e[1]!==n.id||e[2]!==n.steps||e[3]!==n.title){const f={title:n.title,description:n.description,steps:n.steps};r=Fe,l=`workflow-${n.id}`,c="100%",a=JSON.stringify(f,null,2),e[0]=n.description,e[1]=n.id,e[2]=n.steps,e[3]=n.title,e[4]=r,e[5]=l,e[6]=c,e[7]=a}else r=e[4],l=e[5],c=e[6],a=e[7];let d;e[8]!==s||e[9]!==i||e[10]!==n?(d=f=>{const m=JSON.parse(f);i({...n,...m}),s(m)},e[8]=s,e[9]=i,e[10]=n,e[11]=d):d=e[11];let u;return e[12]!==r||e[13]!==l||e[14]!==c||e[15]!==a||e[16]!==d?(u=o.jsx(r,{height:c,code:a,language:"json",onSave:d},l),e[12]=r,e[13]=l,e[14]=c,e[15]=a,e[16]=d,e[17]=u):u=e[17],u}function $c(){const t=N.c(9),e=K(),{item:n}=pe(e),s=n?.start_at_epoch_ms,i=n?.completed_at_epoch_ms,r=n?.status==="running"&&s&&!i;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=Date.now(),t[0]=l):l=t[0];const c=k.useRef(l);let a;t[1]!==r?(a=h=>{if(!r)return Ec;const g=setInterval(()=>{c.current=Date.now(),h()},50);return()=>clearInterval(g)},t[1]=r,t[2]=a):a=t[2];const d=a;let u;t[3]!==r?(u=()=>r?c.current:0,t[3]=r,t[4]=u):u=t[4];const f=u,m=k.useSyncExternalStore(d,f,f),x=i&&s?Math.max(0,i-s):null;let p=null;if(s){let h;t[5]!==s?(h=new Date(s).getTime(),t[5]=s,t[6]=h):h=t[6];const g=h;if(i){let b;t[7]!==i?(b=new Date(i).getTime(),t[7]=i,t[8]=b):b=t[8],p=Math.max(0,b-g)}else r&&(p=Math.max(0,m-g))}return p??x}function Ec(){}function Oc(t){if(t<1e3)return`${t}ms`;const e=t/1e3,n=e%60,s=Math.floor(e/60),i=s%60,r=Math.floor(s/60);return r>0?`${r}h ${i}m ${n.toFixed(3)}s`:i>0?`${i}m ${n.toFixed(3)}s`:`${n.toFixed(3)}s`}function Rc(){const t=N.c(26),{setTrackingExecutionId:e}=ne(),n=K(),{item:s}=pe(n),i=$c();let r;t[0]!==i?(r=i!=null?Oc(i):null,t[0]=i,t[1]=r):r=t[1];const l=r,c=s?.status,a=c==="error"||c==="failed",d=c==="success";let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx("div",{className:"flex items-center justify-center h-full w-12",children:o.jsx(ho,{className:"w-4 h-4 text-muted-foreground"})}),t[2]=u):u=t[2];let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx("strong",{className:"text-base text-foreground",children:"Run"}),t[3]=f):f=t[3];let m;t[4]!==n?(m=o.jsxs("p",{className:"flex gap-3 items-center h-full",children:[f,o.jsxs("span",{className:"text-sm text-muted-foreground",children:["#",n]})]}),t[4]=n,t[5]=m):m=t[5];let x;t[6]!==d?(x=d&&o.jsxs(he,{variant:"success",className:"gap-1 ml-3",children:[o.jsx(go,{size:11}),"Success"]}),t[6]=d,t[7]=x):x=t[7];let p;t[8]!==a?(p=a&&o.jsxs(he,{variant:"destructive",className:"gap-1 ml-3",children:[o.jsx(vr,{size:11}),"Failed"]}),t[8]=a,t[9]=p):p=t[9];let h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsx(gr,{className:"w-4 h-4 text-muted-foreground"}),t[10]=h):h=t[10];let g;t[11]!==l?(g=o.jsxs("div",{className:"flex items-center gap-1 ml-6",children:[h,o.jsx("span",{className:"text-sm text-muted-foreground",children:l})]}),t[11]=l,t[12]=g):g=t[12];let b;t[13]!==m||t[14]!==x||t[15]!==p||t[16]!==g?(b=o.jsxs("div",{className:"flex items-center h-full",children:[u,m,x,p,g]}),t[13]=m,t[14]=x,t[15]=p,t[16]=g,t[17]=b):b=t[17];let j;t[18]!==e?(j=()=>e(void 0),t[18]=e,t[19]=j):j=t[19];let S;t[20]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(Bt,{className:"w-4 h-4 text-muted-foreground"}),t[20]=S):S=t[20];let y;t[21]!==j?(y=o.jsx(X,{variant:"ghost",size:"xs",onClick:j,children:S}),t[21]=j,t[22]=y):y=t[22];let v;return t[23]!==y||t[24]!==b?(v=o.jsx("div",{className:"flex flex-col border-b border-border",children:o.jsxs("div",{className:"h-10 bg-accent flex items-center justify-between",children:[b,y]})}),t[23]=y,t[24]=b,t[25]=v):v=t[25],v}function Ac(){const t=N.c(15);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},t[0]=e):e=t[0];const{itemId:n}=ge(e);let s;t[1]!==n?(s={itemId:n},t[1]=n,t[2]=s):s=t[2];const{item:i,update:r,isUpdating:l}=qs(s);let c;t[3]!==i?(c=JSON.stringify(i),t[3]=i,t[4]=c):c=t[4];const a=c;if(!i){let m;return t[5]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(ve,{children:o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(nn,{icon:o.jsx(ns,{className:"w-10 h-10 text-muted-foreground"}),title:"Workflow not found",description:"This workflow may have been deleted or you may not have access to it."})})}),t[5]=m):m=t[5],m}let d;t[6]!==i?(d={workflow:i,trackingExecutionId:void 0,currentStepTab:"input"},t[6]=i,t[7]=d):d=t[7];let u;t[8]!==l||t[9]!==r?(u=o.jsx(Mc,{onUpdate:r,isUpdating:l}),t[8]=l,t[9]=r,t[10]=u):u=t[10];let f;return t[11]!==a||t[12]!==d||t[13]!==u?(f=o.jsx(Jr,{initialState:d,children:u},a),t[11]=a,t[12]=d,t[13]=u,t[14]=f):f=t[14],f}function Mc(t){const e=N.c(21),{onUpdate:n,isUpdating:s}=t;_c();const i=He(),r=K(),{viewMode:l,showExecutionsList:c}=an(),a=Ge();let d;e[0]!==n||e[1]!==i?(d=async()=>{await n(i)},e[0]=n,e[1]=i,e[2]=d):d=e[2];const u=d,f=a&&"toolName"in a.action,m=f?a.action.toolName:null,x=f&&!m&&!r,p=!x&&(a||r||!c);let h;e[3]!==u||e[4]!==s||e[5]!==i.description||e[6]!==i.title?(h=o.jsx(ul,{title:i.title,description:i.description,onSave:u,isSaving:s}),e[3]=u,e[4]=s,e[5]=i.description,e[6]=i.title,e[7]=h):h=e[7];let g;e[8]!==r?(g=r&&o.jsx(Rc,{}),e[8]=r,e[9]=g):g=e[9];let b;e[10]!==n||e[11]!==c||e[12]!==p||e[13]!==x||e[14]!==l||e[15]!==i?(b=o.jsx("div",{className:"flex-1 overflow-hidden",children:l==="code"?o.jsx(Tc,{workflow:i,onUpdate:n}):o.jsxs(zo,{direction:"horizontal",className:"flex w-full h-full",children:[o.jsx(jn,{defaultSize:50,minSize:30,children:o.jsx($l,{})}),o.jsx(Wo,{}),o.jsxs(jn,{defaultSize:50,minSize:25,children:[x&&o.jsx(Rl,{className:"border-l border-border"}),c&&o.jsx(vc,{}),p&&o.jsx(sc,{className:"border-l border-border"})]})]})}),e[10]=n,e[11]=c,e[12]=p,e[13]=x,e[14]=l,e[15]=i,e[16]=b):b=e[16];let j;return e[17]!==h||e[18]!==g||e[19]!==b?(j=o.jsx(ve,{children:o.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-background",children:[h,g,b]})}),e[17]=h,e[18]=g,e[19]=b,e[20]=j):j=e[20],j}function Pc(t){const e=N.c(6),{itemId:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},e[0]=s):s=e[0];const{connectionId:i}=ge(s),r=i??"no-connection",{org:l}=Q(),c=i??null;let a;e[1]!==l.id||e[2]!==c?(a={connectionId:c,orgId:l.id},e[1]=l.id,e[2]=c,e[3]=a):a=e[3];const d=re(a),u=qt(r,"WORKFLOW_EXECUTION",n,d);let f;return e[4]!==u?(f={item:u},e[4]=u,e[5]=f):f=e[5],f}function Lc(){const t=N.c(8);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},t[0]=e):e=t[0];const{itemId:n}=ge(e);let s;t[1]!==n?(s={itemId:n},t[1]=n,t[2]=s):s=t[2];const{item:i}=Pc(s);if(!i){let c;return t[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(ve,{children:o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(nn,{icon:o.jsx(ns,{className:"w-10 h-10 text-muted-foreground"}),title:"Workflow execution not found",description:"This workflow execution may have been deleted or you may not have access to it."})})}),t[3]=c):c=t[3],c}let r;t[4]!==i?(r=JSON.stringify(i,null,2),t[4]=i,t[5]=r):r=t[5];let l;return t[6]!==r?(l=o.jsx(ve,{children:o.jsx("div",{className:"flex flex-col h-full overflow-hidden bg-background",children:o.jsx(Fe,{height:"100%",code:r,language:"json",readOnly:!0})})}),t[6]=r,t[7]=l):l=t[7],l}const Dc={workflow:Ac,workflow_execution:Lc,prompt:Ir};function zc(){const t=N.c(6),e=Ln();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},t[0]=n):n=t[0];const s=ge(n),i=decodeURIComponent(s.itemId);let r;t[1]!==e.history?(r=()=>{e.history.back()},t[1]=e.history,t[2]=r):r=t[2];const l=r,c=Wc;let a;return t[3]!==l||t[4]!==i?(a=o.jsx(Mr,{itemId:i,onBack:l,onUpdate:c}),t[3]=l,t[4]=i,t[5]=a):a=t[5],a}async function Wc(t){return Promise.resolve()}function Fc(t){return t.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Hc(){const t=N.c(38),e=Ln();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},t[0]=n):n=t[0];const s=ge(n),i=s.connectionId,r=decodeURIComponent(s.collectionName),l=decodeURIComponent(s.itemId);let c;t[1]!==e.history?(c=()=>{e.history.back()},t[1]=e.history,t[2]=c):c=t[2];const a=c,d=i??"no-connection",{org:u}=Q(),f=pt(i),m=i??null;let x;t[3]!==u.id||t[4]!==m?(x={connectionId:m,orgId:u.id},t[3]=u.id,t[4]=m,t[5]=x):x=t[5];const p=re(x),h=Kt(d,r,p);let g;t[6]!==h||t[7]!==l?(g=async H=>{l&&await h.update.mutateAsync({id:l,data:H})},t[6]=h,t[7]=l,t[8]=g):g=t[8];const b=g;let j;t[9]!==r?(j=r?.toLowerCase(),t[9]=r,t[10]=j):j=t[10];const S=j,y=S&&Dc[S];let v;t[11]!==r?(v=Fc(r),t[11]=r,t[12]=v):v=t[12];const w=v;let C;t[13]!==u.slug?(C=o.jsx(We,{children:o.jsx(ct,{asChild:!0,children:o.jsx(nt,{to:"/$org/$project/mcps",params:{org:u.slug,project:st},children:"Connections"})})}),t[13]=u.slug,t[14]=C):C=t[14];let $;t[15]===Symbol.for("react.memo_cache_sentinel")?($=o.jsx(at,{}),t[15]=$):$=t[15];let _;t[16]!==r||t[17]!==f||t[18]!==i||t[19]!==u.slug?(_=f&&o.jsxs(o.Fragment,{children:[o.jsx(We,{children:o.jsx(ct,{asChild:!0,children:o.jsx(nt,{to:"/$org/$project/mcps/$connectionId",params:{org:u.slug,project:st,connectionId:i},search:{tab:r},children:f.title})})}),o.jsx(at,{})]}),t[16]=r,t[17]=f,t[18]=i,t[19]=u.slug,t[20]=_):_=t[20];let O;t[21]!==w?(O=o.jsx(We,{children:o.jsx(Jn,{children:w})}),t[21]=w,t[22]=O):O=t[22];let M;t[23]!==O||t[24]!==C||t[25]!==_?(M=o.jsx(qn,{children:o.jsxs(Kn,{children:[C,$,_,O]})}),t[23]=O,t[24]=C,t[25]=_,t[26]=M):M=t[26];const D=M;if(y){let H;return t[27]!==y||t[28]!==a||t[29]!==b||t[30]!==l?(H=o.jsx(y,{itemId:l,onBack:a,onUpdate:b}),t[27]=y,t[28]=a,t[29]=b,t[30]=l,t[31]=H):H=t[31],H}let I;t[32]===Symbol.for("react.memo_cache_sentinel")?(I=o.jsx(Do,{size:36,className:"text-muted-foreground"}),t[32]=I):I=t[32];let E;t[33]!==a?(E=o.jsx(nn,{icon:I,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:a,children:"Go back"}}),t[33]=a,t[34]=E):E=t[34];let z;return t[35]!==D||t[36]!==E?(z=o.jsx(ve,{breadcrumb:D,children:E}),t[35]=D,t[36]=E,t[37]=z):z=t[37],z}function Vc(){const t=N.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/$project/mcps/$connectionId/$collectionName/$itemId"},t[0]=e):e=t[0];const n=ge(e);if(decodeURIComponent(n.collectionName)==="tools"){let l;return t[1]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(zc,{}),t[1]=l):l=t[1],l}let r;return t[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Hc,{}),t[2]=r):r=t[2],r}function yd(){const t=N.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(En,{children:o.jsx(k.Suspense,{fallback:o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(mt,{size:32,className:"animate-spin text-muted-foreground"})}),children:o.jsx(Vc,{})})}),t[0]=e):e=t[0],e}export{yd as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as O,c as U,y as g,j as s,B as se}from"./index-
|
|
1
|
+
import{r as O,c as U,y as g,j as s,B as se}from"./index-BXUNq6d7.js";import{c as X,a as oe,b as ie,D as le}from"./dropdown-menu-CdjuOUR6.js";import{n as ne}from"./ArrowDown-BnnQhLmg.js";import{i as re}from"./ArrowUp-BuKX1RSZ.js";import{i as Y}from"./Check-7kB05ju_.js";import{c as ae}from"./Grid01-Dqz--q3o.js";import{i as ce}from"./List-Cc_Ri6eQ.js";import{a as de,b as ue,c as fe,T as me}from"./tooltip-BGPUMzDS.js";import{B as xe}from"./badge-B-_hRtCy.js";const Z=({size:l=24,color:e="currentColor",...o})=>O.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},O.createElement("path",{d:"M5 21v-7m0-4V3m7 18v-9m0-4V3m7 18v-5m0-4V3M2 14h6m1-6h6m1 8h6"}));Z.displayName="Sliders01";const pe={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function he(l){const e=U.c(66),{value:o,onValueChange:a,options:t,size:w,fullWidth:z,className:j}=l,S=w===void 0?"sm":w,m=z===void 0?!1:z,k=O.useRef(null),C=O.useRef(null);let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={left:0,width:0,opacity:0},e[0]=c):c=e[0];const[x,M]=O.useState(c);let b;e[1]===Symbol.for("react.memo_cache_sentinel")?(b=F=>{if(!F.current)return;const{offsetLeft:ee,offsetWidth:te}=F.current;M({left:ee,width:te,opacity:1})},e[1]=b):b=e[1];const N=b;let d;e[2]!==t[0].value||e[3]!==o?(d=()=>{const F=o===t[0].value?k:C;N(F)},e[2]=t[0].value,e[3]=o,e[4]=d):d=e[4];let v;e[5]!==t||e[6]!==o?(v=[o,t],e[5]=t,e[6]=o,e[7]=v):v=e[7],O.useEffect(d,v);const i=pe[S];let n;e[8]!==j?(n=g("relative flex gap-0 bg-muted rounded-lg",j),e[8]=j,e[9]=n):n=e[9];let r;e[10]!==a||e[11]!==t[0].value?(r=()=>a(t[0].value),e[10]=a,e[11]=t[0].value,e[12]=r):r=e[12];const p=m?"flex-1 h-12 px-4":i.button,h=!m&&t[0].label?"px-3":"";let u;e[13]!==h||e[14]!==p?(u=g("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",p,h),e[13]=h,e[14]=p,e[15]=u):u=e[15];const y=o===t[0].value?"text-foreground":"text-muted-foreground";let f;e[16]!==i.icon||e[17]!==y?(f=g("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",i.icon,y),e[16]=i.icon,e[17]=y,e[18]=f):f=e[18];let _;e[19]!==t[0].icon||e[20]!==f?(_=s.jsx("span",{className:f,children:t[0].icon}),e[19]=t[0].icon,e[20]=f,e[21]=_):_=e[21];let D;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(D=t[0].label&&s.jsx("span",{className:g("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=D):D=e[25];let T;e[26]!==u||e[27]!==_||e[28]!==D||e[29]!==r?(T=s.jsxs("button",{ref:k,type:"button",onClick:r,className:u,children:[_,D]}),e[26]=u,e[27]=_,e[28]=D,e[29]=r,e[30]=T):T=e[30];let V;e[31]!==a||e[32]!==t[1].value?(V=()=>a(t[1].value),e[31]=a,e[32]=t[1].value,e[33]=V):V=e[33];const K=m?"flex-1 h-12 px-4":i.button,q=!m&&t[1].label?"px-3":"";let $;e[34]!==K||e[35]!==q?($=g("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",K,q),e[34]=K,e[35]=q,e[36]=$):$=e[36];const G=o===t[1].value?"text-foreground":"text-muted-foreground";let B;e[37]!==i.icon||e[38]!==G?(B=g("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",i.icon,G),e[37]=i.icon,e[38]=G,e[39]=B):B=e[39];let E;e[40]!==t[1].icon||e[41]!==B?(E=s.jsx("span",{className:B,children:t[1].icon}),e[40]=t[1].icon,e[41]=B,e[42]=E):E=e[42];let R;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(R=t[1].label&&s.jsx("span",{className:g("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=R):R=e[46];let L;e[47]!==V||e[48]!==$||e[49]!==E||e[50]!==R?(L=s.jsxs("button",{ref:C,type:"button",onClick:V,className:$,children:[E,R]}),e[47]=V,e[48]=$,e[49]=E,e[50]=R,e[51]=L):L=e[51];const H=m?"h-12":i.button;let W;e[52]!==H?(W=g("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",H),e[52]=H,e[53]=W):W=e[53];const J=`${x.left}px`,Q=`${x.width}px`;let I;e[54]!==x.opacity||e[55]!==J||e[56]!==Q?(I={left:J,width:Q,opacity:x.opacity},e[54]=x.opacity,e[55]=J,e[56]=Q,e[57]=I):I=e[57];let P;e[58]!==W||e[59]!==I?(P=s.jsx("div",{className:W,style:I}),e[58]=W,e[59]=I,e[60]=P):P=e[60];let A;return e[61]!==T||e[62]!==L||e[63]!==P||e[64]!==n?(A=s.jsxs("div",{className:n,children:[T,L,P]}),e[61]=T,e[62]=L,e[63]=P,e[64]=n,e[65]=A):A=e[65],A}function Me(l){const e=U.c(31),{viewMode:o,onViewModeChange:a,sortKey:t,sortDirection:w,onSort:z,sortOptions:j,filters:S}=l;let m;e[0]!==j?(m=j===void 0?[]:j,e[0]=j,e[1]=m):m=e[1];const k=m;let C;e[2]!==S?(C=S===void 0?[]:S,e[2]=S,e[3]=C):C=e[3];const c=C;let x;e[4]!==c?(x=c.filter(be),e[4]=c,e[5]=x):x=e[5];const M=x.length;let b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Z,{size:16}),e[6]=b):b=e[6];let N;e[7]!==M?(N=M>0&&s.jsx(xe,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:M}),e[7]=M,e[8]=N):N=e[8];let d;e[9]!==N?(d=s.jsx(de,{asChild:!0,children:s.jsx(oe,{asChild:!0,children:s.jsxs(se,{variant:"outline",size:"icon",className:"size-7 border border-input relative",children:[b,N]})})}),e[9]=N,e[10]=d):d=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(ue,{children:"Display & filters"}),e[11]=v):v=e[11];let i;e[12]!==d?(i=s.jsx(fe,{children:s.jsxs(me,{children:[d,v]})}),e[12]=d,e[13]=i):i=e[13];let n;e[14]!==a||e[15]!==o?(n=a&&o&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(he,{value:o,onValueChange:a,fullWidth:!0,options:[{value:"table",icon:s.jsx(ce,{})},{value:"cards",icon:s.jsx(ae,{})}]})}),e[14]=a,e[15]=o,e[16]=n):n=e[16];let r;e[17]!==z||e[18]!==w||e[19]!==t||e[20]!==k?(r=k.length>0&&z&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:"Sort by"}),k.map(y=>{const f=t===y.id;return s.jsx(X,{onClick:()=>z(y.id),className:g("h-8 px-2 py-0 cursor-pointer",f&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[f&&s.jsx(Y,{size:16,className:"text-foreground shrink-0"}),!f&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:y.label}),f&&w&&(w==="asc"?s.jsx(re,{size:16,className:"text-foreground shrink-0"}):s.jsx(ne,{size:16,className:"text-foreground shrink-0"}))]})},y.id)})]}),e[17]=z,e[18]=w,e[19]=t,e[20]=k,e[21]=r):r=e[21];let p;e[22]!==c?(p=c.map(ge),e[22]=c,e[23]=p):p=e[23];let h;e[24]!==n||e[25]!==r||e[26]!==p?(h=s.jsxs(ie,{align:"end",className:"w-[200px] p-0 gap-0",children:[n,r,p]}),e[24]=n,e[25]=r,e[26]=p,e[27]=h):h=e[27];let u;return e[28]!==i||e[29]!==h?(u=s.jsxs(le,{children:[i,h]}),e[28]=i,e[29]=h,e[30]=u):u=e[30],u}function ge(l){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:l.label}),l.options.map(e=>{const o=l.value===e.id;return s.jsx(X,{onClick:()=>l.onChange(e.id),className:g("h-8 px-2 py-0 cursor-pointer",o&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[o&&s.jsx(Y,{size:16,className:"text-foreground shrink-0"}),!o&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},l.label)}function be(l){return l.value!=="ALL"}export{Me as C,he as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,y as b,j as i}from"./index-
|
|
1
|
+
import{c as v,y as b,j as i}from"./index-BXUNq6d7.js";import{i as w}from"./Loading01-Cbk1oNZ2.js";import{i as C}from"./SearchMd-DJI6OMcD.js";import{I as k}from"./input-BFH8rk50.js";function I(j){const e=v.c(21),{value:m,onChange:d,placeholder:g,onKeyDown:f,className:p,isSearching:u,disabled:n}=j,x=g===void 0?"Search...":g;let t;e[0]!==p?(t=b("shrink-0 w-full border-b border-border h-12",p),e[0]=p,e[1]=t):t=e[1];const h=n?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==h?(s=b("flex items-center gap-2.5 h-12 px-4",h),e[2]=h,e[3]=s):s=e[3];let r;e[4]!==u?(r=u?i.jsx(w,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):i.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=u,e[5]=r):r=e[5];let l;e[6]!==d?(l=N=>d(N.target.value),e[6]=d,e[7]=l):l=e[7];let o;e[8]!==n||e[9]!==f||e[10]!==x||e[11]!==l||e[12]!==m?(o=i.jsx(k,{value:m,onChange:l,onKeyDown:f,placeholder:x,disabled:n,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[8]=n,e[9]=f,e[10]=x,e[11]=l,e[12]=m,e[13]=o):o=e[13];let a;e[14]!==s||e[15]!==r||e[16]!==o?(a=i.jsxs("label",{className:s,children:[r,o]}),e[14]=s,e[15]=r,e[16]=o,e[17]=a):a=e[17];let c;return e[18]!==t||e[19]!==a?(c=i.jsx("div",{className:t,children:a}),e[18]=t,e[19]=a,e[20]=c):c=e[20],c}export{I as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as r,y}from"./index-
|
|
1
|
+
import{c as k,j as r,y}from"./index-BXUNq6d7.js";import{c as S,a as R,b as T,e as H,d as L,T as z}from"./table-Bu98B5a-.js";import{n as D}from"./ArrowDown-BnnQhLmg.js";import{i as E}from"./ArrowUp-BuKX1RSZ.js";function I(C){const e=k.c(29),{columns:s,data:f,sortKey:u,sortDirection:x,onSort:i,onRowClick:n,rowClassName:c}=C;let p;e[0]!==x?(p=function(t,h){return r.jsx("div",{className:"w-4 flex items-center justify-center",children:h&&x&&(x==="asc"?r.jsx(E,{size:16,className:"text-muted-foreground transition-colors"}):r.jsx(D,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=x,e[1]=p):p=e[1];const b=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,h){let N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===h-1&&(N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),N},e[2]=d):d=e[2];const a=d;let o;if(e[3]!==s||e[4]!==i||e[5]!==b||e[6]!==u){let l;e[8]!==s.length||e[9]!==i||e[10]!==b||e[11]!==u?(l=(t,h)=>{const N=u===t.id;return r.jsx(S,{className:y(a(h,s.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),onClick:t.sortable&&i?()=>i(t.id):void 0,children:r.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&b(t.id,N)]})},t.id)},e[8]=s.length,e[9]=i,e[10]=b,e[11]=u,e[12]=l):l=e[12],o=s.map(l),e[3]=s,e[4]=i,e[5]=b,e[6]=u,e[7]=o}else o=e[7];let g;e[13]!==o?(g=r.jsx(R,{className:"border-b-0",children:r.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:o})}),e[13]=o,e[14]=g):g=e[14];let j;if(e[15]!==s||e[16]!==f||e[17]!==n||e[18]!==c){let l;e[20]!==s||e[21]!==n||e[22]!==c?(l=(t,h)=>{const N=c?.(t);return r.jsx(T,{"data-row-index":h,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",n?"cursor-pointer":"",N),onClick:n?()=>n(t):void 0,children:s.map(m=>r.jsx(H,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",m.cellClassName,m.wrap?"whitespace-normal wrap-break-word":""),children:r.jsx("div",{className:y(m.wrap?"w-full":"min-w-0 w-full",!m.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:m.render?m.render(t):m.accessor?m.accessor(t):null})},m.id))},h)},e[20]=s,e[21]=n,e[22]=c,e[23]=l):l=e[23],j=f.map(l),e[15]=s,e[16]=f,e[17]=n,e[18]=c,e[19]=j}else j=e[19];let w;e[24]!==j?(w=r.jsx(L,{children:j}),e[24]=j,e[25]=w):w=e[25];let v;return e[26]!==g||e[27]!==w?(v=r.jsxs(z,{className:"w-full border-collapse",children:[g,w]}),e[26]=g,e[27]=w,e[28]=v):v=e[28],v}function W(C){const e=k.c(12),{columns:s,data:f,isLoading:u,sortKey:x,sortDirection:i,onSort:n,onRowClick:c,emptyState:p}=C;if(u===void 0?!1:u){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx("div",{className:"text-muted-foreground",children:"Loading..."})}),e[0]=a):a=e[0],a}if(f.length===0){let a;e[1]!==p?(a=p||r.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No items found"}),e[1]=p,e[2]=a):a=e[2];let o;return e[3]!==a?(o=r.jsx("div",{className:"flex items-center justify-center h-full",children:a}),e[3]=a,e[4]=o):o=e[4],o}let d;return e[5]!==s||e[6]!==f||e[7]!==c||e[8]!==n||e[9]!==i||e[10]!==x?(d=r.jsx("div",{className:"flex-1 overflow-auto",children:r.jsx(I,{columns:s,data:f,sortKey:x,sortDirection:i,onSort:n,onRowClick:c})}),e[5]=s,e[6]=f,e[7]=c,e[8]=n,e[9]=i,e[10]=x,e[11]=d):d=e[11],d}export{W as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,y as u,j as m}from"./index-
|
|
1
|
+
import{c as f,y as u,j as m}from"./index-BXUNq6d7.js";import{B as g}from"./badge-B-_hRtCy.js";function h(x){const e=f.c(12),{tabs:l,activeTab:n,onTabChange:s,className:a}=x;let t;e[0]!==a?(t=u("flex items-center gap-2 overflow-x-auto no-scrollbar",a),e[0]=a,e[1]=t):t=e[1];let r;if(e[2]!==n||e[3]!==s||e[4]!==l){let c;e[6]!==n||e[7]!==s?(c=o=>{const d=n===o.id;return m.jsxs("button",{type:"button",onClick:()=>s(o.id),className:u("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",d&&"bg-accent border-border text-foreground",!d&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[o.label,o.count!==void 0&&m.jsx(g,{variant:"secondary",className:u("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",d?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:o.count})]},o.id)},e[6]=n,e[7]=s,e[8]=c):c=e[8],r=l.map(c),e[2]=n,e[3]=s,e[4]=l,e[5]=r}else r=e[5];let i;return e[9]!==t||e[10]!==r?(i=m.jsx("div",{className:t,children:r}),e[9]=t,e[10]=r,e[11]=i):i=e[11],i}export{h as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,y as m,j as n}from"./index-
|
|
1
|
+
import{c as r,y as m,j as n}from"./index-BXUNq6d7.js";import{_ as d}from"./index-DlhaGZnK.js";import{i}from"./SearchMd-DJI6OMcD.js";function x(l){const e=r.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=m("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==s||e[6]!==o?(a=n.jsx(d,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=a):a=e[7],a}function g(l){const e=r.c(9);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(i,{className:"size-5 shrink-0 text-foreground"}),e[3]=o):o=e[3];let a;e[4]!==t?(a=m("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=a):a=e[5];let c;return e[6]!==s||e[7]!==a?(c=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[o,n.jsx(d.Input,{"data-slot":"command-input",className:a,...s})]}),e[6]=s,e[7]=a,e[8]=c):c=e[8],c}function h(l){const e=r.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=m("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==s||e[6]!==o?(a=n.jsx(d.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=a):a=e[7],a}function N(l){const e=r.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(d.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function v(l){const e=r.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=m("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==s||e[6]!==o?(a=n.jsx(d.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=a):a=e[7],a}function b(l){const e=r.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=m("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==s||e[6]!==o?(a=n.jsx(d.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=a):a=e[7],a}function y(l){const e=r.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=m("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==s||e[6]!==o?(a=n.jsx(d.Item,{"data-slot":"command-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=a):a=e[7],a}export{v as C,h as a,x as b,g as c,N as d,y as e,b as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as f,c as A,c9 as R,j as e,ca as q,x as L,w as j,B as k,i as O,a as U,g as K}from"./index-BXUNq6d7.js";import{u as B}from"./useQuery-Bmc4jnG2.js";import{u as T}from"./useMutation-CkdHuTyE.js";import{C as v,d as C}from"./card-BSGld6G2.js";const Q=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),D=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,o,r)=>r?r.toUpperCase():o.toLowerCase()),I=n=>{const s=D(n);return s.charAt(0).toUpperCase()+s.slice(1)},F=(...n)=>n.filter((s,o,r)=>!!s&&s.trim()!==""&&r.indexOf(s)===o).join(" ").trim(),H=n=>{for(const s in n)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};var J={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const W=f.forwardRef(({color:n="currentColor",size:s=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:m="",children:c,iconNode:i,...d},p)=>f.createElement("svg",{ref:p,...J,width:s,height:s,stroke:n,strokeWidth:r?Number(o)*24/Number(s):o,className:F("lucide",m),...!c&&!H(d)&&{"aria-hidden":"true"},...d},[...i.map(([w,u])=>f.createElement(w,u)),...Array.isArray(c)?c:[c]]));const y=(n,s)=>{const o=f.forwardRef(({className:r,...m},c)=>f.createElement(W,{ref:c,iconNode:s,className:F(`lucide-${Q(I(n))}`,`lucide-${n}`,r),...m}));return o.displayName=I(n),o};const Y=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],b=y("check",Y);const Z=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],V=y("circle-alert",Z);const G=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],X=y("external-link",G);const ee=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],_=y("loader-circle",ee);const te=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],se=y("refresh-cw",te),ne=n=>{const s=A.c(6);let o;s[0]!==n?({...o}=n,s[0]=n,s[1]=o):o=s[1];const{theme:r}=R(),c=r===void 0?"system":r;let i;s[2]===Symbol.for("react.memo_cache_sentinel")?(i={"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},s[2]=i):i=s[2];let d;return s[3]!==o||s[4]!==c?(d=e.jsx(q,{theme:c,className:"toaster group",style:i,...o}),s[3]=o,s[4]=c,s[5]=d):d=s[5],d},S={session:n=>["user-sandbox-session",n]};function oe({sessionId:n,onComplete:s,onError:o}){const r=L(),[m,c]=f.useState(null),{data:i,isLoading:d,error:p}=B({queryKey:S.session(n),queryFn:async()=>{const t=await fetch(`/api/user-sandbox/sessions/${n}`);if(!t.ok){const a=await t.json();throw new Error(a.error||"Failed to load session")}return t.json()}}),w=T({mutationFn:async({appName:t,connectionId:a})=>{const x=await fetch(`/api/user-sandbox/sessions/${n}/configure`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app_name:t,connection_id:a})});if(!x.ok){const h=await x.json();throw new Error(h.error||"Configuration failed")}return x.json()},onSuccess:()=>{r.invalidateQueries({queryKey:S.session(n)})}}),u=T({mutationFn:async()=>{const t=await fetch(`/api/user-sandbox/sessions/${n}/complete`,{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok){const a=await t.json();throw new Error(a.error||"Failed to complete")}return t.json()},onSuccess:t=>{t.redirectUrl?window.location.href=t.redirectUrl:(j.success("Setup complete!"),r.invalidateQueries({queryKey:S.session(n)}),s?.({agentId:t.agentId,redirectUrl:t.redirectUrl}))},onError:t=>{const a=t instanceof Error?t:new Error("Failed to complete");j.error(a.message),o?.(a)}}),E=async t=>{c(t.app_name);try{const a=await fetch(`/api/user-sandbox/sessions/${n}/provision`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({app_name:t.app_name})});if(!a.ok){const N=await a.json();throw new Error(N.error||"Failed to provision connection")}const h=(await a.json()).connection_id;if(t.connection_type==="HTTP"||t.connection_type==="SSE"||t.connection_type==="Websocket"){const N=`/mcp/${h}`,z=await O({url:N,token:null});if(!z.isAuthenticated&&z.supportsOAuth){j.info("Opening authentication window...");const l=await U({connectionId:h,clientName:t.title,timeout:3e5});if(l.error)throw new Error(l.error);if(l.tokenInfo){const $=await fetch(`/api/connections/${h}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accessToken:l.tokenInfo.accessToken,refreshToken:l.tokenInfo.refreshToken,expiresIn:l.tokenInfo.expiresIn,scope:l.tokenInfo.scope,clientId:l.tokenInfo.clientId,clientSecret:l.tokenInfo.clientSecret,tokenEndpoint:l.tokenInfo.tokenEndpoint})});if(!$.ok){const M=await $.json().catch(()=>({}));throw new Error(M.error||"Failed to save authentication tokens. Please try again.")}}}}await w.mutateAsync({appName:t.app_name,connectionId:h}),j.success(`${t.title} connected successfully`)}catch(a){console.error("Connection error:",a);const x=a instanceof Error?a:new Error("Failed to connect");j.error(x.message),o?.(x)}finally{c(null)}},P=i?.apps.every(t=>t.status.configured),g=i?.session.status==="completed";return d?e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:e.jsx(_,{className:"size-8 animate-spin text-muted-foreground"})}):p?e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4",children:e.jsx(v,{className:"max-w-md w-full",children:e.jsx(C,{className:"pt-6",children:e.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[e.jsx("div",{className:"size-12 rounded-full bg-destructive/10 flex items-center justify-center",children:e.jsx(V,{className:"size-6 text-destructive"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-semibold",children:"Session Error"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:p instanceof Error?p.message:"Failed to load"})]})]})})})}):i?e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(ne,{}),e.jsxs("div",{className:"max-w-lg mx-auto px-4 py-12",children:[e.jsxs("div",{className:"text-center mb-8",children:[i.template.icon&&e.jsx("div",{className:"size-16 mx-auto mb-4 rounded-xl bg-muted flex items-center justify-center overflow-hidden",children:e.jsx("img",{src:i.template.icon,alt:"",className:"size-10 object-contain"})}),e.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:i.template.title}),i.template.description&&e.jsx("p",{className:"text-muted-foreground mt-2",children:i.template.description})]}),g&&e.jsx(v,{className:"mb-6 border-green-500/20 bg-green-500/5",children:e.jsx(C,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"size-10 rounded-full bg-green-500/10 flex items-center justify-center",children:e.jsx(b,{className:"size-5 text-green-500"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Setup Complete"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Your integrations are ready to use."})]})]})})}),e.jsx("div",{className:"space-y-3",children:i.apps.map(t=>e.jsx(v,{children:e.jsx(C,{className:"py-4",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"size-10 rounded-lg bg-muted flex items-center justify-center shrink-0 overflow-hidden",children:t.icon?e.jsx("img",{src:t.icon,alt:"",className:"size-6 object-contain"}):e.jsx("span",{className:"text-lg",children:"📦"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-medium truncate",children:t.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t.status.configured?e.jsxs("span",{className:"text-green-600 dark:text-green-400 flex items-center gap-1",children:[e.jsx(b,{className:"size-3"})," Connected"]}):t.requires_oauth?"Requires authentication":"Ready to connect"})]}),!t.status.configured&&!g&&e.jsx(k,{size:"sm",onClick:()=>E(t),disabled:m!==null||u.isPending,children:m===t.app_name?e.jsxs(e.Fragment,{children:[e.jsx(_,{className:"size-4 mr-2 animate-spin"}),"Connecting..."]}):e.jsxs(e.Fragment,{children:[e.jsx(X,{className:"size-4 mr-2"}),"Connect"]})}),t.status.configured&&!g&&e.jsxs(k,{size:"sm",variant:"outline",onClick:()=>E(t),disabled:m!==null||u.isPending,children:[e.jsx(se,{className:"size-4 mr-2"}),"Reconnect"]}),g&&e.jsx("div",{className:"size-8 rounded-full bg-green-500/10 flex items-center justify-center",children:e.jsx(b,{className:"size-4 text-green-500"})})]})})},t.app_name))}),P&&!g&&e.jsx("div",{className:"mt-6",children:e.jsx(k,{className:"w-full",size:"lg",onClick:()=>u.mutate(),disabled:u.isPending,children:u.isPending?e.jsxs(e.Fragment,{children:[e.jsx(_,{className:"size-4 mr-2 animate-spin"}),"Completing..."]}):"Complete Setup"})}),e.jsx("div",{className:"mt-8 pt-6 border-t text-center",children:e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Session expires:"," ",new Date(i.session.expires_at).toLocaleString()]})})]})]}):null}function de(){const n=A.c(3);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/connect/$sessionId"},n[0]=s):s=n[0];const{sessionId:o}=K(s);let r;return n[1]!==o?(r=e.jsx(oe,{sessionId:o}),n[1]=o,n[2]=r):r=n[2],r}export{de as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,y as I,j as t}from"./index-
|
|
1
|
+
import{c as E,y as I,j as t}from"./index-BXUNq6d7.js";import{C as P}from"./card-BSGld6G2.js";import{I as R}from"./integration-icon-D6SJHU0f.js";function B(h){const e=E.c(37),{connection:s,onClick:u,headerActions:j,headerActionsAlwaysVisible:A,body:v,footer:N,className:b,fallbackIcon:y}=h,C=A===void 0?!1:A,k=u&&"hover:bg-muted/50";let i;e[0]!==b||e[1]!==k?(i=I("cursor-pointer transition-colors group overflow-hidden flex flex-col h-full",k,b),e[0]=b,e[1]=k,e[2]=i):i=e[2];let l;e[3]!==s.icon||e[4]!==s.title||e[5]!==y?(l=t.jsx(R,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:y}),e[3]=s.icon,e[4]=s.title,e[5]=y,e[6]=l):l=e[6];let o;e[7]!==j||e[8]!==C?(o=j&&t.jsx("div",{className:I("transition-opacity",!C&&"opacity-0 group-hover:opacity-100"),onClick:_,children:j}),e[7]=j,e[8]=C,e[9]=o):o=e[9];let n;e[10]!==o?(n=t.jsx("div",{className:"relative",children:o}),e[10]=o,e[11]=n):n=e[11];let c;e[12]!==l||e[13]!==n?(c=t.jsxs("div",{className:"flex items-start justify-between",children:[l,n]}),e[12]=l,e[13]=n,e[14]=c):c=e[14];let r;e[15]!==s.title?(r=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[15]=s.title,e[16]=r):r=e[16];const w=s.description||"No description";let a;e[17]!==w?(a=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:w}),e[17]=w,e[18]=a):a=e[18];let d;e[19]!==a||e[20]!==r?(d=t.jsxs("div",{className:"flex flex-col gap-1",children:[r,a]}),e[19]=a,e[20]=r,e[21]=d):d=e[21];let f;e[22]!==v?(f=v&&t.jsx("div",{children:v}),e[22]=v,e[23]=f):f=e[23];let m;e[24]!==d||e[25]!==f||e[26]!==c?(m=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[c,d,f]}),e[24]=d,e[25]=f,e[26]=c,e[27]=m):m=e[27];let x;e[28]!==N?(x=N&&t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:V,children:N})}),e[28]=N,e[29]=x):x=e[29];let p;e[30]!==m||e[31]!==x?(p=t.jsxs("div",{className:"flex flex-col flex-1",children:[m,x]}),e[30]=m,e[31]=x,e[32]=p):p=e[32];let g;return e[33]!==u||e[34]!==p||e[35]!==i?(g=t.jsx(P,{className:i,onClick:u,children:p}),e[33]=u,e[34]=p,e[35]=i,e[36]=g):g=e[36],g}function V(h){return h.stopPropagation()}function _(h){return h.stopPropagation()}export{B as C};
|