decocms 4.319.14 → 4.319.16
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-BOvP1Qau.js → AlertCircle-DHdgNUfb.js} +1 -1
- package/dist/client/assets/{AreaChart-CZx0VVjt.js → AreaChart-Dzo5j_h8.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Dn-feuwf.js → ArrowLeft-JlUwD9ia.js} +1 -1
- package/dist/client/assets/{ArrowUp-CBuqJoel.js → ArrowUp-EbeDGMXl.js} +1 -1
- package/dist/client/assets/{Check-DV9c9Ju0.js → Check-D7nfgxdh.js} +1 -1
- package/dist/client/assets/{CheckCircle-oGQUax5r.js → CheckCircle-Cdwqj54e.js} +1 -1
- package/dist/client/assets/{ChevronDown-BiVWHgTB.js → ChevronDown-CG4rCldC.js} +1 -1
- package/dist/client/assets/{ChevronRight-BFVS0rLl.js → ChevronRight-CSHT4HrS.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CMIM1VLU.js → ChevronSelectorVertical-BMwwXk_d.js} +1 -1
- package/dist/client/assets/{ChevronUp-DTvj8HoM.js → ChevronUp-CqeDi-KR.js} +1 -1
- package/dist/client/assets/{Copy01-Bfxpqa-_.js → Copy01-RvbkNJAx.js} +1 -1
- package/dist/client/assets/{CreditCard01-BIHfG5Dh.js → CreditCard01-gbVgJeg4.js} +1 -1
- package/dist/client/assets/{DotsVertical-TG2gQrgH.js → DotsVertical-CCs998i3.js} +1 -1
- package/dist/client/assets/{Download01-BG6VZNuu.js → Download01-DIcG4yc4.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-B9EP2A8n.js → ErrorBarContext-C2ckgYzW.js} +1 -1
- package/dist/client/assets/{Eye-BITP90RF.js → Eye-D6mXwhs6.js} +1 -1
- package/dist/client/assets/{FilterLines-BKSJkYtY.js → FilterLines-Bk3c7woU.js} +1 -1
- package/dist/client/assets/{GitBranch01-1TB2fz2Q.js → GitBranch01-DjE2ToHT.js} +1 -1
- package/dist/client/assets/{Globe01-DlJf2DZ1.js → Globe01-CbfTr1cU.js} +1 -1
- package/dist/client/assets/{Globe04-BUyU7ld6.js → Globe04-DFi-hxlk.js} +1 -1
- package/dist/client/assets/{HardDrive-CUcxR4Ii.js → HardDrive-Cll7cCU4.js} +1 -1
- package/dist/client/assets/{Image01-CwIFdZVi.js → Image01-qemSYYVG.js} +1 -1
- package/dist/client/assets/{Key01-Dy7g3dc2.js → Key01-CFwPrKHo.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BQ6jh3dS.js → LinkExternal01-CwmIR-OC.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-D5bbaLgj.js → LockUnlocked01-CGrm1mmH.js} +1 -1
- package/dist/client/assets/{LogOut01-Cgoq1Vs2.js → LogOut01-BneKs2Ul.js} +1 -1
- package/dist/client/assets/{Monitor01-CtyVl7En.js → Monitor01-C2DoXCUU.js} +1 -1
- package/dist/client/assets/{Package-1Wizoc0y.js → Package-HzEeQ98D.js} +1 -1
- package/dist/client/assets/{Palette-DHXycqmw.js → Palette-CrV8ac_O.js} +1 -1
- package/dist/client/assets/{Play-BXtRkLwb.js → Play-B5J1tgP5.js} +1 -1
- package/dist/client/assets/{Plus-BgGySMqS.js → Plus-Cx7O2SzR.js} +1 -1
- package/dist/client/assets/{SearchLg-DsdgQzzS.js → SearchLg-BBgt4VgJ.js} +1 -1
- package/dist/client/assets/{SearchMd-Co2W0me8.js → SearchMd-D31XwxQc.js} +1 -1
- package/dist/client/assets/{Sector-DFSXB_eP.js → Sector-C_zT7JhV.js} +1 -1
- package/dist/client/assets/{Settings02-BZP0-zrJ.js → Settings02-Cc8P1AJg.js} +1 -1
- package/dist/client/assets/{Share07-BbxsQGmu.js → Share07-sRCg7Ggc.js} +1 -1
- package/dist/client/assets/{Shield01-COz3jHfB.js → Shield01-DQcvM-BA.js} +1 -1
- package/dist/client/assets/{Stars01-C-jcQhP0.js → Stars01-CU6SuPZ_.js} +1 -1
- package/dist/client/assets/{Stars02-BbGFkiuI.js → Stars02-DSgeQBzT.js} +1 -1
- package/dist/client/assets/{Sun-Caa0gO60.js → Sun-DxoSORXk.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-YWw8vDEs.js → SwitchHorizontal01-xapCbPR2.js} +1 -1
- package/dist/client/assets/{Tool01-CEJTS60A.js → Tool01-DZGQKe0d.js} +1 -1
- package/dist/client/assets/{Tool02-rhxMYxFC.js → Tool02-CqGsY3lu.js} +1 -1
- package/dist/client/assets/{Trash01-CXBUKCBw.js → Trash01-L1hl9msB.js} +1 -1
- package/dist/client/assets/{TrendUp01-CZIz--B0.js → TrendUp01-B17QFLAP.js} +1 -1
- package/dist/client/assets/{Upload01-Tt-9JoaA.js → Upload01-LJD8JOAq.js} +1 -1
- package/dist/client/assets/{User01-BBBiQ5-x.js → User01-GlbUgD6K.js} +1 -1
- package/dist/client/assets/{UserSquare-Jc2EKyRq.js → UserSquare-BPmJrBfT.js} +1 -1
- package/dist/client/assets/{Users01-CCl42cQU.js → Users01-N2lzedvH.js} +1 -1
- package/dist/client/assets/{Users03-uexhNZM3.js → Users03-BlJjx19y.js} +1 -1
- package/dist/client/assets/{XCircle-XOMRT1Lc.js → XCircle-BfvN4tlC.js} +1 -1
- package/dist/client/assets/{XClose-BgH7VS6W.js → XClose-SRLMCnkJ.js} +1 -1
- package/dist/client/assets/{YAxis-D3lDX4Ai.js → YAxis-rn6PgS5H.js} +1 -1
- package/dist/client/assets/{Zap-OY5CMLKF.js → Zap-BhzVnd8O.js} +1 -1
- package/dist/client/assets/{ZapSquare-2xFiW69E.js → ZapSquare-BY7EWmpD.js} +1 -1
- package/dist/client/assets/{ZoomOut-Dgkb8-Ku.js → ZoomOut-Zm3REiTl.js} +1 -1
- package/dist/client/assets/{access-gate-BkplBf5H.js → access-gate-CKqxYViV.js} +1 -1
- package/dist/client/assets/{agent-icon-Tmfpg4GQ.js → agent-icon-C3cGQo4-.js} +1 -1
- package/dist/client/assets/{agents-list-BErAIi47.js → agents-list-PsDBi9NS.js} +1 -1
- package/dist/client/assets/{ai-providers-BjbqM9ft.js → ai-providers-LIAqX434.js} +1 -1
- package/dist/client/assets/{alert-dialog-DZ5RJjOG.js → alert-dialog-iZbOZiAW.js} +1 -1
- package/dist/client/assets/{alert-BqQOucIt.js → alert-lAaEMhDi.js} +1 -1
- package/dist/client/assets/{analytics-tab-DG4JWo1l.js → analytics-tab-C6ZjzyAf.js} +1 -1
- package/dist/client/assets/{api-keys-CRlYlKfB.js → api-keys-Bk0y0p4B.js} +1 -1
- package/dist/client/assets/{app-editor-Cgo4BJCz.js → app-editor-DAaH8Gv2.js} +1 -1
- package/dist/client/assets/{auth-CtGBzJ5v.js → auth-Du_IZ5bG.js} +1 -1
- package/dist/client/assets/{auth-catchall-DlAuoI3I.js → auth-catchall-QOLg85b5.js} +1 -1
- package/dist/client/assets/{auth-entry-CbwhYKxy.js → auth-entry-BxdBhuYJ.js} +1 -1
- package/dist/client/assets/{auth-split-layout-WyvXWjLY.js → auth-split-layout-B0aSdYZt.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BrP-EX2b.js → authenticate-and-persist-oauth-DrAdHHVz.js} +1 -1
- package/dist/client/assets/{automation-list-row-CPKAe0pB.js → automation-list-row-C5IEhjJf.js} +1 -1
- package/dist/client/assets/{automation-runs-CmkNSzOL.js → automation-runs-CZxK6oR7.js} +1 -1
- package/dist/client/assets/{automations-BI4W-uTh.js → automations-DbZISz9Z.js} +1 -1
- package/dist/client/assets/{avatar-6EVsFVhe.js → avatar-CmKqjnyR.js} +1 -1
- package/dist/client/assets/{badge-BWEyXCFm.js → badge-BFekhp0L.js} +1 -1
- package/dist/client/assets/{block-document-SPhSdm2C.js → block-document-Dk9-7d-s.js} +1 -1
- package/dist/client/assets/{breadcrumb-Iy5e3kWh.js → breadcrumb-B9T4viNS.js} +1 -1
- package/dist/client/assets/{buckets-Al_CWfM-.js → buckets-DUhXmiub.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-_4mksnNt.js → bulk-category-panel-nGYdIQnz.js} +1 -1
- package/dist/client/assets/{capability-load-error-Cus_w34U.js → capability-load-error-D8NPH98Q.js} +1 -1
- package/dist/client/assets/{cards-755jhRXY.js → cards-5sZ3jv_a.js} +1 -1
- package/dist/client/assets/{category-editor-D0O_4Lb7.js → category-editor-vBuQXWag.js} +1 -1
- package/dist/client/assets/{cdn-tab-CyCXpB1o.js → cdn-tab-DHIQac9X.js} +1 -1
- package/dist/client/assets/{chart-CMsbLetI.js → chart-BL11WCik.js} +1 -1
- package/dist/client/assets/{chat-context-DGteAWsE.js → chat-context-B2GFKp5F.js} +1 -1
- package/dist/client/assets/{checkbox-B4nfHNn2.js → checkbox-Bs9eB0x2.js} +1 -1
- package/dist/client/assets/{choose-editor-BBE6pq-C.js → choose-editor-BrF-1unc.js} +1 -1
- package/dist/client/assets/{cli-auth-success-ba0RVXQ6.js → cli-auth-success-DeSX3pW7.js} +1 -1
- package/dist/client/assets/{collection-detail-VD1Azzex.js → collection-detail-Uzr5zV26.js} +1 -1
- package/dist/client/assets/{collection-display-button-rJuG0fqQ.js → collection-display-button-BziquhC-.js} +1 -1
- package/dist/client/assets/{collection-search-BwwQ-87y.js → collection-search-gUHo3ksV.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Dk_7BGMJ.js → collection-table-wrapper-6VO_VGV-.js} +1 -1
- package/dist/client/assets/{collection-tabs-Bd8HLaJk.js → collection-tabs-vSyN7U1y.js} +1 -1
- package/dist/client/assets/{command-Dji9XZ8Q.js → command-DsKvkAW0.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-BOV1ovYC.js → commerce-onboarding-D8dzl8AC.js} +1 -1
- package/dist/client/assets/{config-CqnhxspX.js → config-CezhnXbE.js} +1 -1
- package/dist/client/assets/{connect-BrOLVQO-.js → connect-CvsMTodW.js} +1 -1
- package/dist/client/assets/{connection-BrAKds8G.js → connection-DjoDay_G.js} +1 -1
- package/dist/client/assets/{connection-card-DPxIwtrY.js → connection-card-BM_Ocl7A.js} +1 -1
- package/dist/client/assets/{connection-detail-CTYcYfm0.js → connection-detail-up3pTkug.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BTuoz_do.js → connection-form-helpers-DLAKe8kI.js} +1 -1
- package/dist/client/assets/{connections-CgFocWJo.js → connections-BN56AGZp.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-KdP5J_Lk.js → decopilot-sse-pool-BYcWX0r2.js} +1 -1
- package/dist/client/assets/{dialog-BbsJIjxr.js → dialog-W_VPbIEv.js} +1 -1
- package/dist/client/assets/{domain-settings-0zCdIuay.js → domain-settings-BsUMCqtU.js} +1 -1
- package/dist/client/assets/{drawer-EPiF0UF_.js → drawer-CMKZ2jOM.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DIJXkPSy.js → dropdown-menu-D0mo9k4c.js} +1 -1
- package/dist/client/assets/{e2e-tab-OAe_Cc5q.js → e2e-tab-DQA9UAiA.js} +1 -1
- package/dist/client/assets/{editor-BejI1O8g.js → editor-Z8XGhHep.js} +1 -1
- package/dist/client/assets/{empty-state-Di10K0uu.js → empty-state-BuNj-9zq.js} +1 -1
- package/dist/client/assets/{empty-state-CsWjYhO_.js → empty-state-OnrrHKqp.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CUGDDE6d.js → extract-connection-data-Cmv9G_Ks.js} +1 -1
- package/dist/client/assets/{file-explorer-KrLk6tpW.js → file-explorer-D8JRwGnG.js} +1 -1
- package/dist/client/assets/{file-type-icon-C8T24Hoh.js → file-type-icon-jMqSq5Wo.js} +1 -1
- package/dist/client/assets/{folder-icon-_-xYRNP_.js → folder-icon-D3gD29kQ.js} +1 -1
- package/dist/client/assets/{form-k13u_KRx.js → form-DYGy8faf.js} +1 -1
- package/dist/client/assets/{general-CwuDXjpb.js → general-C02NfhjE.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BGvd0zWB.js → github-repo-picker-DuMHh6Lm.js} +1 -1
- package/dist/client/assets/{hooks-CHkyysia.js → hooks-DB8_3lSx.js} +1 -1
- package/dist/client/assets/{hosting-tab-DEqRfF_4.js → hosting-tab-C62BBBkK.js} +1 -1
- package/dist/client/assets/{index-QVFuIY3s.js → index-B7k7NQox.js} +1 -1
- package/dist/client/assets/{index-CE2Ear1z.js → index-C-7tRVOu.js} +1 -1
- package/dist/client/assets/{index-C2ZKSfvN.js → index-CT8Q5qD4.js} +1 -1
- package/dist/client/assets/{index-2GD43kBz.js → index-CuoPy7ID.js} +1 -1
- package/dist/client/assets/{index-DB1XDomL.js → index-Cyo0Hdl-.js} +1 -1
- package/dist/client/assets/{index-yKWu9W8j.js → index-D7UVsURw.js} +3 -3
- package/dist/client/assets/{index-up3OF1n4.js → index-DEIH9oSQ.js} +6 -6
- package/dist/client/assets/{index-D0qkF9PZ.js → index-DLyUvheH.js} +1 -1
- package/dist/client/assets/{index-DVnF-0oM.js → index-nPvlw3Nj.js} +1 -1
- package/dist/client/assets/{index-redirect-CVlyJ2Rf.js → index-redirect-CK82z0hX.js} +1 -1
- package/dist/client/assets/{infra-billing-CXSxPJKB.js → infra-billing-Boy6i8Q_.js} +1 -1
- package/dist/client/assets/{input-BJ4dQ_0A.js → input-CxglpZ0w.js} +1 -1
- package/dist/client/assets/{integration-icon-BPCDT-Tj.js → integration-icon-COisNpJF.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-C3XyaJPz.js → invite-member-dialog-D3-5DG_f.js} +1 -1
- package/dist/client/assets/{label-Bww4I6o3.js → label-DWo07Co3.js} +1 -1
- package/dist/client/assets/{layout-Tkzrdrmf.js → layout-BaOObCbN.js} +1 -1
- package/dist/client/assets/{login-D0sr8krV.js → login-COZCwfaz.js} +1 -1
- package/dist/client/assets/{markdown-D3hohKVF.js → markdown-D9cbKefD.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DznvZCKP.js → mcp-oauth-oOcy3LxP.js} +1 -1
- package/dist/client/assets/{members-D4XEFsOk.js → members-BxBN9NjG.js} +1 -1
- package/dist/client/assets/{monaco-editor-DIAqRuEY.js → monaco-editor-DRPkZb6Q.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BwuAJhW6.js → monitoring-stats-row-Dqu4jUhN.js} +1 -1
- package/dist/client/assets/{multi-select-DsFIpmY7.js → multi-select-cLS1QefU.js} +1 -1
- package/dist/client/assets/{oauth-callback-lxBhyEGi.js → oauth-callback-CFGJV0N-.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DNpkyob-.js → oauth-callback-ai-provider-Bt4eYbW2.js} +1 -1
- package/dist/client/assets/{onboarding-Ca4VwRzg.js → onboarding-D_e1p6Nb.js} +1 -1
- package/dist/client/assets/{org-layout-Cz5dQcUt.js → org-layout-_eKIwMEQ.js} +1 -1
- package/dist/client/assets/{organization-choice-C36bDsTx.js → organization-choice-DzebXkBx.js} +1 -1
- package/dist/client/assets/{orgs-B0eUeYuU.js → orgs-HG6DLp1w.js} +1 -1
- package/dist/client/assets/{page-seo-form-Vsx-4U3A.js → page-seo-form-D70eoraK.js} +1 -1
- package/dist/client/assets/{popover-DX03-Ocq.js → popover-CKNV3uXN.js} +1 -1
- package/dist/client/assets/{post-calendar-DD1Zb_G9.js → post-calendar-CWkoMJxs.js} +1 -1
- package/dist/client/assets/{post-editor-DAqDADpG.js → post-editor-C-g9N2tf.js} +1 -1
- package/dist/client/assets/{primitives-Du0TKus0.js → primitives-BaegDOGR.js} +1 -1
- package/dist/client/assets/{profile-BcoTP1-w.js → profile-D6Mgtadx.js} +1 -1
- package/dist/client/assets/{project-app-view-uSf21GAt.js → project-app-view-8lKFINuD.js} +1 -1
- package/dist/client/assets/{prompts-Ch-Yy7Fe.js → prompts-CGEz5cb7.js} +1 -1
- package/dist/client/assets/record-editor-CO2715oO.js +1 -0
- package/dist/client/assets/redirect-editor-DUe3XWKj.js +1 -0
- package/dist/client/assets/{registry-layout-Bbkv4h1H.js → registry-layout-Dh4qKkQo.js} +1 -1
- package/dist/client/assets/registry-uBDqzWSP.js +2 -0
- package/dist/client/assets/{reports-BQj_NPHh.js → reports-DGjPSGcj.js} +1 -1
- package/dist/client/assets/{require-capability-C1lvBBDh.js → require-capability-6Fx2mV9Y.js} +1 -1
- package/dist/client/assets/{required-auth-layout-o5H5dBXa.js → required-auth-layout-B0tQ19bs.js} +1 -1
- package/dist/client/assets/{reset-password-C7ZDh-R_.js → reset-password-C0MLWBLG.js} +1 -1
- package/dist/client/assets/{review-settings-BIgwZnoo.js → review-settings-BUL48GQA.js} +1 -1
- package/dist/client/assets/{roles-BpHM8VMu.js → roles-M6LKyL7A.js} +1 -1
- package/dist/client/assets/{schema-BQt63qWk.js → schema-BmhG8pIV.js} +1 -1
- package/dist/client/assets/{scroll-area-DlGRp2-C.js → scroll-area-DOex_yzE.js} +1 -1
- package/dist/client/assets/{search-input-D4XQ_gHR.js → search-input-B2Ek4af4.js} +1 -1
- package/dist/client/assets/{secrets-zNLevUdL.js → secrets-L5KKnHtp.js} +1 -1
- package/dist/client/assets/{sections-editor-BqlJN7Gj.js → sections-editor-CyzMpekn.js} +1 -1
- package/dist/client/assets/{select-CHODsoBK.js → select-C1S91ucq.js} +1 -1
- package/dist/client/assets/{select-model-DNKsEp0g.js → select-model-CJiNPA8O.js} +1 -1
- package/dist/client/assets/{self-tool-result-B8cXlSXR.js → self-tool-result-BSL04Waq.js} +1 -1
- package/dist/client/assets/{seo-editor-BgCaFVV-.js → seo-editor-r4tR-1PH.js} +1 -1
- package/dist/client/assets/{settings-layout-0w0LP04E.js → settings-layout-D9W9BMO7.js} +1 -1
- package/dist/client/assets/{shell-controls-BfC0VhXe.js → shell-controls-DFltHqoN.js} +1 -1
- package/dist/client/assets/{shell-layout-D4BVNbzu.js → shell-layout-B8knPOqZ.js} +1 -1
- package/dist/client/assets/{skill-preview-BV4H39m0.js → skill-preview-C3AEkxWO.js} +1 -1
- package/dist/client/assets/{skills-D4j9NCQb.js → skills-D9S1VMV1.js} +1 -1
- package/dist/client/assets/{spinner-CBlKcglP.js → spinner-C8vIHILM.js} +1 -1
- package/dist/client/assets/{sso-CIc7PE9f.js → sso-D6Z-F_pk.js} +1 -1
- package/dist/client/assets/{store-B5DKB2U0.js → store-NGcfq5e-.js} +1 -1
- package/dist/client/assets/store-registry-9bcQF6DS.js +2 -0
- package/dist/client/assets/super-agent-icon-0uJhxjhF.js +1 -0
- package/dist/client/assets/{switch-RhR3uKLt.js → switch-yGAojvdA.js} +1 -1
- package/dist/client/assets/{synced-repos-D8EU2ZIo.js → synced-repos-B8pXeH2v.js} +1 -1
- package/dist/client/assets/{table-CpLmSdcY.js → table-Bg1HzTuC.js} +1 -1
- package/dist/client/assets/{tabs-C0r_tEKZ.js → tabs-BPFxMJWy.js} +1 -1
- package/dist/client/assets/{task-board-CKCmnLgH.js → task-board-DRSuH9X9.js} +1 -1
- package/dist/client/assets/{tasks-Do6w_vxo.js → tasks-xwMrWsMh.js} +1 -1
- package/dist/client/assets/{textarea-CNDHrPFa.js → textarea-D1BEdm2O.js} +1 -1
- package/dist/client/assets/{thread-route-Bszj7qfd.js → thread-route-DzB4ppTW.js} +1 -1
- package/dist/client/assets/{toggle-group-D96A9zKi.js → toggle-group-BCgGMg6o.js} +1 -1
- package/dist/client/assets/{toolbar-CCs0IzAK.js → toolbar-48ikFm2B.js} +1 -1
- package/dist/client/assets/{track-BDCwmNZe.js → track-D4Ps9_Bq.js} +1 -1
- package/dist/client/assets/{types-DFXZUagl.js → types-mvD-1U0N.js} +1 -1
- package/dist/client/assets/{use-ai-providers-D6bJSAgj.js → use-ai-providers-BAOBdvM1.js} +1 -1
- package/dist/client/assets/{use-api-keys-O_11Hq0D.js → use-api-keys-BaYq-epS.js} +1 -1
- package/dist/client/assets/{use-automations-Dsnkec5Z.js → use-automations-CXVEw4Us.js} +1 -1
- package/dist/client/assets/{use-autosave-Dfa9vOwJ.js → use-autosave-oFdEOBfB.js} +1 -1
- package/dist/client/assets/{use-connection-Bv8cUPb7.js → use-connection-CH7auTqU.js} +1 -1
- package/dist/client/assets/{use-copy-CgIq_iwl.js → use-copy-VN2ojAkh.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BJ_32Lbm.js → use-create-virtual-mcp-Cwr3QTw4.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-ByvPjZrT.js → use-debounced-autosave-CUwm8KGJ.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DdhbvZGE.js → use-debounced-value-CtWyyJYz.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-h-QQ0JrY.js → use-decopilot-events-BPbrLnIY.js} +1 -1
- package/dist/client/assets/{use-delete-connection-eRblDuy1.js → use-delete-connection-B2Tcf0IQ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D51EKdDs.js → use-deployment-admin-CfYhFa_y.js} +1 -1
- package/dist/client/assets/{use-destination-route-CllUoeq7.js → use-destination-route-nQTzXSnS.js} +1 -1
- package/dist/client/assets/{use-file-configs-DJagOXxU.js → use-file-configs-CF_aoxte.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Ct6NgN5q.js → use-infinite-scroll-DGInMfLp.js} +1 -1
- package/dist/client/assets/{use-join-requests-CNI0WLxQ.js → use-join-requests-B_ABsp2G.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Y7fjkntl.js → use-mcp-auth-status-BWW8P7wN.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DdOPJwYU.js → use-mcp-client-dDeElR9H.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DxK_gDRJ.js → use-mcp-tools-Dypp3cct.js} +1 -1
- package/dist/client/assets/{use-members-iPGLwwvY.js → use-members-Bb93JNfQ.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-ngu3WwTU.js → use-navigate-to-agent-JVwIS4HT.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-B53npNBD.js → use-org-auth-client-DO5maDWg.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-D0-aHm-6.js → use-org-repo-syncs-BA0QpwF4.js} +1 -1
- package/dist/client/assets/{use-org-sso-DRYv46gI.js → use-org-sso-BvHUd0HE.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DFBex5ae.js → use-organization-roles-f6u4uZRk.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Dqy0uynY.js → use-organization-settings-DNGPHKvG.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-KvMAXfhn.js → use-panel-navigate-Dc1umKKO.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CXONWz9e.js → use-registry-connections-HWkf7i71.js} +1 -1
- package/dist/client/assets/{use-secrets-DBsZu6Nn.js → use-secrets-BhOpui3c.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BhT4TnPC.js → use-section-preview-base-DbrdsrA9.js} +1 -1
- package/dist/client/assets/{use-status-sounds-iIazYyVf.js → use-status-sounds-DcnsrR9v.js} +1 -1
- package/dist/client/assets/{use-tags-DV0Dfkgk.js → use-tags-Coy_iQ-W.js} +1 -1
- package/dist/client/assets/{use-view-mode-VOXhNS35.js → use-view-mode-BkH_Vhbr.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C0OZpYUw.js → use-virtual-mcp-DbUPyVPV.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DrwSnmNN.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BEFfU5gS.js +1 -0
- package/dist/client/assets/{users-DNVTxBQD.js → users-BrIvVdlr.js} +1 -1
- package/dist/client/assets/{variant-calendar-2TgcptTV.js → variant-calendar-DF-QV1v5.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-l1kusu9n.js → view-mode-toggle-CPxHr-Fk.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/record-editor-CtZitFd-.js +0 -1
- package/dist/client/assets/redirect-editor-CuP0LrDK.js +0 -1
- package/dist/client/assets/registry-BNLBvZeR.js +0 -2
- package/dist/client/assets/store-registry-Bwv_eVBq.js +0 -2
- package/dist/client/assets/super-agent-icon-BlnTdKq5.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Bb71KdsL.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BYQF2qb8.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as lt,b as at,j as r}from"./index-yKWu9W8j.js";import{C as ct}from"./checkbox-B4nfHNn2.js";import{I as rt}from"./input-BJ4dQ_0A.js";import{L as et}from"./label-Bww4I6o3.js";import{d as dt,a as nt,b as ft,c as xt,S as ht}from"./select-CHODsoBK.js";import{e as ut,bF as bt,j as yt,bG as jt,bH as vt}from"./index-up3OF1n4.js";import{u as gt}from"./use-autosave-Dfa9vOwJ.js";import"./Check-DV9c9Ju0.js";import"./ChevronDown-BiVWHgTB.js";import"./ChevronUp-DTvj8HoM.js";import"./ArrowUp-CBuqJoel.js";import"./chat-context-DGteAWsE.js";import"./use-panel-navigate-KvMAXfhn.js";import"./use-destination-route-CllUoeq7.js";import"./thread-route-Bszj7qfd.js";import"./dialog-BbsJIjxr.js";import"./Copy01-Bfxpqa-_.js";import"./Download01-BG6VZNuu.js";import"./constants-dLUUoWH7.js";import"./session-runtime-C-KTDVeQ.js";import"./slugify-CEUa2lfQ.js";import"./hooks-CHkyysia.js";import"./use-mcp-client-DdOPJwYU.js";import"./auth-CtGBzJ5v.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-KdP5J_Lk.js";import"./task-board-CKCmnLgH.js";import"./schema-BQt63qWk.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-C0OZpYUw.js";import"./use-ai-providers-D6bJSAgj.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-h-QQ0JrY.js";import"./use-organization-settings-Dqy0uynY.js";import"./automation-runs-CmkNSzOL.js";import"./agent-icon-Tmfpg4GQ.js";import"./AlertCircle-BOvP1Qau.js";import"./UserSquare-Jc2EKyRq.js";import"./Tool01-CEJTS60A.js";import"./ArrowLeft-Dn-feuwf.js";import"./Tool02-rhxMYxFC.js";import"./XCircle-XOMRT1Lc.js";import"./TrendUp01-CZIz--B0.js";import"./ZapSquare-2xFiW69E.js";import"./ZoomOut-Dgkb8-Ku.js";import"./Users03-uexhNZM3.js";import"./CheckCircle-oGQUax5r.js";import"./ChevronRight-BFVS0rLl.js";import"./ChevronSelectorVertical-CMIM1VLU.js";import"./DotsVertical-TG2gQrgH.js";import"./Stars02-BbGFkiuI.js";import"./CreditCard01-BIHfG5Dh.js";import"./Settings02-BZP0-zrJ.js";import"./Eye-BITP90RF.js";import"./FilterLines-BKSJkYtY.js";import"./Share07-BbxsQGmu.js";import"./GitBranch01-1TB2fz2Q.js";import"./Globe01-DlJf2DZ1.js";import"./Globe04-BUyU7ld6.js";import"./SwitchHorizontal01-YWw8vDEs.js";import"./HardDrive-CUcxR4Ii.js";import"./Image01-CwIFdZVi.js";import"./Key01-Dy7g3dc2.js";import"./LinkExternal01-BQ6jh3dS.js";import"./LockUnlocked01-D5bbaLgj.js";import"./LogOut01-Cgoq1Vs2.js";import"./Monitor01-CtyVl7En.js";import"./Sun-Caa0gO60.js";import"./Package-1Wizoc0y.js";import"./Palette-DHXycqmw.js";import"./Play-BXtRkLwb.js";import"./Plus-BgGySMqS.js";import"./SearchLg-DsdgQzzS.js";import"./SearchMd-Co2W0me8.js";import"./Shield01-COz3jHfB.js";import"./Stars01-C-jcQhP0.js";import"./Trash01-CXBUKCBw.js";import"./Upload01-Tt-9JoaA.js";import"./User01-BBBiQ5-x.js";import"./Users01-CCl42cQU.js";import"./XClose-BgH7VS6W.js";import"./Zap-OY5CMLKF.js";import"./useInfiniteQuery-Bb71KdsL.js";import"./use-infinite-scroll-Ct6NgN5q.js";import"./use-connection-Bv8cUPb7.js";import"./table-CpLmSdcY.js";import"./empty-state-CsWjYhO_.js";import"./use-members-iPGLwwvY.js";import"./use-org-auth-client-B53npNBD.js";import"./use-automations-Dsnkec5Z.js";import"./useSuspenseInfiniteQuery-BYQF2qb8.js";import"./avatar-6EVsFVhe.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CgIq_iwl.js";import"./markdown-D3hohKVF.js";import"./monaco-editor-DIAqRuEY.js";import"./spinner-CBlKcglP.js";import"./editor-BejI1O8g.js";import"./types-DFXZUagl.js";import"./shell-layout-D4BVNbzu.js";import"./required-auth-layout-o5H5dBXa.js";import"./use-org-sso-DRYv46gI.js";import"./integration-icon-BPCDT-Tj.js";import"./use-navigate-to-agent-ngu3WwTU.js";import"./github-repo-BpKUwJal.js";import"./chart-CMsbLetI.js";import"./index-DB1XDomL.js";import"./AreaChart-CZx0VVjt.js";import"./form-k13u_KRx.js";import"./file-type-icon-C8T24Hoh.js";import"./drawer-EPiF0UF_.js";import"./collection-search-BwwQ-87y.js";import"./use-mcp-tools-DxK_gDRJ.js";import"./tabs-C0r_tEKZ.js";import"./toggle-group-D96A9zKi.js";import"./super-agent-icon-BlnTdKq5.js";import"./self-tool-result-B8cXlSXR.js";import"./alert-dialog-DZ5RJjOG.js";import"./extract-connection-data-CUGDDE6d.js";import"./metadata-dUsYcpuu.js";import"./connection-BrAKds8G.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-DdhbvZGE.js";import"./authenticate-and-persist-oauth-BrP-EX2b.js";import"./mcp-oauth-DznvZCKP.js";import"./track-BDCwmNZe.js";import"./popover-DX03-Ocq.js";import"./toolbar-CCs0IzAK.js";import"./github-repo-picker-BGvd0zWB.js";import"./agent-capabilities-BxGDQyCw.js";import"./connection-card-DPxIwtrY.js";import"./use-registry-connections-CXONWz9e.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-CNDHrPFa.js";import"./connection-form-helpers-BTuoz_do.js";import"./collection-tabs-Bd8HLaJk.js";import"./badge-BWEyXCFm.js";import"./select-model-DNKsEp0g.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-_-xYRNP_.js";import"./dropdown-menu-DIJXkPSy.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-iIazYyVf.js";import"./skill-preview-BV4H39m0.js";import"./use-file-configs-DJagOXxU.js";import"./site-slug-uya6Wp4-.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-ByvPjZrT.js";import"./scroll-area-DlGRp2-C.js";import"./search-input-D4XQ_gHR.js";import"./use-mcp-auth-status-Y7fjkntl.js";import"./switch-RhR3uKLt.js";import"./use-secrets-DBsZu6Nn.js";import"./config-CqnhxspX.js";import"./command-Dji9XZ8Q.js";import"./index-CE2Ear1z.js";import"./get-initials-D-f_fDFw.js";import"./breadcrumb-Iy5e3kWh.js";import"./use-tags-DV0Dfkgk.js";import"./automation-list-row-CPKAe0pB.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-D0-aHm-6.js";import"./cards-755jhRXY.js";const Et=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function Ti(it){const t=lt.c(106),{orgSlug:z,virtualMcpId:J,branch:W,blockKey:X,block:Z}=it,e=at();let V;t[0]!==W||t[1]!==z||t[2]!==J?(V={orgSlug:z,virtualMcpId:J,branch:W},t[0]=W,t[1]=z,t[2]=J,t[3]=V):V=t[3];const s=ut(V);let G;t[4]!==Z?(G=bt(Z),t[4]=Z,t[5]=G):G=t[5];const ot=G;let H;t[6]!==X||t[7]!==s?(H=i=>{s.mutate({blockKey:X,data:vt(i)})},t[6]=X,t[7]=s,t[8]=H):H=t[8];const[o,tt]=gt(ot,H);let M;t[9]!==o||t[10]!==tt?(M=i=>tt({...o,...i}),t[9]=o,t[10]=tt,t[11]=M):M=t[11];const m=M;let p;t[12]!==e?(p=e("sandbox.redirectEditor.title"),t[12]=e,t[13]=p):p=t[13];let l;t[14]!==p?(l=r.jsx("span",{className:"text-sm font-medium",children:p}),t[14]=p,t[15]=l):l=t[15];let a;t[16]!==s.isError||t[17]!==s.isPending?(a=r.jsx(yt,{isPending:s.isPending,isError:s.isError}),t[16]=s.isError,t[17]=s.isPending,t[18]=a):a=t[18];let c;t[19]!==l||t[20]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,a]}),t[19]=l,t[20]=a,t[21]=c):c=t[21];let d;t[22]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[22]=e,t[23]=d):d=t[23];let n;t[24]!==d?(n=r.jsx(et,{htmlFor:"redirect-from",children:d}),t[24]=d,t[25]=n):n=t[25];const mt=o.from;let f;t[26]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[26]=e,t[27]=f):f=t[27];let x;t[28]!==m?(x=i=>m({from:i.target.value}),t[28]=m,t[29]=x):x=t[29];let h;t[30]!==o.from||t[31]!==f||t[32]!==x?(h=r.jsx(rt,{id:"redirect-from",value:mt,placeholder:f,onChange:x,className:"h-10"}),t[30]=o.from,t[31]=f,t[32]=x,t[33]=h):h=t[33];let u;t[34]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[34]=e,t[35]=u):u=t[35];let b;t[36]!==u?(b=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=b):b=t[37];let y;t[38]!==n||t[39]!==h||t[40]!==b?(y=r.jsxs("div",{className:"space-y-2",children:[n,h,b]}),t[38]=n,t[39]=h,t[40]=b,t[41]=y):y=t[41];let j;t[42]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[42]=e,t[43]=j):j=t[43];let v;t[44]!==j?(v=r.jsx(et,{htmlFor:"redirect-to",children:j}),t[44]=j,t[45]=v):v=t[45];const st=o.to;let g;t[46]!==e?(g=e("sandbox.redirectEditor.toPlaceholder"),t[46]=e,t[47]=g):g=t[47];let E;t[48]!==m?(E=i=>m({to:i.target.value}),t[48]=m,t[49]=E):E=t[49];let P;t[50]!==o.to||t[51]!==g||t[52]!==E?(P=r.jsx(rt,{id:"redirect-to",value:st,placeholder:g,onChange:E,className:"h-10"}),t[50]=o.to,t[51]=g,t[52]=E,t[53]=P):P=t[53];let N;t[54]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[54]=e,t[55]=N):N=t[55];let S;t[56]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[56]=N,t[57]=S):S=t[57];let C;t[58]!==v||t[59]!==P||t[60]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[v,P,S]}),t[58]=v,t[59]=P,t[60]=S,t[61]=C):C=t[61];let T;t[62]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[62]=e,t[63]=T):T=t[63];let k;t[64]!==T?(k=r.jsx(et,{htmlFor:"redirect-type",children:T}),t[64]=T,t[65]=k):k=t[65];const pt=o.type;let w;t[66]!==m?(w=i=>m({type:i}),t[66]=m,t[67]=w):w=t[67];let R;t[68]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[68]=e,t[69]=R):R=t[69];let I;t[70]!==R?(I=r.jsx(nt,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(ft,{placeholder:R})}),t[70]=R,t[71]=I):I=t[71];let _;t[72]!==e?(_=Et.map(i=>r.jsx(dt,{value:i.value,children:e(i.labelKey,{status:jt[i.value]})},i.value)),t[72]=e,t[73]=_):_=t[73];let F;t[74]!==_?(F=r.jsx(xt,{children:_}),t[74]=_,t[75]=F):F=t[75];let L;t[76]!==o.type||t[77]!==w||t[78]!==I||t[79]!==F?(L=r.jsxs(ht,{value:pt,onValueChange:w,children:[I,F]}),t[76]=o.type,t[77]=w,t[78]=I,t[79]=F,t[80]=L):L=t[80];let Y;t[81]===Symbol.for("react.memo_cache_sentinel")?(Y=r.jsx("strong",{children:"Temporary"}),t[81]=Y):Y=t[81];let $;t[82]===Symbol.for("react.memo_cache_sentinel")?($=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",Y," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=$):$=t[82];let Q;t[83]!==k||t[84]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,$]}),t[83]=k,t[84]=L,t[85]=Q):Q=t[85];let K;t[86]!==m?(K=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=K):K=t[87];let D;t[88]!==o.discardQueryParameters||t[89]!==K?(D=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:K}),t[88]=o.discardQueryParameters,t[89]=K,t[90]=D):D=t[90];let A;t[91]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[91]=e,t[92]=A):A=t[92];let B;t[93]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[93]=A,t[94]=B):B=t[94];let O;t[95]!==D||t[96]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[D,B]}),t[95]=D,t[96]=B,t[97]=O):O=t[97];let U;t[98]!==y||t[99]!==C||t[100]!==Q||t[101]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[y,C,Q,O]})}),t[98]=y,t[99]=C,t[100]=Q,t[101]=O,t[102]=U):U=t[102];let q;return t[103]!==U||t[104]!==c?(q=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=q):q=t[105],q}export{Ti as RedirectEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Bbkv4h1H.js","assets/index-yKWu9W8j.js","assets/index-Blq7G79G.css","assets/Tool02-rhxMYxFC.js","assets/CheckCircle-oGQUax5r.js","assets/Settings02-BZP0-zrJ.js","assets/use-mcp-client-DdOPJwYU.js","assets/constants-dLUUoWH7.js","assets/auth-CtGBzJ5v.js","assets/useInfiniteQuery-Bb71KdsL.js","assets/use-infinite-scroll-Ct6NgN5q.js","assets/badge-BWEyXCFm.js","assets/input-BJ4dQ_0A.js","assets/dropdown-menu-DIJXkPSy.js","assets/Check-DV9c9Ju0.js","assets/ChevronRight-BFVS0rLl.js","assets/DotsVertical-TG2gQrgH.js","assets/table-CpLmSdcY.js","assets/toggle-group-D96A9zKi.js","assets/use-view-mode-VOXhNS35.js","assets/FilterLines-BKSJkYtY.js","assets/Globe01-DlJf2DZ1.js","assets/SearchMd-Co2W0me8.js","assets/dialog-BbsJIjxr.js","assets/AlertCircle-BOvP1Qau.js","assets/Download01-BG6VZNuu.js","assets/Upload01-Tt-9JoaA.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DZ5RJjOG.js","assets/Trash01-CXBUKCBw.js","assets/label-Bww4I6o3.js","assets/select-CHODsoBK.js","assets/ChevronDown-BiVWHgTB.js","assets/ChevronUp-DTvj8HoM.js","assets/switch-RhR3uKLt.js","assets/textarea-CNDHrPFa.js","assets/ArrowLeft-Dn-feuwf.js","assets/XCircle-XOMRT1Lc.js","assets/checkbox-B4nfHNn2.js","assets/Eye-BITP90RF.js","assets/LinkExternal01-BQ6jh3dS.js","assets/use-copy-CgIq_iwl.js","assets/Copy01-Bfxpqa-_.js","assets/Key01-Dy7g3dc2.js","assets/Plus-BgGySMqS.js","assets/mcp-oauth-DznvZCKP.js","assets/Play-BXtRkLwb.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as i,j as e,r as s,k as a,bq as o}from"./index-yKWu9W8j.js";import{R as n}from"./require-capability-C1lvBBDh.js";import"./access-gate-BkplBf5H.js";import"./capability-load-error-Cus_w34U.js";const c=s.lazy(()=>o(()=>import("./registry-layout-Bbkv4h1H.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])));function u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(n,{capability:"registry:manage",area:"the registry",children:e.jsx(s.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(c,{})})}),r[0]=t):t=r[0],t}export{u as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-Bbkv4h1H.js","assets/index-yKWu9W8j.js","assets/index-Blq7G79G.css","assets/Tool02-rhxMYxFC.js","assets/CheckCircle-oGQUax5r.js","assets/Settings02-BZP0-zrJ.js","assets/use-mcp-client-DdOPJwYU.js","assets/constants-dLUUoWH7.js","assets/auth-CtGBzJ5v.js","assets/useInfiniteQuery-Bb71KdsL.js","assets/use-infinite-scroll-Ct6NgN5q.js","assets/badge-BWEyXCFm.js","assets/input-BJ4dQ_0A.js","assets/dropdown-menu-DIJXkPSy.js","assets/Check-DV9c9Ju0.js","assets/ChevronRight-BFVS0rLl.js","assets/DotsVertical-TG2gQrgH.js","assets/table-CpLmSdcY.js","assets/toggle-group-D96A9zKi.js","assets/use-view-mode-VOXhNS35.js","assets/FilterLines-BKSJkYtY.js","assets/Globe01-DlJf2DZ1.js","assets/SearchMd-Co2W0me8.js","assets/dialog-BbsJIjxr.js","assets/AlertCircle-BOvP1Qau.js","assets/Download01-BG6VZNuu.js","assets/Upload01-Tt-9JoaA.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DZ5RJjOG.js","assets/Trash01-CXBUKCBw.js","assets/label-Bww4I6o3.js","assets/select-CHODsoBK.js","assets/ChevronDown-BiVWHgTB.js","assets/ChevronUp-DTvj8HoM.js","assets/switch-RhR3uKLt.js","assets/textarea-CNDHrPFa.js","assets/ArrowLeft-Dn-feuwf.js","assets/XCircle-XOMRT1Lc.js","assets/checkbox-B4nfHNn2.js","assets/Eye-BITP90RF.js","assets/LinkExternal01-BQ6jh3dS.js","assets/use-copy-CgIq_iwl.js","assets/Copy01-Bfxpqa-_.js","assets/Key01-Dy7g3dc2.js","assets/Plus-BgGySMqS.js","assets/mcp-oauth-DznvZCKP.js","assets/Play-BXtRkLwb.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as n,d as c,f as m,j as t,k as f,r as l,bq as p}from"./index-yKWu9W8j.js";import{R as u}from"./require-capability-C1lvBBDh.js";import"./access-gate-BkplBf5H.js";import"./capability-load-error-Cus_w34U.js";const g=l.lazy(()=>p(()=>import("./registry-layout-Bbkv4h1H.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])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(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(f,{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{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as P,H as oe,o as ke,K as Ae,b as L,j as t,C as Gt,av as Xt,B as te,r as B,bO as Qt,d as ot,w as Wt,n as H,a as ce,t as K,y as Yt,k as Ie,a5 as ht,M as pt,q as R,Y as Zt,_ as xt,Z as jt,L as Jt,a8 as Ce,a9 as ye,ab as Ne,G as en,ax as tn,ay as nn,R as sn,I as on,p as an,ac as ln}from"./index-yKWu9W8j.js";import{m as ct,u as rn}from"./use-mcp-client-DdOPJwYU.js";import{C as vt,g as cn,W as dn,S as bt,a as Ct,i as un,d as mn,f as fn}from"./constants-dLUUoWH7.js";import{D as gn}from"./use-destination-route-CllUoeq7.js";import{d as dt,C as hn}from"./self-tool-result-B8cXlSXR.js";import{i as pn}from"./ChevronRight-BFVS0rLl.js";import{aH as xn,N as jn,A as yt,I as vn,s as Je}from"./agent-icon-Tmfpg4GQ.js";import{b as Nt,d as bn,e as wt}from"./thread-route-Bszj7qfd.js";import{t as _t}from"./ChevronDown-BiVWHgTB.js";import{u as it,a as Cn}from"./use-virtual-mcp-C0OZpYUw.js";import{g as yn}from"./github-repo-BpKUwJal.js";import{a as Re,b as St,P as Dt}from"./popover-DX03-Ocq.js";import{i as Ve}from"./Check-DV9c9Ju0.js";import{s as we}from"./Plus-BgGySMqS.js";import{i as kt}from"./SearchMd-Co2W0me8.js";import{s as It}from"./XClose-BgH7VS6W.js";import{T as At}from"./toolbar-CCs0IzAK.js";import{D as Tt,a as Pt,b as Ot,c as Nn,g as wn,e as _n,f as Sn}from"./drawer-EPiF0UF_.js";import{G as Dn,a as kn}from"./github-repo-picker-BGvd0zWB.js";import{g as In,a as An,b as zt}from"./hooks-CHkyysia.js";import{u as Tn,g as Pn,c as On,d as zn,b as Mn}from"./use-navigate-to-agent-ngu3WwTU.js";import{g as $n,a as Mt}from"./agent-capabilities-BxGDQyCw.js";import{u as $t}from"./shell-layout-D4BVNbzu.js";import{d as Fn}from"./session-runtime-C-KTDVeQ.js";import{C as Ln}from"./collection-search-BwwQ-87y.js";import{g as En,a as Bn,b as Rn,e as Vn}from"./extract-connection-data-CUGDDE6d.js";import{u as Ft,a as Lt,g as Kn,C as et}from"./connection-card-DPxIwtrY.js";import{D as Et,b as Bt,c as Rt,d as Vt,h as Hn,e as Un}from"./dialog-BbsJIjxr.js";import{d as W,a as Y,e as Z,b as J,c as ee,F as ut}from"./form-k13u_KRx.js";import{I as re}from"./input-BJ4dQ_0A.js";import{S as qn,a as Gn,b as Xn,c as Qn,d as De}from"./select-CHODsoBK.js";import{T as Wn}from"./textarea-CNDHrPFa.js";import{b as Kt}from"./use-connection-Bv8cUPb7.js";import{n as Be,i as tt}from"./Tool02-rhxMYxFC.js";import{e as Yn}from"./UserSquare-Jc2EKyRq.js";import{c as Zn,i as Le,a as mt,E as Jn,p as es,b as ts,d as ns}from"./connection-form-helpers-BTuoz_do.js";import{a as nt}from"./authenticate-and-persist-oauth-BrP-EX2b.js";import{g as ss}from"./connection-slug-CITJ0kGN.js";import{C as os}from"./collection-tabs-Bd8HLaJk.js";import{u as ft}from"./use-infinite-scroll-Ct6NgN5q.js";import{B as Ee}from"./badge-BWEyXCFm.js";import{u as is}from"./useSuspenseInfiniteQuery-BYQF2qb8.js";import{g as Ke}from"./metadata-dUsYcpuu.js";import{u as as}from"./use-ai-providers-D6bJSAgj.js";function ls(n){return n?n.run_in_progress?"generating":n.scanned_at?"ready":"none":"none"}const rs=2e4;function cs(n){if(typeof n!="string"||!n)return null;try{return new URL(n).hostname||null}catch{return null}}function Qo(){const n=P.c(19),{org:e}=oe(),s=dn.COMMERCE_DISCOVERY(e.id);let o;n[0]!==e.id||n[1]!==e.slug?(o=ct({connectionId:bt,orgId:e.id,orgSlug:e.slug}),n[0]=e.id,n[1]=e.slug,n[2]=o):o=n[2];const{data:a}=ke(o),i=ke({queryKey:Ae.commerceDiscoveryConnection(e.id,s),enabled:!!a,retry:!1,staleTime:6e4,queryFn:async()=>{if(!a)throw new Error("selfClient not ready");const k=await a.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:s}});return dt(k)}}),l=i.data?.item??null,{data:r}=ke({...ct({connectionId:s,orgId:e.id,orgSlug:e.slug}),enabled:!!l}),c=Ae.commerceDiscoveryDiagnostic(e.id,s),u=!!r;let m;n[3]!==r?(m=async()=>{if(!r)throw new Error("cdClient not ready");const k=await r.callTool({name:vt,arguments:{}});return dt(k).diagnostic??null},n[3]=r,n[4]=m):m=n[4];let f;n[5]!==c||n[6]!==u||n[7]!==m?(f={queryKey:c,enabled:u,retry:1,refetchInterval:ds,queryFn:m},n[5]=c,n[6]=u,n[7]=m,n[8]=f):f=n[8];const d=ke(f),g=l?.metadata?.siteUrl,v=d.data??null,h=d.isSuccess,p=i.isPending||!!l&&d.isPending,x=typeof g=="string"&&g?g:null;let b;n[9]!==g?(b=cs(g),n[9]=g,n[10]=b):b=n[10];const C=r??null;let _;return n[11]!==s||n[12]!==d.isSuccess||n[13]!==C||n[14]!==v||n[15]!==p||n[16]!==x||n[17]!==b?(_={diagnostic:v,isSuccess:h,isLoading:p,siteUrl:x,host:b,connectionId:s,cdClient:C},n[11]=s,n[12]=d.isSuccess,n[13]=C,n[14]=v,n[15]=p,n[16]=x,n[17]=b,n[18]=_):_=n[18],_}function ds(n){return n.state.status!=="error"&&ls(n.state.data)==="generating"?rs:!1}function Wo(n,e){return{to:gn.agents,params:{org:n.slug,project:cn(n.id),panel:"app"},search:{connection:e,tool:vt}}}const us="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function ms(){const n=P.c(13),e=L();let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),n[0]=s):s=n[0];let o;n[1]!==e?(o=e("routes.commerceOnboarding.connectModal.quote"),n[1]=e,n[2]=o):o=n[2];let a;n[3]!==o?(a=t.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",o,"”"]}),n[3]=o,n[4]=a):a=n[4];let i;n[5]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("img",{src:us,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),n[5]=i):i=n[5];let l;n[6]!==e?(l=e("routes.commerceOnboarding.connectModal.quoteAuthor"),n[6]=e,n[7]=l):l=n[7];let r;n[8]!==l?(r=t.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[i,t.jsx("span",{className:"text-base font-medium",children:l})]}),n[8]=l,n[9]=r):r=n[9];let c;return n[10]!==a||n[11]!==r?(c=t.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[s,a,r]}),n[10]=a,n[11]=r,n[12]=c):c=n[12],c}function fs(){const n=P.c(19),e=L();let s;n[0]!==e?(s=e("routes.commerceOnboarding.connectModal.trustRevoke"),n[0]=e,n[1]=s):s=n[1];let o;n[2]!==s?(o={Icon:xn,label:s},n[2]=s,n[3]=o):o=n[3];let a;n[4]!==e?(a=e("routes.commerceOnboarding.connectModal.trustEncrypted"),n[4]=e,n[5]=a):a=n[5];let i;n[6]!==a?(i={Icon:Gt,label:a},n[6]=a,n[7]=i):i=n[7];let l;n[8]!==e?(l=e("routes.commerceOnboarding.connectModal.trustNeverSold"),n[8]=e,n[9]=l):l=n[9];let r;n[10]!==l?(r={Icon:jn,label:l},n[10]=l,n[11]=r):r=n[11];let c;n[12]!==o||n[13]!==i||n[14]!==r?(c=[o,i,r],n[12]=o,n[13]=i,n[14]=r,n[15]=c):c=n[15];const u=c;let m;n[16]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"h-px w-full bg-white/15"}),n[16]=m):m=n[16];let f;return n[17]!==u?(f=t.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[m,t.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:u.map(gs)})]}),n[17]=u,n[18]=f):f=n[18],f}function gs(n){const{Icon:e,label:s}=n;return t.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[t.jsx(e,{className:"size-4 shrink-0 opacity-85"}),s]},s)}function Yo(n){const e=P.c(22),{siteHost:s,footer:o,onClose:a,children:i}=n,l=L(),r=s?`https://www.google.com/s2/favicons?domain=${s}&sz=128`:null;let c;e[0]!==a||e[1]!==l?(c=a&&t.jsx("button",{type:"button",onClick:a,"aria-label":l("routes.commerceOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:t.jsx(Xt,{size:18})}),e[0]=a,e[1]=l,e[2]=c):c=e[2];let u,m;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),m=t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=u,e[4]=m):(u=e[3],m=e[4]);let f;e[5]!==r||e[6]!==s?(f=s&&t.jsxs(t.Fragment,{children:[t.jsx(pn,{size:16,className:"shrink-0 text-foreground/25"}),r&&t.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:t.jsx("img",{src:r,alt:"",className:"size-full"})}),t.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:s})]}),e[5]=r,e[6]=s,e[7]=f):f=e[7];let d;e[8]!==f?(d=t.jsxs("div",{className:"flex items-center gap-2",children:[u,m,f]}),e[8]=f,e[9]=d):d=e[9];let g;e[10]!==o?(g=t.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:o}),e[10]=o,e[11]=g):g=e[11];let v;e[12]!==i||e[13]!==d||e[14]!==g?(v=t.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[d,i,g]}),e[12]=i,e[13]=d,e[14]=g,e[15]=v):v=e[15];let h,p;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),p=t.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=h,e[17]=p):(h=e[16],p=e[17]);let x;e[18]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[h,p,t.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[t.jsx("div",{className:"flex-1"}),t.jsx(ms,{}),t.jsx("div",{className:"flex-1"}),t.jsx(fs,{})]})]}),e[18]=x):x=e[18];let b;return e[19]!==c||e[20]!==v?(b=t.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[c,v,x]}),e[19]=c,e[20]=v,e[21]=b):b=e[21],b}function Zo(n){const e=P.c(5),{ready:s,pending:o,label:a,onClick:i,children:l}=n,r=o||!s,c=s&&!o?l:null;let u;return e[0]!==a||e[1]!==i||e[2]!==r||e[3]!==c?(u=t.jsxs(te,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal rounded-lg py-3 text-center text-base font-medium leading-tight",onClick:i,disabled:r,children:[a,c]}),e[0]=a,e[1]=i,e[2]=r,e[3]=c,e[4]=u):u=e[4],u}function Ht(){const n=B.useContext(Qt),{data:e,refetch:s}=n.hooks.useListUserInvitations();return{invitations:(e??[]).filter(a=>a.status==="pending"&&new Date(a.expiresAt)>new Date),refetch:()=>s?.()}}function hs(n){let e=0;for(let o=0;o<n.length;o++)e=n.charCodeAt(o)+((e<<5)-e);const s=Math.abs(e)%360;return{backgroundColor:`hsl(${s} 55% 70%)`,color:`hsl(${s} 55% 20%)`}}function at(n){const e=P.c(13),{org:s,size:o}=n,a=o===void 0?"sm":o,i=a==="xs"?"size-5":"size-6",l=a==="xs"?"text-[9px]":"text-xs";let r;e[0]!==i?(r=H(i,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=i,e[1]=r):r=e[1];let c;e[2]!==s.logo||e[3]!==s.name?(c=s.logo?void 0:hs(s.name),e[2]=s.logo,e[3]=s.name,e[4]=c):c=e[4];let u;e[5]!==s.logo||e[6]!==s.name||e[7]!==l?(u=s.logo?t.jsx("img",{src:s.logo,alt:"",className:"size-full object-cover"}):t.jsx("span",{className:H("font-semibold leading-none",l),children:s.name.slice(0,2).toUpperCase()}),e[5]=s.logo,e[6]=s.name,e[7]=l,e[8]=u):u=e[8];let m;return e[9]!==r||e[10]!==c||e[11]!==u?(m=t.jsx("div",{className:r,style:c,children:u}),e[9]=r,e[10]=c,e[11]=u,e[12]=m):m=e[12],m}function ps({invitation:n,onChanged:e}){const s=L(),[o,a]=B.useState(!1),i=n.organizationName??s("header.orgSwitcher.unknownOrganization"),l=async()=>{a(!0);try{const u=await ce.organization.acceptInvitation({invitationId:n.id});if(u.error){K.error(u.error.message),a(!1);return}}catch{K.error(s("header.orgSwitcher.failedToAcceptInvitation")),a(!1);return}K.success(s("header.orgSwitcher.joined",{name:i})),Yt();let c;try{c=(await ce.organization.getFullOrganization({query:{organizationId:n.organizationId}}))?.data?.slug}catch{}window.location.href=c?`/${c}`:"/"},r=async()=>{a(!0);try{const c=await ce.organization.rejectInvitation({invitationId:n.id});if(c.error){K.error(c.error.message),a(!1);return}K.success(s("header.orgSwitcher.invitationDeclined")),a(!1),e()}catch{K.error(s("header.orgSwitcher.failedToDeclineInvitation")),a(!1)}};return t.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[t.jsx(at,{org:{name:i},size:"sm"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"truncate text-sm font-medium",children:i}),t.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[t.jsx(te,{size:"sm",variant:"default",className:"h-7 text-xs",onClick:l,disabled:o,children:s("header.orgSwitcher.accept")}),t.jsx(te,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground",onClick:r,disabled:o,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:i}),children:t.jsx(It,{size:14})})]})]})}function xs(n){const e=P.c(32),{orgParam:s,onSelectOrg:o,onCreateOrg:a}=n,i=L(),{data:l}=Wt(),{invitations:r,refetch:c}=Ht();let u;e[0]!==s?(u=(T,O)=>T.slug===s?-1:O.slug===s?1:T.name.localeCompare(O.name),e[0]=s,e[1]=u):u=e[1];const m=[...l??[]].sort(u),[f,d]=B.useState(""),g=f.toLowerCase(),v=g?m.filter(T=>T.name.toLowerCase().includes(g)||T.slug.toLowerCase().includes(g)):m;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(kt,{size:16,className:"shrink-0 text-muted-foreground/60"}),e[2]=h):h=e[2];let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=T=>d(T.target.value),e[3]=p):p=e[3];let x;e[4]!==f?(x=T=>T.key==="Escape"&&f&&d(""),e[4]=f,e[5]=x):x=e[5];let b;e[6]!==i?(b=i("header.orgSwitcher.searchOrganizations"),e[6]=i,e[7]=b):b=e[7];let C;e[8]!==f||e[9]!==x||e[10]!==b?(C=t.jsx("input",{"data-org-switcher-search":!0,autoFocus:!0,type:"text",value:f,onChange:p,onKeyDown:x,placeholder:b,className:"flex-1 min-w-0 bg-transparent text-sm outline-none placeholder:text-muted-foreground/60"}),e[8]=f,e[9]=x,e[10]=b,e[11]=C):C=e[11];let _;e[12]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(we,{size:16}),e[12]=_):_=e[12];let k;e[13]!==a?(k=t.jsx("button",{type:"button",onClick:a,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:_}),e[13]=a,e[14]=k):k=e[14];let D;e[15]!==C||e[16]!==k?(D=t.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-border/50",children:[h,C,k]}),e[15]=C,e[16]=k,e[17]=D):D=e[17];const $="flex-1 min-h-0 overflow-y-auto p-1.5 flex flex-col gap-1";let j;e[18]!==r||e[19]!==f||e[20]!==c?(j=!f&&r.map(T=>t.jsx(ps,{invitation:T,onChanged:c},T.id)),e[18]=r,e[19]=f,e[20]=c,e[21]=j):j=e[21];const S=v.length===0&&t.jsx("p",{className:"px-3 py-4 text-sm text-muted-foreground/60 text-center",children:f?i("header.orgSwitcher.noOrganizationsMatch",{query:f}):i("header.orgSwitcher.noOrganizationsAvailable")});let A;e[22]!==o||e[23]!==s?(A=T=>t.jsxs("button",{type:"button",onClick:()=>o(T.slug),className:H("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",T.slug===s?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50"),children:[t.jsx(at,{org:T,size:"sm"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:T.name}),t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:T.slug})]}),T.slug===s&&t.jsx(Ve,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},T.id),e[22]=o,e[23]=s,e[24]=A):A=e[24];const N=v.map(A);let y;e[25]!==j||e[26]!==S||e[27]!==N?(y=t.jsxs("div",{className:$,children:[j,S,N]}),e[25]=j,e[26]=S,e[27]=N,e[28]=y):y=e[28];let I;return e[29]!==y||e[30]!==D?(I=t.jsxs(t.Fragment,{children:[D,y]}),e[29]=y,e[30]=D,e[31]=I):I=e[31],I}function js(n){const e=P.c(22),{trigger:s,orgParam:o,align:a,side:i}=n,l=a===void 0?"start":a,r=i===void 0?"bottom":i,c=ot(),[u,m]=B.useState(!1),[f,d]=B.useState(!1);let g;e[0]!==s?(g=t.jsx(Re,{asChild:!0,children:s}),e[0]=s,e[1]=g):g=e[1];const v=String(u);let h;e[2]!==c?(h=D=>{m(!1),c({to:"/$org",params:{org:D}})},e[2]=c,e[3]=h):h=e[3];let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{m(!1),d(!0)},e[4]=p):p=e[4];let x;e[5]!==o||e[6]!==v||e[7]!==h?(x=t.jsx(xs,{orgParam:o,onSelectOrg:h,onCreateOrg:p},v),e[5]=o,e[6]=v,e[7]=h,e[8]=x):x=e[8];let b;e[9]!==l||e[10]!==r||e[11]!==x?(b=t.jsx(St,{side:r,align:l,sideOffset:8,collisionPadding:16,className:"w-[300px] p-0 flex flex-col max-h-[440px]",onOpenAutoFocus:bs,onCloseAutoFocus:vs,children:x}),e[9]=l,e[10]=r,e[11]=x,e[12]=b):b=e[12];let C;e[13]!==u||e[14]!==g||e[15]!==b?(C=t.jsxs(Dt,{open:u,onOpenChange:m,children:[g,b]}),e[13]=u,e[14]=g,e[15]=b,e[16]=C):C=e[16];let _;e[17]!==f?(_=t.jsx(hn,{open:f,onOpenChange:d}),e[17]=f,e[18]=_):_=e[18];let k;return e[19]!==_||e[20]!==C?(k=t.jsxs(t.Fragment,{children:[C,_]}),e[19]=_,e[20]=C,e[21]=k):k=e[21],k}function vs(n){return n.preventDefault()}function bs(n){n.preventDefault(),n.currentTarget?.querySelector("[data-org-switcher-search]")?.focus()}function Cs(n){const e=P.c(21),{value:s,onChange:o,placeholder:a,onKeyDown:i,className:l,isSearching:r,disabled:c}=n,u=a===void 0?"Search...":a;let m;e[0]!==l?(m=H("shrink-0 w-full border-b border-border h-12",l),e[0]=l,e[1]=m):m=e[1];const f=c?"cursor-not-allowed opacity-50":"cursor-text";let d;e[2]!==f?(d=H("flex items-center gap-2.5 h-12 px-4",f),e[2]=f,e[3]=d):d=e[3];let g;e[4]!==r?(g=r?t.jsx(Ie,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):t.jsx(kt,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=r,e[5]=g):g=e[5];let v;e[6]!==o?(v=b=>o(b.target.value),e[6]=o,e[7]=v):v=e[7];let h;e[8]!==c||e[9]!==i||e[10]!==u||e[11]!==v||e[12]!==s?(h=t.jsx("input",{type:"text",value:s,onChange:v,onKeyDown:i,placeholder:u,disabled:c,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=c,e[9]=i,e[10]=u,e[11]=v,e[12]=s,e[13]=h):h=e[13];let p;e[14]!==d||e[15]!==g||e[16]!==h?(p=t.jsxs("label",{className:d,children:[g,h]}),e[14]=d,e[15]=g,e[16]=h,e[17]=p):p=e[17];let x;return e[18]!==m||e[19]!==p?(x=t.jsx("div",{className:m,children:p}),e[18]=m,e[19]=p,e[20]=x):x=e[20],x}function ys(n,e,s){if(!s)return null;const o=In(n,e);return o?o.threads.get().find(i=>i.id===s)?.branch??null:null}function Ns(n){const e=P.c(6),{value:s,onChange:o}=n,a=L();let i;e[0]!==a?(i=a("sidebar.agentsSection.searchAgents"),e[0]=a,e[1]=i):i=e[1];let l;return e[2]!==o||e[3]!==i||e[4]!==s?(l=t.jsx(Cs,{value:s,onChange:o,placeholder:i}),e[2]=o,e[3]=i,e[4]=s,e[5]=l):l=e[5],l}function ws(){const n=P.c(4),e=L();let s;n[0]!==e?(s=e("sidebar.agentsSection.noAgentsFound"),n[0]=e,n[1]=s):s=n[1];let o;return n[2]!==s?(o=t.jsx("div",{className:"flex items-center justify-center py-6 text-xs text-muted-foreground",children:s}),n[2]=s,n[3]=o):o=n[3],o}function _s(n){const e=P.c(10),{org:s,onClose:o}=n,a=L();let i;e[0]!==s.slug?(i={org:s.slug},e[0]=s.slug,e[1]=i):i=e[1];let l;e[2]!==o?(l=()=>o(),e[2]=o,e[3]=l):l=e[3];let r;e[4]!==a?(r=a("sidebar.agentsSection.seeAllAgents"),e[4]=a,e[5]=r):r=e[5];let c;return e[6]!==i||e[7]!==l||e[8]!==r?(c=t.jsx("div",{className:"border-t border-border px-3 py-2.5",children:t.jsx(Jt,{to:"/$org/settings/agents",params:i,onClick:l,className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center justify-center",children:r})}),e[6]=i,e[7]=l,e[8]=r,e[9]=c):c=e[9],c}function Ss(){const n=P.c(4),e=L();let s;n[0]!==e?(s=e("sidebar.agentsSection.agents"),n[0]=e,n[1]=s):s=n[1];let o;return n[2]!==s?(o=t.jsx(Ut,{children:s}),n[2]=s,n[3]=o):o=n[3],o}function Ds(n){const e=P.c(11),{onImportFromGithub:s}=n,o=L();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Dn,{className:"size-3.5"}),e[0]=a):a=e[0];let i;e[1]!==o?(i=o("sidebar.agentsSection.import"),e[1]=o,e[2]=i):i=e[2];let l;e[3]!==s||e[4]!==i?(l=t.jsxs("button",{type:"button",onClick:s,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:[a,i]}),e[3]=s,e[4]=i,e[5]=l):l=e[5];let r;e[6]!==o?(r=o("sidebar.agentsSection.codeAgents"),e[6]=o,e[7]=r):r=e[7];let c;return e[8]!==l||e[9]!==r?(c=t.jsx(Ut,{action:l,children:r}),e[8]=l,e[9]=r,e[10]=c):c=e[10],c}function ks(n){const e=P.c(11),{setOpen:s,emptyCtaClass:o}=n,a=L();let i;e[0]!==a?(i=a("sidebar.agentsSection.browseAgents"),e[0]=a,e[1]=i):i=e[1];let l;e[2]!==o?(l=H(o),e[2]=o,e[3]=l):l=e[3];let r;e[4]!==s?(r=()=>{R("agent_browser_opened",{surface:"mobile_drawer"}),s(!0)},e[4]=s,e[5]=r):r=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(we,{className:"size-4"}),e[6]=c):c=e[6];let u;return e[7]!==i||e[8]!==l||e[9]!==r?(u=t.jsx(At,{"aria-label":i,className:l,onClick:r,children:c}),e[7]=i,e[8]=l,e[9]=r,e[10]=u):u=e[10],u}function Is(n){const e=P.c(17),{setOpen:s,highlightEmpty:o,emptyCtaClass:a}=n,i=L();let l;e[0]!==o||e[1]!==i?(l=o?void 0:i("sidebar.agentsSection.browseAgents"),e[0]=o,e[1]=i,e[2]=l):l=e[2];let r;e[3]!==a?(r=H(a),e[3]=a,e[4]=r):r=e[4];let c;e[5]!==s?(c=()=>{R("agent_browser_opened",{surface:"mobile_drawer"}),s(!0)},e[5]=s,e[6]=c):c=e[6];let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(we,{}),e[7]=u):u=e[7];let m;e[8]!==i?(m=i("sidebar.agentsSection.newAgent"),e[8]=i,e[9]=m):m=e[9];let f;e[10]!==m?(f=t.jsx("span",{children:m}),e[10]=m,e[11]=f):f=e[11];let d;return e[12]!==l||e[13]!==r||e[14]!==c||e[15]!==f?(d=t.jsx(xt,{children:t.jsxs(jt,{tooltip:l,className:r,onClick:c,children:[u,f]})}),e[12]=l,e[13]=r,e[14]=c,e[15]=f,e[16]=d):d=e[16],d}function As(){const n=P.c(4),e=L();let s;n[0]!==e?(s=e("sidebar.agentsSection.browseAgents"),n[0]=e,n[1]=s):s=n[1];let o;return n[2]!==s?(o=t.jsx(Ot,{className:"sr-only",children:s}),n[2]=s,n[3]=o):o=n[3],o}function Ts(n){const e=P.c(8),{emptyCtaClass:s}=n,o=L();let a;e[0]!==o?(a=o("sidebar.agentsSection.browseAgents"),e[0]=o,e[1]=a):a=e[1];let i;e[2]!==s?(i=H(s),e[2]=s,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(we,{className:"size-4"}),e[4]=l):l=e[4];let r;return e[5]!==a||e[6]!==i?(r=t.jsx(At,{"aria-label":a,className:i,children:l}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function Ps(n){const e=P.c(19),{wrapEmptyHint:s,highlightEmpty:o,emptyCtaClass:a}=n,i=L();let l;e[0]!==o||e[1]!==i?(l=o?void 0:i("sidebar.agentsSection.browseAgents"),e[0]=o,e[1]=i,e[2]=l):l=e[2];let r;e[3]!==a?(r=H(a),e[3]=a,e[4]=r):r=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(we,{}),e[5]=c):c=e[5];let u;e[6]!==i?(u=i("sidebar.agentsSection.newAgent"),e[6]=i,e[7]=u):u=e[7];let m;e[8]!==u?(m=t.jsx("span",{children:u}),e[8]=u,e[9]=m):m=e[9];let f;e[10]!==l||e[11]!==r||e[12]!==m?(f=t.jsx(Re,{asChild:!0,children:t.jsxs(jt,{tooltip:l,className:r,children:[c,m]})}),e[10]=l,e[11]=r,e[12]=m,e[13]=f):f=e[13];let d;e[14]!==f||e[15]!==s?(d=s(f),e[14]=f,e[15]=s,e[16]=d):d=e[16];let g;return e[17]!==d?(g=t.jsx(xt,{children:d}),e[17]=d,e[18]=g):g=e[18],g}function Os(n){const e=P.c(9),{children:s}=n,o=L();let a;e[0]!==s?(a=t.jsx(Ce,{asChild:!0,children:s}),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==o?(i=o("sidebar.agentsSection.selectAnExistingAgent"),e[2]=o,e[3]=i):i=e[3];let l;e[4]!==i?(l=t.jsx(ye,{side:"right",sideOffset:8,children:i}),e[4]=i,e[5]=l):l=e[5];let r;return e[6]!==a||e[7]!==l?(r=t.jsxs(Ne,{defaultOpen:!0,delayDuration:0,children:[a,l]}),e[6]=a,e[7]=l,e[8]=r):r=e[8],r}function zs(n){const e=ot(),{create:s}=An(),{locator:o}=oe(),a=Nt(),i=bn();return async l=>{const r=crypto.randomUUID(),c=l===i?ys(n,o,a??""):null;try{await s({id:r,virtual_mcp_id:l,...c?{branch:c}:{}})}catch{}e({to:"/$org/$taskId",params:{org:n,taskId:r},search:{virtualmcpid:l}})}}function st(n){const e=P.c(20),{agent:s,selected:o,onClick:a}=n,i=o?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50";let l;e[0]!==i?(l=H("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",i),e[0]=i,e[1]=l):l=e[1];let r;e[2]!==s.icon||e[3]!==s.title?(r=t.jsx(yt,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[2]=s.icon,e[3]=s.title,e[4]=r):r=e[4];let c;e[5]!==s.title?(c=t.jsx("p",{className:"text-sm font-medium truncate",children:s.title}),e[5]=s.title,e[6]=c):c=e[6];let u;e[7]!==s.description?(u=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:s.description}),e[7]=s.description,e[8]=u):u=e[8];let m;e[9]!==c||e[10]!==u?(m=t.jsxs("div",{className:"flex-1 min-w-0",children:[c,u]}),e[9]=c,e[10]=u,e[11]=m):m=e[11];let f;e[12]!==o?(f=o&&t.jsx(Ve,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[12]=o,e[13]=f):f=e[13];let d;return e[14]!==a||e[15]!==l||e[16]!==r||e[17]!==m||e[18]!==f?(d=t.jsxs("button",{type:"button",onClick:a,className:l,children:[r,m,f]}),e[14]=a,e[15]=l,e[16]=r,e[17]=m,e[18]=f,e[19]=d):d=e[19],d}function Ut(n){const e=P.c(5),{children:s,action:o}=n;let a;e[0]!==s?(a=t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:s}),e[0]=s,e[1]=a):a=e[1];let i;return e[2]!==o||e[3]!==a?(i=t.jsxs("div",{className:"flex items-center justify-between px-3 pb-1 pt-2",children:[a,o]}),e[2]=o,e[3]=a,e[4]=i):i=e[4],i}function Ms(n){const e=P.c(23),{onClose:s,onSelectAgent:o,selectedAgentId:a,onImportFromGithub:i}=n,[l,r]=B.useState(""),c=it(),u=c??[],{org:m}=oe(),{data:f}=ce.useSession(),d=f?.user?.id??"anon",g=Pn(c),v=On(),h=zs(m.slug),p=$n(c),x=l.toLowerCase(),b=u.filter(Es).filter(F=>!p.has(F.id)).filter(Ls).filter(F=>!l||F.title.toLowerCase().includes(x)),C=b.filter(Fs),_=b.filter($s),k=Ct(m.id),D=!l||k.title.toLowerCase().includes(x),$=!!(o&&D);let j;e[0]!==s||e[1]!==o?(j=()=>{o?.(null),s(),r("")},e[0]=s,e[1]=o,e[2]=j):j=e[2];const S=j,A=F=>{if(o){o(F.id),s(),r("");return}zn({orgId:m.id,userId:d},F.id,g),v(),s(),r(""),h(F.id)},N="flex flex-col max-h-[min(640px,80dvh)]";let y;e[3]!==l?(y=t.jsx(Ns,{value:l,onChange:r}),e[3]=l,e[4]=y):y=e[4];const I="overflow-y-auto flex-1 min-h-0 p-1.5 flex flex-col gap-0.5",T=o&&D&&k&&t.jsx(st,{agent:k,selected:!a||a===k.id,onClick:S}),O=(C.length>0||!l)&&t.jsx(Ds,{onImportFromGithub:i}),z=C.map(F=>t.jsx(st,{agent:F,selected:o?a===F.id:void 0,onClick:()=>A(F)},F.id)),V=_.length>0&&t.jsx(Ss,{}),X=_.map(F=>t.jsx(st,{agent:F,selected:o?a===F.id:void 0,onClick:()=>A(F)},F.id));let E;e[5]!==$||e[6]!==l||e[7]!==b.length?(E=b.length===0&&!$&&l&&t.jsx(ws,{}),e[5]=$,e[6]=l,e[7]=b.length,e[8]=E):E=e[8];let ne;e[9]!==E||e[10]!==T||e[11]!==O||e[12]!==z||e[13]!==V||e[14]!==X?(ne=t.jsxs("div",{className:I,children:[T,O,z,V,X,E]}),e[9]=E,e[10]=T,e[11]=O,e[12]=z,e[13]=V,e[14]=X,e[15]=ne):ne=e[15];let q;e[16]!==s||e[17]!==m?(q=t.jsx(_s,{org:m,onClose:s}),e[16]=s,e[17]=m,e[18]=q):q=e[18];let de;return e[19]!==ne||e[20]!==q||e[21]!==y?(de=t.jsxs("div",{className:N,children:[y,ne,q]}),e[19]=ne,e[20]=q,e[21]=y,e[22]=de):de=e[22],de}function $s(n){return!Mt(n.metadata)}function Fs(n){return Mt(n.metadata)}function Ls(n){return!mn(n.id)}function Es(n){return!un(n.id)}function Bs(n){const e=P.c(14),{compact:s,trigger:o,onSelectAgent:a,selectedAgentId:i,side:l,align:r}=n===void 0?{}:n,c=s===void 0?!1:s,u=l===void 0?"right":l,m=r===void 0?"start":r,[f,d]=B.useState(!1),[g,v]=B.useState(!1),h=ht(),{setOpenMobile:p}=pt(),x=Tn(),b=x?"border border-border":void 0;let C;e[0]!==x?(C=I=>x?t.jsx(Os,{children:I}):I,e[0]=x,e[1]=C):C=e[1];const _=C;let k;e[2]!==h||e[3]!==p?(k=()=>{d(!1),h&&p(!1)},e[2]=h,e[3]=p,e[4]=k):k=e[4];const D=k;let $;e[5]!==D||e[6]!==v?($=()=>{D(),v(!0)},e[5]=D,e[6]=v,e[7]=$):$=e[7];const j=$,S=f&&t.jsx(B.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center py-8",children:t.jsx(Zt,{className:"h-4 w-24"})}),children:t.jsx(Ms,{onClose:D,onSelectAgent:a,selectedAgentId:i,onImportFromGithub:j})}),A=h?t.jsxs(t.Fragment,{children:[o?B.cloneElement(o,{onClick:I=>{o.props.onClick?.(I),d(!0)}}):c?_(t.jsx(ks,{setOpen:d,emptyCtaClass:b})):t.jsx(Is,{setOpen:d,highlightEmpty:x,emptyCtaClass:b}),t.jsx(Tt,{open:f,onOpenChange:d,direction:"bottom",children:t.jsxs(Pt,{className:"max-h-[85dvh] p-0",children:[t.jsx(As,{}),S]})})]}):t.jsxs(Dt,{open:f,onOpenChange:I=>{I&&!f&&R("agent_browser_opened",{surface:"desktop_popover"}),d(I)},children:[o?t.jsx(Re,{asChild:!0,children:o}):c?_(t.jsx(Re,{asChild:!0,children:t.jsx(Ts,{emptyCtaClass:b})})):t.jsx(Ps,{wrapEmptyHint:_,highlightEmpty:x,emptyCtaClass:b}),t.jsx(St,{className:"w-[380px] p-0 overflow-hidden",side:u,align:m,children:S})]});let N;e[8]!==g||e[9]!==v?(N=t.jsx(kn,{open:g,onOpenChange:v,mode:"agent"}),e[8]=g,e[9]=v,e[10]=N):N=e[10];let y;return e[11]!==A||e[12]!==N?(y=t.jsxs(t.Fragment,{children:[A,N]}),e[11]=A,e[12]=N,e[13]=y):y=e[13],y}function Rs(){const n=P.c(2),e=it()??[];let s;return n[0]!==e?(s=o=>{if(!o)return;const a=e.find(i=>i.id===o);return a?Fn(a.metadata):void 0},n[0]=e,n[1]=s):s=n[1],s}const Vs="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 Ks(n){const e=P.c(29),{agentId:s,fallback:o,onOpenHome:a,onPick:i}=n,l=L(),r=Cn(s)??o??null;let c,u,m,f,d;e[0]!==r?.title||e[1]!==a||e[2]!==l?(d=r?.title??l("header.shellBreadcrumb.superAgentDefaultName"),f="flex min-w-0 items-center gap-0",c="button",u=a,m=l("header.shellBreadcrumb.openAgentHome",{name:d}),e[0]=r?.title,e[1]=a,e[2]=l,e[3]=c,e[4]=u,e[5]=m,e[6]=f,e[7]=d):(c=e[3],u=e[4],m=e[5],f=e[6],d=e[7]);const g=r?.icon??null;let v;e[8]!==g||e[9]!==d?(v=t.jsx(yt,{icon:g,name:d,size:"xs"}),e[8]=g,e[9]=d,e[10]=v):v=e[10];let h;e[11]!==c||e[12]!==u||e[13]!==m||e[14]!==v?(h=t.jsx("button",{type:c,onClick:u,"aria-label":m,className:"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:v}),e[11]=c,e[12]=u,e[13]=m,e[14]=v,e[15]=h):h=e[15];let p;e[16]!==d?(p=t.jsx("span",{className:"truncate font-medium max-w-[8rem]",children:d}),e[16]=d,e[17]=p):p=e[17];let x;e[18]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(_t,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[18]=x):x=e[18];let b;e[19]!==p?(b=t.jsxs("button",{type:"button",className:Vs,children:[p,x]}),e[19]=p,e[20]=b):b=e[20];let C;e[21]!==s||e[22]!==i||e[23]!==b?(C=t.jsx(Bs,{side:"bottom",align:"start",selectedAgentId:s,onSelectAgent:i,trigger:b}),e[21]=s,e[22]=i,e[23]=b,e[24]=C):C=e[24];let _;return e[25]!==C||e[26]!==f||e[27]!==h?(_=t.jsxs("div",{className:f,children:[h,C]}),e[25]=C,e[26]=f,e[27]=h,e[28]=_):_=e[28],_}function Jo(n){const e=P.c(30);let s;e[0]!==n?(s=n===void 0?{}:n,e[0]=n,e[1]=s):s=e[1];const{showName:o}=s,a=L(),{org:i}=oe(),{state:l,isMobile:r}=pt(),c=Ht().invitations.length>0,u=l==="collapsed"||r;let m;e[2]!==c||e[3]!==i.name||e[4]!==a?(m=c?a("header.shellBreadcrumb.switchOrganizationPendingInvitation",{name:i.name}):a("header.shellBreadcrumb.switchOrganization",{name:i.name}),e[2]=c,e[3]=i.name,e[4]=a,e[5]=m):m=e[5];let f;e[6]!==i?(f=t.jsx(at,{org:i,size:"sm"}),e[6]=i,e[7]=f):f=e[7];let d;e[8]!==c||e[9]!==u?(d=c&&t.jsx("span",{className:H("absolute -right-1 size-2.5 rounded-full bg-destructive ring-2 ring-background",u?"-top-1":"top-1/2 -translate-y-1/2")}),e[8]=c,e[9]=u,e[10]=d):d=e[10];let g;e[11]!==f||e[12]!==d?(g=t.jsxs("span",{className:"relative inline-flex",children:[f,d]}),e[11]=f,e[12]=d,e[13]=g):g=e[13];let v;e[14]!==i.name||e[15]!==o?(v=o&&t.jsx("span",{className:"truncate text-sm font-medium text-foreground max-w-[10rem]",children:i.name}),e[14]=i.name,e[15]=o,e[16]=v):v=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(_t,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[17]=h):h=e[17];let p;e[18]!==m||e[19]!==g||e[20]!==v?(p=t.jsx(Ce,{asChild:!0,children:t.jsxs("button",{type:"button","aria-label":m,className:"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:[g,v,h]})}),e[18]=m,e[19]=g,e[20]=v,e[21]=p):p=e[21];let x;e[22]!==i.slug||e[23]!==p?(x=t.jsx(js,{orgParam:i.slug,trigger:p}),e[22]=i.slug,e[23]=p,e[24]=x):x=e[24];let b;e[25]!==i.name?(b=t.jsx(ye,{side:"bottom",children:i.name}),e[25]=i.name,e[26]=b):b=e[26];let C;return e[27]!==b||e[28]!==x?(C=t.jsxs(Ne,{children:[x,b]}),e[27]=b,e[28]=x,e[29]=C):C=e[29],C}function ei(n){const e=P.c(22);let s;e[0]!==n?(s=n===void 0?{}:n,e[0]=n,e[1]=s):s=e[1];const{onNavigate:o}=s,{org:a}=oe(),{threads:i}=zt(),l=it(),{data:r}=ce.useSession(),{setTaskId:c,createNewTask:u}=$t(),m=Rs();let f;e[2]!==a.id?(f=Ct(a.id),e[2]=a.id,e[3]=f):f=e[3];const d=f,g=d.id,v=wt();let h;e[4]!==l||e[5]!==u||e[6]!==g||e[7]!==o||e[8]!==m||e[9]!==r?.user?.id||e[10]!==c||e[11]!==i?(h=k=>{const D=k??g,$=(l??[]).find(S=>S.id===D),j=Mn(i,D,r?.user?.id,m(D),!!($&&yn($)));j?c(j.id,D):u(D),o?.()},e[4]=l,e[5]=u,e[6]=g,e[7]=o,e[8]=m,e[9]=r?.user?.id,e[10]=c,e[11]=i,e[12]=h):h=e[12];const p=h;let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("span",{className:"h-5 w-24 rounded bg-muted animate-pulse"}),e[13]=x):x=e[13];const b=v===g?d:void 0;let C;e[14]!==v||e[15]!==p?(C=()=>p(v),e[14]=v,e[15]=p,e[16]=C):C=e[16];let _;return e[17]!==v||e[18]!==p||e[19]!==b||e[20]!==C?(_=t.jsx(B.Suspense,{fallback:x,children:t.jsx(Ks,{agentId:v,fallback:b,onOpenHome:C,onPick:p})}),e[17]=v,e[18]=p,e[19]=b,e[20]=C,e[21]=_):_=e[21],_}function ti(){const n=P.c(20),e=L(),{threads:s}=zt(),{createNewTask:o}=$t(),a=wt(),i=Nt();let l;n[0]!==i||n[1]!==s?(l=s.find(p=>p.id===i)?.branch??null,n[0]=i,n[1]=s,n[2]=l):l=n[2];const r=l;let c;n[3]!==a||n[4]!==o||n[5]!==r?(c=()=>{o(a,r)},n[3]=a,n[4]=o,n[5]=r,n[6]=c):c=n[6];const u=c;let m;n[7]!==e?(m=e("sidebar.taskGroupsList.newChat"),n[7]=e,n[8]=m):m=n[8];let f;n[9]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(vn,{size:16}),n[9]=f):f=n[9];let d;n[10]!==u||n[11]!==m?(d=t.jsx(Ce,{asChild:!0,children:t.jsx("button",{type:"button",onClick:u,"aria-label":m,className:"flex shrink-0 items-center rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:f})}),n[10]=u,n[11]=m,n[12]=d):d=n[12];let g;n[13]!==e?(g=e("sidebar.taskGroupsList.newChat"),n[13]=e,n[14]=g):g=n[14];let v;n[15]!==g?(v=t.jsx(ye,{side:"bottom",children:g}),n[15]=g,n[16]=v):v=n[16];let h;return n[17]!==d||n[18]!==v?(h=t.jsxs(Ne,{children:[d,v]}),n[17]=d,n[18]=v,n[19]=h):h=n[19],h}function Hs({open:n,onOpenChange:e,onCreated:s}){const o=L(),{org:a}=oe(),{data:i}=ce.useSession(),{stdioEnabled:l}=en(),r=ht(),c=Kt(),u=Ft(),f=Lt(u,"").items,d=tn({resolver:nn(Zn),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),g=d.watch("ui_type"),v=d.watch("connection_url"),h=d.watch("npx_package"),p=Le({uiType:g,connectionUrl:v??"",npxPackage:h??""})??mt({uiType:g,connectionUrl:v??"",registryItems:f}),x=j=>{const S=j.trim();if(!S)return;const A=!!d.formState.dirtyFields.title,N=!!d.formState.dirtyFields.description,y=!!d.formState.dirtyFields.env_vars,I=O=>{if(O&&(!A&&!d.getValues("title").trim()&&O.title&&d.setValue("title",O.title,{shouldDirty:!1}),!N&&!(d.getValues("description")??"").trim()&&O.description&&d.setValue("description",O.description,{shouldDirty:!1}),!y&&O.envVarKeys?.length)){const z=d.getValues("env_vars")??[],V=new Set(z.map(E=>E.key)),X=O.envVarKeys.filter(E=>!V.has(E));X.length>0&&d.setValue("env_vars",[...z,...X.map(E=>({key:E,value:""}))],{shouldDirty:!0})}},T=es(S);if(T&&l){d.setValue("ui_type","NPX",{shouldDirty:!0}),d.setValue("npx_package",T.packageName,{shouldDirty:!0}),d.setValue("connection_url","",{shouldDirty:!0}),d.setValue("connection_token",null,{shouldDirty:!0}),I(Le({uiType:"NPX",npxPackage:T.packageName}));return}if(S.startsWith("http://")||S.startsWith("https://")){const O=g==="HTTP"||g==="SSE"||g==="Websocket"?g:"HTTP";d.setValue("ui_type",O,{shouldDirty:!0}),d.setValue("connection_url",S,{shouldDirty:!0}),I(Le({uiType:O,connectionUrl:S})??mt({uiType:O,connectionUrl:S,registryItems:f}));return}g==="NPX"&&I(Le({uiType:"NPX",npxPackage:S}))},b=j=>{j||d.reset(),e(j)},C=async j=>{let S,A=null,N=null,y=null;j.ui_type==="NPX"?(S="STDIO",A="",y=ts(j.npx_package||"",j.env_vars||[])):j.ui_type==="STDIO"?(S="STDIO",A="",y=ns(j.stdio_command||"",j.stdio_args||"",j.stdio_cwd,j.env_vars||[])):(S=j.ui_type,A=j.connection_url||"",N=j.connection_token||null);const I=En("conn");try{await c.create.mutateAsync({id:I,title:j.title,description:j.description||null,connection_type:S,connection_url:A,connection_token:N,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:i?.user?.id||"system",organization_id:a.id,icon:j.icon??null,app_name:null,app_id:null,connection_headers:y,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null,status:"inactive"}),d.reset(),e(!1),s?.(I)}catch{K.error(o("connections.createConnectionDialog.failedToCreateConnection"))}},_=o("connections.createConnectionDialog.title"),k=o("connections.createConnectionDialog.description"),D=d.formState.isSubmitting?o("connections.createConnectionDialog.saving"):o("connections.createConnectionDialog.createButton"),$=t.jsxs("div",{className:"grid gap-4",children:[t.jsx(W,{control:d.control,name:"ui_type",render:({field:j})=>t.jsxs(Y,{children:[t.jsx(Z,{children:o("connections.createConnectionDialog.typeLabel")}),t.jsxs(qn,{value:j.value,onValueChange:j.onChange,children:[t.jsx(J,{children:t.jsx(Gn,{children:t.jsx(Xn,{})})}),t.jsxs(Qn,{children:[t.jsx(De,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Je,{className:"w-4 h-4"}),o("connections.createConnectionDialog.httpType")]})}),t.jsx(De,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Je,{className:"w-4 h-4"}),o("connections.createConnectionDialog.sseType")]})}),t.jsx(De,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Je,{className:"w-4 h-4"}),o("connections.createConnectionDialog.websocketType")]})}),l&&t.jsxs(t.Fragment,{children:[t.jsx(De,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Be,{className:"w-4 h-4"}),o("connections.createConnectionDialog.npxPackageType")]})}),t.jsx(De,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Yn,{className:"w-4 h-4"}),o("connections.createConnectionDialog.customCommandType")]})})]})]})]}),t.jsx(ee,{})]})}),g==="NPX"&&t.jsx(W,{control:d.control,name:"npx_package",render:({field:j})=>t.jsxs(Y,{children:[t.jsx(Z,{children:o("connections.createConnectionDialog.npmPackageLabel")}),t.jsx(J,{children:t.jsx(re,{placeholder:o("connections.createConnectionDialog.npmPackagePlaceholder"),...j,value:j.value??"",onPaste:S=>{const A=S.clipboardData.getData("text");A&&(S.preventDefault(),d.setValue("npx_package",A.trim(),{shouldDirty:!0}),x(A))},onBlur:S=>{x(S.target.value),j.onBlur()}})}),t.jsx(ee,{})]})}),g==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[t.jsx(W,{control:d.control,name:"stdio_command",render:({field:j})=>t.jsxs(Y,{children:[t.jsx(Z,{children:o("connections.createConnectionDialog.commandLabel")}),t.jsx(J,{children:t.jsx(re,{placeholder:o("connections.createConnectionDialog.commandPlaceholder"),...j,value:j.value??""})}),t.jsx(ee,{})]})}),t.jsx(W,{control:d.control,name:"stdio_args",render:({field:j})=>t.jsxs(Y,{children:[t.jsx(Z,{children:o("connections.createConnectionDialog.argumentsLabel")}),t.jsx(J,{children:t.jsx(re,{placeholder:o("connections.createConnectionDialog.argumentsPlaceholder"),...j,value:j.value??""})}),t.jsx(ee,{})]})})]}),t.jsx(W,{control:d.control,name:"stdio_cwd",render:({field:j})=>t.jsxs(Y,{children:[t.jsx(Z,{children:o("connections.createConnectionDialog.workingDirectoryLabel")}),t.jsx(J,{children:t.jsx(re,{placeholder:o("connections.createConnectionDialog.workingDirectoryPlaceholder"),...j,value:j.value??""})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:o("connections.createConnectionDialog.workingDirectoryDescription")}),t.jsx(ee,{})]})})]}),(g==="NPX"||g==="STDIO")&&t.jsx(W,{control:d.control,name:"env_vars",render:({field:j})=>t.jsxs(Y,{children:[t.jsx(Z,{children:o("connections.createConnectionDialog.environmentVariablesLabel")}),t.jsx(J,{children:t.jsx(Jn,{value:j.value??[],onChange:j.onChange})}),t.jsx(ee,{})]})}),g!=="NPX"&&g!=="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsx(W,{control:d.control,name:"connection_url",render:({field:j})=>t.jsxs(Y,{children:[t.jsx(Z,{children:o("connections.createConnectionDialog.urlLabel")}),t.jsx(J,{children:t.jsx(re,{placeholder:o("connections.createConnectionDialog.urlPlaceholder"),...j,value:j.value??"",onPaste:S=>{const A=S.clipboardData.getData("text");A&&(S.preventDefault(),d.setValue("connection_url",A.trim(),{shouldDirty:!0}),x(A))},onBlur:S=>{x(S.target.value),j.onBlur()}})}),t.jsx(ee,{})]})}),t.jsx(W,{control:d.control,name:"connection_token",render:({field:j})=>t.jsxs(Y,{children:[t.jsx(Z,{children:p?.token?.label??o("connections.createConnectionDialog.tokenLabelDefault")}),t.jsx(J,{children:t.jsx(re,{type:"password",placeholder:p?.token?.placeholder??o("connections.createConnectionDialog.tokenPlaceholderDefault"),className:"ph-no-capture",...j,value:j.value??""})}),p?.token?.helperText&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:[p.token.helperText,p.id==="github"&&t.jsxs(t.Fragment,{children:[" ","·"," ",t.jsx("a",{className:"text-foreground underline underline-offset-4 hover:text-foreground/80",href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noreferrer",children:o("connections.createConnectionDialog.openGitHubPatSettings")})]})]}),t.jsx(ee,{})]})})]}),t.jsx(W,{control:d.control,name:"title",render:({field:j})=>t.jsxs(Y,{children:[t.jsx(Z,{children:o("connections.createConnectionDialog.nameLabel")}),t.jsx(J,{children:t.jsx(re,{placeholder:o("connections.createConnectionDialog.namePlaceholder"),...j})}),t.jsx(ee,{})]})}),t.jsx(W,{control:d.control,name:"description",render:({field:j})=>t.jsxs(Y,{children:[t.jsx(Z,{children:o("connections.createConnectionDialog.descriptionLabel")}),t.jsx(J,{children:t.jsx(Wn,{placeholder:o("connections.createConnectionDialog.descriptionPlaceholder"),rows:3,...j,value:j.value??""})}),t.jsx(ee,{})]})})]});return r?t.jsx(Tt,{open:n,onOpenChange:b,children:t.jsxs(Pt,{className:"max-h-[90vh]",children:[t.jsx(Nn,{className:"pb-2",children:t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[t.jsxs("div",{className:"flex-1 text-left",children:[t.jsx(Ot,{children:_}),t.jsx(wn,{className:"mt-1",children:k})]}),t.jsx(_n,{asChild:!0,children:t.jsx(te,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1",children:t.jsx(It,{size:16})})})]})}),t.jsx(ut,{...d,children:t.jsxs("form",{onSubmit:d.handleSubmit(C),children:[t.jsx("div",{className:"overflow-y-auto px-4 pb-4",children:$}),t.jsx(Sn,{children:t.jsx(te,{type:"submit",disabled:d.formState.isSubmitting,className:"w-full",children:D})})]})})]})}):t.jsx(Et,{open:n,onOpenChange:b,children:t.jsxs(Bt,{className:"sm:max-w-[525px]",children:[t.jsxs(Rt,{children:[t.jsx(Vt,{children:_}),t.jsx(Hn,{children:k})]}),t.jsx(ut,{...d,children:t.jsxs("form",{onSubmit:d.handleSubmit(C),children:[t.jsx("div",{className:"py-4",children:$}),t.jsxs(Un,{children:[t.jsx(te,{type:"button",variant:"outline",onClick:()=>b(!1),children:o("connections.createConnectionDialog.cancelButton")}),t.jsx(te,{type:"submit",disabled:d.formState.isSubmitting,className:"min-w-40",children:D})]})]})})]})})}function Us(n){const e=P.c(72),{mode:s,agentId:o,addedConnectionIds:a,onAdd:i,onCloneAndAdd:l,onConnectAndAdd:r,connectingItemId:c,search:u,onCreateConnection:m,onBrowseNavigate:f,defaultTab:d}=n,g=s===void 0?"add":s,v=d===void 0?"connected":d,h=L(),{org:p}=oe(),x=B.useDeferredValue(u),b=u!==x;let C;e[0]!==x?(C=x.trim().toLowerCase(),e[0]=x,e[1]=C):C=e[1];const _=C;let k;e[2]!==v?(k=w=>w??v,e[2]=v,e[3]=k):k=e[3];const[D,$]=sn(on.connectionsTab(p.slug)+(v==="all"?":home-modal":":agent-modal"),k);let j;e[4]!==D||e[5]!==$?(j=w=>{w!==D&&R("connections_dialog_tab_changed",{to_tab:w}),$(w)},e[4]=D,e[5]=$,e[6]=j):j=e[6];const S=j;let A;e[7]!==p.id||e[8]!==p.slug?(A={connectionId:bt,orgId:p.id,orgSlug:p.slug},e[7]=p.id,e[8]=p.slug,e[9]=A):A=e[9];const N=rn(A),y=x?.trim().split(/\s+/).filter(Boolean)??[],I=y.length>0?{operator:"or",conditions:y.flatMap(Js)}:void 0,T={...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:0},O=JSON.stringify(T),{data:z,fetchNextPage:V,hasNextPage:X,isFetchingNextPage:E}=is({queryKey:Ae.collectionListInfinite(N,p.id,"","CONNECTIONS",O),queryFn:async w=>{const{pageParam:M}=w,se=M===void 0?0:M;return(await N.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:se}})).structuredContent},initialPageParam:0,getNextPageParam:Ys,staleTime:3e4}),ne=z?.pages.flatMap(Ws)??[],q=Kn(ne),de=new Set(ne.filter(Qs).map(Xs)),F=Ft(),ie=Lt(F,x),He=ft(ie.loadMore,ie.hasMore,ie.isLoadingMore),Ue=ft(V,X??!1,E),G=D==="all"||!!_,lt=G?ie.items.filter(w=>{const M=Bn(w);if(M&&de.has(M))return!1;if(!_)return!0;const se=Ke(w._meta),ae=[w.title,w.description,w.name,w.server?.title,w.server?.description,w.server?.name,se?.friendly_name,se?.friendlyName].filter(Boolean).join(" ").toLowerCase();return y.some(Q=>ae.includes(Q.toLowerCase()))}):[],_e=lt.filter(Gs),Se=lt.filter(qs);let Te;e[10]!==a?(Te=w=>w.some(M=>a.has(M.id)),e[10]=a,e[11]=Te):Te=e[11];const qe=Te;let Pe;e[12]!==a||e[13]!==o||e[14]!==c||e[15]!==qe||e[16]!==g||e[17]!==i||e[18]!==f||e[19]!==l||e[20]!==h?(Pe=(w,M,se,ae,Q)=>{const Fe=qe(Q),be=Q.find(le=>!a.has(le.id)),U=Q[0];if(g==="browse"){const le=ss(U);return t.jsx(et,{connection:{title:M,icon:se,description:Q.length>1?`${Q.length} instances`:ae??void 0},fallbackIcon:t.jsx(Be,{}),headerActionsAlwaysVisible:!0,headerActions:t.jsxs(Ee,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[t.jsx(Ve,{size:11})," ",h("virtualMcp.connectionDialogContent.connected")]}),onClick:()=>{R("connection_browse_clicked",{app_name:U.app_name??null,connection_id:U.id,instances_count:Q.length}),f?.(le)}},w)}return t.jsx(et,{connection:{title:M,icon:se,description:ae},fallbackIcon:t.jsx(Be,{}),headerActionsAlwaysVisible:!0,headerActions:t.jsxs("div",{className:"flex items-center gap-1.5",children:[Fe&&t.jsxs(Ee,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[t.jsx(Ve,{size:11})," ",h("virtualMcp.connectionDialogContent.added")]}),t.jsx(te,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:c!==null,onClick:le=>{le.stopPropagation(),be?(R("connection_add_clicked",{action:"use_existing",app_name:U.app_name??null,connection_id:be.id}),o&&R("agent_connection_attached",{agent_id:o,connection_id:be.id,app_name:U.app_name??null,mode:"existing"}),i(be.id)):(R("connection_add_clicked",{action:"clone",app_name:U.app_name??null,base_connection_id:U.id}),l(U))},children:h("virtualMcp.connectionDialogContent.add")})]})},w)},e[12]=a,e[13]=o,e[14]=c,e[15]=qe,e[16]=g,e[17]=i,e[18]=f,e[19]=l,e[20]=h,e[21]=Pe):Pe=e[21];const Oe=Pe;let ze;e[22]!==c||e[23]!==g||e[24]!==r||e[25]!==h?(ze=w=>{const M=Ke(w._meta),se=M?.friendlyName||M?.friendly_name||w.server?.title||w.title||w.server?.name||w.name||w.id||"",ae=w.server?.description||w.description||null,Q=w.server?.icons?.[0]?.src||Rn(w.server?.repository)||null,Fe=M?.official===!0,be=M?.verified===!0,U=M?.owner==="deco";return t.jsx(et,{connection:{title:se,description:ae,icon:Q},fallbackIcon:t.jsx(Be,{}),headerActionsAlwaysVisible:!0,headerActions:t.jsxs("div",{className:"flex items-center gap-1.5",children:[U&&t.jsxs(Ne,{children:[t.jsx(Ce,{asChild:!0,children:t.jsx("span",{className:"inline-flex items-center justify-center size-5 rounded-md bg-muted shrink-0",children:t.jsx("img",{src:"/logos/deco logo.svg",alt:h("virtualMcp.connectionDialogContent.madeByDeco"),className:"size-3"})})}),t.jsx(ye,{children:h("virtualMcp.connectionDialogContent.builtByDeco")})]}),!U&&Fe&&t.jsxs(Ne,{children:[t.jsx(Ce,{asChild:!0,children:t.jsx(Ee,{variant:"outline",size:"icon",children:t.jsx(tt,{})})}),t.jsx(ye,{children:h("virtualMcp.connectionDialogContent.builtByOfficial")})]}),!U&&!Fe&&be&&t.jsxs(Ne,{children:[t.jsx(Ce,{asChild:!0,children:t.jsx(Ee,{variant:"outline",size:"icon",children:t.jsx(tt,{})})}),t.jsx(ye,{children:h("virtualMcp.connectionDialogContent.verifiedByDeco")})]}),t.jsx(te,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:c!==null,onClick:le=>{le.stopPropagation(),R("connection_add_clicked",{action:"connect_new",registry_item_id:w.id,app_name:M?.friendlyName||w.server?.name||w.name||null}),r(w)},children:c===w.id?t.jsx(Ie,{size:14,className:"animate-spin"}):h(g==="browse"?"virtualMcp.connectionDialogContent.connect":"virtualMcp.connectionDialogContent.add")})]})},`catalog-${w.id}`)},e[22]=c,e[23]=g,e[24]=r,e[25]=h,e[26]=ze):ze=e[26];const rt=ze;let ue;e[27]!==D||e[28]!==S||e[29]!==m||e[30]!==_||e[31]!==h?(ue=!_&&t.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border shrink-0",children:[t.jsx(os,{tabs:[{id:"all",label:h("virtualMcp.connectionDialogContent.tabAll")},{id:"connected",label:h("virtualMcp.connectionDialogContent.tabConnected")}],activeTab:D,onTabChange:w=>S(w)}),t.jsxs(te,{variant:"outline",size:"sm",className:"h-7 px-2 text-sm",onClick:()=>{R("connections_dialog_custom_clicked"),m()},children:[t.jsx(we,{size:12}),h("virtualMcp.connectionDialogContent.customConnection")]})]}),e[27]=D,e[28]=S,e[29]=m,e[30]=_,e[31]=h,e[32]=ue):ue=e[32];const Ge=b&&"opacity-50 pointer-events-none";let me;e[33]!==Ge?(me=H("flex-1 overflow-auto p-5 transition-opacity duration-150",Ge),e[33]=Ge,e[34]=me):me=e[34];const qt="grid grid-cols-[repeat(auto-fill,minmax(260px,1fr))] gap-4";let Me;e[35]!==Oe?(Me=w=>{if(w.type==="group")return Oe(w.key,w.title,w.icon,null,w.connections);const M=w.connection;return Oe(M.id,M.title,M.icon,M.description??null,[M])},e[35]=Oe,e[36]=Me):Me=e[36];const Xe=q.map(Me);let fe;e[37]!==Ue?(fe=t.jsx("div",{ref:Ue,className:"col-span-full h-1"}),e[37]=Ue,e[38]=fe):fe=e[38];let ge;e[39]!==E?(ge=E&&t.jsx("div",{className:"col-span-full flex justify-center py-6",children:t.jsx(Ie,{size:24,className:"animate-spin text-muted-foreground"})}),e[39]=E,e[40]=ge):ge=e[40];const Qe=G&&_e.length>0&&t.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[t.jsx(tt,{size:13,className:"text-muted-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:h("virtualMcp.connectionDialogContent.sectionVerified")}),t.jsx("div",{className:"flex-1 h-px bg-border"})]}),We=G&&_e.map(rt),Ye=G&&Se.length>0&&t.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[t.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:h("virtualMcp.connectionDialogContent.sectionAllConnections")}),t.jsx("div",{className:"flex-1 h-px bg-border"})]}),Ze=G&&Se.map(rt);let he;e[41]!==He||e[42]!==F||e[43]!==G?(he=G&&F.length>0&&t.jsx("div",{ref:He,className:"col-span-full h-1"}),e[41]=He,e[42]=F,e[43]=G,e[44]=he):he=e[44];let pe;e[45]!==ie.isLoadingMore||e[46]!==G?(pe=G&&ie.isLoadingMore&&t.jsx("div",{className:"col-span-full flex justify-center py-6",children:t.jsx(Ie,{size:24,className:"animate-spin text-muted-foreground"})}),e[45]=ie.isLoadingMore,e[46]=G,e[47]=pe):pe=e[47];let xe;e[48]!==Xe||e[49]!==fe||e[50]!==ge||e[51]!==Qe||e[52]!==We||e[53]!==Ye||e[54]!==Ze||e[55]!==he||e[56]!==pe?(xe=t.jsxs("div",{className:qt,children:[Xe,fe,ge,Qe,We,Ye,Ze,he,pe]}),e[48]=Xe,e[49]=fe,e[50]=ge,e[51]=Qe,e[52]=We,e[53]=Ye,e[54]=Ze,e[55]=he,e[56]=pe,e[57]=xe):xe=e[57];let je;e[58]!==D||e[59]!==q.length||e[60]!==Se||e[61]!==u||e[62]!==h||e[63]!==_e?(je=q.length===0&&_e.length===0&&Se.length===0&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:u?h("virtualMcp.connectionDialogContent.emptyStateSearchNoMatch",{search:u}):h(D==="connected"?"virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable")}),e[58]=D,e[59]=q.length,e[60]=Se,e[61]=u,e[62]=h,e[63]=_e,e[64]=je):je=e[64];let ve;e[65]!==me||e[66]!==xe||e[67]!==je?(ve=t.jsxs("div",{className:me,children:[xe,je]}),e[65]=me,e[66]=xe,e[67]=je,e[68]=ve):ve=e[68];let $e;return e[69]!==ue||e[70]!==ve?($e=t.jsxs(t.Fragment,{children:[ue,ve]}),e[69]=ue,e[70]=ve,e[71]=$e):$e=e[71],$e}function qs(n){return!n.verified&&!Ke(n._meta)?.verified&&!n.meta?.verified}function Gs(n){return n.verified||Ke(n._meta)?.verified||n.meta?.verified}function Xs(n){return n.app_name}function Qs(n){return n.app_name}function Ws(n){return n?.items??[]}function Ys(n,e){if(n?.hasMore)return e.reduce(Zs,0)}function Zs(n,e){return n+(e?.items?.length??0)}function Js(n){return[{field:["title"],operator:"contains",value:n},{field:["description"],operator:"contains",value:n}]}function ni({open:n,onOpenChange:e,defaultTab:s,initialSearch:o="",...a}){const i=L(),l=a.mode??"add",r="agentId"in a?a.agentId:void 0,c="addedConnectionIds"in a?a.addedConnectionIds??new Set:new Set,u="onAdd"in a&&a.onAdd?a.onAdd:N=>{},m=(N,y,I)=>{r&&R("agent_connection_attached",{agent_id:r,connection_id:N,app_name:y,mode:I})},[f,d]=B.useState(null),[g,v]=B.useState(o),[h,p]=B.useState(!1),{org:x}=oe(),{data:b}=ce.useSession(),C=Kt(),_=an(),k=ot(),D=N=>{e(!1),k({to:"/$org/settings/connections/$appSlug",params:{org:x.slug,appSlug:N}})},$=()=>{_.invalidateQueries({predicate:N=>{const y=N.queryKey;return y[1]===x.id&&y[3]==="collection"&&y[4]==="CONNECTIONS"}})},j=async(N,y)=>{R("connection_oauth_succeeded",{connection_id:N,flow:y});const I=new URL(`/api/${x.slug}/mcp/${N}`,window.location.origin);await _.invalidateQueries({queryKey:Ae.isMCPAuthenticated(I.href,null)}),$()},S=async N=>{d(N.app_name??N.id);try{const I=`${N.title.replace(/\s*\(\d+\)\s*$/,"")} (${Date.now().toString(36).slice(-4)})`,O=(await C.create.mutateAsync({title:I,description:N.description??null,connection_type:N.connection_type,connection_url:N.connection_url??null,connection_token:null,icon:N.icon??null,app_name:N.app_name??null,app_id:N.app_id??null,connection_headers:N.connection_headers??null})).id,z=await nt({connectionId:O,orgId:x.id,orgSlug:x.slug,persistFallback:V=>C.update.mutateAsync({id:O,data:{connection_token:V}}).then(()=>{})});if(z.ran&&!z.ok){R("connection_oauth_failed",{connection_id:O,flow:"clone",error:z.error??"no_token"}),K.error(i("virtualMcp.addConnectionDialog.authenticationFailedError",{error:z.error??"no token received"})),await C.delete.mutateAsync(O);return}z.ran&&await j(O,"clone"),m(O,N.app_name??null,"clone"),u(O)}catch(y){console.error("Failed to add connection:",y),K.error(i("virtualMcp.addConnectionDialog.failedToAddConnection"))}finally{d(null)}},A=async N=>{if(!(!x||!b?.user?.id)){d(N.id);try{const y=Vn(N,x.id,b.user.id,{remoteIndex:0}),I=y.connection_type==="STDIO",T=!!y.connection_url,O=I&&y.connection_headers&&typeof y.connection_headers=="object"&&"command"in y.connection_headers;if(!T&&!O){K.error(i("virtualMcp.addConnectionDialog.mcpServerConnectionError")),d(null);return}const{id:z}=await C.create.mutateAsync(y),V=await nt({connectionId:z,orgId:x.id,orgSlug:x.slug,persistFallback:X=>C.update.mutateAsync({id:z,data:{connection_token:X}}).then(()=>{})});if(V.ran&&!V.ok){R("connection_oauth_failed",{connection_id:z,flow:"connect_new",error:V.error??"no_token"}),K.warning(i("virtualMcp.addConnectionDialog.signInFailedTitle"),{description:i("virtualMcp.addConnectionDialog.signInFailedDescription",{error:V.error??"no token received"})}),m(z,y.app_name??null,"new"),u(z);return}V.ran?(await j(z,"connect_new"),K.success(i("virtualMcp.addConnectionDialog.connectedAuthenticated"))):K.success(i("virtualMcp.addConnectionDialog.connected")),m(z,y.app_name??null,"new"),u(z)}catch(y){console.error("Failed to connect:",y),K.error(i("virtualMcp.addConnectionDialog.failedToConnect"))}finally{d(null)}}};return t.jsxs(Et,{open:n,onOpenChange:e,children:[t.jsxs(Bt,{className:"sm:max-w-5xl h-[85vh] max-h-[85vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[t.jsx(Rt,{className:"px-6 pt-5 pb-0 shrink-0",children:t.jsx(Vt,{className:"text-base font-semibold",children:i(l==="browse"?"virtualMcp.addConnectionDialog.connectionsTitle":"virtualMcp.addConnectionDialog.addConnectionTitle")})}),t.jsx("div",{className:"pt-3 shrink-0",children:t.jsx(Ln,{value:g,onChange:v,placeholder:i("virtualMcp.addConnectionDialog.searchConnectionsPlaceholder")})}),t.jsx(B.Suspense,{fallback:t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Ie,{size:24,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Us,{mode:l,agentId:r,addedConnectionIds:c,onAdd:u,onCloneAndAdd:S,onConnectAndAdd:A,connectingItemId:f,search:g,onCreateConnection:()=>p(!0),onBrowseNavigate:D,defaultTab:s})})]}),t.jsx(Hs,{open:h,onOpenChange:p,onCreated:async N=>{p(!1);const y=await nt({connectionId:N,orgId:x.id,orgSlug:x.slug,persistFallback:I=>C.update.mutateAsync({id:N,data:{connection_token:I}}).then(()=>{})});if(y.ran&&!y.ok){R("connection_oauth_failed",{connection_id:N,flow:"custom_create",error:y.error??"no_token"}),K.warning(i("virtualMcp.addConnectionDialog.signInFailedTitle"),{description:i("virtualMcp.addConnectionDialog.signInFailedDescription",{error:y.error??"no token received"})}),m(N,null,"custom"),u(N),e(!1);return}y.ran&&await j(N,"custom_create"),m(N,null,"custom"),u(N),e(!1)}})]})}const gt=new Map;function si(){const{org:n}=oe(),e=ln(),s=as(),o=s.find(p=>p.providerId==="deco"),{data:a,isLoading:i,refetch:l,isFetching:r}=ke({queryKey:Ae.aiProviderCredits(n.id,"deco"),enabled:!!o,staleTime:6e4,queryFn:async()=>{try{return await e.call("AI_PROVIDER_CREDITS",{providerId:"deco"})}catch{return null}}}),c=a?.balanceCents??null,u=c!=null?c/100:null,m=B.useRef(new Map);if(c!=null){const p=gt.get(n.id);m.current.get(n.id)&&p!=null&&c>p&&R("credits_topped_up_detected",{organization_id:n.id,delta_cents:c-p,previous_balance_cents:p,new_balance_cents:c}),gt.set(n.id,c),m.current.set(n.id,!0)}const f=!!o,d=c!=null&&c>0,g=c!=null&&c===0,v=c!=null&&c===200,h=s.length>0&&s.every(p=>p.providerId==="deco");return{hasDecoKey:f,decoKeyId:o?.id??null,balanceCents:c,balanceDollars:u,hasCredits:d,isZeroBalance:g,isInitialFreeCredit:v,hasOnlyDecoProvider:h,isLoading:i,isFetching:r,refetch:l}}const eo=4,to="TASK";function no(n){return n.replace(/[^a-zA-Z]/g,"").toUpperCase().slice(0,eo)||to}function oi(n,e,s){const o=s?.trim();return o||(e==null?null:`${no(n)}-${String(e).padStart(2,"0")}`)}const so=/^(?:[a-z]{1,8}-)?0*(\d+)$/i;function ii(n){const e=so.exec(n.trim())?.[1];return e===void 0?null:Number(e)}function ai(n){const e=P.c(8),{size:s,className:o}=n,a=s===void 0?16:s;let i;e[0]!==a?(i={width:a,height:a},e[0]=a,e[1]=i):i=e[1];let l;e[2]!==o?(l=H("shrink-0 rounded-full object-cover",o),e[2]=o,e[3]=l):l=e[3];let r;return e[4]!==a||e[5]!==i||e[6]!==l?(r=t.jsx("img",{src:fn,alt:"Super Agent",width:a,height:a,style:i,className:l}),e[4]=a,e[5]=i,e[6]=l,e[7]=r):r=e[7],r}export{ei as A,Yo as C,ti as N,Jo as O,ai as S,Zo as a,ni as b,Wo as c,js as d,at as e,Qo as f,ls as g,Rs as h,ii as p,oi as t,si as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-Ct6NgN5q.js";import{fg as i}from"./index-yKWu9W8j.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-Ct6NgN5q.js";import{fg as u,b$ as n}from"./index-yKWu9W8j.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|