decocms 4.34.3 → 4.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-B6-eZTUR.js → AlertCircle-f6lhwhwQ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CzpmfU3d.js → ArrowUpRight-CSFwuCf5.js} +1 -1
- package/dist/client/assets/{Check-DVkdUWft.js → Check-Aukmu8Un.js} +1 -1
- package/dist/client/assets/{CheckCircle-B_h70CXk.js → CheckCircle-CApzzqD8.js} +1 -1
- package/dist/client/assets/{ChevronDown-sHPJGGX_.js → ChevronDown-B0UKR4Q8.js} +1 -1
- package/dist/client/assets/{ChevronRight-lsn3SwWd.js → ChevronRight-DBqOeCeL.js} +1 -1
- package/dist/client/assets/{ChevronUp-D5GPoW4G.js → ChevronUp-GMJj8UiZ.js} +1 -1
- package/dist/client/assets/{Circle-CnWLbQ7e.js → Circle-YviPro1s.js} +1 -1
- package/dist/client/assets/{Copy01-DQqUJZLN.js → Copy01-DE6jIX1d.js} +1 -1
- package/dist/client/assets/{DotsVertical-nfukLkBe.js → DotsVertical-CRXCtL95.js} +1 -1
- package/dist/client/assets/{Eye-NVid_T2x.js → Eye-DkKR2sGU.js} +1 -1
- package/dist/client/assets/{FilterLines-C-g-0AC4.js → FilterLines-zo9nIazW.js} +1 -1
- package/dist/client/assets/{Globe01-BEnNdnJg.js → Globe01-9ubWRIn8.js} +1 -1
- package/dist/client/assets/{Globe04-BU3ZK8iN.js → Globe04-BQ8V1DCS.js} +1 -1
- package/dist/client/assets/{HardDrive-p0LtEe3M.js → HardDrive-inNtB34T.js} +1 -1
- package/dist/client/assets/{Key01-DvyZlUa3.js → Key01-Ce61Bgp4.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CZff3RKJ.js → LayoutLeft-C4Pounbz.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CAcDRzLQ.js → LinkExternal01-C2NXvx3_.js} +1 -1
- package/dist/client/assets/{List-7N0Lpsu9.js → List-CoWwn-yg.js} +1 -1
- package/dist/client/assets/{Loading02-ChtSb8eO.js → Loading02-DuE9feUL.js} +1 -1
- package/dist/client/assets/{Monitor01-L8_sCfVc.js → Monitor01-DzUUK9ht.js} +1 -1
- package/dist/client/assets/{Palette-Cmey6VAa.js → Palette-Do-v2l7i.js} +1 -1
- package/dist/client/assets/{Play-Bu_9vwKG.js → Play-Ca8SpLNV.js} +1 -1
- package/dist/client/assets/{Plus-5idR36sg.js → Plus-D321yWS2.js} +1 -1
- package/dist/client/assets/{SearchLg-DPP5sFCQ.js → SearchLg-BcZgwDj6.js} +1 -1
- package/dist/client/assets/{SearchMd-BfTX24Hu.js → SearchMd-DJS38wH4.js} +1 -1
- package/dist/client/assets/{Settings02-CQu3SnQJ.js → Settings02-CkTsdbF0.js} +1 -1
- package/dist/client/assets/{Shield01-BvX9ixjn.js → Shield01-Bn8V09Ru.js} +1 -1
- package/dist/client/assets/{Star01-BnD2dU2r.js → Star01-DuQha8zt.js} +1 -1
- package/dist/client/assets/{Stars01-DDJPZfVf.js → Stars01-B6X8tGbZ.js} +1 -1
- package/dist/client/assets/{Stars02-BvMFoF7B.js → Stars02-DeVTmo8z.js} +1 -1
- package/dist/client/assets/{Sun-KNxCahoc.js → Sun-huCAsUzO.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BoSKzb4-.js → SwitchHorizontal01-1_z_hHyc.js} +1 -1
- package/dist/client/assets/{Tool01-CxxzyTgu.js → Tool01-D1RRR1kw.js} +1 -1
- package/dist/client/assets/{Trash01-BIMqCoAe.js → Trash01-BhSSOFCl.js} +1 -1
- package/dist/client/assets/{Upload01-koOiZigp.js → Upload01-pw6m16iV.js} +1 -1
- package/dist/client/assets/{User01-CpMygYKK.js → User01-D3gcuea5.js} +1 -1
- package/dist/client/assets/{Users01-Cpgt7AAw.js → Users01-hYhuhjvL.js} +1 -1
- package/dist/client/assets/{Users03-D4_vSnDO.js → Users03-BW7WVd7l.js} +1 -1
- package/dist/client/assets/{X-CKo1zMxh.js → X-B4-7qG-5.js} +1 -1
- package/dist/client/assets/{XCircle-B-Q051bA.js → XCircle-DNMYfZsu.js} +1 -1
- package/dist/client/assets/{XClose-D-GHscRg.js → XClose-LQHYvxls.js} +1 -1
- package/dist/client/assets/{Zap-BoJ6IPGQ.js → Zap-D3B4NAio.js} +1 -1
- package/dist/client/assets/{ZapSquare-hsOEtcoH.js → ZapSquare-CDjZJq8r.js} +1 -1
- package/dist/client/assets/{ZoomOut-CJycF6CW.js → ZoomOut-CdYifXao.js} +1 -1
- package/dist/client/assets/{access-gate-Bf-5_XN0.js → access-gate-76tQHldY.js} +1 -1
- package/dist/client/assets/add-section-modal-BqLvsQKS.js +1 -0
- package/dist/client/assets/{agent-capabilities-7Ww0Mzev.js → agent-capabilities-CncqCO43.js} +1 -1
- package/dist/client/assets/{agent-icon-BcaN-4kc.js → agent-icon-Clq9aKDI.js} +1 -1
- package/dist/client/assets/{agents-list-B11Cm-UP.js → agents-list-BoRmbdnw.js} +1 -1
- package/dist/client/assets/{ai-providers-CaQhqgBI.js → ai-providers-CS4_9q5y.js} +1 -1
- package/dist/client/assets/{alert-C0TuOF91.js → alert-CfLzySTP.js} +1 -1
- package/dist/client/assets/{alert-dialog-D4mo4prS.js → alert-dialog-OcKuMvkx.js} +3 -3
- package/dist/client/assets/app-editor-SJHuM8DT.js +1 -0
- package/dist/client/assets/{auth-TnEGxV6g.js → auth-BSVfrU7T.js} +1 -1
- package/dist/client/assets/{auth-catchall-ANwsdj50.js → auth-catchall-Bq1TEeYt.js} +1 -1
- package/dist/client/assets/{auth-entry-M9O8Mhwg.js → auth-entry-Bbfzs0A9.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Bgejkyeq.js → auth-split-layout-VhDB5Kjd.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-XGlotzfu.js → authenticate-and-persist-oauth-pSYfuzK6.js} +1 -1
- package/dist/client/assets/{automation-list-row-B3vcRgR1.js → automation-list-row-Cv1Lpo76.js} +1 -1
- package/dist/client/assets/{automation-runs-8slOPeUz.js → automation-runs-DEj3paI_.js} +2 -2
- package/dist/client/assets/{automations-QXIV5Yst.js → automations-BUrB7Xnv.js} +1 -1
- package/dist/client/assets/{autosend-DzoVWdRW.js → autosend-gxaMEvDD.js} +1 -1
- package/dist/client/assets/{avatar-C7KRhBwX.js → avatar-Dv4V-x92.js} +1 -1
- package/dist/client/assets/{badge-Bww7_SxY.js → badge-C262yjLA.js} +1 -1
- package/dist/client/assets/{block-document-rdQzyaH9.js → block-document-mTd4QaWg.js} +3 -3
- package/dist/client/assets/{brand-context-2Uz155GG.js → brand-context-C6Mk4Tdt.js} +1 -1
- package/dist/client/assets/{breadcrumb-DuPQdZsM.js → breadcrumb-CvS5tec8.js} +1 -1
- package/dist/client/assets/{buckets-DLT3b1Xt.js → buckets-BicnOVQW.js} +1 -1
- package/dist/client/assets/bulk-category-panel-5446BaH7.js +1 -0
- package/dist/client/assets/{calendar-C0w3gJKi.js → calendar-D4t7kX9Q.js} +1 -1
- package/dist/client/assets/{capability-load-error-DLHaUA0D.js → capability-load-error-C6l-t9OR.js} +1 -1
- package/dist/client/assets/{card-CT0bI_1b.js → card-D8Vz3jG6.js} +1 -1
- package/dist/client/assets/category-editor--ln76tIo.js +1 -0
- package/dist/client/assets/{chat-context-k_ubGfLV.js → chat-context-CBVCBl_J.js} +1 -1
- package/dist/client/assets/{checkbox-Dws3TE4J.js → checkbox-CchykYiZ.js} +1 -1
- package/dist/client/assets/{cli-auth-success-D1Prk1op.js → cli-auth-success-BnByk5x5.js} +1 -1
- package/dist/client/assets/collection-detail-ND7d2Eyq.js +1 -0
- package/dist/client/assets/{collection-display-button-BnoQl1k_.js → collection-display-button-DxqFoVRY.js} +1 -1
- package/dist/client/assets/{collection-search-CZrjnOFy.js → collection-search-CltfDlpo.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-NhFfrP1I.js → collection-table-wrapper-DLnmSfmE.js} +1 -1
- package/dist/client/assets/{collection-tabs-SM9omXek.js → collection-tabs-CTi5oTnQ.js} +1 -1
- package/dist/client/assets/{command-aBXeGVCo.js → command-BAIXwHHL.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-Dn-u4i3k.js → commerce-onboarding-CMjqlg8E.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CeYIwLB3.js → connect-desktop-dialog-CAF33mXR.js} +1 -1
- package/dist/client/assets/{connection-card-DpwwtZkm.js → connection-card-CO1XcaEL.js} +1 -1
- package/dist/client/assets/connection-detail-BlmkUd9p.js +1 -0
- package/dist/client/assets/{connection-form-helpers-CH063jU_.js → connection-form-helpers-XaWP2G3x.js} +1 -1
- package/dist/client/assets/connections-DnCGVu9g.js +1 -0
- package/dist/client/assets/{decopilot-sse-pool-BfoUPePd.js → decopilot-sse-pool-CDHTEmuK.js} +1 -1
- package/dist/client/assets/{dialog-BIK8Tom0.js → dialog-WEGZiwPy.js} +1 -1
- package/dist/client/assets/{domain-settings-CTrHf9tM.js → domain-settings-CRCy8oFu.js} +1 -1
- package/dist/client/assets/{drawer-DjMWbbKo.js → drawer-UuuCah9g.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CxpBgxyz.js → dropdown-menu-CksFCj44.js} +1 -1
- package/dist/client/assets/{empty-state-B1Pvl14I.js → empty-state-F_lK3gf_.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DiTS4nsP.js → extract-connection-data-BCgnLdIa.js} +1 -1
- package/dist/client/assets/file-explorer-DA4UKKI7.js +2 -0
- package/dist/client/assets/{file-type-icon-BSbth4Md.js → file-type-icon-DEYVlVHX.js} +1 -1
- package/dist/client/assets/{files-Bru4iSiG.js → files-D4agV2id.js} +1 -1
- package/dist/client/assets/{form-CaX_nL78.js → form-vGQs6GSc.js} +1 -1
- package/dist/client/assets/{general-CZckrZnJ.js → general-SnqMJ_uN.js} +1 -1
- package/dist/client/assets/github-repo-picker-WVoiNLVS.js +1 -0
- package/dist/client/assets/{hooks-Besk-JeM.js → hooks-HnvPO2Fr.js} +1 -1
- package/dist/client/assets/{index-Dbp2tz6n.js → index-7EDQs4g5.js} +11 -11
- package/dist/client/assets/{index-DHDmhkFR.js → index-B19Gd9cQ.js} +2 -2
- package/dist/client/assets/index-BcHmTSFg.css +1 -0
- package/dist/client/assets/{index-C4Rok0Ak.js → index-BvY5YnRL.js} +1 -1
- package/dist/client/assets/{index-BzdhcJRl.js → index-CH3GGxYs.js} +1 -1
- package/dist/client/assets/{index-DQTJ9UtC.js → index-CmN7TjST.js} +1 -1
- package/dist/client/assets/{index-LSjVPeX9.js → index-D1g40hAu.js} +3 -3
- package/dist/client/assets/{index-Dho2GOgD.js → index-D4E3XJr2.js} +1 -1
- package/dist/client/assets/{index-DlaPc07g.js → index-Du4ARIfO.js} +1 -1
- package/dist/client/assets/{index-CEaizLnj.js → index-NGT6SGng.js} +1 -1
- package/dist/client/assets/{index-Zu_Nc85c.js → index-aIln4hKS.js} +1 -1
- package/dist/client/assets/{index-BnWpXqRN.js → index-bSsLqTR8.js} +1 -1
- package/dist/client/assets/{index-C3vL-FSh.js → index-kAuhGsQR.js} +1 -1
- package/dist/client/assets/{index-redirect-A9yKajXK.js → index-redirect-BOtvKj4V.js} +1 -1
- package/dist/client/assets/{index-mJLFSMtO.js → index-y_ZN3Csi.js} +1 -1
- package/dist/client/assets/index-zNNbsSbv.js +217 -0
- package/dist/client/assets/{input-Dorl9omt.js → input-AH-zc1xJ.js} +1 -1
- package/dist/client/assets/{integration-icon-BA2vV2po.js → integration-icon-A9c_bebh.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-BvEWnmxX.js → invite-member-dialog-2QbPsKy5.js} +1 -1
- package/dist/client/assets/{label-C5iFhVJI.js → label-CREwZHVz.js} +1 -1
- package/dist/client/assets/{login-Bq9AUaMz.js → login-DK11wo9B.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Di76FXht.js → mcp-oauth-CUTN_jP_.js} +1 -1
- package/dist/client/assets/{members-CZt-A3ZF.js → members-SQ5xbIj_.js} +1 -1
- package/dist/client/assets/{monaco-editor-BAUIVH5o.js → monaco-editor-DcSz2nK4.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-DEg2p21r.js → monitoring-stats-row-dq67E9g4.js} +1 -1
- package/dist/client/assets/{oauth-callback-QcbFbT7S.js → oauth-callback-CyjY2LuB.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B55r28UG.js → oauth-callback-ai-provider-D-_MRvoT.js} +1 -1
- package/dist/client/assets/{onboarding-_839Bkd7.js → onboarding-BcNffG2l.js} +1 -1
- package/dist/client/assets/{org-install-CaItI9bT.js → org-install-CZD3yOvZ.js} +1 -1
- package/dist/client/assets/{org-layout-D5oupmn-.js → org-layout-ChzYwis1.js} +1 -1
- package/dist/client/assets/{organization-choice-Dm7VUtfU.js → organization-choice-DO3TpN5Q.js} +1 -1
- package/dist/client/assets/page-seo-form-C3ja-AdY.js +1 -0
- package/dist/client/assets/page-seo-sheet-DST-XLP6.js +1 -0
- package/dist/client/assets/{popover-0tZDxpLx.js → popover-BXSfQ3ty.js} +1 -1
- package/dist/client/assets/post-editor-B_LetdV2.js +1 -0
- package/dist/client/assets/{primitives-B0hpR4Gt.js → primitives-Dh6y5Vqf.js} +1 -1
- package/dist/client/assets/{profile-BOY0w03d.js → profile-DeWb4RIY.js} +1 -1
- package/dist/client/assets/project-app-view-BifDSljQ.js +1 -0
- package/dist/client/assets/record-editor-DI5MypGG.js +1 -0
- package/dist/client/assets/registry-B1LHfxlX.js +2 -0
- package/dist/client/assets/{registry-layout-Bmen9Q_w.js → registry-layout-DAKJr0Bp.js} +1 -1
- package/dist/client/assets/{require-capability-Bg2o22fO.js → require-capability-Cb7N2Oxk.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CP87uq0l.js → required-auth-layout-DRSJiqlk.js} +1 -1
- package/dist/client/assets/{reset-password-t3HEiFrB.js → reset-password-BRHQg6QO.js} +1 -1
- package/dist/client/assets/{roles-fy-KeFfZ.js → roles-SdLIIKmd.js} +1 -1
- package/dist/client/assets/{search-input-edISIFhV.js → search-input-BzykC6SX.js} +1 -1
- package/dist/client/assets/{secrets-BFjZnM3g.js → secrets-lP0WJIRf.js} +1 -1
- package/dist/client/assets/sections-editor-CsFcLCt9.js +2 -0
- package/dist/client/assets/{select-CZz3tZl9.js → select-C5NXkaeS.js} +1 -1
- package/dist/client/assets/{select-model-DJ6QJz4n.js → select-model-MLc2Y3Qy.js} +1 -1
- package/dist/client/assets/{seo-editor-B-nGTTTS.js → seo-editor-r_gWolyN.js} +1 -1
- package/dist/client/assets/{settings-layout-Ce06Eqmh.js → settings-layout-BRYOw2xs.js} +1 -1
- package/dist/client/assets/{settings-section-QMAuLmMF.js → settings-section-DcnbXr5u.js} +1 -1
- package/dist/client/assets/{shell-controls-DYYLVCg-.js → shell-controls-hRJb8y7E.js} +1 -1
- package/dist/client/assets/{shell-layout-BXL8LQO9.js → shell-layout-BQHSPqMr.js} +1 -1
- package/dist/client/assets/{sidebar-BrKreIfO.js → sidebar-DgN5oOpi.js} +1 -1
- package/dist/client/assets/{skeleton-IazyrK3c.js → skeleton-BNyVbUwG.js} +1 -1
- package/dist/client/assets/{sso-seAE7zti.js → sso-wV6U6i7v.js} +1 -1
- package/dist/client/assets/{store-CeLvICwM.js → store-CoUYwDd1.js} +1 -1
- package/dist/client/assets/store-registry-mRHIDibK.js +2 -0
- package/dist/client/assets/{studio-tools-BpLcN2_F.js → studio-tools-DbeWVKwZ.js} +1 -1
- package/dist/client/assets/{switch-s20BBoMQ.js → switch-D35infLY.js} +1 -1
- package/dist/client/assets/tab-id-DAJ8K7VA.js +1 -0
- package/dist/client/assets/{table-BemIEL7_.js → table-CRfKA7NS.js} +1 -1
- package/dist/client/assets/{tabs-C64C5tAR.js → tabs-D3wed5Bx.js} +1 -1
- package/dist/client/assets/{textarea-pi_2NO_-.js → textarea-CEc_7A6V.js} +1 -1
- package/dist/client/assets/{toggle-group-Bcm6y1ek.js → toggle-group-CFbcmDsi.js} +1 -1
- package/dist/client/assets/toolbar-CgIGs2xP.js +1 -0
- package/dist/client/assets/{toolbar-icon-button-f24bAtkM.js → toolbar-icon-button-CYEe3N0j.js} +1 -1
- package/dist/client/assets/{tools-list-CIErjvXL.js → tools-list-DI21LYyh.js} +1 -1
- package/dist/client/assets/{tooltip-CydqKsA_.js → tooltip-Cjk9PMKc.js} +1 -1
- package/dist/client/assets/{types-5HxTY4AH.js → types-DOtTCrPL.js} +3 -3
- package/dist/client/assets/{use-ai-providers-DZ911KMX.js → use-ai-providers-qucsliq3.js} +1 -1
- package/dist/client/assets/{use-automations-9xQWIU-d.js → use-automations-SOkWBo6W.js} +1 -1
- package/dist/client/assets/{use-capability-BYGPZ1D7.js → use-capability-DQv1lExQ.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DUJqyX8q.js → use-clock-tick-eW5js56x.js} +1 -1
- package/dist/client/assets/{use-collections-D1y6LTm_.js → use-collections-DXG9rjJ2.js} +1 -1
- package/dist/client/assets/{use-connection-CP2AuPqM.js → use-connection-Cod3M0Uh.js} +1 -1
- package/dist/client/assets/{use-copy-VlG9OPMK.js → use-copy-CGlHMDea.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CvhecNl0.js → use-create-virtual-mcp-BX6sBt4t.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DExHtN-l.js → use-debounced-autosave-DiGqeVKG.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CPVLb6a1.js → use-debounced-value-CzaaMzl3.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-eFXvDChG.js → use-decopilot-events-uGcsF--z.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B63SRTFu.js → use-delete-connection-QI_R7sTm.js} +1 -1
- package/dist/client/assets/{use-file-configs-CQz8KxZG.js → use-file-configs-CtmXiAad.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CMwn1DgB.js → use-infinite-scroll-Ds-wB394.js} +1 -1
- package/dist/client/assets/{use-join-requests-Id_ktqQL.js → use-join-requests-C53tVE87.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BsQuo4Md.js → use-mcp-client-D-IcrlM1.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CU1SlYv5.js → use-mcp-prompts-CjXlqFii.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Cyf7GlEc.js → use-mcp-tools-Dafx8Nf_.js} +1 -1
- package/dist/client/assets/{use-members-BdFrMhZQ.js → use-members-BkrjfZtd.js} +1 -1
- package/dist/client/assets/{use-mobile-BaYDLsxM.js → use-mobile-Cs5uj2B4.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Pq_i3MPp.js → use-navigate-to-agent-CdzFundu.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DJUVn8l4.js → use-org-auth-client-CYHJ8zhf.js} +1 -1
- package/dist/client/assets/{use-org-sso-BuHqqjwY.js → use-org-sso-ZllsKAXm.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BeecqeuV.js → use-organization-roles-UQbPZOTn.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BWg3tHRJ.js → use-organization-settings-BM7m28RI.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CYI61Q6O.js → use-registry-connections-Obrdx90O.js} +1 -1
- package/dist/client/assets/{use-secrets-_BVoLH4e.js → use-secrets-DZyYucb6.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BrY0FSuJ.js → use-status-sounds-COBLP9-r.js} +1 -1
- package/dist/client/assets/{use-view-mode-C0I-L3JD.js → use-view-mode-fgGIj_ax.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DGj5HLRt.js → use-virtual-mcp-C70XD2v5.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Dul-gPAw.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-0L4EzzOg.js +1 -0
- package/dist/client/assets/{variant-calendar-CBLO0B-V.js → variant-calendar-BqxsTCCA.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BOwhpQmu.js → view-mode-toggle-BEPKlxI2.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +424 -404
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/add-section-modal-BP9Tx8i_.js +0 -1
- package/dist/client/assets/app-editor-CsYgkuW0.js +0 -1
- package/dist/client/assets/bulk-category-panel-e2nnRlgr.js +0 -1
- package/dist/client/assets/category-editor-cs9Ty-6l.js +0 -1
- package/dist/client/assets/collection-detail-COZr3qmE.js +0 -1
- package/dist/client/assets/connection-detail-DMkDWl6i.js +0 -1
- package/dist/client/assets/connections-BbPSnxYn.js +0 -1
- package/dist/client/assets/file-explorer-E_BWBfrL.js +0 -2
- package/dist/client/assets/github-repo-picker-BMrTazj0.js +0 -1
- package/dist/client/assets/index-CLaL3vnE.js +0 -519
- package/dist/client/assets/index-dPmP2Tp4.css +0 -1
- package/dist/client/assets/page-seo-form-BZnZl9y-.js +0 -1
- package/dist/client/assets/page-seo-sheet-_NhvVN_8.js +0 -1
- package/dist/client/assets/post-editor-CdzeQ2uD.js +0 -1
- package/dist/client/assets/project-app-view-Ciuwcn26.js +0 -1
- package/dist/client/assets/record-editor-C-pGHfgi.js +0 -1
- package/dist/client/assets/registry-Cvi1orAO.js +0 -2
- package/dist/client/assets/sections-editor-BxcBalTL.js +0 -2
- package/dist/client/assets/store-registry-DaWic-RW.js +0 -2
- package/dist/client/assets/tab-id-DznSzCvK.js +0 -1
- package/dist/client/assets/toolbar-Dv_CE5oq.js +0 -1
- package/dist/client/assets/useInfiniteQuery-OBUJ2wGg.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-bm5CR5SP.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as H,j as t,$ as J,a as ie,p as Y,r as $,ai as q,i as U,d as ee,t as L,dH as ae,K as F,k as le,B as ce,l as V,L as ue,ak as de}from"./index-Dbp2tz6n.js";import{c as me,a as fe,d as pe,e as ge}from"./dialog-BIK8Tom0.js";import{C as W}from"./checkbox-Dws3TE4J.js";import{C as xe}from"./collection-search-CZrjnOFy.js";import{u as he}from"./use-debounced-value-CPVLb6a1.js";import{b as te,u as ye}from"./use-connection-CP2AuPqM.js";import{u as D}from"./use-mcp-client-BsQuo4Md.js";import{W as be,S as ne}from"./constants-B72Xmt_K.js";import{a as se}from"./authenticate-and-persist-oauth-XGlotzfu.js";import{b as oe}from"./Settings02-CQu3SnQJ.js";import{K as we}from"./agent-icon-BcaN-4kc.js";import{u as Ne}from"./use-mcp-tools-Cyf7GlEc.js";import{e as Ce}from"./extract-connection-data-DiTS4nsP.js";import{c as je}from"./use-navigate-to-agent-Pq_i3MPp.js";import{f as Ie}from"./github-installations-DzN1UQ4x.js";function z(s){const e=H.c(4),{size:n,className:o}=s;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),e[0]=l):l=e[0];let d;return e[1]!==o||e[2]!==n?(d=t.jsx("svg",{width:n,height:n,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:o,children:l}),e[1]=o,e[2]=n,e[3]=d):d=e[3],d}function Se(s,e){const n=H.c(12),{org:o}=J();let l;n[0]!==o.id?(l=be.REGISTRY(o.id),n[0]=o.id,n[1]=l):l=n[1];const d=l;let f;n[2]!==o.id||n[3]!==o.slug||n[4]!==d?(f={connectionId:d,orgId:o.id,orgSlug:o.slug},n[2]=o.id,n[3]=o.slug,n[4]=d,n[5]=f):f=n[5];const m=D(f);let p;n[6]!==s?(p={name:s},n[6]=s,n[7]=p):p=n[7];const b=e?.enabled??!0;let i;return n[8]!==m||n[9]!==p||n[10]!==b?(i={client:m,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:p,enabled:b,staleTime:3e5,select:ve},n[8]=m,n[9]=p,n[10]=b,n[11]=i):i=n[11],Ne(i)}function ve(s){return s.structuredContent?.item??null}const Ee="deco/mcp-github";function Te(s){const{org:e}=J(),{data:n}=ie.useSession(),o=te(),l=Y(),[d,f]=$.useState("idle"),[m,p]=$.useState(null),[b,i]=$.useState(null),{data:h,isLoading:c}=Se(Ee,{enabled:s.enabled}),g=$.useRef(!1);s.enabled&&h&&!c&&!g.current&&n?.user?.id&&d==="idle"&&(g.current=!0,w());async function w(){if(!(!h||!n?.user?.id||!e))try{f("installing"),p(null);const N=Ce(h,e.id,n.user.id,{remoteIndex:0});if(!N.connection_url)throw new Error("Registry item is missing a remote URL for mcp-github");const{id:x}=await o.create.mutateAsync(N);f("authenticating");const u=await se({connectionId:x,orgId:e.id,orgSlug:e.slug,persistFallback:a=>o.update.mutateAsync({id:x,data:{connection_token:a}}).then(()=>{})});if(u.ran&&!u.ok){try{await o.delete.mutateAsync(x)}catch{}throw new Error(u.error&&u.error!=="no token received"?u.error:"No token received from GitHub")}q(l,e.id),i(N),f("ready")}catch(N){p(N instanceof Error?N.message:String(N)),f("error")}}function j(){f("idle"),p(null),i(null),g.current=!1}return s.enabled&&c&&d==="idle"?{status:"installing",error:null,connection:null,retry:j}:{status:d,error:m,connection:b,retry:j}}const K=[{key:"auto-respond-to-issues",triggerType:"github.issues.opened",nameSuffix:"auto-respond to issues",label:"Auto-respond to new issues",defaultEnabled:!0,instructions:({owner:s,name:e})=>`A new GitHub issue has been opened in ${s}/${e}. Read the issue, explore relevant code, create a branch, implement the fix, and open a PR referencing the issue number.`},{key:"review-incoming-prs",triggerType:"github.pull_request.opened",nameSuffix:"review incoming PRs",label:"Review incoming pull requests",defaultEnabled:!0,instructions:({owner:s,name:e})=>`A pull request was opened in ${s}/${e}. Read the diff, summarize what changed, flag risks (security, perf, breaking changes), and leave a review comment.`},{key:"note-merged-prs",triggerType:"github.pull_request.closed",nameSuffix:"note merged/closed PRs",label:"Note merged or closed PRs",defaultEnabled:!1,instructions:({owner:s,name:e})=>`A pull request was closed in ${s}/${e}. If it was merged, update changelog/release notes as appropriate.`}];function ke(s,e){const n=new Set;if(s.paramsSchema)for(const l of Object.keys(s.paramsSchema))n.add(l);if(Array.isArray(s.params))for(const l of s.params)n.add(l.name);else if(s.params&&typeof s.params=="object")for(const l of Object.keys(s.params))n.add(l);if(n.has("repo"))return{repo:`${e.owner}/${e.name}`};const o={};return n.has("owner")&&(o.owner=e.owner),n.has("name")&&(o.name=e.name),n.has("repository")&&(o.repository=`${e.owner}/${e.name}`),o}async function _e({githubCallTool:s,selfCallTool:e,virtualMcpId:n,repo:o,connectionId:l,selectedKeys:d}){const f=await s({name:"TRIGGER_LIST",arguments:{}}),m=f.structuredContent??f,p=new Map((m.triggers??[]).map(c=>[c.type,c])),b=K.filter(c=>d.has(c.key)),i=await Promise.allSettled(b.map(async c=>{const g=p.get(c.triggerType);if(!g)throw new Error(`Trigger ${c.triggerType} not exposed`);const w=await e({name:"AUTOMATION_CREATE",arguments:{name:`${o.name}: ${c.nameSuffix}`,virtual_mcp_id:n,messages:c.instructions(o),active:!0}}),j=(w.structuredContent??w).id;if(!j)throw new Error(`AUTOMATION_CREATE returned no id for ${c.key}`);await e({name:"AUTOMATION_TRIGGER_ADD",arguments:{automation_id:j,type:"event",connection_id:l,event_type:c.triggerType,params:ke(g,o)}})})),h=i.filter(c=>c.status==="rejected").length;return h>0&&console.error("Some GitHub automations failed to set up:",i.filter(c=>c.status==="rejected")),{total:i.length,failed:h}}const B={contents:"write",metadata:"read",pull_requests:"write",issues:"write"};function Ae(s){if(!s||typeof s!="object"||Array.isArray(s))return B;const e=s;return Object.values(e).some(n=>typeof n!="string")?B:e}function Re(s){if(!(typeof s!="number"||!Number.isFinite(s)||!Number.isInteger(s)||s<=0))return s}function Oe(s){const e=s.metadata?.repoScope;if(!e||typeof e.installationId!="number"||!Number.isFinite(e.installationId)||!Number.isInteger(e.installationId)||e.installationId<=0||typeof e.owner!="string"||typeof e.repo!="string"||e.owner.length===0||e.repo.length===0)return null;const n=Re(e.repositoryId);return{sourceConnectionId:typeof e.sourceConnectionId=="string"?e.sourceConnectionId:void 0,installationId:e.installationId,repositoryId:n,owner:e.owner,repo:e.repo,permissions:Ae(e.permissions),grantProvider:e.grantProvider==="github-mcp"?"github-mcp":void 0}}function Ge(s){return(s??[]).filter(e=>Oe(e)===null)}const X="GitHub MCP did not return refreshable repo grant metadata";function M(s){if(typeof s!="string")return null;const e=s.trim();return e.length>0?e:null}function Pe(s){try{const e=new URL(s);return(e.protocol==="http:"||e.protocol==="https:")&&!e.username&&!e.password}catch{return!1}}function $e(s){return typeof s=="number"&&Number.isFinite(s)&&Number.isInteger(s)&&s>0?s:void 0}async function Z(s){const{orgSlug:e,sourceConnection:n,installationId:o,owner:l,repo:d,githubCallTool:f,selfCallTool:m,orgShared:p}=s,b=await f({name:"MINT_REPO_TOKEN",arguments:{installationId:o,owner:l,repo:d,permissions:B}}),i=b.structuredContent;if(b.isError||!i?.token){const y=b.content?.find(T=>T.type==="text")?.text;throw new Error(y?`Failed to mint a repo-scoped GitHub token: ${y}`:"Failed to mint a repo-scoped GitHub token")}const h=M(i.refreshToken),c=M(i.tokenEndpoint),g=M(i.clientId);if(!h||!c||!g)throw new Error(X);if(!Pe(c))throw new Error(X);const w=M(i.repository?.owner),j=M(i.repository?.name),N="GitHub MCP returned refresh metadata for a different repository";if(i.repository?.owner!==void 0&&(!w||w.toLowerCase()!==l.toLowerCase()))throw new Error(N);if(i.repository?.name!==void 0&&(!j||j.toLowerCase()!==d.toLowerCase()))throw new Error(N);const C=$e(i.repository?.id),x=i.expiresAt?Date.parse(i.expiresAt):NaN,u=Number.isFinite(x)?Math.max(0,Math.floor((x-Date.now())/1e3)):null,I=(typeof i.expiresIn=="number"&&Number.isFinite(i.expiresIn)&&Number.isInteger(i.expiresIn)&&i.expiresIn>0?i.expiresIn:null)??u,v=await m({name:"COLLECTION_CONNECTIONS_CREATE",arguments:{data:{title:`GitHub: ${l}/${d}`,description:`Repo-scoped GitHub access for ${l}/${d}`,icon:n.icon,app_name:n.app_name,app_id:n.app_id,connection_type:n.connection_type,connection_url:n.connection_url,metadata:{...p?{orgShared:!0}:{},repoScope:{installationId:o,repositoryId:C,owner:l,repo:d,permissions:B,grantProvider:"github-mcp"}}}}}),S=v.structuredContent??v,E=S.item?.id??S.id;if(!E)throw new Error("Failed to create the repo-scoped GitHub connection");if(!(await fetch(`/api/${e}/connections/${E}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:i.token,refreshToken:h,expiresIn:I,scope:i.scope??null,clientId:g,tokenEndpoint:c})})).ok)throw await m({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:E,force:!0}}).catch(()=>{}),new Error("Failed to persist the repo-scoped token");return{childConnectionId:E}}function rt(s){const e=H.c(23),{open:n,onOpenChange:o,title:l,hideAutoRespondCheckbox:d,onImportComplete:f,mode:m}=s,p=d===void 0?!1:d,b=m===void 0?"agent":m,i=l??(b==="connection"?"Add repo":"Import from GitHub"),[h,c]=$.useState(null);let g;e[0]!==i?(g=t.jsx(me,{className:"sr-only",children:t.jsx(fe,{children:i})}),e[0]=i,e[1]=g):g=e[1];let w;e[2]!==i||e[3]!==h?(w=t.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3 shrink-0",children:h?t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",onClick:()=>c(null),className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors shrink-0","aria-label":"Back to accounts",children:t.jsx(oe,{size:16})}),t.jsx("img",{src:h.avatarUrl,alt:h.login,className:"size-5 rounded-full ring-1 ring-border shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:h.login})]}):t.jsxs(t.Fragment,{children:[t.jsx(z,{className:"size-4 text-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:i})]})}),e[2]=i,e[3]=h,e[4]=w):w=e[4];let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(U,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=j):j=e[5];let N;e[6]!==o?(N=()=>o(!1),e[6]=o,e[7]=N):N=e[7];const C=p||b==="connection";let x;e[8]!==b||e[9]!==f||e[10]!==n||e[11]!==h||e[12]!==N||e[13]!==C?(x=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx($.Suspense,{fallback:j,children:t.jsx(He,{open:n,onComplete:N,selectedInstallation:h,onSelectInstallation:c,hideAutoRespondCheckbox:C,onImportComplete:f,mode:b})})}),e[8]=b,e[9]=f,e[10]=n,e[11]=h,e[12]=N,e[13]=C,e[14]=x):x=e[14];let u;e[15]!==g||e[16]!==w||e[17]!==x?(u=t.jsxs(pe,{className:"sm:max-w-[560px] h-[85svh] sm:h-[520px] p-0 gap-0 overflow-hidden flex flex-col",children:[g,w,x]}),e[15]=g,e[16]=w,e[17]=x,e[18]=u):u=e[18];let a;return e[19]!==o||e[20]!==n||e[21]!==u?(a=t.jsx(ge,{open:n,onOpenChange:o,children:u}),e[19]=o,e[20]=n,e[21]=u,e[22]=a):a=e[22],a}function He({open:s,onComplete:e,selectedInstallation:n,onSelectInstallation:o,hideAutoRespondCheckbox:l,onImportComplete:d,mode:f="agent"}){const{org:m}=J(),p=Y(),b=je(),[i,h]=$.useState(null),[c,g]=$.useState(!0),[w,j]=$.useState(()=>new Set(K.filter(r=>r.defaultEnabled).map(r=>r.key))),N=K.filter(r=>r.defaultEnabled).map(r=>r.key),C=l?new Set(N):c?w:new Set,x=ye({slug:"mcp-github"}),u=Ge(x),a=Te({enabled:s&&u.length===0}),I=u.length===1?u[0]??null:i,v=D({connectionId:I?.id??"",orgId:m.id,orgSlug:m.slug}),S=D({connectionId:ne,orgId:m.id,orgSlug:m.slug}),E=async(r,k)=>{try{const P=await v.callTool({name:"get_file_contents",arguments:{owner:r.owner,repo:r.name,path:k}});if(P.isError)return null;const O=P.content?.find(G=>G.type==="resource")?.resource?.text;if(!O)return null;try{const G=JSON.parse(O);return typeof G=="string"?G:JSON.stringify(G)}catch{return O}}catch{return null}},_=(r,k)=>{Promise.all([E(k,"AGENTS.md"),E(k,"CLAUDE.md")]).then(async([A,P])=>{const R=A??P??null;R&&(await S.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:r,data:{metadata:{instructions:R}}}}),q(p,m.id))}).catch(A=>{console.error("GitHub instructions fetch failed:",A)})},y=async({virtualMcpId:r,repo:k,connectionId:A,selectedKeys:P})=>{const{total:R,failed:O}=await _e({githubCallTool:G=>v.callTool(G),selfCallTool:G=>S.callTool(G),virtualMcpId:r,repo:k,connectionId:A,selectedKeys:P});O>0&&L.warning(`Set up ${R-O}/${R} GitHub automations. Add the rest from the automations view.`)},T=ee({mutationFn:async r=>{if(!I||!n)throw new Error("No GitHub connection or installation");const k=n.installationId;if(f==="connection"){const{childConnectionId:R}=await Z({orgSlug:m.slug,sourceConnection:I,installationId:k,owner:r.owner,repo:r.name,githubCallTool:O=>v.callTool(O),selfCallTool:O=>S.callTool(O),orgShared:!0});return{virtualMcpId:null,repo:r,connectionId:R,item:null}}const{childConnectionId:A}=await Z({orgSlug:m.slug,sourceConnection:I,installationId:k,owner:r.owner,repo:r.name,githubCallTool:R=>v.callTool(R),selfCallTool:R=>S.callTool(R)});let P=null;try{const R=await S.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:r.name,description:r.description||"Imported from GitHub",pinned:!1,icon:null,metadata:{githubRepo:{owner:r.owner,name:r.name,url:r.url,installationId:k,connectionId:A},instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"},chatDefaultOpen:!0}}},connections:[{connection_id:A}]}}}),O=R.structuredContent??R,G=O.item?.id;if(!O.item||!G)throw new Error("Failed to create the imported agent");return P=G,C.size>0&&await y({virtualMcpId:G,repo:r,connectionId:A,selectedKeys:C}).catch(re=>{console.error("Failed to set up GitHub automations:",re),L.warning("Imported repo, but failed to set up GitHub automations. You can add triggers manually from the automations view.")}),{virtualMcpId:G,repo:r,connectionId:A,item:O.item}}catch(R){throw P&&await S.callTool({name:"COLLECTION_VIRTUAL_MCP_DELETE",arguments:{id:P}}).catch(()=>{}),await S.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:A,force:!0}}).catch(()=>{}),R}},onSuccess:({virtualMcpId:r,repo:k,connectionId:A,item:P})=>{if(f==="connection"||!r||!P){q(p,m.id),ae(p,m.id),L.success(`Added ${k.name}`),e();return}if(p.setQueryData(F.collectionItem(S,m.id,"","VIRTUAL_MCP",r),{item:P}),q(p,m.id),_(r,k),d){d({virtualMcpId:r,repo:k,connectionId:A});return}L.success(`Imported ${k.name} from GitHub`),e(),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),b(r)},onError:r=>{L.error("Failed to import repo: "+(r instanceof Error?r.message:"Unknown error"))}});return a.status==="installing"||a.status==="authenticating"?t.jsx(Q,{status:a.status,error:null,retry:a.retry}):a.status==="error"?t.jsx(Q,{status:"error",error:a.error,retry:a.retry}):u.length===0&&a.status==="idle"?t.jsx(Q,{status:"installing",error:null,retry:a.retry}):u.length>1&&!I?t.jsxs("div",{className:"flex flex-col py-2",children:[t.jsx("div",{className:"px-4 py-2",children:t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Select a connection"})}),u.map(r=>t.jsxs("button",{type:"button",onClick:()=>h(r),className:"flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left",children:[r.icon?t.jsx("img",{src:r.icon,alt:r.title,className:"size-7 rounded-full shrink-0"}):t.jsx("div",{className:"size-7 rounded-full bg-muted flex items-center justify-center shrink-0",children:t.jsx(z,{className:"size-3.5 text-muted-foreground"})}),t.jsx("span",{className:"text-sm font-medium",children:r.title})]},r.id))]}):I?n?t.jsx(Fe,{connectionId:I.id,orgId:m.id,orgSlug:m.slug,installation:n,onSelectRepo:r=>T.mutate(r),isSaving:T.isPending,autoRespondEnabled:c,onAutoRespondChange:g,selectedAutomationKeys:w,onAutomationKeysChange:j,hideAutoRespondCheckbox:l}):t.jsx(Le,{connectionId:I.id,orgId:m.id,orgSlug:m.slug,onSelect:o,showBackButton:u.length>1,onBack:()=>h(null)}):null}function Le(s){const e=H.c(47),{connectionId:n,orgId:o,orgSlug:l,onSelect:d,showBackButton:f,onBack:m}=s;let p;e[0]!==o||e[1]!==l?(p={connectionId:ne,orgId:o,orgSlug:l},e[0]=o,e[1]=l,e[2]=p):p=e[2];const b=D(p),i=Y(),h=te();let c;e[3]!==n||e[4]!==o?(c=F.githubUserOrgs(o,n),e[3]=n,e[4]=o,e[5]=c):c=e[5];let g;e[6]!==n||e[7]!==b?(g=()=>Ie(y=>b.callTool(y),n),e[6]=n,e[7]=b,e[8]=g):g=e[8];let w;e[9]!==c||e[10]!==g?(w={queryKey:c,queryFn:g},e[9]=c,e[10]=g,e[11]=w):w=e[11];const j=le(w);let N;e[12]!==h||e[13]!==n||e[14]!==j||e[15]!==o||e[16]!==l||e[17]!==i?(N={mutationFn:async()=>{const y=await se({connectionId:n,orgId:o,orgSlug:l,persistFallback:r=>h.update.mutateAsync({id:n,data:{connection_token:r}}).then(Me)});if(y.ran&&!y.ok)throw new Error(y.error??"no token received");const T=new URL(`/api/${l}/mcp/${n}`,window.location.origin);await i.invalidateQueries({queryKey:F.isMCPAuthenticated(T.href,null)}),await i.invalidateQueries({queryKey:F.mcpClientPrefix()}),await j.refetch()},onError:ze},e[12]=h,e[13]=n,e[14]=j,e[15]=o,e[16]=l,e[17]=i,e[18]=N):N=e[18];const C=ee(N);if(j.isLoading){let y;return e[19]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(U,{size:18,className:"animate-spin text-muted-foreground"})}),e[19]=y):y=e[19],y}if(j.isError){let y,T;e[20]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("p",{className:"text-sm text-destructive",children:"Failed to load GitHub accounts"}),T=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[280px] leading-relaxed",children:"Your GitHub connection may have expired. Reconnect to restore access."}),e[20]=y,e[21]=T):(y=e[20],T=e[21]);let r;e[22]!==C?(r=()=>C.mutate(),e[22]=C,e[23]=r):r=e[23];let k;e[24]!==C.isPending?(k=C.isPending?t.jsx(U,{size:14,className:"animate-spin"}):t.jsx(z,{className:"size-3.5"}),e[24]=C.isPending,e[25]=k):k=e[25];let A;return e[26]!==C.isPending||e[27]!==r||e[28]!==k?(A=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-3 px-6 text-center",children:[y,T,t.jsxs(ce,{type:"button",variant:"outline",size:"sm",onClick:r,disabled:C.isPending,children:[k,"Reconnect GitHub"]})]}),e[26]=C.isPending,e[27]=r,e[28]=k,e[29]=A):A=e[29],A}const x=j.data;if(!x)return null;let u;e[30]!==m||e[31]!==f?(u=f&&t.jsx("div",{className:"flex items-center gap-1 px-4 pt-3 pb-1 shrink-0",children:t.jsxs("button",{type:"button",onClick:m,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(oe,{size:12}),"Change connection"]})}),e[30]=m,e[31]=f,e[32]=u):u=e[32];let a;if(e[33]!==x.installations||e[34]!==d){let y;e[36]!==d?(y=T=>t.jsxs("button",{type:"button",onClick:()=>d(T),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left group",children:[t.jsx("img",{src:T.avatarUrl,alt:T.login,className:"size-7 rounded-full shrink-0 ring-1 ring-border"}),t.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[t.jsx("span",{className:"text-sm font-medium leading-none",children:T.login}),T.type==="User"&&t.jsx("span",{className:"text-xs text-muted-foreground mt-1",children:"Personal account"})]}),t.jsx("span",{className:"text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:"Select →"})]},T.installationId),e[36]=d,e[37]=y):y=e[37],a=x.installations.map(y),e[33]=x.installations,e[34]=d,e[35]=a}else a=e[35];let I;e[38]!==a?(I=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:a}),e[38]=a,e[39]=I):I=e[39];const v=x.appSlug?`https://github.com/apps/${x.appSlug}/installations/new`:"https://github.com/settings/installations";let S;e[40]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx("span",{className:"underline underline-offset-2",children:"Install the GitHub App"}),e[40]=S):S=e[40];let E;e[41]!==v?(E=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:["Account not listed?"," ",S]})}),e[41]=v,e[42]=E):E=e[42];let _;return e[43]!==E||e[44]!==u||e[45]!==I?(_=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[u,I,E]}),e[43]=E,e[44]=u,e[45]=I,e[46]=_):_=e[46],_}function ze(s){L.error("Failed to reconnect GitHub: "+(s instanceof Error?s.message:"Unknown error"))}function Me(){}function Fe(s){const e=H.c(27),{connectionId:n,orgId:o,orgSlug:l,installation:d,onSelectRepo:f,isSaving:m,autoRespondEnabled:p,onAutoRespondChange:b,selectedAutomationKeys:i,onAutomationKeysChange:h,hideAutoRespondCheckbox:c}=s,[g,w]=$.useState(""),j=he(g,300),N=$.useDeferredValue(j),C=g!==N;let x;e[0]!==C||e[1]!==g?(x=t.jsx(xe,{placeholder:"Search repositories...",value:g,onChange:w,isSearching:C}),e[0]=C,e[1]=g,e[2]=x):x=e[2];const u=C?"opacity-40":"opacity-100";let a;e[3]!==u?(a=V("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",u),e[3]=u,e[4]=a):a=e[4];let I;e[5]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(U,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=I):I=e[5];let v;e[6]!==n||e[7]!==N||e[8]!==d||e[9]!==m||e[10]!==f||e[11]!==o||e[12]!==l?(v=t.jsx($.Suspense,{fallback:I,children:t.jsx(Ue,{connectionId:n,orgId:o,orgSlug:l,installation:d,query:N,onSelectRepo:f,isSaving:m})}),e[6]=n,e[7]=N,e[8]=d,e[9]=m,e[10]=f,e[11]=o,e[12]=l,e[13]=v):v=e[13];let S;e[14]!==a||e[15]!==v?(S=t.jsx("div",{className:a,children:v}),e[14]=a,e[15]=v,e[16]=S):S=e[16];let E;e[17]!==p||e[18]!==c||e[19]!==b||e[20]!==h||e[21]!==i?(E=!c&&t.jsxs("div",{className:"border-t border-border shrink-0",children:[t.jsxs("label",{className:"flex items-center gap-2 px-4 py-3 cursor-pointer select-none",children:[t.jsx(W,{checked:p,onCheckedChange:y=>b(y===!0)}),t.jsx("span",{className:"text-xs text-foreground",children:"Set up GitHub automations for this repo"})]}),p&&t.jsx("div",{className:"px-4 pb-3 pl-9 flex flex-col gap-1.5",children:K.map(y=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer select-none",children:[t.jsx(W,{checked:i.has(y.key),onCheckedChange:T=>{const r=new Set(i);T===!0?r.add(y.key):r.delete(y.key),h(r)}}),t.jsx("span",{className:"text-xs text-muted-foreground",children:y.label})]},y.key))})]}),e[17]=p,e[18]=c,e[19]=b,e[20]=h,e[21]=i,e[22]=E):E=e[22];let _;return e[23]!==x||e[24]!==S||e[25]!==E?(_=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[x,S,E]}),e[23]=x,e[24]=S,e[25]=E,e[26]=_):_=e[26],_}function Ue(s){const e=H.c(29),{connectionId:n,orgId:o,orgSlug:l,installation:d,query:f,onSelectRepo:m,isSaving:p}=s;let b;e[0]!==n||e[1]!==o||e[2]!==l?(b={connectionId:n,orgId:o,orgSlug:l},e[0]=n,e[1]=o,e[2]=l,e[3]=b):b=e[3];const i=D(b),h=d.type==="User"?"user":"org",c=f?`${h}:${d.login} ${f} in:name`:`${h}:${d.login}`;let g;e[4]!==n||e[5]!==d.login||e[6]!==o||e[7]!==f?(g=F.githubOrgRepos(o,n,d.login,f),e[4]=n,e[5]=d.login,e[6]=o,e[7]=f,e[8]=g):g=e[8];let w;e[9]!==i||e[10]!==c?(w=async u=>{const{signal:a}=u,v=(await i.callTool({name:"search_repositories",arguments:{query:c,page:1,perPage:30}},void 0,{signal:a})).content?.[0]?.text;if(!v)throw new Error("No response from search_repositories");return(JSON.parse(v).items??[]).map(De)},e[9]=i,e[10]=c,e[11]=w):w=e[11];let j;e[12]!==g||e[13]!==w?(j={queryKey:g,queryFn:w},e[12]=g,e[13]=w,e[14]=j):j=e[14];const{data:N}=ue(j);if(N.length===0){let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("p",{className:"text-sm text-muted-foreground",children:"No repositories found"}),e[15]=u):u=e[15];let a;e[16]!==f?(a=f&&t.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Try a different search term"}),e[16]=f,e[17]=a):a=e[17];let I;return e[18]!==a?(I=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-1",children:[u,a]}),e[18]=a,e[19]=I):I=e[19],I}let C;if(e[20]!==p||e[21]!==m||e[22]!==N){let u;e[24]!==p||e[25]!==m?(u=a=>t.jsxs("button",{type:"button",onClick:()=>m(a),disabled:p,className:"flex items-start gap-3 px-4 py-3 hover:bg-accent transition-colors text-left disabled:opacity-50 disabled:cursor-not-allowed",children:[t.jsx(z,{className:"size-4 text-muted-foreground mt-0.5 shrink-0"}),t.jsx("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:t.jsx("span",{className:"text-sm font-medium truncate",children:a.name})}),t.jsxs("span",{className:"flex items-center gap-1 text-xs font-medium text-muted-foreground border border-border rounded px-1.5 py-0.5 shrink-0 leading-none",children:[a.private?t.jsx(de,{size:10}):t.jsx(we,{size:10}),a.private?"Private":"Public"]})]},a.fullName),e[24]=p,e[25]=m,e[26]=u):u=e[26],C=N.map(u),e[20]=p,e[21]=m,e[22]=N,e[23]=C}else C=e[23];let x;return e[27]!==C?(x=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden flex flex-col [scrollbar-gutter:stable]",children:C}),e[27]=C,e[28]=x):x=e[28],x}function De(s){return{name:s.name,fullName:s.full_name,owner:s.full_name.split("/")[0]??"",url:s.html_url,private:s.private,description:s.description,updatedAt:s.updated_at}}function Q(s){const e=H.c(33),{status:n,error:o,retry:l}=s;if(n==="error"){let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("div",{className:"size-10 rounded-full bg-destructive/10 flex items-center justify-center",children:t.jsx(z,{className:"size-5 text-destructive"})}),e[0]=v):v=e[0];let S;e[1]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx("p",{className:"text-sm font-medium",children:"Connection failed"}),e[1]=S):S=e[1];const E=o??"Something went wrong while connecting to GitHub.";let _;e[2]!==E?(_=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[S,t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:E})]}),e[2]=E,e[3]=_):_=e[3];let y;e[4]!==l?(y=t.jsx("button",{type:"button",onClick:l,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:"Try again"}),e[4]=l,e[5]=y):y=e[5];let T;return e[6]!==_||e[7]!==y?(T=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[v,_,y]}),e[6]=_,e[7]=y,e[8]=T):T=e[8],T}const d=n==="authenticating";let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("div",{className:"size-10 rounded-full bg-muted flex items-center justify-center",children:t.jsx(z,{className:"size-5 text-foreground"})}),e[9]=f):f=e[9];let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("div",{className:"relative size-10",children:[f,t.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 size-4 rounded-full bg-background flex items-center justify-center",children:t.jsx(U,{size:12,className:"animate-spin text-muted-foreground"})})]}),e[10]=m):m=e[10];const p=d?"Authenticating with GitHub":"Setting up GitHub";let b;e[11]!==p?(b=t.jsx("p",{className:"text-sm font-medium",children:p}),e[11]=p,e[12]=b):b=e[12];const i=d?"Complete the OAuth flow in your browser":"Installing the GitHub connection...";let h;e[13]!==i?(h=t.jsx("p",{className:"text-xs text-muted-foreground",children:i}),e[13]=i,e[14]=h):h=e[14];let c;e[15]!==b||e[16]!==h?(c=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[b,h]}),e[15]=b,e[16]=h,e[17]=c):c=e[17];const g=d?"bg-muted-foreground/30":"bg-foreground animate-pulse";let w;e[18]!==g?(w=V("size-1.5 rounded-full",g),e[18]=g,e[19]=w):w=e[19];let j;e[20]!==w?(j=t.jsx("span",{className:w}),e[20]=w,e[21]=j):j=e[21];const N=d?"bg-foreground animate-pulse":"bg-muted-foreground/30";let C;e[22]!==N?(C=V("size-1.5 rounded-full",N),e[22]=N,e[23]=C):C=e[23];let x;e[24]!==C?(x=t.jsx("span",{className:C}),e[24]=C,e[25]=x):x=e[25];let u;e[26]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("span",{className:"size-1.5 rounded-full bg-muted-foreground/30"}),e[26]=u):u=e[26];let a;e[27]!==j||e[28]!==x?(a=t.jsxs("div",{className:"flex items-center gap-1.5",children:[j,x,u]}),e[27]=j,e[28]=x,e[29]=a):a=e[29];let I;return e[30]!==a||e[31]!==c?(I=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[m,c,a]}),e[30]=a,e[31]=c,e[32]=I):I=e[32],I}export{rt as G,z as a,Ge as g,Z as p,Te as u};
|