decocms 3.35.2 → 3.35.3
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-DkwUf9y1.js → AlertCircle-DjOU_aot.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BUkBkD3O.js → ArrowUpRight-BXJMGk9i.js} +1 -1
- package/dist/client/assets/{Check-C_31_MJb.js → Check-D7HZW6oZ.js} +1 -1
- package/dist/client/assets/{CheckCircle-Cpbk7Z8F.js → CheckCircle-XS4dmEOs.js} +1 -1
- package/dist/client/assets/{ChevronDown-ciuU2nWp.js → ChevronDown-CxTVikeq.js} +1 -1
- package/dist/client/assets/{ChevronLeft-ZCv3UA1e.js → ChevronLeft-BEmN2X52.js} +1 -1
- package/dist/client/assets/{ChevronRight-CFv-fKpX.js → ChevronRight-3jD7TdJZ.js} +1 -1
- package/dist/client/assets/{ChevronUp-C64rGI06.js → ChevronUp-Dbc77Gwp.js} +1 -1
- package/dist/client/assets/{Container-BNV-9MJ8.js → Container-Hfp9SJFa.js} +1 -1
- package/dist/client/assets/{DotsVertical-Cv0q4Ifl.js → DotsVertical-Cz5MZln-.js} +1 -1
- package/dist/client/assets/{Eye-BWJG0owY.js → Eye-BIZqMr-y.js} +1 -1
- package/dist/client/assets/{FilterLines-B1BriWf_.js → FilterLines-iroXgkwP.js} +1 -1
- package/dist/client/assets/{Globe01-BOlA5Q_4.js → Globe01-CiCGKTg3.js} +1 -1
- package/dist/client/assets/{HardDrive-DHZcIBpx.js → HardDrive-B26C8dI3.js} +1 -1
- package/dist/client/assets/{Key01-5jFctNvh.js → Key01-DZeJDklU.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DbIVXyve.js → LayoutLeft-CY1OP6dH.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CqMwbx5t.js → LinkExternal01-DwxMIV-o.js} +1 -1
- package/dist/client/assets/{Monitor01-gHJrCrOh.js → Monitor01-_FIjo4ge.js} +1 -1
- package/dist/client/assets/{Palette-DqVojGBm.js → Palette-BDd6wxPD.js} +1 -1
- package/dist/client/assets/{Play-BXDltgp7.js → Play-C933mY5z.js} +1 -1
- package/dist/client/assets/{Plus-CW5uSNYz.js → Plus-aXWGGcSy.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-CWaUwErM.js → RefreshCcw01-DS1vtLKW.js} +1 -1
- package/dist/client/assets/{SearchMd-Bz4Ykghd.js → SearchMd-Cr6CluRw.js} +1 -1
- package/dist/client/assets/{Settings02-DLDnTjHy.js → Settings02-DeH66RiM.js} +1 -1
- package/dist/client/assets/{Shield01-BIILGcyJ.js → Shield01-0kTDalL_.js} +1 -1
- package/dist/client/assets/{Star01-Dw_jqiQj.js → Star01-pwvCfpNJ.js} +1 -1
- package/dist/client/assets/{Stars01-EGK20_72.js → Stars01-Bw7_Rdwp.js} +1 -1
- package/dist/client/assets/{Stars02-CyyQqj9H.js → Stars02-vcxNwhIa.js} +1 -1
- package/dist/client/assets/{Sun-DjmglJiH.js → Sun-De2vWRC7.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-a-r60L2U.js → SwitchHorizontal01-Blia-yUi.js} +1 -1
- package/dist/client/assets/{Tool01-B8aRmzPo.js → Tool01-DC4THSlP.js} +1 -1
- package/dist/client/assets/{Trash01-D5mmvxxB.js → Trash01-DBSukaq0.js} +1 -1
- package/dist/client/assets/{Upload01-CYVliRf6.js → Upload01-DruP7_KV.js} +1 -1
- package/dist/client/assets/{User01-igKL-FIP.js → User01-Bweqikx-.js} +1 -1
- package/dist/client/assets/{Users01-DGPeGDAl.js → Users01-N436STOJ.js} +1 -1
- package/dist/client/assets/{Users03-59Bl-ju-.js → Users03-DiilXFZ6.js} +1 -1
- package/dist/client/assets/{X-Zx6WnCka.js → X-B1W1F4mo.js} +1 -1
- package/dist/client/assets/{XCircle-BI7HvisP.js → XCircle-BtUzMyFW.js} +1 -1
- package/dist/client/assets/{XClose-knQz_HAN.js → XClose-r0gXvFlp.js} +1 -1
- package/dist/client/assets/{Zap-CCChCiD-.js → Zap-Dvtyg5Ik.js} +1 -1
- package/dist/client/assets/{ZapSquare-BlkUA5sB.js → ZapSquare-BQX2HOTP.js} +1 -1
- package/dist/client/assets/{ZoomOut-C-DjvL5K.js → ZoomOut-DC46Ewts.js} +1 -1
- package/dist/client/assets/{access-gate-DXAe84jj.js → access-gate-CVMVVI4n.js} +1 -1
- package/dist/client/assets/{accordion-BlkUK2b8.js → accordion-DBJsIIHl.js} +1 -1
- package/dist/client/assets/{add-section-modal-CeJkvxLi.js → add-section-modal-v1Vhtks6.js} +1 -1
- package/dist/client/assets/{agent-capabilities-DbrB1URH.js → agent-capabilities-n5Q1YbJ5.js} +1 -1
- package/dist/client/assets/{agent-icon-C4vLfyZT.js → agent-icon-CCGqC-bl.js} +1 -1
- package/dist/client/assets/{agent-icons-BaxWTu1S.js → agent-icons-CDVkEkIq.js} +2 -2
- package/dist/client/assets/{agents-list-CmTUYZJS.js → agents-list-DDPJUJaX.js} +1 -1
- package/dist/client/assets/{ai-providers-DHoxdiMk.js → ai-providers-48DFDYIz.js} +1 -1
- package/dist/client/assets/{alert-Bw1ORE7l.js → alert-ZcglsRSH.js} +1 -1
- package/dist/client/assets/{alert-dialog-DmwO1wKa.js → alert-dialog-B2k_N3ZX.js} +1 -1
- package/dist/client/assets/app-editor-DmCxU5-w.js +1 -0
- package/dist/client/assets/{auth-jf8Ueqtd.js → auth-ClbRbdVv.js} +1 -1
- package/dist/client/assets/{auth-catchall-BKWUHHRQ.js → auth-catchall-BQd5LNUx.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DRwMHkyX.js → auth-split-layout-jRGUFWwU.js} +1 -1
- package/dist/client/assets/{automation-list-row-DjCxfkOO.js → automation-list-row-CXD-x28t.js} +1 -1
- package/dist/client/assets/{automation-runs-CW_yJDML.js → automation-runs-BIJek_K_.js} +1 -1
- package/dist/client/assets/{automations-cjNb_nRD.js → automations-D53YpHbQ.js} +1 -1
- package/dist/client/assets/{avatar-DdLkUzB6.js → avatar-BG2RlqaT.js} +1 -1
- package/dist/client/assets/{badge-CKyeE-oo.js → badge-DIN7Nq6a.js} +1 -1
- package/dist/client/assets/{brand-context-Dbw-HLYi.js → brand-context--o_ht-A-.js} +1 -1
- package/dist/client/assets/{buckets-Bu7h0_Hd.js → buckets-DD6OfmjS.js} +1 -1
- package/dist/client/assets/{calendar-0t1uXfLL.js → calendar-RJSiIOON.js} +1 -1
- package/dist/client/assets/{capability-load-error-DY55FeJ6.js → capability-load-error-BfCjxOlU.js} +1 -1
- package/dist/client/assets/{card-DP32GBOf.js → card-ykuj7mlf.js} +1 -1
- package/dist/client/assets/{chat-context-DK-AWUQz.js → chat-context-CEWm5eLB.js} +1 -1
- package/dist/client/assets/{checkbox-DUa9wb8T.js → checkbox-BKpSRHdU.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Daqunv5H.js → cli-auth-success-qAM068ao.js} +1 -1
- package/dist/client/assets/{collection-detail-5UYGpD4U.js → collection-detail-BaAVQGsi.js} +1 -1
- package/dist/client/assets/{collection-display-button-D6VmVMvk.js → collection-display-button-ve31YRQs.js} +1 -1
- package/dist/client/assets/{collection-search-jOlxOkeZ.js → collection-search-C5MSFdhR.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CM2GZd4j.js → collection-table-wrapper-Wi0b7UJz.js} +1 -1
- package/dist/client/assets/{collection-tabs-DvXat67P.js → collection-tabs-CAVXo49Z.js} +1 -1
- package/dist/client/assets/{collections-xWz9Ka4y.js → collections-Cs_tB6Xp.js} +1 -1
- package/dist/client/assets/{command-14UC_LgG.js → command-ClPkeFT9.js} +1 -1
- package/dist/client/assets/connect-desktop-dialog-DrC4f6Q3.js +1 -0
- package/dist/client/assets/{connection-card-W6kS50Xm.js → connection-card-aeOBPbSz.js} +1 -1
- package/dist/client/assets/{connection-detail-BbS7VfwB.js → connection-detail-p5zHxWJQ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-jyOtcSIt.js → connection-form-helpers-C2pw-OdH.js} +1 -1
- package/dist/client/assets/{connections-DmawYjy9.js → connections-DtVPIESl.js} +1 -1
- package/dist/client/assets/decopilot-sse-pool-BZ8GwOYU.js +1 -0
- package/dist/client/assets/{dialog-DPVJEPrK.js → dialog-BwBYyWWk.js} +1 -1
- package/dist/client/assets/{domain-settings-BdF9eKHz.js → domain-settings-p2x5w3J1.js} +1 -1
- package/dist/client/assets/{drawer-BXyUyCQL.js → drawer-QIeXv6B7.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DOlfrN75.js → dropdown-menu-CL4WEQRf.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DIyMBeV4.js → dynamic-plugin-layout-cQR6S4X8.js} +1 -1
- package/dist/client/assets/{empty-state-xh_20twO.js → empty-state-BKLgisam.js} +1 -1
- package/dist/client/assets/{empty-state-CmddJMwD.js → empty-state-C4JeGg4X.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DqaTmzNL.js → extract-connection-data-Dz_jOB39.js} +1 -1
- package/dist/client/assets/{features-DnOEdSHo.js → features-lNOjZ0fU.js} +1 -1
- package/dist/client/assets/{file-explorer-C657nvDI.js → file-explorer-MIJepCP_.js} +1 -1
- package/dist/client/assets/{file-type-icon-D93vAYh4.js → file-type-icon-B6AnVMPu.js} +1 -1
- package/dist/client/assets/{files-B8jmDdpO.js → files-C6_93qT5.js} +1 -1
- package/dist/client/assets/{form-EYtxKS6a.js → form-Z86e6etr.js} +1 -1
- package/dist/client/assets/{general-B2htYYmc.js → general-CBaQO14X.js} +1 -1
- package/dist/client/assets/{generate-id-BlA-3dpa.js → generate-id-C7CxZwCs.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CN9VGWSw.js → github-repo-picker-BlgfXLdP.js} +1 -1
- package/dist/client/assets/{header-tab-button-zGw57zar.js → header-tab-button-BOZYRinC.js} +1 -1
- package/dist/client/assets/{hover-card-CyNrGP46.js → hover-card-DCrCVVSt.js} +1 -1
- package/dist/client/assets/{image-field-CRg7FKDt.js → image-field-CnaeZ7Cq.js} +1 -1
- package/dist/client/assets/{index-o7c8QKYO.js → index--1Ng2vB4.js} +4 -4
- package/dist/client/assets/{index-LekHmrTG.js → index-1vLRIaGM.js} +1 -1
- package/dist/client/assets/{index-tWFPBDUb.js → index-BdZLvIUs.js} +1 -1
- package/dist/client/assets/{index-Q2jKm_ff.js → index-Cf5_qS_K.js} +1 -1
- package/dist/client/assets/{index-COo7MQNq.js → index-CiRwseKn.js} +1 -1
- package/dist/client/assets/{index-C7fNNl96.js → index-CmVsJNWn.js} +1 -1
- package/dist/client/assets/{index-BFzXRFgv.js → index-D36v7D1U.js} +1 -1
- package/dist/client/assets/{index-DFboBiZx.js → index-DvG0T2G3.js} +1 -1
- package/dist/client/assets/{index-NebhiVVQ.js → index-DxJD6aw-.js} +1 -1
- package/dist/client/assets/{index-Bql2Wqwg.js → index-F-DdQVig.js} +1 -1
- package/dist/client/assets/{index-RgwViKsx.js → index-Jt8pUNdF.js} +1 -1
- package/dist/client/assets/{index-D2JLfz42.js → index-Nc3tqGu_.js} +1 -1
- package/dist/client/assets/{index-DxTO1Vau.js → index-YE7XuOF9.js} +1 -1
- package/dist/client/assets/{index-ltKXKiQ2.js → index-qk7utkhC.js} +1 -1
- package/dist/client/assets/{index-redirect-C7lzzPeT.js → index-redirect-Bga8SUq5.js} +1 -1
- package/dist/client/assets/{index-DnIoj8fl.js → index-uVHAmIsb.js} +3 -3
- package/dist/client/assets/{input-kFc4cqln.js → input-BYcDxHNs.js} +1 -1
- package/dist/client/assets/{integration-icon-D3EQp4Fu.js → integration-icon-YIddy6rU.js} +1 -1
- package/dist/client/assets/{label-Bvw0Ied9.js → label-6YORzGJ9.js} +1 -1
- package/dist/client/assets/{layout-Ca-s_wnC.js → layout-BqzITPb8.js} +1 -1
- package/dist/client/assets/{login-CX7-TkZm.js → login-OD0e1zDV.js} +1 -1
- package/dist/client/assets/{mcp-oauth-jiIVtUUC.js → mcp-oauth-Bqzn0Dif.js} +1 -1
- package/dist/client/assets/{members-BLERW5ar.js → members-DS-tdh70.js} +1 -1
- package/dist/client/assets/{monaco-editor-MWSSoG2S.js → monaco-editor-BUU4dfTp.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-EcWn-b5L.js → monitoring-stats-row-W1kG1QMr.js} +1 -1
- package/dist/client/assets/{oauth-callback-DErfvA_e.js → oauth-callback-TPVFfDa1.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B2CeVkps.js → oauth-callback-ai-provider-BSrRnpyk.js} +1 -1
- package/dist/client/assets/{onboarding-D1OquzOs.js → onboarding-K3muUGna.js} +1 -1
- package/dist/client/assets/{org-install-CP6GafaT.js → org-install-B_NKJRUX.js} +1 -1
- package/dist/client/assets/{org-layout-BKiOkIR9.js → org-layout-DS11FDyh.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-aVdWNCe2.js → org-plugin-layout-Ds4SKE20.js} +1 -1
- package/dist/client/assets/{page-seo-form-63_BP4Z5.js → page-seo-form-CUXHyT3k.js} +1 -1
- package/dist/client/assets/page-seo-sheet-DWN_jrpV.js +1 -0
- package/dist/client/assets/{pair-CC2q5WhY.js → pair-DguDTLaz.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-C8J8IuVQ.js → plugin-empty-state-BsOWqXT4.js} +1 -1
- package/dist/client/assets/{plugin-header-CQ-0B9QL.js → plugin-header-CVnVRSWb.js} +1 -1
- package/dist/client/assets/{plugin-layout-1OlgHiyb.js → plugin-layout-B-eexJrb.js} +1 -1
- package/dist/client/assets/{popover-DFBV-kft.js → popover-OWTo-ttg.js} +1 -1
- package/dist/client/assets/{post-editor-RC0nSinu.js → post-editor-9P0wvqVY.js} +1 -1
- package/dist/client/assets/{primitives-Dj8whdvu.js → primitives-BKz7PoD1.js} +1 -1
- package/dist/client/assets/{profile-C1y0Wzbe.js → profile-DKgH58jm.js} +1 -1
- package/dist/client/assets/project-app-view-aiPHbBMn.js +1 -0
- package/dist/client/assets/record-editor-CEd3Nq-X.js +1 -0
- package/dist/client/assets/registry-BJIUp0yq.js +2 -0
- package/dist/client/assets/{registry-layout-CRdtAXEl.js → registry-layout-BVyz_YyX.js} +1 -1
- package/dist/client/assets/{require-capability-CJqD_sNw.js → require-capability-BNXWgOaA.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DVQqpR9U.js → required-auth-layout-CgveTWoj.js} +1 -1
- package/dist/client/assets/{reset-password-6kMSCjoE.js → reset-password-B5XJrRXo.js} +1 -1
- package/dist/client/assets/{resizable-BCts7Hoe.js → resizable-ZwB_SgdO.js} +1 -1
- package/dist/client/assets/{roles-Tffk7a5z.js → roles-B3qZ9FQm.js} +1 -1
- package/dist/client/assets/save-referenced-block-BWbuYBb2.js +1 -0
- package/dist/client/assets/{save-status-CgWmFzXD.js → save-status-BAgQweyK.js} +1 -1
- package/dist/client/assets/{schema-form-WouwDdYp.js → schema-form-CD60zPdr.js} +1 -1
- package/dist/client/assets/{scroll-area-DXdZCfi_.js → scroll-area-CixG0pJh.js} +1 -1
- package/dist/client/assets/{search-input-B3XYdfeF.js → search-input-BfizHALq.js} +1 -1
- package/dist/client/assets/{secrets-CbDoNw3q.js → secrets-hkT-vkWO.js} +1 -1
- package/dist/client/assets/{sections-editor-BmHJWIlu.js → sections-editor-C7wGHkLQ.js} +1 -1
- package/dist/client/assets/{select-B_xVBVbm.js → select-DpIv2m7o.js} +1 -1
- package/dist/client/assets/{select-model-DkF6uTkV.js → select-model-DHqBdvUI.js} +1 -1
- package/dist/client/assets/{seo-editor-CSzOD8a1.js → seo-editor-X4tutsUS.js} +1 -1
- package/dist/client/assets/{settings-layout-CmjQb7Ht.js → settings-layout-BPos4Lfi.js} +1 -1
- package/dist/client/assets/{settings-section-BTddWHA-.js → settings-section-nvSL8mUn.js} +1 -1
- package/dist/client/assets/{sheet-B3GYGLhe.js → sheet-J3PJeFDK.js} +1 -1
- package/dist/client/assets/{shell-controls-CD1e_u6K.js → shell-controls-CV-_zqGg.js} +1 -1
- package/dist/client/assets/{shell-layout-Cgwg5QF3.js → shell-layout-tEjGEg5-.js} +1 -1
- package/dist/client/assets/{shell-route-loading-COeh_aex.js → shell-route-loading-CZqCIakz.js} +1 -1
- package/dist/client/assets/{sidebar-kyVuWucL.js → sidebar-DawbXHdj.js} +1 -1
- package/dist/client/assets/{skeleton-CyRCN25X.js → skeleton-BCgq4Xy6.js} +1 -1
- package/dist/client/assets/{sortable.esm-C7P-vU6-.js → sortable.esm-DsSid7Zp.js} +1 -1
- package/dist/client/assets/{spinner-B62HtwxP.js → spinner-BQT6CDh-.js} +1 -1
- package/dist/client/assets/{sso-CFgdcP4X.js → sso-B1HWtZMn.js} +1 -1
- package/dist/client/assets/{store-DD3q7khp.js → store-BfFFxnM0.js} +1 -1
- package/dist/client/assets/store-registry-DspBhmXB.js +2 -0
- package/dist/client/assets/{studio-tools-CYvl10tJ.js → studio-tools-Bsqb-6Fx.js} +1 -1
- package/dist/client/assets/{switch-9AraHuPG.js → switch-Cu-9OUl1.js} +1 -1
- package/dist/client/assets/{tab-id-DiaWi79N.js → tab-id-DxwgE0jf.js} +1 -1
- package/dist/client/assets/{table-D-eZ2Wly.js → table-XS_vYE_1.js} +1 -1
- package/dist/client/assets/{tabs-DNIUI4W6.js → tabs-B4F5NKqf.js} +1 -1
- package/dist/client/assets/{task-status-CDkG-N6p.js → task-status-OfocbInI.js} +1 -1
- package/dist/client/assets/{textarea-BuPx5SDQ.js → textarea-pwpin7Xo.js} +1 -1
- package/dist/client/assets/{toggle-group-BgDlmAc0.js → toggle-group-BTyEkyOV.js} +1 -1
- package/dist/client/assets/{toolbar-WIS1-2Sy.js → toolbar-ZyghcYDs.js} +1 -1
- package/dist/client/assets/{tools-list-D6uq4MrN.js → tools-list-Dm-oDLPn.js} +1 -1
- package/dist/client/assets/{tooltip-DG-C65pd.js → tooltip-C_pZvUmA.js} +1 -1
- package/dist/client/assets/{types-7_L4W6Tu.js → types-CVQ_neIF.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C3HTrKhd.js → use-ai-providers-CGgTldnc.js} +1 -1
- package/dist/client/assets/{use-automations-QDhIwpIJ.js → use-automations-C3tUJiXy.js} +1 -1
- package/dist/client/assets/{use-capability-DQgRY6_x.js → use-capability-BcwY0Lf1.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CwR4C3CJ.js → use-clock-tick-Bsu4JpY1.js} +1 -1
- package/dist/client/assets/{use-collections-DjJTRpo_.js → use-collections-CNY4Rigp.js} +1 -1
- package/dist/client/assets/{use-connection-DUYQMDLQ.js → use-connection-Cd3-MJT5.js} +1 -1
- package/dist/client/assets/{use-copy-9rW5ZwZw.js → use-copy-C62Opw3r.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DZIq-rHQ.js → use-create-virtual-mcp-JNvxHXlx.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-4TUEEtao.js → use-debounced-autosave-CmpKlipe.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BSxNsHg_.js → use-delete-connection-DOqJ3DYp.js} +1 -1
- package/dist/client/assets/{use-file-configs-CiOc-9XG.js → use-file-configs-OSUx89xj.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-HMRo8z7S.js → use-infinite-scroll-Ce2zTY3i.js} +1 -1
- package/dist/client/assets/{use-list-state-D5-adRnk.js → use-list-state-B6GtGz_i.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DAanazcB.js → use-mcp-client-Bqv2ciYo.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BJhG10VU.js → use-mcp-prompts-B2fIh5W5.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BZ5C7mX8.js → use-mcp-tools-DNa7v9SS.js} +1 -1
- package/dist/client/assets/{use-members-oxzMf6HC.js → use-members-BBAnZQ_N.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Cvb4b2dj.js → use-navigate-to-agent-CDxi6d1t.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-4XCuGX_0.js → use-org-auth-client-BvIrqhMj.js} +1 -1
- package/dist/client/assets/{use-org-sso-C3JjHGLM.js → use-org-sso-DvInKERU.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CE1F99xu.js → use-organization-roles-CrylSy9-.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BDQcymx3.js → use-organization-settings-CdYVljPu.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Btr8vraI.js → use-registry-connections-Bdnyk0np.js} +1 -1
- package/dist/client/assets/{use-secrets-aNG7boBI.js → use-secrets-5xq_sQR4.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CRlMq1Od.js → use-status-sounds-CugYppDe.js} +1 -1
- package/dist/client/assets/{use-view-mode-DaIWDL_S.js → use-view-mode-BmgcQL7Y.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-B4MbUdTW.js → use-virtual-mcp-Clsr41cX.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CL1ZPxL1.js +1 -0
- package/dist/client/assets/{useRouterState-DuGUZA7B.js → useRouterState-BCoEdLHo.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B0dXZKGJ.js +1 -0
- package/dist/client/assets/{user-BWs1Xtr6.js → user-DNJpS6qb.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-G-KCK_xv.js → view-mode-toggle-CnJNM_yP.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BVVVT94i.js → watch-sse-pool-DiiHGFSQ.js} +1 -1
- package/dist/client/assets/{workflow-CQ33bXoz.js → workflow-DTPliqqz.js} +1 -1
- package/dist/client/assets/workflow-detail-DmBVM3K8.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/app-editor-DZU371gg.js +0 -1
- package/dist/client/assets/connect-desktop-dialog-DVqHifor.js +0 -1
- package/dist/client/assets/decopilot-sse-pool-CwSrVgbm.js +0 -1
- package/dist/client/assets/page-seo-sheet-CgQ_3iup.js +0 -1
- package/dist/client/assets/project-app-view-CDg0Ipzu.js +0 -1
- package/dist/client/assets/record-editor-C8D-bch6.js +0 -1
- package/dist/client/assets/registry-DwqBhaO7.js +0 -2
- package/dist/client/assets/save-referenced-block-BPZ9GwRm.js +0 -1
- package/dist/client/assets/store-registry-DmaUBXDq.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Dal3RT3l.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CqnU8D2I.js +0 -1
- package/dist/client/assets/workflow-detail-Di_0eyvg.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cm as Oe,e as ee,p as z,K as J,m as De,T as $e,X as Te,F as Ce,n as ve,o as re,L as ie,f as Se,d as Me,g as Ne,r as p,j as ce,t as Le,b as Fe,Y as Ke,aK as je}from"./index-
|
|
1
|
+
import{cm as Oe,e as ee,p as z,K as J,m as De,T as $e,X as Te,F as Ce,n as ve,o as re,L as ie,f as Se,d as Me,g as Ne,r as p,j as ce,t as Le,b as Fe,Y as Ke,aK as je}from"./index-uVHAmIsb.js";import{q as qe,A as Ee,d as Ue,s as Ve,v as Be,x as Ge,u as He,m as Qe,w as We}from"./tab-id-DxwgE0jf.js";import{u as Xe}from"./studio-tools-Bsqb-6Fx.js";import{g as ze,u as Ye,a as Ze}from"./use-mcp-client-Bqv2ciYo.js";import{u as Je}from"./use-virtual-mcp-Clsr41cX.js";import{u as et,b as de}from"./use-ai-providers-CGgTldnc.js";import{e as tt}from"./use-organization-settings-CdYVljPu.js";const nt={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],google:["gemini-2.5-flash","gemini-3-flash"],"claude-code":["claude-code:haiku","claude-code:sonnet"],codex:["codex:gpt-5.4-mini"]},ot={anthropic:["claude-sonnet-4-6","claude-sonnet"],openrouter:["anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude"],google:["gemini-3-pro","gemini-3-flash"],"claude-code":["claude-code:sonnet"],codex:["codex:gpt-5.4"]},st={anthropic:["claude-opus-4-8","claude-sonnet-4-6","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8","anthropic/claude-sonnet-4.6:extended","anthropic/claude-sonnet-4.6","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],google:["gemini-3-pro"],"claude-code":["claude-code:opus-1m","claude-code:opus","claude-code:sonnet"],codex:["codex:gpt-5.5"]},at={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],google:["gemini-2.0-flash-image"]},rt={openrouter:["perplexity/sonar","perplexity/sonar-pro","perplexity/deep-research"],deco:["perplexity/sonar","perplexity/sonar-pro","perplexity/deep-research"]};function oe(t,e,s,n){for(const o of s){const a=t.find(r=>r.modelId===o);if(a)return{keyId:e,modelId:a.modelId,title:a.title}}for(const o of s){const a=t.find(r=>r.modelId.includes(o));if(a)return{keyId:e,modelId:a.modelId,title:a.title}}if(n){const o=t.find(n);if(o)return{keyId:e,modelId:o.modelId,title:o.title}}return null}function it(t,e){const s={chat:{fast:null,smart:null,thinking:null},image:null,webResearch:null};for(const n of t){const o=e[n.id]??[],a=n.providerId;s.chat.fast||(s.chat.fast=oe(o,n.id,nt[a]??[])),s.chat.smart||(s.chat.smart=oe(o,n.id,ot[a]??[])),s.chat.thinking||(s.chat.thinking=oe(o,n.id,st[a]??[])),s.image||(s.image=oe(o,n.id,at[a]??[],r=>r.capabilities?.includes("image")===!0)),s.webResearch||(s.webResearch=oe(o,n.id,rt[a]??[],r=>{const i=r.modelId.toLowerCase().replace(/[^a-z0-9]/g,"");return i.includes("sonar")||i.includes("deepresearch")}))}return s}const he={decopilot:{harness:"decopilot",sandbox:"agent-sandbox"},"decopilot-desktop":{harness:"decopilot",sandbox:"user-desktop"},"claude-code-desktop":{harness:"claude-code",sandbox:"user-desktop"},"codex-desktop":{harness:"codex",sandbox:"user-desktop"}};function ct(t,e){if(!t)return null;const s=e?Oe(e):null;if(t==="decopilot"&&s===null)return"decopilot";for(const[n,o]of Object.entries(he))if(o.harness===t&&o.sandbox===s)return n;return null}function ye(t,e){switch(t){case"decopilot":return e.agentSandbox;case"decopilot-desktop":return e.userDesktop;case"claude-code-desktop":return e.userDesktop&&e.claudeCode;case"codex-desktop":return e.userDesktop&&e.codex}}const lt=["decopilot","decopilot-desktop","claude-code-desktop","codex-desktop"];function dt(t,e){return t==null?null:ye(t,e)?t:lt.find(s=>ye(s,e))??null}const Ie={online:!1,capabilities:[],ready:!1};function ut(){const t=ee.c(7),{org:e}=z(),s=Xe();let n;t[0]!==e.id?(n=J.currentLink(e.id),t[0]=e.id,t[1]=n):n=t[1];let o;t[2]!==s?(o=async()=>{const i=await s.call("LINK_CURRENT_GET",{});return i?{...i,ready:!0}:{...Ie,ready:!0}},t[2]=s,t[3]=o):o=t[3];let a;t[4]!==n||t[5]!==o?(a={queryKey:n,queryFn:o,staleTime:1e4,refetchInterval:15e3,refetchOnWindowFocus:!0},t[4]=n,t[5]=o,t[6]=a):a=t[6];const{data:r}=De(a);return r??Ie}function pt(){const t=ee.c(11),e=ut(),s=$e();let n;t[0]!==e.capabilities||t[1]!==e.online?(n=e.online&&e.capabilities.includes("claude-code"),t[0]=e.capabilities,t[1]=e.online,t[2]=n):n=t[2];let o;t[3]!==e.capabilities||t[4]!==e.online?(o=e.online&&e.capabilities.includes("codex"),t[3]=e.capabilities,t[4]=e.online,t[5]=o):o=t[5];let a;return t[6]!==e.online||t[7]!==s.runtime.agentSandbox||t[8]!==n||t[9]!==o?(a={agentSandbox:s.runtime.agentSandbox,userDesktop:e.online,claudeCode:n,codex:o},t[6]=e.online,t[7]=s.runtime.agentSandbox,t[8]=n,t[9]=o,t[10]=a):a=t[10],a}function ft(t){return t.thread?.harness_id!=null?{}:{harnessId:t.globals.harnessId,sandboxProviderKind:t.globals.sandboxProviderKind,branch:t.globals.branch??null}}function ht(t){const e=ee.c(10);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId",shouldThrow:!1},e[0]=s):s=e[0];const n=Te(s);let o;if(e[1]!==n?.params.appSlug||e[2]!==n?.params.collectionName||e[3]!==n?.params.itemId||e[4]!==t){o=[],t&&o.push(`### Selected Agent
|
|
2
2
|
- ID: ${t}`);let a;e[6]!==n?.params.appSlug||e[7]!==n?.params.collectionName||e[8]!==n?.params.itemId?(a=[],n?.params.appSlug&&a.push(`- Connection ID: ${n?.params.appSlug}`),n?.params.collectionName&&a.push(`- Collection: ${n?.params.collectionName}`),n?.params.itemId&&a.push(`- Item ID: ${n?.params.itemId}`),e[6]=n?.params.appSlug,e[7]=n?.params.collectionName,e[8]=n?.params.itemId,e[9]=a):a=e[9],a.length>0&&o.push(`### Current Resource
|
|
3
3
|
The user is viewing the following resource:
|
|
4
4
|
${a.join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,c as d,j as c,br as l,bs as b}from"./index-
|
|
1
|
+
import{e as n,c as d,j as c,br as l,bs as b}from"./index-uVHAmIsb.js";import{i as m}from"./Check-D7HZW6oZ.js";function u(o){const e=n.c(9);let r,i;e[0]!==o?({className:r,...i}=o,e[0]=o,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let a;e[3]!==r?(a=d("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/20 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-[2px] disabled:opacity-50",r),e[3]=r,e[4]=a):a=e[4];let t;e[5]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx(b,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-primary-foreground transition-none",children:c.jsx(m,{className:"size-3.5"})}),e[5]=t):t=e[5];let s;return e[6]!==i||e[7]!==a?(s=c.jsx(l,{"data-slot":"checkbox",className:a,...i,children:t}),e[6]=i,e[7]=a,e[8]=s):s=e[8],s}export{u as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a,b as c,r as m,j as o}from"./index-
|
|
1
|
+
import{e as a,b as c,r as m,j as o}from"./index-uVHAmIsb.js";import{A as u}from"./auth-split-layout-jRGUFWwU.js";function p(){const e=a.c(8),i=c.useSession().data?.user?.email;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0],m.useEffect(f,l);let t;e[1]!==i?(t=i?o.jsxs(o.Fragment,{children:[" as ",i]}):"",e[1]=i,e[2]=t):t=e[2];let s;e[3]!==t?(s=o.jsxs("h1",{className:"text-3xl font-semibold tracking-tight",children:["You're logged in",t,"."]}),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("p",{className:"text-muted-foreground",children:"You can return to your terminal."}),e[5]=n):n=e[5];let r;return e[6]!==s?(r=o.jsx(u,{children:o.jsxs("div",{className:"space-y-3",children:[s,n]})}),e[6]=s,e[7]=r):r=e[7],r}function f(){window.close()}export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as Ke,R as te,e as C,j as t,E as ke,r as w,p as ie,G as Qe,c as J,bk as Ye,l as le,d as Xe,I as K,B as W,n as Ze,g as ae,bl as Pe}from"./index-DnIoj8fl.js";import{E as Ee}from"./empty-state-xh_20twO.js";import{u as et,a as Oe}from"./use-collections-DjJTRpo_.js";import{u as ce}from"./use-mcp-client-DAanazcB.js";import{F as se,a as tt,b as de,d as me}from"./form-EYtxKS6a.js";import{I as ue}from"./input-kFc4cqln.js";import{T as re}from"./textarea-BuPx5SDQ.js";import{a as st,b as ot,V as pe}from"./layout-Ca-s_wnC.js";import{S as nt,W as rt,a as it}from"./index-tWFPBDUb.js";import{g as lt,M as at,a as be}from"./types-7_L4W6Tu.js";import{A as ct,a as dt,b as mt}from"./alert-Bw1ORE7l.js";import{d as Ne,S as ve,a as Se,b as ye,c as oe}from"./select-B_xVBVbm.js";import{c as ut,b as we,T as Ce,a as Ie}from"./tooltip-DG-C65pd.js";import{i as pt}from"./AlertCircle-DkwUf9y1.js";import{T as xt,R as ft,a7 as ht,O as gt,a8 as jt,G as $e}from"./agent-icon-C4vLfyZT.js";import{a as bt}from"./Eye-BWJG0owY.js";import{i as Nt}from"./Play-BXDltgp7.js";import{i as vt}from"./ChevronRight-CFv-fKpX.js";import{O as St,M as yt}from"./index-DxTO1Vau.js";import{g as wt}from"./connection-slug-eyAPH6o3.js";import{u as Ct,T as It}from"./tools-list-D6uq4MrN.js";import{a as Re,u as Ae}from"./use-connection-DUYQMDLQ.js";import{b as $t}from"./use-mcp-tools-BZ5C7mX8.js";import{c as Tt}from"./content-blocks-o63cs2vh.js";import{I as Te}from"./integration-icon-D3EQp4Fu.js";import{g as kt,i as Pt}from"./chat-context-DK-AWUQz.js";import{u as Et}from"./shell-layout-Cgwg5QF3.js";import{M as Ot}from"./monaco-editor-MWSSoG2S.js";import{E as Rt}from"./empty-state-CmddJMwD.js";import{n as At}from"./Container-BNV-9MJ8.js";import"./auth-jf8Ueqtd.js";import"./label-Bvw0Ied9.js";import"./index-NebhiVVQ.js";import"./sidebar-kyVuWucL.js";import"./LayoutLeft-DbIVXyve.js";import"./sheet-B3GYGLhe.js";import"./X-Zx6WnCka.js";import"./index-DFboBiZx.js";import"./collections-xWz9Ka4y.js";import"./index-BFzXRFgv.js";import"./use-virtual-mcp-B4MbUdTW.js";import"./resizable-BCts7Hoe.js";import"./ZoomOut-C-DjvL5K.js";import"./badge-CKyeE-oo.js";import"./spinner-B62HtwxP.js";import"./view-mode-toggle-G-KCK_xv.js";import"./dialog-DPVJEPrK.js";import"./scroll-area-DXdZCfi_.js";import"./index-D2JLfz42.js";import"./hover-card-CyNrGP46.js";import"./dropdown-menu-DOlfrN75.js";import"./Check-C_31_MJb.js";import"./DotsVertical-Cv0q4Ifl.js";import"./Plus-CW5uSNYz.js";import"./Tool01-B8aRmzPo.js";import"./XClose-knQz_HAN.js";import"./accordion-BlkUK2b8.js";import"./index-C7fNNl96.js";import"./watch-sse-pool-BVVVT94i.js";import"./ChevronDown-ciuU2nWp.js";import"./ChevronUp-C64rGI06.js";import"./SwitchHorizontal01-a-r60L2U.js";import"./RefreshCcw01-CWaUwErM.js";import"./XCircle-BI7HvisP.js";import"./ArrowUpRight-BUkBkD3O.js";import"./ZapSquare-BlkUA5sB.js";import"./Users03-59Bl-ju-.js";import"./CheckCircle-Cpbk7Z8F.js";import"./ChevronLeft-ZCv3UA1e.js";import"./Globe01-BOlA5Q_4.js";import"./FilterLines-B1BriWf_.js";import"./Star01-Dw_jqiQj.js";import"./Palette-DqVojGBm.js";import"./HardDrive-DHZcIBpx.js";import"./Stars02-CyyQqj9H.js";import"./Key01-5jFctNvh.js";import"./LinkExternal01-CqMwbx5t.js";import"./Monitor01-gHJrCrOh.js";import"./Sun-DjmglJiH.js";import"./SearchMd-Bz4Ykghd.js";import"./Settings02-DLDnTjHy.js";import"./Shield01-BIILGcyJ.js";import"./Stars01-EGK20_72.js";import"./Trash01-D5mmvxxB.js";import"./Upload01-CYVliRf6.js";import"./User01-igKL-FIP.js";import"./Users01-DGPeGDAl.js";import"./Zap-CCChCiD-.js";import"./extract-connection-data-DqaTmzNL.js";import"./generate-id-BlA-3dpa.js";import"./use-registry-connections-Btr8vraI.js";import"./use-organization-settings-BDQcymx3.js";import"./index-COo7MQNq.js";import"./popover-DFBV-kft.js";import"./use-create-virtual-mcp-DZIq-rHQ.js";import"./use-navigate-to-agent-Cvb4b2dj.js";import"./mcp-oauth-jiIVtUUC.js";import"./tab-id-DiaWi79N.js";import"./decopilot-sse-pool-CwSrVgbm.js";import"./studio-tools-CYvl10tJ.js";import"./use-ai-providers-C3HTrKhd.js";import"./avatar-DdLkUzB6.js";import"./required-auth-layout-DVQqpR9U.js";import"./useRouterState-DuGUZA7B.js";import"./use-org-sso-C3JjHGLM.js";import"./index-LekHmrTG.js";Ke({title:te().min(1),description:te().nullable(),body:te()});function ne(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function _t(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Dt(s){const e=C.c(13),{form:n}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=o):o=e[0];let r;e[1]!==n.control?(r=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(se,{control:n.control,name:"title",render:zt}),t.jsx(se,{control:n.control,name:"description",render:Ut})]})]}),e[1]=n.control,e[2]=r):r=e[2];let i,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),a=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=i,e[4]=a):(i=e[3],a=e[4]);let c;e[5]!==n.control?(c=t.jsxs("div",{className:"flex flex-col gap-2",children:[i,a,t.jsx(se,{control:n.control,name:"body",render:Mt})]}),e[5]=n.control,e[6]=c):c=e[6];let l;e[7]!==r||e[8]!==c?(l=t.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:[r,c]}),e[7]=r,e[8]=c,e[9]=l):l=e[9];let p;return e[10]!==n||e[11]!==l?(p=t.jsx(tt,{...n,children:l}),e[10]=n,e[11]=l,e[12]=p):p=e[12],p}function Mt(s){const{field:e}=s;return t.jsx(de,{children:t.jsx(me,{children:t.jsx(re,{...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 Ut(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(me,{children:t.jsx(ue,{...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 zt(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(me,{children:t.jsx(ue,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Bt(s){const e=C.c(36),{providerId:n,promptId:o}=s,{org:r}=ie(),i=n||null;let a;e[0]!==r.id||e[1]!==r.slug||e[2]!==i?(a={connectionId:i,orgId:r.id,orgSlug:r.slug},e[0]=r.id,e[1]=r.slug,e[2]=i,e[3]=a):a=e[3];const c=ce(a),l=et(n,"PROMPT",o,c),p=Oe(n,"PROMPT",c),f=p.update.isPending;let u;e[4]!==l?(u=l?{title:l.title,description:l.description??null,body:ne(l)}:void 0,e[4]=l,e[5]=u):u=e[5];let h;e[6]!==u?(h={values:u},e[6]=u,e[7]=h):h=e[7];const N=Qe(h);let T;e[8]!==N||e[9]!==l?(T=()=>{l&&N.reset({title:l.title,description:l.description??null,body:ne(l)})},e[8]=N,e[9]=l,e[10]=T):T=e[10];const O=T;let R;e[11]!==p.update||e[12]!==N||e[13]!==o?(R=N.handleSubmit(async j=>{const P=await p.update.mutateAsync({id:o,data:{title:j.title,description:j.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:j.body}}]}});N.reset({title:P.title,description:P.description??null,body:ne(P)})}),e[11]=p.update,e[12]=N,e[13]=o,e[14]=R):R=e[14];const A=R;if(!l){let j;return e[15]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=j):j=e[15],j}let y;e[16]!==l.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:l.title}),e[16]=l.title,e[17]=y):y=e[17];let k;e[18]!==l.description?(k=l.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:l.description})]}):null,e[18]=l.description,e[19]=k):k=e[19];let I;e[20]!==y||e[21]!==k?(I=t.jsx(ot,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,k]})}),e[20]=y,e[21]=k,e[22]=I):I=e[22];let g;e[23]!==A?(g=()=>{A()},e[23]=A,e[24]=g):g=e[24];let v;e[25]!==N.formState.isDirty||e[26]!==f||e[27]!==O||e[28]!==g?(v=t.jsx(st,{children:t.jsx(nt,{onSave:g,onUndo:O,isDirty:N.formState.isDirty,isSaving:f})}),e[25]=N.formState.isDirty,e[26]=f,e[27]=O,e[28]=g,e[29]=v):v=e[29];let S;e[30]!==N?(S=t.jsx("div",{className:"h-full",children:t.jsx(Dt,{form:N})}),e[30]=N,e[31]=S):S=e[31];let $;return e[32]!==v||e[33]!==S||e[34]!==I?($=t.jsxs(pe,{children:[I,v,S]}),e[32]=v,e[33]=S,e[34]=I,e[35]=$):$=e[35],$}function Lt(s){const e=C.c(4),{itemId:n}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=_t(),e[0]=o):o=e[0];const r=o;if(!r){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=a):a=e[1],a}let i;return e[2]!==n?(i=t.jsx(ke,{children:t.jsx(w.Suspense,{fallback:null,children:t.jsx(Bt,{providerId:r,promptId:n})})}),e[2]=n,e[3]=i):i=e[3],i}function _e(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("min-w-0 overflow-hidden",n),e[3]=n,e[4]=r):r=e[4];let i;return e[5]!==o||e[6]!==r?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:r,...o}),e[5]=o,e[6]=r,e[7]=i):i=e[7],i}function De(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",n),e[3]=n,e[4]=r):r=e[4];let i;return e[5]!==o||e[6]!==r?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=i):i=e[7],i}function V(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=r):r=e[4];let i;return e[5]!==o||e[6]!==r?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=i):i=e[7],i}function Q(s){const e=C.c(10);let n,o,r;e[0]!==s?({asChild:n,className:o,...r}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=r):(n=e[1],o=e[2],r=e[3]);const i=n?Ye:"a";let a;e[4]!==o?(a=J("hover:text-foreground transition-colors truncate",o),e[4]=o,e[5]=a):a=e[5];let c;return e[6]!==i||e[7]!==r||e[8]!==a?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:a,...r}),e[6]=i,e[7]=r,e[8]=a,e[9]=c):c=e[9],c}function Me(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("text-foreground font-medium truncate",n),e[3]=n,e[4]=r):r=e[4];let i;return e[5]!==o||e[6]!==r?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:r,...o}),e[5]=o,e[6]=r,e[7]=i):i=e[7],i}function Y(s){const e=C.c(12);let n,o,r;e[0]!==s?({children:n,className:o,...r}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=r):(n=e[1],o=e[2],r=e[3]);let i;e[4]!==o?(i=J("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=i):i=e[5];let a;e[6]!==n?(a=n??t.jsx(vt,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==r||e[9]!==i||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...r,children:a}),e[8]=r,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}const Ft=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Vt(s){const e=C.c(11),{toolName:n,connectionId:o,siblings:r,onSelectInstance:i,onBack:a}=s;let c;e[0]!==o?(c={connectionId:o},e[0]=o,e[1]=c):c=e[1];const l=Ct(c);if(!l.isAuthenticated){let u;return e[2]!==l.supportsOAuth||e[3]!==a?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:l.supportsOAuth?t.jsx(St,{onAuthenticate:()=>a(),buttonText:"Go back to authenticate"}):t.jsx(yt,{hasReadme:!1})}),e[2]=l.supportsOAuth,e[3]=a,e[4]=u):u=e[4],u}const p=`${o}:${n}`;let f;return e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==p||e[9]!==n?(f=t.jsx(Jt,{toolName:n,connectionId:o,siblings:r,onSelectInstance:i},p),e[5]=o,e[6]=i,e[7]=r,e[8]=p,e[9]=n,e[10]=f):f=e[10],f}function Jt({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const{replayId:r}=Xe({strict:!1}),i=(()=>{if(!r)return null;const d=`replay-${r}`,m=sessionStorage.getItem(d);if(!m)return null;sessionStorage.removeItem(d);try{return JSON.parse(m)}catch{return null}})(),a=(()=>{if(!i)return null;const d={};for(const[m,b]of Object.entries(i))b!==null&&typeof b=="object"?d[m]=JSON.stringify(b,null,2):d[m]=b;return d})(),[c,l]=w.useState(a??{}),[p,f]=w.useState(i?JSON.stringify(i,null,2):"{}"),[u,h]=w.useState(null),[N,T]=w.useState(null),[O,R]=w.useState(null),[A,y]=w.useState(null),[k,I]=w.useState(!1),[g,v]=w.useState(null),{org:S}=ie(),$=Re(e),j=kt(),P=Pt(),{setChatOpen:B}=Et(),U=`${e}:${s}`,_=ce({connectionId:e,orgId:S.id,orgSlug:S.slug}),z=$t({client:_}),x=z.data?.tools?.find(d=>d.name===s),E=lt(x?._meta),F=d=>{if(!j)return;const m=Tt(d.content);m.content.length>0&&(B(!0),j.sendMessage({tiptapDoc:m}))},[D,X]=w.useState("json"),[Ue,ze]=w.useState(!1);E&&!Ue&&(X("ui"),ze(!0));const xe=x?.inputSchema?.properties,fe=xe?Object.keys(xe):[],q=fe.length>0,H={};if(q&&x?.inputSchema?.properties)for(const d of fe)H[d]=x.inputSchema.required?.includes(d)?"":void 0;const Z=d=>Object.prototype.hasOwnProperty.call(c,d),Be=async()=>{I(!0),y(null),h(null),T(null),R(null),v(null);const d=performance.now();try{if(!_)throw new Error("MCP client is not available");const m=q?{...H,...c}:(()=>{const M=p.trim();if(!M)return{};const L=JSON.parse(M);if(L&&typeof L=="object")return L;throw new Error("Raw JSON input must be an object.")})();q&&x?.inputSchema?.properties&&Object.entries(x.inputSchema.properties).forEach(([M,L])=>{if((L.type==="object"||L.type==="array")&&typeof m[M]=="string")try{m[M]=JSON.parse(m[M])}catch{}else if((L.type==="number"||L.type==="integer")&&typeof m[M]=="string"&&m[M]!==""){const je=Number(m[M]);Number.isNaN(je)||(m[M]=je)}});const b=await _.callTool({name:s,arguments:m}),G=b.structuredContent??b,We=performance.now(),He=Math.round(We-d);h(G),T(b),R(m);const Ge=JSON.stringify(G),ge=new TextEncoder().encode(Ge).length;v({duration:`${He}ms`,bytes:`${ge} bytes`,tokens:`~${Math.ceil(ge/4)} tokens`,cost:"$0.0000"})}catch(m){const b=m instanceof Error?m.message:String(m);y(b||"Unknown error occurred");const G=performance.now();v({duration:`${Math.round(G-d)}ms`})}finally{I(!1)}},ee=(d,m)=>{l(b=>({...b,[d]:m}))},Le=()=>{h(null),T(null),R(null),y(null),v(null)},Fe=x?.name??Ft(s),Ve=t.jsx(_e,{children:t.jsxs(De,{children:[t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:S.slug},children:"Connections"})})}),t.jsx(Y,{}),$&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:S.slug,appSlug:wt($)},search:{tab:"tools"},children:$.title})})}),t.jsx(Y,{})]}),t.jsx(V,{children:t.jsx(Me,{children:Fe})})]})}),he=n.length>1&&t.jsxs(Ne,{value:e,onValueChange:o,children:[t.jsx(ve,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(Se,{})}),t.jsx(ye,{children:n.map(d=>t.jsx(oe,{value:d.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Te,{icon:d.icon,name:d.title,size:"xs",className:"shrink-0"}),d.title]})},d.id))})]}),Je=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),x?.inputSchema?.required&&x.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:q&&x?.inputSchema?.properties?Object.entries(x.inputSchema.properties).map(([d,m])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[d,x.inputSchema?.required?.includes(d)&&t.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:m.type})]}),m.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:m.description}),m.type==="object"||m.type==="array"?t.jsx(re,{className:"font-mono text-xs",value:Z(d)?c[d]??"":H[d]??"",onChange:b=>ee(d,b.target.value),placeholder:`Enter ${d} as JSON...`,rows:3}):m.type==="boolean"?t.jsxs(Ne,{value:Z(d)?String(c[d]??""):"",onValueChange:b=>ee(d,b==="true"),children:[t.jsx(ve,{children:t.jsx(Se,{placeholder:"Select true or false..."})}),t.jsxs(ye,{children:[t.jsx(oe,{value:"true",children:"true"}),t.jsx(oe,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:Z(d)?c[d]??"":H[d]??"",onChange:b=>ee(d,b.target.value),placeholder:`Enter ${d}...`})]},d)):x?.inputSchema&&!q?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(re,{className:"font-mono text-xs min-h-[120px]",value:p,onChange:d=>f(d.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:k?t.jsxs(W,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Le,children:[t.jsx(xt,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(W,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Be,children:[t.jsx(Nt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),qe=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[g&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ft,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.duration})]}),g.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ht,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.tokens})]}),g.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(gt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.bytes})]}),g.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:g.cost})})]}),E&&t.jsx(ut,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(we,{children:[t.jsx(Ce,{asChild:!0,children:t.jsx(W,{size:"icon",variant:D==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("ui"),children:t.jsx(jt,{size:14})})}),t.jsx(Ie,{children:"Interactive view"})]}),t.jsxs(we,{children:[t.jsx(Ce,{asChild:!0,children:t.jsx(W,{size:"icon",variant:D==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("json"),children:t.jsx($e,{size:14})})}),t.jsx(Ie,{children:"JSON view"})]})]})})]})]}),A&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(ct,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(pt,{className:"h-4 w-4"}),t.jsx(dt,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(mt,{className:"text-xs text-destructive",children:A})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&D==="ui"&&_?t.jsx(w.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(at,{resourceURI:E,toolInfo:x?{tool:x}:void 0,toolInput:O??void 0,toolResult:N??void 0,displayMode:"fullscreen",minHeight:be.view.minHeight,maxHeight:be.view.maxHeight,client:_,onMessage:F,onUpdateModelContext:d=>P?.setAppContext(U,d),onTeardown:()=>P?.clearAppContext(U),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(Ot,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(W,{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(u,null,2)),Ze.success("Copied to clipboard")},children:t.jsx(bt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx($e,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(pe,{breadcrumb:Ve,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Te,{icon:$?.icon||null,name:$?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[z.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):z.isLoading?t.jsx(le,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:z.isSuccess?"ready":z.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:x?.annotations,_meta:x?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:he})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:x?.description||"No description available"})]}),n.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:"Instance"}),he]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Je}),qe]})})]})})}function qt(s){const e=C.c(10),{itemId:n,siblings:o,onBack:r}=s,[i,a]=w.useState(o[0]?.id??"");let c;e[0]!==i||e[1]!==o?(c=o.find(h=>h.id===i)?.id??o[0]?.id??"",e[0]=i,e[1]=o,e[2]=c):c=e[2];const l=c;if(!Re(l||void 0)||!l){let h;return e[3]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=h):h=e[3],h}let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(le,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=f):f=e[4];let u;return e[5]!==l||e[6]!==r||e[7]!==o||e[8]!==n?(u=t.jsx(w.Suspense,{fallback:f,children:t.jsx(Vt,{toolName:n,connectionId:l,siblings:o,onSelectInstance:a,onBack:r})}),e[5]=l,e[6]=r,e[7]=o,e[8]=n,e[9]=u):u=e[9],u}const Wt={workflow:it,workflow_execution:rt,prompt:Lt};function Ht(){const s=C.c(9),e=Pe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=ae(n),r=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Ae(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const l=c,p=Gt;let f;return s[5]!==l||s[6]!==r||s[7]!==a?(f=t.jsx(qt,{itemId:r,siblings:a,onBack:l,onUpdate:p}),s[5]=l,s[6]=r,s[7]=a,s[8]=f):f=s[8],f}async function Gt(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Qt(){const s=C.c(41),e=Pe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=ae(n),r=decodeURIComponent(o.collectionName),i=decodeURIComponent(o.itemId);let a;s[1]!==e.history?(a=()=>{e.history.back()},s[1]=e.history,s[2]=a):a=s[2];const c=a,{org:l}=ie();let p;s[3]!==o.appSlug?(p={slug:o.appSlug},s[3]=o.appSlug,s[4]=p):p=s[4];const u=Ae(p)[0]??null,h=u?.id??"",N=h||"no-connection",T=h??null;let O;s[5]!==l.id||s[6]!==l.slug||s[7]!==T?(O={connectionId:T,orgId:l.id,orgSlug:l.slug},s[5]=l.id,s[6]=l.slug,s[7]=T,s[8]=O):O=s[8];const R=ce(O),A=Oe(N,r,R);let y;s[9]!==A||s[10]!==i?(y=async D=>{i&&await A.update.mutateAsync({id:i,data:D})},s[9]=A,s[10]=i,s[11]=y):y=s[11];const k=y;let I;s[12]!==r?(I=r?.toLowerCase(),s[12]=r,s[13]=I):I=s[13];const g=I,v=g&&Wt[g];let S;s[14]!==r?(S=Kt(r),s[14]=r,s[15]=S):S=s[15];const $=S;let j;s[16]!==l.slug?(j=t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:l.slug},children:"Connections"})})}),s[16]=l.slug,s[17]=j):j=s[17];let P;s[18]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Y,{}),s[18]=P):P=s[18];let B;s[19]!==r||s[20]!==u||s[21]!==l.slug||s[22]!==o.appSlug?(B=u&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:l.slug,appSlug:o.appSlug},search:{tab:r},children:u.title})})}),t.jsx(Y,{})]}),s[19]=r,s[20]=u,s[21]=l.slug,s[22]=o.appSlug,s[23]=B):B=s[23];let U;s[24]!==$?(U=t.jsx(V,{children:t.jsx(Me,{children:$})}),s[24]=$,s[25]=U):U=s[25];let _;s[26]!==B||s[27]!==U||s[28]!==j?(_=t.jsx(_e,{children:t.jsxs(De,{children:[j,P,B,U]})}),s[26]=B,s[27]=U,s[28]=j,s[29]=_):_=s[29];const z=_;if(v){let D;return s[30]!==v||s[31]!==c||s[32]!==k||s[33]!==i?(D=t.jsx(v,{itemId:i,onBack:c,onUpdate:k}),s[30]=v,s[31]=c,s[32]=k,s[33]=i,s[34]=D):D=s[34],D}let x;s[35]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(At,{size:36,className:"text-muted-foreground"}),s[35]=x):x=s[35];let E;s[36]!==c?(E=t.jsx(Rt,{icon:x,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:c,children:"Go back"}}),s[36]=c,s[37]=E):E=s[37];let F;return s[38]!==z||s[39]!==E?(F=t.jsx(pe,{breadcrumb:z,children:E}),s[38]=z,s[39]=E,s[40]=F):F=s[40],F}function Yt(){const s=C.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const n=ae(e);if(decodeURIComponent(n.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Ht,{}),s[1]=a):a=s[1],a}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Qt,{}),s[2]=i):i=s[2],i}function Yo(){const s=C.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(ke,{children:t.jsx(w.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(le,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Yt,{})})}),s[0]=e):e=s[0],e}export{Yo as default};
|
|
1
|
+
import{P as Ke,R as te,e as C,j as t,E as ke,r as w,p as ie,G as Qe,c as J,bk as Ye,l as le,d as Xe,I as K,B as W,n as Ze,g as ae,bl as Pe}from"./index-uVHAmIsb.js";import{E as Ee}from"./empty-state-BKLgisam.js";import{u as et,a as Oe}from"./use-collections-CNY4Rigp.js";import{u as ce}from"./use-mcp-client-Bqv2ciYo.js";import{F as se,a as tt,b as de,d as me}from"./form-Z86e6etr.js";import{I as ue}from"./input-BYcDxHNs.js";import{T as re}from"./textarea-pwpin7Xo.js";import{a as st,b as ot,V as pe}from"./layout-BqzITPb8.js";import{S as nt,W as rt,a as it}from"./index-BdZLvIUs.js";import{g as lt,M as at,a as be}from"./types-CVQ_neIF.js";import{A as ct,a as dt,b as mt}from"./alert-ZcglsRSH.js";import{d as Ne,S as ve,a as Se,b as ye,c as oe}from"./select-DpIv2m7o.js";import{c as ut,b as we,T as Ce,a as Ie}from"./tooltip-C_pZvUmA.js";import{i as pt}from"./AlertCircle-DjOU_aot.js";import{T as xt,R as ft,a7 as ht,O as gt,a8 as jt,G as $e}from"./agent-icon-CCGqC-bl.js";import{a as bt}from"./Eye-BIZqMr-y.js";import{i as Nt}from"./Play-C933mY5z.js";import{i as vt}from"./ChevronRight-3jD7TdJZ.js";import{O as St,M as yt}from"./index-YE7XuOF9.js";import{g as wt}from"./connection-slug-eyAPH6o3.js";import{u as Ct,T as It}from"./tools-list-Dm-oDLPn.js";import{a as Re,u as Ae}from"./use-connection-Cd3-MJT5.js";import{b as $t}from"./use-mcp-tools-DNa7v9SS.js";import{c as Tt}from"./content-blocks-o63cs2vh.js";import{I as Te}from"./integration-icon-YIddy6rU.js";import{g as kt,i as Pt}from"./chat-context-CEWm5eLB.js";import{u as Et}from"./shell-layout-tEjGEg5-.js";import{M as Ot}from"./monaco-editor-BUU4dfTp.js";import{E as Rt}from"./empty-state-C4JeGg4X.js";import{n as At}from"./Container-Hfp9SJFa.js";import"./auth-ClbRbdVv.js";import"./label-6YORzGJ9.js";import"./index-DxJD6aw-.js";import"./sidebar-DawbXHdj.js";import"./LayoutLeft-CY1OP6dH.js";import"./sheet-J3PJeFDK.js";import"./X-B1W1F4mo.js";import"./index-DvG0T2G3.js";import"./collections-Cs_tB6Xp.js";import"./index-D36v7D1U.js";import"./use-virtual-mcp-Clsr41cX.js";import"./resizable-ZwB_SgdO.js";import"./ZoomOut-DC46Ewts.js";import"./badge-DIN7Nq6a.js";import"./spinner-BQT6CDh-.js";import"./view-mode-toggle-CnJNM_yP.js";import"./dialog-BwBYyWWk.js";import"./scroll-area-CixG0pJh.js";import"./index-Nc3tqGu_.js";import"./hover-card-DCrCVVSt.js";import"./dropdown-menu-CL4WEQRf.js";import"./Check-D7HZW6oZ.js";import"./DotsVertical-Cz5MZln-.js";import"./Plus-aXWGGcSy.js";import"./Tool01-DC4THSlP.js";import"./XClose-r0gXvFlp.js";import"./accordion-DBJsIIHl.js";import"./index-CmVsJNWn.js";import"./watch-sse-pool-DiiHGFSQ.js";import"./ChevronDown-CxTVikeq.js";import"./ChevronUp-Dbc77Gwp.js";import"./SwitchHorizontal01-Blia-yUi.js";import"./RefreshCcw01-DS1vtLKW.js";import"./XCircle-BtUzMyFW.js";import"./ArrowUpRight-BXJMGk9i.js";import"./ZapSquare-BQX2HOTP.js";import"./Users03-DiilXFZ6.js";import"./CheckCircle-XS4dmEOs.js";import"./ChevronLeft-BEmN2X52.js";import"./Globe01-CiCGKTg3.js";import"./FilterLines-iroXgkwP.js";import"./Star01-pwvCfpNJ.js";import"./Palette-BDd6wxPD.js";import"./HardDrive-B26C8dI3.js";import"./Stars02-vcxNwhIa.js";import"./Key01-DZeJDklU.js";import"./LinkExternal01-DwxMIV-o.js";import"./Monitor01-_FIjo4ge.js";import"./Sun-De2vWRC7.js";import"./SearchMd-Cr6CluRw.js";import"./Settings02-DeH66RiM.js";import"./Shield01-0kTDalL_.js";import"./Stars01-Bw7_Rdwp.js";import"./Trash01-DBSukaq0.js";import"./Upload01-DruP7_KV.js";import"./User01-Bweqikx-.js";import"./Users01-N436STOJ.js";import"./Zap-Dvtyg5Ik.js";import"./extract-connection-data-Dz_jOB39.js";import"./generate-id-C7CxZwCs.js";import"./use-registry-connections-Bdnyk0np.js";import"./use-organization-settings-CdYVljPu.js";import"./index-CiRwseKn.js";import"./popover-OWTo-ttg.js";import"./use-create-virtual-mcp-JNvxHXlx.js";import"./use-navigate-to-agent-CDxi6d1t.js";import"./mcp-oauth-Bqzn0Dif.js";import"./tab-id-DxwgE0jf.js";import"./decopilot-sse-pool-BZ8GwOYU.js";import"./studio-tools-Bsqb-6Fx.js";import"./use-ai-providers-CGgTldnc.js";import"./avatar-BG2RlqaT.js";import"./required-auth-layout-CgveTWoj.js";import"./useRouterState-BCoEdLHo.js";import"./use-org-sso-DvInKERU.js";import"./index-1vLRIaGM.js";Ke({title:te().min(1),description:te().nullable(),body:te()});function ne(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function _t(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Dt(s){const e=C.c(13),{form:n}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=o):o=e[0];let r;e[1]!==n.control?(r=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(se,{control:n.control,name:"title",render:zt}),t.jsx(se,{control:n.control,name:"description",render:Ut})]})]}),e[1]=n.control,e[2]=r):r=e[2];let i,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),a=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=i,e[4]=a):(i=e[3],a=e[4]);let c;e[5]!==n.control?(c=t.jsxs("div",{className:"flex flex-col gap-2",children:[i,a,t.jsx(se,{control:n.control,name:"body",render:Mt})]}),e[5]=n.control,e[6]=c):c=e[6];let l;e[7]!==r||e[8]!==c?(l=t.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:[r,c]}),e[7]=r,e[8]=c,e[9]=l):l=e[9];let p;return e[10]!==n||e[11]!==l?(p=t.jsx(tt,{...n,children:l}),e[10]=n,e[11]=l,e[12]=p):p=e[12],p}function Mt(s){const{field:e}=s;return t.jsx(de,{children:t.jsx(me,{children:t.jsx(re,{...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 Ut(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(me,{children:t.jsx(ue,{...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 zt(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(me,{children:t.jsx(ue,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Bt(s){const e=C.c(36),{providerId:n,promptId:o}=s,{org:r}=ie(),i=n||null;let a;e[0]!==r.id||e[1]!==r.slug||e[2]!==i?(a={connectionId:i,orgId:r.id,orgSlug:r.slug},e[0]=r.id,e[1]=r.slug,e[2]=i,e[3]=a):a=e[3];const c=ce(a),l=et(n,"PROMPT",o,c),p=Oe(n,"PROMPT",c),f=p.update.isPending;let u;e[4]!==l?(u=l?{title:l.title,description:l.description??null,body:ne(l)}:void 0,e[4]=l,e[5]=u):u=e[5];let h;e[6]!==u?(h={values:u},e[6]=u,e[7]=h):h=e[7];const N=Qe(h);let T;e[8]!==N||e[9]!==l?(T=()=>{l&&N.reset({title:l.title,description:l.description??null,body:ne(l)})},e[8]=N,e[9]=l,e[10]=T):T=e[10];const O=T;let R;e[11]!==p.update||e[12]!==N||e[13]!==o?(R=N.handleSubmit(async j=>{const P=await p.update.mutateAsync({id:o,data:{title:j.title,description:j.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:j.body}}]}});N.reset({title:P.title,description:P.description??null,body:ne(P)})}),e[11]=p.update,e[12]=N,e[13]=o,e[14]=R):R=e[14];const A=R;if(!l){let j;return e[15]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=j):j=e[15],j}let y;e[16]!==l.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:l.title}),e[16]=l.title,e[17]=y):y=e[17];let k;e[18]!==l.description?(k=l.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:l.description})]}):null,e[18]=l.description,e[19]=k):k=e[19];let I;e[20]!==y||e[21]!==k?(I=t.jsx(ot,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,k]})}),e[20]=y,e[21]=k,e[22]=I):I=e[22];let g;e[23]!==A?(g=()=>{A()},e[23]=A,e[24]=g):g=e[24];let v;e[25]!==N.formState.isDirty||e[26]!==f||e[27]!==O||e[28]!==g?(v=t.jsx(st,{children:t.jsx(nt,{onSave:g,onUndo:O,isDirty:N.formState.isDirty,isSaving:f})}),e[25]=N.formState.isDirty,e[26]=f,e[27]=O,e[28]=g,e[29]=v):v=e[29];let S;e[30]!==N?(S=t.jsx("div",{className:"h-full",children:t.jsx(Dt,{form:N})}),e[30]=N,e[31]=S):S=e[31];let $;return e[32]!==v||e[33]!==S||e[34]!==I?($=t.jsxs(pe,{children:[I,v,S]}),e[32]=v,e[33]=S,e[34]=I,e[35]=$):$=e[35],$}function Lt(s){const e=C.c(4),{itemId:n}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=_t(),e[0]=o):o=e[0];const r=o;if(!r){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=a):a=e[1],a}let i;return e[2]!==n?(i=t.jsx(ke,{children:t.jsx(w.Suspense,{fallback:null,children:t.jsx(Bt,{providerId:r,promptId:n})})}),e[2]=n,e[3]=i):i=e[3],i}function _e(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("min-w-0 overflow-hidden",n),e[3]=n,e[4]=r):r=e[4];let i;return e[5]!==o||e[6]!==r?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:r,...o}),e[5]=o,e[6]=r,e[7]=i):i=e[7],i}function De(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",n),e[3]=n,e[4]=r):r=e[4];let i;return e[5]!==o||e[6]!==r?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=i):i=e[7],i}function V(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=r):r=e[4];let i;return e[5]!==o||e[6]!==r?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:r,...o}),e[5]=o,e[6]=r,e[7]=i):i=e[7],i}function Q(s){const e=C.c(10);let n,o,r;e[0]!==s?({asChild:n,className:o,...r}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=r):(n=e[1],o=e[2],r=e[3]);const i=n?Ye:"a";let a;e[4]!==o?(a=J("hover:text-foreground transition-colors truncate",o),e[4]=o,e[5]=a):a=e[5];let c;return e[6]!==i||e[7]!==r||e[8]!==a?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:a,...r}),e[6]=i,e[7]=r,e[8]=a,e[9]=c):c=e[9],c}function Me(s){const e=C.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=J("text-foreground font-medium truncate",n),e[3]=n,e[4]=r):r=e[4];let i;return e[5]!==o||e[6]!==r?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:r,...o}),e[5]=o,e[6]=r,e[7]=i):i=e[7],i}function Y(s){const e=C.c(12);let n,o,r;e[0]!==s?({children:n,className:o,...r}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=r):(n=e[1],o=e[2],r=e[3]);let i;e[4]!==o?(i=J("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=i):i=e[5];let a;e[6]!==n?(a=n??t.jsx(vt,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==r||e[9]!==i||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...r,children:a}),e[8]=r,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}const Ft=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Vt(s){const e=C.c(11),{toolName:n,connectionId:o,siblings:r,onSelectInstance:i,onBack:a}=s;let c;e[0]!==o?(c={connectionId:o},e[0]=o,e[1]=c):c=e[1];const l=Ct(c);if(!l.isAuthenticated){let u;return e[2]!==l.supportsOAuth||e[3]!==a?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:l.supportsOAuth?t.jsx(St,{onAuthenticate:()=>a(),buttonText:"Go back to authenticate"}):t.jsx(yt,{hasReadme:!1})}),e[2]=l.supportsOAuth,e[3]=a,e[4]=u):u=e[4],u}const p=`${o}:${n}`;let f;return e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==p||e[9]!==n?(f=t.jsx(Jt,{toolName:n,connectionId:o,siblings:r,onSelectInstance:i},p),e[5]=o,e[6]=i,e[7]=r,e[8]=p,e[9]=n,e[10]=f):f=e[10],f}function Jt({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const{replayId:r}=Xe({strict:!1}),i=(()=>{if(!r)return null;const d=`replay-${r}`,m=sessionStorage.getItem(d);if(!m)return null;sessionStorage.removeItem(d);try{return JSON.parse(m)}catch{return null}})(),a=(()=>{if(!i)return null;const d={};for(const[m,b]of Object.entries(i))b!==null&&typeof b=="object"?d[m]=JSON.stringify(b,null,2):d[m]=b;return d})(),[c,l]=w.useState(a??{}),[p,f]=w.useState(i?JSON.stringify(i,null,2):"{}"),[u,h]=w.useState(null),[N,T]=w.useState(null),[O,R]=w.useState(null),[A,y]=w.useState(null),[k,I]=w.useState(!1),[g,v]=w.useState(null),{org:S}=ie(),$=Re(e),j=kt(),P=Pt(),{setChatOpen:B}=Et(),U=`${e}:${s}`,_=ce({connectionId:e,orgId:S.id,orgSlug:S.slug}),z=$t({client:_}),x=z.data?.tools?.find(d=>d.name===s),E=lt(x?._meta),F=d=>{if(!j)return;const m=Tt(d.content);m.content.length>0&&(B(!0),j.sendMessage({tiptapDoc:m}))},[D,X]=w.useState("json"),[Ue,ze]=w.useState(!1);E&&!Ue&&(X("ui"),ze(!0));const xe=x?.inputSchema?.properties,fe=xe?Object.keys(xe):[],q=fe.length>0,H={};if(q&&x?.inputSchema?.properties)for(const d of fe)H[d]=x.inputSchema.required?.includes(d)?"":void 0;const Z=d=>Object.prototype.hasOwnProperty.call(c,d),Be=async()=>{I(!0),y(null),h(null),T(null),R(null),v(null);const d=performance.now();try{if(!_)throw new Error("MCP client is not available");const m=q?{...H,...c}:(()=>{const M=p.trim();if(!M)return{};const L=JSON.parse(M);if(L&&typeof L=="object")return L;throw new Error("Raw JSON input must be an object.")})();q&&x?.inputSchema?.properties&&Object.entries(x.inputSchema.properties).forEach(([M,L])=>{if((L.type==="object"||L.type==="array")&&typeof m[M]=="string")try{m[M]=JSON.parse(m[M])}catch{}else if((L.type==="number"||L.type==="integer")&&typeof m[M]=="string"&&m[M]!==""){const je=Number(m[M]);Number.isNaN(je)||(m[M]=je)}});const b=await _.callTool({name:s,arguments:m}),G=b.structuredContent??b,We=performance.now(),He=Math.round(We-d);h(G),T(b),R(m);const Ge=JSON.stringify(G),ge=new TextEncoder().encode(Ge).length;v({duration:`${He}ms`,bytes:`${ge} bytes`,tokens:`~${Math.ceil(ge/4)} tokens`,cost:"$0.0000"})}catch(m){const b=m instanceof Error?m.message:String(m);y(b||"Unknown error occurred");const G=performance.now();v({duration:`${Math.round(G-d)}ms`})}finally{I(!1)}},ee=(d,m)=>{l(b=>({...b,[d]:m}))},Le=()=>{h(null),T(null),R(null),y(null),v(null)},Fe=x?.name??Ft(s),Ve=t.jsx(_e,{children:t.jsxs(De,{children:[t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:S.slug},children:"Connections"})})}),t.jsx(Y,{}),$&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:S.slug,appSlug:wt($)},search:{tab:"tools"},children:$.title})})}),t.jsx(Y,{})]}),t.jsx(V,{children:t.jsx(Me,{children:Fe})})]})}),he=n.length>1&&t.jsxs(Ne,{value:e,onValueChange:o,children:[t.jsx(ve,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(Se,{})}),t.jsx(ye,{children:n.map(d=>t.jsx(oe,{value:d.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Te,{icon:d.icon,name:d.title,size:"xs",className:"shrink-0"}),d.title]})},d.id))})]}),Je=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),x?.inputSchema?.required&&x.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:q&&x?.inputSchema?.properties?Object.entries(x.inputSchema.properties).map(([d,m])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[d,x.inputSchema?.required?.includes(d)&&t.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:m.type})]}),m.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:m.description}),m.type==="object"||m.type==="array"?t.jsx(re,{className:"font-mono text-xs",value:Z(d)?c[d]??"":H[d]??"",onChange:b=>ee(d,b.target.value),placeholder:`Enter ${d} as JSON...`,rows:3}):m.type==="boolean"?t.jsxs(Ne,{value:Z(d)?String(c[d]??""):"",onValueChange:b=>ee(d,b==="true"),children:[t.jsx(ve,{children:t.jsx(Se,{placeholder:"Select true or false..."})}),t.jsxs(ye,{children:[t.jsx(oe,{value:"true",children:"true"}),t.jsx(oe,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:Z(d)?c[d]??"":H[d]??"",onChange:b=>ee(d,b.target.value),placeholder:`Enter ${d}...`})]},d)):x?.inputSchema&&!q?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(re,{className:"font-mono text-xs min-h-[120px]",value:p,onChange:d=>f(d.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:k?t.jsxs(W,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Le,children:[t.jsx(xt,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(W,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Be,children:[t.jsx(Nt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),qe=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[g&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ft,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.duration})]}),g.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ht,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.tokens})]}),g.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(gt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.bytes})]}),g.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:g.cost})})]}),E&&t.jsx(ut,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(we,{children:[t.jsx(Ce,{asChild:!0,children:t.jsx(W,{size:"icon",variant:D==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("ui"),children:t.jsx(jt,{size:14})})}),t.jsx(Ie,{children:"Interactive view"})]}),t.jsxs(we,{children:[t.jsx(Ce,{asChild:!0,children:t.jsx(W,{size:"icon",variant:D==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("json"),children:t.jsx($e,{size:14})})}),t.jsx(Ie,{children:"JSON view"})]})]})})]})]}),A&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(ct,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(pt,{className:"h-4 w-4"}),t.jsx(dt,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(mt,{className:"text-xs text-destructive",children:A})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&D==="ui"&&_?t.jsx(w.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(at,{resourceURI:E,toolInfo:x?{tool:x}:void 0,toolInput:O??void 0,toolResult:N??void 0,displayMode:"fullscreen",minHeight:be.view.minHeight,maxHeight:be.view.maxHeight,client:_,onMessage:F,onUpdateModelContext:d=>P?.setAppContext(U,d),onTeardown:()=>P?.clearAppContext(U),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(Ot,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(W,{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(u,null,2)),Ze.success("Copied to clipboard")},children:t.jsx(bt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx($e,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(pe,{breadcrumb:Ve,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Te,{icon:$?.icon||null,name:$?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[z.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):z.isLoading?t.jsx(le,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:z.isSuccess?"ready":z.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:x?.annotations,_meta:x?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:he})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:x?.description||"No description available"})]}),n.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:"Instance"}),he]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Je}),qe]})})]})})}function qt(s){const e=C.c(10),{itemId:n,siblings:o,onBack:r}=s,[i,a]=w.useState(o[0]?.id??"");let c;e[0]!==i||e[1]!==o?(c=o.find(h=>h.id===i)?.id??o[0]?.id??"",e[0]=i,e[1]=o,e[2]=c):c=e[2];const l=c;if(!Re(l||void 0)||!l){let h;return e[3]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=h):h=e[3],h}let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(le,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=f):f=e[4];let u;return e[5]!==l||e[6]!==r||e[7]!==o||e[8]!==n?(u=t.jsx(w.Suspense,{fallback:f,children:t.jsx(Vt,{toolName:n,connectionId:l,siblings:o,onSelectInstance:a,onBack:r})}),e[5]=l,e[6]=r,e[7]=o,e[8]=n,e[9]=u):u=e[9],u}const Wt={workflow:it,workflow_execution:rt,prompt:Lt};function Ht(){const s=C.c(9),e=Pe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=ae(n),r=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Ae(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const l=c,p=Gt;let f;return s[5]!==l||s[6]!==r||s[7]!==a?(f=t.jsx(qt,{itemId:r,siblings:a,onBack:l,onUpdate:p}),s[5]=l,s[6]=r,s[7]=a,s[8]=f):f=s[8],f}async function Gt(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Qt(){const s=C.c(41),e=Pe();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=ae(n),r=decodeURIComponent(o.collectionName),i=decodeURIComponent(o.itemId);let a;s[1]!==e.history?(a=()=>{e.history.back()},s[1]=e.history,s[2]=a):a=s[2];const c=a,{org:l}=ie();let p;s[3]!==o.appSlug?(p={slug:o.appSlug},s[3]=o.appSlug,s[4]=p):p=s[4];const u=Ae(p)[0]??null,h=u?.id??"",N=h||"no-connection",T=h??null;let O;s[5]!==l.id||s[6]!==l.slug||s[7]!==T?(O={connectionId:T,orgId:l.id,orgSlug:l.slug},s[5]=l.id,s[6]=l.slug,s[7]=T,s[8]=O):O=s[8];const R=ce(O),A=Oe(N,r,R);let y;s[9]!==A||s[10]!==i?(y=async D=>{i&&await A.update.mutateAsync({id:i,data:D})},s[9]=A,s[10]=i,s[11]=y):y=s[11];const k=y;let I;s[12]!==r?(I=r?.toLowerCase(),s[12]=r,s[13]=I):I=s[13];const g=I,v=g&&Wt[g];let S;s[14]!==r?(S=Kt(r),s[14]=r,s[15]=S):S=s[15];const $=S;let j;s[16]!==l.slug?(j=t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:l.slug},children:"Connections"})})}),s[16]=l.slug,s[17]=j):j=s[17];let P;s[18]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Y,{}),s[18]=P):P=s[18];let B;s[19]!==r||s[20]!==u||s[21]!==l.slug||s[22]!==o.appSlug?(B=u&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(Q,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:l.slug,appSlug:o.appSlug},search:{tab:r},children:u.title})})}),t.jsx(Y,{})]}),s[19]=r,s[20]=u,s[21]=l.slug,s[22]=o.appSlug,s[23]=B):B=s[23];let U;s[24]!==$?(U=t.jsx(V,{children:t.jsx(Me,{children:$})}),s[24]=$,s[25]=U):U=s[25];let _;s[26]!==B||s[27]!==U||s[28]!==j?(_=t.jsx(_e,{children:t.jsxs(De,{children:[j,P,B,U]})}),s[26]=B,s[27]=U,s[28]=j,s[29]=_):_=s[29];const z=_;if(v){let D;return s[30]!==v||s[31]!==c||s[32]!==k||s[33]!==i?(D=t.jsx(v,{itemId:i,onBack:c,onUpdate:k}),s[30]=v,s[31]=c,s[32]=k,s[33]=i,s[34]=D):D=s[34],D}let x;s[35]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(At,{size:36,className:"text-muted-foreground"}),s[35]=x):x=s[35];let E;s[36]!==c?(E=t.jsx(Rt,{icon:x,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:c,children:"Go back"}}),s[36]=c,s[37]=E):E=s[37];let F;return s[38]!==z||s[39]!==E?(F=t.jsx(pe,{breadcrumb:z,children:E}),s[38]=z,s[39]=E,s[40]=F):F=s[40],F}function Yt(){const s=C.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const n=ae(e);if(decodeURIComponent(n.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Ht,{}),s[1]=a):a=s[1],a}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Qt,{}),s[2]=i):i=s[2],i}function Yo(){const s=C.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(ke,{children:t.jsx(w.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(le,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Yt,{})})}),s[0]=e):e=s[0],e}export{Yo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as B,j as s,c as M,B as V}from"./index-
|
|
1
|
+
import{e as B,j as s,c as M,B as V}from"./index-uVHAmIsb.js";import{c as z,a as _,b as $,D as E}from"./dropdown-menu-CL4WEQRf.js";import{i as L,n as O,d as R,b as A,c as F}from"./SwitchHorizontal01-Blia-yUi.js";import{i as S}from"./Check-D7HZW6oZ.js";import{T as I,a as K,c as P,b as W}from"./tooltip-C_pZvUmA.js";import{V as q}from"./view-mode-toggle-CnJNM_yP.js";import{B as G}from"./badge-DIN7Nq6a.js";function te(t){const e=B.c(31),{viewMode:r,onViewModeChange:m,sortKey:T,sortDirection:p,onSort:f,sortOptions:u,filters:h}=t;let g;e[0]!==u?(g=u===void 0?[]:u,e[0]=u,e[1]=g):g=e[1];const j=g;let b;e[2]!==h?(b=h===void 0?[]:h,e[2]=h,e[3]=b):b=e[3];const l=b;let v;e[4]!==l?(v=l.filter(J),e[4]=l,e[5]=v):v=e[5];const N=v.length;let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(R,{size:16}),e[6]=w):w=e[6];let i;e[7]!==N?(i=N>0&&s.jsx(G,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[7]=N,e[8]=i):i=e[8];let o;e[9]!==i?(o=s.jsx(I,{asChild:!0,children:s.jsx(_,{asChild:!0,children:s.jsxs(V,{variant:"outline",size:"icon",className:"relative",children:[w,i]})})}),e[9]=i,e[10]=o):o=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(K,{children:"Display & filters"}),e[11]=C):C=e[11];let n;e[12]!==o?(n=s.jsx(P,{children:s.jsxs(W,{children:[o,C]})}),e[12]=o,e[13]=n):n=e[13];let a;e[14]!==m||e[15]!==r?(a=m&&r&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:r,onValueChange:m,fullWidth:!0,options:[{value:"table",icon:s.jsx(A,{})},{value:"cards",icon:s.jsx(F,{})}]})}),e[14]=m,e[15]=r,e[16]=a):a=e[16];let c;e[17]!==f||e[18]!==p||e[19]!==T||e[20]!==j?(c=j.length>0&&f&&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"}),j.map(y=>{const D=T===y.id;return s.jsx(z,{onClick:()=>f(y.id),className:M("h-8 px-2 py-0 cursor-pointer",D&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[D&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!D&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:y.label}),D&&p&&(p==="asc"?s.jsx(L,{size:16,className:"text-foreground shrink-0"}):s.jsx(O,{size:16,className:"text-foreground shrink-0"}))]})},y.id)})]}),e[17]=f,e[18]=p,e[19]=T,e[20]=j,e[21]=c):c=e[21];let d;e[22]!==l?(d=l.map(H),e[22]=l,e[23]=d):d=e[23];let x;e[24]!==a||e[25]!==c||e[26]!==d?(x=s.jsxs($,{align:"end",className:"w-[200px] p-0 gap-0",children:[a,c,d]}),e[24]=a,e[25]=c,e[26]=d,e[27]=x):x=e[27];let k;return e[28]!==n||e[29]!==x?(k=s.jsxs(E,{children:[n,x]}),e[28]=n,e[29]=x,e[30]=k):k=e[30],k}function H(t){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:t.label}),t.options.map(e=>{const r=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:M("h-8 px-2 py-0 cursor-pointer",r&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[r&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!r&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function J(t){return t.value!=="ALL"}export{te as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as v,c as b,j as n,l as w}from"./index-
|
|
1
|
+
import{e as v,c as b,j as n,l as w}from"./index-uVHAmIsb.js";import{i as C}from"./SearchMd-Cr6CluRw.js";function S(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,p=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const h=i?"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 l;e[4]!==f?(l=f?n.jsx(w,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):n.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==p||e[11]!==r||e[12]!==d?(o=n.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:p,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=p,e[11]=r,e[12]=d,e[13]=o):o=e[13];let a;e[14]!==s||e[15]!==l||e[16]!==o?(a=n.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=a):a=e[17];let c;return e[18]!==t||e[19]!==a?(c=n.jsx("div",{className:t,children:a}),e[18]=t,e[19]=a,e[20]=c):c=e[20],c}export{S as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as k,j as s,c as C}from"./index-
|
|
1
|
+
import{e as k,j as s,c as C}from"./index-uVHAmIsb.js";import{e as S,d as R,a as T,T as H,b as L,c as z}from"./table-XS_vYE_1.js";import{i as D,n as E}from"./SwitchHorizontal01-Blia-yUi.js";function I(y){const e=k.c(29),{columns:r,data:f,sortKey:x,sortDirection:u,onSort:i,onRowClick:n,rowClassName:c}=y;let p;e[0]!==u?(p=function(t,h){return s.jsx("div",{className:"w-4 flex items-center justify-center",children:h&&u&&(u==="asc"?s.jsx(D,{size:16,className:"text-muted-foreground transition-colors"}):s.jsx(E,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=u,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 l;if(e[3]!==r||e[4]!==i||e[5]!==b||e[6]!==x){let o;e[8]!==r.length||e[9]!==i||e[10]!==b||e[11]!==x?(o=(t,h)=>{const N=x===t.id;return s.jsx(S,{className:C(a(h,r.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:s.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&b(t.id,N)]})},t.id)},e[8]=r.length,e[9]=i,e[10]=b,e[11]=x,e[12]=o):o=e[12],l=r.map(o),e[3]=r,e[4]=i,e[5]=b,e[6]=x,e[7]=l}else l=e[7];let g;e[13]!==l?(g=s.jsx(R,{className:"border-b-0",children:s.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:l})}),e[13]=l,e[14]=g):g=e[14];let j;if(e[15]!==r||e[16]!==f||e[17]!==n||e[18]!==c){let o;e[20]!==r||e[21]!==n||e[22]!==c?(o=(t,h)=>{const N=c?.(t);return s.jsx(T,{"data-row-index":h,className:C("group/data-row transition-colors border-b-0 hover:bg-accent/50",n?"cursor-pointer":"",N),onClick:n?()=>n(t):void 0,children:r.map(m=>s.jsx(H,{className:C("px-5 py-4 h-16 align-middle text-sm text-foreground",m.cellClassName,m.wrap?"whitespace-normal wrap-break-word":""),children:s.jsx("div",{className:C(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]=r,e[21]=n,e[22]=c,e[23]=o):o=e[23],j=f.map(o),e[15]=r,e[16]=f,e[17]=n,e[18]=c,e[19]=j}else j=e[19];let w;e[24]!==j?(w=s.jsx(L,{children:j}),e[24]=j,e[25]=w):w=e[25];let v;return e[26]!==g||e[27]!==w?(v=s.jsxs(z,{className:"w-full border-collapse",children:[g,w]}),e[26]=g,e[27]=w,e[28]=v):v=e[28],v}function B(y){const e=k.c(12),{columns:r,data:f,isLoading:x,sortKey:u,sortDirection:i,onSort:n,onRowClick:c,emptyState:p}=y;if(x===void 0?!1:x){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex items-center justify-center h-full",children:s.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||s.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No items found"}),e[1]=p,e[2]=a):a=e[2];let l;return e[3]!==a?(l=s.jsx("div",{className:"flex items-center justify-center h-full",children:a}),e[3]=a,e[4]=l):l=e[4],l}let d;return e[5]!==r||e[6]!==f||e[7]!==c||e[8]!==n||e[9]!==i||e[10]!==u?(d=s.jsx("div",{className:"flex-1",children:s.jsx(I,{columns:r,data:f,sortKey:u,sortDirection:i,onSort:n,onRowClick:c})}),e[5]=r,e[6]=f,e[7]=c,e[8]=n,e[9]=i,e[10]=u,e[11]=d):d=e[11],d}export{B as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as f,c as u,j as m}from"./index-
|
|
1
|
+
import{e as f,c as u,j as m}from"./index-uVHAmIsb.js";import{B as g}from"./badge-DIN7Nq6a.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{P as t,R as i,b7 as p,aF as r,aE as a,cr as m,bS as h,Q as c,aH as b}from"./index-
|
|
1
|
+
import{P as t,R as i,b7 as p,aF as r,aE as a,cr as m,bS as h,Q as c,aH as b}from"./index-uVHAmIsb.js";const N=t({id:i().describe("Unique identifier for the entity"),title:i().describe("Human-readable title for the entity"),description:i().nullish().describe("Description of the entity"),created_at:i().datetime(),updated_at:i().datetime(),created_by:i().optional(),updated_by:i().optional()}),f=t({field:a(i()),operator:r(["eq","gt","gte","lt","lte","in","like","contains"]),value:p()}),u=m(()=>h([f,t({operator:r(["and","or","not"]),conditions:a(u)})])),C=t({field:a(i()),direction:r(["asc","desc"]),nulls:r(["first","last"]).optional()}),S=t({where:u.optional().describe("Filter expression"),orderBy:a(C).optional().describe("Sort expressions"),limit:c().int().min(1).max(1e3).optional().describe("Maximum number of items to return"),offset:c().int().min(0).optional().describe("Number of items to skip")});function O(e){return t({items:a(e).describe("Array of collection items"),totalCount:c().int().min(0).optional().describe("Total number of matching items (if available)"),hasMore:b().optional().describe("Whether there are more items available")})}const E=t({id:i().describe("ID of the entity to retrieve")});function y(e){return t({item:e.nullable().describe("The retrieved item, or null if not found")})}function I(e){return t({data:e.partial().describe("Data for the new entity (id may be auto-generated)")})}function T(e){return t({item:e.describe("The created entity with generated id")})}function _(e){return t({id:i().describe("ID of the entity to update"),data:e.partial().describe("Partial entity data to update")})}function L(e){return t({item:e.describe("The updated entity")})}const D=t({id:i().describe("ID of the entity to delete")});function g(e){return t({item:e.describe("The deleted entity")})}function v(e,n,l){const o=e.toUpperCase(),d=l?.readOnly??!1,s=[{name:`COLLECTION_${o}_LIST`,inputSchema:S,outputSchema:O(n)},{name:`COLLECTION_${o}_GET`,inputSchema:E,outputSchema:y(n)}];return d||s.push({name:`COLLECTION_${o}_CREATE`,inputSchema:I(n),outputSchema:T(n),opt:!0},{name:`COLLECTION_${o}_UPDATE`,inputSchema:_(n),outputSchema:L(n),opt:!0},{name:`COLLECTION_${o}_DELETE`,inputSchema:D,outputSchema:g(n),opt:!0}),s}export{N as B,v as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as d,c as i,j as n}from"./index-
|
|
1
|
+
import{e as d,c as i,j as n}from"./index-uVHAmIsb.js";import{_ as m}from"./index-CiRwseKn.js";import{D as k,c as N,e as j,b,a as w}from"./dialog-BwBYyWWk.js";import{i as y}from"./SearchMd-Cr6CluRw.js";function C(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("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 l;return e[5]!==s||e[6]!==o?(l=n.jsx(m,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function S(a){const e=d.c(24);let t,s,o,l,r;e[0]!==a?({title:l,description:r,children:t,className:s,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5]);const _=l===void 0?"Command Palette":l,v=r===void 0?"Search for a command to run...":r;let c;e[6]!==_?(c=n.jsx(N,{children:_}),e[6]=_,e[7]=c):c=e[7];let p;e[8]!==v?(p=n.jsx(j,{children:v}),e[8]=v,e[9]=p):p=e[9];let u;e[10]!==c||e[11]!==p?(u=n.jsxs(b,{className:"sr-only",children:[c,p]}),e[10]=c,e[11]=p,e[12]=u):u=e[12];let f;e[13]!==s?(f=i("overflow-hidden p-0",s),e[13]=s,e[14]=f):f=e[14];let x;e[15]!==t?(x=n.jsx(C,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[15]=t,e[16]=x):x=e[16];let g;e[17]!==f||e[18]!==x?(g=n.jsx(w,{className:f,closeButtonClassName:"hidden",children:x}),e[17]=f,e[18]=x,e[19]=g):g=e[19];let h;return e[20]!==o||e[21]!==u||e[22]!==g?(h=n.jsxs(k,{...o,children:[u,g]}),e[20]=o,e[21]=u,e[22]=g,e[23]=h):h=e[23],h}function z(a){const e=d.c(9);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,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(y,{className:"size-5 shrink-0 text-foreground"}),e[3]=o):o=e[3];let l;e[4]!==t?(l=i("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]=l):l=e[5];let r;return e[6]!==s||e[7]!==l?(r=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[o,n.jsx(m.Input,{"data-slot":"command-input",className:l,...s})]}),e[6]=s,e[7]=l,e[8]=r):r=e[8],r}function G(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=d.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(m.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("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 l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("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 l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Item,{"data-slot":"command-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}export{L as C,R as a,C as b,z as c,G as d,H as e,B as f,S as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as T,r as E,p as w,F as P,a as B,j as s,B as I,K as z,n as A}from"./index-uVHAmIsb.js";import{c as K,e as Y,b as _,a as O,D as R}from"./dialog-BwBYyWWk.js";import{S as q}from"./spinner-BQT6CDh-.js";import{i as F}from"./Check-D7HZW6oZ.js";import{a as Q}from"./Eye-BIZqMr-y.js";import{u as $}from"./chat-context-CEWm5eLB.js";import{u as H}from"./studio-tools-Bsqb-6Fx.js";const L="bunx decocms@latest link",y={"claude-code":"Claude Code",codex:"Codex"};function S(i){return i.map(e=>y[e]).filter(e=>!!e)}function v(i){return Object.keys(y).filter(e=>!i.includes(e)).map(e=>y[e]).filter(e=>!!e)}function ee(i){const e=T.c(32),{open:f,onOpenChange:h}=i,t=$(),[g,D]=E.useState(!1),{org:j}=w(),C=P(),k=H();let n;e[0]!==k?(n=async()=>{await k.call("LINK_DISCONNECT",{})},e[0]=k,e[1]=n):n=e[1];let o;e[2]!==j||e[3]!==C?(o=()=>{C.invalidateQueries({queryKey:z.currentLink(j.id)})},e[2]=j,e[3]=C,e[4]=o):o=e[4];let p;e[5]!==n||e[6]!==o?(p={mutationFn:n,onSuccess:o,onError:M},e[5]=n,e[6]=o,e[7]=p):p=e[7];const u=B(p),b=t.online?"Desktop connected":"Connect your desktop";let a;e[8]!==b?(a=s.jsx(K,{children:b}),e[8]=b,e[9]=a):a=e[9];const N=t.online?"Your desktop is online. Pick a desktop agent in the chat to use it.":"Run this command in your desktop terminal. The dialog will close once your desktop is online.";let l;e[10]!==N?(l=s.jsx(Y,{children:N}),e[10]=N,e[11]=l):l=e[11];let c;e[12]!==a||e[13]!==l?(c=s.jsxs(_,{children:[a,l]}),e[12]=a,e[13]=l,e[14]=c):c=e[14];let r;e[15]!==g||e[16]!==t.online?(r=!t.online&&s.jsxs("div",{className:"flex items-center gap-2 rounded-md bg-muted px-3 py-2 font-mono text-sm",children:[s.jsx("span",{className:"flex-1",children:L}),s.jsx(I,{type:"button",variant:"ghost",size:"icon-sm",onClick:()=>{navigator.clipboard.writeText(L),D(!0),setTimeout(()=>D(!1),1500)},children:g?s.jsx(F,{size:14}):s.jsx(Q,{size:14})})]}),e[15]=g,e[16]=t.online,e[17]=r):r=e[17];let d;e[18]!==u||e[19]!==t.capabilities||e[20]!==t.hostname||e[21]!==t.machineId||e[22]!==t.online?(d=t.online?s.jsxs("div",{className:"flex flex-col gap-1 text-sm",children:[s.jsxs("p",{className:"text-foreground",children:[t.hostname??t.machineId??"Your desktop"," is linked."]}),S(t.capabilities).length>0&&s.jsxs("p",{className:"text-muted-foreground",children:["Available: ",S(t.capabilities).join(", ")]}),v(t.capabilities).length>0&&s.jsxs("p",{className:"text-muted-foreground",children:[v(t.capabilities).join(" and ")," ",v(t.capabilities).length>1?"were":"was"," ","not detected on this desktop. Install the CLI and sign in there — it appears here automatically within a minute."]}),s.jsx("div",{className:"flex justify-end pt-2",children:s.jsx(I,{type:"button",variant:"outline",size:"sm",disabled:u.isPending,onClick:()=>u.mutate(),className:"text-destructive hover:text-destructive",children:u.isPending?"Disconnecting…":"Disconnect desktop"})})]}):s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsx(q,{size:"sm"}),"Waiting for desktop…"]}),e[18]=u,e[19]=t.capabilities,e[20]=t.hostname,e[21]=t.machineId,e[22]=t.online,e[23]=d):d=e[23];let m;e[24]!==d||e[25]!==c||e[26]!==r?(m=s.jsxs(O,{className:"sm:max-w-md",children:[c,r,d]}),e[24]=d,e[25]=c,e[26]=r,e[27]=m):m=e[27];let x;return e[28]!==h||e[29]!==f||e[30]!==m?(x=s.jsx(R,{open:f,onOpenChange:h,children:m}),e[28]=h,e[29]=f,e[30]=m,e[31]=x):x=e[31],x}function M(i){A.error(`Disconnect failed: ${i.message}`)}export{ee as C,S as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as _}from"./connection-slug-eyAPH6o3.js";import{e as R,p as S,b3 as k,K as D,c as E,j as x}from"./index-
|
|
1
|
+
import{g as _}from"./connection-slug-eyAPH6o3.js";import{e as R,p as S,b3 as k,K as D,c as E,j as x}from"./index-uVHAmIsb.js";import{u as K}from"./use-registry-connections-Bdnyk0np.js";import{b as Q}from"./use-organization-settings-CdYVljPu.js";import{a as w,c as F}from"./use-mcp-client-Bqv2ciYo.js";import{u as H}from"./useInfiniteQuery-CL1ZPxL1.js";import{i as q,f as G}from"./extract-connection-data-Dz_jOB39.js";import{C as U}from"./card-ykuj7mlf.js";import{I as V}from"./integration-icon-YIddy6rU.js";function ae(s){const e=new Map;for(const o of s){const l=_(o),r=e.get(l);r?r.push(o):e.set(l,[o])}const t=[],u=new Set;for(const o of s){const l=_(o);if(u.has(l))continue;u.add(l);const r=e.get(l),m=r[0];r.length===1?t.push({type:"single",connection:m}):t.push({type:"group",key:l,icon:m.icon,title:m.app_name?m.title.replace(/\s*\(\d+\)\s*$/,""):m.title,connections:r})}return t}function ce(){const s=R.c(6),e=K(),t=Q(),u=S().project.enabledPlugins??[];let o;if(s[0]!==u||s[1]!==t||s[2]!==e){let l;s[4]!==t?(l=r=>t(r.id),s[4]=t,s[5]=l):l=s[5],o=e.filter(l).map(X),u.includes("private-registry")&&t(w)&&o.push({id:w,title:"Private Registry",icon:null}),s[0]=u,s[1]=t,s[2]=e,s[3]=o}else o=s[3];return o}function X(s){return{id:s.id,title:s.title,icon:s.icon}}const Y=24,T=3;function A(s){return s.id.includes("community-registry")}function z(s){const e=s?.trim();if(e)return{operator:"or",conditions:[{field:["title"],operator:"contains",value:e},{field:["description"],operator:"contains",value:e},{field:["name"],operator:"contains",value:e},{field:["server","title"],operator:"contains",value:e}]}}function $(s,e,t,u,o){const l=s.map(c=>c.id).sort().join(","),r=z(o),{data:m,fetchNextPage:d,hasNextPage:f,isFetchingNextPage:p,isLoading:b}=H({queryKey:D.storeDiscovery(e,`${l}:${o??""}`),queryFn:async({pageParam:c})=>{const n=c??{};return await Promise.all(s.map(async i=>{const y=n[i.id];if(y==="EXHAUSTED")return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]};const j=q(i.id,e);let h;for(let v=0;v<T;v++){let C=null;try{C=await F({connectionId:i.id,orgId:e,orgSlug:t});const I={limit:Y};y&&(I.cursor=y),r&&(I.where=r);const P=await C.callTool({name:j,arguments:I}),N=P.structuredContent??P,M=N.nextCursor||N.cursor||void 0,L=G(N?[N]:[]);return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:L,nextCursor:M}}catch(I){h=I}finally{await C?.close().catch(()=>{})}}return console.warn(`[useMergedStoreDiscovery] Registry "${i.title}" (${i.id}) failed after ${T} attempts:`,h),{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]}}))},initialPageParam:{},getNextPageParam:c=>{const n={};let a=!1;for(const i of c)i.registryId&&(i.nextCursor?(n[i.registryId]=i.nextCursor,a=!0):n[i.registryId]="EXHAUSTED");return a?n:void 0},staleTime:3600*1e3,placeholderData:k,retry:!1,enabled:s.length>0}),g=[];if(m?.pages)for(const c of m.pages)for(const n of c)for(const a of n.items)g.push({...a,_sourceName:a._sourceName??n.registryTitle,_sourceIcon:a._sourceIcon??n.registryIcon,_registryId:a._registryId??n.registryId});return{items:g,hasMore:f??!1,isLoadingMore:p,isInitialLoading:b,fetchNextPage:()=>{f&&!p&&d()}}}function ue(s,e){const t=R.c(16),{org:u}=S();let o;t[0]!==s?(o=s.filter(Z),t[0]=s,t[1]=o):o=t[1];const l=o;let r;t[2]!==s?(r=s.filter(W),t[2]=s,t[3]=r):r=t[3];const m=r,d=$(l,u.id,u.slug,!0,e),f=$(m,u.id,u.slug,!0,e);let p;if(t[4]!==f.items||t[5]!==d.items){const y=new Set;p=[];const j=[...d.items,...f.items];for(const h of j){const v=`${h._registryId}:${h.id}`;y.has(v)||(y.add(v),p.push(h))}t[4]=f.items,t[5]=d.items,t[6]=p}else p=t[6];const b=d.isInitialLoading||f.isInitialLoading,g=d.isLoadingMore||f.isLoadingMore,c=d.hasMore||f.hasMore;let n;t[7]!==f||t[8]!==d?(n=()=>{d.hasMore&&d.fetchNextPage(),f.hasMore&&f.fetchNextPage()},t[7]=f,t[8]=d,t[9]=n):n=t[9];const a=n;let i;return t[10]!==c||t[11]!==b||t[12]!==g||t[13]!==p||t[14]!==a?(i={items:p,hasMore:c,isLoadingMore:g,isInitialLoading:b,loadMore:a},t[10]=c,t[11]=b,t[12]=g,t[13]=p,t[14]=a,t[15]=i):i=t[15],i}function W(s){return A(s)}function Z(s){return!A(s)}function fe(s){const e=R.c(37),{connection:t,onClick:u,headerActions:o,headerActionsAlwaysVisible:l,body:r,footer:m,className:d,fallbackIcon:f}=s,p=l===void 0?!1:l,b=u&&"hover:bg-muted/50";let g;e[0]!==d||e[1]!==b?(g=E("cursor-pointer transition-colors group overflow-hidden flex flex-col h-full",b,d),e[0]=d,e[1]=b,e[2]=g):g=e[2];let c;e[3]!==t.icon||e[4]!==t.title||e[5]!==f?(c=x.jsx(V,{icon:t.icon,name:t.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:f}),e[3]=t.icon,e[4]=t.title,e[5]=f,e[6]=c):c=e[6];let n;e[7]!==o||e[8]!==p?(n=o&&x.jsx("div",{className:E("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100"),onClick:J,children:o}),e[7]=o,e[8]=p,e[9]=n):n=e[9];let a;e[10]!==n?(a=x.jsx("div",{className:"relative",children:n}),e[10]=n,e[11]=a):a=e[11];let i;e[12]!==c||e[13]!==a?(i=x.jsxs("div",{className:"flex items-start justify-between",children:[c,a]}),e[12]=c,e[13]=a,e[14]=i):i=e[14];let y;e[15]!==t.title?(y=x.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:t.title}),e[15]=t.title,e[16]=y):y=e[16];const j=t.description||"No description";let h;e[17]!==j?(h=x.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:j}),e[17]=j,e[18]=h):h=e[18];let v;e[19]!==h||e[20]!==y?(v=x.jsxs("div",{className:"flex flex-col gap-1",children:[y,h]}),e[19]=h,e[20]=y,e[21]=v):v=e[21];let C;e[22]!==r?(C=r&&x.jsx("div",{children:r}),e[22]=r,e[23]=C):C=e[23];let I;e[24]!==v||e[25]!==C||e[26]!==i?(I=x.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[i,v,C]}),e[24]=v,e[25]=C,e[26]=i,e[27]=I):I=e[27];let P;e[28]!==m?(P=m&&x.jsx("div",{className:"border-t border-border mt-auto",children:x.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:B,children:m})}),e[28]=m,e[29]=P):P=e[29];let N;e[30]!==I||e[31]!==P?(N=x.jsxs("div",{className:"flex flex-col flex-1",children:[I,P]}),e[30]=I,e[31]=P,e[32]=N):N=e[32];let M;return e[33]!==u||e[34]!==N||e[35]!==g?(M=x.jsx(U,{className:g,onClick:u,children:N}),e[33]=u,e[34]=N,e[35]=g,e[36]=M):M=e[36],M}function B(s){return s.stopPropagation()}function J(s){return s.stopPropagation()}export{fe as C,ue as a,ae as g,ce as u};
|