decocms 4.35.0 → 4.36.0
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-f6lhwhwQ.js → AlertCircle-C2zWCKFU.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CSFwuCf5.js → ArrowUpRight-CEd_dX9G.js} +1 -1
- package/dist/client/assets/{Check-Aukmu8Un.js → Check-BRK73b5S.js} +1 -1
- package/dist/client/assets/{CheckCircle-CApzzqD8.js → CheckCircle-Bc6DVWpl.js} +1 -1
- package/dist/client/assets/{ChevronDown-B0UKR4Q8.js → ChevronDown-Cl64FuM7.js} +1 -1
- package/dist/client/assets/{ChevronRight-DBqOeCeL.js → ChevronRight-BiUpAxck.js} +1 -1
- package/dist/client/assets/{ChevronUp-GMJj8UiZ.js → ChevronUp-Bd8WwASv.js} +1 -1
- package/dist/client/assets/{Circle-YviPro1s.js → Circle-CVEWxAkn.js} +1 -1
- package/dist/client/assets/{Copy01-DE6jIX1d.js → Copy01-BQ_PiBJg.js} +1 -1
- package/dist/client/assets/{DotsVertical-CRXCtL95.js → DotsVertical-BajBw7s_.js} +1 -1
- package/dist/client/assets/{Eye-DkKR2sGU.js → Eye-9-W42Pav.js} +1 -1
- package/dist/client/assets/{FilterLines-zo9nIazW.js → FilterLines-DAOyUgW1.js} +1 -1
- package/dist/client/assets/{Globe01-9ubWRIn8.js → Globe01-C8lrsv2j.js} +1 -1
- package/dist/client/assets/{Globe04-BQ8V1DCS.js → Globe04-Ben7MbOW.js} +1 -1
- package/dist/client/assets/{HardDrive-inNtB34T.js → HardDrive-s5-cqKOl.js} +1 -1
- package/dist/client/assets/{Key01-Ce61Bgp4.js → Key01-Bii-u3if.js} +1 -1
- package/dist/client/assets/{LayoutLeft-C4Pounbz.js → LayoutLeft-DZ1o8wY9.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C2NXvx3_.js → LinkExternal01-DzEGzhif.js} +1 -1
- package/dist/client/assets/{List-CoWwn-yg.js → List-BLq_vEGx.js} +1 -1
- package/dist/client/assets/{Loading02-DuE9feUL.js → Loading02-8PRXrpou.js} +1 -1
- package/dist/client/assets/{Monitor01-DzUUK9ht.js → Monitor01-DHJyQ_kz.js} +1 -1
- package/dist/client/assets/{Palette-Do-v2l7i.js → Palette-D_lkOnBw.js} +1 -1
- package/dist/client/assets/{Play-Ca8SpLNV.js → Play-_cajpL44.js} +1 -1
- package/dist/client/assets/{Plus-D321yWS2.js → Plus-DNXyFi3K.js} +1 -1
- package/dist/client/assets/{SearchLg-BcZgwDj6.js → SearchLg-DZwERN6V.js} +1 -1
- package/dist/client/assets/{SearchMd-DJS38wH4.js → SearchMd-D-hUUaFS.js} +1 -1
- package/dist/client/assets/{Settings02-CkTsdbF0.js → Settings02-La9BPNoQ.js} +1 -1
- package/dist/client/assets/{Shield01-Bn8V09Ru.js → Shield01-t0UkG_Fu.js} +1 -1
- package/dist/client/assets/{Star01-DuQha8zt.js → Star01-Vp5jNxy-.js} +1 -1
- package/dist/client/assets/{Stars01-B6X8tGbZ.js → Stars01-DzGOGcyE.js} +1 -1
- package/dist/client/assets/{Stars02-DeVTmo8z.js → Stars02-DEt9kiBB.js} +1 -1
- package/dist/client/assets/{Sun-huCAsUzO.js → Sun-D3e2kVWD.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-1_z_hHyc.js → SwitchHorizontal01-DywB6wR-.js} +1 -1
- package/dist/client/assets/{Tool01-D1RRR1kw.js → Tool01-BWJW2W9Q.js} +1 -1
- package/dist/client/assets/{Trash01-BhSSOFCl.js → Trash01-Bw4Y_fB0.js} +1 -1
- package/dist/client/assets/{Upload01-pw6m16iV.js → Upload01-DNGqtihL.js} +1 -1
- package/dist/client/assets/{User01-D3gcuea5.js → User01-Kj6tpX8J.js} +1 -1
- package/dist/client/assets/{Users01-hYhuhjvL.js → Users01-BHFcKE6V.js} +1 -1
- package/dist/client/assets/{Users03-BW7WVd7l.js → Users03-DL337Un-.js} +1 -1
- package/dist/client/assets/{X-B4-7qG-5.js → X-Dur8Z-Za.js} +1 -1
- package/dist/client/assets/{XCircle-DNMYfZsu.js → XCircle-CBMT0KL4.js} +1 -1
- package/dist/client/assets/{XClose-LQHYvxls.js → XClose-Dw5u5Ptt.js} +1 -1
- package/dist/client/assets/{Zap-D3B4NAio.js → Zap-Ci4q4Rqw.js} +1 -1
- package/dist/client/assets/{ZapSquare-CDjZJq8r.js → ZapSquare-BKMxUjl5.js} +1 -1
- package/dist/client/assets/{ZoomOut-CdYifXao.js → ZoomOut-HEnwOMfN.js} +1 -1
- package/dist/client/assets/{access-gate-76tQHldY.js → access-gate-jwtP_GBZ.js} +1 -1
- package/dist/client/assets/{add-section-modal-BqLvsQKS.js → add-section-modal-BA4wLToL.js} +1 -1
- package/dist/client/assets/{agent-capabilities-CncqCO43.js → agent-capabilities-B2MQDL39.js} +1 -1
- package/dist/client/assets/{agent-icon-Clq9aKDI.js → agent-icon-CmQR7VYX.js} +1 -1
- package/dist/client/assets/{agents-list-BoRmbdnw.js → agents-list-xOxbtiew.js} +1 -1
- package/dist/client/assets/{ai-providers-CS4_9q5y.js → ai-providers-lPoA9O4z.js} +1 -1
- package/dist/client/assets/{alert-CfLzySTP.js → alert-T1HcG_-8.js} +1 -1
- package/dist/client/assets/{alert-dialog-OcKuMvkx.js → alert-dialog-s3u3eE8R.js} +1 -1
- package/dist/client/assets/{app-editor-SJHuM8DT.js → app-editor-CSARpVTj.js} +1 -1
- package/dist/client/assets/{auth-BSVfrU7T.js → auth-ByhUq4a_.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bq1TEeYt.js → auth-catchall-CVGTphXP.js} +1 -1
- package/dist/client/assets/{auth-entry-Bbfzs0A9.js → auth-entry-B2qhbyMd.js} +1 -1
- package/dist/client/assets/{auth-split-layout-VhDB5Kjd.js → auth-split-layout-hXoKYrxt.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-pSYfuzK6.js → authenticate-and-persist-oauth--jV2-M4K.js} +1 -1
- package/dist/client/assets/{automation-list-row-Cv1Lpo76.js → automation-list-row-BbhqzIWL.js} +1 -1
- package/dist/client/assets/{automation-runs-DEj3paI_.js → automation-runs-BgY5daU-.js} +1 -1
- package/dist/client/assets/{automations-BUrB7Xnv.js → automations-DqkxCDOd.js} +1 -1
- package/dist/client/assets/{autosend-gxaMEvDD.js → autosend-dMnF67ZR.js} +1 -1
- package/dist/client/assets/{avatar-Dv4V-x92.js → avatar-Dgp_8vlO.js} +1 -1
- package/dist/client/assets/{badge-C262yjLA.js → badge-DFPi3DPJ.js} +1 -1
- package/dist/client/assets/{block-document-mTd4QaWg.js → block-document-CWw457Q5.js} +1 -1
- package/dist/client/assets/{brand-context-C6Mk4Tdt.js → brand-context-BTxfkcRU.js} +1 -1
- package/dist/client/assets/{breadcrumb-CvS5tec8.js → breadcrumb-DRdhsGPh.js} +1 -1
- package/dist/client/assets/{buckets-BicnOVQW.js → buckets-BJgc_S1f.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-5446BaH7.js → bulk-category-panel-BhkFtloe.js} +1 -1
- package/dist/client/assets/{calendar-D4t7kX9Q.js → calendar-CiYduEHg.js} +1 -1
- package/dist/client/assets/{capability-load-error-C6l-t9OR.js → capability-load-error-BhvoK8h4.js} +1 -1
- package/dist/client/assets/{card-D8Vz3jG6.js → card-Bpu7lsLm.js} +1 -1
- package/dist/client/assets/{category-editor--ln76tIo.js → category-editor-CtlwU2G1.js} +1 -1
- package/dist/client/assets/{chat-context-CBVCBl_J.js → chat-context-CXarely7.js} +1 -1
- package/dist/client/assets/{checkbox-CchykYiZ.js → checkbox-DH7SmeG6.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BnByk5x5.js → cli-auth-success-C47I99I4.js} +1 -1
- package/dist/client/assets/{collection-detail-ND7d2Eyq.js → collection-detail-DEvQhyxM.js} +1 -1
- package/dist/client/assets/{collection-display-button-DxqFoVRY.js → collection-display-button-BbYZf4Ds.js} +1 -1
- package/dist/client/assets/{collection-search-CltfDlpo.js → collection-search-FxDkU1LY.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DLnmSfmE.js → collection-table-wrapper-pItFXUgd.js} +1 -1
- package/dist/client/assets/{collection-tabs-CTi5oTnQ.js → collection-tabs-D3R2hyly.js} +1 -1
- package/dist/client/assets/{command-BAIXwHHL.js → command-V21ANmhD.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CMjqlg8E.js → commerce-onboarding-5jhAYX7W.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CAF33mXR.js → connect-desktop-dialog-C182LszJ.js} +1 -1
- package/dist/client/assets/{connection-card-CO1XcaEL.js → connection-card-h9ojCe1y.js} +1 -1
- package/dist/client/assets/{connection-detail-BlmkUd9p.js → connection-detail--9fwdqbY.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-XaWP2G3x.js → connection-form-helpers-Bpf1pKYB.js} +1 -1
- package/dist/client/assets/{connections-DnCGVu9g.js → connections-DlVIUTDY.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CDHTEmuK.js → decopilot-sse-pool-r20ANcgR.js} +1 -1
- package/dist/client/assets/{dialog-WEGZiwPy.js → dialog-mIunfNF1.js} +1 -1
- package/dist/client/assets/{domain-settings-CRCy8oFu.js → domain-settings-DDdK4fqJ.js} +1 -1
- package/dist/client/assets/{drawer-UuuCah9g.js → drawer-BbVPD459.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CksFCj44.js → dropdown-menu-Ckt1rFkP.js} +1 -1
- package/dist/client/assets/{empty-state-F_lK3gf_.js → empty-state-D1uvzlNE.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BCgnLdIa.js → extract-connection-data-C5iMuAQ4.js} +1 -1
- package/dist/client/assets/{file-explorer-DA4UKKI7.js → file-explorer-DnkEAc9s.js} +1 -1
- package/dist/client/assets/{file-type-icon-DEYVlVHX.js → file-type-icon-M0r5z8Et.js} +1 -1
- package/dist/client/assets/{files-D4agV2id.js → files-myRMunMH.js} +1 -1
- package/dist/client/assets/{form-vGQs6GSc.js → form-DFTCc20c.js} +1 -1
- package/dist/client/assets/{general-SnqMJ_uN.js → general-W0gODQ6-.js} +1 -1
- package/dist/client/assets/{github-repo-picker-WVoiNLVS.js → github-repo-picker-DLDIrQSt.js} +1 -1
- package/dist/client/assets/{hooks-HnvPO2Fr.js → hooks-BoTVA0mi.js} +1 -1
- package/dist/client/assets/{index-D1g40hAu.js → index-9gM0pWop.js} +1 -1
- package/dist/client/assets/{index-CmN7TjST.js → index-B4nnSk_C.js} +1 -1
- package/dist/client/assets/{index-y_ZN3Csi.js → index-B9enrohW.js} +1 -1
- package/dist/client/assets/{index-kAuhGsQR.js → index-BUPmS7n0.js} +1 -1
- package/dist/client/assets/{index-B19Gd9cQ.js → index-Bt6oyrQ_.js} +1 -1
- package/dist/client/assets/{index-aIln4hKS.js → index-CC_UV35u.js} +1 -1
- package/dist/client/assets/{index-BvY5YnRL.js → index-CEeQ9vEp.js} +1 -1
- package/dist/client/assets/{index-7EDQs4g5.js → index-CHTXbbov.js} +3 -3
- package/dist/client/assets/{index-CH3GGxYs.js → index-CHi6_Wje.js} +1 -1
- package/dist/client/assets/{index-D4E3XJr2.js → index-CJXI6-WF.js} +1 -1
- package/dist/client/assets/{index-bSsLqTR8.js → index-DK0NGyFF.js} +1 -1
- package/dist/client/assets/index-DhHJ9QL9.css +1 -0
- package/dist/client/assets/{index-zNNbsSbv.js → index-DiNsudt7.js} +26 -26
- package/dist/client/assets/{index-Du4ARIfO.js → index-E_NWIv9K.js} +1 -1
- package/dist/client/assets/{index-NGT6SGng.js → index-cyQt4Yyx.js} +1 -1
- package/dist/client/assets/{index-redirect-BOtvKj4V.js → index-redirect-Qq82m_VH.js} +1 -1
- package/dist/client/assets/{input-AH-zc1xJ.js → input-CmSWz8o2.js} +1 -1
- package/dist/client/assets/{integration-icon-A9c_bebh.js → integration-icon-CfSC6rtu.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-2QbPsKy5.js → invite-member-dialog-vLfngyFn.js} +1 -1
- package/dist/client/assets/{label-CREwZHVz.js → label-B9xXuLAT.js} +1 -1
- package/dist/client/assets/{login-DK11wo9B.js → login-CHp34Afr.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CUTN_jP_.js → mcp-oauth-D1IBLEDf.js} +1 -1
- package/dist/client/assets/{members-SQ5xbIj_.js → members-BcF8CilA.js} +1 -1
- package/dist/client/assets/{monaco-editor-DcSz2nK4.js → monaco-editor-6edrpcHw.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-dq67E9g4.js → monitoring-stats-row-BRbRwEAL.js} +1 -1
- package/dist/client/assets/{oauth-callback-CyjY2LuB.js → oauth-callback-DYKqJbSu.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-D-_MRvoT.js → oauth-callback-ai-provider-DvpcJBwZ.js} +1 -1
- package/dist/client/assets/{onboarding-BcNffG2l.js → onboarding-D4C_zKzK.js} +1 -1
- package/dist/client/assets/{org-install-CZD3yOvZ.js → org-install-BC6pCgZy.js} +1 -1
- package/dist/client/assets/{org-layout-ChzYwis1.js → org-layout-Dkkja8eZ.js} +1 -1
- package/dist/client/assets/{organization-choice-DO3TpN5Q.js → organization-choice-BjUcpzh8.js} +1 -1
- package/dist/client/assets/{page-seo-form-C3ja-AdY.js → page-seo-form-CSWsbdF5.js} +1 -1
- package/dist/client/assets/page-seo-sheet-Banc0NEt.js +1 -0
- package/dist/client/assets/{popover-BXSfQ3ty.js → popover-DqOLJjYt.js} +1 -1
- package/dist/client/assets/{post-editor-B_LetdV2.js → post-editor-Cb7vz9kK.js} +1 -1
- package/dist/client/assets/{primitives-Dh6y5Vqf.js → primitives-DKofhleV.js} +1 -1
- package/dist/client/assets/{profile-DeWb4RIY.js → profile-CwevXg0F.js} +1 -1
- package/dist/client/assets/project-app-view-CUgkYG3W.js +1 -0
- package/dist/client/assets/record-editor-ld08pUMz.js +1 -0
- package/dist/client/assets/registry-CBGYdqJy.js +2 -0
- package/dist/client/assets/{registry-layout-DAKJr0Bp.js → registry-layout-BMGVPsMn.js} +1 -1
- package/dist/client/assets/{require-capability-Cb7N2Oxk.js → require-capability-DB46Pdpe.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DRSJiqlk.js → required-auth-layout-DQViUcsZ.js} +1 -1
- package/dist/client/assets/{reset-password-BRHQg6QO.js → reset-password-CK8xjWrh.js} +1 -1
- package/dist/client/assets/{roles-SdLIIKmd.js → roles-DUBXClvI.js} +1 -1
- package/dist/client/assets/{search-input-BzykC6SX.js → search-input-o4YKXrM-.js} +1 -1
- package/dist/client/assets/{secrets-lP0WJIRf.js → secrets-CGLIyZvB.js} +1 -1
- package/dist/client/assets/{sections-editor-CsFcLCt9.js → sections-editor-Crq3mMkJ.js} +1 -1
- package/dist/client/assets/{select-C5NXkaeS.js → select-CwHjJZxE.js} +1 -1
- package/dist/client/assets/{select-model-MLc2Y3Qy.js → select-model-idoIFrun.js} +2 -2
- package/dist/client/assets/{seo-editor-r_gWolyN.js → seo-editor-DxzM_oef.js} +1 -1
- package/dist/client/assets/{settings-layout-BRYOw2xs.js → settings-layout-qlC4ancf.js} +1 -1
- package/dist/client/assets/{settings-section-DcnbXr5u.js → settings-section-DiyBI0p4.js} +1 -1
- package/dist/client/assets/{shell-controls-hRJb8y7E.js → shell-controls-BdDjUbBC.js} +1 -1
- package/dist/client/assets/{shell-layout-BQHSPqMr.js → shell-layout-BWNLY1YB.js} +1 -1
- package/dist/client/assets/{sidebar-DgN5oOpi.js → sidebar-BmZkvg7r.js} +1 -1
- package/dist/client/assets/{skeleton-BNyVbUwG.js → skeleton-d4B9XvAo.js} +1 -1
- package/dist/client/assets/{sso-wV6U6i7v.js → sso-dPAU3wlS.js} +1 -1
- package/dist/client/assets/{store-CoUYwDd1.js → store-BNc3SLhL.js} +1 -1
- package/dist/client/assets/store-registry-DKQX9wKw.js +2 -0
- package/dist/client/assets/{studio-tools-DbeWVKwZ.js → studio-tools-BJ0Qkwde.js} +1 -1
- package/dist/client/assets/{switch-D35infLY.js → switch-BxrDKURr.js} +1 -1
- package/dist/client/assets/{table-CRfKA7NS.js → table-Xfjmxtui.js} +1 -1
- package/dist/client/assets/{tabs-D3wed5Bx.js → tabs-DdfjC_o8.js} +1 -1
- package/dist/client/assets/{textarea-CEc_7A6V.js → textarea-OL70WZGE.js} +1 -1
- package/dist/client/assets/{toggle-group-CFbcmDsi.js → toggle-group-DV8Zx8Ay.js} +1 -1
- package/dist/client/assets/{toolbar-CgIGs2xP.js → toolbar-WlEFPDs8.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CYEe3N0j.js → toolbar-icon-button-Cux-De1p.js} +1 -1
- package/dist/client/assets/{tools-list-DI21LYyh.js → tools-list-D_E-h8Xe.js} +1 -1
- package/dist/client/assets/{tooltip-Cjk9PMKc.js → tooltip-76CNxa0k.js} +1 -1
- package/dist/client/assets/{types-DOtTCrPL.js → types-BB1jNEFr.js} +1 -1
- package/dist/client/assets/{use-ai-providers-qucsliq3.js → use-ai-providers-wCtA7FyN.js} +1 -1
- package/dist/client/assets/{use-automations-SOkWBo6W.js → use-automations-BUVfsajQ.js} +1 -1
- package/dist/client/assets/{use-capability-DQv1lExQ.js → use-capability-C0on-UG3.js} +1 -1
- package/dist/client/assets/{use-clock-tick-eW5js56x.js → use-clock-tick-DQFIRULM.js} +1 -1
- package/dist/client/assets/{use-collections-DXG9rjJ2.js → use-collections-D64OZMP5.js} +1 -1
- package/dist/client/assets/{use-connection-Cod3M0Uh.js → use-connection-CESoyj30.js} +1 -1
- package/dist/client/assets/{use-copy-CGlHMDea.js → use-copy-DXRHRy3k.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BX6sBt4t.js → use-create-virtual-mcp-Z0tu5okZ.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DiGqeVKG.js → use-debounced-autosave-BfHNWB6a.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CzaaMzl3.js → use-debounced-value-J9Owrphs.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-uGcsF--z.js → use-decopilot-events-iOO06bl2.js} +1 -1
- package/dist/client/assets/{use-delete-connection-QI_R7sTm.js → use-delete-connection-Be5c2BHf.js} +1 -1
- package/dist/client/assets/{use-file-configs-CtmXiAad.js → use-file-configs-Bk5oOklp.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Ds-wB394.js → use-infinite-scroll-BAleyRHG.js} +1 -1
- package/dist/client/assets/{use-join-requests-C53tVE87.js → use-join-requests-Dvy7cbad.js} +1 -1
- package/dist/client/assets/{use-mcp-client-D-IcrlM1.js → use-mcp-client-CLRfC1wx.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CjXlqFii.js → use-mcp-prompts-DO1Yp12I.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dafx8Nf_.js → use-mcp-tools-B-eRGQ3S.js} +1 -1
- package/dist/client/assets/{use-members-BkrjfZtd.js → use-members-DtisIxk_.js} +1 -1
- package/dist/client/assets/{use-mobile-Cs5uj2B4.js → use-mobile-Br8RngNM.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CdzFundu.js → use-navigate-to-agent-CbM55DRt.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CYHJ8zhf.js → use-org-auth-client-Bt5tMO5f.js} +1 -1
- package/dist/client/assets/{use-org-sso-ZllsKAXm.js → use-org-sso-92hmv2kj.js} +1 -1
- package/dist/client/assets/{use-organization-roles-UQbPZOTn.js → use-organization-roles-CNAnfCxi.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BM7m28RI.js → use-organization-settings-Jtb68vdP.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Obrdx90O.js → use-registry-connections-CUygRLiX.js} +1 -1
- package/dist/client/assets/{use-secrets-DZyYucb6.js → use-secrets-kA2FYkL5.js} +1 -1
- package/dist/client/assets/{use-status-sounds-COBLP9-r.js → use-status-sounds-CCyOrel4.js} +1 -1
- package/dist/client/assets/{use-view-mode-fgGIj_ax.js → use-view-mode-CPuTvdY-.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C70XD2v5.js → use-virtual-mcp-SJZFwIbn.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-KWlqlVrT.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DVYIL8L1.js +1 -0
- package/dist/client/assets/{variant-calendar-BqxsTCCA.js → variant-calendar-BRqfYBIT.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BEPKlxI2.js → view-mode-toggle-CwK1jegn.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/index-BcHmTSFg.css +0 -1
- package/dist/client/assets/page-seo-sheet-DST-XLP6.js +0 -1
- package/dist/client/assets/project-app-view-BifDSljQ.js +0 -1
- package/dist/client/assets/record-editor-DI5MypGG.js +0 -1
- package/dist/client/assets/registry-B1LHfxlX.js +0 -2
- package/dist/client/assets/store-registry-mRHIDibK.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Dul-gPAw.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-0L4EzzOg.js +0 -1
package/dist/client/assets/{capability-load-error-C6l-t9OR.js → capability-load-error-BhvoK8h4.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,p as o,$ as c,j as t,ag as m,B as u,K as x}from"./index-
|
|
1
|
+
import{c as n,p as o,$ as c,j as t,ag as m,B as u,K as x}from"./index-CHTXbbov.js";function f(){const e=n.c(5),l=o(),{locator:a}=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:t.jsx(m,{size:28})}),e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsxs("div",{className:"space-y-1",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Couldn't load your permissions"}),t.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:"Something went wrong checking your access. This is usually temporary."})]}),e[1]=i):i=e[1];let r;return e[2]!==a||e[3]!==l?(r=t.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[s,i,t.jsx(u,{variant:"outline",size:"sm",onClick:()=>l.invalidateQueries({queryKey:x.myCapabilities(a)}),children:"Try again"})]}),e[2]=a,e[3]=l,e[4]=r):r=e[4],r}export{f as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,l as n,j as c}from"./index-
|
|
1
|
+
import{c as o,l as n,j as c}from"./index-CHTXbbov.js";function i(a){const e=o.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 r;e[3]!==t?(r=n("bg-card text-card-foreground flex flex-col gap-6 rounded-xl card-shadow",t),e[3]=t,e[4]=r):r=e[4];let l;return e[5]!==s||e[6]!==r?(l=c.jsx("div",{"data-slot":"card",className:r,...s}),e[5]=s,e[6]=r,e[7]=l):l=e[7],l}function f(a){const e=o.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=c.jsx("div",{"data-slot":"card-content",...t}),e[2]=t,e[3]=s):s=e[3],s}export{i as C,f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as G,r as S,l as Q,j as t,B as I,i as V,t as U}from"./index-7EDQs4g5.js";import{i as X}from"./XCircle-DNMYfZsu.js";import{aC as Y,H as T}from"./agent-icon-Clq9aKDI.js";import{n as Z}from"./LinkExternal01-C2NXvx3_.js";import{f as K,a as _,b as tt,c as et,d as ot,e as rt,A as it,g as st}from"./alert-dialog-OcKuMvkx.js";import{I as L}from"./input-AH-zc1xJ.js";import{L as H}from"./label-CREwZHVz.js";import{k as at,l as mt,J as nt,S as lt,m as R,o as pt,L as ct}from"./index-zNNbsSbv.js";import{c as dt,B as ut,a as gt}from"./block-document-mTd4QaWg.js";import{u as xt,s as v,E as ft}from"./primitives-Dh6y5Vqf.js";import{t as ht}from"./ChevronDown-B0UKR4Q8.js";import{J as jt,K as yt,I as vt}from"./automation-runs-DEj3paI_.js";import"./AlertCircle-f6lhwhwQ.js";import"./Tool01-D1RRR1kw.js";import"./SwitchHorizontal01-1_z_hHyc.js";import"./Settings02-CkTsdbF0.js";import"./ArrowUpRight-CSFwuCf5.js";import"./ZapSquare-CDjZJq8r.js";import"./Users03-BW7WVd7l.js";import"./Loading02-DuE9feUL.js";import"./CheckCircle-CApzzqD8.js";import"./Check-Aukmu8Un.js";import"./ChevronRight-DBqOeCeL.js";import"./ChevronUp-GMJj8UiZ.js";import"./Circle-YviPro1s.js";import"./Stars02-DeVTmo8z.js";import"./Copy01-DE6jIX1d.js";import"./ZoomOut-CdYifXao.js";import"./DotsVertical-CRXCtL95.js";import"./Globe01-9ubWRIn8.js";import"./Eye-DkKR2sGU.js";import"./FilterLines-zo9nIazW.js";import"./Star01-DuQha8zt.js";import"./Globe04-BQ8V1DCS.js";import"./HardDrive-inNtB34T.js";import"./Key01-Ce61Bgp4.js";import"./LayoutLeft-C4Pounbz.js";import"./List-CoWwn-yg.js";import"./Monitor01-DzUUK9ht.js";import"./Sun-huCAsUzO.js";import"./Palette-Do-v2l7i.js";import"./Play-Ca8SpLNV.js";import"./Plus-D321yWS2.js";import"./SearchLg-BcZgwDj6.js";import"./SearchMd-DJS38wH4.js";import"./Shield01-Bn8V09Ru.js";import"./Stars01-B6X8tGbZ.js";import"./Trash01-BhSSOFCl.js";import"./Upload01-pw6m16iV.js";import"./User01-D3gcuea5.js";import"./Users01-hYhuhjvL.js";import"./XClose-LQHYvxls.js";import"./X-B4-7qG-5.js";import"./Zap-D3B4NAio.js";import"./chat-context-CBVCBl_J.js";import"./autosend-gxaMEvDD.js";import"./hooks-HnvPO2Fr.js";import"./use-mcp-client-D-IcrlM1.js";import"./constants-B72Xmt_K.js";import"./auth-BSVfrU7T.js";import"./decopilot-sse-pool-CDHTEmuK.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-C70XD2v5.js";import"./use-collections-DXG9rjJ2.js";import"./use-ai-providers-qucsliq3.js";import"./studio-tools-DbeWVKwZ.js";import"./use-decopilot-events-uGcsF--z.js";import"./tab-id-DAJ8K7VA.js";import"./use-organization-settings-BM7m28RI.js";import"./tooltip-Cjk9PMKc.js";import"./dialog-WEGZiwPy.js";import"./drawer-UuuCah9g.js";import"./collection-search-CltfDlpo.js";import"./use-mobile-Cs5uj2B4.js";import"./use-mcp-prompts-CjXlqFii.js";import"./shell-layout-BQHSPqMr.js";import"./avatar-Dv4V-x92.js";import"./required-auth-layout-DRSJiqlk.js";import"./use-org-sso-ZllsKAXm.js";import"./form-vGQs6GSc.js";import"./select-C5NXkaeS.js";import"./tabs-D3wed5Bx.js";import"./toggle-group-CFbcmDsi.js";import"./agent-capabilities-CncqCO43.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CO1XcaEL.js";import"./use-registry-connections-Obrdx90O.js";import"./use-connection-Cod3M0Uh.js";import"./useInfiniteQuery-Dul-gPAw.js";import"./use-infinite-scroll-Ds-wB394.js";import"./extract-connection-data-BCgnLdIa.js";import"./card-D8Vz3jG6.js";import"./integration-icon-A9c_bebh.js";import"./collection-tabs-CTi5oTnQ.js";import"./badge-C262yjLA.js";import"./textarea-CEc_7A6V.js";import"./connection-form-helpers-XaWP2G3x.js";import"./authenticate-and-persist-oauth-pSYfuzK6.js";import"./mcp-oauth-CUTN_jP_.js";import"./useSuspenseInfiniteQuery-0L4EzzOg.js";import"./connect-desktop-dialog-CAF33mXR.js";import"./select-model-MLc2Y3Qy.js";import"./checkbox-CchykYiZ.js";import"./skeleton-BNyVbUwG.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DcnbXr5u.js";import"./command-BAIXwHHL.js";import"./index-bSsLqTR8.js";import"./popover-BXSfQ3ty.js";import"./dropdown-menu-CksFCj44.js";import"./index-B19Gd9cQ.js";import"./file-type-icon-DEYVlVHX.js";import"./toolbar-CgIGs2xP.js";import"./use-debounced-value-CzaaMzl3.js";import"./index-D1g40hAu.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-COBLP9-r.js";import"./empty-state-F_lK3gf_.js";import"./use-mcp-tools-Dafx8Nf_.js";import"./types-DOtTCrPL.js";import"./use-capability-DQv1lExQ.js";import"./tools-list-DI21LYyh.js";import"./switch-D35infLY.js";import"./use-debounced-autosave-DiGqeVKG.js";import"./index-NGT6SGng.js";import"./sidebar-DgN5oOpi.js";import"./search-input-BzykC6SX.js";import"./github-repo-picker-WVoiNLVS.js";import"./use-navigate-to-agent-CdzFundu.js";import"./reusable-new-chat-qqWu133U.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-DZyYucb6.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-members-BkrjfZtd.js";import"./use-org-auth-client-CYHJ8zhf.js";import"./index-CmN7TjST.js";import"./get-initials-D-f_fDFw.js";import"./format-time-Cy7tTmZp.js";import"./calendar-D4t7kX9Q.js";import"./toolbar-icon-button-CYEe3N0j.js";import"./use-automations-SOkWBo6W.js";import"./monaco-editor-DcSz2nK4.js";import"./automation-list-row-Cv1Lpo76.js";import"./use-file-configs-CtmXiAad.js";import"./table-CRfKA7NS.js";import"./use-clock-tick-eW5js56x.js";import"./use-copy-CGlHMDea.js";function bt(k){const e=G.c(18),{icon:f,title:n,defaultOpen:b,children:d}=k,D=b===void 0?!1:b,[x,A]=S.useState(D);let l;e[0]!==f?(l=t.jsx(f,{size:15}),e[0]=f,e[1]=l):l=e[1];let i;e[2]!==n?(i=t.jsx("span",{className:"flex-1 text-left",children:n}),e[2]=n,e[3]=i):i=e[3];const h=x&&"rotate-180";let r;e[4]!==h?(r=Q("transition-transform",h),e[4]=h,e[5]=r):r=e[5];let p;e[6]!==r?(p=t.jsx(ht,{size:15,className:r}),e[6]=r,e[7]=p):p=e[7];let c;e[8]!==l||e[9]!==i||e[10]!==p?(c=t.jsx(jt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[l,i,p]})}),e[8]=l,e[9]=i,e[10]=p,e[11]=c):c=e[11];let s;e[12]!==d?(s=t.jsx(yt,{className:"px-2 pt-4",children:d}),e[12]=d,e[13]=s):s=e[13];let u;return e[14]!==x||e[15]!==c||e[16]!==s?(u=t.jsxs(vt,{open:x,onOpenChange:A,className:"mt-4",children:[c,s]}),e[14]=x,e[15]=c,e[16]=s,e[17]=u):u=e[17],u}function pr({orgSlug:k,virtualMcpId:e,branch:f,blockKey:n,block:b,decofile:d,meta:D,onManagePosts:x,onOpenPost:A,previewBaseUrl:l}){const i=at({orgSlug:k,virtualMcpId:e,branch:f}),h=mt(b,"categories"),[r,p,c]=xt(h,o=>{i.mutate({blockKey:n,data:R(n,"categories",o)})}),s=(o,w)=>p({...r,[o]:w}),u=dt({decofile:d,category:r,previewBaseUrl:l}),a=v(r.slug),[B,j]=S.useState(a),[m,C]=S.useState(null),[N,$]=S.useState(!1),z=a?nt(d).filter(o=>o.categorySlugs.includes(a)):[],y=z.length,J=o=>s("slug",o),M=async(o,w)=>{const q=v(r.name);$(!0);try{let g=0;for(const{key:P,payload:O}of pt(d,"posts")){const F=ct(O,o,{name:q,slug:w});F!==O&&(await i.mutateAsync({blockKey:P,data:R(P,"posts",F)}),g+=1)}const E={...r,slug:w};await i.mutateAsync({blockKey:n,data:R(n,"categories",E)}),c(E),U.success(g>0?`Renamed slug and updated ${g} ${g===1?"post":"posts"}`:"Renamed slug"),C(null)}catch(g){j(o),C(null),U.error(g instanceof Error?g.message:"Rename failed")}finally{$(!1)}},W=()=>{const o=B.trim();if(o===a){B!==o&&j(o);return}if(!o){j(a);return}if(y===0){J(o);return}C({oldSlug:a,newSlug:o,count:y})};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:v(r.name)||"Untitled category"}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsx(lt,{isPending:i.isPending,isError:i.isError}),u&&t.jsxs(I,{type:"button",variant:"outline",size:"sm",title:"Open the category preview in a new tab",onClick:()=>window.open(u,"_blank","noopener,noreferrer"),children:[t.jsx(Z,{size:14}),"See category preview"]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[t.jsx(ft,{value:v(r.name),onChange:o=>s("name",o),placeholder:"Category name",className:"py-1 text-3xl font-bold text-foreground"}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-slug",children:"Slug"}),t.jsx(L,{id:"category-slug",value:B,onChange:o=>j(o.target.value),onBlur:W,placeholder:"my-category",className:"h-10"})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-description",children:"Description"}),t.jsx(L,{id:"category-description",value:v(r.description),onChange:o=>s("description",o.target.value),placeholder:"Short description for this category",className:"h-10"})]}),t.jsx(bt,{icon:Y,title:"Content",defaultOpen:!0,children:t.jsx(ut,{value:gt(r.sections),onChange:o=>s("sections",o),meta:D,emptyMessage:"This category has no content yet. Use ⊕ to add your first block."})}),t.jsxs("div",{className:"mt-6 overflow-hidden rounded-lg border bg-muted/30",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(T,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"text-sm",children:[y," ",y===1?"post":"posts"," in this category"]})]}),t.jsxs(I,{type:"button",variant:"outline",size:"sm",disabled:!a,title:a?"Pick posts to add to this category":"Set a slug to add posts to this category",onClick:()=>x(a),children:["Add posts",t.jsx(X,{size:14})]})]}),y>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:z.map(o=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>A(o.key),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-left transition-colors hover:bg-muted cursor-pointer",children:[t.jsx(T,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:o.title||"Untitled post"}),o.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:o.slug})]})]})},o.key))})]})]})})]}),t.jsx(K,{open:!!m,onOpenChange:o=>{o||N||(j(a),C(null))},children:t.jsxs(_,{children:[t.jsxs(tt,{children:[t.jsx(et,{children:"Rename category slug?"}),t.jsx(ot,{children:m?`Changing the slug from "${m.oldSlug}" to "${m.newSlug}" will update ${m.count} ${m.count===1?"post":"posts"} that reference this category.`:null})]}),t.jsxs(rt,{children:[t.jsx(it,{disabled:N,children:"Cancel"}),t.jsx(st,{onClick:o=>{o.preventDefault(),m&&M(m.oldSlug,m.newSlug)},disabled:N,children:N?t.jsxs(t.Fragment,{children:[t.jsx(V,{size:14,className:"animate-spin"}),"Renaming…"]}):"Rename & update posts"})]})]})})]})}export{pr as CategoryEditor};
|
|
1
|
+
import{c as G,r as S,l as Q,j as t,B as I,i as V,t as U}from"./index-CHTXbbov.js";import{i as X}from"./XCircle-CBMT0KL4.js";import{aC as Y,H as T}from"./agent-icon-CmQR7VYX.js";import{n as Z}from"./LinkExternal01-DzEGzhif.js";import{f as K,a as _,b as tt,c as et,d as ot,e as rt,A as it,g as st}from"./alert-dialog-s3u3eE8R.js";import{I as L}from"./input-CmSWz8o2.js";import{L as H}from"./label-B9xXuLAT.js";import{k as at,l as mt,J as nt,S as lt,m as R,o as pt,L as ct}from"./index-DiNsudt7.js";import{c as dt,B as ut,a as gt}from"./block-document-CWw457Q5.js";import{u as xt,s as v,E as ft}from"./primitives-DKofhleV.js";import{t as ht}from"./ChevronDown-Cl64FuM7.js";import{J as jt,K as yt,I as vt}from"./automation-runs-BgY5daU-.js";import"./AlertCircle-C2zWCKFU.js";import"./Tool01-BWJW2W9Q.js";import"./SwitchHorizontal01-DywB6wR-.js";import"./Settings02-La9BPNoQ.js";import"./ArrowUpRight-CEd_dX9G.js";import"./ZapSquare-BKMxUjl5.js";import"./Users03-DL337Un-.js";import"./Loading02-8PRXrpou.js";import"./CheckCircle-Bc6DVWpl.js";import"./Check-BRK73b5S.js";import"./ChevronRight-BiUpAxck.js";import"./ChevronUp-Bd8WwASv.js";import"./Circle-CVEWxAkn.js";import"./Stars02-DEt9kiBB.js";import"./Copy01-BQ_PiBJg.js";import"./ZoomOut-HEnwOMfN.js";import"./DotsVertical-BajBw7s_.js";import"./Globe01-C8lrsv2j.js";import"./Eye-9-W42Pav.js";import"./FilterLines-DAOyUgW1.js";import"./Star01-Vp5jNxy-.js";import"./Globe04-Ben7MbOW.js";import"./HardDrive-s5-cqKOl.js";import"./Key01-Bii-u3if.js";import"./LayoutLeft-DZ1o8wY9.js";import"./List-BLq_vEGx.js";import"./Monitor01-DHJyQ_kz.js";import"./Sun-D3e2kVWD.js";import"./Palette-D_lkOnBw.js";import"./Play-_cajpL44.js";import"./Plus-DNXyFi3K.js";import"./SearchLg-DZwERN6V.js";import"./SearchMd-D-hUUaFS.js";import"./Shield01-t0UkG_Fu.js";import"./Stars01-DzGOGcyE.js";import"./Trash01-Bw4Y_fB0.js";import"./Upload01-DNGqtihL.js";import"./User01-Kj6tpX8J.js";import"./Users01-BHFcKE6V.js";import"./XClose-Dw5u5Ptt.js";import"./X-Dur8Z-Za.js";import"./Zap-Ci4q4Rqw.js";import"./chat-context-CXarely7.js";import"./autosend-dMnF67ZR.js";import"./hooks-BoTVA0mi.js";import"./use-mcp-client-CLRfC1wx.js";import"./constants-B72Xmt_K.js";import"./auth-ByhUq4a_.js";import"./decopilot-sse-pool-r20ANcgR.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-SJZFwIbn.js";import"./use-collections-D64OZMP5.js";import"./use-ai-providers-wCtA7FyN.js";import"./studio-tools-BJ0Qkwde.js";import"./use-decopilot-events-iOO06bl2.js";import"./tab-id-DAJ8K7VA.js";import"./use-organization-settings-Jtb68vdP.js";import"./tooltip-76CNxa0k.js";import"./dialog-mIunfNF1.js";import"./drawer-BbVPD459.js";import"./collection-search-FxDkU1LY.js";import"./use-mobile-Br8RngNM.js";import"./use-mcp-prompts-DO1Yp12I.js";import"./shell-layout-BWNLY1YB.js";import"./avatar-Dgp_8vlO.js";import"./required-auth-layout-DQViUcsZ.js";import"./use-org-sso-92hmv2kj.js";import"./form-DFTCc20c.js";import"./select-CwHjJZxE.js";import"./tabs-DdfjC_o8.js";import"./toggle-group-DV8Zx8Ay.js";import"./agent-capabilities-B2MQDL39.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-h9ojCe1y.js";import"./use-registry-connections-CUygRLiX.js";import"./use-connection-CESoyj30.js";import"./useInfiniteQuery-KWlqlVrT.js";import"./use-infinite-scroll-BAleyRHG.js";import"./extract-connection-data-C5iMuAQ4.js";import"./card-Bpu7lsLm.js";import"./integration-icon-CfSC6rtu.js";import"./collection-tabs-D3R2hyly.js";import"./badge-DFPi3DPJ.js";import"./textarea-OL70WZGE.js";import"./connection-form-helpers-Bpf1pKYB.js";import"./authenticate-and-persist-oauth--jV2-M4K.js";import"./mcp-oauth-D1IBLEDf.js";import"./useSuspenseInfiniteQuery-DVYIL8L1.js";import"./connect-desktop-dialog-C182LszJ.js";import"./select-model-idoIFrun.js";import"./checkbox-DH7SmeG6.js";import"./skeleton-d4B9XvAo.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DiyBI0p4.js";import"./command-V21ANmhD.js";import"./index-DK0NGyFF.js";import"./popover-DqOLJjYt.js";import"./dropdown-menu-Ckt1rFkP.js";import"./index-Bt6oyrQ_.js";import"./file-type-icon-M0r5z8Et.js";import"./toolbar-WlEFPDs8.js";import"./use-debounced-value-J9Owrphs.js";import"./index-9gM0pWop.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CCyOrel4.js";import"./empty-state-D1uvzlNE.js";import"./use-mcp-tools-B-eRGQ3S.js";import"./types-BB1jNEFr.js";import"./use-capability-C0on-UG3.js";import"./tools-list-D_E-h8Xe.js";import"./switch-BxrDKURr.js";import"./use-debounced-autosave-BfHNWB6a.js";import"./index-cyQt4Yyx.js";import"./sidebar-BmZkvg7r.js";import"./search-input-o4YKXrM-.js";import"./github-repo-picker-DLDIrQSt.js";import"./use-navigate-to-agent-CbM55DRt.js";import"./reusable-new-chat-qqWu133U.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-kA2FYkL5.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-members-DtisIxk_.js";import"./use-org-auth-client-Bt5tMO5f.js";import"./index-B4nnSk_C.js";import"./get-initials-D-f_fDFw.js";import"./format-time-Cy7tTmZp.js";import"./calendar-CiYduEHg.js";import"./toolbar-icon-button-Cux-De1p.js";import"./use-automations-BUVfsajQ.js";import"./monaco-editor-6edrpcHw.js";import"./automation-list-row-BbhqzIWL.js";import"./use-file-configs-Bk5oOklp.js";import"./table-Xfjmxtui.js";import"./use-clock-tick-DQFIRULM.js";import"./use-copy-DXRHRy3k.js";function bt(k){const e=G.c(18),{icon:f,title:n,defaultOpen:b,children:d}=k,D=b===void 0?!1:b,[x,A]=S.useState(D);let l;e[0]!==f?(l=t.jsx(f,{size:15}),e[0]=f,e[1]=l):l=e[1];let i;e[2]!==n?(i=t.jsx("span",{className:"flex-1 text-left",children:n}),e[2]=n,e[3]=i):i=e[3];const h=x&&"rotate-180";let r;e[4]!==h?(r=Q("transition-transform",h),e[4]=h,e[5]=r):r=e[5];let p;e[6]!==r?(p=t.jsx(ht,{size:15,className:r}),e[6]=r,e[7]=p):p=e[7];let c;e[8]!==l||e[9]!==i||e[10]!==p?(c=t.jsx(jt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground cursor-pointer",children:[l,i,p]})}),e[8]=l,e[9]=i,e[10]=p,e[11]=c):c=e[11];let s;e[12]!==d?(s=t.jsx(yt,{className:"px-2 pt-4",children:d}),e[12]=d,e[13]=s):s=e[13];let u;return e[14]!==x||e[15]!==c||e[16]!==s?(u=t.jsxs(vt,{open:x,onOpenChange:A,className:"mt-4",children:[c,s]}),e[14]=x,e[15]=c,e[16]=s,e[17]=u):u=e[17],u}function pr({orgSlug:k,virtualMcpId:e,branch:f,blockKey:n,block:b,decofile:d,meta:D,onManagePosts:x,onOpenPost:A,previewBaseUrl:l}){const i=at({orgSlug:k,virtualMcpId:e,branch:f}),h=mt(b,"categories"),[r,p,c]=xt(h,o=>{i.mutate({blockKey:n,data:R(n,"categories",o)})}),s=(o,w)=>p({...r,[o]:w}),u=dt({decofile:d,category:r,previewBaseUrl:l}),a=v(r.slug),[B,j]=S.useState(a),[m,C]=S.useState(null),[N,$]=S.useState(!1),z=a?nt(d).filter(o=>o.categorySlugs.includes(a)):[],y=z.length,J=o=>s("slug",o),M=async(o,w)=>{const q=v(r.name);$(!0);try{let g=0;for(const{key:P,payload:O}of pt(d,"posts")){const F=ct(O,o,{name:q,slug:w});F!==O&&(await i.mutateAsync({blockKey:P,data:R(P,"posts",F)}),g+=1)}const E={...r,slug:w};await i.mutateAsync({blockKey:n,data:R(n,"categories",E)}),c(E),U.success(g>0?`Renamed slug and updated ${g} ${g===1?"post":"posts"}`:"Renamed slug"),C(null)}catch(g){j(o),C(null),U.error(g instanceof Error?g.message:"Rename failed")}finally{$(!1)}},W=()=>{const o=B.trim();if(o===a){B!==o&&j(o);return}if(!o){j(a);return}if(y===0){J(o);return}C({oldSlug:a,newSlug:o,count:y})};return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[t.jsx("span",{className:"truncate text-sm font-medium",children:v(r.name)||"Untitled category"}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsx(lt,{isPending:i.isPending,isError:i.isError}),u&&t.jsxs(I,{type:"button",variant:"outline",size:"sm",title:"Open the category preview in a new tab",onClick:()=>window.open(u,"_blank","noopener,noreferrer"),children:[t.jsx(Z,{size:14}),"See category preview"]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[t.jsx(ft,{value:v(r.name),onChange:o=>s("name",o),placeholder:"Category name",className:"py-1 text-3xl font-bold text-foreground"}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-slug",children:"Slug"}),t.jsx(L,{id:"category-slug",value:B,onChange:o=>j(o.target.value),onBlur:W,placeholder:"my-category",className:"h-10"})]}),t.jsxs("div",{className:"mt-4 space-y-2",children:[t.jsx(H,{htmlFor:"category-description",children:"Description"}),t.jsx(L,{id:"category-description",value:v(r.description),onChange:o=>s("description",o.target.value),placeholder:"Short description for this category",className:"h-10"})]}),t.jsx(bt,{icon:Y,title:"Content",defaultOpen:!0,children:t.jsx(ut,{value:gt(r.sections),onChange:o=>s("sections",o),meta:D,emptyMessage:"This category has no content yet. Use ⊕ to add your first block."})}),t.jsxs("div",{className:"mt-6 overflow-hidden rounded-lg border bg-muted/30",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3",children:[t.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[t.jsx(T,{size:16,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"text-sm",children:[y," ",y===1?"post":"posts"," in this category"]})]}),t.jsxs(I,{type:"button",variant:"outline",size:"sm",disabled:!a,title:a?"Pick posts to add to this category":"Set a slug to add posts to this category",onClick:()=>x(a),children:["Add posts",t.jsx(X,{size:14})]})]}),y>0&&t.jsx("ul",{className:"divide-y border-t bg-background",children:z.map(o=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>A(o.key),className:"flex w-full items-center gap-2.5 px-4 py-2.5 text-left transition-colors hover:bg-muted cursor-pointer",children:[t.jsx(T,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsxs("span",{className:"min-w-0 flex-1",children:[t.jsx("span",{className:"block truncate text-sm",children:o.title||"Untitled post"}),o.slug&&t.jsx("span",{className:"block truncate text-xs text-muted-foreground",children:o.slug})]})]})},o.key))})]})]})})]}),t.jsx(K,{open:!!m,onOpenChange:o=>{o||N||(j(a),C(null))},children:t.jsxs(_,{children:[t.jsxs(tt,{children:[t.jsx(et,{children:"Rename category slug?"}),t.jsx(ot,{children:m?`Changing the slug from "${m.oldSlug}" to "${m.newSlug}" will update ${m.count} ${m.count===1?"post":"posts"} that reference this category.`:null})]}),t.jsxs(rt,{children:[t.jsx(it,{disabled:N,children:"Cancel"}),t.jsx(st,{onClick:o=>{o.preventDefault(),m&&M(m.oldSlug,m.newSlug)},disabled:N,children:N?t.jsxs(t.Fragment,{children:[t.jsx(V,{size:14,className:"animate-spin"}),"Renaming…"]}):"Rename & update posts"})]})]})})]})}export{pr as CategoryEditor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ue,l as Ge,by as Xe,j as Q,cp as Ye,a0 as Le,p as Ne,$ as se,K as ge,t as ne,Y as le,V as de,b as qe,u as Fe,e as Ze,r as m,M as Je,a as et,a1 as tt,af as nt}from"./index-
|
|
1
|
+
import{c as ue,l as Ge,by as Xe,j as Q,cp as Ye,a0 as Le,p as Ne,$ as se,K as ge,t as ne,Y as le,V as de,b as qe,u as Fe,e as Ze,r as m,M as Je,a as et,a1 as tt,af as nt}from"./index-CHTXbbov.js";import{A as je,c as st,a as ot,w as at}from"./autosend-dMnF67ZR.js";import{S as rt,u as it,d as ct,b as lt}from"./hooks-BoTVA0mi.js";import{u as dt}from"./use-mcp-client-CLRfC1wx.js";import{a as ut,S as pt}from"./constants-B72Xmt_K.js";import{u as ft}from"./use-virtual-mcp-SJZFwIbn.js";import{u as ht,a as me}from"./use-ai-providers-wCtA7FyN.js";import{u as mt}from"./use-decopilot-events-iOO06bl2.js";import{q as gt,n as yt}from"./tab-id-DAJ8K7VA.js";import{f as St}from"./use-organization-settings-Jtb68vdP.js";const xt={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"],"claude-code":["claude-code:haiku","claude-code:sonnet"],codex:["codex:gpt-5.6-luna"]},vt={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"],"claude-code":["claude-code:sonnet"],codex:["codex:gpt-5.6-terra"]},It={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"],"claude-code":["claude-code:opus-1m","claude-code:opus","claude-code:sonnet"],codex:["codex:gpt-5.6-sol"]},Ct={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},kt={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},bt={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function Ue(t){return t.toLowerCase().replace(/[^a-z0-9]/g,"")}function Mt(t){return Ue(t).includes("deepresearch")}const Tt=["sonar","searchpreview","online"];function Qe(t){const e=Ue(t);return e.includes("deepresearch")?!1:Tt.some(n=>e.includes(n))}function Ke(t){return t.asyncResearch!==!0&&Qe(t.modelId)}function Ve(t){return t.asyncResearch===!0||Mt(t.modelId)||Qe(t.modelId)}function ie(t,e,n,s){for(const o of n){const a=t.find(r=>r.modelId===o);if(a)return{keyId:e,modelId:a.modelId,title:a.title}}for(const o of n){const a=t.find(r=>r.modelId.includes(o));if(a)return{keyId:e,modelId:a.modelId,title:a.title}}if(s){const o=t.find(s);if(o)return{keyId:e,modelId:o.modelId,title:o.title}}return null}function wt(t,e){const n={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const s of t){const o=e[s.id]??[],a=s.providerId;n.chat.fast||(n.chat.fast=ie(o,s.id,xt[a]??[])),n.chat.smart||(n.chat.smart=ie(o,s.id,vt[a]??[])),n.chat.thinking||(n.chat.thinking=ie(o,s.id,It[a]??[])),n.image||(n.image=ie(o,s.id,Ct[a]??[],r=>r.capabilities?.includes("image")===!0)),n.webSearch||(n.webSearch=ie(o,s.id,kt[a]??[],Ke)),n.deepResearch||(n.deepResearch=ie(o,s.id,bt[a]??[],Ve))}return n}const Et=Xe("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",success:"fill-success text-gray-200",special:"fill-special text-background"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function mn(t){const e=ue.c(10),{variant:n,size:s}=t;let o;e[0]!==s||e[1]!==n?(o=Ge(Et({variant:n,size:s})),e[0]=s,e[1]=n,e[2]=o):o=e[2];let a,r;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=Q.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),r=Q.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=a,e[4]=r):(a=e[3],r=e[4]);let l;e[5]!==o?(l=Q.jsxs("svg",{"aria-hidden":"true",className:o,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a,r]}),e[5]=o,e[6]=l):l=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=Q.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=g):g=e[7];let S;return e[8]!==l?(S=Q.jsxs("div",{role:"status",children:[l,g]}),e[8]=l,e[9]=S):S=e[9],S}function At(t,e=[]){return t==="stop"?e.filter(o=>o.type==="text"&&o.text).map(o=>o.text).join(`
|
|
2
2
|
`).replace(/https?:\/\/[^\s)>\]]+/g,"").includes("?")?"requires_action":"completed":t==="tool-calls"?e.some(s=>s.type==="tool-user_ask"&&s.state==="input-available"||s.state==="approval-requested")?"requires_action":"completed":"failed"}const Me={decopilot:{harness:"decopilot",sandbox:"agent-sandbox"},"claude-code-desktop":{harness:"claude-code",sandbox:"user-desktop"},"codex-desktop":{harness:"codex",sandbox:"user-desktop"}};function _t(t,e){if(!t)return null;const n=e?Ye(e):null;if(t==="decopilot"&&n===null)return"decopilot";for(const[s,o]of Object.entries(Me))if(o.harness===t&&o.sandbox===n)return s;return null}function gn(t){return t.claudeCode?"claude-code-desktop":t.codex?"codex-desktop":null}function $t(t){return t.thread?.harness_id!=null?{}:{harnessId:t.globals.harnessId,sandboxProviderKind:t.globals.sandboxProviderKind,branch:t.globals.branch??null}}function Rt(t){const e=ue.c(10);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId",shouldThrow:!1},e[0]=n):n=e[0];const s=Le(n);let o;if(e[1]!==s?.params.appSlug||e[2]!==s?.params.collectionName||e[3]!==s?.params.itemId||e[4]!==t){o=[],t&&o.push(`### Selected Agent
|
|
3
3
|
- ID: ${t}`);let a;e[6]!==s?.params.appSlug||e[7]!==s?.params.collectionName||e[8]!==s?.params.itemId?(a=[],s?.params.appSlug&&a.push(`- Connection ID: ${s?.params.appSlug}`),s?.params.collectionName&&a.push(`- Collection: ${s?.params.collectionName}`),s?.params.itemId&&a.push(`- Item ID: ${s?.params.itemId}`),e[6]=s?.params.appSlug,e[7]=s?.params.collectionName,e[8]=s?.params.itemId,e[9]=a):a=e[9],a.length>0&&o.push(`### Current Resource
|
|
4
4
|
The user is viewing the following resource:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,l as d,j as c,bA as l,bB as b}from"./index-
|
|
1
|
+
import{c as n,l as d,j as c,bA as l,bB as b}from"./index-CHTXbbov.js";import{i as m}from"./Check-BRK73b5S.js";function u(o){const e=n.c(9);let r,i;e[0]!==o?({className:r,...i}=o,e[0]=o,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let a;e[3]!==r?(a=d("peer border-foreground dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[2px] disabled:opacity-50",r),e[3]=r,e[4]=a):a=e[4];let t;e[5]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx(b,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-primary-foreground transition-none",children:c.jsx(m,{className:"size-3.5"})}),e[5]=t):t=e[5];let s;return e[6]!==i||e[7]!==a?(s=c.jsx(l,{"data-slot":"checkbox",className:a,...i,children:t}),e[6]=i,e[7]=a,e[8]=s):s=e[8],s}export{u as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,a as c,r as m,j as o}from"./index-
|
|
1
|
+
import{c as a,a as c,r as m,j as o}from"./index-CHTXbbov.js";import{A as u}from"./auth-split-layout-hXoKYrxt.js";function p(){const e=a.c(8),i=c.useSession().data?.user?.email;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0],m.useEffect(f,l);let t;e[1]!==i?(t=i?o.jsxs(o.Fragment,{children:[" as ",i]}):"",e[1]=i,e[2]=t):t=e[2];let s;e[3]!==t?(s=o.jsxs("h1",{className:"text-3xl font-semibold tracking-tight",children:["You're logged in",t,"."]}),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("p",{className:"text-muted-foreground",children:"You can return to your terminal."}),e[5]=n):n=e[5];let r;return e[6]!==s?(r=o.jsx(u,{children:o.jsxs("div",{className:"space-y-3",children:[s,n]})}),e[6]=s,e[7]=r):r=e[7],r}function f(){window.close()}export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,j as t,B as F,i as Y,G as Ge,H as te,P as Pe,r as $,$ as re,J as Qe,u as Ye,a6 as K,t as Xe,l as je,e as le,aW as ke}from"./index-7EDQs4g5.js";import{E as Ae}from"./empty-state-F_lK3gf_.js";import{u as Ze,a as Ee}from"./use-collections-DXG9rjJ2.js";import{u as ae}from"./use-mcp-client-D-IcrlM1.js";import{F as se,a as et,b as ce,d as de}from"./form-vGQs6GSc.js";import{I as me}from"./input-AH-zc1xJ.js";import{T as ie}from"./textarea-CEc_7A6V.js";import{a as tt,b as st,V as ue,O as nt,M as ot}from"./index-aIln4hKS.js";import{aq as it,K as rt,al as lt,W as at,P as ct,ar as dt,L as be}from"./agent-icon-Clq9aKDI.js";import{g as mt,M as ut,a as Ne}from"./types-DOtTCrPL.js";import{A as xt,a as pt,b as ft}from"./alert-CfLzySTP.js";import{a as ve,c as Se,d as ye,S as we,b as ne}from"./select-C5NXkaeS.js";import{c as ht,T as Ce,a as Ie,b as $e}from"./tooltip-Cjk9PMKc.js";import{i as gt}from"./AlertCircle-f6lhwhwQ.js";import{s as jt}from"./Stars02-DeVTmo8z.js";import{a as bt}from"./Copy01-DE6jIX1d.js";import{i as Nt}from"./Play-Ca8SpLNV.js";import{a as Oe,b as Re,B as V,c as G,d as Q,e as _e}from"./breadcrumb-CvS5tec8.js";import{g as vt}from"./connection-slug-eyAPH6o3.js";import{u as St,T as yt}from"./tools-list-DI21LYyh.js";import{a as De,u as Me}from"./use-connection-Cod3M0Uh.js";import{a as wt}from"./use-mcp-tools-Dafx8Nf_.js";import{M as Ct,c as It}from"./monaco-editor-DcSz2nK4.js";import{I as Te}from"./integration-icon-A9c_bebh.js";import{g as $t,l as Tt}from"./chat-context-CBVCBl_J.js";import{u as Pt}from"./shell-layout-BQHSPqMr.js";import{n as kt}from"./XCircle-DNMYfZsu.js";import"./constants-B72Xmt_K.js";import"./auth-BSVfrU7T.js";import"./label-CREwZHVz.js";import"./index-NGT6SGng.js";import"./sidebar-DgN5oOpi.js";import"./LayoutLeft-C4Pounbz.js";import"./use-mobile-Cs5uj2B4.js";import"./X-B4-7qG-5.js";import"./ZoomOut-CdYifXao.js";import"./Key01-Ce61Bgp4.js";import"./extract-connection-data-BCgnLdIa.js";import"./use-registry-connections-Obrdx90O.js";import"./use-organization-settings-BM7m28RI.js";import"./studio-tools-DbeWVKwZ.js";import"./Plus-D321yWS2.js";import"./index-kAuhGsQR.js";import"./index-Du4ARIfO.js";import"./index-bSsLqTR8.js";import"./popover-BXSfQ3ty.js";import"./use-virtual-mcp-C70XD2v5.js";import"./Check-Aukmu8Un.js";import"./SearchMd-DJS38wH4.js";import"./Users03-BW7WVd7l.js";import"./use-create-virtual-mcp-BX6sBt4t.js";import"./use-navigate-to-agent-CdzFundu.js";import"./hooks-HnvPO2Fr.js";import"./decopilot-sse-pool-CDHTEmuK.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-qqWu133U.js";import"./Tool01-D1RRR1kw.js";import"./SwitchHorizontal01-1_z_hHyc.js";import"./Settings02-CkTsdbF0.js";import"./ArrowUpRight-CSFwuCf5.js";import"./ZapSquare-CDjZJq8r.js";import"./Loading02-DuE9feUL.js";import"./CheckCircle-CApzzqD8.js";import"./ChevronDown-B0UKR4Q8.js";import"./ChevronRight-DBqOeCeL.js";import"./ChevronUp-GMJj8UiZ.js";import"./Circle-YviPro1s.js";import"./DotsVertical-CRXCtL95.js";import"./Globe01-9ubWRIn8.js";import"./Eye-DkKR2sGU.js";import"./FilterLines-zo9nIazW.js";import"./Star01-DuQha8zt.js";import"./Globe04-BQ8V1DCS.js";import"./HardDrive-inNtB34T.js";import"./LinkExternal01-C2NXvx3_.js";import"./List-CoWwn-yg.js";import"./Monitor01-DzUUK9ht.js";import"./Sun-huCAsUzO.js";import"./Palette-Do-v2l7i.js";import"./SearchLg-BcZgwDj6.js";import"./Shield01-Bn8V09Ru.js";import"./Stars01-B6X8tGbZ.js";import"./Trash01-BhSSOFCl.js";import"./Upload01-pw6m16iV.js";import"./User01-D3gcuea5.js";import"./Users01-hYhuhjvL.js";import"./XClose-LQHYvxls.js";import"./Zap-D3B4NAio.js";import"./mcp-oauth-CUTN_jP_.js";import"./badge-C262yjLA.js";import"./index-D1g40hAu.js";import"./autosend-gxaMEvDD.js";import"./use-ai-providers-qucsliq3.js";import"./use-decopilot-events-uGcsF--z.js";import"./tab-id-DAJ8K7VA.js";import"./avatar-Dv4V-x92.js";import"./dialog-WEGZiwPy.js";import"./alert-dialog-OcKuMvkx.js";import"./required-auth-layout-DRSJiqlk.js";import"./use-org-sso-ZllsKAXm.js";function At(s){const e=O.c(15),{onSave:r,onUndo:o,isDirty:l,isSaving:i,saveLabel:c,undoLabel:d}=s,n=c===void 0?"Save":c,u=d===void 0?"Undo":d;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(it,{size:14}),e[0]=x):x=e[0];let m;e[1]!==i||e[2]!==o||e[3]!==u?(m=t.jsxs(F,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":u,children:[x,u]}),e[1]=i,e[2]=o,e[3]=u,e[4]=m):m=e[4];let p;e[5]!==i?(p=i?t.jsx(Y,{size:14,className:"animate-spin"}):t.jsx(rt,{size:14}),e[5]=i,e[6]=p):p=e[6];let f;e[7]!==i||e[8]!==r||e[9]!==n||e[10]!==p?(f=t.jsxs(F,{variant:"default",size:"sm",onClick:r,disabled:i,"aria-label":n,children:[p,n]}),e[7]=i,e[8]=r,e[9]=n,e[10]=p,e[11]=f):f=e[11];let g;return e[12]!==m||e[13]!==f?(g=t.jsxs(t.Fragment,{children:[m,f]}),e[12]=m,e[13]=f,e[14]=g):g=e[14],g}Ge({title:te().min(1),description:te().nullable(),body:te()});function oe(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 Ot(s){const e=O.c(13),{form:r}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=o):o=e[0];let l;e[1]!==r.control?(l=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(se,{control:r.control,name:"title",render:Dt}),t.jsx(se,{control:r.control,name:"description",render:_t})]})]}),e[1]=r.control,e[2]=l):l=e[2];let i,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),c=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=i,e[4]=c):(i=e[3],c=e[4]);let d;e[5]!==r.control?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[i,c,t.jsx(se,{control:r.control,name:"body",render:Rt})]}),e[5]=r.control,e[6]=d):d=e[6];let n;e[7]!==l||e[8]!==d?(n=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:[l,d]}),e[7]=l,e[8]=d,e[9]=n):n=e[9];let u;return e[10]!==r||e[11]!==n?(u=t.jsx(et,{...r,children:n}),e[10]=r,e[11]=n,e[12]=u):u=e[12],u}function Rt(s){const{field:e}=s;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(ie,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function _t(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(de,{children:t.jsx(me,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Dt(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(de,{children:t.jsx(me,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Mt(s){const e=O.c(36),{providerId:r,promptId:o}=s,{org:l}=re(),i=r||null;let c;e[0]!==l.id||e[1]!==l.slug||e[2]!==i?(c={connectionId:i,orgId:l.id,orgSlug:l.slug},e[0]=l.id,e[1]=l.slug,e[2]=i,e[3]=c):c=e[3];const d=ae(c),n=Ze(r,"PROMPT",o,d),u=Ee(r,"PROMPT",d),x=u.update.isPending;let m;e[4]!==n?(m=n?{title:n.title,description:n.description??null,body:oe(n)}:void 0,e[4]=n,e[5]=m):m=e[5];let p;e[6]!==m?(p={values:m},e[6]=m,e[7]=p):p=e[7];const f=Qe(p);let g;e[8]!==f||e[9]!==n?(g=()=>{n&&f.reset({title:n.title,description:n.description??null,body:oe(n)})},e[8]=f,e[9]=n,e[10]=g):g=e[10];const S=g;let C;e[11]!==u.update||e[12]!==f||e[13]!==o?(C=f.handleSubmit(async N=>{const A=await u.update.mutateAsync({id:o,data:{title:N.title,description:N.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:N.body}}]}});f.reset({title:A.title,description:A.description??null,body:oe(A)})}),e[11]=u.update,e[12]=f,e[13]=o,e[14]=C):C=e[14];const R=C;if(!n){let N;return e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ae,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=N):N=e[15],N}let I;e[16]!==n.title?(I=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[16]=n.title,e[17]=I):I=e[17];let k;e[18]!==n.description?(k=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[18]=n.description,e[19]=k):k=e[19];let T;e[20]!==I||e[21]!==k?(T=t.jsx(st,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[I,k]})}),e[20]=I,e[21]=k,e[22]=T):T=e[22];let b;e[23]!==R?(b=()=>{R()},e[23]=R,e[24]=b):b=e[24];let y;e[25]!==f.formState.isDirty||e[26]!==x||e[27]!==S||e[28]!==b?(y=t.jsx(tt,{children:t.jsx(At,{onSave:b,onUndo:S,isDirty:f.formState.isDirty,isSaving:x})}),e[25]=f.formState.isDirty,e[26]=x,e[27]=S,e[28]=b,e[29]=y):y=e[29];let w;e[30]!==f?(w=t.jsx("div",{className:"h-full",children:t.jsx(Ot,{form:f})}),e[30]=f,e[31]=w):w=e[31];let P;return e[32]!==y||e[33]!==w||e[34]!==T?(P=t.jsxs(ue,{children:[T,y,w]}),e[32]=y,e[33]=w,e[34]=T,e[35]=P):P=e[35],P}function zt(s){const e=O.c(4),{itemId:r}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Et(),e[0]=o):o=e[0];const l=o;if(!l){let c;return e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ae,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=c):c=e[1],c}let i;return e[2]!==r?(i=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:null,children:t.jsx(Mt,{providerId:l,promptId:r})})}),e[2]=r,e[3]=i):i=e[3],i}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=O.c(11),{toolName:r,connectionId:o,siblings:l,onSelectInstance:i,onBack:c}=s;let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const n=St(d);if(!n.isAuthenticated){let m;return e[2]!==n.supportsOAuth||e[3]!==c?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:n.supportsOAuth?t.jsx(nt,{onAuthenticate:()=>c(),buttonText:"Go back to authenticate"}):t.jsx(ot,{hasReadme:!1})}),e[2]=n.supportsOAuth,e[3]=c,e[4]=m):m=e[4],m}const u=`${o}:${r}`;let x;return e[5]!==o||e[6]!==i||e[7]!==l||e[8]!==u||e[9]!==r?(x=t.jsx(Bt,{toolName:r,connectionId:o,siblings:l,onSelectInstance:i},u),e[5]=o,e[6]=i,e[7]=l,e[8]=u,e[9]=r,e[10]=x):x=e[10],x}function Bt({toolName:s,connectionId:e,siblings:r,onSelectInstance:o}){const{replayId:l}=Ye({strict:!1}),i=(()=>{if(!l)return null;const a=`replay-${l}`,h=sessionStorage.getItem(a);if(!h)return null;sessionStorage.removeItem(a);try{return JSON.parse(h)}catch{return null}})(),c=(()=>{if(!i)return null;const a={};for(const[h,v]of Object.entries(i))v!==null&&typeof v=="object"?a[h]=JSON.stringify(v,null,2):a[h]=v;return a})(),[d,n]=$.useState(c??{}),[u,x]=$.useState(i?JSON.stringify(i,null,2):"{}"),[m,p]=$.useState(null),[f,g]=$.useState(null),[S,C]=$.useState(null),[R,I]=$.useState(null),[k,T]=$.useState(!1),[b,y]=$.useState(null),{org:w}=re(),P=De(e),N=$t(),A=Tt(),{setChatOpen:U}=Pt(),z=`${e}:${s}`,_=ae({connectionId:e,orgId:w.id,orgSlug:w.slug}),L=wt({client:_}),j=L.data?.tools?.find(a=>a.name===s),E=mt(j?._meta),J=a=>{if(!N)return;const h=It(a.content);h.content.length>0&&(U(!0),N.sendMessage({tiptapDoc:h}))},[D,X]=$.useState("json"),[ze,Le]=$.useState(!1);E&&!ze&&(X("ui"),Le(!0));const xe=j?.inputSchema?.properties,pe=xe?Object.keys(xe):[],q=pe.length>0,H={};if(q&&j?.inputSchema?.properties)for(const a of pe)H[a]=j.inputSchema.required?.includes(a)?"":void 0;const Z=a=>Object.prototype.hasOwnProperty.call(d,a),Ue=async()=>{T(!0),I(null),p(null),g(null),C(null),y(null);const a=performance.now();try{if(!_)throw new Error("MCP client is not available");const h=q?{...H,...d}:(()=>{const M=u.trim();if(!M)return{};const B=JSON.parse(M);if(B&&typeof B=="object")return B;throw new Error("Raw JSON input must be an object.")})();q&&j?.inputSchema?.properties&&Object.entries(j.inputSchema.properties).forEach(([M,B])=>{if((B.type==="object"||B.type==="array")&&typeof h[M]=="string")try{h[M]=JSON.parse(h[M])}catch{}else if((B.type==="number"||B.type==="integer")&&typeof h[M]=="string"&&h[M]!==""){const ge=Number(h[M]);Number.isNaN(ge)||(h[M]=ge)}});const v=await _.callTool({name:s,arguments:h}),W=v.structuredContent??v,He=performance.now(),We=Math.round(He-a);p(W),g(v),C(h);const Ke=JSON.stringify(W),he=new TextEncoder().encode(Ke).length;y({duration:`${We}ms`,bytes:`${he} bytes`,tokens:`~${Math.ceil(he/4)} tokens`,cost:"$0.0000"})}catch(h){const v=h instanceof Error?h.message:String(h);I(v||"Unknown error occurred");const W=performance.now();y({duration:`${Math.round(W-a)}ms`})}finally{T(!1)}},ee=(a,h)=>{n(v=>({...v,[a]:h}))},Be=()=>{p(null),g(null),C(null),I(null),y(null)},Fe=j?.name??Lt(s),Je=t.jsx(Oe,{children:t.jsxs(Re,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:w.slug},children:"Connections"})})}),t.jsx(Q,{}),P&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:w.slug,appSlug:vt(P)},search:{tab:"tools"},children:P.title})})}),t.jsx(Q,{})]}),t.jsx(V,{children:t.jsx(_e,{children:Fe})})]})}),fe=r.length>1&&t.jsxs(ve,{value:e,onValueChange:o,children:[t.jsx(Se,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ye,{})}),t.jsx(we,{children:r.map(a=>t.jsx(ne,{value:a.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Te,{icon:a.icon,name:a.title,size:"xs",className:"shrink-0"}),a.title]})},a.id))})]}),Ve=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),j?.inputSchema?.required&&j.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:q&&j?.inputSchema?.properties?Object.entries(j.inputSchema.properties).map(([a,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:[a,j.inputSchema?.required?.includes(a)&&t.jsx("span",{className:"text-red-500 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(ie,{className:"font-mono text-xs",value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a} as JSON...`,rows:3}):h.type==="boolean"?t.jsxs(ve,{value:Z(a)?String(d[a]??""):"",onValueChange:v=>ee(a,v==="true"),children:[t.jsx(Se,{children:t.jsx(ye,{placeholder:"Select true or false..."})}),t.jsxs(we,{children:[t.jsx(ne,{value:"true",children:"true"}),t.jsx(ne,{value:"false",children:"false"})]})]}):t.jsx(me,{value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a}...`})]},a)):j?.inputSchema&&!q?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(ie,{className:"font-mono text-xs min-h-[120px]",value:u,onChange:a=>x(a.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:k?t.jsxs(F,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Be,children:[t.jsx(lt,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(F,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ue,children:[t.jsx(Nt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),qe=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[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(jt,{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(at,{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(ct,{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})})]}),E&&t.jsx(ht,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("ui"),children:t.jsx(dt,{size:14})})}),t.jsx($e,{children:"Interactive view"})]}),t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("json"),children:t.jsx(be,{size:14})})}),t.jsx($e,{children:"JSON view"})]})]})})]})]}),R&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(xt,{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(pt,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(ft,{className:"text-xs text-destructive",children:R})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&D==="ui"&&_?t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(ut,{resourceURI:E,toolInfo:j?{tool:j}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ne.view.minHeight,maxHeight:Ne.view.maxHeight,client:_,onMessage:J,onUpdateModelContext:a=>A?.setAppContext(z,a),onTeardown:()=>A?.clearAppContext(z),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Ct,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(F,{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)),Xe.success("Copied to clipboard")},children:t.jsx(bt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(be,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(ue,{breadcrumb:Je,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Te,{icon:P?.icon||null,name:P?.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:[L.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):L.isLoading?t.jsx(Y,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:L.isSuccess?"ready":L.isLoading?"connecting":"error"})]}),t.jsx(yt,{annotations:j?.annotations,_meta:j?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:fe})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:j?.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:"Instance"}),fe]}),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:Ve}),qe]})})]})})}function Ft(s){const e=O.c(10),{itemId:r,siblings:o,onBack:l}=s,[i,c]=$.useState(o[0]?.id??"");let d;e[0]!==i||e[1]!==o?(d=o.find(p=>p.id===i)?.id??o[0]?.id??"",e[0]=i,e[1]=o,e[2]=d):d=e[2];const n=d;if(!De(n||void 0)||!n){let p;return e[3]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=p):p=e[3],p}let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=x):x=e[4];let m;return e[5]!==n||e[6]!==l||e[7]!==o||e[8]!==r?(m=t.jsx($.Suspense,{fallback:x,children:t.jsx(Ut,{toolName:r,connectionId:n,siblings:o,onSelectInstance:c,onBack:l})}),e[5]=n,e[6]=l,e[7]=o,e[8]=r,e[9]=m):m=e[9],m}function Jt(s){const e=O.c(21),{icon:r,illustration:o,title:l,description:i,buttonProps:c,buttonComponent:d,className:n,children:u}=s;let x;e[0]!==n?(x=je("flex flex-col items-center justify-center py-16 text-center",n),e[0]=n,e[1]=x):x=e[1];let m;e[2]!==r||e[3]!==o?(m=o?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:o}):r?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:r}):null,e[2]=r,e[3]=o,e[4]=m):m=e[4];let p;e[5]!==l?(p=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:l}),e[5]=l,e[6]=p):p=e[6];let f;e[7]!==i?(f=i&&t.jsx("div",{className:"text-sm text-muted-foreground",children:i}),e[7]=i,e[8]=f):f=e[8];let g;e[9]!==p||e[10]!==f?(g=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[p,f]}),e[9]=p,e[10]=f,e[11]=g):g=e[11];let S;e[12]!==d||e[13]!==c?(S=(d??c)&&t.jsx("div",{className:"mt-4",children:d??(c&&t.jsx(F,{size:"sm",className:je(c?.className),...c}))}),e[12]=d,e[13]=c,e[14]=S):S=e[14];let C;return e[15]!==u||e[16]!==x||e[17]!==m||e[18]!==g||e[19]!==S?(C=t.jsxs("div",{className:x,children:[m,g,S,u]}),e[15]=u,e[16]=x,e[17]=m,e[18]=g,e[19]=S,e[20]=C):C=e[20],C}const Vt={prompt:zt};function qt(){const s=O.c(9),e=ke();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=le(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 c=Me(i);let d;s[3]!==e.history?(d=()=>{e.history.back()},s[3]=e.history,s[4]=d):d=s[4];const n=d,u=Ht;let x;return s[5]!==n||s[6]!==l||s[7]!==c?(x=t.jsx(Ft,{itemId:l,siblings:c,onBack:n,onUpdate:u}),s[5]=n,s[6]=l,s[7]=c,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Wt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Kt(){const s=O.c(41),e=ke();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=le(r),l=decodeURIComponent(o.collectionName),i=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:n}=re();let u;s[3]!==o.appSlug?(u={slug:o.appSlug},s[3]=o.appSlug,s[4]=u):u=s[4];const m=Me(u)[0]??null,p=m?.id??"",f=p||"no-connection",g=p??null;let S;s[5]!==n.id||s[6]!==n.slug||s[7]!==g?(S={connectionId:g,orgId:n.id,orgSlug:n.slug},s[5]=n.id,s[6]=n.slug,s[7]=g,s[8]=S):S=s[8];const C=ae(S),R=Ee(f,l,C);let I;s[9]!==R||s[10]!==i?(I=async D=>{i&&await R.update.mutateAsync({id:i,data:D})},s[9]=R,s[10]=i,s[11]=I):I=s[11];const k=I;let T;s[12]!==l?(T=l?.toLowerCase(),s[12]=l,s[13]=T):T=s[13];const b=T,y=b&&Vt[b];let w;s[14]!==l?(w=Wt(l),s[14]=l,s[15]=w):w=s[15];const P=w;let N;s[16]!==n.slug?(N=t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:n.slug},children:"Connections"})})}),s[16]=n.slug,s[17]=N):N=s[17];let A;s[18]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(Q,{}),s[18]=A):A=s[18];let U;s[19]!==l||s[20]!==m||s[21]!==n.slug||s[22]!==o.appSlug?(U=m&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:n.slug,appSlug:o.appSlug},search:{tab:l},children:m.title})})}),t.jsx(Q,{})]}),s[19]=l,s[20]=m,s[21]=n.slug,s[22]=o.appSlug,s[23]=U):U=s[23];let z;s[24]!==P?(z=t.jsx(V,{children:t.jsx(_e,{children:P})}),s[24]=P,s[25]=z):z=s[25];let _;s[26]!==U||s[27]!==z||s[28]!==N?(_=t.jsx(Oe,{children:t.jsxs(Re,{children:[N,A,U,z]})}),s[26]=U,s[27]=z,s[28]=N,s[29]=_):_=s[29];const L=_;if(y){let D;return s[30]!==y||s[31]!==d||s[32]!==k||s[33]!==i?(D=t.jsx(y,{itemId:i,onBack:d,onUpdate:k}),s[30]=y,s[31]=d,s[32]=k,s[33]=i,s[34]=D):D=s[34],D}let j;s[35]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(kt,{size:36,className:"text-muted-foreground"}),s[35]=j):j=s[35];let E;s[36]!==d?(E=t.jsx(Jt,{icon:j,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:d,children:"Go back"}}),s[36]=d,s[37]=E):E=s[37];let J;return s[38]!==L||s[39]!==E?(J=t.jsx(ue,{breadcrumb:L,children:E}),s[38]=L,s[39]=E,s[40]=J):J=s[40],J}function Gt(){const s=O.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=le(e);if(decodeURIComponent(r.collectionName)==="tools"){let c;return s[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(qt,{}),s[1]=c):c=s[1],c}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Kt,{}),s[2]=i):i=s[2],i}function Vn(){const s=O.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Gt,{})})}),s[0]=e):e=s[0],e}export{Vn as default};
|
|
1
|
+
import{c as O,j as t,B as F,i as Y,G as Ge,H as te,P as Pe,r as $,$ as re,J as Qe,u as Ye,a6 as K,t as Xe,l as je,e as le,aW as ke}from"./index-CHTXbbov.js";import{E as Ae}from"./empty-state-D1uvzlNE.js";import{u as Ze,a as Ee}from"./use-collections-D64OZMP5.js";import{u as ae}from"./use-mcp-client-CLRfC1wx.js";import{F as se,a as et,b as ce,d as de}from"./form-DFTCc20c.js";import{I as me}from"./input-CmSWz8o2.js";import{T as ie}from"./textarea-OL70WZGE.js";import{a as tt,b as st,V as ue,O as nt,M as ot}from"./index-CC_UV35u.js";import{aq as it,K as rt,al as lt,W as at,P as ct,ar as dt,L as be}from"./agent-icon-CmQR7VYX.js";import{g as mt,M as ut,a as Ne}from"./types-BB1jNEFr.js";import{A as xt,a as pt,b as ft}from"./alert-T1HcG_-8.js";import{a as ve,c as Se,d as ye,S as we,b as ne}from"./select-CwHjJZxE.js";import{c as ht,T as Ce,a as Ie,b as $e}from"./tooltip-76CNxa0k.js";import{i as gt}from"./AlertCircle-C2zWCKFU.js";import{s as jt}from"./Stars02-DEt9kiBB.js";import{a as bt}from"./Copy01-BQ_PiBJg.js";import{i as Nt}from"./Play-_cajpL44.js";import{a as Oe,b as Re,B as V,c as G,d as Q,e as _e}from"./breadcrumb-DRdhsGPh.js";import{g as vt}from"./connection-slug-eyAPH6o3.js";import{u as St,T as yt}from"./tools-list-D_E-h8Xe.js";import{a as De,u as Me}from"./use-connection-CESoyj30.js";import{a as wt}from"./use-mcp-tools-B-eRGQ3S.js";import{M as Ct,c as It}from"./monaco-editor-6edrpcHw.js";import{I as Te}from"./integration-icon-CfSC6rtu.js";import{g as $t,l as Tt}from"./chat-context-CXarely7.js";import{u as Pt}from"./shell-layout-BWNLY1YB.js";import{n as kt}from"./XCircle-CBMT0KL4.js";import"./constants-B72Xmt_K.js";import"./auth-ByhUq4a_.js";import"./label-B9xXuLAT.js";import"./index-cyQt4Yyx.js";import"./sidebar-BmZkvg7r.js";import"./LayoutLeft-DZ1o8wY9.js";import"./use-mobile-Br8RngNM.js";import"./X-Dur8Z-Za.js";import"./ZoomOut-HEnwOMfN.js";import"./Key01-Bii-u3if.js";import"./extract-connection-data-C5iMuAQ4.js";import"./use-registry-connections-CUygRLiX.js";import"./use-organization-settings-Jtb68vdP.js";import"./studio-tools-BJ0Qkwde.js";import"./Plus-DNXyFi3K.js";import"./index-BUPmS7n0.js";import"./index-E_NWIv9K.js";import"./index-DK0NGyFF.js";import"./popover-DqOLJjYt.js";import"./use-virtual-mcp-SJZFwIbn.js";import"./Check-BRK73b5S.js";import"./SearchMd-D-hUUaFS.js";import"./Users03-DL337Un-.js";import"./use-create-virtual-mcp-Z0tu5okZ.js";import"./use-navigate-to-agent-CbM55DRt.js";import"./hooks-BoTVA0mi.js";import"./decopilot-sse-pool-r20ANcgR.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-qqWu133U.js";import"./Tool01-BWJW2W9Q.js";import"./SwitchHorizontal01-DywB6wR-.js";import"./Settings02-La9BPNoQ.js";import"./ArrowUpRight-CEd_dX9G.js";import"./ZapSquare-BKMxUjl5.js";import"./Loading02-8PRXrpou.js";import"./CheckCircle-Bc6DVWpl.js";import"./ChevronDown-Cl64FuM7.js";import"./ChevronRight-BiUpAxck.js";import"./ChevronUp-Bd8WwASv.js";import"./Circle-CVEWxAkn.js";import"./DotsVertical-BajBw7s_.js";import"./Globe01-C8lrsv2j.js";import"./Eye-9-W42Pav.js";import"./FilterLines-DAOyUgW1.js";import"./Star01-Vp5jNxy-.js";import"./Globe04-Ben7MbOW.js";import"./HardDrive-s5-cqKOl.js";import"./LinkExternal01-DzEGzhif.js";import"./List-BLq_vEGx.js";import"./Monitor01-DHJyQ_kz.js";import"./Sun-D3e2kVWD.js";import"./Palette-D_lkOnBw.js";import"./SearchLg-DZwERN6V.js";import"./Shield01-t0UkG_Fu.js";import"./Stars01-DzGOGcyE.js";import"./Trash01-Bw4Y_fB0.js";import"./Upload01-DNGqtihL.js";import"./User01-Kj6tpX8J.js";import"./Users01-BHFcKE6V.js";import"./XClose-Dw5u5Ptt.js";import"./Zap-Ci4q4Rqw.js";import"./mcp-oauth-D1IBLEDf.js";import"./badge-DFPi3DPJ.js";import"./index-9gM0pWop.js";import"./autosend-dMnF67ZR.js";import"./use-ai-providers-wCtA7FyN.js";import"./use-decopilot-events-iOO06bl2.js";import"./tab-id-DAJ8K7VA.js";import"./avatar-Dgp_8vlO.js";import"./dialog-mIunfNF1.js";import"./alert-dialog-s3u3eE8R.js";import"./required-auth-layout-DQViUcsZ.js";import"./use-org-sso-92hmv2kj.js";function At(s){const e=O.c(15),{onSave:r,onUndo:o,isDirty:l,isSaving:i,saveLabel:c,undoLabel:d}=s,n=c===void 0?"Save":c,u=d===void 0?"Undo":d;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(it,{size:14}),e[0]=x):x=e[0];let m;e[1]!==i||e[2]!==o||e[3]!==u?(m=t.jsxs(F,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":u,children:[x,u]}),e[1]=i,e[2]=o,e[3]=u,e[4]=m):m=e[4];let p;e[5]!==i?(p=i?t.jsx(Y,{size:14,className:"animate-spin"}):t.jsx(rt,{size:14}),e[5]=i,e[6]=p):p=e[6];let f;e[7]!==i||e[8]!==r||e[9]!==n||e[10]!==p?(f=t.jsxs(F,{variant:"default",size:"sm",onClick:r,disabled:i,"aria-label":n,children:[p,n]}),e[7]=i,e[8]=r,e[9]=n,e[10]=p,e[11]=f):f=e[11];let g;return e[12]!==m||e[13]!==f?(g=t.jsxs(t.Fragment,{children:[m,f]}),e[12]=m,e[13]=f,e[14]=g):g=e[14],g}Ge({title:te().min(1),description:te().nullable(),body:te()});function oe(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 Ot(s){const e=O.c(13),{form:r}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=o):o=e[0];let l;e[1]!==r.control?(l=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(se,{control:r.control,name:"title",render:Dt}),t.jsx(se,{control:r.control,name:"description",render:_t})]})]}),e[1]=r.control,e[2]=l):l=e[2];let i,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),c=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=i,e[4]=c):(i=e[3],c=e[4]);let d;e[5]!==r.control?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[i,c,t.jsx(se,{control:r.control,name:"body",render:Rt})]}),e[5]=r.control,e[6]=d):d=e[6];let n;e[7]!==l||e[8]!==d?(n=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:[l,d]}),e[7]=l,e[8]=d,e[9]=n):n=e[9];let u;return e[10]!==r||e[11]!==n?(u=t.jsx(et,{...r,children:n}),e[10]=r,e[11]=n,e[12]=u):u=e[12],u}function Rt(s){const{field:e}=s;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(ie,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function _t(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(de,{children:t.jsx(me,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Dt(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(de,{children:t.jsx(me,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Mt(s){const e=O.c(36),{providerId:r,promptId:o}=s,{org:l}=re(),i=r||null;let c;e[0]!==l.id||e[1]!==l.slug||e[2]!==i?(c={connectionId:i,orgId:l.id,orgSlug:l.slug},e[0]=l.id,e[1]=l.slug,e[2]=i,e[3]=c):c=e[3];const d=ae(c),n=Ze(r,"PROMPT",o,d),u=Ee(r,"PROMPT",d),x=u.update.isPending;let m;e[4]!==n?(m=n?{title:n.title,description:n.description??null,body:oe(n)}:void 0,e[4]=n,e[5]=m):m=e[5];let p;e[6]!==m?(p={values:m},e[6]=m,e[7]=p):p=e[7];const f=Qe(p);let g;e[8]!==f||e[9]!==n?(g=()=>{n&&f.reset({title:n.title,description:n.description??null,body:oe(n)})},e[8]=f,e[9]=n,e[10]=g):g=e[10];const S=g;let C;e[11]!==u.update||e[12]!==f||e[13]!==o?(C=f.handleSubmit(async N=>{const A=await u.update.mutateAsync({id:o,data:{title:N.title,description:N.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:N.body}}]}});f.reset({title:A.title,description:A.description??null,body:oe(A)})}),e[11]=u.update,e[12]=f,e[13]=o,e[14]=C):C=e[14];const R=C;if(!n){let N;return e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ae,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=N):N=e[15],N}let I;e[16]!==n.title?(I=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[16]=n.title,e[17]=I):I=e[17];let k;e[18]!==n.description?(k=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[18]=n.description,e[19]=k):k=e[19];let T;e[20]!==I||e[21]!==k?(T=t.jsx(st,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[I,k]})}),e[20]=I,e[21]=k,e[22]=T):T=e[22];let b;e[23]!==R?(b=()=>{R()},e[23]=R,e[24]=b):b=e[24];let y;e[25]!==f.formState.isDirty||e[26]!==x||e[27]!==S||e[28]!==b?(y=t.jsx(tt,{children:t.jsx(At,{onSave:b,onUndo:S,isDirty:f.formState.isDirty,isSaving:x})}),e[25]=f.formState.isDirty,e[26]=x,e[27]=S,e[28]=b,e[29]=y):y=e[29];let w;e[30]!==f?(w=t.jsx("div",{className:"h-full",children:t.jsx(Ot,{form:f})}),e[30]=f,e[31]=w):w=e[31];let P;return e[32]!==y||e[33]!==w||e[34]!==T?(P=t.jsxs(ue,{children:[T,y,w]}),e[32]=y,e[33]=w,e[34]=T,e[35]=P):P=e[35],P}function zt(s){const e=O.c(4),{itemId:r}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Et(),e[0]=o):o=e[0];const l=o;if(!l){let c;return e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ae,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=c):c=e[1],c}let i;return e[2]!==r?(i=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:null,children:t.jsx(Mt,{providerId:l,promptId:r})})}),e[2]=r,e[3]=i):i=e[3],i}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=O.c(11),{toolName:r,connectionId:o,siblings:l,onSelectInstance:i,onBack:c}=s;let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const n=St(d);if(!n.isAuthenticated){let m;return e[2]!==n.supportsOAuth||e[3]!==c?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:n.supportsOAuth?t.jsx(nt,{onAuthenticate:()=>c(),buttonText:"Go back to authenticate"}):t.jsx(ot,{hasReadme:!1})}),e[2]=n.supportsOAuth,e[3]=c,e[4]=m):m=e[4],m}const u=`${o}:${r}`;let x;return e[5]!==o||e[6]!==i||e[7]!==l||e[8]!==u||e[9]!==r?(x=t.jsx(Bt,{toolName:r,connectionId:o,siblings:l,onSelectInstance:i},u),e[5]=o,e[6]=i,e[7]=l,e[8]=u,e[9]=r,e[10]=x):x=e[10],x}function Bt({toolName:s,connectionId:e,siblings:r,onSelectInstance:o}){const{replayId:l}=Ye({strict:!1}),i=(()=>{if(!l)return null;const a=`replay-${l}`,h=sessionStorage.getItem(a);if(!h)return null;sessionStorage.removeItem(a);try{return JSON.parse(h)}catch{return null}})(),c=(()=>{if(!i)return null;const a={};for(const[h,v]of Object.entries(i))v!==null&&typeof v=="object"?a[h]=JSON.stringify(v,null,2):a[h]=v;return a})(),[d,n]=$.useState(c??{}),[u,x]=$.useState(i?JSON.stringify(i,null,2):"{}"),[m,p]=$.useState(null),[f,g]=$.useState(null),[S,C]=$.useState(null),[R,I]=$.useState(null),[k,T]=$.useState(!1),[b,y]=$.useState(null),{org:w}=re(),P=De(e),N=$t(),A=Tt(),{setChatOpen:U}=Pt(),z=`${e}:${s}`,_=ae({connectionId:e,orgId:w.id,orgSlug:w.slug}),L=wt({client:_}),j=L.data?.tools?.find(a=>a.name===s),E=mt(j?._meta),J=a=>{if(!N)return;const h=It(a.content);h.content.length>0&&(U(!0),N.sendMessage({tiptapDoc:h}))},[D,X]=$.useState("json"),[ze,Le]=$.useState(!1);E&&!ze&&(X("ui"),Le(!0));const xe=j?.inputSchema?.properties,pe=xe?Object.keys(xe):[],q=pe.length>0,H={};if(q&&j?.inputSchema?.properties)for(const a of pe)H[a]=j.inputSchema.required?.includes(a)?"":void 0;const Z=a=>Object.prototype.hasOwnProperty.call(d,a),Ue=async()=>{T(!0),I(null),p(null),g(null),C(null),y(null);const a=performance.now();try{if(!_)throw new Error("MCP client is not available");const h=q?{...H,...d}:(()=>{const M=u.trim();if(!M)return{};const B=JSON.parse(M);if(B&&typeof B=="object")return B;throw new Error("Raw JSON input must be an object.")})();q&&j?.inputSchema?.properties&&Object.entries(j.inputSchema.properties).forEach(([M,B])=>{if((B.type==="object"||B.type==="array")&&typeof h[M]=="string")try{h[M]=JSON.parse(h[M])}catch{}else if((B.type==="number"||B.type==="integer")&&typeof h[M]=="string"&&h[M]!==""){const ge=Number(h[M]);Number.isNaN(ge)||(h[M]=ge)}});const v=await _.callTool({name:s,arguments:h}),W=v.structuredContent??v,He=performance.now(),We=Math.round(He-a);p(W),g(v),C(h);const Ke=JSON.stringify(W),he=new TextEncoder().encode(Ke).length;y({duration:`${We}ms`,bytes:`${he} bytes`,tokens:`~${Math.ceil(he/4)} tokens`,cost:"$0.0000"})}catch(h){const v=h instanceof Error?h.message:String(h);I(v||"Unknown error occurred");const W=performance.now();y({duration:`${Math.round(W-a)}ms`})}finally{T(!1)}},ee=(a,h)=>{n(v=>({...v,[a]:h}))},Be=()=>{p(null),g(null),C(null),I(null),y(null)},Fe=j?.name??Lt(s),Je=t.jsx(Oe,{children:t.jsxs(Re,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:w.slug},children:"Connections"})})}),t.jsx(Q,{}),P&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:w.slug,appSlug:vt(P)},search:{tab:"tools"},children:P.title})})}),t.jsx(Q,{})]}),t.jsx(V,{children:t.jsx(_e,{children:Fe})})]})}),fe=r.length>1&&t.jsxs(ve,{value:e,onValueChange:o,children:[t.jsx(Se,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ye,{})}),t.jsx(we,{children:r.map(a=>t.jsx(ne,{value:a.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Te,{icon:a.icon,name:a.title,size:"xs",className:"shrink-0"}),a.title]})},a.id))})]}),Ve=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),j?.inputSchema?.required&&j.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:q&&j?.inputSchema?.properties?Object.entries(j.inputSchema.properties).map(([a,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:[a,j.inputSchema?.required?.includes(a)&&t.jsx("span",{className:"text-red-500 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(ie,{className:"font-mono text-xs",value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a} as JSON...`,rows:3}):h.type==="boolean"?t.jsxs(ve,{value:Z(a)?String(d[a]??""):"",onValueChange:v=>ee(a,v==="true"),children:[t.jsx(Se,{children:t.jsx(ye,{placeholder:"Select true or false..."})}),t.jsxs(we,{children:[t.jsx(ne,{value:"true",children:"true"}),t.jsx(ne,{value:"false",children:"false"})]})]}):t.jsx(me,{value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a}...`})]},a)):j?.inputSchema&&!q?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(ie,{className:"font-mono text-xs min-h-[120px]",value:u,onChange:a=>x(a.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:k?t.jsxs(F,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Be,children:[t.jsx(lt,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(F,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ue,children:[t.jsx(Nt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),qe=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[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(jt,{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(at,{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(ct,{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})})]}),E&&t.jsx(ht,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("ui"),children:t.jsx(dt,{size:14})})}),t.jsx($e,{children:"Interactive view"})]}),t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("json"),children:t.jsx(be,{size:14})})}),t.jsx($e,{children:"JSON view"})]})]})})]})]}),R&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(xt,{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(pt,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(ft,{className:"text-xs text-destructive",children:R})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&D==="ui"&&_?t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(ut,{resourceURI:E,toolInfo:j?{tool:j}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ne.view.minHeight,maxHeight:Ne.view.maxHeight,client:_,onMessage:J,onUpdateModelContext:a=>A?.setAppContext(z,a),onTeardown:()=>A?.clearAppContext(z),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Ct,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(F,{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)),Xe.success("Copied to clipboard")},children:t.jsx(bt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(be,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(ue,{breadcrumb:Je,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Te,{icon:P?.icon||null,name:P?.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:[L.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):L.isLoading?t.jsx(Y,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:L.isSuccess?"ready":L.isLoading?"connecting":"error"})]}),t.jsx(yt,{annotations:j?.annotations,_meta:j?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:fe})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:j?.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:"Instance"}),fe]}),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:Ve}),qe]})})]})})}function Ft(s){const e=O.c(10),{itemId:r,siblings:o,onBack:l}=s,[i,c]=$.useState(o[0]?.id??"");let d;e[0]!==i||e[1]!==o?(d=o.find(p=>p.id===i)?.id??o[0]?.id??"",e[0]=i,e[1]=o,e[2]=d):d=e[2];const n=d;if(!De(n||void 0)||!n){let p;return e[3]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=p):p=e[3],p}let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=x):x=e[4];let m;return e[5]!==n||e[6]!==l||e[7]!==o||e[8]!==r?(m=t.jsx($.Suspense,{fallback:x,children:t.jsx(Ut,{toolName:r,connectionId:n,siblings:o,onSelectInstance:c,onBack:l})}),e[5]=n,e[6]=l,e[7]=o,e[8]=r,e[9]=m):m=e[9],m}function Jt(s){const e=O.c(21),{icon:r,illustration:o,title:l,description:i,buttonProps:c,buttonComponent:d,className:n,children:u}=s;let x;e[0]!==n?(x=je("flex flex-col items-center justify-center py-16 text-center",n),e[0]=n,e[1]=x):x=e[1];let m;e[2]!==r||e[3]!==o?(m=o?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:o}):r?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:r}):null,e[2]=r,e[3]=o,e[4]=m):m=e[4];let p;e[5]!==l?(p=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:l}),e[5]=l,e[6]=p):p=e[6];let f;e[7]!==i?(f=i&&t.jsx("div",{className:"text-sm text-muted-foreground",children:i}),e[7]=i,e[8]=f):f=e[8];let g;e[9]!==p||e[10]!==f?(g=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[p,f]}),e[9]=p,e[10]=f,e[11]=g):g=e[11];let S;e[12]!==d||e[13]!==c?(S=(d??c)&&t.jsx("div",{className:"mt-4",children:d??(c&&t.jsx(F,{size:"sm",className:je(c?.className),...c}))}),e[12]=d,e[13]=c,e[14]=S):S=e[14];let C;return e[15]!==u||e[16]!==x||e[17]!==m||e[18]!==g||e[19]!==S?(C=t.jsxs("div",{className:x,children:[m,g,S,u]}),e[15]=u,e[16]=x,e[17]=m,e[18]=g,e[19]=S,e[20]=C):C=e[20],C}const Vt={prompt:zt};function qt(){const s=O.c(9),e=ke();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=le(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 c=Me(i);let d;s[3]!==e.history?(d=()=>{e.history.back()},s[3]=e.history,s[4]=d):d=s[4];const n=d,u=Ht;let x;return s[5]!==n||s[6]!==l||s[7]!==c?(x=t.jsx(Ft,{itemId:l,siblings:c,onBack:n,onUpdate:u}),s[5]=n,s[6]=l,s[7]=c,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Wt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Kt(){const s=O.c(41),e=ke();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=le(r),l=decodeURIComponent(o.collectionName),i=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:n}=re();let u;s[3]!==o.appSlug?(u={slug:o.appSlug},s[3]=o.appSlug,s[4]=u):u=s[4];const m=Me(u)[0]??null,p=m?.id??"",f=p||"no-connection",g=p??null;let S;s[5]!==n.id||s[6]!==n.slug||s[7]!==g?(S={connectionId:g,orgId:n.id,orgSlug:n.slug},s[5]=n.id,s[6]=n.slug,s[7]=g,s[8]=S):S=s[8];const C=ae(S),R=Ee(f,l,C);let I;s[9]!==R||s[10]!==i?(I=async D=>{i&&await R.update.mutateAsync({id:i,data:D})},s[9]=R,s[10]=i,s[11]=I):I=s[11];const k=I;let T;s[12]!==l?(T=l?.toLowerCase(),s[12]=l,s[13]=T):T=s[13];const b=T,y=b&&Vt[b];let w;s[14]!==l?(w=Wt(l),s[14]=l,s[15]=w):w=s[15];const P=w;let N;s[16]!==n.slug?(N=t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:n.slug},children:"Connections"})})}),s[16]=n.slug,s[17]=N):N=s[17];let A;s[18]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(Q,{}),s[18]=A):A=s[18];let U;s[19]!==l||s[20]!==m||s[21]!==n.slug||s[22]!==o.appSlug?(U=m&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:n.slug,appSlug:o.appSlug},search:{tab:l},children:m.title})})}),t.jsx(Q,{})]}),s[19]=l,s[20]=m,s[21]=n.slug,s[22]=o.appSlug,s[23]=U):U=s[23];let z;s[24]!==P?(z=t.jsx(V,{children:t.jsx(_e,{children:P})}),s[24]=P,s[25]=z):z=s[25];let _;s[26]!==U||s[27]!==z||s[28]!==N?(_=t.jsx(Oe,{children:t.jsxs(Re,{children:[N,A,U,z]})}),s[26]=U,s[27]=z,s[28]=N,s[29]=_):_=s[29];const L=_;if(y){let D;return s[30]!==y||s[31]!==d||s[32]!==k||s[33]!==i?(D=t.jsx(y,{itemId:i,onBack:d,onUpdate:k}),s[30]=y,s[31]=d,s[32]=k,s[33]=i,s[34]=D):D=s[34],D}let j;s[35]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(kt,{size:36,className:"text-muted-foreground"}),s[35]=j):j=s[35];let E;s[36]!==d?(E=t.jsx(Jt,{icon:j,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:d,children:"Go back"}}),s[36]=d,s[37]=E):E=s[37];let J;return s[38]!==L||s[39]!==E?(J=t.jsx(ue,{breadcrumb:L,children:E}),s[38]=L,s[39]=E,s[40]=J):J=s[40],J}function Gt(){const s=O.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=le(e);if(decodeURIComponent(r.collectionName)==="tools"){let c;return s[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(qt,{}),s[1]=c):c=s[1],c}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Kt,{}),s[2]=i):i=s[2],i}function Vn(){const s=O.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Gt,{})})}),s[0]=e):e=s[0],e}export{Vn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,j as s,l as M,B as V}from"./index-
|
|
1
|
+
import{c as B,j as s,l as M,B as V}from"./index-CHTXbbov.js";import{d as z,a as _,c as $,D as E}from"./dropdown-menu-Ckt1rFkP.js";import{i as L,n as O,b as R,c as A}from"./SwitchHorizontal01-DywB6wR-.js";import{i as S}from"./Check-BRK73b5S.js";import{i as F}from"./List-BLq_vEGx.js";import{a as I,b as K,c as P,T as W}from"./tooltip-76CNxa0k.js";import{V as q}from"./view-mode-toggle-CwK1jegn.js";import{B as G}from"./badge-DFPi3DPJ.js";function re(t){const e=B.c(31),{viewMode:r,onViewModeChange:m,sortKey:T,sortDirection:p,onSort:f,sortOptions:u,filters:h}=t;let g;e[0]!==u?(g=u===void 0?[]:u,e[0]=u,e[1]=g):g=e[1];const j=g;let b;e[2]!==h?(b=h===void 0?[]:h,e[2]=h,e[3]=b):b=e[3];const l=b;let v;e[4]!==l?(v=l.filter(J),e[4]=l,e[5]=v):v=e[5];const N=v.length;let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(R,{size:16}),e[6]=w):w=e[6];let i;e[7]!==N?(i=N>0&&s.jsx(G,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[7]=N,e[8]=i):i=e[8];let o;e[9]!==i?(o=s.jsx(I,{asChild:!0,children:s.jsx(_,{asChild:!0,children:s.jsxs(V,{variant:"outline",size:"icon",className:"relative",children:[w,i]})})}),e[9]=i,e[10]=o):o=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(K,{children:"Display & filters"}),e[11]=C):C=e[11];let n;e[12]!==o?(n=s.jsx(P,{children:s.jsxs(W,{children:[o,C]})}),e[12]=o,e[13]=n):n=e[13];let a;e[14]!==m||e[15]!==r?(a=m&&r&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:r,onValueChange:m,fullWidth:!0,options:[{value:"table",icon:s.jsx(F,{})},{value:"cards",icon:s.jsx(A,{})}]})}),e[14]=m,e[15]=r,e[16]=a):a=e[16];let c;e[17]!==f||e[18]!==p||e[19]!==T||e[20]!==j?(c=j.length>0&&f&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:"Sort by"}),j.map(y=>{const D=T===y.id;return s.jsx(z,{onClick:()=>f(y.id),className:M("h-8 px-2 py-0 cursor-pointer",D&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[D&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!D&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:y.label}),D&&p&&(p==="asc"?s.jsx(L,{size:16,className:"text-foreground shrink-0"}):s.jsx(O,{size:16,className:"text-foreground shrink-0"}))]})},y.id)})]}),e[17]=f,e[18]=p,e[19]=T,e[20]=j,e[21]=c):c=e[21];let d;e[22]!==l?(d=l.map(H),e[22]=l,e[23]=d):d=e[23];let x;e[24]!==a||e[25]!==c||e[26]!==d?(x=s.jsxs($,{align:"end",className:"w-[200px] p-0 gap-0",children:[a,c,d]}),e[24]=a,e[25]=c,e[26]=d,e[27]=x):x=e[27];let k;return e[28]!==n||e[29]!==x?(k=s.jsxs(E,{children:[n,x]}),e[28]=n,e[29]=x,e[30]=k):k=e[30],k}function H(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const r=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:M("h-8 px-2 py-0 cursor-pointer",r&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[r&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!r&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function J(t){return t.value!=="ALL"}export{re as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,l as b,j as a,i as w}from"./index-
|
|
1
|
+
import{c as v,l as b,j as a,i as w}from"./index-CHTXbbov.js";import{i as C}from"./SearchMd-D-hUUaFS.js";function S(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,p=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const h=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==h?(s=b("flex items-center gap-2.5 h-12 px-4",h),e[2]=h,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{size:16,className:"animate-spin 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]!==p||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:p,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=p,e[11]=r,e[12]=d,e[13]=o):o=e[13];let 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{S as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as s,l as C}from"./index-
|
|
1
|
+
import{c as k,j as s,l as C}from"./index-CHTXbbov.js";import{e as S,d as R,a as T,T as H,b as L,c as z}from"./table-Xfjmxtui.js";import{i as D,n as E}from"./SwitchHorizontal01-DywB6wR-.js";function I(y){const e=k.c(29),{columns:r,data:f,sortKey:x,sortDirection:u,onSort:i,onRowClick:n,rowClassName:c}=y;let p;e[0]!==u?(p=function(t,h){return s.jsx("div",{className:"w-4 flex items-center justify-center",children:h&&u&&(u==="asc"?s.jsx(D,{size:16,className:"text-muted-foreground transition-colors"}):s.jsx(E,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=u,e[1]=p):p=e[1];const b=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,h){let N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===h-1&&(N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),N},e[2]=d):d=e[2];const a=d;let l;if(e[3]!==r||e[4]!==i||e[5]!==b||e[6]!==x){let o;e[8]!==r.length||e[9]!==i||e[10]!==b||e[11]!==x?(o=(t,h)=>{const N=x===t.id;return s.jsx(S,{className:C(a(h,r.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),onClick:t.sortable&&i?()=>i(t.id):void 0,children:s.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&b(t.id,N)]})},t.id)},e[8]=r.length,e[9]=i,e[10]=b,e[11]=x,e[12]=o):o=e[12],l=r.map(o),e[3]=r,e[4]=i,e[5]=b,e[6]=x,e[7]=l}else l=e[7];let g;e[13]!==l?(g=s.jsx(R,{className:"border-b-0",children:s.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:l})}),e[13]=l,e[14]=g):g=e[14];let j;if(e[15]!==r||e[16]!==f||e[17]!==n||e[18]!==c){let o;e[20]!==r||e[21]!==n||e[22]!==c?(o=(t,h)=>{const N=c?.(t);return s.jsx(T,{"data-row-index":h,className:C("group/data-row transition-colors border-b-0 hover:bg-accent/50",n?"cursor-pointer":"",N),onClick:n?()=>n(t):void 0,children:r.map(m=>s.jsx(H,{className:C("px-5 py-4 h-16 align-middle text-sm text-foreground",m.cellClassName,m.wrap?"whitespace-normal wrap-break-word":""),children:s.jsx("div",{className:C(m.wrap?"w-full":"min-w-0 w-full",!m.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:m.render?m.render(t):m.accessor?m.accessor(t):null})},m.id))},h)},e[20]=r,e[21]=n,e[22]=c,e[23]=o):o=e[23],j=f.map(o),e[15]=r,e[16]=f,e[17]=n,e[18]=c,e[19]=j}else j=e[19];let w;e[24]!==j?(w=s.jsx(L,{children:j}),e[24]=j,e[25]=w):w=e[25];let v;return e[26]!==g||e[27]!==w?(v=s.jsxs(z,{className:"w-full border-collapse",children:[g,w]}),e[26]=g,e[27]=w,e[28]=v):v=e[28],v}function B(y){const e=k.c(12),{columns:r,data:f,isLoading:x,sortKey:u,sortDirection:i,onSort:n,onRowClick:c,emptyState:p}=y;if(x===void 0?!1:x){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-muted-foreground",children:"Loading..."})}),e[0]=a):a=e[0],a}if(f.length===0){let a;e[1]!==p?(a=p||s.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No items found"}),e[1]=p,e[2]=a):a=e[2];let l;return e[3]!==a?(l=s.jsx("div",{className:"flex items-center justify-center h-full",children:a}),e[3]=a,e[4]=l):l=e[4],l}let d;return e[5]!==r||e[6]!==f||e[7]!==c||e[8]!==n||e[9]!==i||e[10]!==u?(d=s.jsx("div",{className:"flex-1",children:s.jsx(I,{columns:r,data:f,sortKey:u,sortDirection:i,onSort:n,onRowClick:c})}),e[5]=r,e[6]=f,e[7]=c,e[8]=n,e[9]=i,e[10]=u,e[11]=d):d=e[11],d}export{B as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,l as u,j as m}from"./index-
|
|
1
|
+
import{c as f,l as u,j as m}from"./index-CHTXbbov.js";import{B as g}from"./badge-DFPi3DPJ.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-CHTXbbov.js";import{_ as m}from"./index-DK0NGyFF.js";import{e as k,a as N,b as j,c as b,d as w}from"./dialog-mIunfNF1.js";import{i as y}from"./SearchMd-D-hUUaFS.js";function C(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function S(a){const e=d.c(24);let t,s,o,l,r;e[0]!==a?({title:l,description:r,children:t,className:s,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5]);const _=l===void 0?"Command Palette":l,v=r===void 0?"Search for a command to run...":r;let c;e[6]!==_?(c=n.jsx(N,{children:_}),e[6]=_,e[7]=c):c=e[7];let p;e[8]!==v?(p=n.jsx(j,{children:v}),e[8]=v,e[9]=p):p=e[9];let u;e[10]!==c||e[11]!==p?(u=n.jsxs(b,{className:"sr-only",children:[c,p]}),e[10]=c,e[11]=p,e[12]=u):u=e[12];let f;e[13]!==s?(f=i("overflow-hidden p-0",s),e[13]=s,e[14]=f):f=e[14];let x;e[15]!==t?(x=n.jsx(C,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[15]=t,e[16]=x):x=e[16];let g;e[17]!==f||e[18]!==x?(g=n.jsx(w,{className:f,closeButtonClassName:"hidden",children:x}),e[17]=f,e[18]=x,e[19]=g):g=e[19];let h;return e[20]!==o||e[21]!==u||e[22]!==g?(h=n.jsxs(k,{...o,children:[u,g]}),e[20]=o,e[21]=u,e[22]=g,e[23]=h):h=e[23],h}function z(a){const e=d.c(9);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(y,{className:"size-5 shrink-0 text-foreground"}),e[3]=o):o=e[3];let l;e[4]!==t?(l=i("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=l):l=e[5];let r;return e[6]!==s||e[7]!==l?(r=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[o,n.jsx(m.Input,{"data-slot":"command-input",className:l,...s})]}),e[6]=s,e[7]=l,e[8]=r):r=e[8],r}function G(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=d.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(m.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Item,{"data-slot":"command-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}export{L as C,H as a,z as b,G as c,C as d,R as e,B as f,S as g};
|