decocms 4.11.2 → 4.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Cc3pQQnr.js → AlertCircle-DWwpN1Z-.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CPi47lLx.js → ArrowUpRight-pNKIcinq.js} +1 -1
- package/dist/client/assets/{CheckCircle-IYpSOIKz.js → CheckCircle-erpjZPWG.js} +1 -1
- package/dist/client/assets/{ChevronDown-Dqjr8XHu.js → ChevronDown-C46xOus0.js} +1 -1
- package/dist/client/assets/{ChevronRight-gIRWWm9p.js → ChevronRight-BAe0N3qe.js} +1 -1
- package/dist/client/assets/{ChevronUp-B5eCnRac.js → ChevronUp-Cik4VSuz.js} +1 -1
- package/dist/client/assets/{DotsVertical-B9u1OZLA.js → DotsVertical-Bnas7jUO.js} +1 -1
- package/dist/client/assets/{Eye-B_K6Njxp.js → Eye-7c3EjylB.js} +1 -1
- package/dist/client/assets/{FilterLines-CdtZHbuq.js → FilterLines-BNCo87rK.js} +1 -1
- package/dist/client/assets/{Globe01-DcfQu85z.js → Globe01-ByHiB-Vv.js} +1 -1
- package/dist/client/assets/{Globe04-C-dtu6kX.js → Globe04-DX_4eh-5.js} +1 -1
- package/dist/client/assets/{HardDrive-4F7iUUm_.js → HardDrive-CdTimNvL.js} +1 -1
- package/dist/client/assets/{Key01-aBzwAa0Q.js → Key01-BHJbDy3j.js} +1 -1
- package/dist/client/assets/{LayoutLeft-ga9aJQRS.js → LayoutLeft-BHKsRVDI.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BGyqK5yf.js → LinkExternal01-DUA4KWTx.js} +1 -1
- package/dist/client/assets/{Monitor01-CEchjYQg.js → Monitor01-D40_oYJn.js} +1 -1
- package/dist/client/assets/{Palette-CSUU_Q3O.js → Palette-D-YqGWHC.js} +1 -1
- package/dist/client/assets/{Play-C8X7SGaF.js → Play-CKRTBn7j.js} +1 -1
- package/dist/client/assets/{Plus--DaCpp2L.js → Plus-CsmMo6bd.js} +1 -1
- package/dist/client/assets/{SearchLg-D03A_NF_.js → SearchLg-C3ZG_X18.js} +1 -1
- package/dist/client/assets/{SearchMd-DkOkqB1x.js → SearchMd-DxZlGhar.js} +1 -1
- package/dist/client/assets/{Settings02-BOk4ED6n.js → Settings02-BohnZhm5.js} +1 -1
- package/dist/client/assets/{Shield01-BFegC232.js → Shield01-B4EFwA0H.js} +1 -1
- package/dist/client/assets/{Star01-CUuABlwW.js → Star01-BwLfsZ10.js} +1 -1
- package/dist/client/assets/{Stars01-B93nLs7X.js → Stars01-Dj8qGB9Y.js} +1 -1
- package/dist/client/assets/{Stars02-z35UXQWd.js → Stars02-DorMWgti.js} +1 -1
- package/dist/client/assets/{Sun-D50GIoiM.js → Sun-Pf6w8WNN.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CSOC8pJg.js → SwitchHorizontal01-B2LGZtBk.js} +1 -1
- package/dist/client/assets/{Tool01-DiHOVm-e.js → Tool01-CSVWSNeA.js} +1 -1
- package/dist/client/assets/{Trash01-Bl6o13BP.js → Trash01-CAhXUXZ7.js} +1 -1
- package/dist/client/assets/{Upload01-CUV61CF_.js → Upload01-pOxcgSsr.js} +1 -1
- package/dist/client/assets/{User01-B1Xfry12.js → User01-CTno7_DK.js} +1 -1
- package/dist/client/assets/{Users01-B84B4zGO.js → Users01-C2NrBKhl.js} +1 -1
- package/dist/client/assets/{Users03-lcnaqD4R.js → Users03-CL5p0WGP.js} +1 -1
- package/dist/client/assets/{X-DfXvpZmg.js → X-D1A5orS9.js} +1 -1
- package/dist/client/assets/{XCircle-ZaGMWVGi.js → XCircle-h7FUvQ7N.js} +1 -1
- package/dist/client/assets/{XClose-D9sLuCv4.js → XClose-Dx0AXUXI.js} +1 -1
- package/dist/client/assets/{Zap-aGdCRLSw.js → Zap-4RqKRkIt.js} +1 -1
- package/dist/client/assets/{ZapSquare-CcnnG0hZ.js → ZapSquare-DwvO8_dy.js} +1 -1
- package/dist/client/assets/{ZoomOut-DACFNvoK.js → ZoomOut-DOrxzrey.js} +1 -1
- package/dist/client/assets/{access-gate-B8s7j6eR.js → access-gate-B0YfyrVs.js} +1 -1
- package/dist/client/assets/{add-section-modal-0N_fhTxh.js → add-section-modal-yE-g_Rbt.js} +1 -1
- package/dist/client/assets/{agent-icon-BSrsLXl6.js → agent-icon-afAC6z4J.js} +1 -1
- package/dist/client/assets/{agents-list-Bn0KmsRu.js → agents-list-Dy4iriT5.js} +1 -1
- package/dist/client/assets/{ai-providers-DwzPTAPE.js → ai-providers-Svo-GSk6.js} +1 -1
- package/dist/client/assets/{alert-DvExEgwL.js → alert-Df4ciYpv.js} +1 -1
- package/dist/client/assets/{alert-dialog-DOL15TKA.js → alert-dialog-D7mmN905.js} +1 -1
- package/dist/client/assets/{app-editor-Et6QXD44.js → app-editor-BHW_yTkk.js} +1 -1
- package/dist/client/assets/{auth-DqnmXS22.js → auth-6mjtogDD.js} +1 -1
- package/dist/client/assets/{auth-catchall-t_E0SnZh.js → auth-catchall-BVH8qe2A.js} +1 -1
- package/dist/client/assets/{auth-entry-Dvph3KEp.js → auth-entry-cN_gKPD-.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DcD7BcNU.js → auth-split-layout-CSeYQA_P.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-hpFWr1Di.js → authenticate-and-persist-oauth-D3YLauI_.js} +1 -1
- package/dist/client/assets/{automation-list-row-CtanYAxX.js → automation-list-row-DFO7Zn3g.js} +1 -1
- package/dist/client/assets/{automation-runs-BP5jwZwN.js → automation-runs-C-4J8Smh.js} +1 -1
- package/dist/client/assets/{automations-6oPCsTf-.js → automations-DvKWId9d.js} +1 -1
- package/dist/client/assets/{avatar-CtLv43YA.js → avatar-CEUufj2m.js} +1 -1
- package/dist/client/assets/{badge-DH4mQWT5.js → badge-Co6PKgCN.js} +1 -1
- package/dist/client/assets/{block-document-BOP2jS2b.js → block-document-WxhOGhF1.js} +1 -1
- package/dist/client/assets/{brand-context-f0EyZI8U.js → brand-context-lhBq0NJ4.js} +1 -1
- package/dist/client/assets/{buckets-BA7yD3KI.js → buckets-gORySmnZ.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BLSDOy91.js → bulk-category-panel-Cu4aDT3V.js} +1 -1
- package/dist/client/assets/{capability-load-error-Dh6R_XP7.js → capability-load-error-BuOhbJ6x.js} +1 -1
- package/dist/client/assets/{card-BDI1wP4A.js → card-Bcp7gHhY.js} +1 -1
- package/dist/client/assets/{category-editor-zN994ujp.js → category-editor-Cncrw32V.js} +1 -1
- package/dist/client/assets/{chat-context-DxttoHRm.js → chat-context-C8qBqtGY.js} +1 -1
- package/dist/client/assets/{checkbox-DcR6QGwg.js → checkbox-Dzzyalvj.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DFV6os74.js → cli-auth-success-BiVD5efG.js} +1 -1
- package/dist/client/assets/collection-detail-DxlyHQHf.js +1 -0
- package/dist/client/assets/{collection-display-button-D4BFwYfx.js → collection-display-button-Be9Kz9yu.js} +1 -1
- package/dist/client/assets/{collection-search-CxeqORsL.js → collection-search-Bvl99jQI.js} +1 -1
- package/dist/client/assets/{collection-tabs-DRDrRsou.js → collection-tabs-Cwt_BWWJ.js} +1 -1
- package/dist/client/assets/{command-BTszBDx2.js → command-B9u27sSQ.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-BjngBK_4.js → commerce-onboarding-C-9XmN7Y.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-Cnxu0aRU.js → connect-desktop-dialog-G3nGbPd3.js} +1 -1
- package/dist/client/assets/{connection-card-B9i_lQW-.js → connection-card-ckr4FdhN.js} +1 -1
- package/dist/client/assets/{connection-detail-CBUjDu8d.js → connection-detail-DkHF0mP5.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-3Yjl_wx7.js → connection-form-helpers-BUs5iazG.js} +1 -1
- package/dist/client/assets/{connections-COX5GyaL.js → connections-C1ANuNEo.js} +1 -1
- package/dist/client/assets/{context-menu-DF8r1Qif.js → context-menu-rSuX9q_2.js} +1 -1
- package/dist/client/assets/{decopilot-CzEzmWB-.js → decopilot-BRGiKw3e.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-NjmqRXjB.js → decopilot-sse-pool-DEg0CIx_.js} +1 -1
- package/dist/client/assets/{dialog-ByONEu5t.js → dialog-zXYAzM-R.js} +1 -1
- package/dist/client/assets/{domain-settings-i7PBVURC.js → domain-settings-1_krA3w4.js} +1 -1
- package/dist/client/assets/{drawer-CQ9AL1gk.js → drawer-3SoE8Cz4.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DXW07_pX.js → dropdown-menu-BPap2tge.js} +1 -1
- package/dist/client/assets/{empty-state-CwoG6MJG.js → empty-state-Qbqn5mvQ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-2vbbo8BE.js → extract-connection-data-Dk4BBuuZ.js} +1 -1
- package/dist/client/assets/{file-explorer-Dj-L1J-5.js → file-explorer-B5VChLwL.js} +1 -1
- package/dist/client/assets/{file-type-icon-COGQ4pI3.js → file-type-icon-DxyGgTnF.js} +1 -1
- package/dist/client/assets/{files-CiQohyFS.js → files-Dn_bquTn.js} +1 -1
- package/dist/client/assets/{form-CHABcBxu.js → form-BBul_k-B.js} +1 -1
- package/dist/client/assets/{general-BAzb8ZbU.js → general-BkEAi4FK.js} +1 -1
- package/dist/client/assets/{github-repo-picker-Cxt1dXs8.js → github-repo-picker-DrbAqdfM.js} +1 -1
- package/dist/client/assets/{hooks-D-BD-as_.js → hooks-BaHEtTum.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-iBtogFov.js → import-from-deco-dialog-Cmxbtffl.js} +1 -1
- package/dist/client/assets/{index-BFmT8-KG.js → index-7woXwOAI.js} +1 -1
- package/dist/client/assets/{index-Alprks7r.js → index-BLmpmmST.js} +1 -1
- package/dist/client/assets/{index-CA6YD8q2.js → index-BQLTnDXS.js} +1 -1
- package/dist/client/assets/{index-fzmOhDZn.js → index-BRnuKP3S.js} +1 -1
- package/dist/client/assets/index-C5dl5wKt.js +1 -0
- package/dist/client/assets/{index-B9RX5RO3.js → index-CDBjM9qh.js} +4 -4
- package/dist/client/assets/{index-BUkHQpou.js → index-COTL90eg.js} +1 -1
- package/dist/client/assets/{index-BW0FKetN.js → index-CSBhTA1L.js} +1 -1
- package/dist/client/assets/{index-B3rBUS7c.js → index-Cbzkact4.js} +1 -1
- package/dist/client/assets/{index-opU065_X.js → index-CoW8lnmF.js} +1 -1
- package/dist/client/assets/{index-BYVuPSam.js → index-D1w2vCPa.js} +1 -1
- package/dist/client/assets/{index-cm1dPfbm.js → index-D4VMqhYm.js} +1 -1
- package/dist/client/assets/{index-BKU1Com-.js → index-Ddn4LkFK.js} +2 -2
- package/dist/client/assets/{index-D0ePdC1P.js → index-DyaVVzre.js} +5 -5
- package/dist/client/assets/{index-redirect-CTzzP76e.js → index-redirect-C5iDsyLo.js} +1 -1
- package/dist/client/assets/{input-3oIOHrz2.js → input-CnLDd6Qi.js} +1 -1
- package/dist/client/assets/{integration-icon-Dswj1ocS.js → integration-icon-GPSm_Bms.js} +1 -1
- package/dist/client/assets/{label-BQWNN582.js → label-Dl7P-EK0.js} +1 -1
- package/dist/client/assets/{login-BROmsRJd.js → login-DUAFXjrA.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Bmzv67BA.js → mcp-oauth-CBUYnmiI.js} +1 -1
- package/dist/client/assets/{members-D4Vt-Od8.js → members-NSv3C169.js} +1 -1
- package/dist/client/assets/{monaco-editor-Ct07z3Zk.js → monaco-editor-K4Eccmj5.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BgUsDH0q.js → monitoring-stats-row-CKUMbMjn.js} +1 -1
- package/dist/client/assets/{oauth-callback-DIRqEbWz.js → oauth-callback-DWc07tdh.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Bgma9SJC.js → oauth-callback-ai-provider-DinEezz9.js} +1 -1
- package/dist/client/assets/{onboarding-Zhi7I4An.js → onboarding-DJnc4ZGV.js} +1 -1
- package/dist/client/assets/{org-install-sLqyXYyE.js → org-install-BTdZTdN2.js} +1 -1
- package/dist/client/assets/{org-layout-0fxHbDNz.js → org-layout-C1efodGI.js} +1 -1
- package/dist/client/assets/{organization-choice-DbavJtuc.js → organization-choice-B7IiZ2R1.js} +1 -1
- package/dist/client/assets/{page-seo-form-fEqxqxSx.js → page-seo-form-D1HyC7p4.js} +1 -1
- package/dist/client/assets/page-seo-sheet-sm4S-6vS.js +1 -0
- package/dist/client/assets/{popover-OJW-B2ij.js → popover-BczK0DmI.js} +1 -1
- package/dist/client/assets/{post-editor-BvCxxn5E.js → post-editor-DDyqmPtz.js} +1 -1
- package/dist/client/assets/{primitives-IVgrX9ac.js → primitives-BMQe3Mji.js} +1 -1
- package/dist/client/assets/{profile-Bin9Yymq.js → profile-XsVRWTWP.js} +1 -1
- package/dist/client/assets/project-app-view-C6nbZXbd.js +1 -0
- package/dist/client/assets/record-editor-Bif9hujF.js +1 -0
- package/dist/client/assets/registry-E4g65r_X.js +2 -0
- package/dist/client/assets/{registry-layout-Cbb7CHwY.js → registry-layout-D49Ke65j.js} +1 -1
- package/dist/client/assets/{require-capability-BYNnfxbd.js → require-capability-CgDtSgs4.js} +1 -1
- package/dist/client/assets/{required-auth-layout--fo-PixH.js → required-auth-layout-Ds7k4A1L.js} +1 -1
- package/dist/client/assets/{reset-password-BinZUd5z.js → reset-password-BT99POr1.js} +1 -1
- package/dist/client/assets/{roles-0bLUMZ3g.js → roles-CnrDRNfT.js} +1 -1
- package/dist/client/assets/{scroll-area-BfODbP7V.js → scroll-area-iUNn_Io5.js} +1 -1
- package/dist/client/assets/{search-input-TpD1o0pv.js → search-input-C8coqhTV.js} +1 -1
- package/dist/client/assets/{secrets-ljkSlL-a.js → secrets-C0038Bux.js} +1 -1
- package/dist/client/assets/{sections-editor-DS7oda2k.js → sections-editor-B70OEi2a.js} +1 -1
- package/dist/client/assets/{select-Dz95Nu3h.js → select-BCnEr1WW.js} +1 -1
- package/dist/client/assets/{select-model-Bk_zgWKH.js → select-model-B0OeuZUe.js} +1 -1
- package/dist/client/assets/{seo-editor-Cv8fePQg.js → seo-editor-DGDmW1qF.js} +1 -1
- package/dist/client/assets/{settings-layout-BmbiPXi-.js → settings-layout-C-7YTZku.js} +1 -1
- package/dist/client/assets/{settings-section-Coon-D3Y.js → settings-section-CqxcMruP.js} +1 -1
- package/dist/client/assets/{sheet-BuK9Bi12.js → sheet-oVOYY30p.js} +1 -1
- package/dist/client/assets/{shell-controls-DdVz34-W.js → shell-controls-BEZWIkFs.js} +1 -1
- package/dist/client/assets/shell-layout-2iMu8jVw.js +1 -0
- package/dist/client/assets/{shell-route-loading-BCE5SUu5.js → shell-route-loading-Aug9wL0m.js} +1 -1
- package/dist/client/assets/{sidebar-DHEI55XX.js → sidebar-kZbsj9sW.js} +1 -1
- package/dist/client/assets/{skeleton-DDN7yK4d.js → skeleton-B8lnULPF.js} +1 -1
- package/dist/client/assets/{sortable.esm-B7xo8zyR.js → sortable.esm-BLZ84YQ2.js} +1 -1
- package/dist/client/assets/{sso-BZ7Uk-iv.js → sso-DXxyYC2R.js} +1 -1
- package/dist/client/assets/{store-D_hWlPyK.js → store-BafW5TFy.js} +1 -1
- package/dist/client/assets/store-registry-DAR2dD2a.js +2 -0
- package/dist/client/assets/{studio-tools-8V5L8yWN.js → studio-tools-DK7ncDtS.js} +1 -1
- package/dist/client/assets/{switch-fhmtJkwE.js → switch-CzF8zfDX.js} +1 -1
- package/dist/client/assets/{table-BtYXTiXL.js → table-e4OHH2jf.js} +1 -1
- package/dist/client/assets/{tabs-CVwZOECO.js → tabs-BkX9cwpk.js} +1 -1
- package/dist/client/assets/{task-status-icN8yzWC.js → task-status-DrqDGGQc.js} +1 -1
- package/dist/client/assets/{textarea-B3_vJOFF.js → textarea-BB10Etrb.js} +1 -1
- package/dist/client/assets/{toggle-group-1YrSgTCF.js → toggle-group-CFOm21wV.js} +1 -1
- package/dist/client/assets/{toolbar-B0jymZ3i.js → toolbar-BJjyj8c3.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CUQWen_I.js → toolbar-icon-button-DK6xUFwq.js} +1 -1
- package/dist/client/assets/{tools-list-CoSGR4hR.js → tools-list-DuuA2IM0.js} +1 -1
- package/dist/client/assets/{tooltip-D0gAQvdt.js → tooltip-CJDi5RQ8.js} +1 -1
- package/dist/client/assets/{types-MoywLYj-.js → types-C3jn7NkP.js} +1 -1
- package/dist/client/assets/{use-ai-providers-FahUxzCr.js → use-ai-providers-BzZVwp4u.js} +1 -1
- package/dist/client/assets/{use-automations-CNP0SjEI.js → use-automations-BnD16Puz.js} +1 -1
- package/dist/client/assets/{use-capability-Cjt_QiXc.js → use-capability-suQAlfbZ.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DG6k_nvs.js → use-clock-tick-0261NcXO.js} +1 -1
- package/dist/client/assets/{use-collections-D1SluUGz.js → use-collections-D7ZtnpvE.js} +1 -1
- package/dist/client/assets/{use-connection-CVmz3KP_.js → use-connection-DSONE_QD.js} +1 -1
- package/dist/client/assets/{use-copy-Ci8sC5l3.js → use-copy-xYzOqk0c.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-D-rQsORo.js → use-create-virtual-mcp-sHJHsshP.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D8zjcZFf.js → use-debounced-autosave-qpGJ0X60.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BRubIPy_.js → use-debounced-value-D2UupkKu.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-C59wqgQn.js → use-decopilot-events-BUhuwt5a.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B1g4BmhJ.js → use-delete-connection-Cb9ArGw4.js} +1 -1
- package/dist/client/assets/{use-file-configs-B8MCpqeg.js → use-file-configs-oKpo-E-2.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CrPZGb0h.js → use-infinite-scroll-CDZ8kmXA.js} +1 -1
- package/dist/client/assets/{use-join-requests-Cl0flc19.js → use-join-requests-CNCtlbXU.js} +1 -1
- package/dist/client/assets/{use-mcp-client-kafpdK1S.js → use-mcp-client-DO26jdss.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DU7dxO-n.js → use-mcp-prompts-CdgZ6tkY.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B6GJ1IzJ.js → use-mcp-tools-BqYSqq_j.js} +1 -1
- package/dist/client/assets/{use-members-zsH8f_KJ.js → use-members-CiB6CR58.js} +1 -1
- package/dist/client/assets/{use-mobile-BRnq0gXl.js → use-mobile-DmNADK1W.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BUEH3Z70.js → use-navigate-to-agent-SAE4xRC5.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CsfZuvXx.js → use-org-auth-client-KGrqaYM8.js} +1 -1
- package/dist/client/assets/{use-org-fs-B9PmAEV7.js → use-org-fs-C9APrPgp.js} +1 -1
- package/dist/client/assets/{use-org-sso-CBiodNLP.js → use-org-sso-zThs68Zd.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CkxBLYUg.js → use-organization-roles-tlF92sIL.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CGyaOz7B.js → use-organization-settings-DGP30VBJ.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BANRRqD5.js → use-registry-connections-Bdm-eNfJ.js} +1 -1
- package/dist/client/assets/{use-secrets-BDlRoy6i.js → use-secrets-izJyjxf2.js} +1 -1
- package/dist/client/assets/{use-status-sounds-QjuHpeVO.js → use-status-sounds-ZxhZH8z9.js} +1 -1
- package/dist/client/assets/{use-view-mode-Cq7hmxGi.js → use-view-mode-CL3s_cQQ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DEeq13OQ.js → use-virtual-mcp-DTVFZqfo.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DdlcOBbO.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-COZEMpJp.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-DFHuqJwi.js → useSuspenseQueries-B9hXEvs1.js} +1 -1
- package/dist/client/assets/variant-calendar-BDBwlIt1.js +1 -0
- package/dist/client/assets/{view-mode-toggle-CHmUT7yW.js → view-mode-toggle-BBBYsP16.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +287 -287
- package/dist/server/server.js +244 -244
- package/package.json +1 -1
- package/dist/client/assets/collection-detail-XE0RScr7.js +0 -1
- package/dist/client/assets/index-CtoNEwxk.js +0 -1
- package/dist/client/assets/page-seo-sheet-DysrFKz8.js +0 -1
- package/dist/client/assets/project-app-view-GRSfZLdI.js +0 -1
- package/dist/client/assets/record-editor-B42We8s_.js +0 -1
- package/dist/client/assets/registry-c3ytEKKb.js +0 -2
- package/dist/client/assets/shell-layout-CeOKGkX7.js +0 -1
- package/dist/client/assets/store-registry-BohWsluv.js +0 -2
- package/dist/client/assets/useInfiniteQuery-oBkg_UFf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-IhLc5whf.js +0 -1
- package/dist/client/assets/variant-calendar-C4YmzVS-.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as y,j as t,B as F,i as X,o as Ge,s as se,E as Pe,r as T,D as ie,p as Qe,l as V,bf as Ye,u as Xe,G,t as Ze,e as ae,b1 as ke}from"./index-B9RX5RO3.js";import{E as Ee}from"./empty-state-CwoG6MJG.js";import{u as et,a as Ae}from"./use-collections-D1SluUGz.js";import{u as ce}from"./use-mcp-client-kafpdK1S.js";import{F as ne,a as tt,b as de,d as me}from"./form-CHABcBxu.js";import{I as ue}from"./input-3oIOHrz2.js";import{T as re}from"./textarea-B3_vJOFF.js";import{a as st,b as nt,V as xe,O as ot,M as lt}from"./index-opU065_X.js";import{an as rt,z as it,ac as at,ao as ct,a0 as dt,ap as mt,L as be}from"./agent-icon-BSrsLXl6.js";import{g as ut,M as xt,a as Ne}from"./types-MoywLYj-.js";import{A as pt,a as ft,b as ht}from"./alert-DvExEgwL.js";import{S as ve,a as Se,b as ye,c as we,d as oe}from"./select-Dz95Nu3h.js";import{c as gt,T as Ce,a as Ie,b as $e}from"./tooltip-D0gAQvdt.js";import{i as jt}from"./AlertCircle-Cc3pQQnr.js";import{s as bt}from"./Stars02-z35UXQWd.js";import{a as Nt}from"./Eye-B_K6Njxp.js";import{i as vt}from"./Play-C8X7SGaF.js";import{i as St}from"./ChevronRight-gIRWWm9p.js";import{g as yt}from"./connection-slug-eyAPH6o3.js";import{u as wt,T as Ct}from"./tools-list-CoSGR4hR.js";import{a as Oe,u as Re}from"./use-connection-CVmz3KP_.js";import{a as It}from"./use-mcp-tools-B6GJ1IzJ.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Te}from"./integration-icon-Dswj1ocS.js";import{i as Tt,l as Pt}from"./chat-context-DxttoHRm.js";import{b as kt}from"./shell-layout-CeOKGkX7.js";import{M as Et}from"./monaco-editor-Ct07z3Zk.js";import{n as At}from"./XCircle-ZaGMWVGi.js";import"./auth-DqnmXS22.js";import"./label-BQWNN582.js";import"./index-B3rBUS7c.js";import"./sidebar-DHEI55XX.js";import"./LayoutLeft-ga9aJQRS.js";import"./use-mobile-BRnq0gXl.js";import"./sheet-BuK9Bi12.js";import"./X-DfXvpZmg.js";import"./ZoomOut-DACFNvoK.js";import"./Key01-aBzwAa0Q.js";import"./extract-connection-data-2vbbo8BE.js";import"./use-registry-connections-BANRRqD5.js";import"./use-organization-settings-CGyaOz7B.js";import"./studio-tools-8V5L8yWN.js";import"./Plus--DaCpp2L.js";import"./index-cm1dPfbm.js";import"./index-BYVuPSam.js";import"./index-BUkHQpou.js";import"./popover-OJW-B2ij.js";import"./use-virtual-mcp-DEeq13OQ.js";import"./ChevronUp-B5eCnRac.js";import"./SearchMd-DkOkqB1x.js";import"./Users03-lcnaqD4R.js";import"./use-create-virtual-mcp-D-rQsORo.js";import"./use-navigate-to-agent-BUEH3Z70.js";import"./Tool01-DiHOVm-e.js";import"./SwitchHorizontal01-CSOC8pJg.js";import"./Settings02-BOk4ED6n.js";import"./ArrowUpRight-CPi47lLx.js";import"./ZapSquare-CcnnG0hZ.js";import"./CheckCircle-IYpSOIKz.js";import"./ChevronDown-Dqjr8XHu.js";import"./DotsVertical-B9u1OZLA.js";import"./Globe01-DcfQu85z.js";import"./FilterLines-CdtZHbuq.js";import"./Star01-CUuABlwW.js";import"./Globe04-C-dtu6kX.js";import"./HardDrive-4F7iUUm_.js";import"./LinkExternal01-BGyqK5yf.js";import"./Monitor01-CEchjYQg.js";import"./Sun-D50GIoiM.js";import"./Palette-CSUU_Q3O.js";import"./SearchLg-D03A_NF_.js";import"./Shield01-BFegC232.js";import"./Stars01-B93nLs7X.js";import"./Trash01-Bl6o13BP.js";import"./Upload01-CUV61CF_.js";import"./User01-B1Xfry12.js";import"./Users01-B84B4zGO.js";import"./XClose-D9sLuCv4.js";import"./Zap-aGdCRLSw.js";import"./mcp-oauth-Bmzv67BA.js";import"./badge-DH4mQWT5.js";import"./hooks-D-BD-as_.js";import"./decopilot-sse-pool-NjmqRXjB.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-FahUxzCr.js";import"./use-decopilot-events-C59wqgQn.js";import"./tab-id-AX1D_RMI.js";import"./avatar-CtLv43YA.js";import"./dialog-ByONEu5t.js";import"./required-auth-layout--fo-PixH.js";import"./use-org-sso-CBiodNLP.js";import"./index-Alprks7r.js";function Ot(s){const e=y.c(15),{onSave:o,onUndo:n,isDirty:l,isSaving:r,saveLabel:a,undoLabel:c}=s,i=a===void 0?"Save":a,u=c===void 0?"Undo":c;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(rt,{size:14}),e[0]=x):x=e[0];let m;e[1]!==r||e[2]!==n||e[3]!==u?(m=t.jsxs(F,{variant:"outline",size:"sm",onClick:n,disabled:r,"aria-label":u,children:[x,u]}),e[1]=r,e[2]=n,e[3]=u,e[4]=m):m=e[4];let p;e[5]!==r?(p=r?t.jsx(X,{size:14,className:"animate-spin"}):t.jsx(it,{size:14}),e[5]=r,e[6]=p):p=e[6];let f;e[7]!==r||e[8]!==o||e[9]!==i||e[10]!==p?(f=t.jsxs(F,{variant:"default",size:"sm",onClick:o,disabled:r,"aria-label":i,children:[p,i]}),e[7]=r,e[8]=o,e[9]=i,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:se().min(1),description:se().nullable(),body:se()});function le(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Rt(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(n=>n==="mcps"),o=e>=0?s[e+1]:void 0;return o?decodeURIComponent(o):void 0}function _t(s){const e=y.c(13),{form:o}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=n):n=e[0];let l;e[1]!==o.control?(l=t.jsxs("div",{className:"flex flex-col gap-4",children:[n,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(ne,{control:o.control,name:"title",render:Mt}),t.jsx(ne,{control:o.control,name:"description",render:zt})]})]}),e[1]=o.control,e[2]=l):l=e[2];let r,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),a=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=r,e[4]=a):(r=e[3],a=e[4]);let c;e[5]!==o.control?(c=t.jsxs("div",{className:"flex flex-col gap-2",children:[r,a,t.jsx(ne,{control:o.control,name:"body",render:Dt})]}),e[5]=o.control,e[6]=c):c=e[6];let i;e[7]!==l||e[8]!==c?(i=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,c]}),e[7]=l,e[8]=c,e[9]=i):i=e[9];let u;return e[10]!==o||e[11]!==i?(u=t.jsx(tt,{...o,children:i}),e[10]=o,e[11]=i,e[12]=u):u=e[12],u}function Dt(s){const{field:e}=s;return t.jsx(de,{children:t.jsx(me,{children:t.jsx(re,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function zt(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(me,{children:t.jsx(ue,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Mt(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(me,{children:t.jsx(ue,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Lt(s){const e=y.c(36),{providerId:o,promptId:n}=s,{org:l}=ie(),r=o||null;let a;e[0]!==l.id||e[1]!==l.slug||e[2]!==r?(a={connectionId:r,orgId:l.id,orgSlug:l.slug},e[0]=l.id,e[1]=l.slug,e[2]=r,e[3]=a):a=e[3];const c=ce(a),i=et(o,"PROMPT",n,c),u=Ae(o,"PROMPT",c),x=u.update.isPending;let m;e[4]!==i?(m=i?{title:i.title,description:i.description??null,body:le(i)}:void 0,e[4]=i,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]!==i?(g=()=>{i&&f.reset({title:i.title,description:i.description??null,body:le(i)})},e[8]=f,e[9]=i,e[10]=g):g=e[10];const S=g;let I;e[11]!==u.update||e[12]!==f||e[13]!==n?(I=f.handleSubmit(async N=>{const A=await u.update.mutateAsync({id:n,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:le(A)})}),e[11]=u.update,e[12]=f,e[13]=n,e[14]=I):I=e[14];const R=I;if(!i){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(Ee,{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 $;e[16]!==i.title?($=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),e[16]=i.title,e[17]=$):$=e[17];let E;e[18]!==i.description?(E=i.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:i.description})]}):null,e[18]=i.description,e[19]=E):E=e[19];let P;e[20]!==$||e[21]!==E?(P=t.jsx(nt,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[$,E]})}),e[20]=$,e[21]=E,e[22]=P):P=e[22];let b;e[23]!==R?(b=()=>{R()},e[23]=R,e[24]=b):b=e[24];let w;e[25]!==f.formState.isDirty||e[26]!==x||e[27]!==S||e[28]!==b?(w=t.jsx(st,{children:t.jsx(Ot,{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]=w):w=e[29];let C;e[30]!==f?(C=t.jsx("div",{className:"h-full",children:t.jsx(_t,{form:f})}),e[30]=f,e[31]=C):C=e[31];let k;return e[32]!==w||e[33]!==C||e[34]!==P?(k=t.jsxs(xe,{children:[P,w,C]}),e[32]=w,e[33]=C,e[34]=P,e[35]=k):k=e[35],k}function Ut(s){const e=y.c(4),{itemId:o}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Rt(),e[0]=n):n=e[0];const l=n;if(!l){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=a):a=e[1],a}let r;return e[2]!==o?(r=t.jsx(Pe,{children:t.jsx(T.Suspense,{fallback:null,children:t.jsx(Lt,{providerId:l,promptId:o})})}),e[2]=o,e[3]=r):r=e[3],r}function _e(s){const e=y.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let l;e[3]!==o?(l=V("min-w-0 overflow-hidden",o),e[3]=o,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function De(s){const e=y.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let l;e[3]!==o?(l=V("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",o),e[3]=o,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=t.jsx("ol",{"data-slot":"breadcrumb-list",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function q(s){const e=y.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let l;e[3]!==o?(l=V("inline-flex items-center gap-1.5 min-w-0",o),e[3]=o,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=t.jsx("li",{"data-slot":"breadcrumb-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function Q(s){const e=y.c(10);let o,n,l;e[0]!==s?({asChild:o,className:n,...l}=s,e[0]=s,e[1]=o,e[2]=n,e[3]=l):(o=e[1],n=e[2],l=e[3]);const r=o?Ye:"a";let a;e[4]!==n?(a=V("hover:text-foreground transition-colors truncate",n),e[4]=n,e[5]=a):a=e[5];let c;return e[6]!==r||e[7]!==l||e[8]!==a?(c=t.jsx(r,{"data-slot":"breadcrumb-link",className:a,...l}),e[6]=r,e[7]=l,e[8]=a,e[9]=c):c=e[9],c}function ze(s){const e=y.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let l;e[3]!==o?(l=V("text-foreground font-medium truncate",o),e[3]=o,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function Y(s){const e=y.c(12);let o,n,l;e[0]!==s?({children:o,className:n,...l}=s,e[0]=s,e[1]=o,e[2]=n,e[3]=l):(o=e[1],n=e[2],l=e[3]);let r;e[4]!==n?(r=V("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",n),e[4]=n,e[5]=r):r=e[5];let a;e[6]!==o?(a=o??t.jsx(St,{}),e[6]=o,e[7]=a):a=e[7];let c;return e[8]!==l||e[9]!==r||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:r,...l,children:a}),e[8]=l,e[9]=r,e[10]=a,e[11]=c):c=e[11],c}const Bt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ft(s){const e=y.c(11),{toolName:o,connectionId:n,siblings:l,onSelectInstance:r,onBack:a}=s;let c;e[0]!==n?(c={connectionId:n},e[0]=n,e[1]=c):c=e[1];const i=wt(c);if(!i.isAuthenticated){let m;return e[2]!==i.supportsOAuth||e[3]!==a?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:i.supportsOAuth?t.jsx(ot,{onAuthenticate:()=>a(),buttonText:"Go back to authenticate"}):t.jsx(lt,{hasReadme:!1})}),e[2]=i.supportsOAuth,e[3]=a,e[4]=m):m=e[4],m}const u=`${n}:${o}`;let x;return e[5]!==n||e[6]!==r||e[7]!==l||e[8]!==u||e[9]!==o?(x=t.jsx(Vt,{toolName:o,connectionId:n,siblings:l,onSelectInstance:r},u),e[5]=n,e[6]=r,e[7]=l,e[8]=u,e[9]=o,e[10]=x):x=e[10],x}function Vt({toolName:s,connectionId:e,siblings:o,onSelectInstance:n}){const{replayId:l}=Xe({strict:!1}),r=(()=>{if(!l)return null;const d=`replay-${l}`,h=sessionStorage.getItem(d);if(!h)return null;sessionStorage.removeItem(d);try{return JSON.parse(h)}catch{return null}})(),a=(()=>{if(!r)return null;const d={};for(const[h,v]of Object.entries(r))v!==null&&typeof v=="object"?d[h]=JSON.stringify(v,null,2):d[h]=v;return d})(),[c,i]=T.useState(a??{}),[u,x]=T.useState(r?JSON.stringify(r,null,2):"{}"),[m,p]=T.useState(null),[f,g]=T.useState(null),[S,I]=T.useState(null),[R,$]=T.useState(null),[E,P]=T.useState(!1),[b,w]=T.useState(null),{org:C}=ie(),k=Oe(e),N=Tt(),A=Pt(),{setChatOpen:U}=kt(),M=`${e}:${s}`,_=ce({connectionId:e,orgId:C.id,orgSlug:C.slug}),L=It({client:_}),j=L.data?.tools?.find(d=>d.name===s),O=ut(j?._meta),J=d=>{if(!N)return;const h=$t(d.content);h.content.length>0&&(U(!0),N.sendMessage({tiptapDoc:h}))},[D,Z]=T.useState("json"),[Me,Le]=T.useState(!1);O&&!Me&&(Z("ui"),Le(!0));const pe=j?.inputSchema?.properties,fe=pe?Object.keys(pe):[],H=fe.length>0,K={};if(H&&j?.inputSchema?.properties)for(const d of fe)K[d]=j.inputSchema.required?.includes(d)?"":void 0;const ee=d=>Object.prototype.hasOwnProperty.call(c,d),Ue=async()=>{P(!0),$(null),p(null),g(null),I(null),w(null);const d=performance.now();try{if(!_)throw new Error("MCP client is not available");const h=H?{...K,...c}:(()=>{const z=u.trim();if(!z)return{};const B=JSON.parse(z);if(B&&typeof B=="object")return B;throw new Error("Raw JSON input must be an object.")})();H&&j?.inputSchema?.properties&&Object.entries(j.inputSchema.properties).forEach(([z,B])=>{if((B.type==="object"||B.type==="array")&&typeof h[z]=="string")try{h[z]=JSON.parse(h[z])}catch{}else if((B.type==="number"||B.type==="integer")&&typeof h[z]=="string"&&h[z]!==""){const je=Number(h[z]);Number.isNaN(je)||(h[z]=je)}});const v=await _.callTool({name:s,arguments:h}),W=v.structuredContent??v,He=performance.now(),Ke=Math.round(He-d);p(W),g(v),I(h);const We=JSON.stringify(W),ge=new TextEncoder().encode(We).length;w({duration:`${Ke}ms`,bytes:`${ge} bytes`,tokens:`~${Math.ceil(ge/4)} tokens`,cost:"$0.0000"})}catch(h){const v=h instanceof Error?h.message:String(h);$(v||"Unknown error occurred");const W=performance.now();w({duration:`${Math.round(W-d)}ms`})}finally{P(!1)}},te=(d,h)=>{i(v=>({...v,[d]:h}))},Be=()=>{p(null),g(null),I(null),$(null),w(null)},Fe=j?.name??Bt(s),Ve=t.jsx(_e,{children:t.jsxs(De,{children:[t.jsx(q,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections",params:{org:C.slug},children:"Connections"})})}),t.jsx(Y,{}),k&&t.jsxs(t.Fragment,{children:[t.jsx(q,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections/$appSlug",params:{org:C.slug,appSlug:yt(k)},search:{tab:"tools"},children:k.title})})}),t.jsx(Y,{})]}),t.jsx(q,{children:t.jsx(ze,{children:Fe})})]})}),he=o.length>1&&t.jsxs(ve,{value:e,onValueChange:n,children:[t.jsx(Se,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ye,{})}),t.jsx(we,{children:o.map(d=>t.jsx(oe,{value:d.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Te,{icon:d.icon,name:d.title,size:"xs",className:"shrink-0"}),d.title]})},d.id))})]}),Je=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),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:H&&j?.inputSchema?.properties?Object.entries(j.inputSchema.properties).map(([d,h])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[d,j.inputSchema?.required?.includes(d)&&t.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children: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(re,{className:"font-mono text-xs",value:ee(d)?c[d]??"":K[d]??"",onChange:v=>te(d,v.target.value),placeholder:`Enter ${d} as JSON...`,rows:3}):h.type==="boolean"?t.jsxs(ve,{value:ee(d)?String(c[d]??""):"",onValueChange:v=>te(d,v==="true"),children:[t.jsx(Se,{children:t.jsx(ye,{placeholder:"Select true or false..."})}),t.jsxs(we,{children:[t.jsx(oe,{value:"true",children:"true"}),t.jsx(oe,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:ee(d)?c[d]??"":K[d]??"",onChange:v=>te(d,v.target.value),placeholder:`Enter ${d}...`})]},d)):j?.inputSchema&&!H?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(re,{className:"font-mono text-xs min-h-[120px]",value:u,onChange:d=>x(d.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:E?t.jsxs(F,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Be,children:[t.jsx(at,{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(vt,{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(bt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ct,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(dt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),O&&t.jsx(gt,{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:()=>Z("ui"),children:t.jsx(mt,{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:()=>Z("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(pt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(jt,{className:"h-4 w-4"}),t.jsx(ft,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(ht,{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:O&&D==="ui"&&_?t.jsx(T.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(xt,{resourceURI:O,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:d=>A?.setAppContext(M,d),onTeardown:()=>A?.clearAppContext(M),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Et,{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)),Ze.success("Copied to clipboard")},children:t.jsx(Nt,{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(xe,{breadcrumb:Ve,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Te,{icon:k?.icon||null,name:k?.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(X,{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(Ct,{annotations:j?.annotations,_meta:j?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:he})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:j?.description||"No description available"})]}),o.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:"Instance"}),he]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Je}),qe]})})]})})}function Jt(s){const e=y.c(10),{itemId:o,siblings:n,onBack:l}=s,[r,a]=T.useState(n[0]?.id??"");let c;e[0]!==r||e[1]!==n?(c=n.find(p=>p.id===r)?.id??n[0]?.id??"",e[0]=r,e[1]=n,e[2]=c):c=e[2];const i=c;if(!Oe(i||void 0)||!i){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(X,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=x):x=e[4];let m;return e[5]!==i||e[6]!==l||e[7]!==n||e[8]!==o?(m=t.jsx(T.Suspense,{fallback:x,children:t.jsx(Ft,{toolName:o,connectionId:i,siblings:n,onSelectInstance:a,onBack:l})}),e[5]=i,e[6]=l,e[7]=n,e[8]=o,e[9]=m):m=e[9],m}function qt(s){const e=y.c(21),{icon:o,illustration:n,title:l,description:r,buttonProps:a,buttonComponent:c,className:i,children:u}=s;let x;e[0]!==i?(x=V("flex flex-col items-center justify-center py-16 text-center",i),e[0]=i,e[1]=x):x=e[1];let m;e[2]!==o||e[3]!==n?(m=n?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:n}):o?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:o}):null,e[2]=o,e[3]=n,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]!==r?(f=r&&t.jsx("div",{className:"text-sm text-muted-foreground",children:r}),e[7]=r,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]!==c||e[13]!==a?(S=(c??a)&&t.jsx("div",{className:"mt-4",children:c??(a&&t.jsx(F,{size:"sm",className:V(a?.className),...a}))}),e[12]=c,e[13]=a,e[14]=S):S=e[14];let I;return e[15]!==u||e[16]!==x||e[17]!==m||e[18]!==g||e[19]!==S?(I=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]=I):I=e[20],I}const Ht={prompt:Ut};function Kt(){const s=y.c(9),e=ke();let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=o):o=s[0];const n=ae(o),l=decodeURIComponent(n.itemId);let r;s[1]!==n.appSlug?(r={slug:n.appSlug},s[1]=n.appSlug,s[2]=r):r=s[2];const a=Re(r);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const i=c,u=Wt;let x;return s[5]!==i||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:i,onUpdate:u}),s[5]=i,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Wt(s){return Promise.resolve()}function Gt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Qt(){const s=y.c(41),e=ke();let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=o):o=s[0];const n=ae(o),l=decodeURIComponent(n.collectionName),r=decodeURIComponent(n.itemId);let a;s[1]!==e.history?(a=()=>{e.history.back()},s[1]=e.history,s[2]=a):a=s[2];const c=a,{org:i}=ie();let u;s[3]!==n.appSlug?(u={slug:n.appSlug},s[3]=n.appSlug,s[4]=u):u=s[4];const m=Re(u)[0]??null,p=m?.id??"",f=p||"no-connection",g=p??null;let S;s[5]!==i.id||s[6]!==i.slug||s[7]!==g?(S={connectionId:g,orgId:i.id,orgSlug:i.slug},s[5]=i.id,s[6]=i.slug,s[7]=g,s[8]=S):S=s[8];const I=ce(S),R=Ae(f,l,I);let $;s[9]!==R||s[10]!==r?($=async D=>{r&&await R.update.mutateAsync({id:r,data:D})},s[9]=R,s[10]=r,s[11]=$):$=s[11];const E=$;let P;s[12]!==l?(P=l?.toLowerCase(),s[12]=l,s[13]=P):P=s[13];const b=P,w=b&&Ht[b];let C;s[14]!==l?(C=Gt(l),s[14]=l,s[15]=C):C=s[15];const k=C;let N;s[16]!==i.slug?(N=t.jsx(q,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections",params:{org:i.slug},children:"Connections"})})}),s[16]=i.slug,s[17]=N):N=s[17];let A;s[18]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(Y,{}),s[18]=A):A=s[18];let U;s[19]!==l||s[20]!==m||s[21]!==i.slug||s[22]!==n.appSlug?(U=m&&t.jsxs(t.Fragment,{children:[t.jsx(q,{children:t.jsx(Q,{asChild:!0,children:t.jsx(G,{to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:n.appSlug},search:{tab:l},children:m.title})})}),t.jsx(Y,{})]}),s[19]=l,s[20]=m,s[21]=i.slug,s[22]=n.appSlug,s[23]=U):U=s[23];let M;s[24]!==k?(M=t.jsx(q,{children:t.jsx(ze,{children:k})}),s[24]=k,s[25]=M):M=s[25];let _;s[26]!==U||s[27]!==M||s[28]!==N?(_=t.jsx(_e,{children:t.jsxs(De,{children:[N,A,U,M]})}),s[26]=U,s[27]=M,s[28]=N,s[29]=_):_=s[29];const L=_;if(w){let D;return s[30]!==w||s[31]!==c||s[32]!==E||s[33]!==r?(D=t.jsx(w,{itemId:r,onBack:c,onUpdate:E}),s[30]=w,s[31]=c,s[32]=E,s[33]=r,s[34]=D):D=s[34],D}let j;s[35]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(At,{size:36,className:"text-muted-foreground"}),s[35]=j):j=s[35];let O;s[36]!==c?(O=t.jsx(qt,{icon:j,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:c,children:"Go back"}}),s[36]=c,s[37]=O):O=s[37];let J;return s[38]!==L||s[39]!==O?(J=t.jsx(xe,{breadcrumb:L,children:O}),s[38]=L,s[39]=O,s[40]=J):J=s[40],J}function Yt(){const s=y.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 o=ae(e);if(decodeURIComponent(o.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Kt,{}),s[1]=a):a=s[1],a}let r;return s[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Qt,{}),s[2]=r):r=s[2],r}function Mn(){const s=y.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Pe,{children:t.jsx(T.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(X,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Yt,{})})}),s[0]=e):e=s[0],e}export{Mn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as k,j as n,r as $,D as J,m as xe,l as Q,i as le,an as Z,t as U,K as te,k as se,B as Y,d as st,a6 as nt,E as it,a as ot}from"./index-B9RX5RO3.js";import{u as ge}from"./use-mobile-BRnq0gXl.js";import{u as rt}from"./useSuspenseQueries-DFHuqJwi.js";import{i as lt,u as ae,m as at,a as ct,S as dt}from"./use-mcp-client-kafpdK1S.js";import{u as mt,b as ut,v as ft,a as pt}from"./use-virtual-mcp-DEeq13OQ.js";import{i as ht}from"./ChevronUp-B5eCnRac.js";import{i as xt,A as ce,t as gt,ae as yt,F as bt,j as jt}from"./agent-icon-BSrsLXl6.js";import{s as ye}from"./Plus--DaCpp2L.js";import{i as $e}from"./X-DfXvpZmg.js";import{C as oe}from"./index-BFmT8-KG.js";import{b as vt}from"./chat-context-DxttoHRm.js";import{N as Nt}from"./decopilot-CzEzmWB-.js";import{g as wt,a as Ae,b as re,K as Pe,P as Ee,D as Me,c as St,S as _t,v as Ct,d as It,C as Tt,s as kt,l as $t,k as At,o as Pt,u as Et,j as Mt,h as zt}from"./sortable.esm-B7xo8zyR.js";import{u as ze,a as Oe,o as Ot}from"./use-organization-settings-CGyaOz7B.js";import{c as be,b as Lt,h as Dt}from"./shell-layout-CeOKGkX7.js";import{I as Le}from"./input-3oIOHrz2.js";import{S as Ht,t as je,P as Rt,j as Ft,s as Ut,g as Bt}from"./scroll-area-BfODbP7V.js";import{S as Vt,a as Kt,b as Wt,c as qt,d as Gt}from"./sheet-BuK9Bi12.js";import{S as H}from"./skeleton-DDN7yK4d.js";import{t as De}from"./ChevronDown-Dqjr8XHu.js";import{b as He}from"./ZoomOut-DACFNvoK.js";import{g as Re,M as Qt}from"./types-MoywLYj-.js";import{I as Fe}from"./integration-icon-Dswj1ocS.js";import{a as Jt,b as Xt,c as Zt,d as we,S as Yt}from"./select-Dz95Nu3h.js";import{T as es}from"./textarea-B3_vJOFF.js";import{u as Ue}from"./studio-tools-8V5L8yWN.js";import{a as ts}from"./use-mcp-tools-B6GJ1IzJ.js";import{i as ss}from"./XCircle-ZaGMWVGi.js";import{f as ns}from"./tab-id-AX1D_RMI.js";import{g as is}from"./use-mcp-prompts-DU7dxO-n.js";import{u as os,w as rs}from"./hooks-D-BD-as_.js";import{a as ls,g as as,c as cs,b as ds,D as ms}from"./dropdown-menu-DXW07_pX.js";import{s as us}from"./Trash01-Bl6o13BP.js";import{a as fs,u as ps}from"./use-ai-providers-FahUxzCr.js";import{u as hs}from"./connect-desktop-dialog-Cnxu0aRU.js";import{T as xs}from"./toolbar-B0jymZ3i.js";import"./auth-DqnmXS22.js";import"./use-collections-D1SluUGz.js";import"./AlertCircle-Cc3pQQnr.js";import"./Tool01-DiHOVm-e.js";import"./SwitchHorizontal01-CSOC8pJg.js";import"./Settings02-BOk4ED6n.js";import"./ArrowUpRight-CPi47lLx.js";import"./ZapSquare-CcnnG0hZ.js";import"./Users03-lcnaqD4R.js";import"./CheckCircle-IYpSOIKz.js";import"./ChevronRight-gIRWWm9p.js";import"./DotsVertical-B9u1OZLA.js";import"./Stars02-z35UXQWd.js";import"./Eye-B_K6Njxp.js";import"./Globe01-DcfQu85z.js";import"./FilterLines-CdtZHbuq.js";import"./Star01-CUuABlwW.js";import"./Globe04-C-dtu6kX.js";import"./HardDrive-4F7iUUm_.js";import"./Key01-aBzwAa0Q.js";import"./LayoutLeft-ga9aJQRS.js";import"./LinkExternal01-BGyqK5yf.js";import"./Monitor01-CEchjYQg.js";import"./Sun-D50GIoiM.js";import"./Palette-CSUU_Q3O.js";import"./Play-C8X7SGaF.js";import"./SearchLg-D03A_NF_.js";import"./SearchMd-DkOkqB1x.js";import"./Shield01-BFegC232.js";import"./Stars01-B93nLs7X.js";import"./Upload01-CUV61CF_.js";import"./User01-B1Xfry12.js";import"./Users01-B84B4zGO.js";import"./XClose-D9sLuCv4.js";import"./Zap-aGdCRLSw.js";import"./tooltip-D0gAQvdt.js";import"./dialog-ByONEu5t.js";import"./drawer-CQ9AL1gk.js";import"./collection-search-CxeqORsL.js";import"./form-CHABcBxu.js";import"./label-BQWNN582.js";import"./tabs-CVwZOECO.js";import"./toggle-group-1YrSgTCF.js";import"./popover-OJW-B2ij.js";import"./command-BTszBDx2.js";import"./index-BUkHQpou.js";import"./useInfiniteQuery-oBkg_UFf.js";import"./use-infinite-scroll-CrPZGb0h.js";import"./use-org-fs-B9PmAEV7.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-C59wqgQn.js";import"./decopilot-sse-pool-NjmqRXjB.js";import"./backoff-CrEUbyZT.js";import"./checkbox-DcR6QGwg.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-CtLv43YA.js";import"./settings-section-Coon-D3Y.js";import"./card-BDI1wP4A.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-B9i_lQW-.js";import"./use-registry-connections-BANRRqD5.js";import"./use-connection-CVmz3KP_.js";import"./extract-connection-data-2vbbo8BE.js";import"./collection-tabs-DRDrRsou.js";import"./badge-DH4mQWT5.js";import"./connection-form-helpers-3Yjl_wx7.js";import"./authenticate-and-persist-oauth-hpFWr1Di.js";import"./mcp-oauth-Bmzv67BA.js";import"./useSuspenseInfiniteQuery-IhLc5whf.js";import"./required-auth-layout--fo-PixH.js";import"./use-org-sso-CBiodNLP.js";import"./use-clock-tick-DG6k_nvs.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Ci8sC5l3.js";import"./file-type-icon-COGQ4pI3.js";import"./content-blocks-o63cs2vh.js";import"./use-navigate-to-agent-BUEH3Z70.js";import"./delay-CnY5UFtP.js";function Be(t){const e=k.c(11),{properties:s,required:o,values:i,onChange:r}=t;let a;e[0]!==o?(a=o??[],e[0]=o,e[1]=a):a=e[1];let d;e[2]!==a?(d=new Set(a),e[2]=a,e[3]=d):d=e[3];const l=d;let m;e[4]!==s?(m=Object.entries(s),e[4]=s,e[5]=m):m=e[5];let c;return e[6]!==r||e[7]!==l||e[8]!==m||e[9]!==i?(c=n.jsx("div",{className:"flex flex-col gap-2",children:m.map(u=>{const[f,p]=u;return n.jsxs("div",{className:"flex flex-col gap-0.5",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("label",{className:"text-xs font-medium leading-none flex items-center gap-1",children:[f,l.has(f)&&n.jsx("span",{className:"text-red-500 text-[10px]",children:"*"})]}),n.jsx("span",{className:"text-[10px] text-muted-foreground font-mono",children:p.type})]}),p.description&&n.jsx("p",{className:"text-[10px] text-muted-foreground leading-snug",children:p.description}),n.jsx(gs,{type:p.type,fieldKey:f,value:i[f],onChange:h=>r(f,h)})]},f)})}),e[6]=r,e[7]=l,e[8]=m,e[9]=i,e[10]=c):c=e[10],c}function gs(t){const e=k.c(19),{type:s,fieldKey:o,value:i,onChange:r}=t;if(s==="object"||s==="array"){const c=i??"";let u;e[0]!==r?(u=h=>r(h.target.value),e[0]=r,e[1]=u):u=e[1];const f=`Enter ${o} as JSON…`;let p;return e[2]!==c||e[3]!==u||e[4]!==f?(p=n.jsx(es,{className:"font-mono text-xs h-16",value:c,onChange:u,placeholder:f,rows:2}),e[2]=c,e[3]=u,e[4]=f,e[5]=p):p=e[5],p}if(s==="boolean"){const c=i!=null?String(i):"";let u;e[6]!==r?(u=x=>r(x==="true"),e[6]=r,e[7]=u):u=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(Jt,{className:"h-7 text-xs",children:n.jsx(Xt,{placeholder:"Select…"})}),e[8]=f):f=e[8];let p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsxs(Zt,{children:[n.jsx(we,{value:"true",children:"true"}),n.jsx(we,{value:"false",children:"false"})]}),e[9]=p):p=e[9];let h;return e[10]!==c||e[11]!==u?(h=n.jsxs(Yt,{value:c,onValueChange:u,children:[f,p]}),e[10]=c,e[11]=u,e[12]=h):h=e[12],h}const a=i??"";let d;e[13]!==r?(d=c=>r(c.target.value),e[13]=r,e[14]=d):d=e[14];const l=`Enter ${o}…`;let m;return e[15]!==a||e[16]!==d||e[17]!==l?(m=n.jsx(Le,{className:"h-7 text-xs",value:a,onChange:d,placeholder:l}),e[15]=a,e[16]=d,e[17]=l,e[18]=m):m=e[18],m}const ne=8;function ys(t){const e=k.c(16),{open:s,onOpenChange:o}=t,[i,r]=$.useState("");let a,d;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Vt,{children:"Manage home"}),d=n.jsx(Kt,{children:"Add agents to the home board and pin their interactive UIs or prompts."}),e[0]=a,e[1]=d):(a=e[0],d=e[1]);let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(xt,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none","aria-hidden":!0}),e[2]=l):l=e[2];let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=x=>r(x.target.value),e[3]=m):m=e[3];let c;e[4]!==i?(c=n.jsxs(Wt,{className:"px-5 py-4 border-b border-border",children:[a,d,n.jsxs("div",{className:"relative mt-3",children:[l,n.jsx(Le,{value:i,onChange:m,placeholder:"Search agents…",className:"pl-8 h-8 text-sm"})]})]}),e[4]=i,e[5]=c):c=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(Gs,{}),e[6]=u):u=e[6];let f;e[7]!==i?(f=n.jsx(Ht,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:n.jsx("div",{className:"p-3 flex flex-col gap-4",children:n.jsx($.Suspense,{fallback:u,children:n.jsx(js,{search:i})})})}),e[7]=i,e[8]=f):f=e[8];let p;e[9]!==c||e[10]!==f?(p=n.jsxs(qt,{side:"right",className:"w-full sm:max-w-md p-0 flex flex-col",children:[c,f]}),e[9]=c,e[10]=f,e[11]=p):p=e[11];let h;return e[12]!==o||e[13]!==s||e[14]!==p?(h=n.jsx(Gt,{open:s,onOpenChange:o,children:p}),e[12]=o,e[13]=s,e[14]=p,e[15]=h):h=e[15],h}function bs(t){const e=k.c(32),{org:s}=J(),o=ze();let i;e[0]!==o?.ids?(i=o?.ids??[],e[0]=o?.ids,e[1]=i):i=e[1];const r=i,a=Oe(),d=ut(),l=xe();let m;e[2]!==s||e[3]!==l?(m=()=>l.refetchQueries({queryKey:te.homeNextActions(s.slug),type:"active"}),e[2]=s,e[3]=l,e[4]=m):m=e[4];const c=m;let u;e[5]!==r?(u=_=>r.includes(_),e[5]=r,e[6]=u):u=e[6];const f=u;let p;e[7]!==r||e[8]!==t?(p=t?r.filter(_=>t.has(_)).length:r.length,e[7]=r,e[8]=t,e[9]=p):p=e[9];const x=p>=ne;let y;e[10]!==x||e[11]!==f||e[12]!==a?(y=_=>f(_)||x?Promise.resolve():a.apply(I=>I.includes(_)?null:[...I,_]),e[10]=x,e[11]=f,e[12]=a,e[13]=y):y=e[13];const b=y;let v;e[14]!==a?(v=_=>a.apply(I=>I.filter(T=>T!==_)),e[14]=a,e[15]=v):v=e[15];const N=v;let j;e[16]!==a?(j=_=>a.apply(()=>_),e[16]=a,e[17]=j):j=e[17];const g=j;let w;e[18]!==d||e[19]!==x||e[20]!==f||e[21]!==c||e[22]!==a?(w=async(_,I)=>{await d.update.mutateAsync({id:_.id,data:{metadata:I}}),!f(_.id)&&!x&&await a.apply(T=>T.includes(_.id)?null:[...T,_.id]),await c()},e[18]=d,e[19]=x,e[20]=f,e[21]=c,e[22]=a,e[23]=w):w=e[23];const S=w;let C;return e[24]!==b||e[25]!==x||e[26]!==r||e[27]!==f||e[28]!==N||e[29]!==g||e[30]!==S?(C={homeIds:r,isOnHome:f,atLimit:x,addAgent:b,removeAgent:N,reorder:g,saveAgentMetadata:S},e[24]=b,e[25]=x,e[26]=r,e[27]=f,e[28]=N,e[29]=g,e[30]=S,e[31]=C):C=e[31],C}function js(t){const e=k.c(21),{search:s}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={pageSize:1e3},e[0]=o):o=e[0];const i=mt(o);let r;e[1]!==i?(r=new Set(i.map(_s)),e[1]=i,e[2]=r):r=e[2];const a=bs(r);let d,l,m;if(e[3]!==i||e[4]!==a||e[5]!==s){const x=new Map(i.map(Ss));d=s.trim().toLowerCase();const y=N=>!d||N.title?.toLowerCase().includes(d);l=a.homeIds.map(N=>x.get(N)).filter(ws).filter(y);const b=wt(i);let v;e[9]!==a?(v=N=>!a.isOnHome(N.id),e[9]=a,e[10]=v):v=e[10],m=i.filter(Ns).filter(N=>!b.has(N.id)).filter(v).filter(y).sort(vs),e[3]=i,e[4]=a,e[5]=s,e[6]=d,e[7]=l,e[8]=m}else d=e[6],l=e[7],m=e[8];const c=m;let u;e[11]!==a||e[12]!==l?(u=n.jsx(Cs,{home:a,agents:l}),e[11]=a,e[12]=l,e[13]=u):u=e[13];const f=!!d;let p;e[14]!==c||e[15]!==a||e[16]!==f?(p=n.jsx(ks,{home:a,agents:c,hasSearch:f}),e[14]=c,e[15]=a,e[16]=f,e[17]=p):p=e[17];let h;return e[18]!==u||e[19]!==p?(h=n.jsxs(n.Fragment,{children:[u,p]}),e[18]=u,e[19]=p,e[20]=h):h=e[20],h}function vs(t,e){return(t.title??"").localeCompare(e.title??"")}function Ns(t){return t.id&&!lt(t.id)}function ws(t){return!!t}function Ss(t){return[t.id,t]}function _s(t){return t.id}function Ve(t){const e=k.c(7),{title:s,hint:o}=t;let i;e[0]!==s?(i=n.jsx("span",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:s}),e[0]=s,e[1]=i):i=e[1];let r;e[2]!==o?(r=o&&n.jsx("span",{className:"text-xs text-muted-foreground",children:o}),e[2]=o,e[3]=r):r=e[3];let a;return e[4]!==i||e[5]!==r?(a=n.jsxs("div",{className:"flex items-center justify-between px-1",children:[i,r]}),e[4]=i,e[5]=r,e[6]=a):a=e[6],a}function Cs(t){const e=k.c(14),{home:s,agents:o}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={activationConstraint:{distance:5}},e[0]=i):i=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={coordinateGetter:kt},e[1]=r):r=e[1];const a=Ae(re(Ee,i),re(Pe,r));let d;e[2]!==s?(d=p=>{const{active:h,over:x}=p;if(!x||h.id===x.id)return;const y=s.homeIds,b=y.indexOf(h.id),v=y.indexOf(x.id);b===-1||v===-1||s.reorder($t([...y],b,v)).catch(Ts)},e[2]=s,e[3]=d):d=e[3];const l=d,m=`${s.homeIds.length}/${ne}`;let c;e[4]!==m?(c=n.jsx(Ve,{title:"On home",hint:m}),e[4]=m,e[5]=c):c=e[5];let u;e[6]!==o||e[7]!==l||e[8]!==s||e[9]!==a?(u=o.length===0?n.jsx("p",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:"No agents on the home yet."}):n.jsx(Me,{sensors:a,collisionDetection:St,onDragEnd:l,children:n.jsx(_t,{items:o.map(Is),strategy:Ct,children:n.jsx("div",{className:"flex flex-col gap-1",children:o.map(p=>n.jsx(As,{agent:p,home:s},p.id))})})}),e[6]=o,e[7]=l,e[8]=s,e[9]=a,e[10]=u):u=e[10];let f;return e[11]!==c||e[12]!==u?(f=n.jsxs("div",{className:"flex flex-col gap-1.5",children:[c,u]}),e[11]=c,e[12]=u,e[13]=f):f=e[13],f}function Is(t){return t.id}function Ts(){return U.error("Couldn't reorder home — please try again.")}function ks(t){const e=k.c(6),{home:s,agents:o,hasSearch:i}=t,[r,a]=$.useState(20);let d;if(e[0]!==o||e[1]!==i||e[2]!==s||e[3]!==r){const l=o.slice(0,r);let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx(Ve,{title:"Add to home"}),e[5]=m):m=e[5],d=n.jsxs("div",{className:"flex flex-col gap-1.5",children:[m,o.length===0?n.jsx("p",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:i?"No agents match.":"Every agent is on the home."}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"flex flex-col gap-1",children:l.map(c=>n.jsx(Ms,{agent:c,home:s},c.id))}),o.length>r&&n.jsxs("button",{type:"button",onClick:()=>a($s),className:"mt-1 self-center rounded-md px-3 py-1.5 text-xs text-muted-foreground hover:bg-accent/40 hover:text-foreground",children:["Load more (",o.length-r,")"]})]})]}),e[0]=o,e[1]=i,e[2]=s,e[3]=r,e[4]=d}else d=e[4];return d}function $s(t){return t+20}function Ke(t){const e=Z(t.metadata?.ui).filter(r=>!!r.resourceUri).length,s=t.metadata?.ui?.homePrompts,o=Array.isArray(s)?s.length:null,i=[];return e>0&&i.push(`${e} tile${e===1?"":"s"}`),o!==null&&o>0&&i.push(`${o} prompt${o===1?"":"s"}`),o===0&&i.push("prompts off"),i.join(" · ")}function As(t){const e=k.c(57),{agent:s,home:o}=t,[i,r]=$.useState(!1);let a;e[0]!==s.id?(a={id:s.id},e[0]=s.id,e[1]=a):a=e[1];const{attributes:d,listeners:l,setNodeRef:m,transform:c,transition:u,isDragging:f}=It(a),p=Ke(s)||"Quick access";let h;e[2]!==c?(h=Tt.Transform.toString(c),e[2]=c,e[3]=h):h=e[3];const x=f?.5:void 0,y=f?100:void 0;let b;e[4]!==h||e[5]!==x||e[6]!==y||e[7]!==u?(b={transform:h,transition:u,opacity:x,zIndex:y},e[4]=h,e[5]=x,e[6]=y,e[7]=u,e[8]=b):b=e[8];const v=b,N=f&&"shadow-lg";let j;e[9]!==N?(j=Q("rounded-lg border border-border bg-card",N),e[9]=N,e[10]=j):j=e[10];const g=`Drag to reorder ${s.title??s.id}`;let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w=n.jsx(He,{size:14}),e[11]=w):w=e[11];let S;e[12]!==d||e[13]!==l||e[14]!==g?(S=n.jsx("button",{type:"button",...d,...l,className:"shrink-0 text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing outline-none focus-visible:ring-2 focus-visible:ring-ring rounded","aria-label":g,children:w}),e[12]=d,e[13]=l,e[14]=g,e[15]=S):S=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=()=>r(Es),e[16]=C):C=e[16];const _=s.title??s.id;let I;e[17]!==s.icon||e[18]!==_?(I=n.jsx(ce,{icon:s.icon,name:_,size:"sm"}),e[17]=s.icon,e[18]=_,e[19]=I):I=e[19];const T=s.title??s.id;let P;e[20]!==T?(P=n.jsx("div",{className:"truncate text-sm font-medium text-foreground",children:T}),e[20]=T,e[21]=P):P=e[21];let M;e[22]!==p?(M=n.jsx("div",{className:"truncate text-xs text-muted-foreground",children:p}),e[22]=p,e[23]=M):M=e[23];let z;e[24]!==P||e[25]!==M?(z=n.jsxs("div",{className:"min-w-0 flex-1",children:[P,M]}),e[24]=P,e[25]=M,e[26]=z):z=e[26];const B=i&&"rotate-180";let O;e[27]!==B?(O=Q("shrink-0 text-muted-foreground transition-transform",B),e[27]=B,e[28]=O):O=e[28];let L;e[29]!==O?(L=n.jsx(De,{size:16,className:O}),e[29]=O,e[30]=L):L=e[30];let K;e[31]!==i||e[32]!==I||e[33]!==z||e[34]!==L?(K=n.jsxs("button",{type:"button",onClick:C,className:"flex min-w-0 flex-1 items-center gap-2.5 text-left outline-none","aria-expanded":i,children:[I,z,L]}),e[31]=i,e[32]=I,e[33]=z,e[34]=L,e[35]=K):K=e[35];let A;e[36]!==s.id||e[37]!==o?(A=()=>o.removeAgent(s.id).catch(Ps),e[36]=s.id,e[37]=o,e[38]=A):A=e[38];const V=`Remove ${s.title??s.id} from home`;let D;e[39]===Symbol.for("react.memo_cache_sentinel")?(D=n.jsx($e,{size:14}),e[39]=D):D=e[39];let E;e[40]!==A||e[41]!==V?(E=n.jsx("button",{type:"button",onClick:A,"aria-label":V,title:"Remove from home",className:"shrink-0 inline-flex size-7 items-center justify-center rounded-md text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:D}),e[40]=A,e[41]=V,e[42]=E):E=e[42];let R;e[43]!==S||e[44]!==K||e[45]!==E?(R=n.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-2.5",children:[S,K,E]}),e[43]=S,e[44]=K,e[45]=E,e[46]=R):R=e[46];let F;e[47]!==s||e[48]!==i||e[49]!==o?(F=i&&n.jsx(We,{agent:s,home:o}),e[47]=s,e[48]=i,e[49]=o,e[50]=F):F=e[50];let q;return e[51]!==m||e[52]!==v||e[53]!==R||e[54]!==F||e[55]!==j?(q=n.jsxs("div",{ref:m,style:v,className:j,children:[R,F]}),e[51]=m,e[52]=v,e[53]=R,e[54]=F,e[55]=j,e[56]=q):q=e[56],q}function Ps(){return U.error("Couldn't remove from home — please try again.")}function Es(t){return!t}function Ms({agent:t,home:e}){const[s,o]=$.useState(!1),[i,r]=$.useState(!1),a=Ke(t),d=async()=>{if(!e.atLimit){r(!0);try{await e.addAgent(t.id)}catch{U.error("Couldn't add to home — please try again.")}finally{r(!1)}}};return n.jsxs("div",{className:"rounded-lg border border-border bg-card",children:[n.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5",children:[n.jsxs("button",{type:"button",onClick:()=>o(l=>!l),className:"flex min-w-0 flex-1 items-center gap-3 text-left outline-none","aria-expanded":s,children:[n.jsx(ce,{icon:t.icon,name:t.title??t.id,size:"sm"}),n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("div",{className:"truncate text-sm font-medium text-foreground",children:t.title??t.id}),a&&n.jsx("div",{className:"truncate text-xs text-muted-foreground",children:a})]}),n.jsx(De,{size:16,className:Q("shrink-0 text-muted-foreground transition-transform",s&&"rotate-180")})]}),n.jsx("button",{type:"button",onClick:d,disabled:i||e.atLimit,"aria-label":"Add to home",title:e.atLimit?`Home is full (${ne}) — remove an agent first`:"Add to home",className:"shrink-0 inline-flex size-7 items-center justify-center rounded-md bg-foreground text-background text-xs hover:opacity-90 disabled:opacity-40 disabled:cursor-not-allowed",children:i?n.jsx(le,{size:12,className:"animate-spin"}):n.jsx(ye,{size:14})})]}),s&&n.jsx(We,{agent:t,home:e})]})}function We(t){const e=k.c(17),{agent:s,home:o}=t,i=s.metadata?.ui;let r;e[0]!==i?(r=Z(i),e[0]=i,e[1]=r):r=e[1];const a=r;let d;e[2]!==s.connections?(d=(s.connections??[]).map(zs).sort(),e[2]=s.connections,e[3]=d):d=e[3];const l=d,m=s.metadata?.ui?.homePrompts;let c;e[4]!==s||e[5]!==l||e[6]!==o||e[7]!==a?(c=n.jsx(Ls,{agent:s,home:o,connectionIds:l,pinnedTiles:a}),e[4]=s,e[5]=l,e[6]=o,e[7]=a,e[8]=c):c=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(Os,{}),e[9]=u):u=e[9];const f=m??null;let p;e[10]!==s||e[11]!==o||e[12]!==f?(p=n.jsx($.Suspense,{fallback:u,children:n.jsx(Us,{agent:s,home:o,curated:f})}),e[10]=s,e[11]=o,e[12]=f,e[13]=p):p=e[13];let h;return e[14]!==c||e[15]!==p?(h=n.jsxs("div",{className:"border-t border-border px-3 py-2 flex flex-col gap-3",children:[c,p]}),e[14]=c,e[15]=p,e[16]=h):h=e[16],h}function zs(t){return t.connection_id}function Os(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsxs("div",{className:"flex flex-col gap-2 py-1",children:[n.jsx(H,{className:"h-8 w-full"}),n.jsx(H,{className:"h-8 w-2/3"})]}),t[0]=e):e=t[0],e}function Ls({agent:t,home:e,connectionIds:s,pinnedTiles:o}){const i=Ue(),{data:r,isLoading:a}=se({queryKey:te.projectConnectionDetails(t.id,s),enabled:s.length>0,queryFn:async()=>(await Promise.all(s.map(async u=>{try{const{item:f}=await i.call("COLLECTION_CONNECTIONS_GET",{id:u}),p=(f?.tools??[]).flatMap(h=>{const x=Re(h._meta);return x?[{name:h.name,description:h.description,resourceUri:x,inputSchema:h.inputSchema}]:[]});return{id:u,title:f?.title??u,icon:f?.icon??null,uiTools:p}}catch{return{id:u,title:u,icon:null,uiTools:[]}}}))).filter(u=>u.uiTools.length>0)});if(s.length===0)return null;if(a)return n.jsxs("div",{className:"flex flex-col gap-1 py-0.5",children:[n.jsx(H,{className:"h-7 w-full"}),n.jsx(H,{className:"h-7 w-2/3"})]});if(!r||r.length===0)return null;const d=new Map;for(const c of r)for(const u of c.uiTools)d.set(`${c.id}:${u.name}`,{conn:c,tool:u});const l=c=>{if(c.toolName&&c.connectionId)return d.get(`${c.connectionId}:${c.toolName}`);for(const[,u]of d)if(u.conn.id===c.connectionId&&u.tool.resourceUri===c.resourceUri)return u},m=o.some(c=>!!l(c));return n.jsxs("div",{className:"flex flex-col gap-2",children:[m&&n.jsxs("div",{className:"flex flex-col gap-0.5",children:[n.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wide text-muted-foreground px-2",children:"Pinned tiles"}),o.map(c=>{const u=l(c);return u?n.jsx(Rs,{agent:t,home:e,connection:u.conn,tool:u.tool,tile:c},c.tileId??`${c.connectionId}:${c.resourceUri}:${c.toolName}`):null})]}),n.jsxs("div",{className:"flex flex-col gap-0.5",children:[n.jsx("span",{className:"text-[10px] font-medium uppercase tracking-wide text-muted-foreground px-2",children:"Add tile"}),r.map(c=>c.uiTools.map(u=>n.jsx(Fs,{agent:t,home:e,connection:c,tool:u},`add:${c.id}:${u.name}`)))]})]})}function qe(t,e){const s={};for(const[o,i]of Object.entries(t)){const r=e[o]?.type;if((r==="object"||r==="array")&&typeof i=="string"){if(!i.trim())continue;try{s[o]=JSON.parse(i)}catch{return null}}else if((r==="number"||r==="integer")&&typeof i=="string"){if(!i.trim())continue;s[o]=Number(i)}else i!==""&&i!=null&&(s[o]=i)}return s}function Ds(t,e){if(!t||!e)return{};const s={};for(const[o,i]of Object.entries(t)){const r=e[o]?.type;(r==="object"||r==="array")&&i!=null&&typeof i!="string"?s[o]=JSON.stringify(i,null,2):s[o]=i}return s}function Hs(t){if(!t)return"";const e=Object.entries(t).filter(([,s])=>s!=null&&s!=="");return e.length===0?"":e.slice(0,3).map(([s,o])=>{const i=typeof o=="object"?JSON.stringify(o):String(o);return`${s}=${i.length>20?`${i.slice(0,20)}…`:i}`}).join(", ")}function Rs({agent:t,home:e,connection:s,tool:o,tile:i}){const[r,a]=$.useState(!1),[d,l]=$.useState(!1),m=o.inputSchema?.properties&&Object.keys(o.inputSchema.properties).length>0,[c,u]=$.useState(()=>Ds(i.toolInput,o.inputSchema?.properties)),f=async()=>{a(!0);try{const x=Z(t.metadata?.ui),y=i.tileId?x.filter(v=>v.tileId!==i.tileId):x.filter(v=>v!==i),b={...t.metadata??{},ui:{...t.metadata?.ui??{},homeTile:null,homeTiles:y}};await e.saveAgentMetadata(t,b),l(!1)}catch(x){console.error("[home-tiles] failed to remove tile",x),U.error("Couldn't update home — please try again.")}finally{a(!1)}},p=async()=>{a(!0);try{let x;if(m&&o.inputSchema?.properties){const N=qe(c,o.inputSchema.properties);if(!N){U.error("Invalid JSON in one of the fields — please fix it."),a(!1);return}Object.keys(N).length>0&&(x=N)}const b=Z(t.metadata?.ui).map(N=>(i.tileId?N.tileId===i.tileId:N===i)?{...N,toolInput:x}:N),v={...t.metadata??{},ui:{...t.metadata?.ui??{},homeTile:null,homeTiles:b}};await e.saveAgentMetadata(t,v),l(!1)}catch(x){console.error("[home-tiles] failed to save tile",x),U.error("Couldn't update home — please try again.")}finally{a(!1)}},h=Hs(i.toolInput);return n.jsxs("div",{className:"flex flex-col rounded-md bg-accent/20",children:[n.jsxs("div",{className:"flex items-center gap-2.5 px-2 py-1",children:[n.jsx(Fe,{icon:s.icon,name:s.title,size:"xs"}),n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("div",{className:"truncate text-sm text-foreground",children:je(o.name)}),h&&n.jsx("div",{className:"truncate text-[10px] text-muted-foreground font-mono",children:h})]}),m&&n.jsx("button",{type:"button",onClick:()=>l(x=>!x),"aria-label":"Configure tile props",title:"Configure tile props",className:"inline-flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-accent/60",children:n.jsx(gt,{size:14})}),n.jsx(ve,{isPinned:!0,submitting:r,onClick:f,label:"Remove from home"})]}),d&&m&&o.inputSchema?.properties&&n.jsxs("div",{className:"px-3 pb-2 pt-1 flex flex-col gap-2",children:[n.jsx(Be,{properties:o.inputSchema.properties,required:o.inputSchema.required,values:c,onChange:(x,y)=>u(b=>({...b,[x]:y}))}),n.jsxs("div",{className:"flex items-center gap-2 justify-end",children:[n.jsx(Y,{variant:"ghost",size:"sm",className:"h-7 text-xs",onClick:()=>l(!1),children:"Cancel"}),n.jsx(Y,{size:"sm",className:"h-7 text-xs",disabled:r,onClick:p,children:r?n.jsx(le,{size:12,className:"animate-spin"}):"Save"})]})]})]})}function Fs({agent:t,home:e,connection:s,tool:o}){const[i,r]=$.useState(!1),[a,d]=$.useState(!1),l=o.inputSchema?.properties&&Object.keys(o.inputSchema.properties).length>0,[m,c]=$.useState({}),u=async()=>{if(l&&!a){d(!0);return}if(!e.isOnHome(t.id)&&e.atLimit){U.error(`Home is full (${ne}) — remove an agent first`);return}await f()},f=async()=>{r(!0);try{let p;if(l&&o.inputSchema?.properties){const b=qe(m,o.inputSchema.properties);if(!b){U.error("Invalid JSON in one of the fields — please fix it."),r(!1);return}Object.keys(b).length>0&&(p=b)}const x=[...Z(t.metadata?.ui),{tileId:crypto.randomUUID(),connectionId:s.id,resourceUri:o.resourceUri,toolName:o.name,...p?{toolInput:p}:{}}],y={...t.metadata??{},ui:{...t.metadata?.ui??{},homeTile:null,homeTiles:x}};await e.saveAgentMetadata(t,y),d(!1),c({})}catch(p){console.error("[home-tiles] failed to add tile",p),U.error("Couldn't update home — please try again.")}finally{r(!1)}};return n.jsxs("div",{className:"flex flex-col rounded-md hover:bg-accent/40",children:[n.jsxs("div",{className:"flex items-center gap-2.5 px-2 py-1",children:[n.jsx(Fe,{icon:s.icon,name:s.title,size:"xs"}),n.jsx("div",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:je(o.name)}),n.jsx(ve,{isPinned:!1,submitting:i,onClick:u,label:"Add to home"})]}),a&&l&&o.inputSchema?.properties&&n.jsxs("div",{className:"px-3 pb-2 pt-1 flex flex-col gap-2",children:[n.jsx(Be,{properties:o.inputSchema.properties,required:o.inputSchema.required,values:m,onChange:(p,h)=>c(x=>({...x,[p]:h}))}),n.jsxs("div",{className:"flex items-center gap-2 justify-end",children:[n.jsx(Y,{variant:"ghost",size:"sm",className:"h-7 text-xs",onClick:()=>{d(!1),c({})},children:"Cancel"}),n.jsx(Y,{size:"sm",className:"h-7 text-xs",disabled:i,onClick:f,children:i?n.jsx(le,{size:12,className:"animate-spin"}):"Pin"})]})]})]})}function ve(t){const e=k.c(11),{isPinned:s,submitting:o,onClick:i,label:r}=t,a=s?"text-muted-foreground hover:bg-destructive/10 hover:text-destructive":"bg-foreground text-background hover:opacity-90";let d;e[0]!==a?(d=Q("inline-flex size-7 shrink-0 items-center justify-center rounded-md text-xs transition-colors disabled:opacity-50 disabled:cursor-progress",a),e[0]=a,e[1]=d):d=e[1];let l;e[2]!==s||e[3]!==o?(l=o?n.jsx(le,{size:12,className:"animate-spin"}):s?n.jsx(yt,{size:14}):n.jsx(ye,{size:14}),e[2]=s,e[3]=o,e[4]=l):l=e[4];let m;return e[5]!==r||e[6]!==i||e[7]!==o||e[8]!==d||e[9]!==l?(m=n.jsx("button",{type:"button",onClick:i,disabled:o,"aria-label":r,title:r,className:d,children:l}),e[5]=r,e[6]=i,e[7]=o,e[8]=d,e[9]=l,e[10]=m):m=e[10],m}function Us(t){const e=k.c(32),{agent:s,home:o,curated:i}=t,{org:r}=J();let a;e[0]!==s.id||e[1]!==r.id||e[2]!==r.slug?(a={connectionId:s.id,orgId:r.id,orgSlug:r.slug},e[0]=s.id,e[1]=r.id,e[2]=r.slug,e[3]=a):a=e[3];const d=ae(a);let l;e[4]!==s.id||e[5]!==r.id?(l=te.agentPrompts(r.id,s.id),e[4]=s.id,e[5]=r.id,e[6]=l):l=e[6];let m;e[7]!==d?(m=async()=>{const{prompts:g}=await d.listPrompts();return g.map(Ws)},e[7]=d,e[8]=m):m=e[8];let c;e[9]!==l||e[10]!==m?(c={queryKey:l,queryFn:m,staleTime:3e4,retry:!1},e[9]=l,e[10]=m,e[11]=c):c=e[11];const{data:u,isLoading:f,error:p}=se(c),h=be(r.slug);let x,y;if(e[12]!==s.id||e[13]!==u||e[14]!==h.prompts){let g;e[17]!==s.id?(g=S=>S.agentId===s.id&&S.promptName,e[17]=s.id,e[18]=g):g=e[18],x=h.prompts.filter(g).map(Ks);let w;e[19]!==u?(w=u??[],e[19]=u,e[20]=w):w=e[20],y=[...w];for(const S of x)y.some(C=>C.name===S.name)||y.push(S);e[12]=s.id,e[13]=u,e[14]=h.prompts,e[15]=x,e[16]=y}else x=e[15],y=e[16];if(f&&x.length===0){let g;return e[21]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsxs("div",{className:"flex flex-col gap-1",children:[n.jsx(H,{className:"h-7 w-full"}),n.jsx(H,{className:"h-7 w-2/3"})]}),e[21]=g):g=e[21],g}if(p&&x.length===0)return console.error("[home-tiles] listPrompts failed for agent",s.id,p),null;if(y.length===0)return null;let b;e[22]!==i||e[23]!==y?(b=i??y.map(Vs),e[22]=i,e[23]=y,e[24]=b):b=e[24];let v;e[25]!==b?(v=new Set(b),e[25]=b,e[26]=v):v=e[26];const N=v;let j;return e[27]!==s||e[28]!==o||e[29]!==y||e[30]!==N?(j=n.jsx("div",{className:"flex flex-col gap-0.5",children:y.map(g=>n.jsx(qs,{agent:s,home:o,prompt:g,allPromptNames:y.map(Bs),isPinned:N.has(g.name)},g.name))}),e[27]=s,e[28]=o,e[29]=y,e[30]=N,e[31]=j):j=e[31],j}function Bs(t){return t.name}function Vs(t){return t.name}function Ks(t){return{name:t.promptName,title:t.title,description:t.description}}function Ws(t){return{name:t.name,title:t.title,description:t.description}}function qs({agent:t,home:e,prompt:s,allPromptNames:o,isPinned:i}){const[r,a]=$.useState(!1),d=async()=>{if(!i&&!e.isOnHome(t.id)&&e.atLimit){U.error(`Home is full (${ne}) — remove an agent first`);return}a(!0);try{const l=t.metadata?.ui?.homePrompts;let m;Array.isArray(l)?m=i?l.filter(u=>u!==s.name):[...l,s.name]:m=i?o.filter(u=>u!==s.name):o;const c={...t.metadata??{},ui:{...t.metadata?.ui??{},homePrompts:m}};await e.saveAgentMetadata(t,c)}catch(l){console.error("[home-tiles] failed to toggle prompt",l),U.error("Couldn't update home — please try again.")}finally{a(!1)}};return n.jsxs("div",{className:"flex items-center gap-2.5 rounded-md px-2 py-1 hover:bg-accent/40",children:[n.jsx("div",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:s.title??je(s.name)}),n.jsx(ve,{isPinned:i,submitting:r,onClick:d,label:i?"Remove from home":"Add to home"})]})}function Gs(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"flex flex-col gap-2 p-2",children:Array.from({length:4},Qs)}),t[0]=e):e=t[0],e}function Qs(t,e){return n.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border p-2.5",children:[n.jsx(H,{className:"size-8 rounded-md"}),n.jsxs("div",{className:"flex-1 space-y-1.5",children:[n.jsx(H,{className:"h-3 w-1/2"}),n.jsx(H,{className:"h-2.5 w-1/3"})]})]},e)}const ee=1,Ge=`home-board.layout.v${ee}`;function Qe(t){return`home-board.layout.v${ee}.${t}`}const Je={version:ee,tiles:{},hidden:[]};function fe(t){return!t||t.version!==ee?Je:{version:ee,tiles:t.tiles??{},hidden:Array.isArray(t.hidden)?t.hidden:[]}}function Js(t){return Object.keys(t.tiles).length>0||t.hidden.length>0}function Xs(t){try{const e=localStorage.getItem(Qe(t));return e?fe(JSON.parse(e)):void 0}catch{return}}function Se(t,e){try{localStorage.setItem(Qe(t),JSON.stringify(e))}catch{}}async function _e(t,e){if(!(await fetch(`/api/${t}/kv/${Ge}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw new Error("Failed to save board layout")}function Zs(t){const e=k.c(24),s=xe();let o;e[0]!==t?(o=te.boardLayout(t),e[0]=t,e[1]=o):o=e[1];const i=o;let r;e[2]!==t?(r=Xs(t),e[2]=t,e[3]=r):r=e[3];const a=r;let d;e[4]!==a||e[5]!==t?(d=async()=>{const b=await fetch(`/api/${t}/kv/${Ge}`);if(b.status===404)return a&&Js(a)?(await _e(t,a),a):Je;if(!b.ok)throw new Error("Failed to load board layout");const v=await b.json(),N=fe(v.value);return Se(t,N),N},e[4]=a,e[5]=t,e[6]=d):d=e[6];let l;e[7]!==a||e[8]!==i||e[9]!==d?(l={queryKey:i,queryFn:d,initialData:a,staleTime:0,refetchOnWindowFocus:!1},e[7]=a,e[8]=i,e[9]=d,e[10]=l):l=e[10];const{data:m,isLoading:c}=se(l);let u;e[11]!==t?(u={mutationFn:b=>_e(t,b)},e[11]=t,e[12]=u):u=e[12];const f=st(u);let p;e[13]!==f||e[14]!==t||e[15]!==s||e[16]!==i?(p=b=>{Se(t,b),s.setQueryData(i,b),f.mutate(b)},e[13]=f,e[14]=t,e[15]=s,e[16]=i,e[17]=p):p=e[17];const h=p;let x;e[18]!==m?(x=fe(m),e[18]=m,e[19]=x):x=e[19];let y;return e[20]!==c||e[21]!==h||e[22]!==x?(y={layout:x,isLoading:c,save:h},e[20]=c,e[21]=h,e[22]=x,e[23]=y):y=e[23],y}const Xe=$.createContext(null);function Ys(t){const e=k.c(24),{children:s}=t,{org:o}=J(),i=Zs(o.slug),[r,a]=$.useState(!1),[d,l]=$.useState(null);let m;e[0]!==i.layout?(m=()=>{l(i.layout),a(!0)},e[0]=i.layout,e[1]=m):m=e[1];const c=m;let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{l(null),a(!1)},e[2]=u):u=e[2];const f=u;let p;e[3]!==d||e[4]!==i?(p=()=>{d&&i.save(d),l(null),a(!1)},e[3]=d,e[4]=i,e[5]=p):p=e[5];const h=p,x=r&&d!==null,y=x?d:i.layout;let b;e[6]!==d||e[7]!==x||e[8]!==i.layout?(b=x?JSON.stringify(d)!==JSON.stringify(i.layout):!1,e[6]=d,e[7]=x,e[8]=i.layout,e[9]=b):b=e[9];const v=b;let N;e[10]!==r||e[11]!==i?(N=S=>{r?l(S):i.save(S)},e[10]=r,e[11]=i,e[12]=N):N=e[12];const j=N;let g;e[13]!==j||e[14]!==c||e[15]!==v||e[16]!==r||e[17]!==y||e[18]!==h||e[19]!==i.isLoading?(g={isEditMode:r,enter:c,cancel:f,save:h,hasChanges:v,layout:y,isLayoutLoading:i.isLoading,commitLayout:j},e[13]=j,e[14]=c,e[15]=v,e[16]=r,e[17]=y,e[18]=h,e[19]=i.isLoading,e[20]=g):g=e[20];let w;return e[21]!==s||e[22]!==g?(w=n.jsx(Xe.Provider,{value:g,children:s}),e[21]=s,e[22]=g,e[23]=w):w=e[23],w}function Ze(){const t=$.useContext(Xe);if(!t)throw new Error("useHomeEdit must be used within a HomeEditProvider");return t}function en({agentId:t}){const{org:e,locator:s}=J(),o=ae({connectionId:t,orgId:e.id,orgSlug:e.slug}),{create:i}=os(),{setTaskId:r}=Lt(),[a,d]=$.useState(null),[l,m]=$.useState(!1),c=$.useRef(!1),u=async(y,b)=>{if(!o){U.error("MCP client not available");return}if(!c.current){c.current=!0,m(!0);try{const v=await is(o,y.name,b),N={type:"doc",content:[{type:"paragraph",content:[Ft({id:y.name,name:Ut(y.name,Bt(y._meta)),metadata:v.messages,char:"/",kind:"prompt",args:b}),{type:"text",text:" "}]}]},j=crypto.randomUUID();rs(sessionStorage,s,j,{tiptapDoc:N}),await i({id:j,virtual_mcp_id:t}),r(j,t,{autosend:!0})}catch(v){console.error("[start-thread-from-prompt] failed",v),U.error("Failed to start thread. Please try again.")}finally{c.current=!1,m(!1)}}},f=async y=>{if(!c.current){if(y.arguments&&y.arguments.length>0){d(y);return}await u(y)}},p=async y=>{if(!a)return;const b=a;d(null),await u(b,y)};return{start:f,startBlank:async y=>{if(!c.current){c.current=!0,m(!0);try{const b=crypto.randomUUID();await i({id:b,virtual_mcp_id:t}),r(b,t,y?.main?{main:y.main}:void 0)}catch(b){console.error("[start-thread-from-prompt] startBlank failed",b),U.error("Failed to start thread. Please try again.")}finally{c.current=!1,m(!1)}}},dialog:n.jsx(Rt,{prompt:a,setPrompt:y=>d(y),onSubmit:p}),dialogPrompt:a,starting:l}}const W=4,G=100,Ce=12,tn=5,sn={w:2,h:2};class pe extends $.Component{state={hasError:!1};static getDerivedStateFromError(e){return{hasError:!0,message:e instanceof Error?e.message:"Unknown error"}}componentDidCatch(e,s){console.error("[home-tiles] tile crashed:",e,s.componentStack)}render(){return this.state.hasError?n.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-4 text-center",children:[n.jsx("span",{className:"flex size-8 items-center justify-center rounded-md bg-destructive/10 text-destructive",children:n.jsx(nt,{size:16})}),n.jsx("p",{className:"text-sm font-medium text-foreground",children:"This tile crashed"}),n.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:this.state.message??"Something went wrong rendering this tile."})]}):this.props.children}}function nn(t){const e=k.c(72),{tiles:s,isEditMode:o,renderTile:i,onMove:r,onResize:a,onRemove:d}=t,l=ge(),m=$.useRef(null),[c,u]=$.useState(null),[f,p]=$.useState(null);let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={activationConstraint:{distance:4}},e[0]=h):h=e[0];const x=Ae(re(Ee,h),re(Pe)),y=s.reduce(on,0),b=o?Math.max(y+2,4):Math.max(y,1);let v;e[1]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{const A=m.current?.getBoundingClientRect();return A?{cellWidth:A.width/W,cellHeight:G}:null},e[1]=v):v=e[1];const N=v;let j;e[2]===Symbol.for("react.memo_cache_sentinel")?(j=A=>{u(String(A.active.id)),p(N())},e[2]=j):j=e[2];const g=j;let w;e[3]!==f||e[4]!==r||e[5]!==s?(w=A=>{const V=String(A.active.id),D=f??N();if(u(null),p(null),!D||D.cellWidth<=0)return;const E=s.find(q=>q.id===V);if(!E)return;const R=Math.round(A.delta.x/D.cellWidth),F=Math.round(A.delta.y/D.cellHeight);R===0&&F===0||r(V,{x:E.x+R,y:E.y+F})},e[3]=f,e[4]=r,e[5]=s,e[6]=w):w=e[6];const S=w;if(l){let A;if(e[7]!==i||e[8]!==s){let D;e[10]!==i?(D=E=>n.jsx("div",{className:"group bg-card card-shadow rounded-2xl overflow-hidden",style:{minHeight:G},children:n.jsx(pe,{children:i(E)})},E.id),e[10]=i,e[11]=D):D=e[11],A=s.map(D),e[7]=i,e[8]=s,e[9]=A}else A=e[9];let V;return e[12]!==A?(V=n.jsx("div",{className:"flex flex-col gap-3 px-4 pb-8",children:A}),e[12]=A,e[13]=V):V=e[13],V}let C,_,I,T,P,M,z,B,O;if(e[14]!==c||e[15]!==f||e[16]!==o||e[17]!==S||e[18]!==d||e[19]!==a||e[20]!==i||e[21]!==x||e[22]!==s||e[23]!==b){const A=c?s.find(X=>X.id===c):null;_=Me,B=x,O=g,I=S;const V=b*G,D=o?G*4:G;let E;e[33]!==V||e[34]!==D?(E={height:V,minHeight:D},e[33]=V,e[34]=D,e[35]=E):E=e[35];let R;e[36]!==o||e[37]!==s||e[38]!==b?(R=o&&n.jsx(rn,{rows:b,tiles:s}),e[36]=o,e[37]=s,e[38]=b,e[39]=R):R=e[39];let F;if(e[40]!==c||e[41]!==o||e[42]!==d||e[43]!==a||e[44]!==i||e[45]!==s){let X;e[47]!==c||e[48]!==o||e[49]!==d||e[50]!==a||e[51]!==i?(X=ie=>n.jsx(an,{tile:ie,isEditMode:o,isDragging:c===ie.id,onResize:a,onRemove:d,children:i(ie)},ie.id),e[47]=c,e[48]=o,e[49]=d,e[50]=a,e[51]=i,e[52]=X):X=e[52],F=s.map(X),e[40]=c,e[41]=o,e[42]=d,e[43]=a,e[44]=i,e[45]=s,e[46]=F}else F=e[46];e[53]!==E||e[54]!==R||e[55]!==F?(T=n.jsxs("div",{ref:m,className:"relative w-full",style:E,children:[R,F]}),e[53]=E,e[54]=R,e[55]=F,e[56]=T):T=e[56],C=At,P=null;const q=A&&f?A.w*f.cellWidth-Ce:void 0,de=A&&f?A.h*f.cellHeight-Ce:void 0;e[57]!==q||e[58]!==de?(M={width:q,height:de},e[57]=q,e[58]=de,e[59]=M):M=e[59],z=A&&n.jsx("div",{className:"bg-card card-shadow rounded-2xl shadow-2xl ring-2 ring-primary/40 h-full overflow-hidden opacity-95",children:n.jsx(pe,{children:i(A)})}),e[14]=c,e[15]=f,e[16]=o,e[17]=S,e[18]=d,e[19]=a,e[20]=i,e[21]=x,e[22]=s,e[23]=b,e[24]=C,e[25]=_,e[26]=I,e[27]=T,e[28]=P,e[29]=M,e[30]=z,e[31]=B,e[32]=O}else C=e[24],_=e[25],I=e[26],T=e[27],P=e[28],M=e[29],z=e[30],B=e[31],O=e[32];let L;e[60]!==C||e[61]!==P||e[62]!==M||e[63]!==z?(L=n.jsx(C,{dropAnimation:P,style:M,children:z}),e[60]=C,e[61]=P,e[62]=M,e[63]=z,e[64]=L):L=e[64];let K;return e[65]!==_||e[66]!==I||e[67]!==T||e[68]!==L||e[69]!==B||e[70]!==O?(K=n.jsxs(_,{sensors:B,onDragStart:O,onDragEnd:I,children:[T,L]}),e[65]=_,e[66]=I,e[67]=T,e[68]=L,e[69]=B,e[70]=O,e[71]=K):K=e[71],K}function on(t,e){return Math.max(t,e.y+e.h)}function rn(t){const e=k.c(7),{rows:s,tiles:o}=t;let i;e[0]!==o?(i=(l,m)=>o.some(c=>l>=c.x&&l<c.x+c.w&&m>=c.y&&m<c.y+c.h),e[0]=o,e[1]=i):i=e[1];const r=i;let a;if(e[2]!==r||e[3]!==s){a=[];for(let l=0;l<s;l++)for(let m=0;m<W;m++)r(m,l)||a.push({x:m,y:l});e[2]=r,e[3]=s,e[4]=a}else a=e[4];let d;return e[5]!==a?(d=n.jsx("div",{className:"absolute inset-0 pointer-events-none",children:a.map(ln)}),e[5]=a,e[6]=d):d=e[6],d}function ln(t){return n.jsx("div",{className:"absolute p-1",style:{left:`${t.x/W*100}%`,top:t.y*G,width:`${1/W*100}%`,height:G},children:n.jsx("div",{className:"h-full w-full rounded-2xl border border-dashed border-border/60"})},`${t.x}-${t.y}`)}function an(t){const e=k.c(31),{tile:s,isEditMode:o,isDragging:i,onResize:r,onRemove:a,children:d}=t,l=!o;let m;e[0]!==l||e[1]!==s.id?(m={id:s.id,disabled:l},e[0]=l,e[1]=s.id,e[2]=m):m=e[2];const{setNodeRef:c,attributes:u,listeners:f,isDragging:p}=Pt(m),h=`${s.x/W*100}%`,x=`${s.w/W*100}%`,y=s.y*G,b=s.h*G,v=p||i,N=!v&&"transition-[left,top,width,height,opacity] duration-200 ease-out",j=v&&"opacity-30";let g;e[3]!==N||e[4]!==j?(g=Q("absolute p-1 will-change-[left,top,width,height,opacity]",N,j),e[3]=N,e[4]=j,e[5]=g):g=e[5];let w;e[6]!==b||e[7]!==h||e[8]!==y||e[9]!==x?(w={left:h,top:y,width:x,height:b},e[6]=b,e[7]=h,e[8]=y,e[9]=x,e[10]=w):w=e[10];const S=o&&"outline outline-1 outline-transparent hover:outline-primary/40";let C;e[11]!==S?(C=Q("group relative h-full bg-card card-shadow rounded-2xl overflow-hidden",S),e[11]=S,e[12]=C):C=e[12];let _;e[13]!==u||e[14]!==o||e[15]!==f||e[16]!==a||e[17]!==r||e[18]!==s?(_=o&&n.jsxs(n.Fragment,{children:[n.jsx("button",{type:"button",...u,...f,className:"absolute top-2 left-2 z-10 flex size-8 items-center justify-center rounded-md bg-background/90 border border-border text-muted-foreground hover:text-foreground hover:bg-muted cursor-grab active:cursor-grabbing","aria-label":"Drag tile",children:n.jsx(He,{size:16})}),n.jsx("div",{className:"absolute top-2 right-2 z-10 flex items-center gap-1",children:n.jsx(cn,{tile:s,onResize:r,onRemove:a})})]}),e[13]=u,e[14]=o,e[15]=f,e[16]=a,e[17]=r,e[18]=s,e[19]=_):_=e[19];let I;e[20]!==d?(I=n.jsx("div",{className:"h-full overflow-hidden",children:n.jsx(pe,{children:d})}),e[20]=d,e[21]=I):I=e[21];let T;e[22]!==I||e[23]!==C||e[24]!==_?(T=n.jsxs("div",{className:C,children:[_,I]}),e[22]=I,e[23]=C,e[24]=_,e[25]=T):T=e[25];let P;return e[26]!==c||e[27]!==T||e[28]!==g||e[29]!==w?(P=n.jsx("div",{ref:c,className:g,style:w,children:T}),e[26]=c,e[27]=T,e[28]=g,e[29]=w,e[30]=P):P=e[30],P}function cn(t){const e=k.c(20),{tile:s,onResize:o,onRemove:i}=t,[r,a]=$.useState(!1);let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(ls,{asChild:!0,children:n.jsx("button",{type:"button",className:"flex size-8 items-center justify-center rounded-md bg-background/90 border border-border text-muted-foreground hover:text-foreground hover:bg-muted","aria-label":"Tile options",children:n.jsx(bt,{size:16})})}),e[0]=d):d=e[0];let l;e[1]!==o||e[2]!==s.id?(l=y=>{o(s.id,y),a(!1)},e[1]=o,e[2]=s.id,e[3]=l):l=e[3];let m;e[4]!==l||e[5]!==s?(m=n.jsx(dn,{tile:s,onPick:l}),e[4]=l,e[5]=s,e[6]=m):m=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(as,{}),e[7]=c):c=e[7];let u;e[8]!==i||e[9]!==s.id?(u=()=>i(s.id),e[8]=i,e[9]=s.id,e[10]=u):u=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(us,{size:14,className:"mr-2"}),e[11]=f):f=e[11];let p;e[12]!==u?(p=n.jsxs(cs,{onSelect:u,className:"text-destructive focus:text-destructive",children:[f,"Remove tile"]}),e[12]=u,e[13]=p):p=e[13];let h;e[14]!==m||e[15]!==p?(h=n.jsxs(ds,{align:"end",className:"w-auto",children:[m,c,p]}),e[14]=m,e[15]=p,e[16]=h):h=e[16];let x;return e[17]!==r||e[18]!==h?(x=n.jsxs(ms,{open:r,onOpenChange:a,children:[d,h]}),e[17]=r,e[18]=h,e[19]=x):x=e[19],x}function dn(t){const e=k.c(19),{tile:s,onPick:o}=t,i=s.minW??1,r=s.minH??1,[a,d]=$.useState(null);let l;e[0]!==a||e[1]!==s.h||e[2]!==s.w?(l=a??{w:s.w,h:s.h},e[0]=a,e[1]=s.h,e[2]=s.w,e[3]=l):l=e[3];const m=l;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("span",{className:"text-xs text-muted-foreground",children:"Size"}),e[4]=c):c=e[4];let u;e[5]!==m.h||e[6]!==m.w?(u=n.jsxs("div",{className:"mb-2 flex items-center justify-between gap-4",children:[c,n.jsxs("span",{className:"text-xs font-medium tabular-nums",children:[m.w," × ",m.h]})]}),e[5]=m.h,e[6]=m.w,e[7]=u):u=e[7];let f,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(f={gridTemplateColumns:`repeat(${W}, 1.25rem)`},p=()=>d(null),e[8]=f,e[9]=p):(f=e[8],p=e[9]);let h;e[10]!==m.h||e[11]!==m.w||e[12]!==r||e[13]!==i||e[14]!==o?(h=n.jsx("div",{className:"grid w-max gap-1",style:f,onPointerLeave:p,children:Array.from({length:tn},(y,b)=>Array.from({length:W},(v,N)=>{const j=N+1,g=b+1,w=j<i||g<r,S=j<=m.w&&g<=m.h;return n.jsx("button",{type:"button",disabled:w,"aria-label":`${j} by ${g}`,onPointerEnter:()=>d({w:j,h:g}),onClick:()=>o({w:j,h:g}),className:Q("size-5 rounded-sm border transition-colors",S?"border-primary bg-primary/30":"border-border bg-muted",w?"cursor-not-allowed opacity-40":"cursor-pointer hover:border-primary/60")},`${j}x${g}`)}))}),e[10]=m.h,e[11]=m.w,e[12]=r,e[13]=i,e[14]=o,e[15]=h):h=e[15];let x;return e[16]!==u||e[17]!==h?(x=n.jsxs("div",{className:"px-2 py-1.5",children:[u,h]}),e[16]=u,e[17]=h,e[18]=x):x=e[18],x}function mn(t,e,s){return t.some(o=>e>=o.x&&e<o.x+o.w&&s>=o.y&&s<o.y+o.h)}function he(t,e,s){for(let o=0;o<100;o++)for(let i=0;i<=W-e;i++){let r=!0;for(let a=0;a<s&&r;a++)for(let d=0;d<e&&r;d++)mn(t,i+d,o+a)&&(r=!1);if(r)return{x:i,y:o}}return{x:0,y:0}}function me(t,e,s={w:1,h:1}){const o=Math.max(s.w,Math.min(W,t)),i=Math.max(s.h,Math.min(6,e));return{w:o,h:i}}function ue(t,e,s){const o=Math.max(0,Math.min(W-s,t)),i=Math.max(0,e);return{x:o,y:i}}function un(t,e,s){const o=t.find(l=>l.id===e);if(!o)return t;const i=t.filter(l=>l.id!==e),r=i.find(l=>s.x>=l.x&&s.x<l.x+l.w&&s.y>=l.y&&s.y<l.y+l.h);if(r&&r.w===o.w&&r.h===o.h)return t.map(l=>l.id===e?{...l,x:r.x,y:r.y}:l.id===r.id?{...l,x:o.x,y:o.y}:l);const d=[{...o,x:s.x,y:s.y}];for(const l of i){const m=he(d,l.w,l.h);d.push({...l,x:m.x,y:m.y})}return d}function fn(t){const e=k.c(35),{layout:s,isLayoutLoading:o,commitLayout:i}=Ze();let r;e[0]!==s.hidden?(r=new Set(s.hidden),e[0]=s.hidden,e[1]=r):r=e[1];const a=r;let d,l;if(e[2]!==t||e[3]!==a||e[4]!==s.tiles){l=[];let v;e[7]!==a?(v=j=>j.pinned||!a.has(j.id),e[7]=a,e[8]=v):v=e[8];const N=t.filter(v);d=new Map;for(const j of t)j.minSize&&d.set(j.id,j.minSize);for(const j of N){const g=s.tiles[j.id];if(!g)continue;const w=d.get(j.id),{w:S,h:C}=me(g.w,g.h,w),{x:_,y:I}=ue(g.x,g.y,S);l.push({id:j.id,x:_,y:I,w:S,h:C,minW:w?.w,minH:w?.h})}for(const j of N){if(l.some(I=>I.id===j.id))continue;const g=j.defaultSize??sn,w=d.get(j.id),{w:S,h:C}=me(g.w,g.h,w),_=he(l,S,C);l.push({id:j.id,x:_.x,y:_.y,w:S,h:C,minW:w?.w,minH:w?.h})}e[2]=t,e[3]=a,e[4]=s.tiles,e[5]=d,e[6]=l}else d=e[5],l=e[6];let m;e[9]!==t?(m=new Set(t.map(pn)),e[9]=t,e[10]=m):m=e[10];const c=m;let u;e[11]!==c||e[12]!==i?(u=(v,N)=>{const j={};for(const g of v)j[g.id]={x:g.x,y:g.y,w:g.w,h:g.h};i({version:ee,tiles:j,hidden:N.filter(g=>c.has(g))})},e[11]=c,e[12]=i,e[13]=u):u=e[13];const f=u;let p;e[14]!==l?(p={visible:l},e[14]=l,e[15]=p):p=e[15];let h;e[16]!==f||e[17]!==s||e[18]!==l?(h=(v,N)=>{const j=l.find(S=>S.id===v);if(!j)return;const g=ue(N.x,N.y,j.w);if(g.x===j.x&&g.y===j.y)return;const w=un(l,v,g);f(w,s.hidden)},e[16]=f,e[17]=s,e[18]=l,e[19]=h):h=e[19];let x;e[20]!==f||e[21]!==s||e[22]!==d||e[23]!==l?(x=(v,N)=>{const j=l.find(T=>T.id===v);if(!j)return;const g=d.get(v),{w,h:S}=me(N.w,N.h,g);if(w===j.w&&S===j.h)return;const C={...j,w,h:S,x:ue(j.x,j.y,w).x},_=l.filter(T=>T.id!==v),I=[C];for(const T of _){const P=he(I,T.w,T.h);I.push({...T,x:P.x,y:P.y})}f(I,s.hidden)},e[20]=f,e[21]=s,e[22]=d,e[23]=l,e[24]=x):x=e[24];let y;e[25]!==f||e[26]!==s||e[27]!==l?(y=v=>{const N=l.filter(j=>j.id!==v);f(N,Array.from(new Set([...s.hidden,v])))},e[25]=f,e[26]=s,e[27]=l,e[28]=y):y=e[28];let b;return e[29]!==o||e[30]!==p||e[31]!==h||e[32]!==x||e[33]!==y?(b={snapshot:p,isLoading:o,moveTile:h,resizeTile:x,hideTile:y},e[29]=o,e[30]=p,e[31]=h,e[32]=x,e[33]=y,e[34]=b):b=e[34],b}function pn(t){return t.id}const hn={w:2,h:4},xn={w:1,h:2},gn={w:1,h:1};function yn(t){return`prompt:${t.agentId}:${t.promptName||"blank"}`}function bn(t){return t.tileId?`tile:${t.tileId}`:`tile:${t.agentId}:${t.resourceUri}`}function jn(t){return t.promptName?t.agentName:t.description}function vn(t){return{name:t.promptName,title:t.title,description:t.description,arguments:t.arguments,_meta:t._meta}}function Ye(t){const e=k.c(14),{org:s}=J();let o;e[0]!==s.id||e[1]!==s.slug||e[2]!==t.connectionId?(o=at({connectionId:t.connectionId,orgId:s.id,orgSlug:s.slug}),e[0]=s.id,e[1]=s.slug,e[2]=t.connectionId,e[3]=o):o=e[3];const{data:i}=se(o),r=!!i&&!t.toolName;let a;e[4]!==i||e[5]!==r?(a={client:i,enabled:r},e[4]=i,e[5]=r,e[6]=a):a=e[6];const{data:d}=ts(a);let l;e[7]!==t.resourceUri||e[8]!==t.toolName||e[9]!==d?.tools?(l=t.toolName??d?.tools.find(u=>Re(u._meta)===t.resourceUri)?.name,e[7]=t.resourceUri,e[8]=t.toolName,e[9]=d?.tools,e[10]=l):l=e[10];const m=l;let c;return e[11]!==t.connectionId||e[12]!==m?(c=m?ns(t.connectionId,m):void 0,e[11]=t.connectionId,e[12]=m,e[13]=c):c=e[13],c}function Ne(t){const e=k.c(10);let s;e[0]!==t?(s={agentId:t},e[0]=t,e[1]=s):s=e[1];const{start:o,startBlank:i,dialog:r,starting:a}=en(s);let d;e[2]!==o||e[3]!==i?(d=c=>{if(!c.promptName){i();return}o(vn(c))},e[2]=o,e[3]=i,e[4]=d):d=e[4];const l=d;let m;return e[5]!==r||e[6]!==l||e[7]!==i||e[8]!==a?(m={open:l,startBlank:i,dialog:r,starting:a},e[5]=r,e[6]=l,e[7]=i,e[8]=a,e[9]=m):m=e[9],m}function Nn(t){const e=k.c(32),{entry:s,isEditMode:o}=t,{open:i,dialog:r,starting:a}=Ne(s.agentId);let d;e[0]!==s||e[1]!==i?(d=()=>i(s),e[0]=s,e[1]=i,e[2]=d):d=e[2];const l=a||o,m=!o&&"cursor-pointer transition-colors hover:bg-accent/40",c=o&&"cursor-default pl-12",u=a&&"opacity-60";let f;e[3]!==m||e[4]!==c||e[5]!==u?(f=Q("group/tile relative flex h-full w-full items-center gap-3 px-4 py-3 text-left bg-card",m,c,u),e[3]=m,e[4]=c,e[5]=u,e[6]=f):f=e[6];let p;e[7]!==s.agentIcon||e[8]!==s.agentName?(p=n.jsx(ce,{icon:s.agentIcon,name:s.agentName,size:"sm+"}),e[7]=s.agentIcon,e[8]=s.agentName,e[9]=p):p=e[9];let h;e[10]!==s.title?(h=n.jsx("div",{className:"line-clamp-2 text-sm font-medium text-foreground leading-snug",children:s.title}),e[10]=s.title,e[11]=h):h=e[11];let x;e[12]!==s?(x=jn(s),e[12]=s,e[13]=x):x=e[13];let y;e[14]!==x?(y=n.jsx("div",{className:"truncate text-xs text-muted-foreground mt-0.5",children:x}),e[14]=x,e[15]=y):y=e[15];let b;e[16]!==y||e[17]!==h?(b=n.jsxs("div",{className:"min-w-0 flex-1",children:[h,y]}),e[16]=y,e[17]=h,e[18]=b):b=e[18];let v;e[19]!==o?(v=!o&&n.jsx(ss,{size:16,className:"shrink-0 text-muted-foreground opacity-0 -translate-x-1 transition-all duration-200 group-hover/tile:opacity-100 group-hover/tile:translate-x-0","aria-hidden":!0}),e[19]=o,e[20]=v):v=e[20];let N;e[21]!==a||e[22]!==d||e[23]!==b||e[24]!==v||e[25]!==l||e[26]!==f||e[27]!==p?(N=n.jsxs("button",{type:"button",onClick:d,disabled:l,"aria-busy":a,className:f,children:[p,b,v]}),e[21]=a,e[22]=d,e[23]=b,e[24]=v,e[25]=l,e[26]=f,e[27]=p,e[28]=N):N=e[28];let j;return e[29]!==r||e[30]!==N?(j=n.jsxs(n.Fragment,{children:[N,r]}),e[29]=r,e[30]=N,e[31]=j):j=e[31],j}function wn(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"mt-4 grid w-full grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:Array.from({length:3},Sn)}),t[0]=e):e=t[0],e}function Sn(t,e){return n.jsxs("div",{className:"flex w-full items-center gap-3 rounded-2xl bg-card card-shadow px-3 py-2.5",children:[n.jsx(H,{className:"size-10 rounded-xl"}),n.jsxs("div",{className:"flex-1 space-y-1.5",children:[n.jsx(H,{className:"h-3 w-2/3"}),n.jsx(H,{className:"h-2.5 w-1/3"})]})]},`chip-skeleton-${e}`)}function _n(t){const e=k.c(17),{tile:s,prompts:o,isEditMode:i,tileWidth:r}=t,{org:a}=J(),{open:d,startBlank:l,dialog:m,starting:c}=Ne(s.agentId),u=o.filter(Cn),f=Ye(s),p="relative flex h-full w-full flex-col p-3";let h;e[0]!==i||e[1]!==f||e[2]!==l||e[3]!==c?(h=!i&&n.jsx("button",{type:"button",onClick:()=>{l(f?{main:f}:void 0)},disabled:c,"aria-busy":c,className:"mb-1 self-start rounded-md px-2 py-1 text-[10px] text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-progress disabled:opacity-60",children:"Open chat"}),e[0]=i,e[1]=f,e[2]=l,e[3]=c,e[4]=h):h=e[4];const x="flex min-h-0 flex-1 gap-3 overflow-hidden";let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(Tn,{}),e[5]=y):y=e[5];let b;e[6]!==a.id||e[7]!==a.slug||e[8]!==s?(b=n.jsx("div",{className:"min-h-0 flex-1 overflow-hidden rounded-lg border border-border",children:n.jsx($.Suspense,{fallback:y,children:n.jsx(In,{tile:s,orgId:a.id,orgSlug:a.slug})})}),e[6]=a.id,e[7]=a.slug,e[8]=s,e[9]=b):b=e[9];const v=u.length>0&&!i&&r>=2&&n.jsx("div",{className:"flex w-44 shrink-0 flex-col gap-2 overflow-hidden",children:u.map(g=>n.jsx("button",{type:"button",onClick:()=>d(g),disabled:c,className:"shrink-0 rounded-lg border border-border bg-background px-2.5 py-2 text-left text-xs leading-snug text-foreground transition-colors hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-progress disabled:opacity-60",children:n.jsx("span",{className:"line-clamp-2",children:g.title})},g.promptName))});let N;e[10]!==b||e[11]!==v?(N=n.jsxs("div",{className:x,children:[b,v]}),e[10]=b,e[11]=v,e[12]=N):N=e[12];let j;return e[13]!==m||e[14]!==h||e[15]!==N?(j=n.jsxs("div",{className:p,children:[h,N,m]}),e[13]=m,e[14]=h,e[15]=N,e[16]=j):j=e[16],j}function Cn(t){return!!t.promptName}function In(t){const e=k.c(13),{tile:s,orgId:o,orgSlug:i}=t;let r;e[0]!==o||e[1]!==i||e[2]!==s.connectionId?(r={connectionId:s.connectionId,orgId:o,orgSlug:i},e[0]=o,e[1]=i,e[2]=s.connectionId,e[3]=r):r=e[3];const a=ae(r),d=s.minHeight??200,l=s.maxHeight??4e3;let m;return e[4]!==a||e[5]!==o||e[6]!==i||e[7]!==d||e[8]!==l||e[9]!==s.connectionId||e[10]!==s.resourceUri||e[11]!==s.toolInput?(m=n.jsx(Qt,{resourceURI:s.resourceUri,orgId:o,orgSlug:i,connectionId:s.connectionId,client:a,toolInput:s.toolInput,displayMode:"fullscreen",minHeight:d,maxHeight:l,className:"h-full"}),e[4]=a,e[5]=o,e[6]=i,e[7]=d,e[8]=l,e[9]=s.connectionId,e[10]=s.resourceUri,e[11]=s.toolInput,e[12]=m):m=e[12],m}function Tn(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsxs("div",{className:"flex h-full w-full flex-col gap-2 p-4",children:[n.jsx(H,{className:"h-3 w-2/3"}),n.jsx(H,{className:"h-3 w-1/2"}),n.jsx(H,{className:"mt-1 h-full w-full rounded-md"})]}),t[0]=e):e=t[0],e}function kn(t){const e=k.c(14),{icon:s,name:o}=t;let i;e[0]!==s||e[1]!==o?(i=n.jsx(ce,{icon:s,name:o,size:"sm+"}),e[0]=s,e[1]=o,e[2]=i):i=e[2];let r;e[3]!==o?(r=n.jsx("div",{className:"truncate text-sm font-medium text-foreground",children:o}),e[3]=o,e[4]=r):r=e[4];let a;e[5]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"truncate text-xs text-muted-foreground",children:"Loading tile…"}),e[5]=a):a=e[5];let d;e[6]!==r?(d=n.jsxs("div",{className:"min-w-0 flex-1",children:[r,a]}),e[6]=r,e[7]=d):d=e[7];let l;e[8]!==i||e[9]!==d?(l=n.jsxs("div",{className:"flex items-center gap-2.5",children:[i,d]}),e[8]=i,e[9]=d,e[10]=l):l=e[10];let m;e[11]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsxs("div",{className:"flex flex-1 flex-col gap-2 pt-1",children:[n.jsx(H,{className:"h-3 w-3/4"}),n.jsx(H,{className:"h-3 w-1/2"}),n.jsx(H,{className:"h-3 w-2/3"})]}),e[11]=m):m=e[11];let c;return e[12]!==l?(c=n.jsxs("div",{className:"flex h-full w-full flex-col gap-3 p-5 opacity-60",children:[l,m]}),e[12]=l,e[13]=c):c=e[13],c}function $n(t){const e=k.c(10),{tile:s,prompts:o,isEditMode:i}=t,{open:r,startBlank:a,dialog:d,starting:l}=Ne(s.agentId),m=o.filter(An),c=Ye(s),u="flex h-full w-full flex-col gap-3 p-4";let f;e[0]!==c||e[1]!==a?(f=()=>{a(c?{main:c}:void 0)},e[0]=c,e[1]=a,e[2]=f):f=e[2];const p=l||i;let h;e[3]!==f||e[4]!==p?(h=n.jsx("button",{type:"button",onClick:f,disabled:p,className:"mb-1 self-start rounded-md px-2 py-1 text-[10px] text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-progress disabled:opacity-60",children:"Open chat"}),e[3]=f,e[4]=p,e[5]=h):h=e[5];const x=m.length>0&&!i&&n.jsx("div",{className:"grid grid-cols-1 gap-2 overflow-hidden sm:grid-cols-2",children:m.map(b=>n.jsx("button",{type:"button",onClick:()=>!i&&r(b),disabled:l,className:"rounded-lg border border-border bg-background px-2.5 py-2 text-left text-xs leading-snug text-foreground transition-colors hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-progress disabled:opacity-60",children:n.jsx("span",{className:"line-clamp-2",children:b.title})},b.promptName))});let y;return e[6]!==d||e[7]!==h||e[8]!==x?(y=n.jsxs("div",{className:u,children:[h,x,d]}),e[6]=d,e[7]=h,e[8]=x,e[9]=y):y=e[9],y}function An(t){return!!t.promptName}function et({isEditMode:t}){const{org:e}=J(),{isLoading:s,prompts:o,tiles:i}=be(e.slug),r=ze()?.ids??[],a=new Set(r),d=Oe(),l=Ue(),m=xe(),c=new Set(i.map(g=>g.agentId)),u=new Map;for(const g of o){const w=u.get(g.agentId);w?w.push(g):u.set(g.agentId,[g])}const f=o.filter(g=>!c.has(g.agentId)),p=[...i.map(g=>({kind:"tile",id:bn(g),data:g})),...f.map(g=>({kind:"prompt",id:yn(g),data:g}))],h=new Map(p.map(g=>[g.id,g])),x=fn(p.map(g=>({id:g.id,defaultSize:g.kind==="tile"?hn:gn,minSize:g.kind==="tile"?xn:void 0,pinned:a.has(g.data.agentId)}))),y=g=>{d.apply(w=>w.filter(S=>S!==g)).catch(()=>U.error("Couldn't remove from home — please try again."))},b=async g=>{if(i.filter(S=>S.agentId===g.agentId).length<=1){y(g.agentId);return}try{const C=(await l.call("COLLECTION_VIRTUAL_MCP_GET",{id:g.agentId})).item;if(!C)throw new Error("Agent not found");const _=Z(C.metadata?.ui),I=g.tileId?_.filter(T=>T.tileId!==g.tileId):_.filter(T=>T.connectionId!==g.connectionId||T.resourceUri!==g.resourceUri);await l.call("COLLECTION_VIRTUAL_MCP_UPDATE",{id:g.agentId,data:{metadata:{...C.metadata??{},ui:{...C.metadata?.ui??{},homeTile:null,homeTiles:I}}}}),m.invalidateQueries({queryKey:te.homeNextActions(e.slug)})}catch{U.error("Couldn't remove tile — please try again.")}},v=g=>{const w=h.get(g);if(w){if(!a.has(w.data.agentId)){x.hideTile(g);return}w.kind==="tile"?b(w.data):y(w.data.agentId)}},N=g=>{const w=h.get(g.id);if(!w)return null;if(w.kind==="tile"){const S=u.get(w.data.agentId)??[];return n.jsx(it,{fallback:n.jsx($n,{tile:w.data,prompts:S,isEditMode:t}),children:n.jsx($.Suspense,{fallback:n.jsx(kn,{icon:w.data.agentIcon,name:w.data.agentName}),children:n.jsx(_n,{tile:w.data,prompts:S,isEditMode:t,tileWidth:g.w})})})}return n.jsx(Nn,{entry:w.data,isEditMode:t})};return s||x.isLoading?n.jsx(wn,{}):x.snapshot.visible.length===0&&!t?null:n.jsx("div",{className:"mt-4 flex w-full max-w-7xl flex-col gap-4",children:n.jsx(nn,{tiles:x.snapshot.visible,isEditMode:t,renderTile:N,onMove:x.moveTile,onResize:x.resizeTile,onRemove:v})})}function Pn(t){const e=k.c(2),{prompts:s,tiles:o}=be(t),i=o.length>0||s.length>0;let r;return e[0]!==i?(r={hasVisibleTiles:i},e[0]=i,e[1]=r):r=e[1],r}const Ie=420,Te=305;function tt(){const t=k.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("img",{src:"/home/bg-top-left.svg",alt:"",className:"absolute top-0 left-0 h-auto select-none opacity-80 dark:hidden",style:{width:Ie}}),t[0]=e):e=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("img",{src:"/home/bg-top-left-dark.svg",alt:"",className:"absolute top-0 left-0 hidden h-auto select-none opacity-80 dark:block",style:{width:Ie}}),t[1]=s):s=t[1];let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("img",{src:"/home/bg-bottom-right.svg",alt:"",className:"absolute bottom-0 right-0 h-auto select-none opacity-80 dark:hidden",style:{width:Te}}),t[2]=o):o=t[2];let i;return t[3]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 overflow-hidden",children:[e,s,o,n.jsx("img",{src:"/home/bg-bottom-right-dark.svg",alt:"",className:"absolute bottom-0 right-0 hidden h-auto select-none opacity-80 dark:block",style:{width:Te}})]}),t[3]=i):i=t[3],i}function ke(){const t=k.c(33),{data:e}=ot.useSession(),{org:s}=J(),o=ge(),i=hs(),{selectedVirtualMcp:r}=vt();let a;t[0]!==s.id?(a=ct(s.id),t[0]=s.id,t[1]=a):a=t[1];const l=r??a;let m;t[2]!==s.slug?(m=Dt(s.slug),t[2]=s.slug,t[3]=m):m=t[3],se(m);let c;t[4]!==s.id||t[5]!==s.slug?(c={connectionId:dt,orgId:s.id,orgSlug:s.slug},t[4]=s.id,t[5]=s.slug,t[6]=c):c=t[6];const u=ae(c);let f;t[7]!==s.id||t[8]!==s.slug?(f=fs(s.slug,s.id),t[7]=s.id,t[8]=s.slug,t[9]=f):f=t[9];let p;t[10]!==s.id||t[11]!==s.slug?(p=Ot(s.slug,s.id),t[10]=s.id,t[11]=s.slug,t[12]=p):p=t[12];let h;t[13]!==l.id||t[14]!==s.id||t[15]!==u?(h=ft(s.id,l.id,u),t[13]=l.id,t[14]=s.id,t[15]=u,t[16]=h):h=t[16];let x;t[17]!==f||t[18]!==p||t[19]!==h?(x={queries:[f,p,h]},t[17]=f,t[18]=p,t[19]=h,t[20]=x):x=t[20],rt(x);const y=ps(),b=pt(l.id),{hasDecoKey:v,isZeroBalance:N,isInitialFreeCredit:j,balanceDollars:g,hasOnlyDecoProvider:w}=Et(),{hasVisibleTiles:S}=Pn(s.slug),C=Mt(b?.metadata);if(y.length===0&&!(C&&zt(i))){let L;return t[21]===Symbol.for("react.memo_cache_sentinel")?(L=n.jsx("div",{className:"flex-1 overflow-y-auto",children:n.jsx("div",{className:"min-h-full flex items-center justify-center px-4 py-10",children:n.jsx(Nt,{})})}),t[21]=L):L=t[21],L}let I;t[22]!==e?.user?.name?(I=e?.user?.name?.split(" ")[0]||"there",t[22]=e?.user?.name,t[23]=I):I=t[23];const T=I,P=v&&j&&g!=null,M=v&&N&&w;let z;t[24]!==g||t[25]!==P||t[26]!==M?(z=P?n.jsx(oe.CreditsEyebrow,{balanceDollars:g}):M?n.jsx(oe.NoCreditsEyebrow,{}):null,t[24]=g,t[25]=P,t[26]=M,t[27]=z):z=t[27];const B=z;let O;return t[28]!==B||t[29]!==S||t[30]!==o||t[31]!==T?(O=n.jsx(Ys,{children:o?n.jsx(En,{eyebrow:B,userName:T}):n.jsx(Mn,{eyebrow:B,userName:T,hasVisibleTiles:S})}),t[28]=B,t[29]=S,t[30]=o,t[31]=T,t[32]=O):O=t[32],O}function En(t){const e=k.c(12),{eyebrow:s,userName:o}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(tt,{}),e[0]=i):i=e[0];let r;e[1]!==s?(r=s&&n.jsx("div",{className:"mb-4",children:s}),e[1]=s,e[2]=r):r=e[2];let a;e[3]!==o?(a=n.jsxs("p",{className:"text-3xl font-medium text-foreground text-center max-w-[280px]",children:["What's on your mind, ",o,"?"]}),e[3]=o,e[4]=a):a=e[4];let d;e[5]!==r||e[6]!==a?(d=n.jsxs("div",{className:"relative flex flex-col items-center justify-center w-full pt-28 pb-8 px-4",children:[r,a]}),e[5]=r,e[6]=a,e[7]=d):d=e[7];let l;e[8]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx("div",{className:"relative w-full flex flex-col gap-4 pb-8 px-4",children:n.jsx(oe.Input,{showConnectionsBanner:!0})}),e[8]=l):l=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsx("div",{className:"relative w-full px-4 pb-8",children:n.jsx(et,{isEditMode:!1})}),e[9]=m):m=e[9];let c;return e[10]!==d?(c=n.jsxs("div",{className:"flex-1 relative flex flex-col items-center overflow-y-auto",children:[i,d,l,m]}),e[10]=d,e[11]=c):c=e[11],c}function Mn(t){const e=k.c(32),{eyebrow:s,userName:o,hasVisibleTiles:i}=t,{isEditMode:r,enter:a,save:d,cancel:l,hasChanges:m}=Ze(),[c,u]=$.useState(!1);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>u(!0),e[0]=f):f=e[0];let p;e[1]!==l||e[2]!==a||e[3]!==m||e[4]!==r||e[5]!==d?(p=n.jsx(xs.Right,{children:n.jsx(zn,{isEditMode:r,hasChanges:m,onEnter:a,onSave:d,onCancel:l,onAddTile:f})}),e[1]=l,e[2]=a,e[3]=m,e[4]=r,e[5]=d,e[6]=p):p=e[6];let h;e[7]!==c?(h=n.jsx(ys,{open:c,onOpenChange:u}),e[7]=c,e[8]=h):h=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(tt,{}),e[9]=x):x=e[9];const y=i||r?"pt-32":"flex-1 justify-center";let b;e[10]!==y?(b=Q("relative flex flex-col items-center px-10 pb-4",y),e[10]=y,e[11]=b):b=e[11];let v;e[12]!==s?(v=s&&n.jsx("div",{className:"mb-4",children:s}),e[12]=s,e[13]=v):v=e[13];let N;e[14]!==o?(N=n.jsxs("p",{className:"text-3xl font-medium text-foreground",children:["What's on your mind, ",o,"?"]}),e[14]=o,e[15]=N):N=e[15];let j;e[16]!==v||e[17]!==N?(j=n.jsxs("div",{className:"text-center mb-10",children:[v,N]}),e[16]=v,e[17]=N,e[18]=j):j=e[18];let g;e[19]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsxs("div",{className:"relative w-full",children:[n.jsx(On,{}),n.jsx(oe.Input,{showConnectionsBanner:!0})]}),e[19]=g):g=e[19];let w;e[20]!==j?(w=n.jsxs("div",{className:"flex flex-col items-center w-full max-w-[672px]",children:[j,g]}),e[20]=j,e[21]=w):w=e[21];let S;e[22]!==r?(S=n.jsx("div",{className:"relative w-full mt-10 mx-auto max-w-[1280px] px-2 pb-16",children:n.jsx(et,{isEditMode:r})}),e[22]=r,e[23]=S):S=e[23];let C;e[24]!==w||e[25]!==S||e[26]!==b?(C=n.jsxs("div",{className:"flex-1 relative flex flex-col min-h-0",children:[x,n.jsx("div",{className:"flex-1 relative flex flex-col overflow-y-auto",children:n.jsxs("div",{className:b,children:[w,S]})})]}),e[24]=w,e[25]=S,e[26]=b,e[27]=C):C=e[27];let _;return e[28]!==C||e[29]!==p||e[30]!==h?(_=n.jsxs(n.Fragment,{children:[p,h,C]}),e[28]=C,e[29]=p,e[30]=h,e[31]=_):_=e[31],_}function zn(t){const e=k.c(17),{isEditMode:s,hasChanges:o,onEnter:i,onSave:r,onCancel:a,onAddTile:d}=t;if(s){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(ye,{size:14}),e[0]=c):c=e[0];let u;e[1]!==d?(u=n.jsxs("button",{type:"button",onClick:d,className:"flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",title:"Add a tile from any agent",children:[c,"Add tile"]}),e[1]=d,e[2]=u):u=e[2];let f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx($e,{size:14}),e[3]=f):f=e[3];let p;e[4]!==a?(p=n.jsxs(Y,{size:"sm",variant:"ghost",onClick:a,className:"gap-1.5 h-7 text-xs",children:[f,"Cancel"]}),e[4]=a,e[5]=p):p=e[5];const h=!o;let x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(ht,{size:14}),e[6]=x):x=e[6];let y;e[7]!==r||e[8]!==h?(y=n.jsxs(Y,{size:"sm",onClick:r,disabled:h,className:"gap-1.5 h-7 text-xs",children:[x,"Save"]}),e[7]=r,e[8]=h,e[9]=y):y=e[9];let b;return e[10]!==u||e[11]!==p||e[12]!==y?(b=n.jsxs(n.Fragment,{children:[u,p,y]}),e[10]=u,e[11]=p,e[12]=y,e[13]=b):b=e[13],b}let l;e[14]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(jt,{size:14}),e[14]=l):l=e[14];let m;return e[15]!==i?(m=n.jsxs("button",{type:"button",onClick:i,className:"flex h-7 items-center gap-1.5 rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",title:"Customize your home",children:[l,"Customize"]}),e[15]=i,e[16]=m):m=e[16],m}function On(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("img",{src:"/home/capybara.png",alt:"","aria-hidden":!0,className:"pointer-events-none absolute -top-16 right-6 z-20 h-20 w-auto select-none"}),t[0]=e):e=t[0],e}function Vo(){const t=k.c(2);if(ge()){let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"flex-1 min-h-0 flex flex-col bg-background overflow-hidden",children:n.jsx(ke,{})}),t[0]=o):o=t[0],o}let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("div",{className:"flex-1 min-h-0 pb-1 pr-1 pl-0 pt-0",children:n.jsx("div",{className:"h-full p-0.5 pt-0.25",children:n.jsx("div",{className:"flex flex-col h-full bg-background overflow-hidden card-shadow rounded-[0.75rem]",children:n.jsx(ke,{})})})}),t[1]=s):s=t[1],s}export{Vo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-B9RX5RO3.js";import{S as mt,b as pt,c as st,d as at}from"./sheet-BuK9Bi12.js";import{S as nt}from"./scroll-area-BfODbP7V.js";import{r as lt,c as ct,u as dt,a as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-fEqxqxSx.js";import{p as xt}from"./index-D0ePdC1P.js";import"./X-DfXvpZmg.js";import"./agent-icon-BSrsLXl6.js";import"./AlertCircle-Cc3pQQnr.js";import"./Tool01-DiHOVm-e.js";import"./SwitchHorizontal01-CSOC8pJg.js";import"./Settings02-BOk4ED6n.js";import"./XCircle-ZaGMWVGi.js";import"./ArrowUpRight-CPi47lLx.js";import"./ZapSquare-CcnnG0hZ.js";import"./Users03-lcnaqD4R.js";import"./CheckCircle-IYpSOIKz.js";import"./ChevronUp-B5eCnRac.js";import"./ChevronDown-Dqjr8XHu.js";import"./ChevronRight-gIRWWm9p.js";import"./DotsVertical-B9u1OZLA.js";import"./Stars02-z35UXQWd.js";import"./Eye-B_K6Njxp.js";import"./ZoomOut-DACFNvoK.js";import"./Globe01-DcfQu85z.js";import"./FilterLines-CdtZHbuq.js";import"./Star01-CUuABlwW.js";import"./Globe04-C-dtu6kX.js";import"./HardDrive-4F7iUUm_.js";import"./Key01-aBzwAa0Q.js";import"./LayoutLeft-ga9aJQRS.js";import"./LinkExternal01-BGyqK5yf.js";import"./Monitor01-CEchjYQg.js";import"./Sun-D50GIoiM.js";import"./Palette-CSUU_Q3O.js";import"./Play-C8X7SGaF.js";import"./Plus--DaCpp2L.js";import"./SearchLg-D03A_NF_.js";import"./SearchMd-DkOkqB1x.js";import"./Shield01-BFegC232.js";import"./Stars01-B93nLs7X.js";import"./Trash01-Bl6o13BP.js";import"./Upload01-CUV61CF_.js";import"./User01-B1Xfry12.js";import"./Users01-B84B4zGO.js";import"./XClose-D9sLuCv4.js";import"./Zap-aGdCRLSw.js";import"./use-clock-tick-DG6k_nvs.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Ci8sC5l3.js";import"./tooltip-D0gAQvdt.js";import"./file-type-icon-COGQ4pI3.js";import"./dialog-ByONEu5t.js";import"./use-mobile-BRnq0gXl.js";import"./tab-id-AX1D_RMI.js";import"./content-blocks-o63cs2vh.js";import"./types-MoywLYj-.js";import"./use-mcp-client-kafpdK1S.js";import"./auth-DqnmXS22.js";import"./chat-context-DxttoHRm.js";import"./hooks-D-BD-as_.js";import"./decopilot-sse-pool-NjmqRXjB.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-DEeq13OQ.js";import"./use-collections-D1SluUGz.js";import"./use-ai-providers-FahUxzCr.js";import"./studio-tools-8V5L8yWN.js";import"./use-decopilot-events-C59wqgQn.js";import"./use-organization-settings-CGyaOz7B.js";import"./shell-layout-CeOKGkX7.js";import"./avatar-CtLv43YA.js";import"./required-auth-layout--fo-PixH.js";import"./use-org-sso-CBiodNLP.js";import"./integration-icon-Dswj1ocS.js";import"./use-navigate-to-agent-BUEH3Z70.js";import"./use-connection-CVmz3KP_.js";import"./use-mcp-prompts-DU7dxO-n.js";import"./form-CHABcBxu.js";import"./label-BQWNN582.js";import"./input-3oIOHrz2.js";import"./select-Dz95Nu3h.js";import"./switch-fhmtJkwE.js";import"./index-BFmT8-KG.js";import"./drawer-CQ9AL1gk.js";import"./collection-search-CxeqORsL.js";import"./tabs-CVwZOECO.js";import"./toggle-group-1YrSgTCF.js";import"./sortable.esm-B7xo8zyR.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-B9i_lQW-.js";import"./use-registry-connections-BANRRqD5.js";import"./useInfiniteQuery-oBkg_UFf.js";import"./use-infinite-scroll-CrPZGb0h.js";import"./extract-connection-data-2vbbo8BE.js";import"./card-BDI1wP4A.js";import"./collection-tabs-DRDrRsou.js";import"./badge-DH4mQWT5.js";import"./textarea-B3_vJOFF.js";import"./connection-form-helpers-3Yjl_wx7.js";import"./authenticate-and-persist-oauth-hpFWr1Di.js";import"./mcp-oauth-Bmzv67BA.js";import"./useSuspenseInfiniteQuery-IhLc5whf.js";import"./connect-desktop-dialog-Cnxu0aRU.js";import"./decopilot-CzEzmWB-.js";import"./checkbox-DcR6QGwg.js";import"./skeleton-DDN7yK4d.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Coon-D3Y.js";import"./popover-OJW-B2ij.js";import"./command-BTszBDx2.js";import"./index-BUkHQpou.js";import"./use-org-fs-B9PmAEV7.js";import"./dropdown-menu-DXW07_pX.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-BCE5SUu5.js";import"./task-status-icN8yzWC.js";import"./use-status-sounds-QjuHpeVO.js";import"./empty-state-CwoG6MJG.js";import"./toolbar-B0jymZ3i.js";import"./index-CA6YD8q2.js";import"./alert-dialog-DOL15TKA.js";import"./use-debounced-value-BRubIPy_.js";import"./index-Alprks7r.js";import"./toolbar-icon-button-CUQWen_I.js";import"./use-mcp-tools-B6GJ1IzJ.js";import"./use-capability-Cjt_QiXc.js";import"./tools-list-CoSGR4hR.js";import"./use-debounced-autosave-D8zjcZFf.js";import"./index-B3rBUS7c.js";import"./sidebar-DHEI55XX.js";import"./search-input-TpD1o0pv.js";import"./github-repo-picker-Cxt1dXs8.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-BDlRoy6i.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./automation-runs-BP5jwZwN.js";import"./table-BtYXTiXL.js";import"./use-members-zsH8f_KJ.js";import"./use-org-auth-client-CsfZuvXx.js";import"./use-automations-CNP0SjEI.js";import"./use-file-configs-B8MCpqeg.js";import"./monaco-editor-Ct07z3Zk.js";import"./select-model-Bk_zgWKH.js";import"./automation-list-row-CtanYAxX.js";function mi(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const M=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const V=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const z=F,A=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,B=m.kind==="site"&&o&&n,H=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const $=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const q=O;let l;t[13]!==A?(l=e.jsx(mt,{className:"text-sm font-semibold",children:A}),t[13]=A,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==q||t[22]!==$||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==H||t[27]!==x||t[28]!==V||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==B||t[37]!==_?(S=!o||!T&&!B?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:H}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:M,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:$,onBumpFormKey:q}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=q,t[22]=$,t[23]=M,t[24]=v,t[25]=h,t[26]=H,t[27]=x,t[28]=V,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=B,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==z||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:z,children:f}),t[42]=z,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{mi as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,D as H,j as A}from"./index-B9RX5RO3.js";import{l as L,g as E,s as y}from"./scroll-area-BfODbP7V.js";import{p as O,u as k}from"./use-mcp-client-kafpdK1S.js";import{b as q,c as B}from"./use-mcp-tools-B6GJ1IzJ.js";import{u as Y}from"./index-D0ePdC1P.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-MoywLYj-.js";import{u as z,b as F}from"./chat-context-DxttoHRm.js";import{b as J}from"./shell-layout-CeOKGkX7.js";import"./agent-icon-BSrsLXl6.js";import"./AlertCircle-Cc3pQQnr.js";import"./Tool01-DiHOVm-e.js";import"./SwitchHorizontal01-CSOC8pJg.js";import"./Settings02-BOk4ED6n.js";import"./XCircle-ZaGMWVGi.js";import"./ArrowUpRight-CPi47lLx.js";import"./ZapSquare-CcnnG0hZ.js";import"./Users03-lcnaqD4R.js";import"./CheckCircle-IYpSOIKz.js";import"./ChevronUp-B5eCnRac.js";import"./ChevronDown-Dqjr8XHu.js";import"./ChevronRight-gIRWWm9p.js";import"./DotsVertical-B9u1OZLA.js";import"./Stars02-z35UXQWd.js";import"./Eye-B_K6Njxp.js";import"./ZoomOut-DACFNvoK.js";import"./Globe01-DcfQu85z.js";import"./FilterLines-CdtZHbuq.js";import"./Star01-CUuABlwW.js";import"./Globe04-C-dtu6kX.js";import"./HardDrive-4F7iUUm_.js";import"./Key01-aBzwAa0Q.js";import"./LayoutLeft-ga9aJQRS.js";import"./LinkExternal01-BGyqK5yf.js";import"./Monitor01-CEchjYQg.js";import"./Sun-D50GIoiM.js";import"./Palette-CSUU_Q3O.js";import"./Play-C8X7SGaF.js";import"./Plus--DaCpp2L.js";import"./SearchLg-D03A_NF_.js";import"./SearchMd-DkOkqB1x.js";import"./Shield01-BFegC232.js";import"./Stars01-B93nLs7X.js";import"./Trash01-Bl6o13BP.js";import"./Upload01-CUV61CF_.js";import"./User01-B1Xfry12.js";import"./Users01-B84B4zGO.js";import"./XClose-D9sLuCv4.js";import"./X-DfXvpZmg.js";import"./Zap-aGdCRLSw.js";import"./use-clock-tick-DG6k_nvs.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Ci8sC5l3.js";import"./tooltip-D0gAQvdt.js";import"./file-type-icon-COGQ4pI3.js";import"./dialog-ByONEu5t.js";import"./use-mobile-BRnq0gXl.js";import"./tab-id-AX1D_RMI.js";import"./hooks-D-BD-as_.js";import"./decopilot-sse-pool-NjmqRXjB.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-8V5L8yWN.js";import"./sheet-BuK9Bi12.js";import"./integration-icon-Dswj1ocS.js";import"./use-virtual-mcp-DEeq13OQ.js";import"./use-collections-D1SluUGz.js";import"./use-navigate-to-agent-BUEH3Z70.js";import"./use-connection-CVmz3KP_.js";import"./use-mcp-prompts-DU7dxO-n.js";import"./form-CHABcBxu.js";import"./label-BQWNN582.js";import"./input-3oIOHrz2.js";import"./select-Dz95Nu3h.js";import"./auth-DqnmXS22.js";import"./index-BFmT8-KG.js";import"./drawer-CQ9AL1gk.js";import"./collection-search-CxeqORsL.js";import"./tabs-CVwZOECO.js";import"./toggle-group-1YrSgTCF.js";import"./sortable.esm-B7xo8zyR.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-B9i_lQW-.js";import"./use-registry-connections-BANRRqD5.js";import"./use-organization-settings-CGyaOz7B.js";import"./useInfiniteQuery-oBkg_UFf.js";import"./use-infinite-scroll-CrPZGb0h.js";import"./extract-connection-data-2vbbo8BE.js";import"./card-BDI1wP4A.js";import"./collection-tabs-DRDrRsou.js";import"./badge-DH4mQWT5.js";import"./textarea-B3_vJOFF.js";import"./connection-form-helpers-3Yjl_wx7.js";import"./authenticate-and-persist-oauth-hpFWr1Di.js";import"./mcp-oauth-Bmzv67BA.js";import"./useSuspenseInfiniteQuery-IhLc5whf.js";import"./use-ai-providers-FahUxzCr.js";import"./connect-desktop-dialog-Cnxu0aRU.js";import"./decopilot-CzEzmWB-.js";import"./checkbox-DcR6QGwg.js";import"./skeleton-DDN7yK4d.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-CtLv43YA.js";import"./settings-section-Coon-D3Y.js";import"./popover-OJW-B2ij.js";import"./command-BTszBDx2.js";import"./index-BUkHQpou.js";import"./use-org-fs-B9PmAEV7.js";import"./dropdown-menu-DXW07_pX.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-BCE5SUu5.js";import"./task-status-icN8yzWC.js";import"./use-status-sounds-QjuHpeVO.js";import"./use-decopilot-events-C59wqgQn.js";import"./empty-state-CwoG6MJG.js";import"./toolbar-B0jymZ3i.js";import"./index-CA6YD8q2.js";import"./alert-dialog-DOL15TKA.js";import"./use-debounced-value-BRubIPy_.js";import"./index-Alprks7r.js";import"./toolbar-icon-button-CUQWen_I.js";import"./use-capability-Cjt_QiXc.js";import"./tools-list-CoSGR4hR.js";import"./switch-fhmtJkwE.js";import"./use-debounced-autosave-D8zjcZFf.js";import"./index-B3rBUS7c.js";import"./sidebar-DHEI55XX.js";import"./search-input-TpD1o0pv.js";import"./github-repo-picker-Cxt1dXs8.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-BDlRoy6i.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./automation-runs-BP5jwZwN.js";import"./table-BtYXTiXL.js";import"./use-members-zsH8f_KJ.js";import"./use-org-auth-client-CsfZuvXx.js";import"./use-automations-CNP0SjEI.js";import"./use-file-configs-B8MCpqeg.js";import"./monaco-editor-Ct07z3Zk.js";import"./select-model-Bk_zgWKH.js";import"./automation-list-row-CtanYAxX.js";import"./required-auth-layout--fo-PixH.js";import"./use-org-sso-CBiodNLP.js";const Q={};function W(S){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const b=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const D=G(C.content);D.content.length>0&&(f(!0),I({tiptapDoc:D}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const j=_;let P;t[18]!==b?(P={tool:b},t[18]=b,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let v;return t[26]!==r||t[27]!==j||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:r,onMessage:j,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=j,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function we(S){const t=$.c(24),{connectionId:r,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{we as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as S,j as r}from"./index-B9RX5RO3.js";import{I as T}from"./input-3oIOHrz2.js";import{L as C}from"./label-BQWNN582.js";import{T as L}from"./textarea-B3_vJOFF.js";import{au as A,av as R,at as D,aw as J,ax as K}from"./index-D0ePdC1P.js";import{u as M,s as P}from"./primitives-IVgrX9ac.js";import"./index-BFmT8-KG.js";import"./SwitchHorizontal01-CSOC8pJg.js";import"./chat-context-DxttoHRm.js";import"./hooks-D-BD-as_.js";import"./use-mcp-client-kafpdK1S.js";import"./auth-DqnmXS22.js";import"./decopilot-sse-pool-NjmqRXjB.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-DEeq13OQ.js";import"./use-collections-D1SluUGz.js";import"./use-ai-providers-FahUxzCr.js";import"./studio-tools-8V5L8yWN.js";import"./use-decopilot-events-C59wqgQn.js";import"./tab-id-AX1D_RMI.js";import"./use-organization-settings-CGyaOz7B.js";import"./scroll-area-BfODbP7V.js";import"./agent-icon-BSrsLXl6.js";import"./AlertCircle-Cc3pQQnr.js";import"./Tool01-DiHOVm-e.js";import"./Settings02-BOk4ED6n.js";import"./XCircle-ZaGMWVGi.js";import"./ArrowUpRight-CPi47lLx.js";import"./ZapSquare-CcnnG0hZ.js";import"./Users03-lcnaqD4R.js";import"./CheckCircle-IYpSOIKz.js";import"./ChevronUp-B5eCnRac.js";import"./ChevronDown-Dqjr8XHu.js";import"./ChevronRight-gIRWWm9p.js";import"./DotsVertical-B9u1OZLA.js";import"./Stars02-z35UXQWd.js";import"./Eye-B_K6Njxp.js";import"./ZoomOut-DACFNvoK.js";import"./Globe01-DcfQu85z.js";import"./FilterLines-CdtZHbuq.js";import"./Star01-CUuABlwW.js";import"./Globe04-C-dtu6kX.js";import"./HardDrive-4F7iUUm_.js";import"./Key01-aBzwAa0Q.js";import"./LayoutLeft-ga9aJQRS.js";import"./LinkExternal01-BGyqK5yf.js";import"./Monitor01-CEchjYQg.js";import"./Sun-D50GIoiM.js";import"./Palette-CSUU_Q3O.js";import"./Play-C8X7SGaF.js";import"./Plus--DaCpp2L.js";import"./SearchLg-D03A_NF_.js";import"./SearchMd-DkOkqB1x.js";import"./Shield01-BFegC232.js";import"./Stars01-B93nLs7X.js";import"./Trash01-Bl6o13BP.js";import"./Upload01-CUV61CF_.js";import"./User01-B1Xfry12.js";import"./Users01-B84B4zGO.js";import"./XClose-D9sLuCv4.js";import"./X-DfXvpZmg.js";import"./Zap-aGdCRLSw.js";import"./use-clock-tick-DG6k_nvs.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Ci8sC5l3.js";import"./tooltip-D0gAQvdt.js";import"./file-type-icon-COGQ4pI3.js";import"./dialog-ByONEu5t.js";import"./use-mobile-BRnq0gXl.js";import"./content-blocks-o63cs2vh.js";import"./types-MoywLYj-.js";import"./shell-layout-CeOKGkX7.js";import"./avatar-CtLv43YA.js";import"./required-auth-layout--fo-PixH.js";import"./use-org-sso-CBiodNLP.js";import"./sheet-BuK9Bi12.js";import"./integration-icon-Dswj1ocS.js";import"./use-navigate-to-agent-BUEH3Z70.js";import"./use-connection-CVmz3KP_.js";import"./use-mcp-prompts-DU7dxO-n.js";import"./form-CHABcBxu.js";import"./select-Dz95Nu3h.js";import"./drawer-CQ9AL1gk.js";import"./collection-search-CxeqORsL.js";import"./tabs-CVwZOECO.js";import"./toggle-group-1YrSgTCF.js";import"./sortable.esm-B7xo8zyR.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-B9i_lQW-.js";import"./use-registry-connections-BANRRqD5.js";import"./useInfiniteQuery-oBkg_UFf.js";import"./use-infinite-scroll-CrPZGb0h.js";import"./extract-connection-data-2vbbo8BE.js";import"./card-BDI1wP4A.js";import"./collection-tabs-DRDrRsou.js";import"./badge-DH4mQWT5.js";import"./connection-form-helpers-3Yjl_wx7.js";import"./authenticate-and-persist-oauth-hpFWr1Di.js";import"./mcp-oauth-Bmzv67BA.js";import"./useSuspenseInfiniteQuery-IhLc5whf.js";import"./connect-desktop-dialog-Cnxu0aRU.js";import"./decopilot-CzEzmWB-.js";import"./checkbox-DcR6QGwg.js";import"./skeleton-DDN7yK4d.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Coon-D3Y.js";import"./popover-OJW-B2ij.js";import"./command-BTszBDx2.js";import"./index-BUkHQpou.js";import"./use-org-fs-B9PmAEV7.js";import"./dropdown-menu-DXW07_pX.js";import"./question-004-sINsf4GQ.js";import"./shell-route-loading-BCE5SUu5.js";import"./task-status-icN8yzWC.js";import"./use-status-sounds-QjuHpeVO.js";import"./empty-state-CwoG6MJG.js";import"./toolbar-B0jymZ3i.js";import"./index-CA6YD8q2.js";import"./alert-dialog-DOL15TKA.js";import"./use-debounced-value-BRubIPy_.js";import"./index-Alprks7r.js";import"./toolbar-icon-button-CUQWen_I.js";import"./use-mcp-tools-B6GJ1IzJ.js";import"./use-capability-Cjt_QiXc.js";import"./tools-list-CoSGR4hR.js";import"./switch-fhmtJkwE.js";import"./use-debounced-autosave-D8zjcZFf.js";import"./index-B3rBUS7c.js";import"./sidebar-DHEI55XX.js";import"./search-input-TpD1o0pv.js";import"./github-repo-picker-Cxt1dXs8.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-BDlRoy6i.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./automation-runs-BP5jwZwN.js";import"./table-BtYXTiXL.js";import"./use-members-zsH8f_KJ.js";import"./use-org-auth-client-CsfZuvXx.js";import"./use-automations-CNP0SjEI.js";import"./use-file-configs-B8MCpqeg.js";import"./monaco-editor-Ct07z3Zk.js";import"./select-model-Bk_zgWKH.js";import"./automation-list-row-CtanYAxX.js";const $={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},q={authors:"Author"};function Nr(B){const t=S.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:g,block:f}=B;let y;t[0]!==w||t[1]!==v||t[2]!==j?(y={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=y):y=t[3];const m=A(y);let d;t[4]!==f||t[5]!==p?(d=R(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const F=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:J(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=M(F,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(D,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(K,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:u=>a(o.key,u),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(C,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:P(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:P(i[o.key]),placeholder:o.placeholder,onChange:u=>a(o.key,u.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let x;t[29]!==c?(x=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=x):x=t[30];let b;return t[31]!==x||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,x]}),t[31]=x,t[32]=n,t[33]=b):b=t[33],b}export{Nr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Cbb7CHwY.js","assets/index-B9RX5RO3.js","assets/index-C1FJSmcm.css","assets/XCircle-ZaGMWVGi.js","assets/CheckCircle-IYpSOIKz.js","assets/Settings02-BOk4ED6n.js","assets/use-mcp-client-kafpdK1S.js","assets/auth-DqnmXS22.js","assets/useInfiniteQuery-oBkg_UFf.js","assets/use-infinite-scroll-CrPZGb0h.js","assets/studio-tools-8V5L8yWN.js","assets/badge-DH4mQWT5.js","assets/input-3oIOHrz2.js","assets/dropdown-menu-DXW07_pX.js","assets/ChevronUp-B5eCnRac.js","assets/ChevronRight-gIRWWm9p.js","assets/DotsVertical-B9u1OZLA.js","assets/table-BtYXTiXL.js","assets/toggle-group-1YrSgTCF.js","assets/use-view-mode-Cq7hmxGi.js","assets/use-mobile-BRnq0gXl.js","assets/FilterLines-CdtZHbuq.js","assets/Globe01-DcfQu85z.js","assets/SearchMd-DkOkqB1x.js","assets/dialog-ByONEu5t.js","assets/X-DfXvpZmg.js","assets/AlertCircle-Cc3pQQnr.js","assets/Upload01-CUV61CF_.js","assets/alert-dialog-DOL15TKA.js","assets/card-BDI1wP4A.js","assets/Trash01-Bl6o13BP.js","assets/label-BQWNN582.js","assets/select-Dz95Nu3h.js","assets/tooltip-D0gAQvdt.js","assets/ChevronDown-Dqjr8XHu.js","assets/switch-fhmtJkwE.js","assets/textarea-B3_vJOFF.js","assets/checkbox-DcR6QGwg.js","assets/Eye-B_K6Njxp.js","assets/LinkExternal01-BGyqK5yf.js","assets/use-copy-Ci8sC5l3.js","assets/Key01-aBzwAa0Q.js","assets/Plus--DaCpp2L.js","assets/mcp-oauth-Bmzv67BA.js","assets/Play-C8X7SGaF.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,ak as o}from"./index-B9RX5RO3.js";import{R as m}from"./require-capability-BYNnfxbd.js";import"./use-capability-Cjt_QiXc.js";import"./access-gate-B8s7j6eR.js";import"./capability-load-error-Dh6R_XP7.js";const n=i.lazy(()=>o(()=>import("./registry-layout-Cbb7CHwY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as k,d as Z,j as s,B as C,bX as K,t as W,ae as ge,a as B,y as ve,q as pe,K as ce,bY as ke,bZ as Ne,L as H,r as X,b_ as Oe,b$ as _e,k as ae,b as Ce,D as Ae,e as ye,u as Te,I as Ee,b1 as $e,c0 as ze,c1 as de,c2 as Me,c3 as Le,S as Pe,O as Ie,c4 as Fe}from"./index-B9RX5RO3.js";import{A as te}from"./avatar-CtLv43YA.js";import{t as xe,a as Re}from"./Users03-lcnaqD4R.js";import{i as qe}from"./SearchLg-D03A_NF_.js";import{i as De,s as Ue,a as L,n as Ke}from"./Stars02-z35UXQWd.js";import{s as Ge}from"./XClose-D9sLuCv4.js";import{i as U}from"./CheckCircle-IYpSOIKz.js";import{i as ue}from"./FilterLines-CdtZHbuq.js";import{i as G}from"./Zap-aGdCRLSw.js";import{d as He,c as Be,a as We,e as Ye}from"./dialog-ByONEu5t.js";import{R as Je}from"./required-auth-layout--fo-PixH.js";import{g as Qe,c as Ve,A as Xe}from"./hooks-D-BD-as_.js";import{a as Ze,m as et,S as tt}from"./use-mcp-client-kafpdK1S.js";import{n as nt}from"./tab-id-AX1D_RMI.js";import{c as st}from"./use-organization-settings-CGyaOz7B.js";import{u as ot}from"./use-org-sso-CBiodNLP.js";function it(t){const e=k.c(27),{orgName:n,orgSlug:o,orgLogo:i,domain:r}=t;let a;e[0]!==o?(a={mutationFn:async()=>{const b=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:o})}),v=await b.json();if(!b.ok||!v.success)throw new Error(v.error??"Failed to join organization");return v},onSuccess:b=>{window.location.href=`/${b.slug??o}`},onError:rt},e[0]=o,e[1]=a):a=e[1];const l=Z(a),c=at;let d;e[2]!==i||e[3]!==n?(d=i?s.jsx(te,{url:i,fallback:n.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(xe,{className:"h-6 w-6 text-primary"})}),e[2]=i,e[3]=n,e[4]=d):d=e[4];let u;e[5]!==n?(u=s.jsxs("h3",{className:"text-lg font-medium",children:["Join ",n,"?"]}),e[5]=n,e[6]=u):u=e[6];let m;e[7]!==r?(m=s.jsxs("p",{className:"text-sm text-muted-foreground",children:["Anyone with an ",s.jsxs("strong",{children:["@",r]})," email can join this organization."]}),e[7]=r,e[8]=m):m=e[8];let h;e[9]!==u||e[10]!==m?(h=s.jsxs("div",{className:"space-y-2",children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11];let y;e[12]!==l?(y=()=>l.mutate(),e[12]=l,e[13]=y):y=e[13];const g=l.isPending?"Joining…":`Enter ${n}`;let f;e[14]!==l.isPending||e[15]!==y||e[16]!==g?(f=s.jsx(C,{onClick:y,disabled:l.isPending,children:g}),e[14]=l.isPending,e[15]=y,e[16]=g,e[17]=f):f=e[17];let p;e[18]!==l.isPending?(p=s.jsx(C,{variant:"ghost",onClick:c,disabled:l.isPending,children:"Go to home"}),e[18]=l.isPending,e[19]=p):p=e[19];let x;e[20]!==f||e[21]!==p?(x=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,p]}),e[20]=f,e[21]=p,e[22]=x):x=e[22];let S;return e[23]!==x||e[24]!==d||e[25]!==h?(S=s.jsxs(K,{children:[d,h,x]}),e[23]=x,e[24]=d,e[25]=h,e[26]=S):S=e[26],S}function at(){window.location.href="/"}function rt(t){W.error(t instanceof Error?t.message:"Failed to join organization")}function me(t){const e=k.c(17),{orgSlug:n,orgName:o,reason:i}=t,r=lt,a=i==="not-found",l=a?qe:ge,c=a?"Organization not found":"No access";let d;e[0]!==a||e[1]!==o||e[2]!==n?(d=a?s.jsxs(s.Fragment,{children:["We couldn't find an organization called ",s.jsx("strong",{children:n}),"."]}):s.jsxs(s.Fragment,{children:["You don't have access to ",s.jsx("strong",{children:o??n}),".",s.jsx("br",{}),"Ask an admin to invite you."]}),e[0]=a,e[1]=o,e[2]=n,e[3]=d):d=e[3];const u=d;let m;e[4]!==l?(m=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(l,{className:"h-6 w-6 text-muted-foreground"})}),e[4]=l,e[5]=m):m=e[5];let h;e[6]!==c?(h=s.jsx("h3",{className:"text-lg font-medium",children:c}),e[6]=c,e[7]=h):h=e[7];let y;e[8]!==u?(y=s.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[8]=u,e[9]=y):y=e[9];let g;e[10]!==h||e[11]!==y?(g=s.jsxs("div",{className:"space-y-2",children:[h,y]}),e[10]=h,e[11]=y,e[12]=g):g=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(C,{onClick:r,children:"Go to home"}),e[13]=f):f=e[13];let p;return e[14]!==m||e[15]!==g?(p=s.jsxs(K,{children:[m,g,f]}),e[14]=m,e[15]=g,e[16]=p):p=e[16],p}function lt(){window.location.href="/"}function ct(t){const e=k.c(39),{invitationId:n,orgName:o,orgSlug:i,orgLogo:r}=t;let a;e[0]!==n?(a=async()=>{const O=await B.organization.acceptInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[0]=n,e[1]=a):a=e[1];let l;e[2]!==i?(l=()=>{ve(),window.location.href=`/${i}`},e[2]=i,e[3]=l):l=e[3];let c;e[4]!==a||e[5]!==l?(c={mutationFn:a,onSuccess:l,onError:mt},e[4]=a,e[5]=l,e[6]=c):c=e[6];const d=Z(c);let u;e[7]!==n?(u=async()=>{const O=await B.organization.rejectInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[7]=n,e[8]=u):u=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=ut,e[9]=m):m=e[9];let h;e[10]!==u?(h={mutationFn:u,onSuccess:m,onError:dt},e[10]=u,e[11]=h):h=e[11];const y=Z(h),g=d.isPending||y.isPending;let f;e[12]!==r||e[13]!==o?(f=r?s.jsx(te,{url:r,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(De,{className:"h-6 w-6 text-primary"})}),e[12]=r,e[13]=o,e[14]=f):f=e[14];let p;e[15]!==o?(p=s.jsxs("h3",{className:"text-lg font-medium",children:["You've been invited to ",s.jsx("strong",{children:o})]}),e[15]=o,e[16]=p):p=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept the invitation to join this organization."}),e[17]=x):x=e[17];let S;e[18]!==p?(S=s.jsxs("div",{className:"space-y-2",children:[p,x]}),e[18]=p,e[19]=S):S=e[19];let b;e[20]!==d?(b=()=>d.mutate(),e[20]=d,e[21]=b):b=e[21];const v=d.isPending?"Accepting…":"Accept invitation";let N;e[22]!==g||e[23]!==b||e[24]!==v?(N=s.jsx(C,{onClick:b,disabled:g,children:v}),e[22]=g,e[23]=b,e[24]=v,e[25]=N):N=e[25];let T;e[26]!==y?(T=()=>y.mutate(),e[26]=y,e[27]=T):T=e[27];const $=y.isPending?"Declining…":"Decline";let w;e[28]!==g||e[29]!==T||e[30]!==$?(w=s.jsx(C,{variant:"ghost",onClick:T,disabled:g,children:$}),e[28]=g,e[29]=T,e[30]=$,e[31]=w):w=e[31];let E;e[32]!==N||e[33]!==w?(E=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,w]}),e[32]=N,e[33]=w,e[34]=E):E=e[34];let z;return e[35]!==S||e[36]!==E||e[37]!==f?(z=s.jsxs(K,{children:[f,S,E]}),e[35]=S,e[36]=E,e[37]=f,e[38]=z):z=e[38],z}function dt(t){W.error(t instanceof Error?t.message:"Failed to decline invitation")}function ut(){W.success("Invitation declined"),window.location.href="/"}function mt(t){W.error(t instanceof Error?t.message:"Failed to accept invitation")}function ft(t){const e=k.c(10),{orgName:n,orgLogo:o}=t;let i;e[0]!==o||e[1]!==n?(i=o?s.jsx(te,{url:o,fallback:n.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Ue,{className:"h-6 w-6 text-primary"})}),e[0]=o,e[1]=n,e[2]=i):i=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("h3",{className:"text-lg font-medium",children:"Request pending"}),e[3]=r):r=e[3];let a;e[4]!==n?(a=s.jsxs("div",{className:"space-y-2",children:[r,s.jsxs("p",{className:"text-sm text-muted-foreground",children:["Your request to join ",s.jsx("strong",{children:n})," is waiting for an admin to approve it. You'll get access once it's approved."]})]}),e[4]=n,e[5]=a):a=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(C,{variant:"ghost",onClick:ht,children:"Go to home"}),e[6]=l):l=e[6];let c;return e[7]!==i||e[8]!==a?(c=s.jsxs(K,{children:[i,a,l]}),e[7]=i,e[8]=a,e[9]=c):c=e[9],c}function ht(){window.location.href="/"}function gt(t){const e=k.c(30),{orgName:n,orgSlug:o,orgLogo:i,domain:r}=t;let a;e[0]!==o?(a=async()=>{const v=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:o})}),N=await v.json();if(!v.ok||!N.success)throw new Error(N.error??"Failed to request access");return N},e[0]=o,e[1]=a):a=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=xt,e[2]=l):l=e[2];let c;e[3]!==a?(c={mutationFn:a,onSuccess:l,onError:yt},e[3]=a,e[4]=c):c=e[4];const d=Z(c);let u;e[5]!==i||e[6]!==n?(u=i?s.jsx(te,{url:i,fallback:n.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(xe,{className:"h-6 w-6 text-primary"})}),e[5]=i,e[6]=n,e[7]=u):u=e[7];let m;e[8]!==n?(m=s.jsxs("h3",{className:"text-lg font-medium",children:["Request to join ",n,"?"]}),e[8]=n,e[9]=m):m=e[9];let h;e[10]!==r?(h=s.jsxs("p",{className:"text-sm text-muted-foreground",children:["An admin must approve requests from ",s.jsxs("strong",{children:["@",r]})," emails before you can join."]}),e[10]=r,e[11]=h):h=e[11];let y;e[12]!==m||e[13]!==h?(y=s.jsxs("div",{className:"space-y-2",children:[m,h]}),e[12]=m,e[13]=h,e[14]=y):y=e[14];let g;e[15]!==d?(g=()=>d.mutate(),e[15]=d,e[16]=g):g=e[16];const f=d.isPending?"Requesting…":"Request to join";let p;e[17]!==d.isPending||e[18]!==g||e[19]!==f?(p=s.jsx(C,{onClick:g,disabled:d.isPending,children:f}),e[17]=d.isPending,e[18]=g,e[19]=f,e[20]=p):p=e[20];let x;e[21]!==d.isPending?(x=s.jsx(C,{variant:"ghost",onClick:pt,disabled:d.isPending,children:"Go to home"}),e[21]=d.isPending,e[22]=x):x=e[22];let S;e[23]!==p||e[24]!==x?(S=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[p,x]}),e[23]=p,e[24]=x,e[25]=S):S=e[25];let b;return e[26]!==S||e[27]!==u||e[28]!==y?(b=s.jsxs(K,{children:[u,y,S]}),e[26]=S,e[27]=u,e[28]=y,e[29]=b):b=e[29],b}function pt(){window.location.href="/"}function yt(t){W.error(t instanceof Error?t.message:"Failed to request access")}function xt(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function bt(t){const e=k.c(7);let n;e[0]!==t?(n=ce.orgAccessStatus(t),e[0]=t,e[1]=n):n=e[1];let o;e[2]!==t?(o=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=o):o=e[3];let i;return e[4]!==n||e[5]!==o?(i={queryKey:n,queryFn:o,refetchOnWindowFocus:!1},e[4]=n,e[5]=o,e[6]=i):i=e[6],pe(i)}function wt({orgSlug:t}){const{data:e}=bt(t);if(e.status!=="member"){ke()?.org===t&&Ne();const n=localStorage.getItem(H.lastOrgSlug())===t;if(n&&localStorage.removeItem(H.lastOrgSlug()),n&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?s.jsx(me,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?s.jsx(ct,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?s.jsx(it,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?s.jsx(gt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?s.jsx(ft,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):s.jsx(me,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function St(t){const e=k.c(20),{release:n,onCtaClick:o,onLearnMoreClick:i}=t;let r;e[0]!==n.eyebrow?(r=n.eyebrow&&s.jsx("p",{className:"text-xs text-muted-foreground",children:n.eyebrow}),e[0]=n.eyebrow,e[1]=r):r=e[1];let a;e[2]!==n.title?(a=s.jsx("h3",{className:"text-base font-semibold text-foreground",children:n.title}),e[2]=n.title,e[3]=a):a=e[3];let l;e[4]!==r||e[5]!==a?(l=s.jsxs("div",{children:[r,a]}),e[4]=r,e[5]=a,e[6]=l):l=e[6];let c;e[7]!==n.bullets?(c=n.bullets.map(jt),e[7]=n.bullets,e[8]=c):c=e[8];let d;e[9]!==c?(d=s.jsx("ul",{className:"flex flex-col gap-3",children:c}),e[9]=c,e[10]=d):d=e[10];let u;e[11]!==o||e[12]!==i||e[13]!==n.cta||e[14]!==n.learnMoreHref?(u=(n.cta||n.learnMoreHref)&&s.jsxs("div",{className:"flex items-center justify-between pt-1",children:[n.learnMoreHref?s.jsx("a",{href:n.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:i,className:"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline",children:"Learn More"}):s.jsx("span",{}),n.cta&&s.jsx(C,{asChild:!0,size:"sm",onClick:o,children:s.jsx("a",{href:n.cta.href,children:n.cta.label})})]}),e[11]=o,e[12]=i,e[13]=n.cta,e[14]=n.learnMoreHref,e[15]=u):u=e[15];let m;return e[16]!==l||e[17]!==d||e[18]!==u?(m=s.jsxs("div",{className:"flex flex-col gap-3",children:[l,d,u]}),e[16]=l,e[17]=d,e[18]=u,e[19]=m):m=e[19],m}function jt(t,e){return s.jsxs("li",{className:"flex items-start gap-3",children:[s.jsx(t.icon,{size:20,className:"text-muted-foreground mt-0.5 shrink-0"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),s.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const be=[{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:L,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:U,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:G,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:U,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:L,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:G,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:L,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:U,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:L,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:U,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:G,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:L,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:ue,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:U,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Re,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:G,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:U,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:L,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:ue,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:L,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:Ke,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ee="studio.release-feed.v1",re=new Set;let P="",I={},le=!1;function vt(){if(le)return P||"{}";try{return localStorage.getItem(ee)??"{}"}catch{return P||"{}"}}function we(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function fe(){const t=vt();return t!==P&&(P=t,I=we(t)),I}function kt(t){re.add(t);const e=n=>{if(!(n.key!==ee&&n.key!==null)){try{const o=localStorage.getItem(ee)??"{}",r={...we(o),...I};I=r,P=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{re.delete(t),window.removeEventListener("storage",e)}}function Nt(t){I=t,P=JSON.stringify(t);try{localStorage.setItem(ee,P),le=!1}catch{le=!0}re.forEach(e=>e())}function Ot(){const t=k.c(7),e=X.useSyncExternalStore(kt,fe,fe);let n;t[0]!==e?(n=c=>!!e[c],t[0]=e,t[1]=n):n=t[1];const o=n,i=_t;let r;t[2]!==e?(r=be.reduce((c,d)=>e[d.id]?c:c+1,0),t[2]=e,t[3]=r):r=t[3];const a=r;let l;return t[4]!==o||t[5]!==a?(l={isSeen:o,markSeen:i,unseenCount:a},t[4]=o,t[5]=a,t[6]=l):l=t[6],l}function _t(t){I[t]||Nt({...I,[t]:{seenAt:new Date().toISOString()}})}const Ct=720*60*60*1e3,At=10080*60*1e3;function Tt(t){const[e,n,o]=t.split("-").map(Number);return!e||!n||!o?new Date(t).getTime():new Date(e,n-1,o).getTime()}function Et(t){const e=be[0];if(!e)return null;const n=Tt(e.date),o=t-n;return o<0||o>Ct?null:e}function $t(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function zt(t,e){const n=$t(t);return n===null?!1:e-n>=At}function Mt(){const t=k.c(22),{data:e}=B.useSession(),{isSeen:n,markSeen:o}=Ot();let i,r,a;if(t[0]!==n||t[1]!==e?.user?.createdAt){a=Symbol.for("react.early_return_sentinel");e:{const g=Date.now();if(i=Et(g),!i){a=null;break e}if(!zt(e?.user?.createdAt,g)){a=null;break e}r=n(i.id)}t[0]=n,t[1]=e?.user?.createdAt,t[2]=i,t[3]=r,t[4]=a}else i=t[2],r=t[3],a=t[4];if(a!==Symbol.for("react.early_return_sentinel"))return a;if(r)return null;let l;t[5]!==i.id||t[6]!==o?(l=()=>o(i.id),t[5]=i.id,t[6]=o,t[7]=l):l=t[7];let c;t[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ge,{size:14}),t[8]=c):c=t[8];let d;t[9]!==l?(d=s.jsx(C,{size:"icon",variant:"ghost","aria-label":"Dismiss release announcement",className:"absolute right-1.5 top-1.5 size-7 text-muted-foreground",onClick:l,children:c}),t[9]=l,t[10]=d):d=t[10];let u,m;t[11]!==i.id||t[12]!==o?(u=()=>o(i.id),m=()=>o(i.id),t[11]=i.id,t[12]=o,t[13]=u,t[14]=m):(u=t[13],m=t[14]);let h;t[15]!==i||t[16]!==u||t[17]!==m?(h=s.jsx(St,{release:i,onCtaClick:u,onLearnMoreClick:m}),t[15]=i,t[16]=u,t[17]=m,t[18]=h):h=t[18];let y;return t[19]!==d||t[20]!==h?(y=s.jsxs("div",{role:"region","aria-label":"Release announcement",className:"relative rounded-lg border border-border bg-background p-3 shadow-sm",children:[d,h]}),t[19]=d,t[20]=h,t[21]=y):y=t[21],y}const Se=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),M=Se?"⌘":"Ctrl",A={keyboardShortcuts:{keys:[M,"K"],description:"Keyboard shortcuts"},back:{keys:[M,"["],description:"Back to previous"},focusChatInput:{keys:[M,"L"],description:"Focus chat input"},saveAndFormat:{keys:[M,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[M,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[M,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",M,"S"],description:"New task"},toggleDaemon:{keys:[M,"D"],description:"Toggle daemon logs"}},Lt=[{label:"General",shortcuts:[A.keyboardShortcuts,A.back,A.newTask,A.toggleDaemon]},{label:"Editor",shortcuts:[A.saveAndFormat]},{label:"Chat",shortcuts:[A.focusChatInput,A.togglePlanMode,A.sendMessage,A.newLine]},{label:"Questions",shortcuts:[A.selectOption]},{label:"Monitoring",shortcuts:[A.applyFilter]}];function he(t){return Se?t.metaKey:t.ctrlKey}function Pt(t){const e=k.c(5),{open:n,onOpenChange:o}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Be,{children:s.jsx(We,{children:"Keyboard Shortcuts"})}),e[0]=i):i=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(He,{className:"sm:max-w-md",children:[i,s.jsx("div",{className:"flex flex-col gap-4",children:Lt.map(It)})]}),e[1]=r):r=e[1];let a;return e[2]!==o||e[3]!==n?(a=s.jsx(Ye,{open:n,onOpenChange:o,children:r}),e[2]=o,e[3]=n,e[4]=a):a=e[4],a}function It(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ft)})]},t.label)}function Ft(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Rt)})]},t.description)}function Rt(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function qt({activeOrg:t}){return t&&(Oe(t.id,{name:t.name??void 0,slug:t.slug??void 0}),_e()),null}function Dt(t,e,n){if(!n)return null;const o=Qe(t,e);return o?o.threads.get().find(r=>r.id===n)?.branch??null:null}function je(t){return{queryKey:ce.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function fn(t){const e=k.c(10);let n;e[0]!==t?(n=je(t),e[0]=t,e[1]=n):n=e[1];const o=ae(n);let i;e[2]!==o.data?.prompts?(i=o.data?.prompts??[],e[2]=o.data?.prompts,e[3]=i):i=e[3];let r;e[4]!==o.data?.tiles?(r=o.data?.tiles??[],e[4]=o.data?.tiles,e[5]=r):r=e[5];let a;return e[6]!==o.isLoading||e[7]!==i||e[8]!==r?(a={isLoading:o.isLoading,prompts:i,tiles:r},e[6]=o.isLoading,e[7]=i,e[8]=r,e[9]=a):a=e[9],a}function Ut(t){const e=k.c(17),{orgSlug:n,orgName:o,domain:i}=t;let r;e[0]!==n?(r=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=r):r=e[1];const a=r,l=Kt;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(ge,{className:"h-6 w-6 text-primary"})}),e[2]=c):c=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==o?(u=o?s.jsxs(s.Fragment,{children:[s.jsx("strong",{children:o})," requires SSO authentication",i?` via ${i}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=i,e[5]=o,e[6]=u):u=e[6];let m;e[7]!==u?(m=s.jsxs("div",{className:"space-y-2",children:[d,s.jsx("p",{className:"text-sm text-muted-foreground",children:u})]}),e[7]=u,e[8]=m):m=e[8];let h;e[9]!==a?(h=s.jsx(C,{onClick:a,children:"Sign in with SSO"}),e[9]=a,e[10]=h):h=e[10];let y;e[11]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(C,{variant:"ghost",onClick:l,children:"Go back"}),e[11]=y):y=e[11];let g;e[12]!==h?(g=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,y]}),e[12]=h,e[13]=g):g=e[13];let f;return e[14]!==m||e[15]!==g?(f=s.jsxs(K,{children:[c,m,g]}),e[14]=m,e[15]=g,e[16]=f):f=e[16],f}function Kt(){window.location.href="/"}function Gt(t){const e=k.c(8),{org:n,children:o}=t,r=st(n.id,n.slug)?.enabled_plugins??null;let a;e[0]!==n.id||e[1]!==n.name||e[2]!==r?(a={id:n.id,organizationId:n.id,slug:"_org",name:n.name,enabledPlugins:r,ui:null},e[0]=n.id,e[1]=n.name,e[2]=r,e[3]=a):a=e[3];const l=a;let c;return e[4]!==o||e[5]!==n||e[6]!==l?(c=s.jsx(Fe,{org:n,project:l,children:o}),e[4]=o,e[5]=n,e[6]=l,e[7]=c):c=e[7],c}function Ht(){const t=Ce(),e=Ve(),{org:n,locator:o}=Ae(),i=ye({strict:!1}),r=Te({strict:!1}),a=i.org??"",l=i.taskId??"",c=(f,p,x=!0)=>t({to:"/$org/$taskId",params:{org:a,taskId:f},search:p,replace:x}),d=(f,p=!0)=>c(l,f,p),u=f=>d(p=>({...p,chat:f?1:0})),m=(f,p,x)=>c(f,S=>{const b={chat:1};if(p?b.virtualmcpid=p:S.virtualmcpid&&(b.virtualmcpid=S.virtualmcpid),x?.main)b.main=x.main;else{const v=S.main;v&&typeof v=="string"&&!nt(v)&&(b.main=v)}return x?.autosend&&(b.autosend=Xe),b},!1);return{setChatOpen:u,setTaskId:m,createNewTask:async f=>{const p=crypto.randomUUID(),x=f??r.virtualmcpid??Ze(n.id).id,b=x===r.virtualmcpid?Dt(n.slug,o,l):null;try{await e?.create({id:p,virtual_mcp_id:x,...b?{branch:b}:{}})}catch{}m(p,x)},openTab:f=>c(l||crypto.randomUUID(),p=>({...p,main:f})),toggleMain:()=>d(f=>{if(f.main!==void 0&&f.main!=="0")return{...f,main:"0"};const x={...f};return delete x.main,x})}}function Bt(){const t=k.c(52);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const o=Ee(e)?.params.org;let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},t[1]=i):i=t[1];const{taskId:r}=ye(i),[a,l]=X.useState(!1),c=$e(),d=o??"";let u;t[2]!==d?(u=je(d),t[2]=d,t[3]=u):u=t[3];const m=!!o&&!r;let h;t[4]!==u||t[5]!==m?(h={...u,enabled:m},t[4]=u,t[5]=m,t[6]=h):h=t[6],ae(h);const{data:y}=B.useSession(),g=y?.user?.id;let f;t[7]!==o||t[8]!==g?(f=o&&g?ze(g,o):null,t[7]=o,t[8]=g,t[9]=f):f=t[9];const p=f;let x,S;t[10]!==c?(x=()=>{const j=_=>{if(he(_)&&_.code==="KeyK"){_.preventDefault(),l(!0);return}he(_)&&_.code==="BracketLeft"&&c.history.canGoBack()&&(_.preventDefault(),c.history.back())};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},S=[c],t[10]=c,t[11]=x,t[12]=S):(x=t[11],S=t[12]),X.useEffect(x,S);let b;t[13]!==o?(b=ce.activeOrganization(o),t[13]=o,t[14]=b):b=t[14];let v;t[15]!==o||t[16]!==g?(v=async()=>{if(!o)return null;performance.mark("mesh:active-org-fetch:start");const{data:j}=await B.organization.getFullOrganization({query:{organizationSlug:o}}).finally(Wt),_=de(j);return j&&!_&&localStorage.setItem(H.lastOrgSlug(),o),g&&j&&Le(g,o,j),j},t[15]=o,t[16]=g,t[17]=v):v=t[17];const N=p?p.data:void 0,T=p?.updatedAt;let $;t[18]!==v||t[19]!==N||t[20]!==T||t[21]!==b?($={queryKey:b,queryFn:v,initialData:N,initialDataUpdatedAt:T,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=N,t[20]=T,t[21]=b,t[22]=$):$=t[22];const{data:w}=pe($),E=w?.id,z=w?.slug,{data:O}=ot(E,z),ne=E??"",se=z??"";let F;t[23]!==ne||t[24]!==se?(F=et({connectionId:tt,orgId:ne,orgSlug:se}),t[23]=ne,t[24]=se,t[25]=F):F=t[25];const oe=!!E&&!!z;let Y;if(t[26]!==F||t[27]!==oe?(Y={...F,enabled:oe},t[26]=F,t[27]=oe,t[28]=Y):Y=t[28],ae(Y),!w){let j;t[29]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Pe,{}),t[29]=j):j=t[29];let _;return t[30]!==o?(_=s.jsx(X.Suspense,{fallback:j,children:s.jsx(wt,{orgSlug:o})}),t[30]=o,t[31]=_):_=t[31],_}if(de(w)){localStorage.getItem(H.lastOrgSlug())===o&&localStorage.removeItem(H.lastOrgSlug());let j;return t[32]!==w.name?(j=s.jsx(Me,{orgName:w.name}),t[32]=w.name,t[33]=j):j=t[33],j}if(O?.ssoRequired&&!O.authenticated){let j;return t[34]!==w.id||t[35]!==w.name||t[36]!==w.slug||t[37]!==O.domain?(j=s.jsx(Ut,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:O.domain}),t[34]=w.id,t[35]=w.name,t[36]=w.slug,t[37]=O.domain,t[38]=j):j=t[38],j}const ie=w.logo??null;let R;t[39]!==w||t[40]!==ie?(R={...w,logo:ie},t[39]=w,t[40]=ie,t[41]=R):R=t[41];let q;t[42]!==w?(q=s.jsx(qt,{activeOrg:w}),t[42]=w,t[43]=q):q=t[43];let J,Q;t[44]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(Ie,{}),Q=s.jsx(Mt,{}),t[44]=J,t[45]=Q):(J=t[44],Q=t[45]);let D;t[46]!==a?(D=s.jsx(Pt,{open:a,onOpenChange:l}),t[46]=a,t[47]=D):D=t[47];let V;return t[48]!==R||t[49]!==q||t[50]!==D?(V=s.jsxs(Gt,{org:R,children:[q,J,Q,D]}),t[48]=R,t[49]=q,t[50]=D,t[51]=V):V=t[51],V}function Wt(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Yt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Je,{children:s.jsx(Bt,{})}),t[0]=e):e=t[0],e}const hn=Object.freeze(Object.defineProperty({__proto__:null,default:Yt,usePanelActions:Ht},Symbol.toStringTag,{value:"Module"}));export{A as K,be as R,St as a,Ht as b,fn as c,je as h,he as i,Dt as r,hn as s,Ot as u};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Cbb7CHwY.js","assets/index-B9RX5RO3.js","assets/index-C1FJSmcm.css","assets/XCircle-ZaGMWVGi.js","assets/CheckCircle-IYpSOIKz.js","assets/Settings02-BOk4ED6n.js","assets/use-mcp-client-kafpdK1S.js","assets/auth-DqnmXS22.js","assets/useInfiniteQuery-oBkg_UFf.js","assets/use-infinite-scroll-CrPZGb0h.js","assets/studio-tools-8V5L8yWN.js","assets/badge-DH4mQWT5.js","assets/input-3oIOHrz2.js","assets/dropdown-menu-DXW07_pX.js","assets/ChevronUp-B5eCnRac.js","assets/ChevronRight-gIRWWm9p.js","assets/DotsVertical-B9u1OZLA.js","assets/table-BtYXTiXL.js","assets/toggle-group-1YrSgTCF.js","assets/use-view-mode-Cq7hmxGi.js","assets/use-mobile-BRnq0gXl.js","assets/FilterLines-CdtZHbuq.js","assets/Globe01-DcfQu85z.js","assets/SearchMd-DkOkqB1x.js","assets/dialog-ByONEu5t.js","assets/X-DfXvpZmg.js","assets/AlertCircle-Cc3pQQnr.js","assets/Upload01-CUV61CF_.js","assets/alert-dialog-DOL15TKA.js","assets/card-BDI1wP4A.js","assets/Trash01-Bl6o13BP.js","assets/label-BQWNN582.js","assets/select-Dz95Nu3h.js","assets/tooltip-D0gAQvdt.js","assets/ChevronDown-Dqjr8XHu.js","assets/switch-fhmtJkwE.js","assets/textarea-B3_vJOFF.js","assets/checkbox-DcR6QGwg.js","assets/Eye-B_K6Njxp.js","assets/LinkExternal01-BGyqK5yf.js","assets/use-copy-Ci8sC5l3.js","assets/Key01-aBzwAa0Q.js","assets/Plus--DaCpp2L.js","assets/mcp-oauth-Bmzv67BA.js","assets/Play-C8X7SGaF.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,b as n,e as c,j as t,i as p,r as l,ak as f}from"./index-B9RX5RO3.js";import{R as u}from"./require-capability-BYNnfxbd.js";import"./use-capability-Cjt_QiXc.js";import"./access-gate-B8s7j6eR.js";import"./capability-load-error-Dh6R_XP7.js";const g=l.lazy(()=>f(()=>import("./registry-layout-Cbb7CHwY.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-CrPZGb0h.js";import{cJ as i}from"./index-B9RX5RO3.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./use-infinite-scroll-CrPZGb0h.js";import{cJ as u,aC as n}from"./index-B9RX5RO3.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as V,r as U,j as o,l as J,B as Y}from"./index-B9RX5RO3.js";import{n as ct,X as et,e as mt}from"./agent-icon-BSrsLXl6.js";import{i as dt}from"./ChevronRight-gIRWWm9p.js";import{L as ft}from"./label-BQWNN582.js";import{S as nt}from"./scroll-area-BfODbP7V.js";import{S as pt}from"./switch-fhmtJkwE.js";import{a as ut,T as ht,b as gt}from"./tooltip-D0gAQvdt.js";import{V as xt}from"./view-mode-toggle-CHmUT7yW.js";import"./AlertCircle-Cc3pQQnr.js";import"./Tool01-DiHOVm-e.js";import"./SwitchHorizontal01-CSOC8pJg.js";import"./Settings02-BOk4ED6n.js";import"./XCircle-ZaGMWVGi.js";import"./ArrowUpRight-CPi47lLx.js";import"./ZapSquare-CcnnG0hZ.js";import"./Users03-lcnaqD4R.js";import"./CheckCircle-IYpSOIKz.js";import"./ChevronUp-B5eCnRac.js";import"./ChevronDown-Dqjr8XHu.js";import"./DotsVertical-B9u1OZLA.js";import"./Stars02-z35UXQWd.js";import"./Eye-B_K6Njxp.js";import"./ZoomOut-DACFNvoK.js";import"./Globe01-DcfQu85z.js";import"./FilterLines-CdtZHbuq.js";import"./Star01-CUuABlwW.js";import"./Globe04-C-dtu6kX.js";import"./HardDrive-4F7iUUm_.js";import"./Key01-aBzwAa0Q.js";import"./LayoutLeft-ga9aJQRS.js";import"./LinkExternal01-BGyqK5yf.js";import"./Monitor01-CEchjYQg.js";import"./Sun-D50GIoiM.js";import"./Palette-CSUU_Q3O.js";import"./Play-C8X7SGaF.js";import"./Plus--DaCpp2L.js";import"./SearchLg-D03A_NF_.js";import"./SearchMd-DkOkqB1x.js";import"./Shield01-BFegC232.js";import"./Stars01-B93nLs7X.js";import"./Trash01-Bl6o13BP.js";import"./Upload01-CUV61CF_.js";import"./User01-B1Xfry12.js";import"./Users01-B84B4zGO.js";import"./XClose-D9sLuCv4.js";import"./X-DfXvpZmg.js";import"./Zap-aGdCRLSw.js";import"./use-clock-tick-DG6k_nvs.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Ci8sC5l3.js";import"./file-type-icon-COGQ4pI3.js";import"./dialog-ByONEu5t.js";import"./use-mobile-BRnq0gXl.js";import"./tab-id-AX1D_RMI.js";import"./content-blocks-o63cs2vh.js";import"./types-MoywLYj-.js";import"./use-mcp-client-kafpdK1S.js";import"./auth-DqnmXS22.js";import"./chat-context-DxttoHRm.js";import"./hooks-D-BD-as_.js";import"./decopilot-sse-pool-NjmqRXjB.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-DEeq13OQ.js";import"./use-collections-D1SluUGz.js";import"./use-ai-providers-FahUxzCr.js";import"./studio-tools-8V5L8yWN.js";import"./use-decopilot-events-C59wqgQn.js";import"./use-organization-settings-CGyaOz7B.js";import"./shell-layout-CeOKGkX7.js";import"./avatar-CtLv43YA.js";import"./required-auth-layout--fo-PixH.js";import"./use-org-sso-CBiodNLP.js";import"./sheet-BuK9Bi12.js";import"./integration-icon-Dswj1ocS.js";import"./use-navigate-to-agent-BUEH3Z70.js";import"./use-connection-CVmz3KP_.js";import"./use-mcp-prompts-DU7dxO-n.js";import"./form-CHABcBxu.js";import"./input-3oIOHrz2.js";import"./select-Dz95Nu3h.js";const bt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),yt=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Tt=new Date(-864e13),vt=new Date(864e13),jt=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,Nt=/\/flags\/multivariate\.ts$/;function wt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function kt(e){if(!e||typeof e!="object")return null;const{start:t,end:n}=e,r=typeof t=="string",l=typeof n=="string";if(!r&&!l)return null;const s=r?new Date(t):Tt,m=l?new Date(n):vt;return Number.isNaN(s.getTime())||Number.isNaN(m.getTime())||r&&l&&m.getTime()<=s.getTime()?null:{start:s,end:m,openStart:!r,openEnd:!l}}function rt(e,t){if(!e||typeof e!="object")return;const n=e.__resolveType;if(typeof n=="string"){if(bt.has(n)){const r=kt(e);r&&t.push(r);return}if(yt.has(n)){const r=e.matchers;if(Array.isArray(r))for(const l of r)rt(l,t)}}}function _t(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!jt.test(t))return!1;const n=e.variants;return Array.isArray(n)}function Mt(e){if(typeof e=="string"){const a=e.trim();if(a.length===0)return null;try{const i=new URL(a).pathname.split("/").filter(Boolean),d=i[i.length-1];if(d)return decodeURIComponent(d)}catch{}return a.length>80?`${a.slice(0,77)}…`:a}if(!e||typeof e!="object")return null;const t=e,n=t.config,l=t.desktop?.media,s=[t.title,t.name,t.label,t.alt,n?.title,n?.name,n?.typeAlert?.message,l?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const a of s)if(typeof a=="string"&&a.trim().length>0)return a.trim();const m=t.__resolveType;if(typeof m=="string"){const c=(m.split("/").pop()??m).replace(/\.(tsx?|jsx?)$/i,"");if(c.length>0)return c}return null}function St(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];typeof r=="number"?t.length>0?t[t.length-1]+=`[${r}]`:t.push(`[${r}]`):t.push(r)}return t.join(" · ")}function W(e,t,n,r,l){if(_t(e)){const s=e.variants,m=e.__resolveType,a=Nt.test(m)?"":St(r);s.forEach((c,i)=>{if(!c||typeof c!="object")return;const d=c,f=[];if(rt(d.rule,f),f.length===0)return;const x=Mt(d.value)??(a||n);for(const h of f)l.push({blockKey:t,blockLabel:n,innerPath:a,variantIndex:i,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:x,flagResolveType:m})});for(let c=0;c<s.length;c++){const i=s[c];i&&typeof i=="object"&&W(i.value,t,n,[...r,"variants",c,"value"],l)}return}if(Array.isArray(e)){for(let s=0;s<e.length;s++)W(e[s],t,n,[...r,s],l);return}if(e&&typeof e=="object")for(const[s,m]of Object.entries(e))s!=="__resolveType"&&W(m,t,n,[...r,s],l)}function Et(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))W(r,n,wt(n),[],t);return t.sort((n,r)=>n.start.getTime()-r.start.getTime())}function At(e){const t=[...new Set(e)].sort(),n=new Map;return t.forEach((r,l)=>{const s=l*137.508%360;n.set(r,{bg:`oklch(0.62 0.14 ${s})`,text:"white",border:`oklch(0.50 0.14 ${s})`})}),n}const Dt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function st(e,t){return e.get(t)??Dt}const $t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ot=["January","February","March","April","May","June","July","August","September","October","November","December"],it=1440*60*1e3;function P(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function at(e){return new Date(e.getFullYear(),e.getMonth(),1)}function F(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function z(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function K(e,t){return Math.round((P(e).getTime()-P(t).getTime())/it)}function Ct(e){const t=(e.getTime()-P(e).getTime())/it;return Math.min(Math.max(t,0),1)}function X(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const l=[];for(let s=0;s<7;s++)l.push(z(t,r*7+s));n.push(l)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Lt(e,t){const n=P(e[0]),r=z(n,7),l=n.getTime(),s=r.getTime(),m=[];for(const i of t){const d=P(i.start),f=P(i.end);if(f.getTime()<n.getTime()||d.getTime()>=r.getTime())continue;const u=d.getTime()<n.getTime()?n:d,x=f.getTime()>=r.getTime()?z(r,-1):f,h=K(u,n),g=K(x,u)+1;if(g<=0)continue;const b=Math.max(i.start.getTime(),l),y=Math.min(i.end.getTime(),s),T=X(new Date(b),n),p=Math.max(X(new Date(y),n)-T,0);p<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:p})}m.sort((i,d)=>i.startCol-d.startCol||d.span-i.span||i.variant.blockKey.localeCompare(d.variant.blockKey));const a=[],c=[];for(const i of m){let d=a.findIndex(f=>f<=i.startCol);d===-1&&(d=a.length,a.push(0)),a[d]=i.startCol+i.span,c.push({...i,lane:d})}return c}const q=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ot(e){const t=e.openStart?"Always":q.format(e.start),n=e.openEnd?"Ongoing":q.format(e.end);return`${t} → ${n}`}function Pt(e){const t=V.c(17),{variant:n}=e;let r;t[0]!==n.blockLabel?(r=o.jsx("div",{className:"font-semibold",children:n.blockLabel}),t[0]=n.blockLabel,t[1]=r):r=t[1];let l;t[2]!==n.innerPath?(l=n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),t[2]=n.innerPath,t[3]=l):l=t[3];let s;t[4]!==n.blockLabel||t[5]!==n.innerPath||t[6]!==n.label?(s=n.label!==n.blockLabel&&n.label!==n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.label}),t[4]=n.blockLabel,t[5]=n.innerPath,t[6]=n.label,t[7]=s):s=t[7];let m;t[8]!==n?(m=Ot(n),t[8]=n,t[9]=m):m=t[9];let a;t[10]!==m?(a=o.jsx("div",{className:"mt-1",children:m}),t[10]=m,t[11]=a):a=t[11];let c;return t[12]!==r||t[13]!==l||t[14]!==s||t[15]!==a?(c=o.jsx(gt,{children:o.jsxs("div",{className:"text-xs",children:[r,l,s,a]})}),t[12]=r,t[13]=l,t[14]=s,t[15]=a,t[16]=c):c=t[16],c}const Q=16;function It(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${Q}px, #000 calc(100% - ${Q}px), ${r})`}function lt(e){const t=V.c(26),{variant:n,color:r,style:l,children:s,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let d;t[0]!==i||t[1]!==c?(d=It(c,i),t[0]=i,t[1]=c,t[2]=d):d=t[2];const f=d;let u;t[3]!==c?(u=c&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=c,t[4]=u):u=t[4];let x;t[5]!==i?(x=i&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=i,t[6]=x):x=t[6];let h;t[7]!==f?(h=f&&{maskImage:f,WebkitMaskImage:f},t[7]=f,t[8]=h):h=t[8];let g;t[9]!==r.bg||t[10]!==r.text||t[11]!==l||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:r.bg,color:r.text,borderRadius:4,...u,...x,...h,...l},t[9]=r.bg,t[10]=r.text,t[11]=l,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==s?(b=o.jsx("span",{className:"truncate",children:s}),t[16]=s,t[17]=b):b=t[17];let y;t[18]!==g||t[19]!==b?(y=o.jsx(ut,{asChild:!0,children:o.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:g,children:b})}),t[18]=g,t[19]=b,t[20]=y):y=t[20];let T;t[21]!==n?(T=o.jsx(Pt,{variant:n}),t[21]=n,t[22]=T):T=t[22];let p;return t[23]!==T||t[24]!==y?(p=o.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=p):p=t[25],p}function Mn(e){const t=V.c(49),{decofile:n}=e,[r,l]=U.useState("calendar"),[s,m]=U.useState(Bt),[a,c]=U.useState(!1);let i,d,f;if(t[0]!==n||t[1]!==a){const E=Et(n);i=E.filter(Ht).length,f=a?E:E.filter(Vt),d=At(f.map(Ft)),t[0]=n,t[1]=a,t[2]=i,t[3]=d,t[4]=f}else i=t[2],d=t[3],f=t[4];const u=d;let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>m(at(new Date)),t[5]=x):x=t[5];const h=x;let g;t[6]!==r?(g=()=>m(E=>r==="calendar"?F(E,-1):F(E,-3)),t[6]=r,t[7]=g):g=t[7];const b=g;let y;t[8]!==r?(y=()=>m(E=>r==="calendar"?F(E,1):F(E,3)),t[8]=r,t[9]=y):y=t[9];const T=y;let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=p):p=t[10];let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(ct,{size:16}),t[11]=w):w=t[11];let k;t[12]!==b?(k=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:b,"aria-label":"Previous",children:w}),t[12]=b,t[13]=k):k=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx(dt,{size:16}),t[14]=_):_=t[14];let M;t[15]!==T?(M=o.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:T,"aria-label":"Next",children:_}),t[15]=T,t[16]=M):M=t[16];const A=ot[s.getMonth()];let S;t[17]!==s?(S=s.getFullYear(),t[17]=s,t[18]=S):S=t[18];let v;t[19]!==A||t[20]!==S?(v=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",S]}),t[19]=A,t[20]=S,t[21]=v):v=t[21];let j;t[22]!==v||t[23]!==k||t[24]!==M?(j=o.jsxs("div",{className:"flex items-center gap-2",children:[p,k,M,v]}),t[22]=v,t[23]=k,t[24]=M,t[25]=j):j=t[25];let D;t[26]!==i||t[27]!==a?(D=i>0&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(pt,{id:"show-ongoing",checked:a,onCheckedChange:c}),o.jsxs(ft,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:["Show ongoing (",i,")"]})]}),t[26]=i,t[27]=a,t[28]=D):D=t[28];let L;t[29]===Symbol.for("react.memo_cache_sentinel")?(L={value:"calendar",icon:o.jsx(et,{}),label:"Calendar"},t[29]=L):L=t[29];let I;t[30]===Symbol.for("react.memo_cache_sentinel")?(I=[L,{value:"timeline",icon:o.jsx(mt,{}),label:"Timeline"}],t[30]=I):I=t[30];let N;t[31]!==r?(N=o.jsx(xt,{value:r,onValueChange:l,options:I}),t[31]=r,t[32]=N):N=t[32];let R;t[33]!==D||t[34]!==N?(R=o.jsxs("div",{className:"flex items-center gap-4",children:[D,N]}),t[33]=D,t[34]=N,t[35]=R):R=t[35];let $;t[36]!==j||t[37]!==R?($=o.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,R]}),t[36]=j,t[37]=R,t[38]=$):$=t[38];let C;t[39]!==u||t[40]!==s||t[41]!==i||t[42]!==a||t[43]!==f||t[44]!==r?(C=f.length===0?o.jsx(Wt,{hiddenOngoing:a?0:i}):r==="calendar"?o.jsx(Ut,{monthStart:s,variants:f,colorMap:u}):o.jsx(Jt,{monthStart:s,variants:f,colorMap:u}),t[39]=u,t[40]=s,t[41]=i,t[42]=a,t[43]=f,t[44]=r,t[45]=C):C=t[45];let O;return t[46]!==$||t[47]!==C?(O=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[$,C]}),t[46]=$,t[47]=C,t[48]=O):O=t[48],O}function Ft(e){return e.blockKey}function Vt(e){return!e.openEnd}function Ht(e){return e.openEnd}function Bt(){return at(new Date)}function Wt(e){const t=V.c(3),{hiddenOngoing:n}=e,r=n===void 0?0:n;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(et,{size:24,className:"text-muted-foreground/60"}),t[0]=l):l=t[0];let s;return t[1]!==r?(s=o.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[l,r>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No dated variants in view."}),o.jsxs("div",{className:"text-xs text-muted-foreground/80",children:[r," ongoing"," ",r===1?"variant is":"variants are"," hidden — enable “Show ongoing” to view."]})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No scheduled variants."}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]})]}),t[1]=r,t[2]=s):s=t[2],s}const G=20,Z=2,tt=28,zt=6;function Ut(e){const t=V.c(17),{monthStart:n,variants:r,colorMap:l}=e;let s,m,a,c,i;if(t[0]!==l||t[1]!==n||t[2]!==r){const u=Rt(n),x=P(new Date);s=nt,i="flex-1 min-h-0",m="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:$t.map(Gt)}),t[8]=a):a=t[8],c=u.map((h,g)=>{const b=Lt(h,r),y=b.reduce(Yt,0),T=tt+y*(G+Z)+8;return o.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((p,w)=>{const k=p.getMonth()===n.getMonth(),_=p.getTime()===x.getTime();return o.jsx("div",{className:J("border-r last:border-r-0 px-2 pt-1.5 text-xs",k?"bg-background":"bg-muted/30 text-muted-foreground"),children:o.jsx("span",{className:J("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",_&&"bg-primary text-primary-foreground font-semibold"),children:p.getDate()})},w)}),b.map((p,w)=>{const k=st(l,p.variant.blockKey),_=tt+p.lane*(G+Z),M=p.leftUnits/7*100,A=p.widthUnits/7*100,S=p.variant.openStart&&g===0,v=p.variant.openEnd&&g===u.length-1;return o.jsxs(lt,{variant:p.variant,color:k,fadeStart:S,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[p.variant.blockLabel,p.variant.label!==p.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",p.variant.label]})]},`${g}-${w}`)})]},g)}),t[0]=l,t[1]=n,t[2]=r,t[3]=s,t[4]=m,t[5]=a,t[6]=c,t[7]=i}else s=t[3],m=t[4],a=t[5],c=t[6],i=t[7];let d;t[9]!==m||t[10]!==a||t[11]!==c?(d=o.jsxs("div",{className:m,children:[a,c]}),t[9]=m,t[10]=a,t[11]=c,t[12]=d):d=t[12];let f;return t[13]!==s||t[14]!==i||t[15]!==d?(f=o.jsx(s,{className:i,children:d}),t[13]=s,t[14]=i,t[15]=d,t[16]=f):f=t[16],f}function Yt(e,t){return Math.max(e,t.lane+1)}function Gt(e){return o.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const B=4,Kt=32,H=240;function Jt(e){const t=V.c(27),{monthStart:n,variants:r,colorMap:l}=e,s=n;let m,a,c,i,d,f;if(t[0]!==l||t[1]!==n||t[2]!==s||t[3]!==r){const h=F(n,B),g=new Date,b=new Map;for(const v of r){const j=b.get(v.blockKey)??[];j.push(v),b.set(v.blockKey,j)}const y=Array.from(b.entries()).sort(Qt),T=h.getTime()-s.getTime(),p=v=>(Math.max(s.getTime(),Math.min(h.getTime(),v.getTime()))-s.getTime())/T*100;let w;t[10]!==s?(w=(v,j)=>F(s,j),t[10]=s,t[11]=w):w=t[11];const k=Array.from({length:B},w),_=g.getTime()>=s.getTime()&&g.getTime()<=h.getTime()?p(g):null;m=nt,f="flex-1 min-h-0",a="min-w-[900px] relative";let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:H},children:"Variant / Block"}),t[12]=M):M=t[12];let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A={gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},t[13]=A):A=t[13];const S=k.map(qt);t[14]!==S?(c=o.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[M,o.jsx("div",{className:"flex-1 grid",style:A,children:S})]}),t[14]=S,t[15]=c):c=t[15],t[16]!==_?(i=_!==null&&o.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${H}px + (100% - ${H}px) * ${_} / 100)`},children:o.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:"Today"})}),t[16]=_,t[17]=i):i=t[17],d=y.map(v=>{const[j,D]=v,L=st(l,j),I=D[0]?.blockLabel??j;return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:o.jsx("div",{className:"px-3 truncate",style:{width:H},children:I})}),D.map((N,R)=>o.jsxs("div",{className:"flex border-b items-center",style:{height:Kt},children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:H},children:[o.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:L.bg}}),o.jsx("span",{className:"truncate text-foreground/80",children:N.label})]}),o.jsxs("div",{className:"relative flex-1 h-full",children:[o.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},children:k.map(Xt)}),(()=>{const $=Math.max(N.start.getTime(),s.getTime()),C=Math.min(N.end.getTime(),h.getTime());if(C<=$)return null;const O=p(new Date($)),E=p(new Date(C))-O;return o.jsx(lt,{variant:N,color:L,fadeStart:N.openStart,fadeEnd:N.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${E}% - 2px)`,height:22},children:N.label})})()]})]},R))]},j)}),t[0]=l,t[1]=n,t[2]=s,t[3]=r,t[4]=m,t[5]=a,t[6]=c,t[7]=i,t[8]=d,t[9]=f}else m=t[4],a=t[5],c=t[6],i=t[7],d=t[8],f=t[9];let u;t[18]!==a||t[19]!==c||t[20]!==i||t[21]!==d?(u=o.jsxs("div",{className:a,children:[c,i,d]}),t[18]=a,t[19]=c,t[20]=i,t[21]=d,t[22]=u):u=t[22];let x;return t[23]!==m||t[24]!==f||t[25]!==u?(x=o.jsx(m,{className:f,children:u}),t[23]=m,t[24]=f,t[25]=u,t[26]=x):x=t[26],x}function Xt(e,t){return o.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function qt(e,t){return o.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ot[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Qt(e,t){return e[0].localeCompare(t[0])}export{Mn as VariantCalendar};
|