decocms 4.60.0 → 4.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-By5V_OAI.js → AlertCircle-DAGlTauL.js} +1 -1
- package/dist/client/assets/{AreaChart-DYFue3AB.js → AreaChart-MIyjAQp9.js} +1 -1
- package/dist/client/assets/{ArrowUp-CPmpTxqA.js → ArrowUp-CbpIfhnu.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DTva-CtK.js → ArrowUpRight-DpLwyu_e.js} +1 -1
- package/dist/client/assets/{Check-BbBVbCml.js → Check-CQkTVrms.js} +1 -1
- package/dist/client/assets/{CheckCircle-CjRjq78H.js → CheckCircle-B3CY8jDS.js} +1 -1
- package/dist/client/assets/{ChevronDown-DujWjiEx.js → ChevronDown-DhIYpVW6.js} +1 -1
- package/dist/client/assets/{ChevronRight-4FTF4WqI.js → ChevronRight-CGMQ9_U1.js} +1 -1
- package/dist/client/assets/{ChevronUp-LzTIy1Gg.js → ChevronUp-Bo_9AeLR.js} +1 -1
- package/dist/client/assets/{Circle-Ba61O7v3.js → Circle-Bp5dCa5T.js} +1 -1
- package/dist/client/assets/{Copy01-B0978reE.js → Copy01-B-Bw91-9.js} +1 -1
- package/dist/client/assets/{DotsVertical-BWXuIIeo.js → DotsVertical-rms0S2mG.js} +1 -1
- package/dist/client/assets/{Eye-CLyPbWNp.js → Eye-DiRw0Qiz.js} +1 -1
- package/dist/client/assets/{FilterLines-CZvywTHD.js → FilterLines-C2Mku5dO.js} +1 -1
- package/dist/client/assets/{Globe01-c9kQJ0J1.js → Globe01-BzW3NSbG.js} +1 -1
- package/dist/client/assets/{Globe04-EfBNVCza.js → Globe04-Cp9buDFj.js} +1 -1
- package/dist/client/assets/{HardDrive-3x4L_urK.js → HardDrive-BM7rwcN-.js} +1 -1
- package/dist/client/assets/{Key01-D0e_huT5.js → Key01-tUHgEoCR.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CBWI-N6A.js → LayoutLeft-DZ-jCFY6.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CbZ5Q1kR.js → LinkExternal01-kp6-i_It.js} +1 -1
- package/dist/client/assets/{List-CKuVIidV.js → List-trC6pVdm.js} +1 -1
- package/dist/client/assets/{Loading02-OOljSfhT.js → Loading02-CUHThLam.js} +1 -1
- package/dist/client/assets/{Monitor01-CIDTmDYS.js → Monitor01-B267agOB.js} +1 -1
- package/dist/client/assets/{Package-BT2pZEKs.js → Package-T_ZOTpyK.js} +1 -1
- package/dist/client/assets/{Palette-B4t53EuZ.js → Palette-CvpDh6yH.js} +1 -1
- package/dist/client/assets/{Play-YTvPwfKb.js → Play-B1DOcowx.js} +1 -1
- package/dist/client/assets/{Plus-BQc-qQk7.js → Plus-BndSMgXV.js} +1 -1
- package/dist/client/assets/{SearchLg-Cm7KW90l.js → SearchLg-CHM0ESn_.js} +1 -1
- package/dist/client/assets/{SearchMd-C7y5LJQw.js → SearchMd-D2Dw5ika.js} +1 -1
- package/dist/client/assets/{Settings02-Cr0VpQbw.js → Settings02-C_Z4I0Fv.js} +1 -1
- package/dist/client/assets/{Shield01-D2bvXHJr.js → Shield01-DfhHg1kb.js} +1 -1
- package/dist/client/assets/{Star01-BPwcVgMJ.js → Star01-zfOxTJkJ.js} +1 -1
- package/dist/client/assets/{Stars01-z2NZeFbA.js → Stars01-BQvwTUo0.js} +1 -1
- package/dist/client/assets/{Stars02-A9_Qn88t.js → Stars02-D5YT7SQm.js} +1 -1
- package/dist/client/assets/{Sun-DBwGI45B.js → Sun-vn3d1Wcz.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CyHxNN_R.js → SwitchHorizontal01-DTta-kDo.js} +1 -1
- package/dist/client/assets/{Tool01-DTcOZbnu.js → Tool01-CLVNSbbM.js} +1 -1
- package/dist/client/assets/{Tool02-DN7RIFuA.js → Tool02-Ck98CPCG.js} +1 -1
- package/dist/client/assets/{Trash01-CRdtidTM.js → Trash01-BAtkdZ_P.js} +1 -1
- package/dist/client/assets/{TrendUp01-CFBaEMFF.js → TrendUp01-C0oRXmsG.js} +1 -1
- package/dist/client/assets/{Upload01-Cwtb67Lw.js → Upload01-D2kAayNK.js} +1 -1
- package/dist/client/assets/{User01-dV6U41aQ.js → User01-DKKGw2UE.js} +1 -1
- package/dist/client/assets/{Users01-DfR0NZI2.js → Users01-DnpgqZo2.js} +1 -1
- package/dist/client/assets/{Users03-D26TNI6S.js → Users03-BaqhajkW.js} +1 -1
- package/dist/client/assets/{X-9ap9xtG7.js → X-ukK64B_p.js} +1 -1
- package/dist/client/assets/{XCircle-DTf-SPGi.js → XCircle-B61g0Em1.js} +1 -1
- package/dist/client/assets/{XClose-Bx_SHZf9.js → XClose-DSwVoJ4X.js} +1 -1
- package/dist/client/assets/{Zap-DTYY_yG6.js → Zap-CQek3oek.js} +1 -1
- package/dist/client/assets/{ZapSquare-CSYmmZIg.js → ZapSquare-MnTb6qUC.js} +1 -1
- package/dist/client/assets/{ZoomOut-BfjzuKIF.js → ZoomOut-BEgIfWMd.js} +1 -1
- package/dist/client/assets/{access-gate-5OdRTd9-.js → access-gate-C5PfIkp_.js} +1 -1
- package/dist/client/assets/{add-section-modal-Bh2DSNN9.js → add-section-modal-S88chbGR.js} +1 -1
- package/dist/client/assets/{agent-icon-DdKclnWr.js → agent-icon-DCI_kWkQ.js} +1 -1
- package/dist/client/assets/{agents-list-DlTu2Um8.js → agents-list-C3DlDPHU.js} +1 -1
- package/dist/client/assets/{ai-providers-uAoTUNGY.js → ai-providers-p-mCKizc.js} +1 -1
- package/dist/client/assets/{alert-dialog-CySfFhdC.js → alert-dialog-SvFNgDAx.js} +1 -1
- package/dist/client/assets/{alert-BTdHvxv9.js → alert-w0pRm3Ye.js} +1 -1
- package/dist/client/assets/{app-editor-CeiK6G7B.js → app-editor-mQZXlJO1.js} +1 -1
- package/dist/client/assets/{auth-BiABWEcr.js → auth-D5nv6qUT.js} +1 -1
- package/dist/client/assets/{auth-catchall-CIaQOvQ2.js → auth-catchall-D8ghA-q4.js} +1 -1
- package/dist/client/assets/{auth-entry-DuUkflLb.js → auth-entry-C0BeFSAL.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DuFVX_V2.js → auth-split-layout-Cuk7s4Fv.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BnB-i5Hx.js → authenticate-and-persist-oauth-Cs7_VHEO.js} +1 -1
- package/dist/client/assets/{automation-list-row-fGuDXKMz.js → automation-list-row-CkbC4GZH.js} +1 -1
- package/dist/client/assets/{automation-runs-Dk0QSvXf.js → automation-runs-0jNiDOC_.js} +1 -1
- package/dist/client/assets/{automations-BfAuQT3p.js → automations-CObjGi18.js} +1 -1
- package/dist/client/assets/{autosend-OBVQJIwA.js → autosend-DlnrNbeW.js} +1 -1
- package/dist/client/assets/{avatar-D6tfDvwN.js → avatar-CYrddKyv.js} +1 -1
- package/dist/client/assets/{badge-BeBCWRwF.js → badge-BQjWTAmy.js} +1 -1
- package/dist/client/assets/{block-document-ohDylXKj.js → block-document-BbAS0up9.js} +1 -1
- package/dist/client/assets/{brand-context-feu1Zzai.js → brand-context-D5QNytBy.js} +1 -1
- package/dist/client/assets/{buckets-BIShXHgT.js → buckets-B2OyFmht.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DOc5PpcE.js → bulk-category-panel-g5pevuzr.js} +1 -1
- package/dist/client/assets/{calendar-B8LPJQzI.js → calendar-BZEYQWys.js} +1 -1
- package/dist/client/assets/{capability-load-error-CWu6wHWg.js → capability-load-error-Di-gNbEE.js} +1 -1
- package/dist/client/assets/{card-DQteBSZy.js → card-C71rqWCY.js} +1 -1
- package/dist/client/assets/{category-editor-DYMd2s4M.js → category-editor-CWM1tU47.js} +1 -1
- package/dist/client/assets/{chat-context-BFU9KNJs.js → chat-context-BMW1fK19.js} +1 -1
- package/dist/client/assets/{checkbox-DyFXnv_N.js → checkbox-BTo7CKhD.js} +1 -1
- package/dist/client/assets/{cli-auth-success-D86WoQgn.js → cli-auth-success-Cqca9Nbv.js} +1 -1
- package/dist/client/assets/{collection-detail-CnvXlo2s.js → collection-detail-DinSV2em.js} +1 -1
- package/dist/client/assets/{collection-display-button-BkU2D40S.js → collection-display-button-D-A8zEDp.js} +1 -1
- package/dist/client/assets/{collection-search-DUDcpj0N.js → collection-search-pUUIAKXN.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-4ppIv-p9.js → collection-table-wrapper-Drk8o7iu.js} +1 -1
- package/dist/client/assets/{collection-tabs-BoJeinsY.js → collection-tabs-BAurpL4U.js} +1 -1
- package/dist/client/assets/{command-N6cziNOU.js → command-BVOOO02Z.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CftlY9zF.js → commerce-onboarding-CkHtx3Vn.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-D5uIE_v3.js → connect-desktop-dialog-DjlNOENW.js} +1 -1
- package/dist/client/assets/{connection-card-CjpTLTCF.js → connection-card-ozCISq4f.js} +1 -1
- package/dist/client/assets/{connection-detail-CZqw9SA-.js → connection-detail-BLwFZG6e.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B9LwF6od.js → connection-form-helpers-1blq8y12.js} +1 -1
- package/dist/client/assets/{connections-DhGBcx8p.js → connections-BWgUo2V4.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DlhjUAGk.js → decopilot-sse-pool-CKDa5DkM.js} +1 -1
- package/dist/client/assets/{dialog-Hnvvuwtr.js → dialog-ClYAYRmD.js} +1 -1
- package/dist/client/assets/{domain-settings-LhdwESEP.js → domain-settings-Cws6RuSg.js} +1 -1
- package/dist/client/assets/{drawer-BN7xa-Kn.js → drawer-BHfpzQkJ.js} +1 -1
- package/dist/client/assets/{dropdown-menu-C1oaxvGA.js → dropdown-menu-DpW1bhzp.js} +1 -1
- package/dist/client/assets/{empty-state-2f1dk8dl.js → empty-state-C-a1elZk.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C9LhPqdN.js → extract-connection-data-DFrcqAuT.js} +1 -1
- package/dist/client/assets/{file-explorer-CT0ZNlod.js → file-explorer-CYZW3loA.js} +1 -1
- package/dist/client/assets/{file-type-icon-DCAOo88S.js → file-type-icon-DKWyyplC.js} +1 -1
- package/dist/client/assets/{files-C3TUsfg2.js → files-CPivJMUM.js} +1 -1
- package/dist/client/assets/{form-44AoMqLt.js → form-BNdKU9Dq.js} +1 -1
- package/dist/client/assets/{general-DWjuvMyc.js → general-Bb9cjsIY.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CW5PRm8S.js → github-repo-picker-C7CPZtzH.js} +1 -1
- package/dist/client/assets/{hooks-DxKHI4Sv.js → hooks-st2jEiBn.js} +1 -1
- package/dist/client/assets/{index-DLUt_tIW.js → index-1BYkUND5.js} +1 -1
- package/dist/client/assets/{index-BhNEoGT9.js → index-B2Tu0xuB.js} +1 -1
- package/dist/client/assets/index-B86H8ACF.js +1 -0
- package/dist/client/assets/{index-5UHEAMsR.js → index-BpvrxRl5.js} +1 -1
- package/dist/client/assets/{index-Cw63Whs6.js → index-CTVAda4V.js} +5 -5
- package/dist/client/assets/{index-DqAJeepK.js → index-D2g_oXYY.js} +1 -1
- package/dist/client/assets/{index-CRhm_2EO.js → index-DBRobA-m.js} +1 -1
- package/dist/client/assets/{index-hwaeRRf3.js → index-DNhAZb-t.js} +1 -1
- package/dist/client/assets/{index-BvOxfdXi.js → index-D_6BVyXJ.js} +1 -1
- package/dist/client/assets/{index-Bz0Py2rP.js → index-Dg9Fd5mD.js} +1 -1
- package/dist/client/assets/{index-DXQi4Q1O.js → index-GRB9PSKj.js} +1 -1
- package/dist/client/assets/{index-Dyecjn9n.js → index-S_g8cP5n.js} +1 -1
- package/dist/client/assets/{index-B4UIYyWJ.js → index-UlaIU46R.js} +1 -1
- package/dist/client/assets/{index-DcIBnpEi.js → index-oRUXeO_q.js} +3 -3
- package/dist/client/assets/{index-redirect-BZ5Y2gfs.js → index-redirect-Dh080QB_.js} +1 -1
- package/dist/client/assets/{input-CzqITCIW.js → input--jaCPjE2.js} +1 -1
- package/dist/client/assets/{integration-icon-ZhMn59o3.js → integration-icon-JxE4r7FJ.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-sUSWgiSG.js → invite-member-dialog-DjLLH0ZG.js} +1 -1
- package/dist/client/assets/{label-XzNlba7M.js → label-BlrGf89p.js} +1 -1
- package/dist/client/assets/{layout-B74lGCBQ.js → layout-D9e3OrKt.js} +1 -1
- package/dist/client/assets/{login-CYG6CxNP.js → login-BSlqOqcd.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CpkgHFkt.js → mcp-oauth-AxamdNEM.js} +1 -1
- package/dist/client/assets/{members-CwzXHe9g.js → members-D85DEhNy.js} +1 -1
- package/dist/client/assets/{monaco-editor-oYFtE1AD.js → monaco-editor-Vus30gf1.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Gf4MDwb4.js → monitoring-stats-row-CPhHb-t-.js} +1 -1
- package/dist/client/assets/{oauth-callback-DUYwo8XA.js → oauth-callback-BbluzVyT.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CH7ngq6_.js → oauth-callback-ai-provider-B0q9de98.js} +1 -1
- package/dist/client/assets/{onboarding-EKsWcCLU.js → onboarding-DythzV9-.js} +1 -1
- package/dist/client/assets/{org-install-VWhntSAF.js → org-install-BkpWkVoe.js} +1 -1
- package/dist/client/assets/{org-layout-B0YkVceJ.js → org-layout-lx7lOPhY.js} +1 -1
- package/dist/client/assets/{organization-choice-CmuJBrOp.js → organization-choice-CWKezDdt.js} +1 -1
- package/dist/client/assets/{orgs-hY3hGpI2.js → orgs-Cv89Ks-z.js} +1 -1
- package/dist/client/assets/{page-seo-form-C5auzZh8.js → page-seo-form-CB9P0P9P.js} +1 -1
- package/dist/client/assets/page-seo-sheet-BsYRyc8C.js +1 -0
- package/dist/client/assets/{popover-CH5b_fiQ.js → popover-BEP_E0EQ.js} +1 -1
- package/dist/client/assets/{post-editor-DOvyL6wS.js → post-editor-C3RggI8L.js} +1 -1
- package/dist/client/assets/{primitives-DFbg_AMZ.js → primitives-BzwS8ncY.js} +1 -1
- package/dist/client/assets/{profile-CO8Giz28.js → profile-BQQaXFxw.js} +1 -1
- package/dist/client/assets/project-app-view-BFEV4QhN.js +1 -0
- package/dist/client/assets/record-editor-CTcq8Phb.js +1 -0
- package/dist/client/assets/registry-D4JcRrc9.js +2 -0
- package/dist/client/assets/{registry-layout-DRXLNW97.js → registry-layout-CNiGFdMZ.js} +1 -1
- package/dist/client/assets/{reports-DzupeaKs.js → reports-BJvBvA9b.js} +1 -1
- package/dist/client/assets/{require-capability-CuikEqkA.js → require-capability-BsLEmyED.js} +1 -1
- package/dist/client/assets/{required-auth-layout-B-X0Ygcy.js → required-auth-layout-DQyF_xIe.js} +1 -1
- package/dist/client/assets/{reset-password-CDNvgX42.js → reset-password-D_TsFYmY.js} +1 -1
- package/dist/client/assets/{roles-BV1-93aA.js → roles-MdFI_mdF.js} +1 -1
- package/dist/client/assets/{search-input-CWI66WZh.js → search-input-Bz2hFuEk.js} +1 -1
- package/dist/client/assets/{secrets-MwGQLxY8.js → secrets-BF2ZECAj.js} +1 -1
- package/dist/client/assets/{sections-editor-BK1kttfD.js → sections-editor-Rjn8r2D3.js} +1 -1
- package/dist/client/assets/{select-B769KgqG.js → select-BrgzOX_V.js} +1 -1
- package/dist/client/assets/{select-model-DBtqvDeJ.js → select-model-CgWW1-BL.js} +1 -1
- package/dist/client/assets/{seo-editor-DIU-XPL5.js → seo-editor-DiwEUw86.js} +1 -1
- package/dist/client/assets/{settings-layout-BeiWdJrF.js → settings-layout-BM8pLcR9.js} +1 -1
- package/dist/client/assets/{settings-section-DlrJmzQQ.js → settings-section-y4ffj1At.js} +1 -1
- package/dist/client/assets/{shell-controls-Dr0tjvY3.js → shell-controls-6tyymcGo.js} +1 -1
- package/dist/client/assets/shell-layout-Ce4WRVJF.js +1 -0
- package/dist/client/assets/{sidebar-CnVq7sh3.js → sidebar-B4MOdumX.js} +1 -1
- package/dist/client/assets/{skeleton-DDgvHM8p.js → skeleton-CXgII3Bw.js} +1 -1
- package/dist/client/assets/{sso-DiC6sEo0.js → sso-BylHOu42.js} +1 -1
- package/dist/client/assets/{store-BBj31B5C.js → store-D54xtHcf.js} +1 -1
- package/dist/client/assets/store-registry-B98Re6PZ.js +2 -0
- package/dist/client/assets/{studio-tools-Bdai-xGF.js → studio-tools-DoO0tZRE.js} +1 -1
- package/dist/client/assets/{switch-josi6Uyt.js → switch-BxGe0YL3.js} +1 -1
- package/dist/client/assets/{table-Cpz7KTQ5.js → table-C3991oKW.js} +1 -1
- package/dist/client/assets/{tabs-Bd4tTw7M.js → tabs-Cikp5jE7.js} +1 -1
- package/dist/client/assets/{textarea-CN1NcM6-.js → textarea-uGqD7j3K.js} +1 -1
- package/dist/client/assets/{toggle-group-CCVpVQJx.js → toggle-group-DwaxjPTf.js} +1 -1
- package/dist/client/assets/{toolbar-4tiJk0vY.js → toolbar-BGvLO6RZ.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-B4ns4onG.js → toolbar-icon-button-CZvOgHXD.js} +1 -1
- package/dist/client/assets/{tools-list-OlvXGJpp.js → tools-list-DEQafb6n.js} +1 -1
- package/dist/client/assets/{tooltip-FbSqyAkw.js → tooltip-D6EFrI2I.js} +1 -1
- package/dist/client/assets/{use-ai-providers-rBuyV02F.js → use-ai-providers-DANWCVaB.js} +1 -1
- package/dist/client/assets/{use-automations-eRXq8hNu.js → use-automations-BE41mYJs.js} +1 -1
- package/dist/client/assets/{use-capability-DG3TMrBr.js → use-capability-CEXpJHQ-.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Dx2kBV_T.js → use-clock-tick-PoDACkB7.js} +1 -1
- package/dist/client/assets/{use-collections-B6JlYHnr.js → use-collections-DWE5dA61.js} +1 -1
- package/dist/client/assets/{use-connection-BQbRdj4A.js → use-connection-bzmsqnbu.js} +1 -1
- package/dist/client/assets/{use-copy-DxP-67RS.js → use-copy-DXNsYnYv.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bst5H_XV.js → use-create-virtual-mcp-C3ccej0o.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DUw5dpg0.js → use-debounced-autosave-D35Yi13Z.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CEU4XuDq.js → use-debounced-value-Bek1HKp-.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BIY8ss-U.js → use-deco-credits-DnBl7ZHb.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BrhYZT96.js → use-decopilot-events-DIbAOXdz.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BITyrKJU.js → use-delete-connection-TTxlKCSt.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Bvs3xtBP.js → use-deployment-admin-D9u3BrsQ.js} +1 -1
- package/dist/client/assets/{use-file-configs-DL6xLLlG.js → use-file-configs-B70z57OV.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Y5a7xah6.js → use-infinite-scroll-Cp3fCiXF.js} +1 -1
- package/dist/client/assets/{use-join-requests-BIz68DvI.js → use-join-requests-kXa1HrsO.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CP4c9F3u.js → use-mcp-client-CjIdboe6.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Bt4ZQFfJ.js → use-mcp-tools-D8RhjXm_.js} +1 -1
- package/dist/client/assets/{use-members-BrCJmQZK.js → use-members-BKd3LPox.js} +1 -1
- package/dist/client/assets/{use-mobile-CNvoxL11.js → use-mobile-M8W7Kv1V.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-S62tKbn_.js → use-navigate-to-agent-8ICyqr4j.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-D2oZvH8p.js → use-org-auth-client-8hx0Yi1Z.js} +1 -1
- package/dist/client/assets/{use-org-sso-CuQ1DX-B.js → use-org-sso-ksTAOkzG.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Ck6IZDBi.js → use-organization-roles-D5s14_A8.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DPWTEzqv.js → use-organization-settings-BsHnInld.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Qwuyc_tK.js → use-registry-connections-BUPQ7scU.js} +1 -1
- package/dist/client/assets/{use-secrets-Bog2G1S_.js → use-secrets-BRlGD1XL.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Qyl_ERMg.js → use-status-sounds-BDbBONgL.js} +1 -1
- package/dist/client/assets/{use-view-mode-B8GphToI.js → use-view-mode-8eFM3FyD.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BYkuAhYP.js → use-virtual-mcp-CmA7MJ_3.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-gEqtoOdV.js +1 -0
- package/dist/client/assets/{useRouterState-5lGDnVdP.js → useRouterState-KH8KOLnW.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C1-97kj5.js +1 -0
- package/dist/client/assets/{users-CGznhyCC.js → users-BMkXaUmm.js} +1 -1
- package/dist/client/assets/{variant-calendar-BPf-15R_.js → variant-calendar-BZEkxfCa.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CZo99tNV.js → view-mode-toggle-DRZnhLAW.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/index-DPS1o7Hz.js +0 -1
- package/dist/client/assets/page-seo-sheet-D-IbLfTT.js +0 -1
- package/dist/client/assets/project-app-view-CQ6rdSU6.js +0 -1
- package/dist/client/assets/record-editor-BmdfGrm9.js +0 -1
- package/dist/client/assets/registry-wey5deW7.js +0 -2
- package/dist/client/assets/shell-layout-CvmkWYxb.js +0 -1
- package/dist/client/assets/store-registry-mqrT12io.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CgoqkRWJ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BW3gCCYi.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as I,j as s,a2 as Ze,r as L,l as E,R as me,H as Os,I as Ms,J as Ps,M as Ds,d as Fs,B as ht,a as ae,a3 as Es,b as xe,W as Rs,t as re,X as Ls,i as Qt,a4 as ne,e as jt,u as vt,L as Bs,a5 as Hs,a6 as Gs,a7 as Us,a8 as Ws,K as qs,m as Ks,a9 as Xs,U as Jt,O as Vs,aa as Ys}from"./index-DcIBnpEi.js";import{u as pe,S as yt,a as St,b as se,c as Q,d as U,e as Zt,f as Qs,g as es,h as Js,i as Re,j as Zs,k as en,l as tn}from"./sidebar-CnVq7sh3.js";import{u as Nt}from"./use-mobile-CNvoxL11.js";import{S as oe}from"./skeleton-DDgvHM8p.js";import{i as ts}from"./LayoutLeft-CBWI-N6A.js";import{t as _t}from"./ChevronDown-DujWjiEx.js";import{a as ue,b as fe,T as he,c as xt}from"./tooltip-FbSqyAkw.js";import{a as Ye,i as sn,b as nn,S as ln}from"./constants-CaIX_f5U.js";import{u as ss,a as Ct}from"./use-virtual-mcp-BYkuAhYP.js";import{A as je,b as It,c as zt,d as rn,e as on,f as ns,g as $t,i as an,s as cn,h as dn}from"./agent-icon-DdKclnWr.js";import{P as Ee,a as et,b as tt}from"./popover-CH5b_fiQ.js";import{i as is}from"./Check-BbBVbCml.js";import{s as Le}from"./Plus-BQc-qQk7.js";import{i as ls}from"./SearchMd-C7y5LJQw.js";import{s as mn}from"./XClose-Bx_SHZf9.js";import{A as un,a as fn,b as hn,c as xn,d as pn,e as gn,f as bn}from"./alert-dialog-CySfFhdC.js";import{F as jn,a as vn,b as yn,c as Sn,d as Nn,f as _n,e as Cn}from"./form-44AoMqLt.js";import{I as wn}from"./input-CzqITCIW.js";import{S as kn,u as An,C as In}from"./chat-context-BFU9KNJs.js";import{T as ve}from"./toolbar-icon-button-B4ns4onG.js";import{D as rs,a as os,b as as}from"./drawer-BN7xa-Kn.js";import{G as zn,a as $n}from"./github-repo-picker-CW5PRm8S.js";import{u as cs,a as wt,b as Tn,T as On}from"./hooks-DxKHI4Sv.js";import{r as Mn,u as kt}from"./shell-layout-CvmkWYxb.js";import{u as Pn,g as Dn,a as Fn,b as En,S as ds}from"./use-navigate-to-agent-S62tKbn_.js";import{g as Rn,a as ms,u as Ln,A as Bn,b as Hn}from"./use-deco-credits-BIY8ss-U.js";import{f as Gn}from"./reusable-new-chat-CouMjkYR.js";import{A as Qe}from"./avatar-D6tfDvwN.js";import{a as Tt}from"./Copy01-B0978reE.js";import{n as Un,i as Wn}from"./Globe01-c9kQJ0J1.js";import{i as qn}from"./ZoomOut-BfjzuKIF.js";import{i as Ot,a as Kn}from"./ZapSquare-CSYmmZIg.js";import{i as pt}from"./Monitor01-CIDTmDYS.js";import{n as Xn,a as Vn}from"./Sun-DBwGI45B.js";import{a as st}from"./Settings02-Cr0VpQbw.js";import{i as Yn}from"./Shield01-D2bvXHJr.js";import{a as Qn}from"./Users03-D26TNI6S.js";import{u as Jn}from"./use-deployment-admin-Bvs3xtBP.js";import"./index-DqAJeepK.js";import{I as us}from"./invite-member-dialog-sUSWgiSG.js";import{v as Zn,C as Mt}from"./connect-desktop-dialog-D5uIE_v3.js";import{u as nt}from"./use-organization-settings-DPWTEzqv.js";import{i as ei}from"./FilterLines-CZvywTHD.js";import{T as ti,a as si}from"./toggle-group-CCVpVQJx.js";import{u as ni}from"./use-mcp-client-CP4c9F3u.js";import{D as ii,a as li,f as ri,d as oi,e as ai}from"./dialog-Hnvvuwtr.js";import{C as ci,a as di,b as mi,c as ui,d as fi}from"./command-N6cziNOU.js";import{u as fs}from"./studio-tools-Bdai-xGF.js";import{i as hs}from"./Zap-DTYY_yG6.js";import{S as xs,M as hi}from"./shell-controls-Dr0tjvY3.js";import{n as xi}from"./Stars02-A9_Qn88t.js";import{g as pi,u as gi,S as bi}from"./use-clock-tick-Dx2kBV_T.js";import{a as ji}from"./format-time-BnbuEtat.js";import{i as vi}from"./ChevronRight-4FTF4WqI.js";import{T as te}from"./toolbar-4tiJk0vY.js";import"./X-9ap9xtG7.js";import"./use-collections-B6JlYHnr.js";import"./AlertCircle-By5V_OAI.js";import"./Tool01-DTcOZbnu.js";import"./ArrowUp-CPmpTxqA.js";import"./Tool02-DN7RIFuA.js";import"./XCircle-DTf-SPGi.js";import"./ArrowUpRight-DTva-CtK.js";import"./TrendUp01-CFBaEMFF.js";import"./Loading02-OOljSfhT.js";import"./CheckCircle-CjRjq78H.js";import"./ChevronUp-LzTIy1Gg.js";import"./Circle-Ba61O7v3.js";import"./DotsVertical-BWXuIIeo.js";import"./Eye-CLyPbWNp.js";import"./Star01-BPwcVgMJ.js";import"./Globe04-EfBNVCza.js";import"./SwitchHorizontal01-CyHxNN_R.js";import"./HardDrive-3x4L_urK.js";import"./Key01-D0e_huT5.js";import"./LinkExternal01-CbZ5Q1kR.js";import"./List-CKuVIidV.js";import"./Package-BT2pZEKs.js";import"./Palette-B4t53EuZ.js";import"./Play-YTvPwfKb.js";import"./SearchLg-Cm7KW90l.js";import"./Stars01-z2NZeFbA.js";import"./Trash01-CRdtidTM.js";import"./Upload01-Cwtb67Lw.js";import"./User01-dV6U41aQ.js";import"./Users01-DfR0NZI2.js";import"./label-XzNlba7M.js";import"./autosend-OBVQJIwA.js";import"./use-ai-providers-rBuyV02F.js";import"./use-decopilot-events-BrhYZT96.js";import"./decopilot-sse-pool-DlhjUAGk.js";import"./backoff-CrEUbyZT.js";import"./tab-id-bb-jjgGv.js";import"./collection-search-DUDcpj0N.js";import"./use-debounced-value-CEU4XuDq.js";import"./use-connection-BQbRdj4A.js";import"./authenticate-and-persist-oauth-BnB-i5Hx.js";import"./mcp-oauth-CpkgHFkt.js";import"./auth-BiABWEcr.js";import"./use-mcp-tools-Bt4ZQFfJ.js";import"./extract-connection-data-C9LhPqdN.js";import"./github-installations-D2vHSx02.js";import"./delay-CnY5UFtP.js";import"./required-auth-layout-B-X0Ygcy.js";import"./use-org-sso-CuQ1DX-B.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CjpTLTCF.js";import"./use-registry-connections-Qwuyc_tK.js";import"./useInfiniteQuery-CgoqkRWJ.js";import"./use-infinite-scroll-Y5a7xah6.js";import"./card-DQteBSZy.js";import"./integration-icon-ZhMn59o3.js";import"./collection-tabs-BoJeinsY.js";import"./badge-BeBCWRwF.js";import"./select-B769KgqG.js";import"./textarea-CN1NcM6-.js";import"./connection-form-helpers-B9LwF6od.js";import"./useSuspenseInfiniteQuery-BW3gCCYi.js";import"./use-org-auth-client-D2oZvH8p.js";import"./use-organization-roles-Ck6IZDBi.js";import"./index-Dyecjn9n.js";import"./differenceInSeconds-NQ4PDo0z.js";function yi(t){const e=I.c(5),{onPointerDown:n,onDoubleClick:l}=t,{state:i,isMobile:r}=pe();if(r||i==="collapsed")return null;let o,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={left:"var(--sidebar-width)"},a=s.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border"}),e[0]=o,e[1]=a):(o=e[0],a=e[1]);let m;return e[2]!==l||e[3]!==n?(m=s.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar",title:"Drag to resize, double-click to reset",onPointerDown:n,onDoubleClick:l,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize",style:o,children:a}),e[2]=l,e[3]=n,e[4]=m):m=e[4],m}const At=240,Si=400,Ni="sidebar.width";function Be(t){return Math.max(At,Math.min(Si,t))}function _i(){const t=I.c(11),[e,n]=Ze(Ni,Ci),l=L.useRef(null);let i;t[0]!==n||t[1]!==e?(i=d=>{d.preventDefault();const u=d.clientX,h=Be(e),f=l.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),x=f?Array.from(f.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const b of x)b.style.transition="none";const g=b=>{const j=Be(h+(b.clientX-u));f?.style.setProperty("--sidebar-width",`${j}px`)},p=b=>{const j=Be(h+(b.clientX-u));n(j);for(const y of x)y.style.transition="";window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",p),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",g),window.addEventListener("pointerup",p)},t[0]=n,t[1]=e,t[2]=i):i=t[2];const r=i;let o;t[3]!==n?(o=()=>{n(At)},t[3]=n,t[4]=o):o=t[4];const a=o;let m;t[5]!==e?(m=Be(e),t[5]=e,t[6]=m):m=t[6];let c;return t[7]!==r||t[8]!==a||t[9]!==m?(c={width:m,wrapperRef:l,onStartResize:r,resetWidth:a},t[7]=r,t[8]=a,t[9]=m,t[10]=c):c=t[10],c}function Ci(t){return typeof t=="number"?Be(t):At}function ps(){return[]}function gs(t){const e=I.c(3),{children:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-16 rounded-full bg-sidebar-foreground/15"})}),e[0]=l):l=e[0];let i;return e[1]!==n?(i=s.jsxs(yt,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[l,s.jsx(St,{children:s.jsx(se,{className:"gap-0.5",children:n})})]}),e[1]=n,e[2]=i):i=e[2],i}function bs(t){const e=I.c(18),{item:n}=t,{isMobile:l,setOpenMobile:i}=pe();let r;e[0]!==l||e[1]!==n||e[2]!==i?(r=()=>{me("nav_item_clicked",{nav_key:n.key,nav_label:n.label,is_active:!!n.isActive,is_mobile:l}),n.onClick?.(),l&&i(!1)},e[0]=l,e[1]=n,e[2]=i,e[3]=r):r=e[3];const o=r,a=n.key,m=n.isActive&&"z-10";let c;e[4]!==m?(c=E(m),e[4]=m,e[5]=c):c=e[5];let d;e[6]!==n.label?(d=s.jsx("span",{children:n.label}),e[6]=n.label,e[7]=d):d=e[7];let u;e[8]!==o||e[9]!==n.icon||e[10]!==n.isActive||e[11]!==n.label||e[12]!==d?(u=s.jsxs(Q,{onClick:o,isActive:n.isActive,tooltip:n.label,children:[n.icon,d]}),e[8]=o,e[9]=n.icon,e[10]=n.isActive,e[11]=n.label,e[12]=d,e[13]=u):u=e[13];let h;return e[14]!==n.key||e[15]!==c||e[16]!==u?(h=s.jsx(U,{className:c,children:u},a),e[14]=n.key,e[15]=c,e[16]=u,e[17]=h):h=e[17],h}function wi(t){const e=I.c(12),{section:n}=t;switch(n.type){case"divider":{let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Zt,{className:"my-2"}),e[0]=l):l=e[0],l}case"spacer":{let l;return e[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex-1"}),e[1]=l):l=e[1],l}case"group":{const l=n.group.label,i=n.group.defaultExpanded;let r;e[2]!==n.group.items?(r=n.group.items.map(Ai),e[2]=n.group.items,e[3]=r):r=e[3];let o;return e[4]!==n.group.defaultExpanded||e[5]!==n.group.label||e[6]!==r?(o=s.jsx(gs,{label:l,defaultExpanded:i,children:r}),e[4]=n.group.defaultExpanded,e[5]=n.group.label,e[6]=r,e[7]=o):o=e[7],o}case"items":{let l;e[8]!==n.items?(l=n.items.map(ki),e[8]=n.items,e[9]=l):l=e[9];let i;return e[10]!==l?(i=s.jsx(yt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(St,{children:s.jsx(se,{className:"gap-1.5",children:l})})}),e[10]=l,e[11]=i):i=e[11],i}case"custom":return n.content}}function ki(t){return s.jsx(bs,{item:t},t.key)}function Ai(t){return s.jsx(bs,{item:t},t.key)}function Ii(t){const e=I.c(17),{sections:n,footer:l,additionalContent:i,header:r,variant:o,contentClassName:a}=t,m=o===void 0?"sidebar":o;let c;e[0]!==r?(c=r&&s.jsx(Qs,{className:"shrink-0 h-12 flex flex-row items-center px-2 py-0 group-data-[collapsible=icon]/sidebar:hidden",children:r}),e[0]=r,e[1]=c):c=e[1];let d;e[2]!==a?(d=E("flex flex-col flex-1 px-2 pb-2 gap-0.5",a),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==n?(u=n.map(zi),e[4]=n,e[5]=u):u=e[5];let h;e[6]!==i?(h=i&&s.jsx("div",{className:"flex flex-col flex-1 min-h-0 group-data-[state=collapsed]/sidebar:mt-1 group-data-[state=expanded]/sidebar:mt-2",children:i}),e[6]=i,e[7]=h):h=e[7];let f;e[8]!==d||e[9]!==u||e[10]!==h?(f=s.jsxs(es,{className:d,children:[u,h]}),e[8]=d,e[9]=u,e[10]=h,e[11]=f):f=e[11];let x;return e[12]!==l||e[13]!==c||e[14]!==f||e[15]!==m?(x=s.jsxs(Js,{variant:m,children:[c,f,l]}),e[12]=l,e[13]=c,e[14]=f,e[15]=m,e[16]=x):x=e[16],x}function zi(t,e){return s.jsx(wi,{section:t},e)}function js(t){const e=I.c(2);let n;return e[0]!==t?(n=s.jsx(Ii,{...t}),e[0]=t,e[1]=n):n=e[1],n}js.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,n)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(oe,{className:"h-full bg-sidebar-accent rounded-md"})},n))})};function vs(t){return t.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const $i=Os({name:Ms().min(2,"Organization name is required")});function Ti(t){const e=I.c(41),{open:n,onOpenChange:l}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={resolver:Ps($i),defaultValues:{name:""}},e[0]=i):i=e[0];const r=Ds(i);let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={mutationFn:Mi,onSuccess:Oi},e[1]=o):o=e[1];const a=Fs(o),m=a.error instanceof Error?a.error.message:a.error?"Failed to create organization.":null;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsxs(hn,{children:[s.jsx(xn,{children:"Create a new organization"}),s.jsx(pn,{children:"Set up a new organization to collaborate with others."})]}),e[2]=c):c=e[2];let d;if(e[3]!==a||e[4]!==r){let N;e[6]!==a?(N=S=>a.mutateAsync(S),e[6]=a,e[7]=N):N=e[7],d=r.handleSubmit(N),e[3]=a,e[4]=r,e[5]=d}else d=e[5];let u;e[8]!==r.formState.isSubmitting?(u=N=>{const{field:S}=N;return s.jsxs(yn,{children:[s.jsx(Sn,{children:"Organization Name"}),s.jsx(Nn,{children:s.jsx(wn,{...S,placeholder:"Acme Inc.",disabled:r.formState.isSubmitting})}),s.jsx(_n,{children:"The name of your company or organization"}),S.value&&s.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["Organization URL:"," ",s.jsxs("span",{className:"font-mono",children:[typeof window<"u"?globalThis.location.origin:"","/",vs(S.value)]})]}),s.jsx(Cn,{})]})},e[8]=r.formState.isSubmitting,e[9]=u):u=e[9];let h;e[10]!==r.control||e[11]!==u?(h=s.jsx(jn,{control:r.control,name:"name",render:u}),e[10]=r.control,e[11]=u,e[12]=h):h=e[12];let f;e[13]!==m?(f=m&&s.jsx("div",{className:"text-destructive text-sm mt-2",children:m}),e[13]=m,e[14]=f):f=e[14];let x;e[15]!==a||e[16]!==r?(x=()=>{a.reset(),r.reset()},e[15]=a,e[16]=r,e[17]=x):x=e[17];let g;e[18]!==r.formState.isSubmitting||e[19]!==x?(g=s.jsx(un,{disabled:r.formState.isSubmitting,onClick:x,children:"Cancel"}),e[18]=r.formState.isSubmitting,e[19]=x,e[20]=g):g=e[20];const p=!r.formState.isValid||r.formState.isSubmitting;let b;e[21]!==r.formState.isSubmitting?(b=r.formState.isSubmitting?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(kn,{size:"xs"})," Creating..."]}):"Create Organization",e[21]=r.formState.isSubmitting,e[22]=b):b=e[22];let j;e[23]!==p||e[24]!==b?(j=s.jsx(ht,{type:"submit",variant:"default",disabled:p,children:b}),e[23]=p,e[24]=b,e[25]=j):j=e[25];let y;e[26]!==j||e[27]!==g?(y=s.jsxs(gn,{children:[g,j]}),e[26]=j,e[27]=g,e[28]=y):y=e[28];let v;e[29]!==y||e[30]!==d||e[31]!==h||e[32]!==f?(v=s.jsxs("form",{className:"space-y-6",onSubmit:d,autoComplete:"off",children:[h,f,y]}),e[29]=y,e[30]=d,e[31]=h,e[32]=f,e[33]=v):v=e[33];let _;e[34]!==r||e[35]!==v?(_=s.jsxs(fn,{children:[c,s.jsx(vn,{...r,children:v})]}),e[34]=r,e[35]=v,e[36]=_):_=e[36];let C;return e[37]!==l||e[38]!==n||e[39]!==_?(C=s.jsx(bn,{open:n,onOpenChange:l,children:_}),e[37]=l,e[38]=n,e[39]=_,e[40]=C):C=e[40],C}function Oi(t){const{orgSlug:e}=t;window.location.href=`/${e}`}async function Mi(t){const e=vs(t.name);if(!e)throw new Error("Organization slug is invalid");const n=await ae.organization.create({name:t.name,slug:e});if(n?.error)throw new Error(n.error.message||"Failed to create organization");const l=n?.data?.slug??e;if(!l)throw new Error("Failed to create organization");return{orgSlug:l}}function ys(){const t=L.useContext(Es),{data:e,refetch:n}=t.hooks.useListUserInvitations();return{invitations:(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date),refetch:()=>n?.()}}function Pi(t){let e=0;for(let l=0;l<t.length;l++)e=t.charCodeAt(l)+((e<<5)-e);const n=Math.abs(e)%360;return{backgroundColor:`hsl(${n} 55% 70%)`,color:`hsl(${n} 55% 20%)`}}function it(t){const e=I.c(13),{org:n,size:l}=t,i=l===void 0?"sm":l,r=i==="xs"?"size-5":"size-6",o=i==="xs"?"text-[9px]":"text-xs";let a;e[0]!==r?(a=E(r,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=r,e[1]=a):a=e[1];let m;e[2]!==n.logo||e[3]!==n.name?(m=n.logo?void 0:Pi(n.name),e[2]=n.logo,e[3]=n.name,e[4]=m):m=e[4];let c;e[5]!==n.logo||e[6]!==n.name||e[7]!==o?(c=n.logo?s.jsx("img",{src:n.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:E("font-semibold leading-none",o),children:n.name.slice(0,2).toUpperCase()}),e[5]=n.logo,e[6]=n.name,e[7]=o,e[8]=c):c=e[8];let d;return e[9]!==a||e[10]!==m||e[11]!==c?(d=s.jsx("div",{className:a,style:m,children:c}),e[9]=a,e[10]=m,e[11]=c,e[12]=d):d=e[12],d}function Di({invitation:t,onChanged:e}){const[n,l]=L.useState(!1),i=t.organizationName??"Unknown organization",r=async()=>{l(!0);try{const m=await ae.organization.acceptInvitation({invitationId:t.id});if(m.error){re.error(m.error.message),l(!1);return}}catch{re.error("Failed to accept invitation"),l(!1);return}re.success(`Joined ${i}`),Ls();let a;try{a=(await ae.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=a?`/${a}`:"/"},o=async()=>{l(!0);try{const a=await ae.organization.rejectInvitation({invitationId:t.id});if(a.error){re.error(a.error.message),l(!1);return}re.success("Invitation declined"),l(!1),e()}catch{re.error("Failed to decline invitation"),l(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[s.jsx(it,{org:{name:i},size:"sm"}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"truncate text-sm font-medium",children:i}),s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:"Invited to join"})]}),s.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[s.jsx(ht,{size:"sm",variant:"default",className:"h-7 text-xs",onClick:r,disabled:n,children:"Accept"}),s.jsx(ht,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground",onClick:o,disabled:n,"aria-label":`Decline invitation to ${i}`,children:s.jsx(mn,{size:14})})]})]})}function Fi(t){const e=I.c(29),{orgParam:n,onSelectOrg:l,onCreateOrg:i}=t,{data:r}=Rs(),{invitations:o,refetch:a}=ys();let m;e[0]!==n?(m=(w,z)=>w.slug===n?-1:z.slug===n?1:w.name.localeCompare(z.name),e[0]=n,e[1]=m):m=e[1];const c=[...r??[]].sort(m),[d,u]=L.useState(""),h=d.toLowerCase(),f=h?c.filter(w=>w.name.toLowerCase().includes(h)||w.slug.toLowerCase().includes(h)):c;let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ls,{size:16,className:"shrink-0 text-muted-foreground/60"}),e[2]=x):x=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=w=>u(w.target.value),e[3]=g):g=e[3];let p;e[4]!==d?(p=w=>w.key==="Escape"&&d&&u(""),e[4]=d,e[5]=p):p=e[5];let b;e[6]!==d||e[7]!==p?(b=s.jsx("input",{"data-org-switcher-search":!0,autoFocus:!0,type:"text",value:d,onChange:g,onKeyDown:p,placeholder:"Search organizations...",className:"flex-1 min-w-0 bg-transparent text-sm outline-none placeholder:text-muted-foreground/60"}),e[6]=d,e[7]=p,e[8]=b):b=e[8];let j;e[9]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Le,{size:16}),e[9]=j):j=e[9];let y;e[10]!==i?(y=s.jsx("button",{type:"button",onClick:i,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:j}),e[10]=i,e[11]=y):y=e[11];let v;e[12]!==b||e[13]!==y?(v=s.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-border/50",children:[x,b,y]}),e[12]=b,e[13]=y,e[14]=v):v=e[14];const _="flex-1 min-h-0 overflow-y-auto p-1.5 flex flex-col gap-1";let C;e[15]!==o||e[16]!==d||e[17]!==a?(C=!d&&o.map(w=>s.jsx(Di,{invitation:w,onChanged:a},w.id)),e[15]=o,e[16]=d,e[17]=a,e[18]=C):C=e[18];const N=f.length===0&&s.jsx("p",{className:"px-3 py-4 text-sm text-muted-foreground/60 text-center",children:d?`No organizations match "${d}"`:"No organizations available"});let S;e[19]!==l||e[20]!==n?(S=w=>s.jsxs("button",{type:"button",onClick:()=>l(w.slug),className:E("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",w.slug===n?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50"),children:[s.jsx(it,{org:w,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:w.name}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:w.slug})]}),w.slug===n&&s.jsx(is,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},w.id),e[19]=l,e[20]=n,e[21]=S):S=e[21];const A=f.map(S);let k;e[22]!==C||e[23]!==N||e[24]!==A?(k=s.jsxs("div",{className:_,children:[C,N,A]}),e[22]=C,e[23]=N,e[24]=A,e[25]=k):k=e[25];let $;return e[26]!==k||e[27]!==v?($=s.jsxs(s.Fragment,{children:[v,k]}),e[26]=k,e[27]=v,e[28]=$):$=e[28],$}function Ss(t){const e=I.c(22),{trigger:n,orgParam:l,align:i,side:r}=t,o=i===void 0?"start":i,a=r===void 0?"bottom":r,m=xe(),[c,d]=L.useState(!1),[u,h]=L.useState(!1);let f;e[0]!==n?(f=s.jsx(Ee,{asChild:!0,children:n}),e[0]=n,e[1]=f):f=e[1];const x=String(c);let g;e[2]!==m?(g=C=>{d(!1),m({to:"/$org",params:{org:C}})},e[2]=m,e[3]=g):g=e[3];let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{d(!1),h(!0)},e[4]=p):p=e[4];let b;e[5]!==l||e[6]!==x||e[7]!==g?(b=s.jsx(Fi,{orgParam:l,onSelectOrg:g,onCreateOrg:p},x),e[5]=l,e[6]=x,e[7]=g,e[8]=b):b=e[8];let j;e[9]!==o||e[10]!==a||e[11]!==b?(j=s.jsx(et,{side:a,align:o,sideOffset:8,collisionPadding:16,className:"w-[300px] p-0 flex flex-col max-h-[440px]",onOpenAutoFocus:Ri,onCloseAutoFocus:Ei,children:b}),e[9]=o,e[10]=a,e[11]=b,e[12]=j):j=e[12];let y;e[13]!==c||e[14]!==f||e[15]!==j?(y=s.jsxs(tt,{open:c,onOpenChange:d,children:[f,j]}),e[13]=c,e[14]=f,e[15]=j,e[16]=y):y=e[16];let v;e[17]!==u?(v=s.jsx(Ti,{open:u,onOpenChange:h}),e[17]=u,e[18]=v):v=e[18];let _;return e[19]!==v||e[20]!==y?(_=s.jsxs(s.Fragment,{children:[y,v]}),e[19]=v,e[20]=y,e[21]=_):_=e[21],_}function Ei(t){return t.preventDefault()}function Ri(t){t.preventDefault(),t.currentTarget?.querySelector("[data-org-switcher-search]")?.focus()}function Li(t){const e=I.c(21),{value:n,onChange:l,placeholder:i,onKeyDown:r,className:o,isSearching:a,disabled:m}=t,c=i===void 0?"Search...":i;let d;e[0]!==o?(d=E("shrink-0 w-full border-b border-border h-12",o),e[0]=o,e[1]=d):d=e[1];const u=m?"cursor-not-allowed opacity-50":"cursor-text";let h;e[2]!==u?(h=E("flex items-center gap-2.5 h-12 px-4",u),e[2]=u,e[3]=h):h=e[3];let f;e[4]!==a?(f=a?s.jsx(Qt,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):s.jsx(ls,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=a,e[5]=f):f=e[5];let x;e[6]!==l?(x=j=>l(j.target.value),e[6]=l,e[7]=x):x=e[7];let g;e[8]!==m||e[9]!==r||e[10]!==c||e[11]!==x||e[12]!==n?(g=s.jsx("input",{type:"text",value:n,onChange:x,onKeyDown:r,placeholder:c,disabled:m,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=m,e[9]=r,e[10]=c,e[11]=x,e[12]=n,e[13]=g):g=e[13];let p;e[14]!==h||e[15]!==f||e[16]!==g?(p=s.jsxs("label",{className:h,children:[f,g]}),e[14]=h,e[15]=f,e[16]=g,e[17]=p):p=e[17];let b;return e[18]!==d||e[19]!==p?(b=s.jsx("div",{className:d,children:p}),e[18]=d,e[19]=p,e[20]=b):b=e[20],b}const Bi="Select an existing agent";function Hi(t){const e=I.c(5),{children:n}=t;let l;e[0]!==n?(l=s.jsx(ue,{asChild:!0,children:n}),e[0]=n,e[1]=l):l=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(fe,{side:"right",sideOffset:8,children:Bi}),e[2]=i):i=e[2];let r;return e[3]!==l?(r=s.jsxs(he,{defaultOpen:!0,delayDuration:0,children:[l,i]}),e[3]=l,e[4]=r):r=e[4],r}function Gi(t){const e=xe(),{create:n}=cs(),{locator:l}=ne(),i=jt({strict:!1}),r=vt({strict:!1});return async o=>{const a=crypto.randomUUID(),m=o===r.virtualmcpid?Mn(t,l,i.taskId??""):null;try{await n({id:a,virtual_mcp_id:o,...m?{branch:m}:{}})}catch{}e({to:"/$org/$taskId",params:{org:t,taskId:a},search:{virtualmcpid:o}})}}function dt(t){const e=I.c(20),{agent:n,selected:l,onClick:i}=t,r=l?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50";let o;e[0]!==r?(o=E("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",r),e[0]=r,e[1]=o):o=e[1];let a;e[2]!==n.icon||e[3]!==n.title?(a=s.jsx(je,{icon:n.icon,name:n.title,size:"xs",className:"shrink-0"}),e[2]=n.icon,e[3]=n.title,e[4]=a):a=e[4];let m;e[5]!==n.title?(m=s.jsx("p",{className:"text-sm font-medium truncate",children:n.title}),e[5]=n.title,e[6]=m):m=e[6];let c;e[7]!==n.description?(c=n.description&&s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:n.description}),e[7]=n.description,e[8]=c):c=e[8];let d;e[9]!==m||e[10]!==c?(d=s.jsxs("div",{className:"flex-1 min-w-0",children:[m,c]}),e[9]=m,e[10]=c,e[11]=d):d=e[11];let u;e[12]!==l?(u=l&&s.jsx(is,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[12]=l,e[13]=u):u=e[13];let h;return e[14]!==i||e[15]!==o||e[16]!==a||e[17]!==d||e[18]!==u?(h=s.jsxs("button",{type:"button",onClick:i,className:o,children:[a,d,u]}),e[14]=i,e[15]=o,e[16]=a,e[17]=d,e[18]=u,e[19]=h):h=e[19],h}function Pt(t){const e=I.c(5),{children:n,action:l}=t;let i;e[0]!==n?(i=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:n}),e[0]=n,e[1]=i):i=e[1];let r;return e[2]!==l||e[3]!==i?(r=s.jsxs("div",{className:"flex items-center justify-between px-3 pb-1 pt-2",children:[i,l]}),e[2]=l,e[3]=i,e[4]=r):r=e[4],r}function Ui(t){const e=I.c(27),{onClose:n,onSelectAgent:l,selectedAgentId:i,onImportFromGithub:r}=t,[o,a]=L.useState(""),m=ss(),c=m??[],{org:d}=ne(),{data:u}=ae.useSession(),h=u?.user?.id??"anon",f=Dn(m),x=Fn(),g=Gi(d.slug),p=Rn(m),b=o.toLowerCase(),j=c.filter(Xi).filter(B=>!p.has(B.id)).filter(Ki).filter(B=>!o||B.title.toLowerCase().includes(b)),y=j.filter(qi),v=j.filter(Wi),_=Ye(d.id),C=!o||_.title.toLowerCase().includes(b),N=!!(l&&C);let S;e[0]!==n||e[1]!==l?(S=()=>{l?.(null),n(),a("")},e[0]=n,e[1]=l,e[2]=S):S=e[2];const A=S,k=B=>{if(l){l(B.id),n(),a("");return}En({orgId:d.id,userId:h},B.id,f),x(),n(),a(""),g(B.id)},$="flex flex-col max-h-[min(640px,80dvh)]";let w;e[3]!==o?(w=s.jsx(Li,{value:o,onChange:a,placeholder:"Search agents..."}),e[3]=o,e[4]=w):w=e[4];const z="overflow-y-auto flex-1 min-h-0 p-1.5 flex flex-col gap-0.5",O=l&&C&&_&&s.jsx(dt,{agent:_,selected:!i||i===_.id,onClick:A}),P=v.length>0&&s.jsx(Pt,{children:"Agents"}),R=v.map(B=>s.jsx(dt,{agent:B,selected:l?i===B.id:void 0,onClick:()=>k(B)},B.id)),D=(y.length>0||!o)&&s.jsx(Pt,{action:s.jsxs("button",{type:"button",onClick:r,className:"flex items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground",children:[s.jsx($n,{className:"size-3.5"}),"Import"]}),children:"Code Agents"}),F=y.map(B=>s.jsx(dt,{agent:B,selected:l?i===B.id:void 0,onClick:()=>k(B)},B.id));let M;e[5]!==N||e[6]!==o||e[7]!==j.length?(M=j.length===0&&!N&&o&&s.jsx("div",{className:"flex items-center justify-center py-6 text-xs text-muted-foreground",children:"No agents found"}),e[5]=N,e[6]=o,e[7]=j.length,e[8]=M):M=e[8];let W;e[9]!==M||e[10]!==O||e[11]!==P||e[12]!==R||e[13]!==D||e[14]!==F?(W=s.jsxs("div",{className:z,children:[O,P,R,D,F,M]}),e[9]=M,e[10]=O,e[11]=P,e[12]=R,e[13]=D,e[14]=F,e[15]=W):W=e[15];let K;e[16]!==d.slug?(K={org:d.slug},e[16]=d.slug,e[17]=K):K=e[17];let G;e[18]!==n?(G=()=>n(),e[18]=n,e[19]=G):G=e[19];let q;e[20]!==K||e[21]!==G?(q=s.jsx("div",{className:"border-t border-border px-3 py-2.5",children:s.jsx(Bs,{to:"/$org/settings/agents",params:K,onClick:G,className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center justify-center",children:"See all agents"})}),e[20]=K,e[21]=G,e[22]=q):q=e[22];let J;return e[23]!==W||e[24]!==q||e[25]!==w?(J=s.jsxs("div",{className:$,children:[w,W,q]}),e[23]=W,e[24]=q,e[25]=w,e[26]=J):J=e[26],J}function Wi(t){return!ms(t.metadata)}function qi(t){return ms(t.metadata)}function Ki(t){return!nn(t.id)}function Xi(t){return!sn(t.id)}function Vi(t){const e=I.c(31);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{compact:l,trigger:i,onSelectAgent:r,selectedAgentId:o,side:a,align:m}=n,c=l===void 0?!1:l,d=a===void 0?"right":a,u=m===void 0?"start":m,[h,f]=L.useState(!1),[x,g]=L.useState(!1),p=Nt(),{setOpenMobile:b}=pe(),j=Pn(),y=j?"border border-border":void 0;let v;e[2]!==j?(v=P=>j?s.jsx(Hi,{children:P}):P,e[2]=j,e[3]=v):v=e[3];const _=v;let C;e[4]!==p||e[5]!==b?(C=()=>{f(!1),p&&b(!1)},e[4]=p,e[5]=b,e[6]=C):C=e[6];const N=C;let S;e[7]!==N?(S=()=>{N(),g(!0)},e[7]=N,e[8]=S):S=e[8];const A=S;let k;e[9]!==N||e[10]!==A||e[11]!==r||e[12]!==h||e[13]!==o?(k=h&&s.jsx(L.Suspense,{fallback:s.jsx("div",{className:"flex items-center justify-center py-8",children:s.jsx(oe,{className:"h-4 w-24"})}),children:s.jsx(Ui,{onClose:N,onSelectAgent:r,selectedAgentId:o,onImportFromGithub:A})}),e[9]=N,e[10]=A,e[11]=r,e[12]=h,e[13]=o,e[14]=k):k=e[14];const $=k;let w;e[15]!==u||e[16]!==c||e[17]!==y||e[18]!==j||e[19]!==p||e[20]!==h||e[21]!==$||e[22]!==d||e[23]!==i||e[24]!==_?(w=p?s.jsxs(s.Fragment,{children:[i?s.jsx("button",{type:"button",onClick:()=>f(!0),className:"contents",children:i}):c?_(s.jsx(ve,{"aria-label":"Browse agents",className:E(y),onClick:()=>{me("agent_browser_opened",{surface:"mobile_drawer"}),f(!0)},children:s.jsx(Le,{className:"size-4"})})):s.jsx(U,{children:_(s.jsxs(Q,{tooltip:j?void 0:"Browse agents",className:E(y),onClick:()=>{me("agent_browser_opened",{surface:"mobile_drawer"}),f(!0)},children:[s.jsx(Le,{}),s.jsx("span",{children:"New agent"})]}))}),s.jsx(rs,{open:h,onOpenChange:f,direction:"bottom",children:s.jsxs(os,{className:"max-h-[85dvh] p-0",children:[s.jsx(as,{className:"sr-only",children:"Browse agents"}),$]})})]}):s.jsxs(tt,{open:h,onOpenChange:P=>{P&&!h&&me("agent_browser_opened",{surface:"desktop_popover"}),f(P)},children:[i?s.jsx(Ee,{asChild:!0,children:i}):c?_(s.jsx(Ee,{asChild:!0,children:s.jsx(ve,{"aria-label":"Browse agents",className:E(y),children:s.jsx(Le,{className:"size-4"})})})):s.jsx(U,{children:_(s.jsx(Ee,{asChild:!0,children:s.jsxs(Q,{tooltip:j?void 0:"Browse agents",className:E(y),children:[s.jsx(Le,{}),s.jsx("span",{children:"New agent"})]})}))}),s.jsx(et,{className:"w-[380px] p-0 overflow-hidden",side:d,align:u,children:$})]}),e[15]=u,e[16]=c,e[17]=y,e[18]=j,e[19]=p,e[20]=h,e[21]=$,e[22]=d,e[23]=i,e[24]=_,e[25]=w):w=e[25];let z;e[26]!==x?(z=s.jsx(zn,{open:x,onOpenChange:g,mode:"agent"}),e[26]=x,e[27]=z):z=e[27];let O;return e[28]!==z||e[29]!==w?(O=s.jsxs(s.Fragment,{children:[w,z]}),e[28]=z,e[29]=w,e[30]=O):O=e[30],O}const Yi="wco-no-drag inline-flex items-center gap-1.5 min-w-0 rounded-md pl-1 pr-2 py-1.5 text-sm text-foreground hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50";function Qi(t){const e=I.c(19),{agentId:n,fallback:l,onOpenHome:i,onPick:r}=t,o=Ct(n)??l??null,a=o?.title??"Super Agent",m=`Open ${a} home`,c=o?.icon??null;let d;e[0]!==c||e[1]!==a?(d=s.jsx(je,{icon:c,name:a,size:"xs"}),e[0]=c,e[1]=a,e[2]=d):d=e[2];let u;e[3]!==i||e[4]!==m||e[5]!==d?(u=s.jsx("button",{type:"button",onClick:i,"aria-label":m,className:"wco-no-drag flex items-center shrink-0 rounded-md p-1 hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:d}),e[3]=i,e[4]=m,e[5]=d,e[6]=u):u=e[6];let h;e[7]!==a?(h=s.jsx("span",{className:"truncate font-medium max-w-[8rem]",children:a}),e[7]=a,e[8]=h):h=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(_t,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[9]=f):f=e[9];let x;e[10]!==h?(x=s.jsxs("button",{type:"button",className:Yi,children:[h,f]}),e[10]=h,e[11]=x):x=e[11];let g;e[12]!==n||e[13]!==r||e[14]!==x?(g=s.jsx(Vi,{side:"bottom",align:"start",selectedAgentId:n,onSelectAgent:r,trigger:x}),e[12]=n,e[13]=r,e[14]=x,e[15]=g):g=e[15];let p;return e[16]!==u||e[17]!==g?(p=s.jsxs("div",{className:"flex min-w-0 items-center gap-0",children:[u,g]}),e[16]=u,e[17]=g,e[18]=p):p=e[18],p}function gt(t){const e=I.c(26);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{showName:l}=n,{org:i}=ne(),{state:r,isMobile:o}=pe(),a=ys().invitations.length>0,m=r==="collapsed"||o,c=a?`${i.name} — switch organization (pending invitation)`:`${i.name} — switch organization`;let d;e[2]!==i?(d=s.jsx(it,{org:i,size:"sm"}),e[2]=i,e[3]=d):d=e[3];let u;e[4]!==a||e[5]!==m?(u=a&&s.jsx("span",{className:E("absolute -right-1 size-2.5 rounded-full bg-destructive ring-2 ring-background",m?"-top-1":"top-1/2 -translate-y-1/2")}),e[4]=a,e[5]=m,e[6]=u):u=e[6];let h;e[7]!==d||e[8]!==u?(h=s.jsxs("span",{className:"relative inline-flex",children:[d,u]}),e[7]=d,e[8]=u,e[9]=h):h=e[9];let f;e[10]!==i.name||e[11]!==l?(f=l&&s.jsx("span",{className:"truncate text-sm font-medium text-foreground max-w-[10rem]",children:i.name}),e[10]=i.name,e[11]=l,e[12]=f):f=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(_t,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[13]=x):x=e[13];let g;e[14]!==c||e[15]!==h||e[16]!==f?(g=s.jsx(ue,{asChild:!0,children:s.jsxs("button",{type:"button","aria-label":c,className:"wco-no-drag flex items-center gap-1.5 shrink-0 rounded-lg pl-[5px] pr-1.5 py-1.5 hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:[h,f,x]})}),e[14]=c,e[15]=h,e[16]=f,e[17]=g):g=e[17];let p;e[18]!==i.slug||e[19]!==g?(p=s.jsx(Ss,{orgParam:i.slug,trigger:g}),e[18]=i.slug,e[19]=g,e[20]=p):p=e[20];let b;e[21]!==i.name?(b=s.jsx(fe,{side:"bottom",children:i.name}),e[21]=i.name,e[22]=b):b=e[22];let j;return e[23]!==b||e[24]!==p?(j=s.jsxs(he,{children:[p,b]}),e[23]=b,e[24]=p,e[25]=j):j=e[25],j}function lt(t){const e=I.c(24);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{onNavigate:l}=n,{org:i}=ne(),r=xe();let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[2]=o):o=e[2];const a=jt(o);let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m={strict:!1},e[3]=m):m=e[3];const c=vt(m),{threads:d}=wt(),{data:u}=ae.useSession(),{setTaskId:h,createNewTask:f}=kt();let x;e[4]!==i.id?(x=Ye(i.id),e[4]=i.id,e[5]=x):x=e[5];const g=x,p=g.id,b=a.taskId?c.virtualmcpid??p:p;let j;e[6]!==f||e[7]!==p||e[8]!==r||e[9]!==l||e[10]!==i.slug||e[11]!==u?.user?.id||e[12]!==h||e[13]!==d?(j=S=>{if(!S||S===p){r({to:"/$org",params:{org:i.slug}}),l?.();return}const A=Gn(d,S,u?.user?.id);A?h(A.id,S):f(S),l?.()},e[6]=f,e[7]=p,e[8]=r,e[9]=l,e[10]=i.slug,e[11]=u?.user?.id,e[12]=h,e[13]=d,e[14]=j):j=e[14];const y=j;let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx("span",{className:"h-5 w-24 rounded bg-muted animate-pulse"}),e[15]=v):v=e[15];const _=b===p?g:void 0;let C;e[16]!==b||e[17]!==y?(C=()=>y(b),e[16]=b,e[17]=y,e[18]=C):C=e[18];let N;return e[19]!==b||e[20]!==y||e[21]!==_||e[22]!==C?(N=s.jsx(L.Suspense,{fallback:v,children:s.jsx(Qi,{agentId:b,fallback:_,onOpenHome:C,onPick:y})}),e[19]=b,e[20]=y,e[21]=_,e[22]=C,e[23]=N):N=e[23],N}function Dt(t){const e=I.c(18),{item:n,onClose:l}=t,i=n.isActive&&"z-10";let r;e[0]!==i?(r=E(i),e[0]=i,e[1]=r):r=e[1];let o;e[2]!==n||e[3]!==l?(o=()=>{n.onClick?.(),l()},e[2]=n,e[3]=l,e[4]=o):o=e[4];let a;e[5]!==n.icon?(a=s.jsx("span",{className:"[&>svg]:size-5 shrink-0",children:n.icon}),e[5]=n.icon,e[6]=a):a=e[6];let m;e[7]!==n.label?(m=s.jsx("span",{children:n.label}),e[7]=n.label,e[8]=m):m=e[8];let c;e[9]!==n.isActive||e[10]!==n.label||e[11]!==o||e[12]!==a||e[13]!==m?(c=s.jsxs(Q,{onClick:o,isActive:n.isActive,tooltip:n.label,className:"h-10! text-sm!",children:[a,m]}),e[9]=n.isActive,e[10]=n.label,e[11]=o,e[12]=a,e[13]=m,e[14]=c):c=e[14];let d;return e[15]!==r||e[16]!==c?(d=s.jsx(U,{className:r,children:c}),e[15]=r,e[16]=c,e[17]=d):d=e[17],d}function Ji(t){const e=I.c(18),{section:n,onClose:l}=t;switch(n.type){case"divider":{let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Zt,{className:"my-2"}),e[0]=i):i=e[0],i}case"spacer":{let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1"}),e[1]=i):i=e[1],i}case"group":{const i=n.group.label,r=n.group.defaultExpanded;let o;if(e[2]!==l||e[3]!==n.group.items){let m;e[5]!==l?(m=c=>s.jsx(Dt,{item:c,onClose:l},c.key),e[5]=l,e[6]=m):m=e[6],o=n.group.items.map(m),e[2]=l,e[3]=n.group.items,e[4]=o}else o=e[4];let a;return e[7]!==n.group.defaultExpanded||e[8]!==n.group.label||e[9]!==o?(a=s.jsx(gs,{label:i,defaultExpanded:r,children:o}),e[7]=n.group.defaultExpanded,e[8]=n.group.label,e[9]=o,e[10]=a):a=e[10],a}case"items":{let i;if(e[11]!==l||e[12]!==n.items){let o;e[14]!==l?(o=a=>s.jsx(Dt,{item:a,onClose:l},a.key),e[14]=l,e[15]=o):o=e[15],i=n.items.map(o),e[11]=l,e[12]=n.items,e[13]=i}else i=e[13];let r;return e[16]!==i?(r=s.jsx(yt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(St,{children:s.jsx(se,{className:"gap-1.5",children:i})})}),e[16]=i,e[17]=r):r=e[17],r}case"custom":return n.content}}function Zi(t){const e=I.c(24),{sections:n,onClose:l,footer:i,additionalContent:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(gt,{}),e[0]=o):o=e[0];let a;e[1]!==l?(a=s.jsx(lt,{onNavigate:l}),e[1]=l,e[2]=a):a=e[2];let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"flex-1"}),e[3]=m):m=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(ts,{size:16}),e[4]=c):c=e[4];let d;e[5]!==l?(d=s.jsx(ve,{onClick:l,"aria-label":"Close sidebar",children:c}),e[5]=l,e[6]=d):d=e[6];let u;e[7]!==a||e[8]!==d?(u=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-0.5 px-1.5",children:[o,a,m,d]}),e[7]=a,e[8]=d,e[9]=u):u=e[9];let h;if(e[10]!==l||e[11]!==n){let p;e[13]!==l?(p=(b,j)=>s.jsx(Ji,{section:b,onClose:l},j),e[13]=l,e[14]=p):p=e[14],h=n.map(p),e[10]=l,e[11]=n,e[12]=h}else h=e[12];let f;e[15]!==r?(f=r&&s.jsx("div",{className:"mt-3 flex flex-col flex-1 min-h-0",children:r}),e[15]=r,e[16]=f):f=e[16];let x;e[17]!==h||e[18]!==f?(x=s.jsxs(es,{className:"flex flex-col flex-1 px-2 py-2 gap-0",children:[h,f]}),e[17]=h,e[18]=f,e[19]=x):x=e[19];let g;return e[20]!==i||e[21]!==u||e[22]!==x?(g=s.jsxs("div",{className:"bg-sidebar flex h-full w-full flex-col","data-sidebar":"sidebar",children:[u,x,i]}),e[20]=i,e[21]=u,e[22]=x,e[23]=g):g=e[23],g}function Fe(t){const e=I.c(26),{item:n,onClose:l}=t;let i;e[0]!==n.className?(i=E("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",n.className),e[0]=n.className,e[1]=i):i=e[1];const r=i;if(n.href){const d=n.external?"_blank":void 0,u=n.external?"noopener noreferrer":void 0;let h;e[2]!==n.icon?(h=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[2]=n.icon,e[3]=h):h=e[3];let f;e[4]!==n.label?(f=s.jsx("span",{className:"flex-1",children:n.label}),e[4]=n.label,e[5]=f):f=e[5];let x;return e[6]!==r||e[7]!==n.href||e[8]!==l||e[9]!==d||e[10]!==u||e[11]!==h||e[12]!==f?(x=s.jsxs("a",{href:n.href,target:d,rel:u,className:r,onClick:l,children:[h,f]}),e[6]=r,e[7]=n.href,e[8]=l,e[9]=d,e[10]=u,e[11]=h,e[12]=f,e[13]=x):x=e[13],x}let o;e[14]!==n||e[15]!==l?(o=()=>{n.onClick?.(),l()},e[14]=n,e[15]=l,e[16]=o):o=e[16];let a;e[17]!==n.icon?(a=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[17]=n.icon,e[18]=a):a=e[18];let m;e[19]!==n.label?(m=s.jsx("span",{className:"flex-1",children:n.label}),e[19]=n.label,e[20]=m):m=e[20];let c;return e[21]!==r||e[22]!==o||e[23]!==a||e[24]!==m?(c=s.jsxs("button",{type:"button",onClick:o,className:r,children:[a,m]}),e[21]=r,e[22]=o,e[23]=a,e[24]=m,e[25]=c):c=e[25],c}function Ft(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("span",{className:"shrink-0 inline-flex items-center rounded-full bg-amber-100 dark:bg-amber-500/20 px-2 py-0.5 text-[10px] font-medium text-amber-700 dark:text-amber-400",children:"Impersonating"}),t[0]=e):e=t[0],e}function Et(t){const e=I.c(144),{user:n,userImage:l,menuItems:i,signOutItem:r,stopImpersonatingItem:o,isImpersonating:a,themeOptions:m,preferences:c,setPreferences:d,close:u,isMobile:h}=t;if(h){const V=n?.name??"U";let Z;e[0]!==V||e[1]!==l?(Z=s.jsx(Qe,{url:l,fallback:V,shape:"circle",size:"sm",className:"shrink-0"}),e[0]=V,e[1]=l,e[2]=Z):Z=e[2];const ge=n?.name??"User";let ee;e[3]!==ge?(ee=s.jsx("p",{className:"text-sm font-medium truncate",children:ge}),e[3]=ge,e[4]=ee):ee=e[4];let le;e[5]!==a?(le=a&&s.jsx(Ft,{}),e[5]=a,e[6]=le):le=e[6];let ie;e[7]!==ee||e[8]!==le?(ie=s.jsxs("div",{className:"flex items-center gap-2",children:[ee,le]}),e[7]=ee,e[8]=le,e[9]=ie):ie=e[9];const T=n?.email;let H;e[10]!==T?(H=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:T}),e[10]=T,e[11]=H):H=e[11];let Y;e[12]!==ie||e[13]!==H?(Y=s.jsxs("div",{className:"flex-1 min-w-0",children:[ie,H]}),e[12]=ie,e[13]=H,e[14]=Y):Y=e[14];let X;e[15]!==n?(X=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(nl)},e[15]=n,e[16]=X):X=e[16];let be;e[17]===Symbol.for("react.memo_cache_sentinel")?(be=s.jsx(Tt,{size:14}),e[17]=be):be=e[17];let Se;e[18]!==X?(Se=s.jsx(ue,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:X,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:be})}),e[18]=X,e[19]=Se):Se=e[19];let Ue;e[20]===Symbol.for("react.memo_cache_sentinel")?(Ue=s.jsx(fe,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[20]=Ue):Ue=e[20];let Ne;e[21]!==Se?(Ne=s.jsx(xt,{delayDuration:300,children:s.jsxs(he,{children:[Se,Ue]})}),e[21]=Se,e[22]=Ne):Ne=e[22];let _e;e[23]!==Ne||e[24]!==Z||e[25]!==Y?(_e=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-4 border-b border-border",children:[Z,Y,Ne]}),e[23]=Ne,e[24]=Z,e[25]=Y,e[26]=_e):_e=e[26];let Ce;if(e[27]!==u||e[28]!==i){let de;e[30]!==u?(de=Ke=>s.jsx(Fe,{item:Ke,onClose:u},Ke.key),e[30]=u,e[31]=de):de=e[31],Ce=i.map(de),e[27]=u,e[28]=i,e[29]=Ce}else Ce=e[29];let we;e[32]!==u||e[33]!==o?(we=o&&s.jsx(Fe,{item:o,onClose:u}),e[32]=u,e[33]=o,e[34]=we):we=e[34];let ke;e[35]!==u||e[36]!==r?(ke=s.jsx(Fe,{item:r,onClose:u}),e[35]=u,e[36]=r,e[37]=ke):ke=e[37];let Ae;e[38]!==Ce||e[39]!==we||e[40]!==ke?(Ae=s.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:s.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[Ce,we,ke]})}),e[38]=Ce,e[39]=we,e[40]=ke,e[41]=Ae):Ae=e[41];let Ie;if(e[42]!==c.theme||e[43]!==d||e[44]!==m){let de;e[46]!==c.theme||e[47]!==d?(de=Ke=>{const{value:ct,icon:zs,label:$s}=Ke;return s.jsx("button",{type:"button","aria-label":$s,onClick:()=>d(Ts=>({...Ts,theme:ct})),className:E("size-8 rounded-md flex items-center justify-center transition-colors",c.theme===ct?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:zs},ct)},e[46]=c.theme,e[47]=d,e[48]=de):de=e[48],Ie=m.map(de),e[42]=c.theme,e[43]=d,e[44]=m,e[45]=Ie}else Ie=e[45];let ze;e[49]!==Ie?(ze=s.jsx("div",{className:"flex items-center gap-0.5",children:Ie}),e[49]=Ie,e[50]=ze):ze=e[50];const ot=c.enableSounds?"Disable sounds":"Enable sounds";let $e;e[51]!==d?($e=()=>d(sl),e[51]=d,e[52]=$e):$e=e[52];const at=c.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let Te;e[53]!==at?(Te=E("size-8 rounded-md flex items-center justify-center transition-colors",at),e[53]=at,e[54]=Te):Te=e[54];let Oe;e[55]!==c.enableSounds?(Oe=c.enableSounds?s.jsx(It,{size:14}):s.jsx(zt,{size:14}),e[55]=c.enableSounds,e[56]=Oe):Oe=e[56];let Me;e[57]!==ot||e[58]!==$e||e[59]!==Te||e[60]!==Oe?(Me=s.jsx("button",{type:"button","aria-label":ot,onClick:$e,className:Te,children:Oe}),e[57]=ot,e[58]=$e,e[59]=Te,e[60]=Oe,e[61]=Me):Me=e[61];let We;e[62]===Symbol.for("react.memo_cache_sentinel")?(We=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.60.0"]}),e[62]=We):We=e[62];let Pe;e[63]!==Me?(Pe=s.jsxs("div",{className:"flex items-center gap-2",children:[Me,We]}),e[63]=Me,e[64]=Pe):Pe=e[64];let De;e[65]!==ze||e[66]!==Pe?(De=s.jsxs("div",{className:"flex items-center justify-between px-3 py-3 border-t border-border/50",children:[ze,Pe]}),e[65]=ze,e[66]=Pe,e[67]=De):De=e[67];let qe;return e[68]!==_e||e[69]!==Ae||e[70]!==De?(qe=s.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[_e,Ae,De]}),e[68]=_e,e[69]=Ae,e[70]=De,e[71]=qe):qe=e[71],qe}const f=n?.name??"U";let x;e[72]!==f||e[73]!==l?(x=s.jsx(Qe,{url:l,fallback:f,shape:"circle",size:"sm",className:"shrink-0"}),e[72]=f,e[73]=l,e[74]=x):x=e[74];const g=n?.name??"User";let p;e[75]!==g?(p=s.jsx("p",{className:"text-sm font-medium truncate",children:g}),e[75]=g,e[76]=p):p=e[76];let b;e[77]!==a?(b=a&&s.jsx(Ft,{}),e[77]=a,e[78]=b):b=e[78];let j;e[79]!==p||e[80]!==b?(j=s.jsxs("div",{className:"flex items-center gap-2",children:[p,b]}),e[79]=p,e[80]=b,e[81]=j):j=e[81];const y=n?.email;let v;e[82]!==y?(v=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y}),e[82]=y,e[83]=v):v=e[83];let _;e[84]!==j||e[85]!==v?(_=s.jsxs("div",{className:"flex-1 min-w-0",children:[j,v]}),e[84]=j,e[85]=v,e[86]=_):_=e[86];let C;e[87]!==n?(C=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(tl)},e[87]=n,e[88]=C):C=e[88];let N;e[89]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(Tt,{size:14}),e[89]=N):N=e[89];let S;e[90]!==C?(S=s.jsx(ue,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:C,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:N})}),e[90]=C,e[91]=S):S=e[91];let A;e[92]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(fe,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[92]=A):A=e[92];let k;e[93]!==S?(k=s.jsx(xt,{delayDuration:300,children:s.jsxs(he,{children:[S,A]})}),e[93]=S,e[94]=k):k=e[94];let $;e[95]!==k||e[96]!==x||e[97]!==_?($=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 mx-1 mt-1",children:[x,_,k]}),e[95]=k,e[96]=x,e[97]=_,e[98]=$):$=e[98];let w;if(e[99]!==u||e[100]!==i){let V;e[102]!==u?(V=Z=>s.jsx(Fe,{item:Z,onClose:u},Z.key),e[102]=u,e[103]=V):V=e[103],w=i.map(V),e[99]=u,e[100]=i,e[101]=w}else w=e[101];let z;e[104]!==u||e[105]!==o?(z=o&&s.jsx(Fe,{item:o,onClose:u}),e[104]=u,e[105]=o,e[106]=z):z=e[106];let O;e[107]!==u||e[108]!==r?(O=s.jsx(Fe,{item:r,onClose:u}),e[107]=u,e[108]=r,e[109]=O):O=e[109];let P;e[110]!==w||e[111]!==z||e[112]!==O?(P=s.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[w,z,O]}),e[110]=w,e[111]=z,e[112]=O,e[113]=P):P=e[113];let R;if(e[114]!==c.theme||e[115]!==d||e[116]!==m){let V;e[118]!==c.theme||e[119]!==d?(V=Z=>{const{value:ge,icon:ee,label:le}=Z;return s.jsx("button",{type:"button","aria-label":le,onClick:()=>d(ie=>({...ie,theme:ge})),className:E("size-7 rounded-md flex items-center justify-center transition-colors",c.theme===ge?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:ee},ge)},e[118]=c.theme,e[119]=d,e[120]=V):V=e[120],R=m.map(V),e[114]=c.theme,e[115]=d,e[116]=m,e[117]=R}else R=e[117];let D;e[121]!==R?(D=s.jsx("div",{className:"flex items-center gap-0.5",children:R}),e[121]=R,e[122]=D):D=e[122];const F=c.enableSounds?"Disable sounds":"Enable sounds";let M;e[123]!==d?(M=()=>d(el),e[123]=d,e[124]=M):M=e[124];const W=c.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let K;e[125]!==W?(K=E("size-7 rounded-md flex items-center justify-center transition-colors",W),e[125]=W,e[126]=K):K=e[126];let G;e[127]!==c.enableSounds?(G=c.enableSounds?s.jsx(It,{size:14}):s.jsx(zt,{size:14}),e[127]=c.enableSounds,e[128]=G):G=e[128];let q;e[129]!==F||e[130]!==M||e[131]!==K||e[132]!==G?(q=s.jsx("button",{type:"button","aria-label":F,onClick:M,className:K,children:G}),e[129]=F,e[130]=M,e[131]=K,e[132]=G,e[133]=q):q=e[133];let J;e[134]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","4.60.0"]}),e[134]=J):J=e[134];let B;e[135]!==q?(B=s.jsxs("div",{className:"flex items-center gap-2",children:[q,J]}),e[135]=q,e[136]=B):B=e[136];let ce;e[137]!==D||e[138]!==B?(ce=s.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5 border-t border-border/50",children:[D,B]}),e[137]=D,e[138]=B,e[139]=ce):ce=e[139];let ye;return e[140]!==$||e[141]!==P||e[142]!==ce?(ye=s.jsx("div",{className:"flex w-full flex-col overflow-hidden",children:s.jsxs("div",{className:"flex flex-col",children:[$,P,ce]})}),e[140]=$,e[141]=P,e[142]=ce,e[143]=ye):ye=e[143],ye}function el(t){return{...t,enableSounds:!t.enableSounds}}function tl(){re.success("User ID copied")}function sl(t){return{...t,enableSounds:!t.enableSounds}}function nl(){re.success("User ID copied")}function He(){const t=I.c(43),{data:e}=ae.useSession(),{org:n}=ne(),l=xe();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org",shouldThrow:!1},t[0]=i):i=t[0];const o=Hs(i)?.params.org,[a,m]=Gs(),c=Nt(),{isAdmin:d}=Jn(),[u,h]=L.useState(!1),f=e?.user,x=f?.image,g=!!e?.session?.impersonatedBy;let p;t[1]===Symbol.for("react.memo_cache_sentinel")?(p=()=>h(!1),t[1]=p):p=t[1];const b=p;let j;t[2]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(st,{size:16}),t[2]=j):j=t[2];let y;t[3]!==l||t[4]!==o?(y={key:"preferences",label:"Preferences",icon:j,onClick:()=>{l({to:"/$org/settings/profile",params:{org:o??""}})}},t[3]=l,t[4]=o,t[5]=y):y=t[5];let v;t[6]!==n||t[7]!==l?(v=n?[{key:"install-app",label:"Add to Home Screen",icon:s.jsx(Un,{size:16}),onClick:()=>{l({to:"/$org/install",params:{org:n.slug}})}}]:[],t[6]=n,t[7]=l,t[8]=v):v=t[8];let _;t[9]===Symbol.for("react.memo_cache_sentinel")?(_={key:"terms",label:"Terms of Use",icon:s.jsx(qn,{size:16}),href:"https://www.decocms.com/terms-of-use",external:!0},t[9]=_):_=t[9];let C;t[10]===Symbol.for("react.memo_cache_sentinel")?(C={key:"privacy",label:"Privacy Policy",icon:s.jsx(Yn,{size:16}),href:"https://www.decocms.com/privacy-policy",external:!0},t[10]=C):C=t[10];let N;t[11]===Symbol.for("react.memo_cache_sentinel")?(N={key:"github",label:"decocms/studio",icon:s.jsx(Us,{className:"w-4 h-4"}),href:"https://github.com/decocms/studio",external:!0},t[11]=N):N=t[11];let S;t[12]===Symbol.for("react.memo_cache_sentinel")?(S={key:"community",label:"Community",icon:s.jsx(Qn,{size:16}),href:"https://decocms.com/discord",external:!0},t[12]=S):S=t[12];let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A={key:"homepage",label:"Homepage",icon:s.jsx(Wn,{size:16}),href:"https://decocms.com",external:!0},t[13]=A):A=t[13];let k;t[14]!==d||t[15]!==l?(k=d?[{key:"admin-dashboard",label:"Admin Dashboard",icon:s.jsx(rn,{size:16}),onClick:()=>l({to:"/_admin"}),className:"text-amber-700 dark:text-amber-400"}]:[],t[14]=d,t[15]=l,t[16]=k):k=t[16];let $;t[17]!==k||t[18]!==y||t[19]!==v?($=[y,...v,_,C,N,S,A,...k],t[17]=k,t[18]=y,t[19]=v,t[20]=$):$=t[20];const w=$;let z;t[21]===Symbol.for("react.memo_cache_sentinel")?(z={key:"logout",label:"Sign out",icon:s.jsx(Ot,{size:16}),onClick:rl},t[21]=z):z=t[21];const O=z;let P;t[22]!==g?(P=g?{key:"stop-impersonating",label:"Stop impersonation",icon:s.jsx(Ot,{size:16}),onClick:ll,className:"text-amber-700 dark:text-amber-400"}:null,t[22]=g,t[23]=P):P=t[23];const R=P;let D;t[24]===Symbol.for("react.memo_cache_sentinel")?(D={value:"light",icon:s.jsx(Xn,{size:14}),label:"Light theme"},t[24]=D):D=t[24];let F;t[25]===Symbol.for("react.memo_cache_sentinel")?(F={value:"dark",icon:s.jsx(Vn,{size:14}),label:"Dark theme"},t[25]=F):F=t[25];let M;t[26]===Symbol.for("react.memo_cache_sentinel")?(M=[D,F,{value:"system",icon:s.jsx(pt,{size:14}),label:"System theme"}],t[26]=M):M=t[26];const W=M;let K;t[27]!==g||t[28]!==c||t[29]!==w||t[30]!==a||t[31]!==m||t[32]!==R||t[33]!==f||t[34]!==x?(K={user:f,userImage:x,menuItems:w,signOutItem:O,stopImpersonatingItem:R,isImpersonating:g,themeOptions:W,preferences:a,setPreferences:m,close:b,isMobile:c},t[27]=g,t[28]=c,t[29]=w,t[30]=a,t[31]=m,t[32]=R,t[33]=f,t[34]=x,t[35]=K):K=t[35];const G=K;let q;return t[36]!==g||t[37]!==c||t[38]!==u||t[39]!==G||t[40]!==f?.name||t[41]!==x?(q=s.jsx(s.Fragment,{children:c?s.jsxs(rs,{open:u,onOpenChange:h,direction:"bottom",children:[s.jsxs("button",{type:"button",onClick:()=>h(!0),className:E("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",g&&"border-2 border-dashed border-amber-500"),children:[s.jsx(Qe,{url:x,fallback:f?.name??"U",shape:"circle",size:"2xs",className:"shrink-0"}),s.jsx("span",{className:"truncate",children:f?.name??"Account"})]}),s.jsxs(os,{className:"h-[80dvh] p-0",children:[s.jsx(as,{className:"sr-only",children:"Account"}),s.jsx(Et,{...G})]})]}):s.jsxs(tt,{open:u,onOpenChange:h,children:[s.jsx(Ee,{asChild:!0,children:s.jsxs(Q,{tooltip:f?.name??"Account",className:E("rounded-md",g&&"border-2 border-dashed border-amber-500"),children:[s.jsx(Qe,{url:x,fallback:f?.name??"U",shape:"circle",size:"xs",className:"shrink-0"}),s.jsx("span",{className:"truncate",children:f?.name??"Account"})]})}),s.jsx(et,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[280px] p-0 flex flex-col max-h-[520px]",onCloseAutoFocus:il,children:s.jsx(Et,{...G})})]})}),t[36]=g,t[37]=c,t[38]=u,t[39]=G,t[40]=f?.name,t[41]=x,t[42]=q):q=t[42],q}function il(t){return t.preventDefault()}async function ll(){const{error:t}=await ae.admin.stopImpersonating();if(t){re.error(t.message||"Failed to stop impersonation");return}window.location.href="/"}function rl(){me("signed_out",{source:"account_popover"}),Ws(),ae.signOut()}function Ge(t){const e=I.c(43),{variant:n}=t===void 0?{}:t,l=n===void 0?"icon":n,i=An(),[r,o]=L.useState(!1);let a,m;if(e[0]!==i.capabilities||e[1]!==i.hostname||e[2]!==i.machineId||e[3]!==i.online){const y=Zn(i.capabilities);a=i.online?"Desktop linked":"Connect desktop",m=i.online?s.jsxs("div",{className:"flex flex-col gap-0.5 text-xs",children:[s.jsx("span",{className:"font-medium",children:i.hostname??i.machineId??"Desktop linked"}),s.jsx("span",{className:"text-muted-foreground",children:y.length>0?`Available: ${y.join(", ")}`:"No CLI agents detected"})]}):s.jsx("span",{className:"text-xs",children:"Desktop disconnected"}),e[0]=i.capabilities,e[1]=i.hostname,e[2]=i.machineId,e[3]=i.online,e[4]=a,e[5]=m}else a=e[4],m=e[5];const c=m;if(l==="full"){let y,v;e[6]===Symbol.for("react.memo_cache_sentinel")?(y=()=>o(!0),v=s.jsx(pt,{}),e[6]=y,e[7]=v):(y=e[6],v=e[7]);let _;e[8]!==a?(_=s.jsx("span",{children:a}),e[8]=a,e[9]=_):_=e[9];let C;e[10]!==i.online?(C=i.online&&s.jsx("span",{className:"ml-auto size-2 rounded-full bg-success animate-pulse"}),e[10]=i.online,e[11]=C):C=e[11];let N;e[12]!==a||e[13]!==_||e[14]!==C?(N=s.jsx(ue,{asChild:!0,children:s.jsxs(Q,{tooltip:a,onClick:y,children:[v,_,C]})}),e[12]=a,e[13]=_,e[14]=C,e[15]=N):N=e[15];let S;e[16]!==c?(S=s.jsx(fe,{side:"right",children:c}),e[16]=c,e[17]=S):S=e[17];let A;e[18]!==N||e[19]!==S?(A=s.jsxs(he,{children:[N,S]}),e[18]=N,e[19]=S,e[20]=A):A=e[20];let k;e[21]!==r?(k=s.jsx(Mt,{open:r,onOpenChange:o}),e[21]=r,e[22]=k):k=e[22];let $;return e[23]!==k||e[24]!==A?($=s.jsxs(s.Fragment,{children:[A,k]}),e[23]=k,e[24]=A,e[25]=$):$=e[25],$}let d;e[26]===Symbol.for("react.memo_cache_sentinel")?(d=()=>o(!0),e[26]=d):d=e[26];const u=i.online?"Desktop linked":"Connect your desktop";let h;e[27]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(pt,{size:16}),e[27]=h):h=e[27];let f;e[28]!==i.online?(f=i.online&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-success ring-2 ring-background animate-pulse"}),e[28]=i.online,e[29]=f):f=e[29];let x;e[30]!==u||e[31]!==f?(x=s.jsx(ue,{asChild:!0,children:s.jsxs(ve,{onClick:d,"aria-label":u,children:[h,f]})}),e[30]=u,e[31]=f,e[32]=x):x=e[32];let g;e[33]!==c?(g=s.jsx(fe,{side:"bottom",children:c}),e[33]=c,e[34]=g):g=e[34];let p;e[35]!==x||e[36]!==g?(p=s.jsxs(he,{children:[x,g]}),e[35]=x,e[36]=g,e[37]=p):p=e[37];let b;e[38]!==r?(b=s.jsx(Mt,{open:r,onOpenChange:o}),e[38]=r,e[39]=b):b=e[39];let j;return e[40]!==b||e[41]!==p?(j=s.jsxs(s.Fragment,{children:[p,b]}),e[40]=b,e[41]=p,e[42]=j):j=e[42],j}class ol extends L.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,n){}render(){return this.state.hasError?null:this.props.children}}function al(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function cl(){const t=I.c(17),e=xe(),{org:n}=ne(),{hasDecoKey:l,balanceDollars:i}=Ln();if(!l)return null;let r;t[0]!==i?(r=i!=null?`Credits: $${i.toFixed(2)}`:"Credits",t[0]=i,t[1]=r):r=t[1];let o;t[2]!==i?(o=E(i!=null&&al(i)),t[2]=i,t[3]=o):o=t[3];let a;t[4]!==e||t[5]!==n.slug?(a=()=>e({to:"/$org/settings/ai-providers",params:{org:n.slug}}),t[4]=e,t[5]=n.slug,t[6]=a):a=t[6];let m;t[7]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(on,{}),t[7]=m):m=t[7];let c;t[8]!==i?(c=i!=null?`$${i.toFixed(2)}`:"Credits",t[8]=i,t[9]=c):c=t[9];let d;t[10]!==c?(d=s.jsx("span",{children:c}),t[10]=c,t[11]=d):d=t[11];let u;return t[12]!==r||t[13]!==o||t[14]!==a||t[15]!==d?(u=s.jsx(se,{children:s.jsx(U,{children:s.jsxs(Q,{tooltip:r,className:o,onClick:a,children:[m,d]})})}),t[12]=r,t[13]=o,t[14]=a,t[15]=d,t[16]=u):u=t[16],u}function Rt(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ol,{children:s.jsx(L.Suspense,{fallback:null,children:s.jsx(cl,{})})}),t[0]=e):e=t[0],e}function mt(){const t=I.c(7),e=xe(),{org:n}=ne();let l;t[0]!==e||t[1]!==n.slug?(l=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=l):l=t[2];let i,r;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(st,{}),r=s.jsx("span",{children:"Settings"}),t[3]=i,t[4]=r):(i=t[3],r=t[4]);let o;return t[5]!==l?(o=s.jsxs(Q,{tooltip:"Settings",onClick:l,children:[i,r]}),t[5]=l,t[6]=o):o=t[6],o}function dl(){const t=I.c(6),e=xe(),{org:n}=ne();let l;t[0]!==e||t[1]!==n.slug?(l=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=l):l=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(st,{size:15}),t[3]=i):i=t[3];let r;return t[4]!==l?(r=s.jsx("button",{type:"button","aria-label":"Settings",onClick:l,className:"shrink-0 flex items-center justify-center size-7 rounded-md text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground transition-colors",children:i}),t[4]=l,t[5]=r):r=t[5],r}function Lt(){const t=I.c(4),[e,n]=L.useState(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(U,{children:s.jsx(us,{trigger:s.jsxs(Q,{tooltip:"Invite members",children:[s.jsx(ns,{}),s.jsx("span",{children:"Invite members"})]})})}),t[0]=l):l=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(se,{className:"gap-0.5",children:[l,s.jsx(U,{children:s.jsxs(Q,{tooltip:"Add connection",onClick:()=>n(!0),children:[s.jsx(Kn,{}),s.jsx("span",{children:"Add connection"})]})})]}),t[1]=i):i=t[1];let r;return t[2]!==e?(r=s.jsxs(s.Fragment,{children:[i,s.jsx(Bn,{open:e,onOpenChange:n,mode:"browse"})]}),t[2]=e,t[3]=r):r=t[3],r}function Bt(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(se,{className:"gap-0.5",children:s.jsx(U,{children:s.jsx(us,{trigger:s.jsxs(Q,{tooltip:"Invite members",children:[s.jsx(ns,{}),s.jsx("span",{children:"Invite members"})]})})})}),t[0]=e):e=t[0],e}function ml(){const t=I.c(17),{state:e}=pe(),n=e==="collapsed";if(nt()){if(n){let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(Bt,{}),t[0]=h):h=t[0];let f;t[1]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(U,{children:s.jsx("div",{className:"flex justify-center",children:s.jsx(Ge,{})})}),t[1]=f):f=t[1];let x;t[2]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(U,{children:s.jsx(mt,{})}),t[2]=x):x=t[2];let g;return t[3]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs(Re,{className:"px-2 pb-3 gap-1",children:[h,s.jsxs(se,{children:[f,x,s.jsx(U,{children:s.jsx(He,{})})]})]}),t[3]=g):g=t[3],g}let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Bt,{}),t[4]=c):c=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(U,{children:s.jsx(Ge,{variant:"full"})}),t[5]=d):d=t[5];let u;return t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsxs(Re,{className:"px-2 pb-3 gap-0.5",children:[c,s.jsxs(se,{className:"gap-0.5",children:[d,s.jsx(U,{children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(He,{})}),s.jsx(dl,{})]})})]})]}),t[6]=u):u=t[6],u}if(n){let c,d;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Lt,{}),d=s.jsx(Rt,{}),t[7]=c,t[8]=d):(c=t[7],d=t[8]);let u;t[9]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(U,{children:s.jsx("div",{className:"flex justify-center",children:s.jsx(Ge,{})})}),t[9]=u):u=t[9];let h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(U,{children:s.jsx(mt,{})}),t[10]=h):h=t[10];let f;return t[11]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs(Re,{className:"px-2 pb-3 gap-1",children:[c,d,s.jsxs(se,{children:[u,h,s.jsx(U,{children:s.jsx(He,{})})]})]}),t[11]=f):f=t[11],f}let i,r;t[12]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Lt,{}),r=s.jsx(Rt,{}),t[12]=i,t[13]=r):(i=t[12],r=t[13]);let o;t[14]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(U,{children:s.jsx(Ge,{variant:"full"})}),t[14]=o):o=t[14];let a;t[15]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(U,{children:s.jsx(mt,{})}),t[15]=a):a=t[15];let m;return t[16]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsxs(Re,{className:"px-2 pb-3 gap-0.5",children:[i,r,s.jsxs(se,{className:"gap-0.5",children:[o,a,s.jsx(U,{children:s.jsx(He,{})})]})]}),t[16]=m):m=t[16],m}function ul(){const t=I.c(8),e=xe(),{org:n}=ne(),{setOpenMobile:l}=pe();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(se,{children:s.jsx(U,{children:s.jsx(He,{})})})}),t[0]=i):i=t[0];let r;t[1]!==e||t[2]!==n.slug||t[3]!==l?(r=()=>{e({to:"/$org/settings",params:{org:n.slug}}),l(!1)},t[1]=e,t[2]=n.slug,t[3]=l,t[4]=r):r=t[4];let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(st,{className:"size-4"}),t[5]=o):o=t[5];let a;return t[6]!==r?(a=s.jsx(Re,{className:"px-2 pb-3",children:s.jsxs("div",{className:"flex items-center gap-1",children:[i,s.jsx(ve,{"aria-label":"Settings",onClick:r,children:o})]})}),t[6]=r,t[7]=a):a=t[7],a}function Ht(t){const e=I.c(15),{className:n,wrapperClassName:l,children:i}=t,[r,o]=L.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=b=>{b&&o(b.scrollHeight>b.clientHeight+1)},e[0]=a):a=e[0];const m=a;let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=b=>{const j=b.currentTarget;o(j.scrollHeight-j.scrollTop>j.clientHeight+1)},e[1]=c):c=e[1];const d=c;let u;e[2]!==l?(u=E("relative",l),e[2]=l,e[3]=u):u=e[3];let h;e[4]!==i||e[5]!==n?(h=s.jsx("div",{ref:m,onScroll:d,className:n,children:i}),e[4]=i,e[5]=n,e[6]=h):h=e[6];const f=r?"opacity-100":"opacity-0";let x;e[7]!==f?(x=E("pointer-events-none absolute right-0 bottom-0 left-0 h-10 bg-gradient-to-t from-sidebar to-transparent transition-opacity duration-150",f),e[7]=f,e[8]=x):x=e[8];let g;e[9]!==x?(g=s.jsx("div",{"aria-hidden":!0,className:x}),e[9]=x,e[10]=g):g=e[10];let p;return e[11]!==u||e[12]!==h||e[13]!==g?(p=s.jsxs("div",{className:u,children:[h,g]}),e[11]=u,e[12]=h,e[13]=g,e[14]=p):p=e[14],p}function fl(t){const e=I.c(8),{virtualMcpId:n,size:l,showAutomationBadge:i}=t,r=l===void 0?"sm":l;let o;e[0]!==r||e[1]!==n?(o=n?s.jsx(hl,{virtualMcpId:n,size:r}):s.jsx(je,{icon:null,name:"?",size:r}),e[0]=r,e[1]=n,e[2]=o):o=e[2];let a;e[3]!==i?(a=i&&s.jsx("span",{"aria-label":"Automation-triggered",className:"absolute -bottom-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full bg-blue-500 border border-blue-600 text-white",children:s.jsx(hs,{size:10,className:"text-white"})}),e[3]=i,e[4]=a):a=e[4];let m;return e[5]!==o||e[6]!==a?(m=s.jsxs("div",{className:"relative shrink-0",children:[o,a]}),e[5]=o,e[6]=a,e[7]=m):m=e[7],m}function hl(t){const e=I.c(6),{virtualMcpId:n,size:l}=t,i=Ct(n);if(!i){let a;return e[0]!==l?(a=s.jsx(je,{icon:null,name:"?",size:l}),e[0]=l,e[1]=a):a=e[1],a}const r=i.icon??null;let o;return e[2]!==i.title||e[3]!==l||e[4]!==r?(o=s.jsx(je,{icon:r,name:i.title,size:l}),e[2]=i.title,e[3]=l,e[4]=r,e[5]=o):o=e[5],o}function Gt(t){const e=I.c(36),{open:n,onOpenChange:l}=t,[i,r]=L.useState(""),{org:o}=ne(),{setTaskId:a}=kt(),m=fs();let c,d,u;e[0]!==o.id||e[1]!==i?(u=i.trim(),d=Ks,c=qs.globalSearch(o.id,u),e[0]=o.id,e[1]=i,e[2]=c,e[3]=d,e[4]=u):(c=e[2],d=e[3],u=e[4]);const h=n&&u.length>0;let f;e[5]!==m||e[6]!==u?(f=async()=>await m.call("GLOBAL_SEARCH",{query:u,limit:20}),e[5]=m,e[6]=u,e[7]=f):f=e[7];let x;e[8]!==c||e[9]!==h||e[10]!==f?(x={queryKey:c,enabled:h,queryFn:f,staleTime:1e4},e[8]=c,e[9]=h,e[10]=f,e[11]=x):x=e[11];const{data:g,isFetching:p}=d(x);let b;e[12]!==g?.items?(b=g?.items??[],e[12]=g?.items,e[13]=b):b=e[13];const j=b;let y;e[14]!==l?(y=z=>{z||r(""),l(z)},e[14]=l,e[15]=y):y=e[15];const v=y;let _;e[16]!==v||e[17]!==a?(_=z=>{v(!1),a(z.id,z.virtual_mcp_id??void 0)},e[16]=v,e[17]=a,e[18]=_):_=e[18];const C=_;let N;e[19]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(ii,{className:"sr-only",children:[s.jsx(li,{children:"Search"}),s.jsx(ri,{children:"Search across your organization's resources."})]}),e[19]=N):N=e[19];let S;e[20]!==i?(S=s.jsx(mi,{value:i,onValueChange:r,placeholder:"Search..."}),e[20]=i,e[21]=S):S=e[21];let A;e[22]!==C||e[23]!==p||e[24]!==j||e[25]!==u?(A=u?p&&j.length===0?s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Searching…"}):j.length===0?s.jsx(ci,{children:"No results."}):j.map(z=>z.type==="thread"?s.jsxs(di,{value:`thread:${z.id}:${z.title}`,onSelect:()=>C(z),className:"gap-2.5",children:[s.jsx(fl,{virtualMcpId:z.virtual_mcp_id,size:"xs"}),s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("div",{className:"text-sm text-foreground truncate",children:z.title||"Untitled thread"})}),s.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:new Date(z.updated_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]},`thread:${z.id}`):null):s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Start typing to search."}),e[22]=C,e[23]=p,e[24]=j,e[25]=u,e[26]=A):A=e[26];let k;e[27]!==A?(k=s.jsx(ui,{children:A}),e[27]=A,e[28]=k):k=e[28];let $;e[29]!==S||e[30]!==k?($=s.jsxs(oi,{className:"overflow-hidden p-0",closeButtonClassName:"hidden",children:[N,s.jsxs(fi,{shouldFilter:!1,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:[S,k]})]}),e[29]=S,e[30]=k,e[31]=$):$=e[31];let w;return e[32]!==v||e[33]!==n||e[34]!==$?(w=s.jsx(ai,{open:n,onOpenChange:v,children:$}),e[32]=v,e[33]=n,e[34]=$,e[35]=w):w=e[35],w}function xl(t){return t==="ephemeral"||t.startsWith("thread:")}function Ns(t){const e=I.c(40),{task:n,isActive:l,onClick:i,onArchive:r,showAutomationBadge:o,showAgentIcon:a,hideStatusIdle:m,indented:c}=t,d=pi(n.status),u=d.icon,h=n.metadata?.kind==="tool_call_run",f=Ct(h?void 0:n.virtual_mcp_id);let x;e[0]!==f?(x=Hn(f),e[0]=f,e[1]=x):x=e[1];const g=x;gi(6e4);const p=o||!!n.trigger_id,b=n.id,j="button",y=0;let v;e[2]!==i?(v=W=>{W.target===W.currentTarget&&(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),i())},e[2]=i,e[3]=v):v=e[3];const _=c?"-ml-4 pl-6":"pl-[7px]",C=l?"bg-accent text-accent-foreground":"hover:bg-accent/60";let N;e[4]!==_||e[5]!==C?(N=E("group/row flex items-center gap-2 py-1.5 rounded-md cursor-pointer transition-colors",_,"focus-visible:outline-none focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50",C),e[4]=_,e[5]=C,e[6]=N):N=e[6];let S;e[7]!==h||e[8]!==a||e[9]!==f?.icon||e[10]!==f?.title?(S=a&&!h&&s.jsx(je,{icon:f?.icon??null,name:f?.title??"?",size:"2xs"}),e[7]=h,e[8]=a,e[9]=f?.icon,e[10]=f?.title,e[11]=S):S=e[11];let A;e[12]!==p?(A=p&&s.jsx(hs,{size:12,"aria-label":"Automation-triggered",className:"shrink-0 text-blue-500"}),e[12]=p,e[13]=A):A=e[13];const k=n.title||"Untitled task";let $;e[14]!==k?($=s.jsx("div",{className:"text-sm text-foreground truncate",children:k}),e[14]=k,e[15]=$):$=e[15];let w;e[16]!==A||e[17]!==$?(w=s.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[A,$]}),e[16]=A,e[17]=$,e[18]=w):w=e[18];let z;e[19]!==g||e[20]!==l||e[21]!==n.branch||e[22]!==n.updated_at?(z=n.updated_at&&s.jsxs("div",{className:E("flex items-center gap-1 text-[11px] min-w-0",l?"text-accent-foreground/70":"text-muted-foreground/60"),children:[n.branch&&!xl(n.branch)?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"truncate font-mono",children:n.branch}),s.jsx("span",{className:"shrink-0",children:"·"})]}):g?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"truncate",children:[g.owner,"/",g.name]}),s.jsx("span",{className:"shrink-0",children:"·"})]}):null,s.jsx("span",{className:"shrink-0",children:ji(new Date(n.updated_at))})]}),e[19]=g,e[20]=l,e[21]=n.branch,e[22]=n.updated_at,e[23]=z):z=e[23];let O;e[24]!==w||e[25]!==z?(O=s.jsxs("div",{className:"flex-1 min-w-0",children:[w,z]}),e[24]=w,e[25]=z,e[26]=O):O=e[26];const P="shrink-0 grid [grid-template-areas:'slot'] items-center justify-items-center",R=!m&&s.jsx("span",{className:E("[grid-area:slot] flex size-8 items-center justify-center pointer-events-none transition-opacity",r&&"group-hover/row:opacity-0"),"aria-label":d.label,children:s.jsx(u,{size:14,className:E(d.iconClassName,n.status==="in_progress"&&"animate-spin")})});let D;e[27]!==r?(D=r&&s.jsxs(he,{children:[s.jsx(ue,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":"Archive task",onClick:W=>{W.stopPropagation(),r()},className:"[grid-area:slot] opacity-0 pointer-events-none group-hover/row:opacity-100 group-hover/row:pointer-events-auto focus-visible:opacity-100 focus-visible:pointer-events-auto transition-opacity flex size-8 items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:s.jsx(Xs,{size:14})})}),s.jsx(fe,{side:"right",children:"Archive"})]}),e[27]=r,e[28]=D):D=e[28];let F;e[29]!==R||e[30]!==D?(F=s.jsxs("div",{className:P,children:[R,D]}),e[29]=R,e[30]=D,e[31]=F):F=e[31];let M;return e[32]!==i||e[33]!==O||e[34]!==F||e[35]!==v||e[36]!==N||e[37]!==S||e[38]!==n.id?(M=s.jsxs("div",{"data-task-id":b,role:j,tabIndex:y,onClick:i,onKeyDown:v,className:N,children:[S,O,F]}),e[32]=i,e[33]=O,e[34]=F,e[35]=v,e[36]=N,e[37]=S,e[38]=n.id,e[39]=M):M=e[39],M}const Ut=["requires_action","in_progress","failed","expired","completed"];function pl(t){const e=new Map(Ut.map(n=>[n,[]]));for(const n of t){const l=n.status??"completed";(e.get(l)??e.get("completed")).push(n)}return Ut.map(n=>({status:n,threads:e.get(n)}))}const gl="sidebar.group.expanded.";function bl(t,e){const n=I.c(3),[l,i]=Ze(`${gl}${t}`,e);let r;return n[0]!==l||n[1]!==i?(r=[l,i],n[0]=l,n[1]=i,n[2]=r):r=n[2],r}function _s(t){const e=I.c(12),{onClick:n,isFetching:l,indented:i}=t,r=i?"-ml-4 pl-6 pr-2":"px-2";let o;e[0]!==r?(o=E("flex items-center gap-2 py-1.5 rounded-md text-sm text-muted-foreground",r,"hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50","transition-colors disabled:cursor-progress disabled:opacity-60"),e[0]=r,e[1]=o):o=e[1];let a;e[2]!==l?(a=l&&s.jsx(Qt,{size:14,className:"animate-spin"}),e[2]=l,e[3]=a):a=e[3];const m=l?"Loading…":"Show more";let c;e[4]!==m?(c=s.jsx("span",{children:m}),e[4]=m,e[5]=c):c=e[5];let d;return e[6]!==l||e[7]!==n||e[8]!==o||e[9]!==a||e[10]!==c?(d=s.jsxs("button",{type:"button","aria-label":"Show more tasks",onClick:n,disabled:l,className:o,children:[a,c]}),e[6]=l,e[7]=n,e[8]=o,e[9]=a,e[10]=c,e[11]=d):d=e[11],d}function jl(t,e,n,l){return[t,e,n,l.type,l.member,l.currentUserId??""].join("|")}function vl(t){return t.member==="mine"&&!t.currentUserId}const Cs=4;let Ve=0;const bt=[];function yl(){for(;Ve<Cs&&bt.length>0;){const t=bt.shift();t&&t()}}function ws(t){return new Promise((e,n)=>{const l=()=>{Ve++,t().then(e,n).finally(()=>{Ve--,yl()})};Ve<Cs?l():bt.push(l)})}const rt=10;function Wt(t,e,n,l,i){const r={hidden:!1};l.member==="mine"&&l.currentUserId&&(r.created_by=l.currentUserId),l.type==="automation"&&(r.has_trigger=!0),l.type==="manual"&&(r.has_trigger=!1);const o={where:r,limit:i,offset:n,orderBy:[{field:["updated_at"],direction:"desc"}]};return o.status=e,o}function Sl(t,e,n,l){let i=0;for(const r of t)ks(r,e,n,l)&&i++;return i}function ut(t,e,n,l){return Sl(t,e,n,l)}function Nl(t,e){return!!(t>=rt||t===0&&e)}function qt(t,e){return t<e}function _l(t,e){return e===!1?!1:e===!0?!0:t}function ks(t,e,n,l){return!(t.hidden||(t.status??"completed")!==n||l.member==="mine"&&l.currentUserId&&t.created_by!==l.currentUserId||l.type==="automation"&&!t.trigger_id||l.type==="manual"&&t.trigger_id)}const Je=new Map,Xe=new Map;function Cl(t,e){return e?t>=rt?!0:null:!1}function Kt(t){return Je.get(t)}function wl(t,e){Je.set(t,e)}function kl(t,e,n){const l=Je.get(t);if(l!==void 0){n(l);return}let i=Xe.get(t);i||(i=ws(e).then(r=>(Je.set(t,r),Xe.delete(t),r)).catch(()=>(Xe.delete(t),Promise.reject(new Error("group probe failed")))),Xe.set(t,i)),i.then(n,()=>n(!1))}function Xt(t){const e=t,n=Array.isArray(e.items)?e.items:[];return{items:n,hasMore:e.hasMore??n.length===rt,totalCount:typeof e.totalCount=="number"?e.totalCount:void 0}}function Al(t,e,n,l,i){let r=0;for(const o of t)e.has(o.id)||ks(o,n,l,i)&&r++;return r}function Il(t,e,n,l){const i=I.c(8),{org:r}=ne(),o=jl(r.id,t,e,n);let a;i[0]!==n?(a=vl(n),i[0]=n,i[1]=a):a=i[1];const m=a,[c,d]=L.useState({isFetching:!1,isProbing:!1,identity:o,probeSubscribedIdentity:null,serverHasMore:null});c.identity!==o&&d({isFetching:!1,isProbing:!1,identity:o,probeSubscribedIdentity:null,serverHasMore:null});const u=Tn(),{threads:h,hasMore:f}=wt(),x=ut(h,t,e,n),g=Nl(x,f),p=Cl(x,f),b=fs();if(c.identity===o&&c.serverHasMore===null){const N=p??Kt(o);N!==void 0&&d({isFetching:!1,isProbing:!1,identity:o,probeSubscribedIdentity:c.probeSubscribedIdentity,serverHasMore:N})}!m&&c.identity===o&&c.serverHasMore===null&&p===null&&Kt(o)===void 0&&c.probeSubscribedIdentity!==o&&(d(N=>N.identity===o?{...N,isProbing:!0,probeSubscribedIdentity:o}:N),kl(o,async()=>{const N=Wt(t,e,0,n,1),S=await b.call("COLLECTION_THREADS_LIST",N),{totalCount:A}=Xt(S),k=ut(u.threads.get(),t,e,n);return A===void 0?!1:qt(k,A)},N=>{d(S=>S.identity!==o?S:{...S,isProbing:!1,serverHasMore:N})}));const y=async function(){if(c.isFetching||c.isProbing||m)return;const S=o;d(A=>A.identity===S?{...A,isFetching:!0}:A);try{const A=ut(h,t,e,n),k=Wt(t,e,A,n,rt),$=await ws(()=>b.call("COLLECTION_THREADS_LIST",k)),{items:w,hasMore:z,totalCount:O}=Xt($),P=new Set(h.map(zl)),R=Al(w,P,t,e,n),D=A;u.mergeThreads(w),d(F=>{if(F.identity!==S)return F;let M;return O!==void 0?M=qt(D+R,O):M=w.length===0||R===0?!1:z,wl(S,M),{...F,isFetching:!1,serverHasMore:M}})}catch(A){const k=A,$=k instanceof Error?k.message:String(k);re.error(`Could not load more tasks: ${$}`),d(w=>w.identity===S?{...w,isFetching:!1}:w)}},v=c.isFetching||c.isProbing,_=!m&&!v&&_l(g,c.serverHasMore);let C;return i[2]!==v||i[3]!==y||i[4]!==_||i[5]!==c.isProbing||i[6]!==c.serverHasMore?(C={hasMore:_,isFetching:v,isProbing:c.isProbing,serverHasMore:c.serverHasMore,loadMore:y},i[2]=v,i[3]=y,i[4]=_,i[5]=c.isProbing,i[6]=c.serverHasMore,i[7]=C):C=i[7],C}function zl(t){return t.id}function $l(t){const e=I.c(20),{status:n,threads:l,activeTaskId:i,onSelectTask:r,onArchiveTask:o,canArchive:a,filters:m}=t,{isFetching:c,isProbing:d,loadMore:u,hasMore:h,serverHasMore:f}=Il("status",n,m),[x,g]=L.useState(!1);!x&&l.length===0&&f===!0&&!c&&!d&&(g(!0),queueMicrotask(()=>{u()}));let p;if(e[0]!==i||e[1]!==a||e[2]!==m||e[3]!==o||e[4]!==r||e[5]!==l){let y;e[7]!==i||e[8]!==a||e[9]!==m||e[10]!==o||e[11]!==r?(y=v=>s.jsx(Ns,{task:v,isActive:i===v.id,onClick:()=>r(v),onArchive:a&&v.created_by===m.currentUserId?()=>o(v):void 0,showAutomationBadge:!!v.trigger_id,showAgentIcon:!0,hideStatusIdle:!0,indented:!0},v.id),e[7]=i,e[8]=a,e[9]=m,e[10]=o,e[11]=r,e[12]=y):y=e[12],p=l.map(y),e[0]=i,e[1]=a,e[2]=m,e[3]=o,e[4]=r,e[5]=l,e[6]=p}else p=e[6];let b;e[13]!==h||e[14]!==c||e[15]!==u?(b=(h||c)&&s.jsx(_s,{onClick:()=>{u()},isFetching:c,indented:!0}),e[13]=h,e[14]=c,e[15]=u,e[16]=b):b=e[16];let j;return e[17]!==p||e[18]!==b?(j=s.jsxs(s.Fragment,{children:[p,b]}),e[17]=p,e[18]=b,e[19]=j):j=e[19],j}function Tl(t){const e=I.c(36),{status:n,threads:l,activeTaskId:i,onSelectTask:r,onArchiveTask:o,canArchive:a,filters:m}=t,c=bi[n],d=c.icon,[u,h]=bl(`status-${n}`,!1);let f;e[0]!==u||e[1]!==h?(f=function(){h(!u)},e[0]=u,e[1]=h,e[2]=f):f=e[2];const x=f;let g;e[3]!==x?(g=S=>{S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),x())},e[3]=x,e[4]=g):g=e[4];let p;e[5]!==d||e[6]!==c.iconClassName?(p=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center transition-opacity group-hover/group:opacity-0",children:s.jsx(d,{size:12,className:c.iconClassName})}),e[5]=d,e[6]=c.iconClassName,e[7]=p):p=e[7];let b;e[8]!==u?(b=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-muted-foreground opacity-0 transition-opacity group-hover/group:opacity-100",children:u?s.jsx(_t,{size:14}):s.jsx(vi,{size:14})}),e[8]=u,e[9]=b):b=e[9];let j;e[10]!==p||e[11]!==b?(j=s.jsxs("div",{className:"relative size-5 shrink-0 flex items-center justify-center",children:[p,b]}),e[10]=p,e[11]=b,e[12]=j):j=e[12];let y;e[13]!==c.label?(y=s.jsx("span",{className:"flex-1 truncate",children:c.label}),e[13]=c.label,e[14]=y):y=e[14];let v;e[15]!==l.length?(v=s.jsx("div",{className:"size-5 shrink-0 flex items-center justify-center",children:s.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:l.length})}),e[15]=l.length,e[16]=v):v=e[16];let _;e[17]!==u||e[18]!==x||e[19]!==g||e[20]!==j||e[21]!==y||e[22]!==v?(_=s.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":u,onClick:x,onKeyDown:g,className:"group/group flex items-center gap-2 px-2 py-1.5 rounded-md text-sm font-medium text-foreground cursor-pointer hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",children:[j,y,v]}),e[17]=u,e[18]=x,e[19]=g,e[20]=j,e[21]=y,e[22]=v,e[23]=_):_=e[23];let C;e[24]!==i||e[25]!==a||e[26]!==u||e[27]!==m||e[28]!==o||e[29]!==r||e[30]!==n||e[31]!==l?(C=u&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:s.jsx($l,{status:n,threads:l,activeTaskId:i,onSelectTask:r,onArchiveTask:o,canArchive:a,filters:m})}),e[24]=i,e[25]=a,e[26]=u,e[27]=m,e[28]=o,e[29]=r,e[30]=n,e[31]=l,e[32]=C):C=e[32];let N;return e[33]!==_||e[34]!==C?(N=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[_,C]}),e[33]=_,e[34]=C,e[35]=N):N=e[35],N}function Vt(t){const e=I.c(38),{threads:n,groupBy:l,activeTaskId:i,onSelectTask:r,onArchiveTask:o,filters:a,hasMore:m,isFetchingMore:c,onLoadMore:d,filtersActive:u}=t;if(n.length===0&&!m&&!c){let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(xi,{className:"size-6 opacity-60"}),e[0]=p):p=e[0];const b=u?"No threads match your filters":"No threads yet";let j;return e[1]!==b?(j=s.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 px-4 py-12 text-center text-muted-foreground",children:[p,s.jsx("p",{className:"text-sm",children:b})]}),e[1]=b,e[2]=j):j=e[2],j}const h=n.length>1||m;if(l==="status"){let p;if(e[3]!==i||e[4]!==h||e[5]!==a||e[6]!==o||e[7]!==r||e[8]!==n){let j;e[10]!==i||e[11]!==h||e[12]!==a||e[13]!==o||e[14]!==r?(j=y=>s.jsx(Tl,{status:y.status,threads:y.threads,activeTaskId:i,onSelectTask:r,onArchiveTask:o,canArchive:h,filters:a},y.status),e[10]=i,e[11]=h,e[12]=a,e[13]=o,e[14]=r,e[15]=j):j=e[15],p=pl(n).map(j),e[3]=i,e[4]=h,e[5]=a,e[6]=o,e[7]=r,e[8]=n,e[9]=p}else p=e[9];let b;return e[16]!==p?(b=s.jsx(s.Fragment,{children:p}),e[16]=p,e[17]=b):b=e[17],b}let f;if(e[18]!==i||e[19]!==h||e[20]!==a||e[21]!==o||e[22]!==r||e[23]!==n){let p;e[25]!==i||e[26]!==h||e[27]!==a||e[28]!==o||e[29]!==r?(p=b=>s.jsx(Ns,{task:b,isActive:i===b.id,onClick:()=>r(b),onArchive:h&&b.created_by===a.currentUserId?()=>o(b):void 0,showAutomationBadge:!!b.trigger_id,showAgentIcon:!0},b.id),e[25]=i,e[26]=h,e[27]=a,e[28]=o,e[29]=r,e[30]=p):p=e[30],f=n.map(p),e[18]=i,e[19]=h,e[20]=a,e[21]=o,e[22]=r,e[23]=n,e[24]=f}else f=e[24];let x;e[31]!==m||e[32]!==c||e[33]!==d?(x=(m||c)&&s.jsx(_s,{onClick:d,isFetching:c}),e[31]=m,e[32]=c,e[33]=d,e[34]=x):x=e[34];let g;return e[35]!==f||e[36]!==x?(g=s.jsxs(s.Fragment,{children:[f,x]}),e[35]=f,e[36]=x,e[37]=g):g=e[37],g}function Ol(t,e,n){if(!n)return;const l=t.findIndex(i=>i.id===e);if(l!==-1){for(let i=l+1;i<t.length;i++){const r=t[i];if(r?.created_by===n)return r}for(let i=l-1;i>=0;i--){const r=t[i];if(r?.created_by===n)return r}}}function Yt(t){const e=I.c(17),{label:n,onClick:l,active:i,children:r}=t,[o,a]=L.useState(!1);let m,c,d,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>a(!0),c=()=>a(!1),d=()=>a(!0),u=()=>a(!1),e[0]=m,e[1]=c,e[2]=d,e[3]=u):(m=e[0],c=e[1],d=e[2],u=e[3]);const h=i&&"bg-sidebar-accent text-foreground";let f;e[4]!==h?(f=E("md:size-[34px] rounded-lg",h),e[4]=h,e[5]=f):f=e[5];let x;e[6]!==r||e[7]!==n||e[8]!==l||e[9]!==f?(x=s.jsx(ue,{asChild:!0,children:s.jsx(ve,{"aria-label":n,onClick:l,onPointerEnter:m,onPointerLeave:c,onFocus:d,onBlur:u,className:f,children:r})}),e[6]=r,e[7]=n,e[8]=l,e[9]=f,e[10]=x):x=e[10];let g;e[11]!==n?(g=s.jsx(fe,{side:"bottom",children:n}),e[11]=n,e[12]=g):g=e[12];let p;return e[13]!==o||e[14]!==x||e[15]!==g?(p=s.jsxs(he,{open:o,children:[x,g]}),e[13]=o,e[14]=x,e[15]=g,e[16]=p):p=e[16],p}function ft(t){const e=I.c(13),{label:n,value:l,onChange:i,options:r}=t;let o;e[0]!==n?(o=s.jsx("span",{className:"text-sm text-muted-foreground",children:n}),e[0]=n,e[1]=o):o=e[1];let a;e[2]!==i?(a=u=>u&&i(u),e[2]=i,e[3]=a):a=e[3];let m;e[4]!==r?(m=r.map(Ml),e[4]=r,e[5]=m):m=e[5];let c;e[6]!==a||e[7]!==m||e[8]!==l?(c=s.jsx(si,{type:"single",size:"sm",value:l,onValueChange:a,className:"gap-0.5 rounded-lg border border-border bg-muted/50 p-0.5",children:m}),e[6]=a,e[7]=m,e[8]=l,e[9]=c):c=e[9];let d;return e[10]!==o||e[11]!==c?(d=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[o,c]}),e[10]=o,e[11]=c,e[12]=d):d=e[12],d}function Ml(t){return s.jsxs(ti,{value:t.value,className:"h-6 gap-1.5 rounded-md border border-transparent px-2 text-xs font-medium text-muted-foreground hover:bg-transparent data-[state=on]:border-border data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",children:[t.icon,t.label]},t.value)}function As({onNavigate:t}={}){const{data:e}=ae.useSession(),n=e?.user?.id,{org:l}=ne(),i=ni({connectionId:ln,orgId:l.id,orgSlug:l.slug}),r=Ye(l.id).id,o=ss(),{threads:a,hasMore:m,isFetchingMore:c,fetchNextPage:d}=wt(),u=a.filter(T=>!T.hidden),{hide:h}=cs(),f=xe(),{setTaskId:x,createNewTask:g}=kt(),p=jt({strict:!1}),b=vt({strict:!1}),j=p.taskId??null,y=b.virtualmcpid??a.find(T=>T.id===j)?.virtual_mcp_id??null,v=()=>{t?.()},_=[...u].sort((T,H)=>(H.updated_at??"").localeCompare(T.updated_at??"")),[C,N]=L.useState("all"),[S,A]=L.useState("flat"),[k,$]=Ze("sidebar-threads-scope-all",!1),[w,z]=L.useState(!1),[O,P]=L.useState(!1),R={type:C,member:"mine",currentUserId:n??null},D=T=>n?T.filter(H=>H.created_by===n):[],F=T=>C==="automation"?T.filter(H=>!!H.trigger_id):C==="manual"?T.filter(H=>!H.trigger_id):T,M=D(_),W=F(M),K=F(_),G=k?K:W,q=T=>{if(n&&T.created_by&&T.created_by!==n)return;const H=T.id===j;if(h(T.id),!H)return;const Y=Ol(G,T.id,n);v(),Y?x(Y.id,Y.virtual_mcp_id):f({to:"/$org",params:{org:l.slug}})},J=T=>{v(),x(T.id,T.virtual_mcp_id)},B=async T=>{try{const H=await i.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:T,limit:1,offset:0}});return((H.structuredContent??H).items?.length??0)===0}catch{return!1}},ce=async()=>{const T=y??r;me("sidebar_new_thread_clicked",{virtual_mcp_id:T});const H=M.find(Y=>Y.virtual_mcp_id===T&&Y.title==="New chat");if(H&&await B(H.id)){v(),x(H.id,T);return}v(),g(T)},{state:ye,isMobile:V,toggleSidebar:Z}=pe();if(ye==="collapsed"&&!V){const T=Ye(l.id),H=new Map((o??[]).map(X=>[X.id,X])),Y=X=>(X?H.get(X):void 0)??(X===r?T:void 0);return s.jsxs("div",{className:"flex flex-col min-h-0 flex-1 -mt-1 w-[calc(var(--sidebar-width-icon)-1rem)]",children:[s.jsx("div",{className:"flex h-12 shrink-0 items-center justify-center",children:s.jsx(Ss,{orgParam:l.slug,side:"right",align:"start",trigger:s.jsx(Q,{tooltip:l.name,children:s.jsx(it,{org:l,size:"sm"})})})}),s.jsxs(se,{className:"mt-2 min-h-0 gap-1.5 overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[s.jsx(U,{children:s.jsx(Q,{"aria-label":"Toggle sidebar",tooltip:"Toggle sidebar",onClick:Z,children:s.jsx(ts,{size:16})})}),s.jsx(U,{children:s.jsx(Q,{tooltip:"New thread",onClick:()=>{ce()},children:s.jsx($t,{size:16})})}),G.map(X=>{const be=Y(X.virtual_mcp_id);return s.jsx(U,{children:s.jsx(Q,{tooltip:X.title||"New chat",isActive:X.id===j,onClick:()=>J(X),children:s.jsx(je,{icon:be?.icon??null,name:be?.title??"Agent",size:"xs"})})},X.id)})]})]})}const ee=S!=="flat"||C!=="all"||k===!0,le=s.jsxs(tt,{children:[s.jsxs(he,{children:[s.jsx(ue,{asChild:!0,children:s.jsx(Ee,{asChild:!0,children:s.jsxs(ve,{"aria-label":"Filter threads",active:ee,className:"md:size-[34px] rounded-lg",children:[s.jsx(ei,{size:16}),ee&&s.jsx("span",{className:"absolute right-1 top-1 size-1.5 rounded-full bg-primary ring-2 ring-sidebar"})]})})}),s.jsx(fe,{side:"bottom",children:"Filter threads"})]}),s.jsxs(et,{align:"start",className:"w-64 flex flex-col gap-3 p-3",children:[s.jsx(ft,{label:"View",value:S,onChange:T=>{me("tasks_panel_group_by_changed",{to_value:T}),A(T)},options:[{value:"flat",label:"List",icon:s.jsx(cn,{size:13})},{value:"status",label:"Status",icon:s.jsx(dn,{size:13})}]}),s.jsx(ft,{label:"Type",value:C,onChange:T=>{me("tasks_panel_filter_changed",{to_value:T}),N(T)},options:[{value:"all",label:"All"},{value:"manual",label:"Chats"},{value:"automation",label:"Auto"}]}),s.jsx(ft,{label:"Scope",value:k?"team":"mine",onChange:T=>$(T==="team"),options:[{value:"mine",label:"Mine"},{value:"team",label:"Team"}]})]})]}),ie=T=>s.jsx(xt,{delayDuration:300,children:s.jsxs("div",{className:E("shrink-0 flex items-center justify-between",T?"h-10":"h-10 md:h-[34px] mb-2"),children:[s.jsxs("div",{className:"flex items-center gap-0.5",children:[!T&&s.jsx(xs,{className:"md:size-[34px] rounded-lg"}),le]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(Yt,{label:"Search threads",onClick:()=>{me("tasks_panel_search_opened"),P(!0),z(!0)},children:s.jsx(an,{size:16})}),s.jsx(Yt,{label:"New thread",onClick:()=>{ce()},children:s.jsx($t,{size:16})})]})]})});return V?s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[ie(!0),s.jsx(Ht,{wrapperClassName:"flex-1 min-h-0",className:"flex flex-col gap-0.5 overflow-y-auto overscroll-contain px-1 h-full",children:s.jsx(Vt,{threads:G,groupBy:S,activeTaskId:j,onSelectTask:J,onArchiveTask:q,filters:R,hasMore:m,isFetchingMore:c,onLoadMore:()=>{d()},filtersActive:ee})}),O&&s.jsx(Gt,{open:w,onOpenChange:z})]}):s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[ie(!1),s.jsx("div",{className:"flex-1 min-h-0 flex flex-col gap-0.5 -mr-2 pr-2",children:s.jsx(Ht,{wrapperClassName:"flex-1 min-h-0",className:"flex flex-col gap-0.5 overflow-y-auto overscroll-contain h-full",children:s.jsx(Vt,{threads:G,groupBy:S,activeTaskId:j,onSelectTask:J,onArchiveTask:q,filters:R,hasMore:m,isFetchingMore:c,onLoadMore:()=>{d()},filtersActive:ee})})}),O&&s.jsx(Gt,{open:w,onOpenChange:z})]})}const Pl=5,Dl=[{nameWidth:"w-24",taskRows:2},{nameWidth:"w-28",taskRows:0},{nameWidth:"w-20",taskRows:1},{nameWidth:"w-32",taskRows:0},{nameWidth:"w-24",taskRows:0}];function Is(){const t=I.c(3),{state:e}=pe();if(e==="collapsed"){let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex flex-col gap-1.5",children:Array.from({length:Pl}).map(Rl)}),t[0]=i):i=t[0],i}let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"shrink-0 px-1 h-10 md:h-7 mb-2 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(oe,{className:"size-6 rounded-md"}),s.jsx(oe,{className:"size-6 rounded-md"}),s.jsx(oe,{className:"size-6 rounded-md"})]}),s.jsx(oe,{className:"h-6 w-20 rounded-md"})]}),t[1]=n):n=t[1];let l;return t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[n,s.jsx("div",{className:"flex flex-col gap-0.5",children:Dl.map(Fl)})]}),t[2]=l):l=t[2],l}function Fl(t,e){return s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[s.jsx(oe,{className:"size-5 rounded-full shrink-0"}),s.jsx(oe,{className:E("h-3",t.nameWidth,"rounded-sm")})]}),t.taskRows>0&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:Array.from({length:t.taskRows}).map(El)})]},e)}function El(t,e){return s.jsx("div",{className:"flex items-center gap-2 px-2 py-1.5",children:s.jsx(oe,{className:"h-3 flex-1 rounded-sm"})},e)}function Rl(t,e){return s.jsx(oe,{className:"size-10 rounded-lg mx-auto"},e)}function Ll(){const t=I.c(2);if(nt()){let l;return t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(gt,{showName:!0}),t[0]=l):l=t[0],l}let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(s.Fragment,{children:[s.jsx(gt,{}),s.jsx(lt,{})]}),t[1]=n):n=t[1],n}function Bl(){const t=I.c(5),e=ps();let n,l;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(ml,{}),l=s.jsx(Ll,{}),t[0]=n,t[1]=l):(n=t[0],l=t[1]);let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Jt,{children:s.jsx(L.Suspense,{fallback:s.jsx(Is,{}),children:s.jsx(As,{})})}),t[2]=i):i=t[2];let r;return t[3]!==e?(r=s.jsx(ds,{children:s.jsx(js,{sections:e,footer:n,header:l,additionalContent:i})}),t[3]=e,t[4]=r):r=t[4],r}function Hl(t){const e=I.c(8),{onClose:n}=t,l=ps();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ul,{}),e[0]=i):i=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Is,{}),e[1]=r):r=e[1];let o;e[2]!==n?(o=s.jsx(Jt,{children:s.jsx(L.Suspense,{fallback:r,children:s.jsx(As,{onNavigate:n})})}),e[2]=n,e[3]=o):o=e[3];let a;return e[4]!==n||e[5]!==l||e[6]!==o?(a=s.jsx(ds,{children:s.jsx(Zi,{sections:l,onClose:n,footer:i,additionalContent:o})}),e[4]=n,e[5]=l,e[6]=o,e[7]=a):a=e[7],a}const Gl="sidebar.open";function Ul(){const t=I.c(1),{state:e}=pe(),n=nt();if(e!=="collapsed"||n)return null;let l;return t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(lt,{}),t[0]=l):l=t[0],l}function Wl(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Ys,{}),t[0]=e):e=t[0],e}function aa(){const t=I.c(38),e=Nt(),n=nt(),[l,i]=Ze(Gl,!1),{width:r,wrapperRef:o,onStartResize:a,resetWidth:m}=_i(),c=!e;let d,u;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsxs(te.LeftColumn,{children:[s.jsx(Ul,{}),s.jsx(te.TogglesSlot,{})]}),u=s.jsx(te.CenterSlot,{}),t[0]=d,t[1]=u):(d=t[0],u=t[1]);let h;t[2]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsxs(te.Header,{children:[d,u,s.jsxs(te.RightColumn,{children:[s.jsx("div",{className:"min-w-0 flex-1 overflow-x-auto [scrollbar-width:none] flex justify-end items-center gap-0.5",children:s.jsx(te.TabsSlot,{})}),s.jsx(te.RightSlot,{})]})]}),t[2]=h):h=t[2];const f=h;let x;t[3]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(xs,{}),t[3]=x):x=t[3];let g;t[4]!==n?(g=!n&&s.jsx("div",{className:"flex min-w-0 flex-1 items-center",children:s.jsx(lt,{})}),t[4]=n,t[5]=g):g=t[5];let p,b,j,y,v;t[6]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(Ge,{}),b=s.jsx(te.TogglesSlot,{}),j=s.jsx(te.TabsSlot,{className:"shrink-0"}),y=s.jsx(te.CenterSlot,{}),v=s.jsx(te.RightSlot,{}),t[6]=p,t[7]=b,t[8]=j,t[9]=y,t[10]=v):(p=t[6],b=t[7],j=t[8],y=t[9],v=t[10]);let _;t[11]!==g?(_=s.jsx(te.Header,{className:"grid-cols-1 px-1",children:s.jsxs("div",{className:"flex w-full min-w-0 items-center gap-1",children:[x,g,p,b,j,y,v]})}),t[11]=g,t[12]=_):_=t[12];const C=_;let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N={background:"transparent",containerType:"inline-size"},t[13]=N):N=t[13];let S;t[14]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Zs,{className:"flex flex-col min-h-0",style:N,children:s.jsx("div",{className:"flex flex-col h-full min-h-0",children:s.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:s.jsx(L.Suspense,{fallback:s.jsx(Wl,{}),children:s.jsx(Vs,{})})})})}),t[14]=S):S=t[14];const A=S,k=!c&&(e?C:f),$=`${r}px`;let w;t[15]!==$?(w={"--sidebar-width":$,"--sidebar-width-icon":"3.125rem"},t[15]=$,t[16]=w):w=t[16];const z=w;let O;t[17]!==e||t[18]!==a||t[19]!==m?(O=!e&&s.jsxs(s.Fragment,{children:[s.jsx(Bl,{}),s.jsx(yi,{onPointerDown:a,onDoubleClick:m})]}),t[17]=e,t[18]=a,t[19]=m,t[20]=O):O=t[20];let P;t[21]!==c?(P=c?s.jsxs("div",{className:"flex flex-col flex-1 min-w-0 min-h-0 h-full",children:[f,A]}):A,t[21]=c,t[22]=P):P=t[22];let R;t[23]!==z||t[24]!==O||t[25]!==P||t[26]!==o?(R=s.jsxs(en,{ref:o,className:"flex-1 bg-sidebar relative min-h-0",style:z,children:[O,P]}),t[23]=z,t[24]=O,t[25]=P,t[26]=o,t[27]=R):R=t[27];let D;t[28]!==e?(D=e&&s.jsx(hi,{renderSidebar:ql}),t[28]=e,t[29]=D):D=t[29];let F;t[30]!==k||t[31]!==R||t[32]!==D?(F=s.jsx(In,{children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[k,R,D]})}),t[30]=k,t[31]=R,t[32]=D,t[33]=F):F=t[33];let M;return t[34]!==i||t[35]!==l||t[36]!==F?(M=s.jsx(On,{children:s.jsx(te.Provider,{children:s.jsx(tn,{open:l,onOpenChange:i,children:F})})}),t[34]=i,t[35]=l,t[36]=F,t[37]=M):M=t[37],M}function ql(t){const{onClose:e}=t;return s.jsx("div",{className:"flex h-full",children:s.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:s.jsx(Hl,{onClose:e})})})}export{aa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,r as E,j as e,i as rt}from"./index-DcIBnpEi.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-CnVq7sh3.js";import{A as nt}from"./automation-runs-Dk0QSvXf.js";import{r as lt,u as ct,a as dt,b as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-C5auzZh8.js";import{r as xt}from"./index-Cw63Whs6.js";import"./LayoutLeft-CBWI-N6A.js";import"./use-mobile-CNvoxL11.js";import"./X-9ap9xtG7.js";import"./tooltip-FbSqyAkw.js";import"./select-B769KgqG.js";import"./Check-BbBVbCml.js";import"./ChevronDown-DujWjiEx.js";import"./ChevronUp-LzTIy1Gg.js";import"./useInfiniteQuery-CgoqkRWJ.js";import"./use-infinite-scroll-Y5a7xah6.js";import"./use-connection-BQbRdj4A.js";import"./use-collections-B6JlYHnr.js";import"./use-mcp-client-CP4c9F3u.js";import"./constants-CaIX_f5U.js";import"./auth-BiABWEcr.js";import"./use-virtual-mcp-BYkuAhYP.js";import"./card-DQteBSZy.js";import"./table-Cpz7KTQ5.js";import"./empty-state-2f1dk8dl.js";import"./use-members-BrCJmQZK.js";import"./use-org-auth-client-D2oZvH8p.js";import"./use-clock-tick-Dx2kBV_T.js";import"./AlertCircle-By5V_OAI.js";import"./CheckCircle-CjRjq78H.js";import"./Circle-Ba61O7v3.js";import"./agent-icon-DdKclnWr.js";import"./Tool01-DTcOZbnu.js";import"./ArrowUp-CPmpTxqA.js";import"./Settings02-Cr0VpQbw.js";import"./Tool02-DN7RIFuA.js";import"./XCircle-DTf-SPGi.js";import"./ArrowUpRight-DTva-CtK.js";import"./TrendUp01-CFBaEMFF.js";import"./ZapSquare-CSYmmZIg.js";import"./Users03-D26TNI6S.js";import"./Loading02-OOljSfhT.js";import"./ChevronRight-4FTF4WqI.js";import"./Stars02-A9_Qn88t.js";import"./Copy01-B0978reE.js";import"./ZoomOut-BfjzuKIF.js";import"./DotsVertical-BWXuIIeo.js";import"./Globe01-c9kQJ0J1.js";import"./Eye-CLyPbWNp.js";import"./FilterLines-CZvywTHD.js";import"./Star01-BPwcVgMJ.js";import"./Globe04-EfBNVCza.js";import"./SwitchHorizontal01-CyHxNN_R.js";import"./HardDrive-3x4L_urK.js";import"./Key01-D0e_huT5.js";import"./LinkExternal01-CbZ5Q1kR.js";import"./List-CKuVIidV.js";import"./Monitor01-CIDTmDYS.js";import"./Sun-DBwGI45B.js";import"./Package-BT2pZEKs.js";import"./Palette-B4t53EuZ.js";import"./Play-YTvPwfKb.js";import"./Plus-BQc-qQk7.js";import"./SearchLg-Cm7KW90l.js";import"./SearchMd-C7y5LJQw.js";import"./Shield01-D2bvXHJr.js";import"./Stars01-z2NZeFbA.js";import"./Trash01-CRdtidTM.js";import"./Upload01-Cwtb67Lw.js";import"./User01-dV6U41aQ.js";import"./Users01-DfR0NZI2.js";import"./XClose-Bx_SHZf9.js";import"./Zap-DTYY_yG6.js";import"./use-automations-eRXq8hNu.js";import"./studio-tools-Bdai-xGF.js";import"./useSuspenseInfiniteQuery-BW3gCCYi.js";import"./badge-BeBCWRwF.js";import"./checkbox-DyFXnv_N.js";import"./command-N6cziNOU.js";import"./index-Dyecjn9n.js";import"./dialog-Hnvvuwtr.js";import"./popover-CH5b_fiQ.js";import"./avatar-D6tfDvwN.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DxP-67RS.js";import"./file-type-icon-DCAOo88S.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-oYFtE1AD.js";import"./index-hwaeRRf3.js";import"./chat-context-BFU9KNJs.js";import"./autosend-OBVQJIwA.js";import"./hooks-DxKHI4Sv.js";import"./decopilot-sse-pool-DlhjUAGk.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-rBuyV02F.js";import"./use-decopilot-events-BrhYZT96.js";import"./use-organization-settings-DPWTEzqv.js";import"./index-CRhm_2EO.js";import"./shell-layout-CvmkWYxb.js";import"./alert-dialog-CySfFhdC.js";import"./required-auth-layout-B-X0Ygcy.js";import"./use-org-sso-CuQ1DX-B.js";import"./integration-icon-ZhMn59o3.js";import"./use-navigate-to-agent-S62tKbn_.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DYFue3AB.js";import"./form-44AoMqLt.js";import"./label-XzNlba7M.js";import"./input-CzqITCIW.js";import"./switch-josi6Uyt.js";import"./drawer-BN7xa-Kn.js";import"./collection-search-DUDcpj0N.js";import"./tabs-Bd4tTw7M.js";import"./toggle-group-CCVpVQJx.js";import"./use-deco-credits-BIY8ss-U.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CjpTLTCF.js";import"./use-registry-connections-Qwuyc_tK.js";import"./extract-connection-data-C9LhPqdN.js";import"./collection-tabs-BoJeinsY.js";import"./textarea-CN1NcM6-.js";import"./connection-form-helpers-B9LwF6od.js";import"./authenticate-and-persist-oauth-BnB-i5Hx.js";import"./mcp-oauth-CpkgHFkt.js";import"./connect-desktop-dialog-D5uIE_v3.js";import"./select-model-DBtqvDeJ.js";import"./skeleton-DDgvHM8p.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DlrJmzQQ.js";import"./dropdown-menu-C1oaxvGA.js";import"./index-DLUt_tIW.js";import"./toolbar-4tiJk0vY.js";import"./use-debounced-value-CEU4XuDq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Qyl_ERMg.js";import"./use-mcp-tools-Bt4ZQFfJ.js";import"./use-capability-DG3TMrBr.js";import"./tools-list-OlvXGJpp.js";import"./use-debounced-autosave-DUw5dpg0.js";import"./index-B4UIYyWJ.js";import"./search-input-CWI66WZh.js";import"./github-repo-picker-CW5PRm8S.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Bog2G1S_.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-DXQi4Q1O.js";import"./get-initials-D-f_fDFw.js";import"./calendar-B8LPJQzI.js";import"./toolbar-icon-button-B4ns4onG.js";import"./use-file-configs-DL6xLLlG.js";import"./automation-list-row-fGuDXKMz.js";function Si(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 A=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 M=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 V=F,q=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,z=m.kind==="site"&&o&&n,B=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 H=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const $=O;let l;t[13]!==q?(l=e.jsx(mt,{className:"text-sm font-semibold",children:q}),t[13]=q,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]!==$||t[22]!==H||t[23]!==A||t[24]!==v||t[25]!==h||t[26]!==B||t[27]!==x||t[28]!==M||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==z||t[37]!==_?(S=!o||!T&&!z?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:B}):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:A,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:H,onBumpFormKey:$}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:M})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=A,t[24]=v,t[25]=h,t[26]=B,t[27]=x,t[28]=M,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=z,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]!==V||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:V,children:f}),t[42]=V,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{Si as SeoSheet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,a4 as H,j as v}from"./index-DcIBnpEi.js";import{a as L,g as E,s as b}from"./automation-runs-Dk0QSvXf.js";import{u as O}from"./use-mcp-client-CP4c9F3u.js";import{p as k}from"./constants-CaIX_f5U.js";import{b as q,c as B}from"./use-mcp-tools-Bt4ZQFfJ.js";import{u as Y}from"./index-Cw63Whs6.js";import{c as G}from"./monaco-editor-oYFtE1AD.js";import{g as K,M as V,a as w}from"./index-CRhm_2EO.js";import{b as z,a as F}from"./chat-context-BFU9KNJs.js";import{u as J}from"./shell-layout-CvmkWYxb.js";import"./select-B769KgqG.js";import"./tooltip-FbSqyAkw.js";import"./Check-BbBVbCml.js";import"./ChevronDown-DujWjiEx.js";import"./ChevronUp-LzTIy1Gg.js";import"./useInfiniteQuery-CgoqkRWJ.js";import"./use-infinite-scroll-Y5a7xah6.js";import"./use-connection-BQbRdj4A.js";import"./use-collections-B6JlYHnr.js";import"./use-virtual-mcp-BYkuAhYP.js";import"./card-DQteBSZy.js";import"./sidebar-CnVq7sh3.js";import"./LayoutLeft-CBWI-N6A.js";import"./use-mobile-CNvoxL11.js";import"./X-9ap9xtG7.js";import"./table-Cpz7KTQ5.js";import"./empty-state-2f1dk8dl.js";import"./use-members-BrCJmQZK.js";import"./use-org-auth-client-D2oZvH8p.js";import"./use-clock-tick-Dx2kBV_T.js";import"./AlertCircle-By5V_OAI.js";import"./CheckCircle-CjRjq78H.js";import"./Circle-Ba61O7v3.js";import"./agent-icon-DdKclnWr.js";import"./Tool01-DTcOZbnu.js";import"./ArrowUp-CPmpTxqA.js";import"./Settings02-Cr0VpQbw.js";import"./Tool02-DN7RIFuA.js";import"./XCircle-DTf-SPGi.js";import"./ArrowUpRight-DTva-CtK.js";import"./TrendUp01-CFBaEMFF.js";import"./ZapSquare-CSYmmZIg.js";import"./Users03-D26TNI6S.js";import"./Loading02-OOljSfhT.js";import"./ChevronRight-4FTF4WqI.js";import"./Stars02-A9_Qn88t.js";import"./Copy01-B0978reE.js";import"./ZoomOut-BfjzuKIF.js";import"./DotsVertical-BWXuIIeo.js";import"./Globe01-c9kQJ0J1.js";import"./Eye-CLyPbWNp.js";import"./FilterLines-CZvywTHD.js";import"./Star01-BPwcVgMJ.js";import"./Globe04-EfBNVCza.js";import"./SwitchHorizontal01-CyHxNN_R.js";import"./HardDrive-3x4L_urK.js";import"./Key01-D0e_huT5.js";import"./LinkExternal01-CbZ5Q1kR.js";import"./List-CKuVIidV.js";import"./Monitor01-CIDTmDYS.js";import"./Sun-DBwGI45B.js";import"./Package-BT2pZEKs.js";import"./Palette-B4t53EuZ.js";import"./Play-YTvPwfKb.js";import"./Plus-BQc-qQk7.js";import"./SearchLg-Cm7KW90l.js";import"./SearchMd-C7y5LJQw.js";import"./Shield01-D2bvXHJr.js";import"./Stars01-z2NZeFbA.js";import"./Trash01-CRdtidTM.js";import"./Upload01-Cwtb67Lw.js";import"./User01-dV6U41aQ.js";import"./Users01-DfR0NZI2.js";import"./XClose-Bx_SHZf9.js";import"./Zap-DTYY_yG6.js";import"./use-automations-eRXq8hNu.js";import"./studio-tools-Bdai-xGF.js";import"./useSuspenseInfiniteQuery-BW3gCCYi.js";import"./badge-BeBCWRwF.js";import"./checkbox-DyFXnv_N.js";import"./command-N6cziNOU.js";import"./index-Dyecjn9n.js";import"./dialog-Hnvvuwtr.js";import"./popover-CH5b_fiQ.js";import"./avatar-D6tfDvwN.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DxP-67RS.js";import"./file-type-icon-DCAOo88S.js";import"./tab-id-bb-jjgGv.js";import"./hooks-DxKHI4Sv.js";import"./decopilot-sse-pool-DlhjUAGk.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-ZhMn59o3.js";import"./use-navigate-to-agent-S62tKbn_.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DYFue3AB.js";import"./form-44AoMqLt.js";import"./label-XzNlba7M.js";import"./input-CzqITCIW.js";import"./auth-BiABWEcr.js";import"./drawer-BN7xa-Kn.js";import"./collection-search-DUDcpj0N.js";import"./autosend-OBVQJIwA.js";import"./tabs-Bd4tTw7M.js";import"./toggle-group-CCVpVQJx.js";import"./use-deco-credits-BIY8ss-U.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CjpTLTCF.js";import"./use-registry-connections-Qwuyc_tK.js";import"./use-organization-settings-DPWTEzqv.js";import"./extract-connection-data-C9LhPqdN.js";import"./collection-tabs-BoJeinsY.js";import"./textarea-CN1NcM6-.js";import"./connection-form-helpers-B9LwF6od.js";import"./authenticate-and-persist-oauth-BnB-i5Hx.js";import"./mcp-oauth-CpkgHFkt.js";import"./use-ai-providers-rBuyV02F.js";import"./connect-desktop-dialog-D5uIE_v3.js";import"./select-model-DBtqvDeJ.js";import"./skeleton-DDgvHM8p.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DlrJmzQQ.js";import"./dropdown-menu-C1oaxvGA.js";import"./index-DLUt_tIW.js";import"./alert-dialog-CySfFhdC.js";import"./toolbar-4tiJk0vY.js";import"./use-debounced-value-CEU4XuDq.js";import"./index-hwaeRRf3.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Qyl_ERMg.js";import"./use-decopilot-events-BrhYZT96.js";import"./use-capability-DG3TMrBr.js";import"./tools-list-OlvXGJpp.js";import"./switch-josi6Uyt.js";import"./use-debounced-autosave-DUw5dpg0.js";import"./index-B4UIYyWJ.js";import"./search-input-CWI66WZh.js";import"./github-repo-picker-CW5PRm8S.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Bog2G1S_.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-DXQi4Q1O.js";import"./get-initials-D-f_fDFw.js";import"./calendar-B8LPJQzI.js";import"./toolbar-icon-button-B4ns4onG.js";import"./use-file-configs-DL6xLLlG.js";import"./automation-list-row-fGuDXKMz.js";import"./required-auth-layout-B-X0Ygcy.js";import"./use-org-sso-CuQ1DX-B.js";const Q={};function W(A){const t=$.c(37),{client:i,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=A,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{openSidePanel:f,openTab:g}=J(),r=`${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]!==i||t[3]!==o.name||t[4]!==s?(c={client:i,toolName:o.name,toolArguments:s},t[2]=i,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:e}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=b(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 j=N;let S;t[15]!==f||t[16]!==I?(S=C=>{const D=G(C.content);D.content.length>0&&(f("chat"),I({tiptapDoc:D}))},t[15]=f,t[16]=I,t[17]=S):S=t[17];const y=S;let P;t[18]!==j?(P={tool:j},t[18]=j,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==r?(T=C=>u(r,C),t[20]=u,t[21]=r,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==r?(R=()=>n(r),t[23]=n,t[24]=r,t[25]=R):R=t[25];let _;return t[26]!==i||t[27]!==y||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==e?(_=v.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:e,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:i,onMessage:y,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=i,t[27]=y,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=e,t[36]=_):_=t[36],_}function Br(A){const t=$.c(24),{connectionId:i,toolName:h,args:o}=A,{org:p}=H(),l=Y();let M;t[0]!==i||t[1]!==l?(M=k(i)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=i,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==i||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:i,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=i,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=O(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let r,a,m;t[10]!==h||t[11]!==g.tools?(r=L(decodeURIComponent(h)),m=g.tools.find(e=>e.name===r)??g.tools.find(e=>{const x=E(e._meta);if(!x)return!1;if(b(e.name,x)===r)return!0;const d=b(r,x);return d!==r&&e.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=r,t[13]=a,t[14]=m):(r=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let e;return t[15]!==r?(e=v.jsx("div",{className:"flex items-center justify-center h-full w-full",children:v.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=e):e=t[16],e}let c;return t[17]!==o||t[18]!==n||t[19]!==i||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=v.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:i,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=i,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{Br as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as S,j as r}from"./index-DcIBnpEi.js";import{I as T}from"./input-CzqITCIW.js";import{L as C}from"./label-XzNlba7M.js";import{T as L}from"./textarea-CN1NcM6-.js";import{v as A,w as R,o as D,x as J,I as K}from"./index-Cw63Whs6.js";import{u as M,s as P}from"./primitives-DFbg_AMZ.js";import"./ArrowUp-CPmpTxqA.js";import"./chat-context-BFU9KNJs.js";import"./autosend-OBVQJIwA.js";import"./hooks-DxKHI4Sv.js";import"./use-mcp-client-CP4c9F3u.js";import"./constants-CaIX_f5U.js";import"./auth-BiABWEcr.js";import"./decopilot-sse-pool-DlhjUAGk.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-Bdai-xGF.js";import"./use-virtual-mcp-BYkuAhYP.js";import"./use-collections-B6JlYHnr.js";import"./use-ai-providers-rBuyV02F.js";import"./use-decopilot-events-BrhYZT96.js";import"./tab-id-bb-jjgGv.js";import"./use-organization-settings-DPWTEzqv.js";import"./automation-runs-Dk0QSvXf.js";import"./select-B769KgqG.js";import"./tooltip-FbSqyAkw.js";import"./Check-BbBVbCml.js";import"./ChevronDown-DujWjiEx.js";import"./ChevronUp-LzTIy1Gg.js";import"./useInfiniteQuery-CgoqkRWJ.js";import"./use-infinite-scroll-Y5a7xah6.js";import"./use-connection-BQbRdj4A.js";import"./card-DQteBSZy.js";import"./sidebar-CnVq7sh3.js";import"./LayoutLeft-CBWI-N6A.js";import"./use-mobile-CNvoxL11.js";import"./X-9ap9xtG7.js";import"./table-Cpz7KTQ5.js";import"./empty-state-2f1dk8dl.js";import"./use-members-BrCJmQZK.js";import"./use-org-auth-client-D2oZvH8p.js";import"./use-clock-tick-Dx2kBV_T.js";import"./AlertCircle-By5V_OAI.js";import"./CheckCircle-CjRjq78H.js";import"./Circle-Ba61O7v3.js";import"./agent-icon-DdKclnWr.js";import"./Tool01-DTcOZbnu.js";import"./Settings02-Cr0VpQbw.js";import"./Tool02-DN7RIFuA.js";import"./XCircle-DTf-SPGi.js";import"./ArrowUpRight-DTva-CtK.js";import"./TrendUp01-CFBaEMFF.js";import"./ZapSquare-CSYmmZIg.js";import"./Users03-D26TNI6S.js";import"./Loading02-OOljSfhT.js";import"./ChevronRight-4FTF4WqI.js";import"./Stars02-A9_Qn88t.js";import"./Copy01-B0978reE.js";import"./ZoomOut-BfjzuKIF.js";import"./DotsVertical-BWXuIIeo.js";import"./Globe01-c9kQJ0J1.js";import"./Eye-CLyPbWNp.js";import"./FilterLines-CZvywTHD.js";import"./Star01-BPwcVgMJ.js";import"./Globe04-EfBNVCza.js";import"./SwitchHorizontal01-CyHxNN_R.js";import"./HardDrive-3x4L_urK.js";import"./Key01-D0e_huT5.js";import"./LinkExternal01-CbZ5Q1kR.js";import"./List-CKuVIidV.js";import"./Monitor01-CIDTmDYS.js";import"./Sun-DBwGI45B.js";import"./Package-BT2pZEKs.js";import"./Palette-B4t53EuZ.js";import"./Play-YTvPwfKb.js";import"./Plus-BQc-qQk7.js";import"./SearchLg-Cm7KW90l.js";import"./SearchMd-C7y5LJQw.js";import"./Shield01-D2bvXHJr.js";import"./Stars01-z2NZeFbA.js";import"./Trash01-CRdtidTM.js";import"./Upload01-Cwtb67Lw.js";import"./User01-dV6U41aQ.js";import"./Users01-DfR0NZI2.js";import"./XClose-Bx_SHZf9.js";import"./Zap-DTYY_yG6.js";import"./use-automations-eRXq8hNu.js";import"./useSuspenseInfiniteQuery-BW3gCCYi.js";import"./badge-BeBCWRwF.js";import"./checkbox-DyFXnv_N.js";import"./command-N6cziNOU.js";import"./index-Dyecjn9n.js";import"./dialog-Hnvvuwtr.js";import"./popover-CH5b_fiQ.js";import"./avatar-D6tfDvwN.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DxP-67RS.js";import"./file-type-icon-DCAOo88S.js";import"./monaco-editor-oYFtE1AD.js";import"./index-hwaeRRf3.js";import"./index-CRhm_2EO.js";import"./shell-layout-CvmkWYxb.js";import"./alert-dialog-CySfFhdC.js";import"./required-auth-layout-B-X0Ygcy.js";import"./use-org-sso-CuQ1DX-B.js";import"./integration-icon-ZhMn59o3.js";import"./use-navigate-to-agent-S62tKbn_.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DYFue3AB.js";import"./form-44AoMqLt.js";import"./drawer-BN7xa-Kn.js";import"./collection-search-DUDcpj0N.js";import"./tabs-Bd4tTw7M.js";import"./toggle-group-CCVpVQJx.js";import"./use-deco-credits-BIY8ss-U.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CjpTLTCF.js";import"./use-registry-connections-Qwuyc_tK.js";import"./extract-connection-data-C9LhPqdN.js";import"./collection-tabs-BoJeinsY.js";import"./connection-form-helpers-B9LwF6od.js";import"./authenticate-and-persist-oauth-BnB-i5Hx.js";import"./mcp-oauth-CpkgHFkt.js";import"./connect-desktop-dialog-D5uIE_v3.js";import"./select-model-DBtqvDeJ.js";import"./skeleton-DDgvHM8p.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DlrJmzQQ.js";import"./dropdown-menu-C1oaxvGA.js";import"./index-DLUt_tIW.js";import"./toolbar-4tiJk0vY.js";import"./use-debounced-value-CEU4XuDq.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Qyl_ERMg.js";import"./use-mcp-tools-Bt4ZQFfJ.js";import"./use-capability-DG3TMrBr.js";import"./tools-list-OlvXGJpp.js";import"./switch-josi6Uyt.js";import"./use-debounced-autosave-DUw5dpg0.js";import"./index-B4UIYyWJ.js";import"./search-input-CWI66WZh.js";import"./github-repo-picker-CW5PRm8S.js";import"./github-installations-D2vHSx02.js";import"./use-secrets-Bog2G1S_.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./index-DXQi4Q1O.js";import"./get-initials-D-f_fDFw.js";import"./calendar-B8LPJQzI.js";import"./toolbar-icon-button-B4ns4onG.js";import"./use-file-configs-DL6xLLlG.js";import"./automation-list-row-fGuDXKMz.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 Lr(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{Lr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DRXLNW97.js","assets/index-DcIBnpEi.js","assets/index-HuEHg6r8.css","assets/Tool02-DN7RIFuA.js","assets/CheckCircle-CjRjq78H.js","assets/Settings02-Cr0VpQbw.js","assets/use-mcp-client-CP4c9F3u.js","assets/constants-CaIX_f5U.js","assets/auth-BiABWEcr.js","assets/useInfiniteQuery-CgoqkRWJ.js","assets/use-infinite-scroll-Y5a7xah6.js","assets/studio-tools-Bdai-xGF.js","assets/badge-BeBCWRwF.js","assets/input-CzqITCIW.js","assets/dropdown-menu-C1oaxvGA.js","assets/Check-BbBVbCml.js","assets/ChevronRight-4FTF4WqI.js","assets/Circle-Ba61O7v3.js","assets/table-Cpz7KTQ5.js","assets/toggle-group-CCVpVQJx.js","assets/use-view-mode-B8GphToI.js","assets/use-mobile-CNvoxL11.js","assets/DotsVertical-BWXuIIeo.js","assets/FilterLines-CZvywTHD.js","assets/Globe01-c9kQJ0J1.js","assets/SearchMd-C7y5LJQw.js","assets/dialog-Hnvvuwtr.js","assets/X-9ap9xtG7.js","assets/AlertCircle-By5V_OAI.js","assets/Upload01-Cwtb67Lw.js","assets/alert-dialog-CySfFhdC.js","assets/card-DQteBSZy.js","assets/Trash01-CRdtidTM.js","assets/label-XzNlba7M.js","assets/select-B769KgqG.js","assets/tooltip-FbSqyAkw.js","assets/ChevronDown-DujWjiEx.js","assets/ChevronUp-LzTIy1Gg.js","assets/switch-josi6Uyt.js","assets/textarea-CN1NcM6-.js","assets/XCircle-DTf-SPGi.js","assets/checkbox-DyFXnv_N.js","assets/Eye-CLyPbWNp.js","assets/LinkExternal01-CbZ5Q1kR.js","assets/use-copy-DxP-67RS.js","assets/Copy01-B0978reE.js","assets/Key01-D0e_huT5.js","assets/Plus-BQc-qQk7.js","assets/mcp-oauth-CpkgHFkt.js","assets/Play-YTvPwfKb.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as s,j as e,r as i,i as a,aW as o}from"./index-DcIBnpEi.js";import{R as m}from"./require-capability-CuikEqkA.js";import"./use-capability-DG3TMrBr.js";import"./access-gate-5OdRTd9-.js";import"./capability-load-error-CWu6wHWg.js";const n=i.lazy(()=>o(()=>import("./registry-layout-DRXLNW97.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,45,46,47,48,49])));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 ee,j as n,B as T,bU as H,t as W,$ as ye,a as Y,X as Ne,P as xe,K as se,bV as _e,bW as Ae,Y as B,r as K,m as te,bX as Ce,bY as Oe,b as Te,a4 as Ee,e as be,u as $e,a5 as ze,aY as Pe,bZ as De,b_ as ue,b$ as Ie,c0 as Le,S as Fe,O as Me,c1 as Re}from"./index-DcIBnpEi.js";import{A as oe}from"./avatar-D6tfDvwN.js";import{t as we,a as qe}from"./Users03-D26TNI6S.js";import{i as Ue}from"./SearchLg-Cm7KW90l.js";import{i as Ge,s as Ke,a as P,n as He}from"./Stars02-A9_Qn88t.js";import{s as Be}from"./XClose-Bx_SHZf9.js";import{i as I}from"./CheckCircle-CjRjq78H.js";import{i as me}from"./FilterLines-CZvywTHD.js";import{i as G}from"./Zap-DTYY_yG6.js";import{d as Ye,D as We,a as Je,e as Qe}from"./dialog-Hnvvuwtr.js";import{b as Ve,c as Xe,d as Ze,a as et,e as tt,g as nt,f as st}from"./alert-dialog-CySfFhdC.js";import{R as ot}from"./required-auth-layout-B-X0Ygcy.js";import{A as it}from"./autosend-OBVQJIwA.js";import{m as at}from"./use-mcp-client-CP4c9F3u.js";import{a as fe,S as rt}from"./constants-CaIX_f5U.js";import{g as lt,c as ct}from"./hooks-DxKHI4Sv.js";import{q as dt}from"./tab-id-bb-jjgGv.js";import{e as ut}from"./use-organization-settings-DPWTEzqv.js";import{u as mt}from"./use-org-sso-CuQ1DX-B.js";function ft(t){const e=k.c(27),{orgName:s,orgSlug:o,orgLogo:a,domain:r}=t;let i;e[0]!==o?(i={mutationFn:async()=>{const S=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:o})}),v=await S.json();if(!S.ok||!v.success)throw new Error(v.error??"Failed to join organization");return v},onSuccess:S=>{window.location.href=`/${S.slug??o}`},onError:gt},e[0]=o,e[1]=i):i=e[1];const l=ee(i),c=ht;let d;e[2]!==a||e[3]!==s?(d=a?n.jsx(oe,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(we,{className:"h-6 w-6 text-primary"})}),e[2]=a,e[3]=s,e[4]=d):d=e[4];let u;e[5]!==s?(u=n.jsxs("h3",{className:"text-lg font-medium",children:["Join ",s,"?"]}),e[5]=s,e[6]=u):u=e[6];let m;e[7]!==r?(m=n.jsxs("p",{className:"text-sm text-muted-foreground",children:["Anyone with an ",n.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=n.jsxs("div",{className:"space-y-2",children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11];let p;e[12]!==l?(p=()=>l.mutate(),e[12]=l,e[13]=p):p=e[13];const f=l.isPending?"Joining…":`Enter ${s}`;let g;e[14]!==l.isPending||e[15]!==p||e[16]!==f?(g=n.jsx(T,{onClick:p,disabled:l.isPending,children:f}),e[14]=l.isPending,e[15]=p,e[16]=f,e[17]=g):g=e[17];let y;e[18]!==l.isPending?(y=n.jsx(T,{variant:"ghost",onClick:c,disabled:l.isPending,children:"Go to home"}),e[18]=l.isPending,e[19]=y):y=e[19];let b;e[20]!==g||e[21]!==y?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,y]}),e[20]=g,e[21]=y,e[22]=b):b=e[22];let x;return e[23]!==b||e[24]!==d||e[25]!==h?(x=n.jsxs(H,{children:[d,h,b]}),e[23]=b,e[24]=d,e[25]=h,e[26]=x):x=e[26],x}function ht(){window.location.href="/"}function gt(t){W.error(t instanceof Error?t.message:"Failed to join organization")}function he(t){const e=k.c(17),{orgSlug:s,orgName:o,reason:a}=t,r=pt,i=a==="not-found",l=i?Ue:ye,c=i?"Organization not found":"No access";let d;e[0]!==i||e[1]!==o||e[2]!==s?(d=i?n.jsxs(n.Fragment,{children:["We couldn't find an organization called ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:["You don't have access to ",n.jsx("strong",{children:o??s}),".",n.jsx("br",{}),"Ask an admin to invite you."]}),e[0]=i,e[1]=o,e[2]=s,e[3]=d):d=e[3];const u=d;let m;e[4]!==l?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.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=n.jsx("h3",{className:"text-lg font-medium",children:c}),e[6]=c,e[7]=h):h=e[7];let p;e[8]!==u?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[8]=u,e[9]=p):p=e[9];let f;e[10]!==h||e[11]!==p?(f=n.jsxs("div",{className:"space-y-2",children:[h,p]}),e[10]=h,e[11]=p,e[12]=f):f=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(T,{onClick:r,children:"Go to home"}),e[13]=g):g=e[13];let y;return e[14]!==m||e[15]!==f?(y=n.jsxs(H,{children:[m,f,g]}),e[14]=m,e[15]=f,e[16]=y):y=e[16],y}function pt(){window.location.href="/"}function yt(t){const e=k.c(39),{invitationId:s,orgName:o,orgSlug:a,orgLogo:r}=t;let i;e[0]!==s?(i=async()=>{const A=await Y.organization.acceptInvitation({invitationId:s});if(A.error)throw new Error(A.error.message);return A.data},e[0]=s,e[1]=i):i=e[1];let l;e[2]!==a?(l=()=>{Ne(),window.location.href=`/${a}`},e[2]=a,e[3]=l):l=e[3];let c;e[4]!==i||e[5]!==l?(c={mutationFn:i,onSuccess:l,onError:wt},e[4]=i,e[5]=l,e[6]=c):c=e[6];const d=ee(c);let u;e[7]!==s?(u=async()=>{const A=await Y.organization.rejectInvitation({invitationId:s});if(A.error)throw new Error(A.error.message);return A.data},e[7]=s,e[8]=u):u=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=bt,e[9]=m):m=e[9];let h;e[10]!==u?(h={mutationFn:u,onSuccess:m,onError:xt},e[10]=u,e[11]=h):h=e[11];const p=ee(h),f=d.isPending||p.isPending;let g;e[12]!==r||e[13]!==o?(g=r?n.jsx(oe,{url:r,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Ge,{className:"h-6 w-6 text-primary"})}),e[12]=r,e[13]=o,e[14]=g):g=e[14];let y;e[15]!==o?(y=n.jsxs("h3",{className:"text-lg font-medium",children:["You've been invited to ",n.jsx("strong",{children:o})]}),e[15]=o,e[16]=y):y=e[16];let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept the invitation to join this organization."}),e[17]=b):b=e[17];let x;e[18]!==y?(x=n.jsxs("div",{className:"space-y-2",children:[y,b]}),e[18]=y,e[19]=x):x=e[19];let S;e[20]!==d?(S=()=>d.mutate(),e[20]=d,e[21]=S):S=e[21];const v=d.isPending?"Accepting…":"Accept invitation";let N;e[22]!==f||e[23]!==S||e[24]!==v?(N=n.jsx(T,{onClick:S,disabled:f,children:v}),e[22]=f,e[23]=S,e[24]=v,e[25]=N):N=e[25];let O;e[26]!==p?(O=()=>p.mutate(),e[26]=p,e[27]=O):O=e[27];const _=p.isPending?"Declining…":"Decline";let w;e[28]!==f||e[29]!==O||e[30]!==_?(w=n.jsx(T,{variant:"ghost",onClick:O,disabled:f,children:_}),e[28]=f,e[29]=O,e[30]=_,e[31]=w):w=e[31];let $;e[32]!==N||e[33]!==w?($=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,w]}),e[32]=N,e[33]=w,e[34]=$):$=e[34];let z;return e[35]!==x||e[36]!==$||e[37]!==g?(z=n.jsxs(H,{children:[g,x,$]}),e[35]=x,e[36]=$,e[37]=g,e[38]=z):z=e[38],z}function xt(t){W.error(t instanceof Error?t.message:"Failed to decline invitation")}function bt(){W.success("Invitation declined"),window.location.href="/"}function wt(t){W.error(t instanceof Error?t.message:"Failed to accept invitation")}function St(t){const e=k.c(10),{orgName:s,orgLogo:o}=t;let a;e[0]!==o||e[1]!==s?(a=o?n.jsx(oe,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Ke,{className:"h-6 w-6 text-primary"})}),e[0]=o,e[1]=s,e[2]=a):a=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("h3",{className:"text-lg font-medium",children:"Request pending"}),e[3]=r):r=e[3];let i;e[4]!==s?(i=n.jsxs("div",{className:"space-y-2",children:[r,n.jsxs("p",{className:"text-sm text-muted-foreground",children:["Your request to join ",n.jsx("strong",{children:s})," is waiting for an admin to approve it. You'll get access once it's approved."]})]}),e[4]=s,e[5]=i):i=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(T,{variant:"ghost",onClick:jt,children:"Go to home"}),e[6]=l):l=e[6];let c;return e[7]!==a||e[8]!==i?(c=n.jsxs(H,{children:[a,i,l]}),e[7]=a,e[8]=i,e[9]=c):c=e[9],c}function jt(){window.location.href="/"}function vt(t){const e=k.c(30),{orgName:s,orgSlug:o,orgLogo:a,domain:r}=t;let i;e[0]!==o?(i=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]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=_t,e[2]=l):l=e[2];let c;e[3]!==i?(c={mutationFn:i,onSuccess:l,onError:Nt},e[3]=i,e[4]=c):c=e[4];const d=ee(c);let u;e[5]!==a||e[6]!==s?(u=a?n.jsx(oe,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(we,{className:"h-6 w-6 text-primary"})}),e[5]=a,e[6]=s,e[7]=u):u=e[7];let m;e[8]!==s?(m=n.jsxs("h3",{className:"text-lg font-medium",children:["Request to join ",s,"?"]}),e[8]=s,e[9]=m):m=e[9];let h;e[10]!==r?(h=n.jsxs("p",{className:"text-sm text-muted-foreground",children:["An admin must approve requests from ",n.jsxs("strong",{children:["@",r]})," emails before you can join."]}),e[10]=r,e[11]=h):h=e[11];let p;e[12]!==m||e[13]!==h?(p=n.jsxs("div",{className:"space-y-2",children:[m,h]}),e[12]=m,e[13]=h,e[14]=p):p=e[14];let f;e[15]!==d?(f=()=>d.mutate(),e[15]=d,e[16]=f):f=e[16];const g=d.isPending?"Requesting…":"Request to join";let y;e[17]!==d.isPending||e[18]!==f||e[19]!==g?(y=n.jsx(T,{onClick:f,disabled:d.isPending,children:g}),e[17]=d.isPending,e[18]=f,e[19]=g,e[20]=y):y=e[20];let b;e[21]!==d.isPending?(b=n.jsx(T,{variant:"ghost",onClick:kt,disabled:d.isPending,children:"Go to home"}),e[21]=d.isPending,e[22]=b):b=e[22];let x;e[23]!==y||e[24]!==b?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[y,b]}),e[23]=y,e[24]=b,e[25]=x):x=e[25];let S;return e[26]!==x||e[27]!==u||e[28]!==p?(S=n.jsxs(H,{children:[u,p,x]}),e[26]=x,e[27]=u,e[28]=p,e[29]=S):S=e[29],S}function kt(){window.location.href="/"}function Nt(t){W.error(t instanceof Error?t.message:"Failed to request access")}function _t(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function At(t){const e=k.c(7);let s;e[0]!==t?(s=se.orgAccessStatus(t),e[0]=t,e[1]=s):s=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 a;return e[4]!==s||e[5]!==o?(a={queryKey:s,queryFn:o,refetchOnWindowFocus:!1},e[4]=s,e[5]=o,e[6]=a):a=e[6],xe(a)}function Ct({orgSlug:t}){const{data:e}=At(t);if(e.status!=="member"){_e()?.org===t&&Ae();const s=localStorage.getItem(B.lastOrgSlug())===t;if(s&&localStorage.removeItem(B.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(he,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(yt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ft,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(vt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(St,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(he,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Ot(t){const e=k.c(20),{release:s,onCtaClick:o,onLearnMoreClick:a}=t;let r;e[0]!==s.eyebrow?(r=s.eyebrow&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s.eyebrow}),e[0]=s.eyebrow,e[1]=r):r=e[1];let i;e[2]!==s.title?(i=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:s.title}),e[2]=s.title,e[3]=i):i=e[3];let l;e[4]!==r||e[5]!==i?(l=n.jsxs("div",{children:[r,i]}),e[4]=r,e[5]=i,e[6]=l):l=e[6];let c;e[7]!==s.bullets?(c=s.bullets.map(Tt),e[7]=s.bullets,e[8]=c):c=e[8];let d;e[9]!==c?(d=n.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]!==a||e[13]!==s.cta||e[14]!==s.learnMoreHref?(u=(s.cta||s.learnMoreHref)&&n.jsxs("div",{className:"flex items-center justify-between pt-1",children:[s.learnMoreHref?n.jsx("a",{href:s.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:a,className:"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline",children:"Learn More"}):n.jsx("span",{}),s.cta&&n.jsx(T,{asChild:!0,size:"sm",onClick:o,children:n.jsx("a",{href:s.cta.href,children:s.cta.label})})]}),e[11]=o,e[12]=a,e[13]=s.cta,e[14]=s.learnMoreHref,e[15]=u):u=e[15];let m;return e[16]!==l||e[17]!==d||e[18]!==u?(m=n.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 Tt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"text-muted-foreground mt-0.5 shrink-0"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Se=[{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:P,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:I,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:G,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:P,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:I,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:I,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:P,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:P,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:I,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:P,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:I,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:P,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:me,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:I,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:qe,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:I,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:P,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:me,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:P,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:He,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ne="studio.release-feed.v1",ce=new Set;let L="",F={},de=!1;function Et(){if(de)return L||"{}";try{return localStorage.getItem(ne)??"{}"}catch{return L||"{}"}}function je(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ge(){const t=Et();return t!==L&&(L=t,F=je(t)),F}function $t(t){ce.add(t);const e=s=>{if(!(s.key!==ne&&s.key!==null)){try{const o=localStorage.getItem(ne)??"{}",r={...je(o),...F};F=r,L=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{ce.delete(t),window.removeEventListener("storage",e)}}function zt(t){F=t,L=JSON.stringify(t);try{localStorage.setItem(ne,L),de=!1}catch{de=!0}ce.forEach(e=>e())}function Pt(){const t=k.c(7),e=K.useSyncExternalStore($t,ge,ge);let s;t[0]!==e?(s=c=>!!e[c],t[0]=e,t[1]=s):s=t[1];const o=s,a=Dt;let r;t[2]!==e?(r=Se.reduce((c,d)=>e[d.id]?c:c+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==o||t[5]!==i?(l={isSeen:o,markSeen:a,unseenCount:i},t[4]=o,t[5]=i,t[6]=l):l=t[6],l}function Dt(t){F[t]||zt({...F,[t]:{seenAt:new Date().toISOString()}})}const It=720*60*60*1e3,Lt=10080*60*1e3;function Ft(t){const[e,s,o]=t.split("-").map(Number);return!e||!s||!o?new Date(t).getTime():new Date(e,s-1,o).getTime()}function Mt(t){const e=Se[0];if(!e)return null;const s=Ft(e.date),o=t-s;return o<0||o>It?null:e}function Rt(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 qt(t,e){const s=Rt(t);return s===null?!1:e-s>=Lt}function Ut(){const t=k.c(22),{data:e}=Y.useSession(),{isSeen:s,markSeen:o}=Pt();let a,r,i;if(t[0]!==s||t[1]!==e?.user?.createdAt){i=Symbol.for("react.early_return_sentinel");e:{const f=Date.now();if(a=Mt(f),!a){i=null;break e}if(!qt(e?.user?.createdAt,f)){i=null;break e}r=s(a.id)}t[0]=s,t[1]=e?.user?.createdAt,t[2]=a,t[3]=r,t[4]=i}else a=t[2],r=t[3],i=t[4];if(i!==Symbol.for("react.early_return_sentinel"))return i;if(r)return null;let l;t[5]!==a.id||t[6]!==o?(l=()=>o(a.id),t[5]=a.id,t[6]=o,t[7]=l):l=t[7];let c;t[8]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(Be,{size:14}),t[8]=c):c=t[8];let d;t[9]!==l?(d=n.jsx(T,{size:"icon",variant:"ghost","aria-label":"Dismiss release announcement",className:"absolute right-2 top-2 size-7 text-muted-foreground",onClick:l,children:c}),t[9]=l,t[10]=d):d=t[10];let u,m;t[11]!==a.id||t[12]!==o?(u=()=>o(a.id),m=()=>o(a.id),t[11]=a.id,t[12]=o,t[13]=u,t[14]=m):(u=t[13],m=t[14]);let h;t[15]!==a||t[16]!==u||t[17]!==m?(h=n.jsx(Ot,{release:a,onCtaClick:u,onLearnMoreClick:m}),t[15]=a,t[16]=u,t[17]=m,t[18]=h):h=t[18];let p;return t[19]!==d||t[20]!==h?(p=n.jsxs("div",{role:"dialog","aria-label":"Release announcement",className:"fixed bottom-6 right-6 z-50 w-[min(360px,calc(100vw-3rem))] rounded-lg border border-border bg-background p-4 shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[d,h]}),t[19]=d,t[20]=h,t[21]=p):p=t[21],p}const ve=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),D=ve?"⌘":"Ctrl",E={keyboardShortcuts:{keys:[D,"K"],description:"Keyboard shortcuts"},back:{keys:[D,"["],description:"Back to previous"},focusChatInput:{keys:[D,"L"],description:"Focus chat input"},saveAndFormat:{keys:[D,"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:[D,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[D,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",D,"S"],description:"New task"},toggleDaemon:{keys:[D,"D"],description:"Toggle daemon logs"}},Gt=[{label:"General",shortcuts:[E.keyboardShortcuts,E.back,E.newTask,E.toggleDaemon]},{label:"Editor",shortcuts:[E.saveAndFormat]},{label:"Chat",shortcuts:[E.focusChatInput,E.togglePlanMode,E.sendMessage,E.newLine]},{label:"Questions",shortcuts:[E.selectOption]},{label:"Monitoring",shortcuts:[E.applyFilter]}];function pe(t){return ve?t.metaKey:t.ctrlKey}function Kt(t){const e=k.c(5),{open:s,onOpenChange:o}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(We,{children:n.jsx(Je,{children:"Keyboard Shortcuts"})}),e[0]=a):a=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsxs(Ye,{className:"sm:max-w-md",children:[a,n.jsx("div",{className:"flex flex-col gap-4",children:Gt.map(Ht)})]}),e[1]=r):r=e[1];let i;return e[2]!==o||e[3]!==s?(i=n.jsx(Qe,{open:s,onOpenChange:o,children:r}),e[2]=o,e[3]=s,e[4]=i):i=e[4],i}function Ht(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Bt)})]},t.label)}function Bt(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Yt)})]},t.description)}function Yt(t){return n.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)}const Wt=300*1e3,Jt=2;function Qt(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Vt(){const t=k.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:se.appVersionCheck(),queryFn:Zt,refetchInterval:Wt,refetchIntervalInBackground:!0,staleTime:0},t[0]=e):e=t[0];const{data:s,dataUpdatedAt:o}=te(e),[a,r]=K.useState(0);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={version:null,count:0},t[1]=i):i=t[1];const[l,c]=K.useState(i);o!==a&&(r(o),c(p=>Qt(p,s,"4.60.0")));const d=l.count>=Jt;let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsxs(Ve,{children:[n.jsx(Xe,{children:"A new version is available"}),n.jsx(Ze,{children:"You're viewing an outdated version of this page. Refresh to get the latest updates."})]}),t[2]=u):u=t[2];let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=n.jsxs(et,{children:[u,n.jsx(tt,{children:n.jsx(nt,{onClick:Xt,children:"Refresh"})})]}),t[3]=m):m=t[3];let h;return t[4]!==d?(h=n.jsx(st,{open:d,children:m}),t[4]=d,t[5]=h):h=t[5],h}function Xt(){return window.location.reload()}async function Zt(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function en({activeOrg:t}){return t&&(Ce(t.id,{name:t.name??void 0,slug:t.slug??void 0}),Oe()),null}function tn(t,e,s){if(!s)return null;const o=lt(t,e);return o?o.threads.get().find(r=>r.id===s)?.branch??null:null}function ke(t){return{queryKey:se.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 Tn(t){const e=k.c(10);let s;e[0]!==t?(s=ke(t),e[0]=t,e[1]=s):s=e[1];const o=te(s);let a;e[2]!==o.data?.prompts?(a=o.data?.prompts??[],e[2]=o.data?.prompts,e[3]=a):a=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 i;return e[6]!==o.isLoading||e[7]!==a||e[8]!==r?(i={isLoading:o.isLoading,prompts:a,tiles:r},e[6]=o.isLoading,e[7]=a,e[8]=r,e[9]=i):i=e[9],i}function nn(t){const e=k.c(17),{orgSlug:s,orgName:o,domain:a}=t;let r;e[0]!==s?(r=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=r):r=e[1];const i=r,l=sn;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ye,{className:"h-6 w-6 text-primary"})}),e[2]=c):c=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=d):d=e[3];let u;e[4]!==a||e[5]!==o?(u=o?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:o})," requires SSO authentication",a?` via ${a}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=a,e[5]=o,e[6]=u):u=e[6];let m;e[7]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[d,n.jsx("p",{className:"text-sm text-muted-foreground",children:u})]}),e[7]=u,e[8]=m):m=e[8];let h;e[9]!==i?(h=n.jsx(T,{onClick:i,children:"Sign in with SSO"}),e[9]=i,e[10]=h):h=e[10];let p;e[11]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(T,{variant:"ghost",onClick:l,children:"Go back"}),e[11]=p):p=e[11];let f;e[12]!==h?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,p]}),e[12]=h,e[13]=f):f=e[13];let g;return e[14]!==m||e[15]!==f?(g=n.jsxs(H,{children:[c,m,f]}),e[14]=m,e[15]=f,e[16]=g):g=e[16],g}function sn(){window.location.href="/"}function on(t){const e=k.c(8),{org:s,children:o}=t,r=ut(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==r?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:r,ui:null},e[0]=s.id,e[1]=s.name,e[2]=r,e[3]=i):i=e[3];const l=i;let c;return e[4]!==o||e[5]!==s||e[6]!==l?(c=n.jsx(Re,{org:s,project:l,children:o}),e[4]=o,e[5]=s,e[6]=l,e[7]=c):c=e[7],c}function an(){const t=Te(),e=ct(),{org:s,locator:o}=Ee(),a=be({strict:!1}),r=$e({strict:!1}),i=a.org??"",l=a.taskId??"",c=(f,g,y=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:f},search:g,replace:y}),d=(f,g=!0)=>c(l,f,g),u=f=>d(g=>({...g,sidepanel:f})),m=(f,g,y)=>c(f,b=>{const x={sidepanel:"chat"};g?x.virtualmcpid=g:b.virtualmcpid&&(x.virtualmcpid=b.virtualmcpid);const S=fe(s.id).id,v=typeof b.virtualmcpid=="string"?b.virtualmcpid:S,O=(g??v)!==v;if(y?.main)x.main=y.main;else if(!O){const _=b.main;_&&typeof _=="string"&&!dt(_)&&(x.main=_)}return y?.autosend&&(x.autosend=it),x},!1);return{openSidePanel:u,setTaskId:m,createNewTask:async f=>{const g=crypto.randomUUID(),y=f??r.virtualmcpid??fe(s.id).id,x=y===r.virtualmcpid?tn(s.slug,o,l):null;try{await e?.create({id:g,virtual_mcp_id:y,...x?{branch:x}:{}})}catch{}m(g,y)},openTab:f=>c(l||crypto.randomUUID(),g=>({...g,main:f}))}}function rn(){const t=k.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const o=ze(e)?.params.org;let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},t[1]=a):a=t[1];const{taskId:r}=be(a),[i,l]=K.useState(!1),c=Pe(),d=o??"";let u;t[2]!==d?(u=ke(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],te(h);const{data:p}=Y.useSession(),f=p?.user?.id;let g;t[7]!==o||t[8]!==f?(g=o&&f?De(f,o):null,t[7]=o,t[8]=f,t[9]=g):g=t[9];const y=g;let b,x;t[10]!==c?(b=()=>{const j=C=>{if(pe(C)&&C.code==="KeyK"){C.preventDefault(),l(!0);return}pe(C)&&C.code==="BracketLeft"&&c.history.canGoBack()&&(C.preventDefault(),c.history.back())};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},x=[c],t[10]=c,t[11]=b,t[12]=x):(b=t[11],x=t[12]),K.useEffect(b,x);let S;t[13]!==o?(S=se.activeOrganization(o),t[13]=o,t[14]=S):S=t[14];let v;t[15]!==o||t[16]!==f?(v=async()=>{if(!o)return null;performance.mark("mesh:active-org-fetch:start");const{data:j}=await Y.organization.getFullOrganization({query:{organizationSlug:o}}).finally(ln),C=ue(j);return j&&!C&&localStorage.setItem(B.lastOrgSlug(),o),f&&j&&Le(f,o,j),j},t[15]=o,t[16]=f,t[17]=v):v=t[17];const N=y?y.data:void 0,O=y?.updatedAt;let _;t[18]!==v||t[19]!==N||t[20]!==O||t[21]!==S?(_={queryKey:S,queryFn:v,initialData:N,initialDataUpdatedAt:O,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=v,t[19]=N,t[20]=O,t[21]=S,t[22]=_):_=t[22];const{data:w}=xe(_),$=w?.id,z=w?.slug,{data:A}=mt($,z),ie=$??"",ae=z??"";let M;t[23]!==ie||t[24]!==ae?(M=at({connectionId:rt,orgId:ie,orgSlug:ae}),t[23]=ie,t[24]=ae,t[25]=M):M=t[25];const re=!!$&&!!z;let J;if(t[26]!==M||t[27]!==re?(J={...M,enabled:re},t[26]=M,t[27]=re,t[28]=J):J=t[28],te(J),!w){let j;t[29]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Fe,{}),t[29]=j):j=t[29];let C;return t[30]!==o?(C=n.jsx(K.Suspense,{fallback:j,children:n.jsx(Ct,{orgSlug:o})}),t[30]=o,t[31]=C):C=t[31],C}if(ue(w)){localStorage.getItem(B.lastOrgSlug())===o&&localStorage.removeItem(B.lastOrgSlug());let j;return t[32]!==w.name?(j=n.jsx(Ie,{orgName:w.name}),t[32]=w.name,t[33]=j):j=t[33],j}if(A?.ssoRequired&&!A.authenticated){let j;return t[34]!==w.id||t[35]!==w.name||t[36]!==w.slug||t[37]!==A.domain?(j=n.jsx(nn,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:A.domain}),t[34]=w.id,t[35]=w.name,t[36]=w.slug,t[37]=A.domain,t[38]=j):j=t[38],j}const le=w.logo??null;let R;t[39]!==w||t[40]!==le?(R={...w,logo:le},t[39]=w,t[40]=le,t[41]=R):R=t[41];let q;t[42]!==w?(q=n.jsx(en,{activeOrg:w}),t[42]=w,t[43]=q):q=t[43];let Q,V;t[44]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(Me,{}),V=n.jsx(Ut,{}),t[44]=Q,t[45]=V):(Q=t[44],V=t[45]);let U;t[46]!==i?(U=n.jsx(Kt,{open:i,onOpenChange:l}),t[46]=i,t[47]=U):U=t[47];let X;t[48]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(Vt,{}),t[48]=X):X=t[48];let Z;return t[49]!==R||t[50]!==q||t[51]!==U?(Z=n.jsxs(on,{org:R,children:[q,Q,V,U,X]}),t[49]=R,t[50]=q,t[51]=U,t[52]=Z):Z=t[52],Z}function ln(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function cn(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ot,{children:n.jsx(rn,{})}),t[0]=e):e=t[0],e}const En=Object.freeze(Object.defineProperty({__proto__:null,default:cn,usePanelActions:an},Symbol.toStringTag,{value:"Module"}));export{E as K,Tn as a,pe as i,tn as r,En as s,an as u};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DRXLNW97.js","assets/index-DcIBnpEi.js","assets/index-HuEHg6r8.css","assets/Tool02-DN7RIFuA.js","assets/CheckCircle-CjRjq78H.js","assets/Settings02-Cr0VpQbw.js","assets/use-mcp-client-CP4c9F3u.js","assets/constants-CaIX_f5U.js","assets/auth-BiABWEcr.js","assets/useInfiniteQuery-CgoqkRWJ.js","assets/use-infinite-scroll-Y5a7xah6.js","assets/studio-tools-Bdai-xGF.js","assets/badge-BeBCWRwF.js","assets/input-CzqITCIW.js","assets/dropdown-menu-C1oaxvGA.js","assets/Check-BbBVbCml.js","assets/ChevronRight-4FTF4WqI.js","assets/Circle-Ba61O7v3.js","assets/table-Cpz7KTQ5.js","assets/toggle-group-CCVpVQJx.js","assets/use-view-mode-B8GphToI.js","assets/use-mobile-CNvoxL11.js","assets/DotsVertical-BWXuIIeo.js","assets/FilterLines-CZvywTHD.js","assets/Globe01-c9kQJ0J1.js","assets/SearchMd-C7y5LJQw.js","assets/dialog-Hnvvuwtr.js","assets/X-9ap9xtG7.js","assets/AlertCircle-By5V_OAI.js","assets/Upload01-Cwtb67Lw.js","assets/alert-dialog-CySfFhdC.js","assets/card-DQteBSZy.js","assets/Trash01-CRdtidTM.js","assets/label-XzNlba7M.js","assets/select-B769KgqG.js","assets/tooltip-FbSqyAkw.js","assets/ChevronDown-DujWjiEx.js","assets/ChevronUp-LzTIy1Gg.js","assets/switch-josi6Uyt.js","assets/textarea-CN1NcM6-.js","assets/XCircle-DTf-SPGi.js","assets/checkbox-DyFXnv_N.js","assets/Eye-CLyPbWNp.js","assets/LinkExternal01-CbZ5Q1kR.js","assets/use-copy-DxP-67RS.js","assets/Copy01-B0978reE.js","assets/Key01-D0e_huT5.js","assets/Plus-BQc-qQk7.js","assets/mcp-oauth-CpkgHFkt.js","assets/Play-YTvPwfKb.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,aW as f}from"./index-DcIBnpEi.js";import{R as u}from"./require-capability-CuikEqkA.js";import"./use-capability-DG3TMrBr.js";import"./access-gate-5OdRTd9-.js";import"./capability-load-error-CWu6wHWg.js";const g=l.lazy(()=>f(()=>import("./registry-layout-DRXLNW97.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,45,46,47,48,49])));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-Y5a7xah6.js";import{dK as i}from"./index-DcIBnpEi.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-Y5a7xah6.js";import{dK as u,G as n}from"./index-DcIBnpEi.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|