decocms 4.367.5 → 4.367.6
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-DnN73amm.js → AlertCircle-CZODjB-G.js} +1 -1
- package/dist/client/assets/{AreaChart-tgDBMHH-.js → AreaChart-CIyBmnKJ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-XVmyXzT1.js → ArrowLeft-qXobBdxD.js} +1 -1
- package/dist/client/assets/{ArrowRight-C5X_ZNy2.js → ArrowRight-_qaicB3i.js} +1 -1
- package/dist/client/assets/{ArrowUp-CPI9CNny.js → ArrowUp-B2y3FAZT.js} +1 -1
- package/dist/client/assets/{Check-Bxv_6vm1.js → Check-DYuLLcXz.js} +1 -1
- package/dist/client/assets/{CheckCircle-D6A5oB4p.js → CheckCircle-Cpa5ukkn.js} +1 -1
- package/dist/client/assets/{ChevronRight-CnNj4eZz.js → ChevronRight-BvrNCsKT.js} +1 -1
- package/dist/client/assets/{ChevronUp-DqQeOV1H.js → ChevronUp-B-GxN-tN.js} +1 -1
- package/dist/client/assets/{Copy01-lznapbKA.js → Copy01-BKbbYkAO.js} +1 -1
- package/dist/client/assets/{CreditCard01-BXcJiS22.js → CreditCard01-D16_sfKz.js} +1 -1
- package/dist/client/assets/{Database01-ClkFDWDG.js → Database01-C9bPAMOv.js} +1 -1
- package/dist/client/assets/{DotsVertical-B2EdGD-H.js → DotsVertical-BKAvE_4x.js} +1 -1
- package/dist/client/assets/{Download01-BjL9Q4CH.js → Download01-BvE_0avp.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BYd7dlrZ.js → ErrorBarContext-C42cr3OZ.js} +1 -1
- package/dist/client/assets/{Eye-BunsX0IL.js → Eye-CO0I0F0e.js} +1 -1
- package/dist/client/assets/{File02-ChvmdkAp.js → File02-Cnt06RSY.js} +1 -1
- package/dist/client/assets/{GitBranch01-Bj2U--5C.js → GitBranch01-BPIVJl4U.js} +1 -1
- package/dist/client/assets/{Globe01-C44OPauE.js → Globe01-DjDoxbql.js} +1 -1
- package/dist/client/assets/{HardDrive-BuYkYSPd.js → HardDrive-UFyvehqQ.js} +1 -1
- package/dist/client/assets/{Image01-BHWSoYgY.js → Image01-D3ZQNp9r.js} +1 -1
- package/dist/client/assets/{Key01-q0G-NfYN.js → Key01-0kVvyKcG.js} +1 -1
- package/dist/client/assets/{Link01-BYdywRZL.js → Link01-Ct7pxTAu.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CYW6oMa4.js → LinkExternal01-DCfxP5B_.js} +1 -1
- package/dist/client/assets/{MessageCircle01-PKJU_kXZ.js → MessageCircle01-CweHuqp7.js} +1 -1
- package/dist/client/assets/{Monitor01-v-NC0LAC.js → Monitor01-BWZHqfxa.js} +1 -1
- package/dist/client/assets/{Package-BlQhffiq.js → Package-T9dujty4.js} +1 -1
- package/dist/client/assets/{Palette-CKV7NEd1.js → Palette-B9i9hnCi.js} +1 -1
- package/dist/client/assets/{Play-CMyxMbjO.js → Play-BIZK_qUZ.js} +1 -1
- package/dist/client/assets/{Plus-DGRcwD1C.js → Plus-DaMIkku0.js} +1 -1
- package/dist/client/assets/{Printer-LFyevNNM.js → Printer-AWNoUKRJ.js} +1 -1
- package/dist/client/assets/{SearchLg-C3ZKLzF0.js → SearchLg-C2sftj0S.js} +1 -1
- package/dist/client/assets/{SearchMd-BJ1JfDmo.js → SearchMd-B6arCmyn.js} +1 -1
- package/dist/client/assets/{Sector-CSsOzbl3.js → Sector-BM01w_NE.js} +1 -1
- package/dist/client/assets/{Settings02-BxjmvoL1.js → Settings02-Cng3FY1l.js} +1 -1
- package/dist/client/assets/{Share07-DV6EcWz3.js → Share07-BgGqkker.js} +1 -1
- package/dist/client/assets/{Shield01-CVAE-iA-.js → Shield01-CVF7EZQb.js} +1 -1
- package/dist/client/assets/{Stars01-CDRvN6fQ.js → Stars01-DSWmseOt.js} +1 -1
- package/dist/client/assets/{Sun-ByqVPxWa.js → Sun-B2S_0TDV.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CSa05wqz.js → SwitchHorizontal01-BaPOYupn.js} +1 -1
- package/dist/client/assets/{Tool01-C2sl4oS8.js → Tool01-DW_T3YR5.js} +1 -1
- package/dist/client/assets/{Tool02-Boab0JMh.js → Tool02-zLL5jksN.js} +1 -1
- package/dist/client/assets/{Trash01-D10MWaS7.js → Trash01-CchLM2HV.js} +1 -1
- package/dist/client/assets/{TrendUp01-CsD4AjDF.js → TrendUp01-CSoUpxS1.js} +1 -1
- package/dist/client/assets/{Upload01-CP2Gss0k.js → Upload01-G3c4UCfB.js} +1 -1
- package/dist/client/assets/{User01-HCRUnfwJ.js → User01-CZRm273k.js} +1 -1
- package/dist/client/assets/{UserSquare-CzBMUItn.js → UserSquare-BdoEkD8Z.js} +1 -1
- package/dist/client/assets/{Users01-4eNyBeFs.js → Users01-D_H_0-Jf.js} +1 -1
- package/dist/client/assets/{Users03-DZxrVKZM.js → Users03-DSBIUomT.js} +1 -1
- package/dist/client/assets/{X-Df68-kGa.js → X-Dr0Tqjzv.js} +1 -1
- package/dist/client/assets/{XCircle-nMBHI38d.js → XCircle-Ce8PGmrS.js} +1 -1
- package/dist/client/assets/{XClose-Biw-w8yi.js → XClose-5naA93fy.js} +1 -1
- package/dist/client/assets/{Zap-dUD3-QQY.js → Zap-XMkPrxNc.js} +1 -1
- package/dist/client/assets/{ZoomOut-CR5b1C5j.js → ZoomOut-BLK0GcJv.js} +1 -1
- package/dist/client/assets/{access-gate-CujU4RfE.js → access-gate-Cql3KqwB.js} +1 -1
- package/dist/client/assets/{add-connection-dialog--adN0Sqj.js → add-connection-dialog-BFK-aGDM.js} +1 -1
- package/dist/client/assets/{agent-analytics-eWHu5DTt.js → agent-analytics-BiLU3geK.js} +1 -1
- package/dist/client/assets/agent-app-CmHjLSBh.js +1 -0
- package/dist/client/assets/{agent-assets-Cn7JoWXb.js → agent-assets-l4c7ivCP.js} +1 -1
- package/dist/client/assets/{agent-automation-BSKvYosf.js → agent-automation-Dr_aQL2N.js} +1 -1
- package/dist/client/assets/{agent-automations-DF1MxYOz.js → agent-automations-BtQVYGNC.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-xG1C2rM6.js → agent-connect-sources-B72Z2yOq.js} +1 -1
- package/dist/client/assets/agent-deck-BmbZkAAh.js +1 -0
- package/dist/client/assets/{agent-e2e-Dn0A3WpY.js → agent-e2e-BC-S1G-I.js} +1 -1
- package/dist/client/assets/agent-file-DWz6GUfE.js +1 -0
- package/dist/client/assets/{agent-git-CY5p5ep3.js → agent-git-BCY9JF0p.js} +1 -1
- package/dist/client/assets/{agent-hosting-aXTVd4NM.js → agent-hosting-BTRnh7Qw.js} +1 -1
- package/dist/client/assets/{agent-icon-CQLL7oQA.js → agent-icon-I_u5FzRN.js} +1 -1
- package/dist/client/assets/agent-library-file-Buf4K-5l.js +1 -0
- package/dist/client/assets/{agent-monitor-BPy3Zx5C.js → agent-monitor-C3BUSOjB.js} +1 -1
- package/dist/client/assets/{agent-overview-Bdo9pXFc.js → agent-overview-DLgGJyEN.js} +1 -1
- package/dist/client/assets/agent-settings-D9FokKv0.js +1 -0
- package/dist/client/assets/{agent-site-editor-BUlEwPeW.js → agent-site-editor-CcVudugZ.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Bjs5yYWF.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-C1e9OU1F.js → agent-site-editor-content-C_xKa1S3.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-CHL3OjfL.js → agent-site-editor-preview-DHkNf2Kb.js} +3 -3
- package/dist/client/assets/agent-view-DMFjk5Go.js +1 -0
- package/dist/client/assets/{agent-view-guard-CDMKVKUO.js → agent-view-guard-jbDY82eS.js} +1 -1
- package/dist/client/assets/{agents-list-BOOwFdef.js → agents-list-CF5eQ1pF.js} +1 -1
- package/dist/client/assets/{ai-providers-sMmu9wsX.js → ai-providers-COjB4NMg.js} +1 -1
- package/dist/client/assets/{alert-C14pJE8a.js → alert-DwSbSu1x.js} +1 -1
- package/dist/client/assets/{alert-dialog-UIve_Qbz.js → alert-dialog-dzu9U-o1.js} +1 -1
- package/dist/client/assets/api-keys-CWLFncf0.js +1 -0
- package/dist/client/assets/{api-keys-D2jNxWS5.js → api-keys-Cpho4Cho.js} +1 -1
- package/dist/client/assets/app-editor-BwzQ2tDT.js +1 -0
- package/dist/client/assets/{asset-utils-6ysSrocK.js → asset-utils-DLlbY7-O.js} +1 -1
- package/dist/client/assets/{auth-DmzS8LV2.js → auth-UveS8wF5.js} +1 -1
- package/dist/client/assets/{auth-catchall-Ca2pTkME.js → auth-catchall-CxHpvtO-.js} +1 -1
- package/dist/client/assets/{auth-entry-C64nF1Ms.js → auth-entry-BVtguEOj.js} +1 -1
- package/dist/client/assets/{auth-split-layout-d1DjV_Yi.js → auth-split-layout-DzJReBpa.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DFWHiV6v.js → authenticate-and-persist-oauth-CrVNvw_C.js} +1 -1
- package/dist/client/assets/{automation-list-row-B9jAq9z4.js → automation-list-row-CXkhnqzA.js} +1 -1
- package/dist/client/assets/{automation-runs-BzTOS9F7.js → automation-runs-DBxHk2or.js} +1 -1
- package/dist/client/assets/{automations-DDJD4roA.js → automations-DFVUH58q.js} +1 -1
- package/dist/client/assets/{autosend-DJaBf7X2.js → autosend-BsJQ1aCs.js} +1 -1
- package/dist/client/assets/{avatar-BkGSc9H5.js → avatar-DV69nhm1.js} +1 -1
- package/dist/client/assets/{badge-CZpoNlx_.js → badge-Bx6TdTjC.js} +1 -1
- package/dist/client/assets/{block-document-BetLtfOz.js → block-document-Bz-5kssp.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Lz1gj5TO.js → blocks-preview-workspace-context-CzxgcZDm.js} +1 -1
- package/dist/client/assets/{breadcrumb-BHbw_kt8.js → breadcrumb-D4EWX36X.js} +1 -1
- package/dist/client/assets/{buckets-C2TBlqFE.js → buckets-B9z_Rm90.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-2Kj0ps7w.js → build-improve-prompt-doc-BWFSRTpm.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BT7d_iMl.js → bulk-category-panel-Dq461a8g.js} +1 -1
- package/dist/client/assets/{calendar-BJTEYvCF.js → calendar-BGdb4p0V.js} +1 -1
- package/dist/client/assets/{capability-load-error-wXKD3wMZ.js → capability-load-error-Dnwh9vPw.js} +1 -1
- package/dist/client/assets/{cards-CGLoDCpv.js → cards-CnQ4nU1q.js} +1 -1
- package/dist/client/assets/{category-editor-1f2gwKY5.js → category-editor-DYvQntUV.js} +1 -1
- package/dist/client/assets/{chart-ReltbOFE.js → chart-D7o3Rjgy.js} +1 -1
- package/dist/client/assets/{chat-context-CCpuTz2y.js → chat-context-Bj6XM8r6.js} +1 -1
- package/dist/client/assets/{chat-draft-BCtS6jQv.js → chat-draft-B57QKpbd.js} +1 -1
- package/dist/client/assets/{checkbox-C_yQd9-l.js → checkbox-DXk_ASm3.js} +1 -1
- package/dist/client/assets/{choose-editor-iAt-xDCA.js → choose-editor-yiYqZgm0.js} +1 -1
- package/dist/client/assets/{cli-auth-success-D0CsTuda.js → cli-auth-success-DaIMiHKG.js} +1 -1
- package/dist/client/assets/{client-icons-hGGX6Uo0.js → client-icons-BIZcUQix.js} +1 -1
- package/dist/client/assets/{collapsible-BBXFOyeS.js → collapsible-DvCpQaDP.js} +1 -1
- package/dist/client/assets/{collection-detail-CcxacW9K.js → collection-detail-GwafUKCA.js} +1 -1
- package/dist/client/assets/{collection-display-button-DwJpdHBM.js → collection-display-button-C8HgvUa3.js} +1 -1
- package/dist/client/assets/{collection-search-u7viusIZ.js → collection-search-BgR7E5C_.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Dt0i03qe.js → collection-table-wrapper-CenPQBXL.js} +1 -1
- package/dist/client/assets/{collection-tabs-DCuy8V17.js → collection-tabs-BKMxlcTD.js} +1 -1
- package/dist/client/assets/{command-tKFpnUWi.js → command-PF8SQ01C.js} +1 -1
- package/dist/client/assets/{command-palette-store-D_KrAOxe.js → command-palette-store-3XeVzDCK.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CYcavt6d.js → companion-mcps-section-BcH1woZ_.js} +1 -1
- package/dist/client/assets/{connect-BORMc4s_.js → connect-cRr5yrcf.js} +1 -1
- package/dist/client/assets/{connect-layout-DBwBtlb7.js → connect-layout-DlS-pJxG.js} +1 -1
- package/dist/client/assets/{connection-BAtKmP5z.js → connection-D83jUgKt.js} +1 -1
- package/dist/client/assets/{connection-card-DmcRJGd6.js → connection-card-B6pHDnUn.js} +1 -1
- package/dist/client/assets/{connection-detail-Bl9OQ2_2.js → connection-detail-cjhq0_Le.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-ChXzy84U.js → connection-form-helpers-CjgrOGRh.js} +1 -1
- package/dist/client/assets/{connections-BM_owntf.js → connections-jZ71xb1b.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-D2vLvEWI.js → create-organization-dialog-Wy8ivV4K.js} +1 -1
- package/dist/client/assets/{decofile-api-DOQaHe6-.js → decofile-api-DGTmPuak.js} +1 -1
- package/dist/client/assets/{decopilot-U6qm51mC.js → decopilot-BQ5v61IW.js} +1 -1
- package/dist/client/assets/{dialog-CDIoGuZ9.js → dialog-DKHdGeG-.js} +1 -1
- package/dist/client/assets/{discover-CJtERFqE.js → discover-BpZ5XWNf.js} +1 -1
- package/dist/client/assets/{domain-settings-AexGm65m.js → domain-settings-bYxFZI5Z.js} +1 -1
- package/dist/client/assets/{download-app-dialog-CZpe9Bpu.js → download-app-dialog-BhmQVCrs.js} +1 -1
- package/dist/client/assets/{drawer-DD_d9Ihm.js → drawer-B1TxBXeW.js} +1 -1
- package/dist/client/assets/{dropdown-menu-lXpvP8fX.js → dropdown-menu-CoycaRIZ.js} +1 -1
- package/dist/client/assets/{editor-pfBZu3U7.js → editor-BEf-Idam.js} +1 -1
- package/dist/client/assets/{empty-state-CUxtDNbB.js → empty-state-BN3l0e1m.js} +1 -1
- package/dist/client/assets/{empty-state-B-bUlmIL.js → empty-state-BuDUIKwc.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BdkbURJm.js → extract-connection-data-Bs0-7FAn.js} +1 -1
- package/dist/client/assets/{feature-gate-ilSWzddu.js → feature-gate-DXl7j_Gb.js} +1 -1
- package/dist/client/assets/{feature-paywall-CGQIXFyp.js → feature-paywall-2uPHyVRd.js} +1 -1
- package/dist/client/assets/{file-explorer-Y4B8gahR.js → file-explorer-CWZPR_uA.js} +1 -1
- package/dist/client/assets/{file-preview-BArnKs-h.js → file-preview-CZ1TplhI.js} +1 -1
- package/dist/client/assets/{file-share-button-yaLXJrdZ.js → file-share-button-I_P-fFZ5.js} +1 -1
- package/dist/client/assets/{file-type-icon-Xl3X9h9X.js → file-type-icon-SwABlaSO.js} +1 -1
- package/dist/client/assets/{folder-icon-DgraP_jj.js → folder-icon-Bj6hz7oH.js} +1 -1
- package/dist/client/assets/{form-D3bb_HbP.js → form-CCI8usbr.js} +1 -1
- package/dist/client/assets/{gateway-client-MOoaTBYd.js → gateway-client-2Mbrw7Hg.js} +1 -1
- package/dist/client/assets/{general-DGadMqdI.js → general-T1zzubww.js} +1 -1
- package/dist/client/assets/{github-icon-OYnbrvjW.js → github-icon-CCyh_tld.js} +1 -1
- package/dist/client/assets/{home-R10BeitL.js → home-nMTACPWA.js} +1 -1
- package/dist/client/assets/{hooks-DxGBuaYU.js → hooks-C4BbSdNW.js} +1 -1
- package/dist/client/assets/{hooks-BFEQOnMH.js → hooks-DxP9ms8F.js} +1 -1
- package/dist/client/assets/{index-BeOidgbu.js → index-B7wVUCeI.js} +1 -1
- package/dist/client/assets/{index-ClORI_ru.js → index-BIFBhz6Y.js} +1 -1
- package/dist/client/assets/{index-DB6Ge3je.js → index-BW3bCYgD.js} +1 -1
- package/dist/client/assets/{index-H6rDZVZ0.js → index-BeW32OQZ.js} +1 -1
- package/dist/client/assets/{index-BcAU6jUB.js → index-BpW_HPV1.js} +1 -1
- package/dist/client/assets/{index-DtMPShzz.js → index-BzGfYuHA.js} +1 -1
- package/dist/client/assets/{index-36q0KH9q.js → index-C1OUd215.js} +1 -1
- package/dist/client/assets/{index-DnAk9Nyh.js → index-CR7IhZdQ.js} +1 -1
- package/dist/client/assets/{index-DBO9cCXt.js → index-CfiHR5p3.js} +2 -2
- package/dist/client/assets/{index-7GIBUNmw.js → index-D6hy4U5O.js} +1 -1
- package/dist/client/assets/{index-IErtOCOr.js → index-DplUenCs.js} +1 -1
- package/dist/client/assets/{index-BO3LYThj.js → index-DvsuDjpW.js} +1 -1
- package/dist/client/assets/{index-X5MI3pus.js → index-L41E_jdu.js} +1 -1
- package/dist/client/assets/{index-CfkgapAu.js → index-S-urKMuN.js} +1 -1
- package/dist/client/assets/{index-redirect-DJd8-Xc3.js → index-redirect-D31X29B5.js} +1 -1
- package/dist/client/assets/{index-C_U_Ej5y.js → index-wju8DM5a.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-B2DNwqpn.js → infiniteQueryObserver-F_wqd-Rj.js} +1 -1
- package/dist/client/assets/{infra-billing-B7aFZq_z.js → infra-billing-D0PNqi3s.js} +1 -1
- package/dist/client/assets/{input-BqEtrH9V.js → input-DOqceFPC.js} +1 -1
- package/dist/client/assets/{input-MnCp8I9S.js → input-S-gsq7gD.js} +1 -1
- package/dist/client/assets/{input-Cib8uNJq.js → input-SZCoDRD-.js} +1 -1
- package/dist/client/assets/{integration-icon-CI_HCWP1.js → integration-icon-_HXUWC0Q.js} +1 -1
- package/dist/client/assets/{label-C7gaXCZI.js → label-DCUE6TYd.js} +1 -1
- package/dist/client/assets/{last-preview-page-CjF-vPej.js → last-preview-page-D9Fx5pKm.js} +1 -1
- package/dist/client/assets/{layout-Da4R3PKB.js → layout-DRh2IKmg.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-C5W7c4qv.js → legacy-agents-deep-BPmqpQyn.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-C4YsYRGW.js → legacy-main-redirect-34brc64A.js} +1 -1
- package/dist/client/assets/{library-Uh4LG-cO.js → library-D0EEtDE-.js} +1 -1
- package/dist/client/assets/{login-BCqFTTN3.js → login-wXsz7PP7.js} +1 -1
- package/dist/client/assets/{markdown-BA0OOTT5.js → markdown-CCv5IlPx.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DNK8Ww9U.js → mcp-app-renderer-BVpwtvW6.js} +1 -1
- package/dist/client/assets/{mcp-oauth-E1-_MSLJ.js → mcp-oauth-DbZXTEaP.js} +1 -1
- package/dist/client/assets/{members-DMFS5j6T.js → members-D8EXLICP.js} +1 -1
- package/dist/client/assets/{message-templates-CHL289gR.js → message-templates-xXuDAWxI.js} +1 -1
- package/dist/client/assets/{mini-report-page-D55GaVnW.js → mini-report-page-BuRwBHqD.js} +1 -1
- package/dist/client/assets/{mock-board-CJ3XB0zZ.js → mock-board-CRzDhPtf.js} +3 -3
- package/dist/client/assets/{monaco-editor-DcRJRpxQ.js → monaco-editor-QBiS6INp.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C2LqUf0n.js → monitoring-stats-row-YHUVjX34.js} +1 -1
- package/dist/client/assets/{multi-select-Bjr_EhQN.js → multi-select-BPe8FRks.js} +1 -1
- package/dist/client/assets/{mustache-itxfxEAe.js → mustache-Cghs0xAa.js} +1 -1
- package/dist/client/assets/{oauth-callback-BWcHdGO5.js → oauth-callback-DasyYGDW.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BTf9EDbX.js → oauth-callback-ai-provider-PZGmoG1J.js} +1 -1
- package/dist/client/assets/{onboarding-BBCR8xK6.js → onboarding-CxwToftc.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BUuVL5HA.js → optimistic-project-sidebar-views-CkdziasT.js} +1 -1
- package/dist/client/assets/{organization-choice-DzRgCtEh.js → organization-choice-DyW08sxK.js} +1 -1
- package/dist/client/assets/{orgs-DQtWe6lg.js → orgs-DJ8iJmJH.js} +1 -1
- package/dist/client/assets/{page-seo-form-BNgf6hzv.js → page-seo-form-Di_npWJ4.js} +1 -1
- package/dist/client/assets/{pair-Cq_eCXFK.js → pair-Dpg5RzdY.js} +1 -1
- package/dist/client/assets/{plan-ladder-C-CKfgUk.js → plan-ladder-ClS63sS8.js} +1 -1
- package/dist/client/assets/{popover-DR-dG5KR.js → popover-RErMjkys.js} +1 -1
- package/dist/client/assets/{post-calendar-BYiZ29h-.js → post-calendar-Ba_bnQmW.js} +1 -1
- package/dist/client/assets/{post-editor-CV_ATL0Q.js → post-editor-CMawN_7j.js} +1 -1
- package/dist/client/assets/{preview-content-bwgn_bz9.js → preview-content-Cir3xjov.js} +1 -1
- package/dist/client/assets/{preview-dialog-Cfw3j9Dw.js → preview-dialog-DXRDlQ04.js} +1 -1
- package/dist/client/assets/{primitives-Cm5UH1ss.js → primitives-D5fyRotM.js} +1 -1
- package/dist/client/assets/{profile-H1FxU5Go.js → profile-CARb014r.js} +1 -1
- package/dist/client/assets/{project-app-view-Cp5-B5A0.js → project-app-view-CbZ9X9YB.js} +1 -1
- package/dist/client/assets/{project-feed-BMnjN7RJ.js → project-feed-BnvodKMh.js} +1 -1
- package/dist/client/assets/{project-icon-CDxBSoB_.js → project-icon-B0ih2u61.js} +1 -1
- package/dist/client/assets/project-reports-N4YBKsf_.js +1 -0
- package/dist/client/assets/project-tasks-Bhadpjy2.js +1 -0
- package/dist/client/assets/{prompts-Xn8WtcY4.js → prompts-DC4p_0y3.js} +1 -1
- package/dist/client/assets/record-editor-B7I5ENzo.js +1 -0
- package/dist/client/assets/{redirect-editor-DLE97NUb.js → redirect-editor-B55pPerd.js} +1 -1
- package/dist/client/assets/registry-C0G-_nW5.js +2 -0
- package/dist/client/assets/{registry-layout-CrzAqZeN.js → registry-layout-hY2gP5kb.js} +1 -1
- package/dist/client/assets/reports-B1m4nLcC.js +1 -0
- package/dist/client/assets/{reports-CV3sX1WT.js → reports-BRDL0pEv.js} +1 -1
- package/dist/client/assets/{reports-onboarding-UzOhW8yd.js → reports-onboarding-CVlJWsoz.js} +1 -1
- package/dist/client/assets/{reports-tab-CPU-wV1j.js → reports-tab-DSQtYmT9.js} +2 -2
- package/dist/client/assets/{repositories-CABW2wYh.js → repositories-D8heZRgl.js} +1 -1
- package/dist/client/assets/{repository-import-picker-BqkK7zXL.js → repository-import-picker-C2CebsOL.js} +1 -1
- package/dist/client/assets/{repository-picker-BsfTUz0Z.js → repository-picker-5XZZ15v0.js} +1 -1
- package/dist/client/assets/{require-capability-DCm3xEVH.js → require-capability-BJkKy0kt.js} +1 -1
- package/dist/client/assets/{required-auth-layout-By-Cm9L3.js → required-auth-layout-BwX4AD0R.js} +1 -1
- package/dist/client/assets/{reset-password-BbkaUrpa.js → reset-password-D0tmp0EO.js} +1 -1
- package/dist/client/assets/{resizable-noYdBaXy.js → resizable-DDt8g8vK.js} +1 -1
- package/dist/client/assets/{review-settings-xEEquwgL.js → review-settings-BuR2yqLd.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-D0WOrLmt.js → rich-text-link-control-BU04B-4N.js} +1 -1
- package/dist/client/assets/{roles-0HIRr5Ri.js → roles-Dlq8_r8a.js} +1 -1
- package/dist/client/assets/{route-DCadoPQC.js → route-CVpzQ3gM.js} +1 -1
- package/dist/client/assets/{route-DKnEJmhu.js → route-DE-oHInD.js} +1 -1
- package/dist/client/assets/{route-DrLKmE9A.js → route-Kp0M8uVs.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-pB3LBrJG.js → runnable-block-editor-CS_U3fa-.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DYGk3uhe.js → sandbox-lifecycle-context-CsT5D-QV.js} +1 -1
- package/dist/client/assets/{schema-BeeGelcJ.js → schema-kS1q2dfz.js} +1 -1
- package/dist/client/assets/{scroll-area-DMzzzKoj.js → scroll-area-CXYGaVSO.js} +1 -1
- package/dist/client/assets/{search-input-DT6HnLyR.js → search-input-BtpfjT5l.js} +1 -1
- package/dist/client/assets/{secrets-CWw6j4gW.js → secrets-DriRRH1t.js} +1 -1
- package/dist/client/assets/{sections-editor-CXpbeOKT.js → sections-editor-C9C533d2.js} +1 -1
- package/dist/client/assets/{select-Bg8M-SBL.js → select-BOl9wnf6.js} +1 -1
- package/dist/client/assets/{select-model-BTAEn-o-.js → select-model-S4XMti-S.js} +1 -1
- package/dist/client/assets/{seo-editor-CsF8qWXD.js → seo-editor-BFKhbHb8.js} +1 -1
- package/dist/client/assets/{settings-tab-a6jg2R8E.js → settings-tab-CzTdGYon.js} +1 -1
- package/dist/client/assets/{sheet-DXK46bFL.js → sheet-Ceo6cjp6.js} +1 -1
- package/dist/client/assets/{shell-layout-zxLGAzC4.js → shell-layout-CQI5EYIN.js} +1 -1
- package/dist/client/assets/{sidebar-H--OWLmJ.js → sidebar-Cr04YrvT.js} +1 -1
- package/dist/client/assets/{skill-preview-y37W05KI.js → skill-preview-CJENC0FV.js} +1 -1
- package/dist/client/assets/{skills-ZTxx2FQt.js → skills-_wNQ3Q4Z.js} +1 -1
- package/dist/client/assets/{sso-DtS1pp7O.js → sso-DcjvBhN8.js} +1 -1
- package/dist/client/assets/{store-CCMmsV8z.js → store-C8yaccqA.js} +1 -1
- package/dist/client/assets/store-registry-C4goSG7S.js +2 -0
- package/dist/client/assets/{switch-BJbN9Hof.js → switch-DbzO6PiM.js} +1 -1
- package/dist/client/assets/{synced-repos-dT-fmTlS.js → synced-repos-CUy4rER9.js} +1 -1
- package/dist/client/assets/{table-CPJOwfRj.js → table-CUSmiMk_.js} +1 -1
- package/dist/client/assets/{tabs-M6MjL7bf.js → tabs-52cPaZXm.js} +1 -1
- package/dist/client/assets/{task-board-DqB2XE8W.js → task-board-CurTs85l.js} +1 -1
- package/dist/client/assets/{task-route-D_gHz_Ej.js → task-route-Bm0ou-_S.js} +1 -1
- package/dist/client/assets/{task-status-C7QvXgZU.js → task-status-BaM-QAj1.js} +1 -1
- package/dist/client/assets/tasks-B9F5PMjK.js +1 -0
- package/dist/client/assets/{tasks-DWgtKv6L.js → tasks-BwcO5_EM.js} +1 -1
- package/dist/client/assets/{textarea-DHCNd9eE.js → textarea-Q7sXwojB.js} +1 -1
- package/dist/client/assets/{thread-intent-C9vyWsKq.js → thread-intent-DEVJhxVt.js} +1 -1
- package/dist/client/assets/{thread-route-Ikku3vet.js → thread-route-D6xj1qQJ.js} +1 -1
- package/dist/client/assets/{thread-route-CsLpKMHf.js → thread-route-Dwt9n8IO.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DWP_ioKW.js → thread-sheet-body-BZp0HOAe.js} +1 -1
- package/dist/client/assets/{toggle-group-wc_J_R0E.js → toggle-group-CXPhZI2J.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BUHr7qyk.js → toolbar-icon-button-B5qgEXx3.js} +1 -1
- package/dist/client/assets/{tooltip-jmvQwLuk.js → tooltip-DIW02rf-.js} +1 -1
- package/dist/client/assets/{track-DyNbDPiZ.js → track-B4UKRWe_.js} +1 -1
- package/dist/client/assets/{types-raXS_M8t.js → types-B3jTqzVf.js} +1 -1
- package/dist/client/assets/{usage-stats-CHgRSpwy.js → usage-stats-Bb9Gp-Dh.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CX8K3zeX.js → use-ai-providers-DMafZHsF.js} +1 -1
- package/dist/client/assets/{use-automations-jgaie9h_.js → use-automations-COtBDrNr.js} +1 -1
- package/dist/client/assets/{use-autosave-DKm-ZzOp.js → use-autosave-CVgSUfQU.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BBY2aTFC.js → use-connect-companion-DMsU19hB.js} +1 -1
- package/dist/client/assets/{use-connection-B3aUmG9U.js → use-connection-Cgge7ejL.js} +1 -1
- package/dist/client/assets/{use-copy-BZxbbwx9.js → use-copy-Cfn-m-ZW.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DA_KW4Fn.js → use-create-virtual-mcp-CIJNntTR.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-C_d3iiTU.js → use-date-fns-locale-BUWupqqb.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CQrsVPU1.js → use-debounced-autosave-Z2J2ec3T.js} +1 -1
- package/dist/client/assets/{use-debounced-value-VSXNufNs.js → use-debounced-value-DfSh3fpE.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D0y4xTjc.js → use-deco-credits-Du018wK9.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DeVrdd52.js → use-decopilot-events-B-nXlaQa.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DQ-3ghw2.js → use-delete-connection-CbdREeJX.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CO4dsbjq.js → use-deployment-admin-BfQ856y9.js} +1 -1
- package/dist/client/assets/{use-entitlements-kcDnxiY2.js → use-entitlements-Bir1zQcD.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DkEWSnVl.js → use-fast-preview-draft-url-CI4dqTq2.js} +1 -1
- package/dist/client/assets/{use-file-configs-BZu8P36G.js → use-file-configs-B04A692l.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Ba--hX3Q.js → use-infinite-scroll-NmeaxM7f.js} +1 -1
- package/dist/client/assets/{use-join-requests-BZznmzvf.js → use-join-requests-DI0a8svX.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CcuQQ7t9.js → use-main-panel-tabs-CBiJ8PZZ.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status--E_iOlPq.js → use-mcp-auth-status-B5PR04-x.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CFENhVTu.js → use-mcp-client-2DKlVY7y.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CvSNcrto.js → use-mcp-prompts-DPn1lgbL.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BQhinLYS.js → use-mcp-tools-0KttftJq.js} +1 -1
- package/dist/client/assets/{use-members-C7CiF_Ox.js → use-members-BOo0dfib.js} +1 -1
- package/dist/client/assets/{use-mobile-DFIDGOkY.js → use-mobile-dc5AlUoG.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DHdbR7N5.js → use-navigate-to-agent-BsM0_8Qa.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-DkJS-zaj.js → use-open-billing-url-DU-RhPSk.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-B3C76NaL.js → use-org-auth-client-EU2_QrcX.js} +1 -1
- package/dist/client/assets/{use-org-fs-z-OQ_g_P.js → use-org-fs-CPcFon5v.js} +1 -1
- package/dist/client/assets/{use-org-notice-MaHYxEkZ.js → use-org-notice-CJ4ginwY.js} +1 -1
- package/dist/client/assets/{use-org-sso-BPi8buGP.js → use-org-sso-DliUqcof.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DhBO1Ts6.js → use-organization-roles-DWRM5Xlm.js} +1 -1
- package/dist/client/assets/{use-organization-settings-1t_21qnn.js → use-organization-settings-CZaZMu7C.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BaXOn89z.js → use-panel-navigate-ClG-UYrb.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-HrNtSzTv.js → use-project-native-view-presence-YmT7vpKk.js} +1 -1
- package/dist/client/assets/{use-project-scope-BLg8LJSu.js → use-project-scope-CsFUzitf.js} +1 -1
- package/dist/client/assets/{use-registry-connections-NZIxdL-z.js → use-registry-connections-JpgvKLOj.js} +1 -1
- package/dist/client/assets/{use-releases-DnsfA1SK.js → use-releases-Bgl6UW0_.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Bvkqpj5y.js → use-reports-diagnostic-eNPzfjim.js} +1 -1
- package/dist/client/assets/{use-route-default-main-ERgPxe4V.js → use-route-default-main-DDalOeoB.js} +1 -1
- package/dist/client/assets/{use-secrets-saKEG6uD.js → use-secrets-WK-wxIoH.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BSsgI0pp.js → use-section-preview-base-CUFpzI8Q.js} +1 -1
- package/dist/client/assets/{use-session-runtime-CfHLK7v7.js → use-session-runtime-CwgGPQkM.js} +1 -1
- package/dist/client/assets/{use-tags-D9C5HZyh.js → use-tags-BqLVEjBd.js} +1 -1
- package/dist/client/assets/{use-task-metadata-L9jRDdBp.js → use-task-metadata-D1gl7viW.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-ctdnQS_F.js → use-thread-outputs-BnQmraib.js} +1 -1
- package/dist/client/assets/{use-view-mode-Bsjm3Emn.js → use-view-mode-BLK8sDZS.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BNclwWrf.js → use-virtual-mcp-vVWql7vM.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BUDJQ-a0.js +1 -0
- package/dist/client/assets/{useQueries-Bwlz6BY3.js → useQueries-Do0UR3yN.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BCBsko2y.js +1 -0
- package/dist/client/assets/{users-DAnuRLHR.js → users-DtkqmbRr.js} +1 -1
- package/dist/client/assets/{utils-Deo6cHH9.js → utils-WGdymi8M.js} +1 -1
- package/dist/client/assets/{variant-calendar-tHHVG6SE.js → variant-calendar-DBuSS1Kj.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DGI73MmS.js → variant-matcher-override-zmFjw0un.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CNRI2GCY.js → view-mode-toggle-5ObOX782.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DFTQ_e3C.js → virtual-mcp-DhQhvEKt.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-Gfc2coLy.js +0 -1
- package/dist/client/assets/agent-deck-4T-PW0D9.js +0 -1
- package/dist/client/assets/agent-file-CKdAFcim.js +0 -1
- package/dist/client/assets/agent-library-file-B3g3OsK3.js +0 -1
- package/dist/client/assets/agent-settings-BnkExNHD.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Ck23JptD.js +0 -2
- package/dist/client/assets/agent-view-OMgY_bvf.js +0 -1
- package/dist/client/assets/api-keys-B4eTKmoS.js +0 -1
- package/dist/client/assets/app-editor-H6TPM1GK.js +0 -1
- package/dist/client/assets/project-reports-QTC8uOco.js +0 -1
- package/dist/client/assets/project-tasks-De69tF-f.js +0 -1
- package/dist/client/assets/record-editor-CqB6PK2b.js +0 -1
- package/dist/client/assets/registry-D9UQpXZr.js +0 -2
- package/dist/client/assets/reports-aGsYwN1j.js +0 -1
- package/dist/client/assets/store-registry-ChqgNS-o.js +0 -2
- package/dist/client/assets/tasks-R0aJT0ut.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CbTYAVvH.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BKR7qjCf.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,j as t,B as K,h as X,aa as Ge,ab as ie,b as Q,E as Ee,r as A,M as xe,cJ as Xe,cI as Re,ad as Ze,u as et,L as te,t as tt,f as fe,bD as Oe}from"./index-DBO9cCXt.js";import{E as Me}from"./empty-state-B-bUlmIL.js";import{u as he}from"./use-mcp-client-CFENhVTu.js";import{F as re,a as st,b as ae,d as ce}from"./form-D3bb_HbP.js";import{I as ue}from"./input-BqEtrH9V.js";import{T as pe}from"./textarea-DHCNd9eE.js";import{D as ge,O as ot,M as nt}from"./index-IErtOCOr.js";import{P as Se}from"./index-C_U_Ej5y.js";import{b1 as lt,Q as it,ba as rt,a8 as at,C as ct,ax as dt,w as ye}from"./agent-icon-CQLL7oQA.js";import{M as mt}from"./mcp-app-renderer-DNK8Ww9U.js";import{g as ut,M as we}from"./types-raXS_M8t.js";import{b as pt,A as xt,a as ft}from"./alert-C14pJE8a.js";import{S as Ce,b as Ie,a as Te,d as $e,c as de}from"./select-Bg8M-SBL.js";import{b as ht,c as Pe,T as ke,a as De}from"./tooltip-jmvQwLuk.js";import{B as Fe,a as ze,b as Y,c as se,d as oe,e as Be}from"./breadcrumb-BHbw_kt8.js";import{i as gt}from"./AlertCircle-DnN73amm.js";import{a as jt}from"./Copy01-lznapbKA.js";import{s as bt}from"./Database01-ClkFDWDG.js";import{i as Nt}from"./Play-CMyxMbjO.js";import{g as vt}from"./connection-slug-CITJ0kGN.js";import{u as St,T as yt}from"./use-mcp-auth-status--E_iOlPq.js";import{a as Le,u as Ue}from"./use-connection-B3aUmG9U.js";import{u as wt}from"./use-mcp-tools-BQhinLYS.js";import{c as Ct}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-CI_HCWP1.js";import{f as It,r as Tt}from"./chat-context-CCpuTz2y.js";import{u as $t}from"./shell-layout-zxLGAzC4.js";import{M as Pt}from"./monaco-editor-DcRJRpxQ.js";import{E as kt}from"./empty-state-CUxtDNbB.js";import{n as Dt}from"./Tool02-Boab0JMh.js";import"./auth-DmzS8LV2.js";import"./label-C7gaXCZI.js";import"./sidebar-H--OWLmJ.js";import"./Printer-LFyevNNM.js";import"./use-mobile-DFIDGOkY.js";import"./sheet-DXK46bFL.js";import"./X-Df68-kGa.js";import"./Key01-q0G-NfYN.js";import"./extract-connection-data-BdkbURJm.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-BAtKmP5z.js";import"./use-registry-connections-NZIxdL-z.js";import"./use-organization-settings-1t_21qnn.js";import"./schema-BeeGelcJ.js";import"./task-board-DqB2XE8W.js";import"./Plus-DGRcwD1C.js";import"./index-36q0KH9q.js";import"./index-7GIBUNmw.js";import"./index-H6rDZVZ0.js";import"./index-DnAk9Nyh.js";import"./popover-DR-dG5KR.js";import"./use-virtual-mcp-BNclwWrf.js";import"./Check-Bxv_6vm1.js";import"./SearchMd-BJ1JfDmo.js";import"./Users03-DZxrVKZM.js";import"./use-create-virtual-mcp-DA_KW4Fn.js";import"./use-navigate-to-agent-DHdbR7N5.js";import"./hooks-DxGBuaYU.js";import"./backoff-8mStPHYB.js";import"./thread-intent-C9vyWsKq.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-C2sl4oS8.js";import"./ArrowUp-CPI9CNny.js";import"./ArrowLeft-XVmyXzT1.js";import"./ArrowRight-C5X_ZNy2.js";import"./TrendUp01-CsD4AjDF.js";import"./ZoomOut-CR5b1C5j.js";import"./CheckCircle-D6A5oB4p.js";import"./ChevronUp-DqQeOV1H.js";import"./ChevronRight-CnNj4eZz.js";import"./DotsVertical-B2EdGD-H.js";import"./UserSquare-CzBMUItn.js";import"./CreditCard01-BXcJiS22.js";import"./MessageCircle01-PKJU_kXZ.js";import"./Download01-BjL9Q4CH.js";import"./Settings02-BxjmvoL1.js";import"./Eye-BunsX0IL.js";import"./File02-ChvmdkAp.js";import"./Share07-DV6EcWz3.js";import"./GitBranch01-Bj2U--5C.js";import"./Globe01-C44OPauE.js";import"./SwitchHorizontal01-CSa05wqz.js";import"./HardDrive-BuYkYSPd.js";import"./Image01-BHWSoYgY.js";import"./Link01-BYdywRZL.js";import"./LinkExternal01-CYW6oMa4.js";import"./Monitor01-v-NC0LAC.js";import"./Sun-ByqVPxWa.js";import"./Package-BlQhffiq.js";import"./Palette-CKV7NEd1.js";import"./SearchLg-C3ZKLzF0.js";import"./Shield01-CVAE-iA-.js";import"./Stars01-CDRvN6fQ.js";import"./Trash01-D10MWaS7.js";import"./Upload01-CP2Gss0k.js";import"./User01-HCRUnfwJ.js";import"./Users01-4eNyBeFs.js";import"./XCircle-nMBHI38d.js";import"./XClose-Biw-w8yi.js";import"./Zap-dUD3-QQY.js";import"./index-BeOidgbu.js";import"./badge-CZpoNlx_.js";import"./mcp-oauth-E1-_MSLJ.js";import"./use-panel-navigate-BaXOn89z.js";import"./thread-route-Ikku3vet.js";import"./use-project-scope-BLg8LJSu.js";import"./autosend-DJaBf7X2.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-kcDnxiY2.js";import"./use-ai-providers-CX8K3zeX.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DeVrdd52.js";import"./avatar-BkGSc9H5.js";import"./download-app-dialog-CZpe9Bpu.js";import"./dialog-CDIoGuZ9.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-MaHYxEkZ.js";import"./command-palette-store-D_KrAOxe.js";import"./command-tKFpnUWi.js";import"./project-icon-CDxBSoB_.js";import"./required-auth-layout-By-Cm9L3.js";import"./use-org-sso-BPi8buGP.js";import"./editor-pfBZu3U7.js";function At(s){const e=L.c(15),{onSave:r,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:u}=s,c=a===void 0?"Save":a,n=u===void 0?"Undo":u;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(lt,{size:14}),e[0]=x):x=e[0];let g;e[1]!==i||e[2]!==o||e[3]!==n?(g=t.jsxs(K,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":n,children:[x,n]}),e[1]=i,e[2]=o,e[3]=n,e[4]=g):g=e[4];let m;e[5]!==i?(m=i?t.jsx(X,{className:"size-3.5"}):t.jsx(it,{size:14}),e[5]=i,e[6]=m):m=e[6];let f;e[7]!==i||e[8]!==r||e[9]!==c||e[10]!==m?(f=t.jsxs(K,{variant:"default",size:"sm",onClick:r,disabled:i,"aria-label":c,children:[m,c]}),e[7]=i,e[8]=r,e[9]=c,e[10]=m,e[11]=f):f=e[11];let p;return e[12]!==g||e[13]!==f?(p=t.jsxs(t.Fragment,{children:[g,f]}),e[12]=g,e[13]=f,e[14]=p):p=e[14],p}Ge({title:ie().min(1),description:ie().nullable(),body:ie()});function me(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Et(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),r=e>=0?s[e+1]:void 0;return r?decodeURIComponent(r):void 0}function Rt(s){const e=L.c(43),{form:r}=s,o=Q();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=w=>{const{field:b}=w;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(ce,{children:t.jsx(ue,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let u;e[6]!==r.control||e[7]!==a?(u=t.jsx(re,{control:r.control,name:"title",render:a}),e[6]=r.control,e[7]=a,e[8]=u):u=e[8];let c;e[9]!==o?(c=w=>{const{field:b}=w;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(ce,{children:t.jsx(ue,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=c):c=e[10];let n;e[11]!==r.control||e[12]!==c?(n=t.jsx(re,{control:r.control,name:"description",render:c}),e[11]=r.control,e[12]=c,e[13]=n):n=e[13];let x;e[14]!==u||e[15]!==n?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u,n]}),e[14]=u,e[15]=n,e[16]=x):x=e[16];let g;e[17]!==i||e[18]!==x?(g=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=g):g=e[19];let m;e[20]!==o?(m=o("details.prompt.message"),e[20]=o,e[21]=m):m=e[21];let f;e[22]!==m?(f=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[22]=m,e[23]=f):f=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=w=>{const{field:b}=w;return t.jsx(ae,{children:t.jsx(ce,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.bodyPlaceholder"),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"})})})},e[28]=o,e[29]=N):N=e[29];let S;e[30]!==r.control||e[31]!==N?(S=t.jsx(re,{control:r.control,name:"body",render:N}),e[30]=r.control,e[31]=N,e[32]=S):S=e[32];let $;e[33]!==f||e[34]!==j||e[35]!==S?($=t.jsxs("div",{className:"flex flex-col gap-2",children:[f,j,S]}),e[33]=f,e[34]=j,e[35]=S,e[36]=$):$=e[36];let y;e[37]!==$||e[38]!==g?(y=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:[g,$]}),e[37]=$,e[38]=g,e[39]=y):y=e[39];let P;return e[40]!==r||e[41]!==y?(P=t.jsx(st,{...r,children:y}),e[40]=r,e[41]=y,e[42]=P):P=e[42],P}function Ot(s){const e=L.c(42),{providerId:r,promptId:o}=s,l=Q(),{org:i}=xe(),a=r||null;let u;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(u={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=u):u=e[3];const c=he(u),n=Xe(r,"PROMPT",o,c),x=Re(r,"PROMPT",c),g=x.update.isPending;let m;e[4]!==n?(m=n?{title:n.title,description:n.description??null,body:me(n)}:void 0,e[4]=n,e[5]=m):m=e[5];let f;e[6]!==m?(f={values:m},e[6]=m,e[7]=f):f=e[7];const p=Ze(f);let j;e[8]!==p||e[9]!==n?(j=()=>{n&&p.reset({title:n.title,description:n.description??null,body:me(n)})},e[8]=p,e[9]=n,e[10]=j):j=e[10];const N=j;let S;e[11]!==x.update||e[12]!==p||e[13]!==o?(S=p.handleSubmit(async C=>{const I=await x.update.mutateAsync({id:o,data:{title:C.title,description:C.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:C.body}}]}});p.reset({title:I.title,description:I.description??null,body:me(I)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=S):S=e[14];const $=S;if(!n){let C;e[15]!==l?(C=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=C):C=e[16];let I;e[17]!==l?(I=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=I):I=e[18];let R;return e[19]!==C||e[20]!==I?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:C,description:I})}),e[19]=C,e[20]=I,e[21]=R):R=e[21],R}let y;e[22]!==n.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[22]=n.title,e[23]=y):y=e[23];let P;e[24]!==n.description?(P=n.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:n.description})]}):null,e[24]=n.description,e[25]=P):P=e[25];let w;e[26]!==y||e[27]!==P?(w=t.jsx(Se.Topbar.Center.Portal,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,P]})}),e[26]=y,e[27]=P,e[28]=w):w=e[28];let b;e[29]!==$?(b=()=>{$()},e[29]=$,e[30]=b):b=e[30];let k;e[31]!==p.formState.isDirty||e[32]!==g||e[33]!==N||e[34]!==b?(k=t.jsx(Se.Topbar.Right.Portal,{children:t.jsx(At,{onSave:b,onUndo:N,isDirty:p.formState.isDirty,isSaving:g})}),e[31]=p.formState.isDirty,e[32]=g,e[33]=N,e[34]=b,e[35]=k):k=e[35];let D;e[36]!==p?(D=t.jsx("div",{className:"h-full",children:t.jsx(Rt,{form:p})}),e[36]=p,e[37]=D):D=e[37];let E;return e[38]!==k||e[39]!==D||e[40]!==w?(E=t.jsxs(ge,{children:[w,k,D]}),e[38]=k,e[39]=D,e[40]=w,e[41]=E):E=e[41],E}function Mt(s){const e=L.c(10),{itemId:r}=s,o=Q();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Et(),e[0]=l):l=e[0];const i=l;if(!i){let u;e[1]!==o?(u=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=u):u=e[2];let c;e[3]!==o?(c=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=c):c=e[4];let n;return e[5]!==u||e[6]!==c?(n=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:u,description:c})}),e[5]=u,e[6]=c,e[7]=n):n=e[7],n}let a;return e[8]!==r?(a=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:null,children:t.jsx(Ot,{providerId:i,promptId:r})})}),e[8]=r,e[9]=a):a=e[9],a}const Ft=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function zt(s){const e=L.c(12),{toolName:r,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,u=Q();let c;e[0]!==o?(c={connectionId:o},e[0]=o,e[1]=c):c=e[1];const n=St(c);if(!n.isAuthenticated){let m;return e[2]!==n.supportsOAuth||e[3]!==a||e[4]!==u?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:n.supportsOAuth?t.jsx(ot,{onAuthenticate:()=>a(),buttonText:u("details.tool.goBackToAuthenticate")}):t.jsx(nt,{hasReadme:!1})}),e[2]=n.supportsOAuth,e[3]=a,e[4]=u,e[5]=m):m=e[5],m}const x=`${o}:${r}`;let g;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==r?(g=t.jsx(Bt,{toolName:r,connectionId:o,siblings:l,onSelectInstance:i},x),e[6]=o,e[7]=i,e[8]=l,e[9]=x,e[10]=r,e[11]=g):g=e[11],g}function Bt({toolName:s,connectionId:e,siblings:r,onSelectInstance:o}){const l=Q(),{replayId:i}=et({strict:!1}),a=(()=>{if(!i)return null;const d=`replay-${i}`,h=sessionStorage.getItem(d);if(!h)return null;sessionStorage.removeItem(d);try{return JSON.parse(h)}catch{return null}})(),u=(()=>{if(!a)return null;const d={};for(const[h,T]of Object.entries(a))T!==null&&typeof T=="object"?d[h]=JSON.stringify(T,null,2):d[h]=T;return d})(),[c,n]=A.useState(u??{}),[x,g]=A.useState(a?JSON.stringify(a,null,2):"{}"),[m,f]=A.useState(null),[p,j]=A.useState(null),[N,S]=A.useState(null),[$,y]=A.useState(null),[P,w]=A.useState(!1),[b,k]=A.useState(null),{org:D}=xe(),E=Le(e),C=It(),I=Tt(),{openSidePanel:R}=$t(),U=`${e}:${s}`,M=he({connectionId:e,orgId:D.id,orgSlug:D.slug}),_=wt({client:M}),v=_.data?.tools?.find(d=>d.name===s),O=ut(v?._meta),V=d=>{if(!C)return;const h=Ct(d.content);h.content.length>0&&(R(),C.sendMessage({tiptapDoc:h}))},[F,z]=A.useState("json"),[q,W]=A.useState(!1);O&&!q&&(z("ui"),W(!0));const J=v?.inputSchema?.properties,je=J?Object.keys(J):[],G=je.length>0,Z={};if(G&&v?.inputSchema?.properties)for(const d of je)Z[d]=v.inputSchema.required?.includes(d)?"":void 0;const ne=d=>Object.prototype.hasOwnProperty.call(c,d),_e=async()=>{w(!0),y(null),f(null),j(null),S(null),k(null);const d=performance.now();try{if(!M)throw new Error("MCP client is not available");const h=G?{...Z,...c}:(()=>{const B=x.trim();if(!B)return{};const H=JSON.parse(B);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();G&&v?.inputSchema?.properties&&Object.entries(v.inputSchema.properties).forEach(([B,H])=>{if((H.type==="object"||H.type==="array")&&typeof h[B]=="string")try{h[B]=JSON.parse(h[B])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof h[B]=="string"&&h[B]!==""){const ve=Number(h[B]);Number.isNaN(ve)||(h[B]=ve)}});const T=await M.callTool({name:s,arguments:h}),ee=T.structuredContent??T,Qe=performance.now(),We=Math.round(Qe-d);f(ee),j(T),S(h);const Ye=JSON.stringify(ee),Ne=new TextEncoder().encode(Ye).length;k({duration:`${We}ms`,bytes:`${Ne} bytes`,tokens:`~${Math.ceil(Ne/4)} tokens`,cost:"$0.0000"})}catch(h){const T=h instanceof Error?h.message:String(h);y(T||"Unknown error occurred");const ee=performance.now();k({duration:`${Math.round(ee-d)}ms`})}finally{w(!1)}},le=(d,h)=>{n(T=>({...T,[d]:h}))},Je=()=>{f(null),j(null),S(null),y(null),k(null)},Ve=v?.name??Ft(s),qe=t.jsx(Fe,{children:t.jsxs(ze,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:D.slug},children:l("details.tool.connections")})})}),t.jsx(oe,{}),E&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:D.slug,appSlug:vt(E)},search:{tab:"tools"},children:E.title})})}),t.jsx(oe,{})]}),t.jsx(Y,{children:t.jsx(Be,{children:Ve})})]})}),be=r.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(Te,{})}),t.jsx($e,{children:r.map(d=>t.jsx(de,{value:d.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:d.icon,name:d.title,size:"xs",className:"shrink-0"}),d.title]})},d.id))})]}),He=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:l("details.tool.parameters")}),v?.inputSchema?.required&&v.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",l("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:G&&v?.inputSchema?.properties?Object.entries(v.inputSchema.properties).map(([d,h])=>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,v.inputSchema?.required?.includes(d)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:h.type})]}),h.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:h.description}),h.type==="object"||h.type==="array"?t.jsx(pe,{className:"font-mono text-xs",value:ne(d)?c[d]??"":Z[d]??"",onChange:T=>le(d,T.target.value),placeholder:l("details.tool.enterAsJson",{key:d}),rows:3}):h.type==="boolean"?t.jsxs(Ce,{value:ne(d)?String(c[d]??""):"",onValueChange:T=>le(d,T==="true"),children:[t.jsx(Ie,{children:t.jsx(Te,{placeholder:l("details.tool.selectTrueOrFalse")})}),t.jsxs($e,{children:[t.jsx(de,{value:"true",children:"true"}),t.jsx(de,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ne(d)?c[d]??"":Z[d]??"",onChange:T=>le(d,T.target.value),placeholder:l("details.tool.enter",{key:d})})]},d)):v?.inputSchema&&!G?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:l("details.tool.rawJsonInput")}),t.jsx(pe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:d=>g(d.target.value),placeholder:l("details.tool.rawJsonExample")})]}):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:l("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Je,children:[t.jsx(rt,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:_e,children:[t.jsx(Nt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),Ke=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:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&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(at,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ct,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(bt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),O&&t.jsx(ht,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>z("ui"),children:t.jsx(dt,{size:14})})}),t.jsx(De,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>z("json"),children:t.jsx(ye,{size:14})})}),t.jsx(De,{children:l("details.tool.jsonView")})]})]})})]})]}),$&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(pt,{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(gt,{className:"h-4 w-4"}),t.jsx(xt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(ft,{className:"text-xs text-destructive",children:$})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:O&&F==="ui"&&M?t.jsx(A.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(X,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(mt,{resourceURI:O,toolInfo:v?{tool:v}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:M,onMessage:V,onUpdateModelContext:d=>I?.setAppContext(U,d),onTeardown:()=>I?.clearAppContext(U),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Pt,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{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(m,null,2)),tt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(jt,{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(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(ge,{leading:qe,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(Ae,{icon:E?.icon||null,name:E?.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:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.isLoading?t.jsx(X,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(yt,{annotations:v?.annotations,_meta:v?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:be})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:v?.description||"No description available"})]}),r.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:l("details.tool.instance")}),be]}),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:He}),Ke]})})]})})}function Lt(s){const e=L.c(20),{itemId:r,siblings:o,onBack:l}=s,i=Q(),[a,u]=A.useState(o[0]?.id??"");let c;e[0]!==a||e[1]!==o?(c=o.find(f=>f.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=c):c=e[2];const n=c;if(!Le(n||void 0)||!n){let f;e[3]!==i?(f=i("details.tool.connectionNotFound"),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==f?(p=t.jsx("h3",{className:"text-lg font-semibold",children:f}),e[5]=f,e[6]=p):p=e[6];let j;e[7]!==i?(j=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=j):j=e[8];let N;e[9]!==j?(N=t.jsx("p",{className:"text-sm text-muted-foreground",children:j}),e[9]=j,e[10]=N):N=e[10];let S;return e[11]!==p||e[12]!==N?(S=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:[p,N]})}),e[11]=p,e[12]=N,e[13]=S):S=e[13],S}let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),e[14]=g):g=e[14];let m;return e[15]!==n||e[16]!==l||e[17]!==o||e[18]!==r?(m=t.jsx(A.Suspense,{fallback:g,children:t.jsx(zt,{toolName:r,connectionId:n,siblings:o,onSelectInstance:u,onBack:l})}),e[15]=n,e[16]=l,e[17]=o,e[18]=r,e[19]=m):m=e[19],m}const Ut={prompt:Mt};function _t(){const s=L.c(9),e=Oe();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=fe(r),l=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=Ue(i);let u;s[3]!==e.history?(u=()=>{e.history.back()},s[3]=e.history,s[4]=u):u=s[4];const c=u,n=Jt;let x;return s[5]!==c||s[6]!==l||s[7]!==a?(x=t.jsx(Lt,{itemId:l,siblings:a,onBack:c,onUpdate:n}),s[5]=c,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Jt(s){return Promise.resolve()}function Vt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function qt(){const s=L.c(52),e=Oe();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=fe(r),l=Q(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let u;s[1]!==e.history?(u=()=>{e.history.back()},s[1]=e.history,s[2]=u):u=s[2];const c=u,{org:n}=xe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const m=Ue(x)[0]??null,f=m?.id??"",p=f||"no-connection",j=f??null;let N;s[5]!==n.id||s[6]!==n.slug||s[7]!==j?(N={connectionId:j,orgId:n.id,orgSlug:n.slug},s[5]=n.id,s[6]=n.slug,s[7]=j,s[8]=N):N=s[8];const S=he(N),$=Re(p,i,S);let y;s[9]!==$||s[10]!==a?(y=async J=>{a&&await $.update.mutateAsync({id:a,data:J})},s[9]=$,s[10]=a,s[11]=y):y=s[11];const P=y;let w;s[12]!==i?(w=i?.toLowerCase(),s[12]=i,s[13]=w):w=s[13];const b=w,k=b&&Ut[b];let D;s[14]!==i?(D=Vt(i),s[14]=i,s[15]=D):D=s[15];const E=D;let C;s[16]!==n.slug?(C=t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:n.slug},children:"Connections"})})}),s[16]=n.slug,s[17]=C):C=s[17];let I;s[18]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(oe,{}),s[18]=I):I=s[18];let R;s[19]!==i||s[20]!==m||s[21]!==n.slug||s[22]!==o.appSlug?(R=m&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:n.slug,appSlug:o.appSlug},search:{tab:i},children:m.title})})}),t.jsx(oe,{})]}),s[19]=i,s[20]=m,s[21]=n.slug,s[22]=o.appSlug,s[23]=R):R=s[23];let U;s[24]!==E?(U=t.jsx(Y,{children:t.jsx(Be,{children:E})}),s[24]=E,s[25]=U):U=s[25];let M;s[26]!==R||s[27]!==U||s[28]!==C?(M=t.jsx(Fe,{children:t.jsxs(ze,{children:[C,I,R,U]})}),s[26]=R,s[27]=U,s[28]=C,s[29]=M):M=s[29];const _=M;if(k){let J;return s[30]!==k||s[31]!==c||s[32]!==P||s[33]!==a?(J=t.jsx(k,{itemId:a,onBack:c,onUpdate:P}),s[30]=k,s[31]=c,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let v;s[35]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Dt,{size:36,className:"text-muted-foreground"}),s[35]=v):v=s[35];let O;s[36]!==l?(O=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=O):O=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let F;s[40]!==l?(F=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=F):F=s[41];let z;s[42]!==c||s[43]!==F?(z={onClick:c,children:F},s[42]=c,s[43]=F,s[44]=z):z=s[44];let q;s[45]!==O||s[46]!==V||s[47]!==z?(q=t.jsx(kt,{icon:v,title:O,description:V,buttonProps:z}),s[45]=O,s[46]=V,s[47]=z,s[48]=q):q=s[48];let W;return s[49]!==_||s[50]!==q?(W=t.jsx(ge,{leading:_,children:q}),s[49]=_,s[50]=q,s[51]=W):W=s[51],W}function Ht(){const s=L.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 r=fe(e);if(decodeURIComponent(r.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(_t,{}),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 un(){const s=L.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Ht,{})})}),s[0]=e):e=s[0],e}export{un as default};
|
|
1
|
+
import{c as L,j as t,B as K,h as X,aa as Ge,ab as ie,b as Q,E as Ee,r as A,M as xe,cJ as Xe,cI as Re,ad as Ze,u as et,L as te,t as tt,f as fe,bD as Oe}from"./index-CfiHR5p3.js";import{E as Me}from"./empty-state-BuDUIKwc.js";import{u as he}from"./use-mcp-client-2DKlVY7y.js";import{F as re,a as st,b as ae,d as ce}from"./form-CCI8usbr.js";import{I as ue}from"./input-DOqceFPC.js";import{T as pe}from"./textarea-Q7sXwojB.js";import{D as ge,O as ot,M as nt}from"./index-DplUenCs.js";import{P as Se}from"./index-wju8DM5a.js";import{b1 as lt,Q as it,ba as rt,a8 as at,C as ct,ax as dt,w as ye}from"./agent-icon-I_u5FzRN.js";import{M as mt}from"./mcp-app-renderer-BVpwtvW6.js";import{g as ut,M as we}from"./types-B3jTqzVf.js";import{b as pt,A as xt,a as ft}from"./alert-DwSbSu1x.js";import{S as Ce,b as Ie,a as Te,d as $e,c as de}from"./select-BOl9wnf6.js";import{b as ht,c as Pe,T as ke,a as De}from"./tooltip-DIW02rf-.js";import{B as Fe,a as ze,b as Y,c as se,d as oe,e as Be}from"./breadcrumb-D4EWX36X.js";import{i as gt}from"./AlertCircle-CZODjB-G.js";import{a as jt}from"./Copy01-BKbbYkAO.js";import{s as bt}from"./Database01-C9bPAMOv.js";import{i as Nt}from"./Play-BIZK_qUZ.js";import{g as vt}from"./connection-slug-CITJ0kGN.js";import{u as St,T as yt}from"./use-mcp-auth-status-B5PR04-x.js";import{a as Le,u as Ue}from"./use-connection-Cgge7ejL.js";import{u as wt}from"./use-mcp-tools-0KttftJq.js";import{c as Ct}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-_HXUWC0Q.js";import{f as It,r as Tt}from"./chat-context-Bj6XM8r6.js";import{u as $t}from"./shell-layout-CQI5EYIN.js";import{M as Pt}from"./monaco-editor-QBiS6INp.js";import{E as kt}from"./empty-state-BN3l0e1m.js";import{n as Dt}from"./Tool02-zLL5jksN.js";import"./auth-UveS8wF5.js";import"./label-DCUE6TYd.js";import"./sidebar-Cr04YrvT.js";import"./Printer-AWNoUKRJ.js";import"./use-mobile-dc5AlUoG.js";import"./sheet-Ceo6cjp6.js";import"./X-Dr0Tqjzv.js";import"./Key01-0kVvyKcG.js";import"./extract-connection-data-Bs0-7FAn.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-D83jUgKt.js";import"./use-registry-connections-JpgvKLOj.js";import"./use-organization-settings-CZaZMu7C.js";import"./schema-kS1q2dfz.js";import"./task-board-CurTs85l.js";import"./Plus-DaMIkku0.js";import"./index-C1OUd215.js";import"./index-D6hy4U5O.js";import"./index-BeW32OQZ.js";import"./index-CR7IhZdQ.js";import"./popover-RErMjkys.js";import"./use-virtual-mcp-vVWql7vM.js";import"./Check-DYuLLcXz.js";import"./SearchMd-B6arCmyn.js";import"./Users03-DSBIUomT.js";import"./use-create-virtual-mcp-CIJNntTR.js";import"./use-navigate-to-agent-BsM0_8Qa.js";import"./hooks-C4BbSdNW.js";import"./backoff-8mStPHYB.js";import"./thread-intent-DEVJhxVt.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-BknN0SVI.js";import"./Tool01-DW_T3YR5.js";import"./ArrowUp-B2y3FAZT.js";import"./ArrowLeft-qXobBdxD.js";import"./ArrowRight-_qaicB3i.js";import"./TrendUp01-CSoUpxS1.js";import"./ZoomOut-BLK0GcJv.js";import"./CheckCircle-Cpa5ukkn.js";import"./ChevronUp-B-GxN-tN.js";import"./ChevronRight-BvrNCsKT.js";import"./DotsVertical-BKAvE_4x.js";import"./UserSquare-BdoEkD8Z.js";import"./CreditCard01-D16_sfKz.js";import"./MessageCircle01-CweHuqp7.js";import"./Download01-BvE_0avp.js";import"./Settings02-Cng3FY1l.js";import"./Eye-CO0I0F0e.js";import"./File02-Cnt06RSY.js";import"./Share07-BgGqkker.js";import"./GitBranch01-BPIVJl4U.js";import"./Globe01-DjDoxbql.js";import"./SwitchHorizontal01-BaPOYupn.js";import"./HardDrive-UFyvehqQ.js";import"./Image01-D3ZQNp9r.js";import"./Link01-Ct7pxTAu.js";import"./LinkExternal01-DCfxP5B_.js";import"./Monitor01-BWZHqfxa.js";import"./Sun-B2S_0TDV.js";import"./Package-T9dujty4.js";import"./Palette-B9i9hnCi.js";import"./SearchLg-C2sftj0S.js";import"./Shield01-CVF7EZQb.js";import"./Stars01-DSWmseOt.js";import"./Trash01-CchLM2HV.js";import"./Upload01-G3c4UCfB.js";import"./User01-CZRm273k.js";import"./Users01-D_H_0-Jf.js";import"./XCircle-Ce8PGmrS.js";import"./XClose-5naA93fy.js";import"./Zap-XMkPrxNc.js";import"./index-B7wVUCeI.js";import"./badge-Bx6TdTjC.js";import"./mcp-oauth-DbZXTEaP.js";import"./use-panel-navigate-ClG-UYrb.js";import"./thread-route-D6xj1qQJ.js";import"./use-project-scope-CsFUzitf.js";import"./autosend-BsJQ1aCs.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-Bir1zQcD.js";import"./use-ai-providers-DMafZHsF.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-B-nXlaQa.js";import"./avatar-DV69nhm1.js";import"./download-app-dialog-BhmQVCrs.js";import"./dialog-DKHdGeG-.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-CJ4ginwY.js";import"./command-palette-store-3XeVzDCK.js";import"./command-PF8SQ01C.js";import"./project-icon-B0ih2u61.js";import"./required-auth-layout-BwX4AD0R.js";import"./use-org-sso-DliUqcof.js";import"./editor-BEf-Idam.js";function At(s){const e=L.c(15),{onSave:r,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:u}=s,c=a===void 0?"Save":a,n=u===void 0?"Undo":u;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(lt,{size:14}),e[0]=x):x=e[0];let g;e[1]!==i||e[2]!==o||e[3]!==n?(g=t.jsxs(K,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":n,children:[x,n]}),e[1]=i,e[2]=o,e[3]=n,e[4]=g):g=e[4];let m;e[5]!==i?(m=i?t.jsx(X,{className:"size-3.5"}):t.jsx(it,{size:14}),e[5]=i,e[6]=m):m=e[6];let f;e[7]!==i||e[8]!==r||e[9]!==c||e[10]!==m?(f=t.jsxs(K,{variant:"default",size:"sm",onClick:r,disabled:i,"aria-label":c,children:[m,c]}),e[7]=i,e[8]=r,e[9]=c,e[10]=m,e[11]=f):f=e[11];let p;return e[12]!==g||e[13]!==f?(p=t.jsxs(t.Fragment,{children:[g,f]}),e[12]=g,e[13]=f,e[14]=p):p=e[14],p}Ge({title:ie().min(1),description:ie().nullable(),body:ie()});function me(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Et(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),r=e>=0?s[e+1]:void 0;return r?decodeURIComponent(r):void 0}function Rt(s){const e=L.c(43),{form:r}=s,o=Q();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=w=>{const{field:b}=w;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(ce,{children:t.jsx(ue,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let u;e[6]!==r.control||e[7]!==a?(u=t.jsx(re,{control:r.control,name:"title",render:a}),e[6]=r.control,e[7]=a,e[8]=u):u=e[8];let c;e[9]!==o?(c=w=>{const{field:b}=w;return t.jsxs(ae,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(ce,{children:t.jsx(ue,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=c):c=e[10];let n;e[11]!==r.control||e[12]!==c?(n=t.jsx(re,{control:r.control,name:"description",render:c}),e[11]=r.control,e[12]=c,e[13]=n):n=e[13];let x;e[14]!==u||e[15]!==n?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[u,n]}),e[14]=u,e[15]=n,e[16]=x):x=e[16];let g;e[17]!==i||e[18]!==x?(g=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=g):g=e[19];let m;e[20]!==o?(m=o("details.prompt.message"),e[20]=o,e[21]=m):m=e[21];let f;e[22]!==m?(f=t.jsx("div",{className:"text-sm font-medium text-foreground",children:m}),e[22]=m,e[23]=f):f=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=w=>{const{field:b}=w;return t.jsx(ae,{children:t.jsx(ce,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.bodyPlaceholder"),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"})})})},e[28]=o,e[29]=N):N=e[29];let S;e[30]!==r.control||e[31]!==N?(S=t.jsx(re,{control:r.control,name:"body",render:N}),e[30]=r.control,e[31]=N,e[32]=S):S=e[32];let $;e[33]!==f||e[34]!==j||e[35]!==S?($=t.jsxs("div",{className:"flex flex-col gap-2",children:[f,j,S]}),e[33]=f,e[34]=j,e[35]=S,e[36]=$):$=e[36];let y;e[37]!==$||e[38]!==g?(y=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:[g,$]}),e[37]=$,e[38]=g,e[39]=y):y=e[39];let P;return e[40]!==r||e[41]!==y?(P=t.jsx(st,{...r,children:y}),e[40]=r,e[41]=y,e[42]=P):P=e[42],P}function Ot(s){const e=L.c(42),{providerId:r,promptId:o}=s,l=Q(),{org:i}=xe(),a=r||null;let u;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(u={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=u):u=e[3];const c=he(u),n=Xe(r,"PROMPT",o,c),x=Re(r,"PROMPT",c),g=x.update.isPending;let m;e[4]!==n?(m=n?{title:n.title,description:n.description??null,body:me(n)}:void 0,e[4]=n,e[5]=m):m=e[5];let f;e[6]!==m?(f={values:m},e[6]=m,e[7]=f):f=e[7];const p=Ze(f);let j;e[8]!==p||e[9]!==n?(j=()=>{n&&p.reset({title:n.title,description:n.description??null,body:me(n)})},e[8]=p,e[9]=n,e[10]=j):j=e[10];const N=j;let S;e[11]!==x.update||e[12]!==p||e[13]!==o?(S=p.handleSubmit(async C=>{const I=await x.update.mutateAsync({id:o,data:{title:C.title,description:C.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:C.body}}]}});p.reset({title:I.title,description:I.description??null,body:me(I)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=S):S=e[14];const $=S;if(!n){let C;e[15]!==l?(C=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=C):C=e[16];let I;e[17]!==l?(I=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=I):I=e[18];let R;return e[19]!==C||e[20]!==I?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:C,description:I})}),e[19]=C,e[20]=I,e[21]=R):R=e[21],R}let y;e[22]!==n.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[22]=n.title,e[23]=y):y=e[23];let P;e[24]!==n.description?(P=n.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:n.description})]}):null,e[24]=n.description,e[25]=P):P=e[25];let w;e[26]!==y||e[27]!==P?(w=t.jsx(Se.Topbar.Center.Portal,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,P]})}),e[26]=y,e[27]=P,e[28]=w):w=e[28];let b;e[29]!==$?(b=()=>{$()},e[29]=$,e[30]=b):b=e[30];let k;e[31]!==p.formState.isDirty||e[32]!==g||e[33]!==N||e[34]!==b?(k=t.jsx(Se.Topbar.Right.Portal,{children:t.jsx(At,{onSave:b,onUndo:N,isDirty:p.formState.isDirty,isSaving:g})}),e[31]=p.formState.isDirty,e[32]=g,e[33]=N,e[34]=b,e[35]=k):k=e[35];let D;e[36]!==p?(D=t.jsx("div",{className:"h-full",children:t.jsx(Rt,{form:p})}),e[36]=p,e[37]=D):D=e[37];let E;return e[38]!==k||e[39]!==D||e[40]!==w?(E=t.jsxs(ge,{children:[w,k,D]}),e[38]=k,e[39]=D,e[40]=w,e[41]=E):E=e[41],E}function Mt(s){const e=L.c(10),{itemId:r}=s,o=Q();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Et(),e[0]=l):l=e[0];const i=l;if(!i){let u;e[1]!==o?(u=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=u):u=e[2];let c;e[3]!==o?(c=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=c):c=e[4];let n;return e[5]!==u||e[6]!==c?(n=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Me,{title:u,description:c})}),e[5]=u,e[6]=c,e[7]=n):n=e[7],n}let a;return e[8]!==r?(a=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:null,children:t.jsx(Ot,{providerId:i,promptId:r})})}),e[8]=r,e[9]=a):a=e[9],a}const Ft=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function zt(s){const e=L.c(12),{toolName:r,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,u=Q();let c;e[0]!==o?(c={connectionId:o},e[0]=o,e[1]=c):c=e[1];const n=St(c);if(!n.isAuthenticated){let m;return e[2]!==n.supportsOAuth||e[3]!==a||e[4]!==u?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:n.supportsOAuth?t.jsx(ot,{onAuthenticate:()=>a(),buttonText:u("details.tool.goBackToAuthenticate")}):t.jsx(nt,{hasReadme:!1})}),e[2]=n.supportsOAuth,e[3]=a,e[4]=u,e[5]=m):m=e[5],m}const x=`${o}:${r}`;let g;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==r?(g=t.jsx(Bt,{toolName:r,connectionId:o,siblings:l,onSelectInstance:i},x),e[6]=o,e[7]=i,e[8]=l,e[9]=x,e[10]=r,e[11]=g):g=e[11],g}function Bt({toolName:s,connectionId:e,siblings:r,onSelectInstance:o}){const l=Q(),{replayId:i}=et({strict:!1}),a=(()=>{if(!i)return null;const d=`replay-${i}`,h=sessionStorage.getItem(d);if(!h)return null;sessionStorage.removeItem(d);try{return JSON.parse(h)}catch{return null}})(),u=(()=>{if(!a)return null;const d={};for(const[h,T]of Object.entries(a))T!==null&&typeof T=="object"?d[h]=JSON.stringify(T,null,2):d[h]=T;return d})(),[c,n]=A.useState(u??{}),[x,g]=A.useState(a?JSON.stringify(a,null,2):"{}"),[m,f]=A.useState(null),[p,j]=A.useState(null),[N,S]=A.useState(null),[$,y]=A.useState(null),[P,w]=A.useState(!1),[b,k]=A.useState(null),{org:D}=xe(),E=Le(e),C=It(),I=Tt(),{openSidePanel:R}=$t(),U=`${e}:${s}`,M=he({connectionId:e,orgId:D.id,orgSlug:D.slug}),_=wt({client:M}),v=_.data?.tools?.find(d=>d.name===s),O=ut(v?._meta),V=d=>{if(!C)return;const h=Ct(d.content);h.content.length>0&&(R(),C.sendMessage({tiptapDoc:h}))},[F,z]=A.useState("json"),[q,W]=A.useState(!1);O&&!q&&(z("ui"),W(!0));const J=v?.inputSchema?.properties,je=J?Object.keys(J):[],G=je.length>0,Z={};if(G&&v?.inputSchema?.properties)for(const d of je)Z[d]=v.inputSchema.required?.includes(d)?"":void 0;const ne=d=>Object.prototype.hasOwnProperty.call(c,d),_e=async()=>{w(!0),y(null),f(null),j(null),S(null),k(null);const d=performance.now();try{if(!M)throw new Error("MCP client is not available");const h=G?{...Z,...c}:(()=>{const B=x.trim();if(!B)return{};const H=JSON.parse(B);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();G&&v?.inputSchema?.properties&&Object.entries(v.inputSchema.properties).forEach(([B,H])=>{if((H.type==="object"||H.type==="array")&&typeof h[B]=="string")try{h[B]=JSON.parse(h[B])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof h[B]=="string"&&h[B]!==""){const ve=Number(h[B]);Number.isNaN(ve)||(h[B]=ve)}});const T=await M.callTool({name:s,arguments:h}),ee=T.structuredContent??T,Qe=performance.now(),We=Math.round(Qe-d);f(ee),j(T),S(h);const Ye=JSON.stringify(ee),Ne=new TextEncoder().encode(Ye).length;k({duration:`${We}ms`,bytes:`${Ne} bytes`,tokens:`~${Math.ceil(Ne/4)} tokens`,cost:"$0.0000"})}catch(h){const T=h instanceof Error?h.message:String(h);y(T||"Unknown error occurred");const ee=performance.now();k({duration:`${Math.round(ee-d)}ms`})}finally{w(!1)}},le=(d,h)=>{n(T=>({...T,[d]:h}))},Je=()=>{f(null),j(null),S(null),y(null),k(null)},Ve=v?.name??Ft(s),qe=t.jsx(Fe,{children:t.jsxs(ze,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:D.slug},children:l("details.tool.connections")})})}),t.jsx(oe,{}),E&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:D.slug,appSlug:vt(E)},search:{tab:"tools"},children:E.title})})}),t.jsx(oe,{})]}),t.jsx(Y,{children:t.jsx(Be,{children:Ve})})]})}),be=r.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(Te,{})}),t.jsx($e,{children:r.map(d=>t.jsx(de,{value:d.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:d.icon,name:d.title,size:"xs",className:"shrink-0"}),d.title]})},d.id))})]}),He=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:l("details.tool.parameters")}),v?.inputSchema?.required&&v.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",l("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:G&&v?.inputSchema?.properties?Object.entries(v.inputSchema.properties).map(([d,h])=>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,v.inputSchema?.required?.includes(d)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:h.type})]}),h.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:h.description}),h.type==="object"||h.type==="array"?t.jsx(pe,{className:"font-mono text-xs",value:ne(d)?c[d]??"":Z[d]??"",onChange:T=>le(d,T.target.value),placeholder:l("details.tool.enterAsJson",{key:d}),rows:3}):h.type==="boolean"?t.jsxs(Ce,{value:ne(d)?String(c[d]??""):"",onValueChange:T=>le(d,T==="true"),children:[t.jsx(Ie,{children:t.jsx(Te,{placeholder:l("details.tool.selectTrueOrFalse")})}),t.jsxs($e,{children:[t.jsx(de,{value:"true",children:"true"}),t.jsx(de,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ne(d)?c[d]??"":Z[d]??"",onChange:T=>le(d,T.target.value),placeholder:l("details.tool.enter",{key:d})})]},d)):v?.inputSchema&&!G?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:l("details.tool.rawJsonInput")}),t.jsx(pe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:d=>g(d.target.value),placeholder:l("details.tool.rawJsonExample")})]}):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:l("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Je,children:[t.jsx(rt,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:_e,children:[t.jsx(Nt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),Ke=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:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&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(at,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ct,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(bt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),O&&t.jsx(ht,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>z("ui"),children:t.jsx(dt,{size:14})})}),t.jsx(De,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:F==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>z("json"),children:t.jsx(ye,{size:14})})}),t.jsx(De,{children:l("details.tool.jsonView")})]})]})})]})]}),$&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(pt,{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(gt,{className:"h-4 w-4"}),t.jsx(xt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(ft,{className:"text-xs text-destructive",children:$})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:O&&F==="ui"&&M?t.jsx(A.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(X,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(mt,{resourceURI:O,toolInfo:v?{tool:v}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:M,onMessage:V,onUpdateModelContext:d=>I?.setAppContext(U,d),onTeardown:()=>I?.clearAppContext(U),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Pt,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{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(m,null,2)),tt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(jt,{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(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(ge,{leading:qe,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(Ae,{icon:E?.icon||null,name:E?.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:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.isLoading?t.jsx(X,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(yt,{annotations:v?.annotations,_meta:v?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:be})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:v?.description||"No description available"})]}),r.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:l("details.tool.instance")}),be]}),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:He}),Ke]})})]})})}function Lt(s){const e=L.c(20),{itemId:r,siblings:o,onBack:l}=s,i=Q(),[a,u]=A.useState(o[0]?.id??"");let c;e[0]!==a||e[1]!==o?(c=o.find(f=>f.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=c):c=e[2];const n=c;if(!Le(n||void 0)||!n){let f;e[3]!==i?(f=i("details.tool.connectionNotFound"),e[3]=i,e[4]=f):f=e[4];let p;e[5]!==f?(p=t.jsx("h3",{className:"text-lg font-semibold",children:f}),e[5]=f,e[6]=p):p=e[6];let j;e[7]!==i?(j=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=j):j=e[8];let N;e[9]!==j?(N=t.jsx("p",{className:"text-sm text-muted-foreground",children:j}),e[9]=j,e[10]=N):N=e[10];let S;return e[11]!==p||e[12]!==N?(S=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:[p,N]})}),e[11]=p,e[12]=N,e[13]=S):S=e[13],S}let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),e[14]=g):g=e[14];let m;return e[15]!==n||e[16]!==l||e[17]!==o||e[18]!==r?(m=t.jsx(A.Suspense,{fallback:g,children:t.jsx(zt,{toolName:r,connectionId:n,siblings:o,onSelectInstance:u,onBack:l})}),e[15]=n,e[16]=l,e[17]=o,e[18]=r,e[19]=m):m=e[19],m}const Ut={prompt:Mt};function _t(){const s=L.c(9),e=Oe();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=fe(r),l=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=Ue(i);let u;s[3]!==e.history?(u=()=>{e.history.back()},s[3]=e.history,s[4]=u):u=s[4];const c=u,n=Jt;let x;return s[5]!==c||s[6]!==l||s[7]!==a?(x=t.jsx(Lt,{itemId:l,siblings:a,onBack:c,onUpdate:n}),s[5]=c,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Jt(s){return Promise.resolve()}function Vt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function qt(){const s=L.c(52),e=Oe();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=fe(r),l=Q(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let u;s[1]!==e.history?(u=()=>{e.history.back()},s[1]=e.history,s[2]=u):u=s[2];const c=u,{org:n}=xe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const m=Ue(x)[0]??null,f=m?.id??"",p=f||"no-connection",j=f??null;let N;s[5]!==n.id||s[6]!==n.slug||s[7]!==j?(N={connectionId:j,orgId:n.id,orgSlug:n.slug},s[5]=n.id,s[6]=n.slug,s[7]=j,s[8]=N):N=s[8];const S=he(N),$=Re(p,i,S);let y;s[9]!==$||s[10]!==a?(y=async J=>{a&&await $.update.mutateAsync({id:a,data:J})},s[9]=$,s[10]=a,s[11]=y):y=s[11];const P=y;let w;s[12]!==i?(w=i?.toLowerCase(),s[12]=i,s[13]=w):w=s[13];const b=w,k=b&&Ut[b];let D;s[14]!==i?(D=Vt(i),s[14]=i,s[15]=D):D=s[15];const E=D;let C;s[16]!==n.slug?(C=t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections",params:{org:n.slug},children:"Connections"})})}),s[16]=n.slug,s[17]=C):C=s[17];let I;s[18]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(oe,{}),s[18]=I):I=s[18];let R;s[19]!==i||s[20]!==m||s[21]!==n.slug||s[22]!==o.appSlug?(R=m&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(se,{asChild:!0,children:t.jsx(te,{to:"/$org/settings/connections/$appSlug",params:{org:n.slug,appSlug:o.appSlug},search:{tab:i},children:m.title})})}),t.jsx(oe,{})]}),s[19]=i,s[20]=m,s[21]=n.slug,s[22]=o.appSlug,s[23]=R):R=s[23];let U;s[24]!==E?(U=t.jsx(Y,{children:t.jsx(Be,{children:E})}),s[24]=E,s[25]=U):U=s[25];let M;s[26]!==R||s[27]!==U||s[28]!==C?(M=t.jsx(Fe,{children:t.jsxs(ze,{children:[C,I,R,U]})}),s[26]=R,s[27]=U,s[28]=C,s[29]=M):M=s[29];const _=M;if(k){let J;return s[30]!==k||s[31]!==c||s[32]!==P||s[33]!==a?(J=t.jsx(k,{itemId:a,onBack:c,onUpdate:P}),s[30]=k,s[31]=c,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let v;s[35]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Dt,{size:36,className:"text-muted-foreground"}),s[35]=v):v=s[35];let O;s[36]!==l?(O=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=O):O=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let F;s[40]!==l?(F=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=F):F=s[41];let z;s[42]!==c||s[43]!==F?(z={onClick:c,children:F},s[42]=c,s[43]=F,s[44]=z):z=s[44];let q;s[45]!==O||s[46]!==V||s[47]!==z?(q=t.jsx(kt,{icon:v,title:O,description:V,buttonProps:z}),s[45]=O,s[46]=V,s[47]=z,s[48]=q):q=s[48];let W;return s[49]!==_||s[50]!==q?(W=t.jsx(ge,{leading:_,children:q}),s[49]=_,s[50]=q,s[51]=W):W=s[51],W}function Ht(){const s=L.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 r=fe(e);if(decodeURIComponent(r.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(_t,{}),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 un(){const s=L.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Ht,{})})}),s[0]=e):e=s[0],e}export{un as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,b as A,j as s,l as z,B as E}from"./index-
|
|
1
|
+
import{c as $,b as A,j as s,l as z,B as E}from"./index-CfiHR5p3.js";import{a as S,D as F,b as L,c as O}from"./dropdown-menu-CoycaRIZ.js";import{i as R,n as _}from"./ArrowUp-B2y3FAZT.js";import{i as V}from"./Check-DYuLLcXz.js";import{a as I,i as K,c as P}from"./SwitchHorizontal01-BaPOYupn.js";import{T as W,a as q,b as G,c as H}from"./tooltip-DIW02rf-.js";import{V as J}from"./view-mode-toggle-5ObOX782.js";import{B as Q}from"./badge-Bx6TdTjC.js";function oe(t){const e=$.c(36),{viewMode:l,onViewModeChange:u,sortKey:M,sortDirection:h,onSort:g,sortOptions:j,filters:b}=t;let v;e[0]!==j?(v=j===void 0?[]:j,e[0]=j,e[1]=v):v=e[1];const N=v;let w;e[2]!==b?(w=b===void 0?[]:b,e[2]=b,e[3]=w):w=e[3];const r=w,i=A();let C;e[4]!==r?(C=r.filter(X),e[4]=r,e[5]=C):C=e[5];const y=C.length;let k;e[6]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(I,{size:16}),e[6]=k):k=e[6];let o;e[7]!==y?(o=y>0&&s.jsx(Q,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:y}),e[7]=y,e[8]=o):o=e[8];let n;e[9]!==o?(n=s.jsx(W,{asChild:!0,children:s.jsx(F,{asChild:!0,children:s.jsxs(E,{variant:"outline",size:"icon",className:"relative",children:[k,o]})})}),e[9]=o,e[10]=n):n=e[10];let a;e[11]!==i?(a=i("collections.collectionDisplayButton.displayAndFilters"),e[11]=i,e[12]=a):a=e[12];let c;e[13]!==a?(c=s.jsx(q,{children:a}),e[13]=a,e[14]=c):c=e[14];let d;e[15]!==c||e[16]!==n?(d=s.jsx(G,{children:s.jsxs(H,{children:[n,c]})}),e[15]=c,e[16]=n,e[17]=d):d=e[17];let x;e[18]!==u||e[19]!==l?(x=u&&l&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(J,{value:l,onValueChange:u,fullWidth:!0,options:[{value:"table",icon:s.jsx(K,{})},{value:"cards",icon:s.jsx(P,{})}]})}),e[18]=u,e[19]=l,e[20]=x):x=e[20];let m;e[21]!==g||e[22]!==h||e[23]!==M||e[24]!==N||e[25]!==i?(m=N.length>0&&g&&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:i("collections.collectionDisplayButton.sortBy")}),N.map(T=>{const B=M===T.id;return s.jsx(S,{onClick:()=>g(T.id),className:z("h-8 px-2 py-0 cursor-pointer",B&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[B&&s.jsx(V,{size:16,className:"text-foreground shrink-0"}),!B&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:T.label}),B&&h&&(h==="asc"?s.jsx(R,{size:16,className:"text-foreground shrink-0"}):s.jsx(_,{size:16,className:"text-foreground shrink-0"}))]})},T.id)})]}),e[21]=g,e[22]=h,e[23]=M,e[24]=N,e[25]=i,e[26]=m):m=e[26];let p;e[27]!==r?(p=r.map(U),e[27]=r,e[28]=p):p=e[28];let f;e[29]!==x||e[30]!==m||e[31]!==p?(f=s.jsxs(L,{align:"end",className:"w-[200px] p-0 gap-0",children:[x,m,p]}),e[29]=x,e[30]=m,e[31]=p,e[32]=f):f=e[32];let D;return e[33]!==d||e[34]!==f?(D=s.jsxs(O,{children:[d,f]}),e[33]=d,e[34]=f,e[35]=D):D=e[35],D}function U(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 l=t.value===e.id;return s.jsx(S,{onClick:()=>t.onChange(e.id),className:z("h-8 px-2 py-0 cursor-pointer",l&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[l&&s.jsx(V,{size:16,className:"text-foreground shrink-0"}),!l&&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 X(t){return t.value!=="ALL"}export{oe as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,l as b,j as a,h as w}from"./index-
|
|
1
|
+
import{c as v,l as b,j as a,h as w}from"./index-CfiHR5p3.js";import{i as C}from"./SearchMd-B6arCmyn.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=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 p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.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]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,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]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as r,l as C,b as S}from"./index-
|
|
1
|
+
import{c as k,j as r,l as C,b as S}from"./index-CfiHR5p3.js";import{T as R,a as H,b as T,c as I,d as W,e as z}from"./table-CUSmiMk_.js";import{i as D,n as E}from"./ArrowUp-B2y3FAZT.js";function K(y){const e=k.c(29),{columns:n,data:f,sortKey:u,sortDirection:x,onSort:c,onRowClick:a,rowClassName:d}=y;let p;e[0]!==x?(p=function(s,h){return r.jsx("div",{className:"w-4 flex items-center justify-center",children:h&&x&&(x==="asc"?r.jsx(D,{size:16,className:"text-muted-foreground transition-colors"}):r.jsx(E,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=x,e[1]=p):p=e[1];const b=p;let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=function(s,h){let N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return s===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]=o):o=e[2];const g=o;let t;if(e[3]!==n||e[4]!==c||e[5]!==b||e[6]!==u){let i;e[8]!==n.length||e[9]!==c||e[10]!==b||e[11]!==u?(i=(s,h)=>{const N=u===s.id;return r.jsx(R,{className:C(g(h,n.length),"group transition-colors select-none",s.sortable&&"hover:bg-accent cursor-pointer",s.rowClassName,s.cellClassName),onClick:s.sortable&&c?()=>c(s.id):void 0,children:r.jsxs("span",{className:"flex items-center gap-1",children:[s.header,s.sortable&&b(s.id,N)]})},s.id)},e[8]=n.length,e[9]=c,e[10]=b,e[11]=u,e[12]=i):i=e[12],t=n.map(i),e[3]=n,e[4]=c,e[5]=b,e[6]=u,e[7]=t}else t=e[7];let l;e[13]!==t?(l=r.jsx(H,{className:"border-b-0",children:r.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:t})}),e[13]=t,e[14]=l):l=e[14];let j;if(e[15]!==n||e[16]!==f||e[17]!==a||e[18]!==d){let i;e[20]!==n||e[21]!==a||e[22]!==d?(i=(s,h)=>{const N=d?.(s);return r.jsx(T,{"data-row-index":h,className:C("group/data-row transition-colors border-b-0 hover:bg-accent/50",a?"cursor-pointer":"",N),onClick:a?()=>a(s):void 0,children:n.map(m=>r.jsx(I,{className:C("px-5 py-4 h-16 align-middle text-sm text-foreground",m.cellClassName,m.wrap?"whitespace-normal wrap-break-word":""),children:r.jsx("div",{className:C(m.wrap?"w-full":"min-w-0 w-full",!m.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:m.render?m.render(s):m.accessor?m.accessor(s):null})},m.id))},h)},e[20]=n,e[21]=a,e[22]=d,e[23]=i):i=e[23],j=f.map(i),e[15]=n,e[16]=f,e[17]=a,e[18]=d,e[19]=j}else j=e[19];let w;e[24]!==j?(w=r.jsx(W,{children:j}),e[24]=j,e[25]=w):w=e[25];let v;return e[26]!==l||e[27]!==w?(v=r.jsxs(z,{className:"w-full border-collapse",children:[l,w]}),e[26]=l,e[27]=w,e[28]=v):v=e[28],v}function B(y){const e=k.c(16),{columns:n,data:f,isLoading:u,sortKey:x,sortDirection:c,onSort:a,onRowClick:d,emptyState:p}=y,b=u===void 0?!1:u,o=S();if(b){let t;e[0]!==o?(t=o("collections.collectionTableWrapper.loading"),e[0]=o,e[1]=t):t=e[1];let l;return e[2]!==t?(l=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx("div",{className:"text-muted-foreground",children:t})}),e[2]=t,e[3]=l):l=e[3],l}if(f.length===0){let t;e[4]!==p||e[5]!==o?(t=p||r.jsx("div",{className:"text-center py-12 text-muted-foreground",children:o("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=o,e[6]=t):t=e[6];let l;return e[7]!==t?(l=r.jsx("div",{className:"flex items-center justify-center h-full",children:t}),e[7]=t,e[8]=l):l=e[8],l}let g;return e[9]!==n||e[10]!==f||e[11]!==d||e[12]!==a||e[13]!==c||e[14]!==x?(g=r.jsx("div",{className:"flex-1",children:r.jsx(K,{columns:n,data:f,sortKey:x,sortDirection:c,onSort:a,onRowClick:d})}),e[9]=n,e[10]=f,e[11]=d,e[12]=a,e[13]=c,e[14]=x,e[15]=g):g=e[15],g}export{B as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,l as u,j as m}from"./index-
|
|
1
|
+
import{c as f,l as u,j as m}from"./index-CfiHR5p3.js";import{B as g}from"./badge-Bx6TdTjC.js";function h(x){const e=f.c(12),{tabs:c,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]!==c){let l;e[6]!==n||e[7]!==s?(l=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]=l):l=e[8],r=c.map(l),e[2]=n,e[3]=s,e[4]=c,e[5]=r}else r=e[5];let i;return e[9]!==t||e[10]!==r?(i=m.jsx("div",{className:t,children:r}),e[9]=t,e[10]=r,e[11]=i):i=e[11],i}export{h as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,l as i,j as n}from"./index-
|
|
1
|
+
import{c as d,l as i,j as n}from"./index-CfiHR5p3.js";import{_ as m}from"./index-CR7IhZdQ.js";import{D as j,d as b,h as w,c as y,b as C}from"./dialog-DKHdGeG-.js";import{i as D}from"./SearchMd-B6arCmyn.js";function $(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 G(a){const e=d.c(28);let t,s,o,l,r,h,_;e[0]!==a?({title:h,description:_,children:t,className:s,filter:o,shouldFilter:r,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r,e[6]=h,e[7]=_):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5],h=e[6],_=e[7]);const k=h===void 0?"Command Palette":h,N=_===void 0?"Search for a command to run...":_;let c;e[8]!==k?(c=n.jsx(b,{children:k}),e[8]=k,e[9]=c):c=e[9];let p;e[10]!==N?(p=n.jsx(w,{children:N}),e[10]=N,e[11]=p):p=e[11];let u;e[12]!==c||e[13]!==p?(u=n.jsxs(y,{className:"sr-only",children:[c,p]}),e[12]=c,e[13]=p,e[14]=u):u=e[14];let f;e[15]!==s?(f=i("overflow-hidden p-0",s),e[15]=s,e[16]=f):f=e[16];let x;e[17]!==t||e[18]!==o||e[19]!==r?(x=n.jsx($,{filter:o,shouldFilter:r,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:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=o,e[19]=r,e[20]=x):x=e[20];let g;e[21]!==f||e[22]!==x?(g=n.jsx(C,{className:f,closeButtonClassName:"hidden",children:x}),e[21]=f,e[22]=x,e[23]=g):g=e[23];let v;return e[24]!==l||e[25]!==u||e[26]!==g?(v=n.jsxs(j,{...l,children:[u,g]}),e[24]=l,e[25]=u,e[26]=g,e[27]=v):v=e[27],v}function L(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(D,{className:"size-4 shrink-0 text-muted-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 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("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 B(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:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function F(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 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("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 P(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-pointer 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{B as C,F as a,P as b,R as c,$ as d,L as e,G as f,H as g};
|
package/dist/client/assets/{command-palette-store-D_KrAOxe.js → command-palette-store-3XeVzDCK.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,r as c}from"./index-
|
|
1
|
+
import{c as r,r as c}from"./index-CfiHR5p3.js";import{S as l}from"./hooks-C4BbSdNW.js";const i=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),s=i?"⌘":"Ctrl",e={commandPalette:{keys:[s,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[s,"["],description:"Back to previous"},focusChatInput:{keys:[s,"L"],description:"Focus chat input"},saveAndFormat:{keys:[s,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[s,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[s,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",s,"S"],description:"New task"},toggleDaemon:{keys:[s,"D"],description:"Toggle daemon logs"}},u=[{label:"General",shortcuts:[e.commandPalette,e.keyboardShortcuts,e.back,e.newTask,e.toggleDaemon]},{label:"Editor",shortcuts:[e.saveAndFormat]},{label:"Chat",shortcuts:[e.focusChatInput,e.togglePlanMode,e.sendMessage,e.newLine]},{label:"Questions",shortcuts:[e.selectOption]},{label:"Monitoring",shortcuts:[e.applyFilter]}];function m(t){return i?t.metaKey:t.ctrlKey}function f(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const o=t.tagName;return o==="INPUT"||o==="TEXTAREA"||o==="SELECT"}const n=new l(!1);function y(){n.set(!0)}function g(){n.set(!1)}function k(){const t=r.c(2),o=c.useSyncExternalStore(n.subscribe,n.get);let a;return t[0]!==o?(a=[o,n.set],t[0]=o,t[1]=a):a=t[1],a}export{e as K,u as S,f as a,g as c,m as i,y as o,k as u};
|
package/dist/client/assets/{companion-mcps-section-CYcavt6d.js → companion-mcps-section-BcH1woZ_.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as _,r as U,l as Q,j as s,Q as Y,E as Z,b as z,a as ee,x as te,B as ne}from"./index-
|
|
1
|
+
import{c as _,r as U,l as Q,j as s,Q as Y,E as Z,b as z,a as ee,x as te,B as ne}from"./index-CfiHR5p3.js";import{n as se}from"./site-url-en5df9c-.js";import{u as oe}from"./use-mcp-client-2DKlVY7y.js";import{u as re,a as le,C as ie,b as ae}from"./use-connect-companion-DMsU19hB.js";function ce(t){const e=_.c(14),{children:n,className:o,wrapperClassName:r}=t,[d,c]=U.useState(!0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=u=>{if(!u)return;const y=()=>{const j=u.scrollHeight-u.scrollTop-u.clientHeight<8;c(j)};y(),u.addEventListener("scroll",y,{passive:!0});const b=new ResizeObserver(y);b.observe(u);for(const j of Array.from(u.children))b.observe(j);return()=>{u.removeEventListener("scroll",y),b.disconnect()}},e[0]=f):f=e[0];const p=f;let l;e[1]!==r?(l=Q("relative",r),e[1]=r,e[2]=l):l=e[2];let i;e[3]!==n||e[4]!==o?(i=s.jsx("div",{ref:p,className:o,children:n}),e[3]=n,e[4]=o,e[5]=i):i=e[5];const a=d?"opacity-0":"opacity-100";let x;e[6]!==a?(x=Q("pointer-events-none absolute inset-x-0 -bottom-px h-[72px]","bg-gradient-to-t from-sidebar from-[6px] to-transparent","backdrop-blur-[1px] [mask-image:linear-gradient(to_top,black_6px,transparent)]","transition-opacity duration-200",a),e[6]=a,e[7]=x):x=e[7];let m;e[8]!==x?(m=s.jsx("div",{"aria-hidden":!0,className:x}),e[8]=x,e[9]=m):m=e[9];let g;return e[10]!==l||e[11]!==i||e[12]!==m?(g=s.jsxs("div",{className:l,children:[i,m]}),e[10]=l,e[11]=i,e[12]=m,e[13]=g):g=e[13],g}const H="flex min-h-0 flex-1 flex-col gap-6 md:grid md:flex-none md:gap-6";function q(){const t=_.c(4),e=z();let n;t[0]!==e?(n=e("routes.reportsOnboarding.companionSection.title"),t[0]=e,t[1]=n):n=t[1];let o;return t[2]!==n?(o=s.jsx("h1",{className:"text-lg font-medium leading-6 text-foreground lg:text-xl lg:leading-7",children:n}),t[2]=n,t[3]=o):o=t[3],o}function de(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex flex-col gap-4",children:[0,1,2,3].map(me)}),t[0]=e):e=t[0],e}function me(t){return s.jsx(ae,{},t)}function fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:H,children:[s.jsx(q,{}),s.jsx(de,{})]}),t[0]=e):e=t[0],e}function ue(t){const e=_.c(18),{onRetry:n}=t,o=z();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(q,{}),e[0]=r):r=e[0];let d;e[1]!==o?(d=o("routes.reportsOnboarding.companionSection.loadError"),e[1]=o,e[2]=d):d=e[2];let c;e[3]!==d?(c=s.jsx("p",{className:"text-sm text-foreground",children:d}),e[3]=d,e[4]=c):c=e[4];let f;e[5]!==o?(f=o("routes.reportsOnboarding.companionSection.loadErrorDescription"),e[5]=o,e[6]=f):f=e[6];let p;e[7]!==f?(p=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:f}),e[7]=f,e[8]=p):p=e[8];let l;e[9]!==o?(l=o("routes.reportsOnboarding.companionSection.retry"),e[9]=o,e[10]=l):l=e[10];let i;e[11]!==n||e[12]!==l?(i=s.jsx(ne,{type:"button",variant:"outline",size:"sm",className:"mt-3",onClick:n,children:l}),e[11]=n,e[12]=l,e[13]=i):i=e[13];let a;return e[14]!==c||e[15]!==p||e[16]!==i?(a=s.jsxs("div",{className:H,children:[r,s.jsxs("div",{role:"alert",className:"rounded-2xl border border-border bg-card p-4",children:[c,p,i]})]}),e[14]=c,e[15]=p,e[16]=i,e[17]=a):a=e[17],a}function ve(t){const e=_.c(2);let n;return e[0]!==t?(n=s.jsx(Y,{children:o=>{const{reset:r}=o;return s.jsx(Z,{fallback:d=>{const{resetError:c}=d;return s.jsx(ue,{onRetry:()=>{r(),c()}})},children:s.jsx(U.Suspense,{fallback:s.jsx(fe,{}),children:s.jsx(pe,{...t})})})}}),e[0]=t,e[1]=n):n=e[1],n}function pe(t){const e=_.c(60),{org:n,cdConnectionId:o,siteUrl:r,onReadinessChange:d}=t,c=z(),{data:f}=ee.useSession(),p=f?.user?.id??"";let l;if(e[0]!==r){const $=r?se(r):null;if($?.ok)try{l=new URL($.value).hostname}catch{l=void 0}e[0]=r,e[1]=l}else l=e[1];let i;e[2]!==n.id||e[3]!==n.slug?(i={connectionId:te,orgId:n.id,orgSlug:n.slug},e[2]=n.id,e[3]=n.slug,e[4]=i):i=e[4];const a=oe(i);let x;e[5]!==o||e[6]!==n||e[7]!==a||e[8]!==r?(x={selfClient:a,org:n,cdConnectionId:o,siteUrl:r},e[5]=o,e[6]=n,e[7]=a,e[8]=r,e[9]=x):x=e[9];const{cards:m,saStatusUnavailable:g}=re(x);let u;e[10]!==o||e[11]!==n||e[12]!==a||e[13]!==l||e[14]!==r||e[15]!==p?(u={selfClient:a,org:n,userId:p,cdConnectionId:o,domain:l,siteUrl:r},e[10]=o,e[11]=n,e[12]=a,e[13]=l,e[14]=r,e[15]=p,e[16]=u):u=e[16];const{connect:y,connectingFieldKey:b,disconnect:j,disconnectingFieldKey:L,error:N}=le(u),[F,D]=U.useState(null),P=he;let E,R,C,k,K,O,I,w,S,v;if(e[17]!==F||e[18]!==m||e[19]!==y||e[20]!==N||e[21]!==b||e[22]!==j||e[23]!==L||e[24]!==d||e[25]!==n||e[26]!==g||e[27]!==a||e[28]!==r||e[29]!==c){k=Symbol.for("react.early_return_sentinel");e:{const $=m.filter(ge),G=m.filter(xe),J=g||($.length>0?$.every(P):m.length===0||m.some(P));if(d?.(J),m.length===0){k=null;break e}const V=b!==null||L!==null,W=h=>{const X=async()=>{await y(h)&&D(h.fieldKey)};return s.jsx(ie,{card:h,connecting:b===h.fieldKey,disconnecting:L===h.fieldKey,disabled:V&&b!==h.fieldKey&&L!==h.fieldKey,org:n,selfClient:a,siteUrl:r,autoOpenConfigFieldKey:F,onAutoOpenConfigHandled:()=>D(T=>T===h.fieldKey?null:T),onConnect:()=>{X()},onDisconnect:()=>{j(h)}},h.fieldKey)};R=H,e[40]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(q,{}),e[40]=C):C=e[40],E=ce,I="flex min-h-0 flex-1 flex-col md:block",w="-mx-1 min-h-0 flex-1 overflow-y-auto px-1 md:max-h-[min(60vh,calc(100dvh-330px))] md:flex-none",e[41]!==N?(S=N&&s.jsx("p",{role:"alert",className:"mb-3 text-sm text-destructive",children:N}),e[41]=N,e[42]=S):S=e[42],e[43]!==g||e[44]!==c?(v=g&&s.jsx("p",{role:"status",className:"mb-3 rounded-lg border border-warning/40 bg-warning/10 p-3 text-sm text-foreground",children:c("routes.reportsOnboarding.companionSection.statusUnavailable")}),e[43]=g,e[44]=c,e[45]=v):v=e[45],K="flex flex-col gap-4 pt-3",O=[...$,...G].map(W)}e[17]=F,e[18]=m,e[19]=y,e[20]=N,e[21]=b,e[22]=j,e[23]=L,e[24]=d,e[25]=n,e[26]=g,e[27]=a,e[28]=r,e[29]=c,e[30]=E,e[31]=R,e[32]=C,e[33]=k,e[34]=K,e[35]=O,e[36]=I,e[37]=w,e[38]=S,e[39]=v}else E=e[30],R=e[31],C=e[32],k=e[33],K=e[34],O=e[35],I=e[36],w=e[37],S=e[38],v=e[39];if(k!==Symbol.for("react.early_return_sentinel"))return k;let A;e[46]!==K||e[47]!==O?(A=s.jsx("div",{className:K,children:O}),e[46]=K,e[47]=O,e[48]=A):A=e[48];let B;e[49]!==E||e[50]!==A||e[51]!==I||e[52]!==w||e[53]!==S||e[54]!==v?(B=s.jsxs(E,{wrapperClassName:I,className:w,children:[S,v,A]}),e[49]=E,e[50]=A,e[51]=I,e[52]=w,e[53]=S,e[54]=v,e[55]=B):B=e[55];let M;return e[56]!==R||e[57]!==C||e[58]!==B?(M=s.jsxs("div",{className:R,children:[C,B]}),e[56]=R,e[57]=C,e[58]=B,e[59]=M):M=e[59],M}function xe(t){return!t.required}function ge(t){return t.required}function he(t){return t.satisfied&&t.configured}export{fe as C,ce as S,ve as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as _,b as B,r as G,l as ee,j as s,fi as te,M as se,ao as ne,F as ie,B as U,t as J,eD as oe,dP as le}from"./index-
|
|
1
|
+
import{c as _,b as B,r as G,l as ee,j as s,fi as te,M as se,ao as ne,F as ie,B as U,t as J,eD as oe,dP as le}from"./index-CfiHR5p3.js";import{b as ae,a as re}from"./alert-DwSbSu1x.js";import{a as ce,b as de,c as V,d as ue,S as me}from"./select-BOl9wnf6.js";import{T as fe,c as pe,a as xe,b as ge}from"./tabs-52cPaZXm.js";import{u as X}from"./use-copy-Cfn-m-ZW.js";import{i as Y}from"./Check-DYuLLcXz.js";import{i as he}from"./ChevronRight-BvrNCsKT.js";import{a as Q}from"./Copy01-BKbbYkAO.js";import{i as ye}from"./Key01-0kVvyKcG.js";import{i as Ce}from"./Link01-Ct7pxTAu.js";import{C as be,a as je,b as ve}from"./client-icons-BIZcUQix.js";import{u as we,a as Ne,A as $e}from"./api-keys-Cpho4Cho.js";import{R as ke}from"./require-capability-BJkKy0kt.js";import"./index-B7wVUCeI.js";import"./ChevronUp-B-GxN-tN.js";import"./AlertCircle-CZODjB-G.js";import"./Plus-DaMIkku0.js";import"./Trash01-CchLM2HV.js";import"./alert-dialog-dzu9U-o1.js";import"./dialog-DKHdGeG-.js";import"./X-Dr0Tqjzv.js";import"./input-DOqceFPC.js";import"./label-DCUE6TYd.js";import"./use-mcp-client-2DKlVY7y.js";import"./auth-UveS8wF5.js";import"./access-gate-Cql3KqwB.js";import"./capability-load-error-Dnwh9vPw.js";function Se(){return(typeof window>"u"?"":window.location.hostname||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"studio"}function Ke(t){return`${typeof window>"u"?"http://localhost:3000":window.location.origin}/api/${t}/mcp/self`}function _e({client:t,mode:e,url:r,apiKey:c}){const i=c??"<paste-your-api-key>",a=Se();if(t==="claude-code")return e==="oauth"?{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r}`}:{language:"bash",code:`claude mcp add --transport http --scope user ${a} ${r} \\
|
|
2
2
|
--header "Authorization: Bearer ${i}"`};if(t==="cursor"){const n={url:r};return e==="api-key"&&(n.headers={Authorization:`Bearer ${i}`}),{language:"json",pathHint:"~/.cursor/mcp.json",code:JSON.stringify({mcpServers:{[a]:n}},null,2)}}if(t==="codex"){const n=[`[mcp_servers.${a}]`,`url = "${r}"`];return e==="api-key"&&n.push(`http_headers = { "Authorization" = "Bearer ${i}" }`),{language:"toml",pathHint:"~/.codex/config.toml",code:n.join(`
|
|
3
3
|
`)}}return e==="oauth"?{language:"text",code:`${r}
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,b as N,j as s,D as w,B as k}from"./index-
|
|
1
|
+
import{c as v,b as N,j as s,D as w,B as k}from"./index-CfiHR5p3.js";import{i as y}from"./ChevronRight-BvrNCsKT.js";import{i as z}from"./X-Dr0Tqjzv.js";import{an as _,ae as C}from"./agent-icon-I_u5FzRN.js";const S="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function $(){const t=v.c(13),e=N();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),t[0]=l):l=t[0];let n;t[1]!==e?(n=e("routes.reportsOnboarding.connectModal.quote"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",n,"”"]}),t[3]=n,t[4]=o):o=t[4];let a;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("img",{src:S,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),t[5]=a):a=t[5];let r;t[6]!==e?(r=e("routes.reportsOnboarding.connectModal.quoteAuthor"),t[6]=e,t[7]=r):r=t[7];let i;t[8]!==r?(i=s.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[a,s.jsx("span",{className:"text-base font-medium",children:r})]}),t[8]=r,t[9]=i):i=t[9];let c;return t[10]!==o||t[11]!==i?(c=s.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[l,o,i]}),t[10]=o,t[11]=i,t[12]=c):c=t[12],c}function M(){const t=v.c(19),e=N();let l;t[0]!==e?(l=e("routes.reportsOnboarding.connectModal.trustRevoke"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n={Icon:_,label:l},t[2]=l,t[3]=n):n=t[3];let o;t[4]!==e?(o=e("routes.reportsOnboarding.connectModal.trustEncrypted"),t[4]=e,t[5]=o):o=t[5];let a;t[6]!==o?(a={Icon:w,label:o},t[6]=o,t[7]=a):a=t[7];let r;t[8]!==e?(r=e("routes.reportsOnboarding.connectModal.trustNeverSold"),t[8]=e,t[9]=r):r=t[9];let i;t[10]!==r?(i={Icon:C,label:r},t[10]=r,t[11]=i):i=t[11];let c;t[12]!==n||t[13]!==a||t[14]!==i?(c=[n,a,i],t[12]=n,t[13]=a,t[14]=i,t[15]=c):c=t[15];const m=c;let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"h-px w-full bg-white/15"}),t[16]=f):f=t[16];let d;return t[17]!==m?(d=s.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[f,s.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:m.map(q)})]}),t[17]=m,t[18]=d):d=t[18],d}function q(t){const{Icon:e,label:l}=t;return s.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[s.jsx(e,{className:"size-4 shrink-0 opacity-85"}),l]},l)}function I(t){const e=v.c(22),{siteHost:l,footer:n,onClose:o,children:a}=t,r=N(),i=l?`https://www.google.com/s2/favicons?domain=${l}&sz=128`:null;let c;e[0]!==o||e[1]!==r?(c=o&&s.jsx("button",{type:"button",onClick:o,"aria-label":r("routes.reportsOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:s.jsx(z,{size:18})}),e[0]=o,e[1]=r,e[2]=c):c=e[2];let m,f;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),f=s.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=m,e[4]=f):(m=e[3],f=e[4]);let d;e[5]!==i||e[6]!==l?(d=l&&s.jsxs(s.Fragment,{children:[s.jsx(y,{size:16,className:"shrink-0 text-foreground/25"}),i&&s.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:s.jsx("img",{src:i,alt:"",className:"size-full"})}),s.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:l})]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let x;e[8]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[m,f,d]}),e[8]=d,e[9]=x):x=e[9];let g;e[10]!==n?(g=s.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:n}),e[10]=n,e[11]=g):g=e[11];let h;e[12]!==a||e[13]!==x||e[14]!==g?(h=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[x,a,g]}),e[12]=a,e[13]=x,e[14]=g,e[15]=h):h=e[15];let u,b;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),b=s.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=u,e[17]=b):(u=e[16],b=e[17]);let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[u,b,s.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[s.jsx("div",{className:"flex-1"}),s.jsx($,{}),s.jsx("div",{className:"flex-1"}),s.jsx(M,{})]})]}),e[18]=p):p=e[18];let j;return e[19]!==c||e[20]!==h?(j=s.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[c,h,p]}),e[19]=c,e[20]=h,e[21]=j):j=e[21],j}function B(t){const e=v.c(5),{ready:l,pending:n,label:o,onClick:a,children:r}=t,i=n||!l,c=l&&!n?r:null;let m;return e[0]!==o||e[1]!==a||e[2]!==i||e[3]!==c?(m=s.jsxs(k,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal rounded-lg py-3 text-center text-base font-medium leading-tight",onClick:a,disabled:i,children:[o,c]}),e[0]=o,e[1]=a,e[2]=i,e[3]=c,e[4]=m):m=e[4],m}export{I as C,B as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aa as o,bs as a,bq as n,ab as e,br as i,bt as r,cy as b,dq as p,ct as m}from"./index-
|
|
1
|
+
import{aa as o,bs as a,bq as n,ab as e,br as i,bt as r,cy as b,dq as p,ct as m}from"./index-CfiHR5p3.js";const h=o({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:n(e()),grantType:a(["authorization_code","client_credentials"])}),s=o({type:b("object"),properties:i(e(),r()).optional(),required:n(e()).optional()}).catchall(r()),_=p.extend({inputSchema:s,outputSchema:s.optional()}),f=o({headers:i(e(),e()).optional()}),g=o({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:n(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:i(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),d=256*1024;function l(t){return i(e(),r()).nullable().refine(c=>c===null||JSON.stringify(c).length<=d,{message:`${t} must serialize to at most ${d} bytes`})}const u=o({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),slug:e().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:a(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:m([g,f]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:h.nullable().describe("OAuth configuration"),configuration_state:l("configuration_state").describe("Configuration state (decrypted)"),configuration_scopes:n(e()).nullable().optional().describe("Configuration scopes"),metadata:l("metadata").describe("Additional metadata (includes repository info)"),tools:n(_).nullable().describe("Discovered tools from MCP"),bindings:n(e()).nullable().describe("Detected bindings"),status:a(["active","inactive","error"]).describe("Current status")});u.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:e().nullish()});u.partial();function T(t){return t!=null&&"command"in t}function y(t){return!t||!t.startsWith("virtual://")?null:t.replace("virtual://","")}export{h as O,T as i,y as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as $,M as K,x as k,a0 as F,K as H,b as q,l as A,j as x,eD as G}from"./index-
|
|
1
|
+
import{c as $,M as K,x as k,a0 as F,K as H,b as q,l as A,j as x,eD as G}from"./index-CfiHR5p3.js";import{u as U}from"./use-registry-connections-JpgvKLOj.js";import{e as V}from"./use-organization-settings-CZaZMu7C.js";import{u as X}from"./useInfiniteQuery-BUDJQ-a0.js";import{c as Y}from"./use-mcp-client-2DKlVY7y.js";import{i as z,f as B}from"./extract-connection-data-Bs0-7FAn.js";import{r as W,R as Z}from"./retry-i8LvYSZg.js";import{g as S}from"./connection-slug-CITJ0kGN.js";import{I as J}from"./integration-icon-_HXUWC0Q.js";function ge(){const s=$.c(6),e=U(),t=V(),o=K().project.enabledPlugins??[];let n;if(s[0]!==o||s[1]!==t||s[2]!==e){let a;s[4]!==t?(a=r=>t(r.id),s[4]=t,s[5]=a):a=s[5],n=e.filter(a).map(O),o.includes("private-registry")&&t(k)&&n.push({id:k,title:"Private Registry",icon:null}),s[0]=o,s[1]=t,s[2]=e,s[3]=n}else n=s[3];return n}function O(s){return{id:s.id,title:s.title,icon:s.icon}}const ee=24,D=3;function Q(s){return s.id.includes("community-registry")}function te(s){const e=s?.trim().split(/\s+/).filter(Boolean)??[];if(e.length===0)return;const t=[["title"],["description"],["name"],["server","title"]];return{operator:"or",conditions:e.flatMap(o=>t.map(n=>({field:n,operator:"contains",value:o})))}}function L(s,e,t,o,n){const a=s.map(l=>l.id).sort().join(","),r=te(n),{data:p,fetchNextPage:f,hasNextPage:d,isFetchingNextPage:g,isLoading:N}=X({queryKey:H.storeDiscovery(e,`${a}:${n??""}`),queryFn:async({pageParam:l})=>{const c=l??{};return await Promise.all(s.map(async i=>{const y=c[i.id];if(y==="EXHAUSTED")return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]};const C=z(i.id,e);try{return await W(async()=>{let u=null;try{u=await Y({connectionId:i.id,orgId:e,orgSlug:t});const h={limit:ee};y&&(h.cursor=y),r&&(h.where=r);const b=await u.callTool({name:C,arguments:h}),v=b.structuredContent??b,P=v.nextCursor||v.cursor||void 0,M=B(v?[v]:[]);return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:M,nextCursor:P}}finally{await u?.close().catch(()=>{})}},{maxAttempts:D,minTimeout:0,maxTimeout:1e3,jitter:0})}catch(u){return console.warn(`[useMergedStoreDiscovery] Registry "${i.title}" (${i.id}) failed after ${D} attempts:`,u instanceof Z?u.cause:u),{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]}}}))},initialPageParam:{},getNextPageParam:l=>{const c={};let m=!1;for(const i of l)i.registryId&&(i.nextCursor?(c[i.registryId]=i.nextCursor,m=!0):c[i.registryId]="EXHAUSTED");return m?c:void 0},staleTime:3600*1e3,placeholderData:F,retry:!1,enabled:s.length>0}),I=[];if(p?.pages)for(const l of p.pages)for(const c of l)for(const m of c.items)I.push({...m,_sourceName:m._sourceName??c.registryTitle,_sourceIcon:m._sourceIcon??c.registryIcon,_registryId:m._registryId??c.registryId});return{items:I,hasMore:d??!1,isLoadingMore:g,isInitialLoading:N,fetchNextPage:()=>{d&&!g&&f()}}}function ye(s,e){const t=$.c(16),{org:o}=K();let n;t[0]!==s?(n=s.filter(ie),t[0]=s,t[1]=n):n=t[1];const a=n;let r;t[2]!==s?(r=s.filter(se),t[2]=s,t[3]=r):r=t[3];const p=r,f=L(a,o.id,o.slug,!0,e),d=L(p,o.id,o.slug,!0,e);let g;if(t[4]!==d.items||t[5]!==f.items){const y=new Set;g=[];const C=[...f.items,...d.items];for(const u of C){const h=`${u._registryId}:${u.id}`;y.has(h)||(y.add(h),g.push(u))}t[4]=d.items,t[5]=f.items,t[6]=g}else g=t[6];const N=f.isInitialLoading||d.isInitialLoading,I=f.isLoadingMore||d.isLoadingMore,l=f.hasMore||d.hasMore;let c;t[7]!==d||t[8]!==f?(c=()=>{f.hasMore&&f.fetchNextPage(),d.hasMore&&d.fetchNextPage()},t[7]=d,t[8]=f,t[9]=c):c=t[9];const m=c;let i;return t[10]!==l||t[11]!==N||t[12]!==I||t[13]!==g||t[14]!==m?(i={items:g,hasMore:l,isLoadingMore:I,isInitialLoading:N,loadMore:m},t[10]=l,t[11]=N,t[12]=I,t[13]=g,t[14]=m,t[15]=i):i=t[15],i}function se(s){return Q(s)}function ie(s){return!Q(s)}function he(s){const e=new Map;for(const n of s){const a=S(n),r=e.get(a);r?r.push(n):e.set(a,[n])}const t=[],o=new Set;for(const n of s){const a=S(n);if(o.has(a))continue;o.add(a);const r=e.get(a),p=r[0];r.length===1?t.push({type:"single",connection:p}):t.push({type:"group",key:a,icon:p.icon,title:p.app_name?p.title.replace(/\s*\(\d+\)\s*$/,""):p.title,connections:r})}return t}function xe(s){const e=$.c(43),{connection:t,onClick:o,headerActions:n,headerActionsAlwaysVisible:a,footer:r,className:p,fallbackIcon:f,selected:d}=s,g=a===void 0?!1:a,N=q(),I=o&&"cursor-pointer hover:bg-muted/50";let l;e[0]!==p||e[1]!==I?(l=A("transition-colors group overflow-hidden flex flex-col h-full",I,p),e[0]=p,e[1]=I,e[2]=l):l=e[2];const c=o?"button":void 0,m=o?0:void 0,i=o&&d!==void 0?d:void 0;let y;e[3]!==o?(y=o?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),o())}:void 0,e[3]=o,e[4]=y):y=e[4];let C;e[5]!==t.icon||e[6]!==t.title||e[7]!==f?(C=x.jsx(J,{icon:t.icon,name:t.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:f}),e[5]=t.icon,e[6]=t.title,e[7]=f,e[8]=C):C=e[8];let u;e[9]!==n||e[10]!==g?(u=n&&x.jsx("div",{className:A("transition-opacity",!g&&"sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100"),onClick:ne,children:n}),e[9]=n,e[10]=g,e[11]=u):u=e[11];let h;e[12]!==u?(h=x.jsx("div",{className:"relative",children:u}),e[12]=u,e[13]=h):h=e[13];let b;e[14]!==h||e[15]!==C?(b=x.jsxs("div",{className:"flex items-start justify-between",children:[C,h]}),e[14]=h,e[15]=C,e[16]=b):b=e[16];let v;e[17]!==t.title?(v=x.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:t.title}),e[17]=t.title,e[18]=v):v=e[18];let P;e[19]!==t.description||e[20]!==N?(P=t.description||N("connections.connectionCard.noDescription"),e[19]=t.description,e[20]=N,e[21]=P):P=e[21];let M;e[22]!==P?(M=x.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:P}),e[22]=P,e[23]=M):M=e[23];let R;e[24]!==v||e[25]!==M?(R=x.jsxs("div",{className:"flex flex-col gap-1",children:[v,M]}),e[24]=v,e[25]=M,e[26]=R):R=e[26];let j;e[27]!==b||e[28]!==R?(j=x.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[b,R]}),e[27]=b,e[28]=R,e[29]=j):j=e[29];let w;e[30]!==r?(w=r&&x.jsx("div",{className:"border-t border-border mt-auto",children:x.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:oe,children:r})}),e[30]=r,e[31]=w):w=e[31];let T;e[32]!==j||e[33]!==w?(T=x.jsxs("div",{className:"flex flex-col flex-1",children:[j,w]}),e[32]=j,e[33]=w,e[34]=T):T=e[34];let _;return e[35]!==o||e[36]!==T||e[37]!==l||e[38]!==c||e[39]!==m||e[40]!==i||e[41]!==y?(_=x.jsx(G,{className:l,onClick:o,role:c,tabIndex:m,"aria-pressed":i,onKeyDown:y,children:T}),e[35]=o,e[36]=T,e[37]=l,e[38]=c,e[39]=m,e[40]=i,e[41]=y,e[42]=_):_=e[42],_}function oe(s){return s.stopPropagation()}function ne(s){return s.stopPropagation()}export{xe as C,ye as a,he as g,ge as u};
|