decocms 4.99.7 → 4.99.8
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-DHJMAy0z.js → AlertCircle-CE7GxjMO.js} +1 -1
- package/dist/client/assets/{AreaChart-BP3LRAVY.js → AreaChart-Czn9zcW2.js} +1 -1
- package/dist/client/assets/{ArrowRight-ZH8AfOrt.js → ArrowRight-AiWOWM1Z.js} +1 -1
- package/dist/client/assets/{ArrowUp-BEvOvB39.js → ArrowUp-BsjWGQQe.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CB2lmsga.js → ArrowUpRight-B2LSEvMX.js} +1 -1
- package/dist/client/assets/{Check-8S_h-pNf.js → Check-BWvX1ZXX.js} +1 -1
- package/dist/client/assets/{CheckCircle-8lNaIJZX.js → CheckCircle-Cf21Bb8a.js} +1 -1
- package/dist/client/assets/{ChevronDown-D19e4E2W.js → ChevronDown-CjhsyPt5.js} +1 -1
- package/dist/client/assets/{ChevronRight-DMiFqEFB.js → ChevronRight-C0U1fSzL.js} +1 -1
- package/dist/client/assets/{ChevronUp-CDr-5amA.js → ChevronUp-CJR37gbq.js} +1 -1
- package/dist/client/assets/{Copy01-CVgcePVg.js → Copy01-B8tpQC9Q.js} +1 -1
- package/dist/client/assets/{DotsVertical-Ddcp5zYy.js → DotsVertical-DXSJrP0z.js} +1 -1
- package/dist/client/assets/{Eye-DjxTeGvc.js → Eye-CximEfBL.js} +1 -1
- package/dist/client/assets/{FilterLines-sMM8U03Q.js → FilterLines-CQAFehUr.js} +1 -1
- package/dist/client/assets/{Globe01-ByEypwqT.js → Globe01-BHWZq2K5.js} +1 -1
- package/dist/client/assets/{Globe04-CLktRX73.js → Globe04-Dw5Bsm8V.js} +1 -1
- package/dist/client/assets/{HardDrive-LZLUcrQT.js → HardDrive-CwNWMpvl.js} +1 -1
- package/dist/client/assets/{Image01-BC4H1plu.js → Image01-BorH67fS.js} +1 -1
- package/dist/client/assets/{Key01-BJ5pxmk5.js → Key01-Bjj-aLS5.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BY0vokwF.js → LayoutLeft-CxMDbMdN.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BE6iPh6Z.js → LinkExternal01-DzfAn4aY.js} +1 -1
- package/dist/client/assets/{Monitor01-D5bQ7ld2.js → Monitor01-B11z__w7.js} +1 -1
- package/dist/client/assets/{Package-Dgaviqf5.js → Package-BkoPZ3tG.js} +1 -1
- package/dist/client/assets/{Palette-BLetgCYz.js → Palette-RNOi-9O1.js} +1 -1
- package/dist/client/assets/{Play-D4uEf4_3.js → Play-CL_a6mE6.js} +1 -1
- package/dist/client/assets/{Plus-B99BOqFt.js → Plus-BiNu4BNf.js} +1 -1
- package/dist/client/assets/{SearchLg-0vJ_NGT1.js → SearchLg-D8wz7WQH.js} +1 -1
- package/dist/client/assets/{SearchMd--QTHPVfW.js → SearchMd-JyzroHdN.js} +1 -1
- package/dist/client/assets/{Settings02-Dg48gy-m.js → Settings02-htWR982a.js} +1 -1
- package/dist/client/assets/{Shield01-XjAbmrcl.js → Shield01-BVyqSeQM.js} +1 -1
- package/dist/client/assets/{Star01-DBzet7vh.js → Star01-Dh17NHJI.js} +1 -1
- package/dist/client/assets/{Stars01-DBeF8eO9.js → Stars01-BMXw5BeL.js} +1 -1
- package/dist/client/assets/{Stars02-DF0mhAvh.js → Stars02-CxJPie3_.js} +1 -1
- package/dist/client/assets/{Sun-DWQi7hi9.js → Sun-DaIRBGtL.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-g8c5_DAA.js → SwitchHorizontal01-BwNckjDk.js} +1 -1
- package/dist/client/assets/{Tool01-BsH7bOGE.js → Tool01-D_3zbU3k.js} +1 -1
- package/dist/client/assets/{Tool02-CpEmuwVJ.js → Tool02-DiUu9qs_.js} +1 -1
- package/dist/client/assets/{Trash01-sz1B1ubO.js → Trash01-WLvc7qEr.js} +1 -1
- package/dist/client/assets/{TrendUp01-DFaJzXrF.js → TrendUp01-DPzDlutQ.js} +1 -1
- package/dist/client/assets/{Upload01-DZkj6_Us.js → Upload01-Bx5CpiF6.js} +1 -1
- package/dist/client/assets/{User01-Cy4n4fwd.js → User01-CWpJwa6r.js} +1 -1
- package/dist/client/assets/{Users01-CiJE_Dg-.js → Users01-ChKK2Tx6.js} +1 -1
- package/dist/client/assets/{Users03-Dqh1PO2N.js → Users03-BWpBf_La.js} +1 -1
- package/dist/client/assets/{X-BFNxuShY.js → X-CfAlZN0E.js} +1 -1
- package/dist/client/assets/{XCircle-Cv1eNWoM.js → XCircle-D6dsYD0i.js} +1 -1
- package/dist/client/assets/{XClose-Ckol2oql.js → XClose-EYXyD43I.js} +1 -1
- package/dist/client/assets/{Zap-DTU6QUr-.js → Zap-CieQ7Tpq.js} +1 -1
- package/dist/client/assets/{ZapSquare-CdnVBk-J.js → ZapSquare-z-XJEPEB.js} +1 -1
- package/dist/client/assets/{ZoomOut-IrGAWsFW.js → ZoomOut-_xCY1UeS.js} +1 -1
- package/dist/client/assets/{access-gate-DAiHI_Ya.js → access-gate-Cv1dfvoj.js} +1 -1
- package/dist/client/assets/{add-section-modal-PTtjM0qv.js → add-section-modal-CZdPL24J.js} +1 -1
- package/dist/client/assets/{agent-icon-DJ-fLRqx.js → agent-icon-DclSthKR.js} +1 -1
- package/dist/client/assets/{agents-list-Ddn36hvr.js → agents-list-DBnt6dLl.js} +1 -1
- package/dist/client/assets/{ai-providers-4RQyfXJ9.js → ai-providers-DzcfIs3g.js} +1 -1
- package/dist/client/assets/{alert-D564TwSW.js → alert-BPcaPAJj.js} +1 -1
- package/dist/client/assets/{alert-dialog-S-vKrHdP.js → alert-dialog-C9TCdYEA.js} +1 -1
- package/dist/client/assets/{app-editor-BnYQVlSC.js → app-editor-DdcFzHO2.js} +1 -1
- package/dist/client/assets/{auth-LsRMSxpZ.js → auth-D0JrqMBg.js} +1 -1
- package/dist/client/assets/{auth-catchall-CdzEQEu6.js → auth-catchall-E5XvJd8y.js} +1 -1
- package/dist/client/assets/{auth-entry-DcFUSq-U.js → auth-entry-D9yXCnjT.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CTdOwwE2.js → auth-split-layout-AjVuDFuV.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-ccpCvQUL.js → authenticate-and-persist-oauth-DxQCI97g.js} +1 -1
- package/dist/client/assets/{automation-list-row-B36cFYnc.js → automation-list-row-BRNOh7Fh.js} +1 -1
- package/dist/client/assets/{automation-runs-C5OD2vNu.js → automation-runs-DYLrph2F.js} +1 -1
- package/dist/client/assets/{automations-_IDwlRt9.js → automations-nNRSctV2.js} +1 -1
- package/dist/client/assets/{autosend-DwCcNXOp.js → autosend-CdL93bdf.js} +1 -1
- package/dist/client/assets/{avatar-CDCXeyeq.js → avatar-STUuRBeL.js} +1 -1
- package/dist/client/assets/{badge-CLbg8brP.js → badge-BHUFjOp2.js} +1 -1
- package/dist/client/assets/block-document-CVBR247r.js +3 -0
- package/dist/client/assets/{brand-context-CLwWQD4a.js → brand-context-CSCxzNyY.js} +1 -1
- package/dist/client/assets/{buckets-C6jFjZP6.js → buckets-pkSe0l2x.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BJgqFyPw.js → bulk-category-panel-Dc2Scx8I.js} +1 -1
- package/dist/client/assets/{calendar-CIg2EEBJ.js → calendar-BitQQvMp.js} +1 -1
- package/dist/client/assets/{capability-load-error-Dx6CWw4N.js → capability-load-error-B3GGAYV9.js} +1 -1
- package/dist/client/assets/{card-CGoHKQKX.js → card-eu6g3Ufc.js} +1 -1
- package/dist/client/assets/{category-editor-CxVEA7RL.js → category-editor-x8totkcH.js} +1 -1
- package/dist/client/assets/{chat-context-BpdINg7c.js → chat-context-DseDiNEh.js} +1 -1
- package/dist/client/assets/{checkbox-DiEGmfR1.js → checkbox-BhnQvAdW.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BGVZ5nYN.js → cli-auth-success-D-YHRBZl.js} +1 -1
- package/dist/client/assets/collection-detail-CkwYR8Wb.js +1 -0
- package/dist/client/assets/{collection-display-button-Dn4BN1AT.js → collection-display-button-BiPabE6D.js} +1 -1
- package/dist/client/assets/{collection-search-DT4BSCdW.js → collection-search-BfgDlrmR.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CXhf1hUH.js → collection-table-wrapper-BEMGyRyQ.js} +1 -1
- package/dist/client/assets/{collection-tabs-CG0FZsKM.js → collection-tabs-CC2gd3e0.js} +1 -1
- package/dist/client/assets/{command-KNTOL3kj.js → command-q6wXbz-P.js} +1 -1
- package/dist/client/assets/commerce-onboarding-2US92_s_.js +1 -0
- package/dist/client/assets/{companions-core-FTf4qGMY.js → companions-core-COK3zE1T.js} +1 -1
- package/dist/client/assets/{connect-BE9doFql.js → connect-C_2JUaG9.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BoS5Hu9R.js → connect-desktop-dialog-DhAWxkv7.js} +1 -1
- package/dist/client/assets/{connection-card-Dbj_E-0a.js → connection-card-3KsArvFb.js} +1 -1
- package/dist/client/assets/{connection-detail-V6mFx9e6.js → connection-detail-DnlGu2cE.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-D0VhJo5T.js → connection-form-helpers-CkWktsxW.js} +1 -1
- package/dist/client/assets/{connections-fj3C3XzM.js → connections-CEGqW20q.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DlsoDrW9.js → decopilot-sse-pool-CHSNG2R3.js} +1 -1
- package/dist/client/assets/{dialog-CwEHiSMU.js → dialog-DflEsAVp.js} +1 -1
- package/dist/client/assets/{domain-settings-lLJfdhn2.js → domain-settings-CmBXs5S4.js} +1 -1
- package/dist/client/assets/{drawer-NqC3cUty.js → drawer-g5OBTlHu.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Dui6084c.js → dropdown-menu-Bn43QpEP.js} +1 -1
- package/dist/client/assets/{empty-state--30EXuZG.js → empty-state-DWA8aJpv.js} +1 -1
- package/dist/client/assets/{extract-connection-data-5mcb4Mog.js → extract-connection-data-BADrHucW.js} +1 -1
- package/dist/client/assets/{file-explorer-CgOnjl_S.js → file-explorer-D_NLzAhM.js} +1 -1
- package/dist/client/assets/{file-type-icon-P_pN9_xH.js → file-type-icon-CcQDNpN1.js} +8 -8
- package/dist/client/assets/{files-BLAFPbYz.js → files-BXFQeaBN.js} +1 -1
- package/dist/client/assets/{form-5ox058mH.js → form-C6P3tBSr.js} +1 -1
- package/dist/client/assets/{general-6JhynIjZ.js → general-DA8dkTDQ.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BqET8_zQ.js → github-repo-picker-BamRwZo6.js} +1 -1
- package/dist/client/assets/{hooks-Dcj3etNr.js → hooks-D2X3VJWD.js} +1 -1
- package/dist/client/assets/{index-C6ytuOGZ.js → index-BxyxSts9.js} +1 -1
- package/dist/client/assets/{index-C5X0kiyr.js → index-C1uYRrdq.js} +1 -1
- package/dist/client/assets/{index-CyNeJz90.js → index-C5XDTn-4.js} +1 -1
- package/dist/client/assets/{index-C9qzt0Jn.js → index-C7FdAm9g.js} +3 -3
- package/dist/client/assets/{index-Cr82fBda.js → index-CIUn1nKq.js} +1 -1
- package/dist/client/assets/{index-BELfS11E.js → index-CQUm4N48.js} +1 -1
- package/dist/client/assets/{index-qob9QDNh.js → index-CWHoQpVq.js} +1 -1
- package/dist/client/assets/{index-DZ0C-1Pb.js → index-C_hhWkSy.js} +1 -1
- package/dist/client/assets/{index-BGTjziYz.js → index-CjUOg-D4.js} +1 -1
- package/dist/client/assets/{index-BaeEjqV7.js → index-CpcKMJHf.js} +6 -6
- package/dist/client/assets/{index-BbdMwuvN.js → index-Crv29523.js} +1 -1
- package/dist/client/assets/{index-BhPaswkE.js → index-DA0GYA6l.js} +23 -23
- package/dist/client/assets/{index-BNV2EeGI.js → index-DqnBl-rD.js} +1 -1
- package/dist/client/assets/{index-CRmtvsLd.js → index-ZXqsiuwe.js} +1 -1
- package/dist/client/assets/{index-redirect-sMiFiL_K.js → index-redirect-DHk4L7GR.js} +1 -1
- package/dist/client/assets/{input-PlhR5OQl.js → input-CfMu9dzk.js} +1 -1
- package/dist/client/assets/{integration-icon-DmDjDu1T.js → integration-icon-C4RBZhRU.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-D79xzFG6.js → invite-member-dialog-CrOemxN3.js} +1 -1
- package/dist/client/assets/{label-Dgx54R9B.js → label-CrpJWAf1.js} +1 -1
- package/dist/client/assets/{layout-kKX1t2sP.js → layout-Duo3u3mT.js} +1 -1
- package/dist/client/assets/{login-wAm8iucL.js → login-D91aPwsO.js} +1 -1
- package/dist/client/assets/{mcp-oauth-uiWOIXGl.js → mcp-oauth-CklKADlW.js} +1 -1
- package/dist/client/assets/{members-Df7bjsef.js → members-Dog4a2Mg.js} +1 -1
- package/dist/client/assets/{monaco-editor-BkhNLbLQ.js → monaco-editor-B4H9BgjG.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C_chKCRP.js → monitoring-stats-row-CUhp2cAb.js} +1 -1
- package/dist/client/assets/{multi-select-Ds_o80Ow.js → multi-select-CveplexG.js} +1 -1
- package/dist/client/assets/{oauth-callback-DDD-Q2b4.js → oauth-callback-DVLa8LUd.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B5_IzB1y.js → oauth-callback-ai-provider-BqwL9u1C.js} +1 -1
- package/dist/client/assets/{onboarding-B1v12Kxf.js → onboarding-L9R9v_1w.js} +1 -1
- package/dist/client/assets/{org-install-ix32v6HG.js → org-install-DKPiUyNe.js} +1 -1
- package/dist/client/assets/{org-layout-D3jsdku6.js → org-layout-DKf6bmhG.js} +1 -1
- package/dist/client/assets/{organization-choice-DG8veEJJ.js → organization-choice-BppWpWvM.js} +1 -1
- package/dist/client/assets/{orgs-DwwYSo1F.js → orgs-C1piZc3b.js} +1 -1
- package/dist/client/assets/{page-seo-form-B6-Tjapj.js → page-seo-form-BJXEusVN.js} +1 -1
- package/dist/client/assets/page-seo-sheet-qJlKNSEX.js +1 -0
- package/dist/client/assets/{popover-Cc-bUxo9.js → popover-CrleXxNp.js} +1 -1
- package/dist/client/assets/{post-editor-C4wur674.js → post-editor-BT8GSLUo.js} +1 -1
- package/dist/client/assets/{primitives-DzhLuT4o.js → primitives-2H2Ul_eR.js} +1 -1
- package/dist/client/assets/{profile-MRaW8Iku.js → profile-BSzkb3dI.js} +1 -1
- package/dist/client/assets/project-app-view-BDYuE_G5.js +1 -0
- package/dist/client/assets/record-editor-BBeFwRxk.js +1 -0
- package/dist/client/assets/{redirect-editor-LLRc4D2K.js → redirect-editor-SSQ67xNP.js} +1 -1
- package/dist/client/assets/registry-DoJG5JcB.js +2 -0
- package/dist/client/assets/{registry-layout-DkldcL5a.js → registry-layout-BEG9DDsM.js} +1 -1
- package/dist/client/assets/{reports-B-PUwpKU.js → reports-CCU-aTs3.js} +1 -1
- package/dist/client/assets/{require-capability-DLiPnWvZ.js → require-capability-DWm6CNy-.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BZ6DGJsb.js → required-auth-layout-sdkajhxL.js} +1 -1
- package/dist/client/assets/{reset-password-C9volMkn.js → reset-password-C3tyeh9A.js} +1 -1
- package/dist/client/assets/roles-OHoOXwCk.js +1 -0
- package/dist/client/assets/{search-input-CXhpX-Xz.js → search-input-DVmbIwSm.js} +1 -1
- package/dist/client/assets/{secrets-C5-PbNw_.js → secrets-BpxYvB8T.js} +1 -1
- package/dist/client/assets/{sections-editor-BYYH09fn.js → sections-editor-zn9qN-zI.js} +1 -1
- package/dist/client/assets/{select-BHlpCdw9.js → select-Du6tz3kh.js} +1 -1
- package/dist/client/assets/{select-model-DiTMTOsS.js → select-model-CQmu7p41.js} +1 -1
- package/dist/client/assets/{self-tool-result-BYT5inCm.js → self-tool-result-ytgEtrIl.js} +1 -1
- package/dist/client/assets/{seo-editor-BMESJKUG.js → seo-editor-Bje7uBK2.js} +1 -1
- package/dist/client/assets/{settings-layout-BEVTWuIu.js → settings-layout-fbqX-MG3.js} +1 -1
- package/dist/client/assets/{settings-section-DYCGsxoQ.js → settings-section-CJRUKep2.js} +1 -1
- package/dist/client/assets/{shell-controls-CyEjGQVX.js → shell-controls-KusyRLWm.js} +1 -1
- package/dist/client/assets/{shell-layout-DlEDxOSH.js → shell-layout-CKYTXHCu.js} +1 -1
- package/dist/client/assets/{sidebar-BT5oq5Py.js → sidebar-BmhMU5lV.js} +1 -1
- package/dist/client/assets/{skeleton-DR0dV7Rx.js → skeleton-DTqxvLBu.js} +1 -1
- package/dist/client/assets/{sso-CSnQvRdb.js → sso-B1JjQ4Kh.js} +1 -1
- package/dist/client/assets/{store-DCbdRWaM.js → store-BDHKoNfM.js} +1 -1
- package/dist/client/assets/store-registry-DZaeK6xH.js +2 -0
- package/dist/client/assets/{studio-tools-BSpHTnkI.js → studio-tools-D5s2iCWq.js} +1 -1
- package/dist/client/assets/{switch-DNcfs8uV.js → switch-CdtDoLmP.js} +1 -1
- package/dist/client/assets/{table-BO7AXCJj.js → table-D6cnU27A.js} +1 -1
- package/dist/client/assets/{tabs-BOn-uUO8.js → tabs-DPZhfEpX.js} +1 -1
- package/dist/client/assets/{textarea-2FS82hTt.js → textarea-Xd9JewQa.js} +1 -1
- package/dist/client/assets/{toggle-group-Bp5y9M5o.js → toggle-group-C4W2MbVL.js} +1 -1
- package/dist/client/assets/{toolbar-lB-S2vpV.js → toolbar-CihMw0LK.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BX6tvqZL.js → toolbar-icon-button-C5qmOl3U.js} +1 -1
- package/dist/client/assets/{tooltip-D9NGFdPV.js → tooltip-D8I4xgP8.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BQWD6Fbv.js → use-ai-providers-Cmmx4PkW.js} +1 -1
- package/dist/client/assets/{use-api-keys-B9APB1Uz.js → use-api-keys-XSVvKZHS.js} +1 -1
- package/dist/client/assets/{use-automations-Vb2lhz9-.js → use-automations-DacHE3Xy.js} +1 -1
- package/dist/client/assets/{use-autosave-0f1y6oqV.js → use-autosave-CAKCkNau.js} +1 -1
- package/dist/client/assets/{use-capability-COYHR3-p.js → use-capability-CPTz8Ujk.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BRgf5NQf.js → use-clock-tick-155i4HwF.js} +1 -1
- package/dist/client/assets/{use-connection-DpuO4fNw.js → use-connection-DbaNggp4.js} +1 -1
- package/dist/client/assets/{use-copy-BeT4l9EL.js → use-copy-BqB7SD7Y.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-41F9ENXu.js → use-create-virtual-mcp-Btn3qRQf.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CRjEG81o.js → use-debounced-autosave-BZRkS_eh.js} +1 -1
- package/dist/client/assets/{use-debounced-value-NzmZPT1j.js → use-debounced-value-8smeSlAm.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BICXIEvI.js → use-deco-credits-CWim1XTX.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B2udrR1E.js → use-decopilot-events-CA5qoH7E.js} +1 -1
- package/dist/client/assets/{use-delete-connection-I4CFeUrd.js → use-delete-connection-C9fvQqfZ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-D5UxXiFy.js → use-deployment-admin-Boe_Ihmh.js} +1 -1
- package/dist/client/assets/{use-file-configs-BxxfQuJb.js → use-file-configs-Y1J31dyQ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Czt7JOf8.js → use-infinite-scroll-vHSG7AxL.js} +1 -1
- package/dist/client/assets/{use-join-requests-BAcrUcz7.js → use-join-requests-D9SB3yeo.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CnFSrLEj.js → use-mcp-auth-status-BqXsT5WV.js} +1 -1
- package/dist/client/assets/{use-mcp-client-tcmKmN21.js → use-mcp-client-DDmvok5R.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DIqHvolA.js → use-mcp-tools-B71sSTr4.js} +1 -1
- package/dist/client/assets/{use-members-atWSP-WF.js → use-members-WvOf4_vR.js} +1 -1
- package/dist/client/assets/{use-mobile-2yLfYt8o.js → use-mobile-BlZOnSdH.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BAhIUAJc.js → use-navigate-to-agent-BJfnV5Hb.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CF9Xv674.js → use-org-auth-client-DOe1-YEw.js} +1 -1
- package/dist/client/assets/{use-org-sso-D55i4f0_.js → use-org-sso-CLusgGXY.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CTaZXibc.js → use-organization-roles-BQ1sH-WS.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Coxn0MdD.js → use-organization-settings-C2Rlhb_g.js} +1 -1
- package/dist/client/assets/{use-registry-app-hSt4mgU8.js → use-registry-app-BkNbCzQ_.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Mt2VCkjn.js → use-registry-connections-1FFiww3l.js} +1 -1
- package/dist/client/assets/{use-secrets-CgXohDMi.js → use-secrets-B8shAzNP.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BADjzMyd.js → use-status-sounds-BSx0lVm6.js} +1 -1
- package/dist/client/assets/{use-view-mode-h6gpir15.js → use-view-mode-DYRrwd_4.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-MeqW96-1.js → use-virtual-mcp-D4AVSx6g.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DTsg_ujq.js +1 -0
- package/dist/client/assets/{useRouterState-N0q5mOQR.js → useRouterState-BY0JMcAQ.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BBxTPEk3.js +1 -0
- package/dist/client/assets/{users-CJv38_2t.js → users-CllKdANz.js} +1 -1
- package/dist/client/assets/{variant-calendar-erhHGjtK.js → variant-calendar-CouSe9-U.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Wr5FnjMg.js → view-mode-toggle-DI97LcTH.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/block-document-pbbZw2CP.js +0 -3
- package/dist/client/assets/collection-detail-DZbpwovT.js +0 -1
- package/dist/client/assets/commerce-onboarding-BMEY1DKe.js +0 -1
- package/dist/client/assets/page-seo-sheet-CPcGy_lc.js +0 -1
- package/dist/client/assets/project-app-view-Dp8aqKn9.js +0 -1
- package/dist/client/assets/record-editor-DNp_YJwU.js +0 -1
- package/dist/client/assets/registry-bT72xUUs.js +0 -2
- package/dist/client/assets/roles-CiGDH8Hn.js +0 -1
- package/dist/client/assets/store-registry-C2gPY7Xh.js +0 -2
- package/dist/client/assets/useInfiniteQuery-C6O0Jfl2.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DrfctcYn.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,f as o,j as i,N as l}from"./index-
|
|
1
|
+
import{c as a,f as o,j as i,N as l}from"./index-CpcKMJHf.js";function m(){const e=a.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{org:r}=o(t);let s;return e[1]!==r?(s=i.jsx(l,{to:"/$org/files",params:{org:r},replace:!0}),e[1]=r,e[2]=s):s=e[2],s}export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dU as C,c as d,j as c,ai as j,r as f,m as p,bc as b,dV as v,dW as h}from"./index-
|
|
1
|
+
import{dU as C,c as d,j as c,ai as j,r as f,m as p,bc as b,dV as v,dW as h}from"./index-CpcKMJHf.js";import{L as N}from"./label-CrpJWAf1.js";const E=C,g=f.createContext({}),M=t=>{const e=d.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(j,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=d.c(13),e=f.useContext(g),s=f.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=f.createContext({});function w(t){const e=d.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=f.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=d.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=d.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(b,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=d.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=d.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{M as F,E as a,w as b,L as c,P as d,y as e,R as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as G,F as te,r as Z,j as i,B as X,L as ge,J as de,M as W,b as Y,d as me,o as ue,R as fe,P as pe,e as oe,q as ee,t as B,K as ie,ai as se,G as ne,x as he}from"./index-BaeEjqV7.js";import{P as M}from"./index-C6ytuOGZ.js";import{A as xe,b as je}from"./alert-D564TwSW.js";import{i as Se}from"./ArrowRight-ZH8AfOrt.js";import{n as ze}from"./LinkExternal01-BE6iPh6Z.js";import{s as ve}from"./XClose-Ckol2oql.js";import{u as be}from"./use-org-auth-client-CF9Xv674.js";import{u as ye}from"./use-debounced-autosave-CRjEG81o.js";import{A as Oe}from"./avatar-CDCXeyeq.js";import{I as ae}from"./input-PlhR5OQl.js";import{S as re,a as le,b as Q,c as Ce}from"./settings-section-DYCGsxoQ.js";import{D as we}from"./domain-settings-lLJfdhn2.js";import{u as De}from"./studio-tools-BSpHTnkI.js";import{A as _e,a as Ae,b as Ne,c as Fe,g as Te,d as Ee,e as Pe,f as Re}from"./alert-dialog-S-vKrHdP.js";import{R as ke}from"./require-capability-DLiPnWvZ.js";import"./sidebar-BT5oq5Py.js";import"./LayoutLeft-BY0vokwF.js";import"./use-mobile-2yLfYt8o.js";import"./X-BFNxuShY.js";import"./tooltip-D9NGFdPV.js";import"./User01-Cy4n4fwd.js";import"./card-CGoHKQKX.js";import"./ArrowUpRight-CB2lmsga.js";import"./badge-CLbg8brP.js";import"./select-BHlpCdw9.js";import"./Check-8S_h-pNf.js";import"./ChevronDown-D19e4E2W.js";import"./ChevronUp-CDr-5amA.js";import"./use-capability-COYHR3-p.js";import"./access-gate-DAiHI_Ya.js";import"./capability-load-error-Dx6CWw4N.js";function ce(e){return`connect-banner-dismissed:${e}`}function Le(e){if(typeof window>"u")return!0;try{return localStorage.getItem(ce(e))==="1"}catch{return!1}}function Ie(){const e=G.c(17),{org:t}=te();let n;e[0]!==t.id?(n=()=>Le(t.id),e[0]=t.id,e[1]=n):n=e[1];const[u,p]=Z.useState(n);if(u)return null;let o;e[2]!==t.id?(o=()=>{p(!0);try{localStorage.setItem(ce(t.id),"1")}catch{}},e[2]=t.id,e[3]=o):o=e[3];const g=o;let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=i.jsx(ze,{}),e[4]=d):d=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("span",{children:"Use Studio MCP anywhere — paste a command into Claude Code, Cursor, Codex, or any MCP client."}),e[5]=l):l=e[5];let c;e[6]!==t.slug?(c={org:t.slug},e[6]=t.slug,e[7]=c):c=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(Se,{size:12}),e[8]=m):m=e[8];let s;e[9]!==c?(s=i.jsx(X,{asChild:!0,size:"sm",variant:"ghost",className:"text-xs gap-1",children:i.jsxs(ge,{to:"/$org/settings/connect",params:c,children:["Connect to clients ",m]})}),e[9]=c,e[10]=s):s=e[10];let a;e[11]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(ve,{size:14}),e[11]=a):a=e[11];let r;e[12]!==g?(r=i.jsx(X,{variant:"ghost",size:"icon",className:"size-7",onClick:g,"aria-label":"Dismiss",children:a}),e[12]=g,e[13]=r):r=e[13];let f;return e[14]!==s||e[15]!==r?(f=i.jsxs(xe,{variant:"info",className:"items-center",children:[d,i.jsxs(je,{className:"flex-1 flex items-center justify-between gap-2 text-sm",children:[l,i.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s,r]})]})]}),e[14]=s,e[15]=r,e[16]=f):f=e[16],f}const $e=new Set([".well-known","_admin","api","auth","cli","commerce-onboarding","dbos-queue-depth","health","hosted-run-pending","login","mcp","metrics","oauth","oauth-proxy","onboarding","org","report","reset-password"]);function qe(e){return typeof e=="string"&&$e.has(e.trim().toLowerCase())}const Be=de({name:W().min(1,"Name is required").max(255,"Name is too long"),slug:W().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens").refine(e=>!qe(e),"This organization URL is reserved by Studio"),logo:W().optional()});function Ge(e){const t=G.c(17),{value:n,onChange:u,name:p,disabled:o}=e,g=Y(),d=Z.useRef(null);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>d.current?.click(),t[0]=l):l=t[0];const c=l;let m;t[1]!==u||t[2]!==g?(m=H=>{const S=H.target.files?.[0];if(!S)return;if(S.size>2097152){B.error(g("settings.organizationForm.imageTooLarge"));return}const x=new FileReader;x.onerror=()=>B.error(g("settings.organizationForm.failedToReadImage")),x.onloadend=()=>{x.result&&u(x.result),d.current&&(d.current.value="")},x.readAsDataURL(S)},t[1]=u,t[2]=g,t[3]=m):m=t[3];const s=m;let a;t[4]!==g?(a=g("settings.organizationForm.uploadLogoLabel"),t[4]=g,t[5]=a):a=t[5];let r;t[6]!==o||t[7]!==s?(r=i.jsx("input",{ref:d,type:"file",accept:"image/*",onChange:s,className:"hidden",disabled:o}),t[6]=o,t[7]=s,t[8]=r):r=t[8];const f=n||void 0,j=p??"?";let h;t[9]!==f||t[10]!==j?(h=i.jsx(Oe,{url:f,fallback:j,shape:"square",size:"base"}),t[9]=f,t[10]=j,t[11]=h):h=t[11];let z;return t[12]!==o||t[13]!==a||t[14]!==r||t[15]!==h?(z=i.jsxs("button",{type:"button",onClick:c,disabled:o,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":a,children:[r,h]}),t[12]=o,t[13]=a,t[14]=r,t[15]=h,t[16]=z):z=t[16],z}function Ve(){const e=Y(),t=me(),{org:n}=te(),u=be(),p=ue(),o=fe({resolver:pe(Be),values:{name:n.name??"",slug:n.slug??"",logo:n.logo??""}}),g=oe({mutationFn:async s=>{const a={name:s.name,slug:s.slug};s.logo&&(a.logo=s.logo);const r=await u.organization.update({data:a});if(r?.error)throw new Error(r.error.message||e("settings.organizationForm.failedToUpdateOrg"));return r},onSuccess:(s,a)=>{ee("organization_settings_updated",{organization_id:n.id,fields:Object.keys(a)}),p.invalidateQueries({queryKey:ie.organizations()}),p.invalidateQueries({queryKey:ie.activeOrganization(n.slug)}),B.success(e("settings.organizationForm.updateSuccess")),s?.data?.slug&&s.data.slug!==n.slug&&t({to:"/$org/settings/general",params:{org:s.data.slug}})},onError:(s,a)=>{ee("organization_settings_update_failed",{organization_id:n.id,fields:Object.keys(a),error:s instanceof Error?s.message:String(s)}),B.error(s instanceof Error?s.message:e("settings.organizationForm.failedToUpdateOrg"))}}),{schedule:d,flush:l}=ye({save:async()=>{const s=o.control._formState.dirtyFields;if(Object.keys(s).length===0||!await o.trigger())return;const r=o.getValues(),f=o.control._defaultValues;o.reset(r,{keepValues:!0});try{await g.mutateAsync(r)}catch{o.reset(f,{keepValues:!0})}}}),c=o.formState.errors,m=typeof window<"u"?`${window.location.host}/`:"";return i.jsx(re,{children:i.jsxs(le,{children:[i.jsx(Q,{title:e("settings.organizationForm.logoTitle"),description:e("settings.organizationForm.logoDescription"),action:i.jsx(Ge,{value:o.watch("logo"),onChange:s=>{o.setValue("logo",s??"",{shouldDirty:!0}),l()},name:o.watch("name")})}),i.jsx(Q,{title:e("settings.organizationForm.nameTitle"),action:i.jsx(se,{control:o.control,name:"name",render:({field:s})=>i.jsx(ae,{id:"org-name",...s,onChange:a=>{s.onChange(a),d()},onBlur:()=>{s.onBlur(),l()},placeholder:e("settings.organizationForm.namePlaceholder"),className:"w-[280px]"})})}),i.jsx(Q,{title:e("settings.organizationForm.urlTitle"),action:i.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[m&&i.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:m}),i.jsx(se,{control:o.control,name:"slug",render:({field:s})=>i.jsx("input",{id:"org-slug",value:s.value??"",name:s.name,ref:s.ref,placeholder:e("settings.organizationForm.slugPlaceholder"),className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:a=>{const r=a.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");o.setValue("slug",r,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),d()},onBlur:()=>{s.onBlur(),l()}})})]})}),(c.name||c.slug||c.logo)&&i.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[c.name&&i.jsx("p",{className:"text-xs text-destructive",children:c.name.message}),c.slug&&i.jsx("p",{className:"text-xs text-destructive",children:c.slug.message}),c.logo&&i.jsx("p",{className:"text-xs text-destructive",children:c.logo.message})]})]})})}function Ue(){const e=G.c(86),t=Y(),{org:n}=te(),[u,p]=Z.useState(!1),[o,g]=Z.useState(""),d=De();let l;e[0]!==n.id||e[1]!==d?(l=async()=>{await d.call("ORGANIZATION_DELETE",{id:n.id})},e[0]=n.id,e[1]=d,e[2]=l):l=e[2];let c;e[3]!==n.id||e[4]!==n.slug||e[5]!==t?(c=()=>{ee("organization_deleted",{organization_id:n.id}),localStorage.getItem(ne.lastOrgSlug())===n.slug&&localStorage.removeItem(ne.lastOrgSlug()),he(),B.success(t("settings.deleteOrganizationSection.organizationDeleted")),window.location.href="/"},e[3]=n.id,e[4]=n.slug,e[5]=t,e[6]=c):c=e[6];let m;e[7]!==t?(m=v=>{B.error(v instanceof Error?v.message:t("settings.deleteOrganizationSection.failedToDeleteOrganization"))},e[7]=t,e[8]=m):m=e[8];let s;e[9]!==l||e[10]!==c||e[11]!==m?(s={mutationFn:l,onSuccess:c,onError:m},e[9]=l,e[10]=c,e[11]=m,e[12]=s):s=e[12];const a=oe(s);let r;e[13]!==t?(r=t("settings.deleteOrganizationSection.dangerZone"),e[13]=t,e[14]=r):r=e[14];let f;e[15]!==t?(f=t("settings.deleteOrganizationSection.irreversibleActionsDescription"),e[15]=t,e[16]=f):f=e[16];let j;e[17]!==t?(j=t("settings.deleteOrganizationSection.deleteOrganizationTitle"),e[17]=t,e[18]=j):j=e[18];let h;e[19]!==t?(h=t("settings.deleteOrganizationSection.deleteOrganizationDescription"),e[19]=t,e[20]=h):h=e[20];let z;e[21]===Symbol.for("react.memo_cache_sentinel")?(z=()=>p(!0),e[21]=z):z=e[21];const H=a.isPending;let S;e[22]!==t?(S=t("settings.deleteOrganizationSection.deleteButton"),e[22]=t,e[23]=S):S=e[23];let x;e[24]!==a.isPending||e[25]!==S?(x=i.jsx(X,{variant:"destructive",size:"sm",onClick:z,disabled:H,children:S}),e[24]=a.isPending,e[25]=S,e[26]=x):x=e[26];let b;e[27]!==x||e[28]!==j||e[29]!==h?(b=i.jsx(le,{className:"border-destructive/40",children:i.jsx(Q,{title:j,description:h,action:x})}),e[27]=x,e[28]=j,e[29]=h,e[30]=b):b=e[30];let y;e[31]!==b||e[32]!==r||e[33]!==f?(y=i.jsx(re,{title:r,description:f,children:b}),e[31]=b,e[32]=r,e[33]=f,e[34]=y):y=e[34];let V;e[35]===Symbol.for("react.memo_cache_sentinel")?(V=v=>{p(v),v||g("")},e[35]=V):V=e[35];let O;e[36]!==t?(O=t("settings.deleteOrganizationSection.deleteOrganizationQuestion"),e[36]=t,e[37]=O):O=e[37];let C;e[38]!==O?(C=i.jsx(_e,{children:O}),e[38]=O,e[39]=C):C=e[39];let w;e[40]!==n.name||e[41]!==t?(w=t("settings.deleteOrganizationSection.deleteWarning",{organizationName:n.name}),e[40]=n.name,e[41]=t,e[42]=w):w=e[42];let D;e[43]!==w?(D=i.jsx("p",{children:w}),e[43]=w,e[44]=D):D=e[44];let _;e[45]!==n.name||e[46]!==t?(_=t("settings.deleteOrganizationSection.typeToConfirm",{organizationName:n.name}),e[45]=n.name,e[46]=t,e[47]=_):_=e[47];let A;e[48]!==_?(A=i.jsx("p",{className:"mt-3 mb-1.5",children:_}),e[48]=_,e[49]=A):A=e[49];let U;e[50]===Symbol.for("react.memo_cache_sentinel")?(U=v=>g(v.target.value),e[50]=U):U=e[50];let N;e[51]!==o||e[52]!==n.name?(N=i.jsx(ae,{value:o,onChange:U,placeholder:n.name,autoFocus:!0}),e[51]=o,e[52]=n.name,e[53]=N):N=e[53];let F;e[54]!==D||e[55]!==A||e[56]!==N?(F=i.jsx(Ae,{asChild:!0,children:i.jsxs("div",{children:[D,A,N]})}),e[54]=D,e[55]=A,e[56]=N,e[57]=F):F=e[57];let T;e[58]!==C||e[59]!==F?(T=i.jsxs(Ne,{children:[C,F]}),e[58]=C,e[59]=F,e[60]=T):T=e[60];let E;e[61]!==t?(E=t("settings.deleteOrganizationSection.cancel"),e[61]=t,e[62]=E):E=e[62];let P;e[63]!==E?(P=i.jsx(Fe,{children:E}),e[63]=E,e[64]=P):P=e[64];let R;e[65]!==a?(R=()=>a.mutate(),e[65]=a,e[66]=R):R=e[66];const J=o!==n.name||a.isPending;let k;e[67]!==a.isPending||e[68]!==t?(k=a.isPending?t("settings.deleteOrganizationSection.deleting"):t("settings.deleteOrganizationSection.deleteOrganizationAction"),e[67]=a.isPending,e[68]=t,e[69]=k):k=e[69];let L;e[70]!==R||e[71]!==J||e[72]!==k?(L=i.jsx(Te,{onClick:R,disabled:J,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 disabled:opacity-50",children:k}),e[70]=R,e[71]=J,e[72]=k,e[73]=L):L=e[73];let I;e[74]!==P||e[75]!==L?(I=i.jsxs(Ee,{children:[P,L]}),e[74]=P,e[75]=L,e[76]=I):I=e[76];let $;e[77]!==T||e[78]!==I?($=i.jsxs(Pe,{children:[T,I]}),e[77]=T,e[78]=I,e[79]=$):$=e[79];let q;e[80]!==u||e[81]!==$?(q=i.jsx(Re,{open:u,onOpenChange:V,children:$}),e[80]=u,e[81]=$,e[82]=q):q=e[82];let K;return e[83]!==y||e[84]!==q?(K=i.jsxs(i.Fragment,{children:[y,q]}),e[83]=y,e[84]=q,e[85]=K):K=e[85],K}function Ke(){const e=G.c(10),t=Y();let n;e[0]!==t?(n=t("settings.orgGeneral.organization"),e[0]=t,e[1]=n):n=e[1];let u;e[2]!==n?(u=i.jsx(M.Title,{children:n}),e[2]=n,e[3]=u):u=e[3];let p,o,g,d;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsx(Ie,{}),o=i.jsx(Ve,{}),g=i.jsx(we,{}),d=i.jsx(Ue,{}),e[4]=p,e[5]=o,e[6]=g,e[7]=d):(p=e[4],o=e[5],g=e[6],d=e[7]);let l;return e[8]!==u?(l=i.jsx(M,{children:i.jsx(M.Content,{children:i.jsx(M.Body,{children:i.jsxs(Ce,{children:[u,p,o,g,d]})})})}),e[8]=u,e[9]=l):l=e[9],l}function yt(){const e=G.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(ke,{capability:"org:manage",area:"general settings",children:i.jsx(Ke,{})}),e[0]=t):t=e[0],t}export{yt as default};
|
|
1
|
+
import{c as G,F as te,r as Z,j as i,B as X,L as ge,J as de,M as W,b as Y,d as me,o as ue,R as fe,P as pe,e as oe,q as ee,t as B,K as ie,ai as se,G as ne,w as he}from"./index-CpcKMJHf.js";import{P as M}from"./index-BxyxSts9.js";import{A as xe,b as je}from"./alert-BPcaPAJj.js";import{i as Se}from"./ArrowRight-AiWOWM1Z.js";import{n as ze}from"./LinkExternal01-DzfAn4aY.js";import{s as ve}from"./XClose-EYXyD43I.js";import{u as be}from"./use-org-auth-client-DOe1-YEw.js";import{u as ye}from"./use-debounced-autosave-BZRkS_eh.js";import{A as Oe}from"./avatar-STUuRBeL.js";import{I as ae}from"./input-CfMu9dzk.js";import{S as re,a as le,b as Q,c as Ce}from"./settings-section-CJRUKep2.js";import{D as we}from"./domain-settings-CmBXs5S4.js";import{u as De}from"./studio-tools-D5s2iCWq.js";import{A as _e,a as Ae,b as Ne,c as Fe,g as Te,d as Ee,e as Pe,f as Re}from"./alert-dialog-C9TCdYEA.js";import{R as ke}from"./require-capability-DWm6CNy-.js";import"./sidebar-BmhMU5lV.js";import"./LayoutLeft-CxMDbMdN.js";import"./use-mobile-BlZOnSdH.js";import"./X-CfAlZN0E.js";import"./tooltip-D8I4xgP8.js";import"./User01-CWpJwa6r.js";import"./card-eu6g3Ufc.js";import"./ArrowUpRight-B2LSEvMX.js";import"./badge-BHUFjOp2.js";import"./select-Du6tz3kh.js";import"./Check-BWvX1ZXX.js";import"./ChevronDown-CjhsyPt5.js";import"./ChevronUp-CJR37gbq.js";import"./use-capability-CPTz8Ujk.js";import"./access-gate-Cv1dfvoj.js";import"./capability-load-error-B3GGAYV9.js";function ce(e){return`connect-banner-dismissed:${e}`}function Le(e){if(typeof window>"u")return!0;try{return localStorage.getItem(ce(e))==="1"}catch{return!1}}function Ie(){const e=G.c(17),{org:t}=te();let n;e[0]!==t.id?(n=()=>Le(t.id),e[0]=t.id,e[1]=n):n=e[1];const[u,p]=Z.useState(n);if(u)return null;let o;e[2]!==t.id?(o=()=>{p(!0);try{localStorage.setItem(ce(t.id),"1")}catch{}},e[2]=t.id,e[3]=o):o=e[3];const g=o;let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=i.jsx(ze,{}),e[4]=d):d=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("span",{children:"Use Studio MCP anywhere — paste a command into Claude Code, Cursor, Codex, or any MCP client."}),e[5]=l):l=e[5];let c;e[6]!==t.slug?(c={org:t.slug},e[6]=t.slug,e[7]=c):c=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(Se,{size:12}),e[8]=m):m=e[8];let s;e[9]!==c?(s=i.jsx(X,{asChild:!0,size:"sm",variant:"ghost",className:"text-xs gap-1",children:i.jsxs(ge,{to:"/$org/settings/connect",params:c,children:["Connect to clients ",m]})}),e[9]=c,e[10]=s):s=e[10];let a;e[11]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(ve,{size:14}),e[11]=a):a=e[11];let r;e[12]!==g?(r=i.jsx(X,{variant:"ghost",size:"icon",className:"size-7",onClick:g,"aria-label":"Dismiss",children:a}),e[12]=g,e[13]=r):r=e[13];let f;return e[14]!==s||e[15]!==r?(f=i.jsxs(xe,{variant:"info",className:"items-center",children:[d,i.jsxs(je,{className:"flex-1 flex items-center justify-between gap-2 text-sm",children:[l,i.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s,r]})]})]}),e[14]=s,e[15]=r,e[16]=f):f=e[16],f}const $e=new Set([".well-known","_admin","api","auth","cli","commerce-onboarding","dbos-queue-depth","health","hosted-run-pending","login","mcp","metrics","oauth","oauth-proxy","onboarding","org","report","reset-password"]);function qe(e){return typeof e=="string"&&$e.has(e.trim().toLowerCase())}const Be=de({name:W().min(1,"Name is required").max(255,"Name is too long"),slug:W().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens").refine(e=>!qe(e),"This organization URL is reserved by Studio"),logo:W().optional()});function Ge(e){const t=G.c(17),{value:n,onChange:u,name:p,disabled:o}=e,g=Y(),d=Z.useRef(null);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>d.current?.click(),t[0]=l):l=t[0];const c=l;let m;t[1]!==u||t[2]!==g?(m=H=>{const S=H.target.files?.[0];if(!S)return;if(S.size>2097152){B.error(g("settings.organizationForm.imageTooLarge"));return}const x=new FileReader;x.onerror=()=>B.error(g("settings.organizationForm.failedToReadImage")),x.onloadend=()=>{x.result&&u(x.result),d.current&&(d.current.value="")},x.readAsDataURL(S)},t[1]=u,t[2]=g,t[3]=m):m=t[3];const s=m;let a;t[4]!==g?(a=g("settings.organizationForm.uploadLogoLabel"),t[4]=g,t[5]=a):a=t[5];let r;t[6]!==o||t[7]!==s?(r=i.jsx("input",{ref:d,type:"file",accept:"image/*",onChange:s,className:"hidden",disabled:o}),t[6]=o,t[7]=s,t[8]=r):r=t[8];const f=n||void 0,j=p??"?";let h;t[9]!==f||t[10]!==j?(h=i.jsx(Oe,{url:f,fallback:j,shape:"square",size:"base"}),t[9]=f,t[10]=j,t[11]=h):h=t[11];let z;return t[12]!==o||t[13]!==a||t[14]!==r||t[15]!==h?(z=i.jsxs("button",{type:"button",onClick:c,disabled:o,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":a,children:[r,h]}),t[12]=o,t[13]=a,t[14]=r,t[15]=h,t[16]=z):z=t[16],z}function Ve(){const e=Y(),t=me(),{org:n}=te(),u=be(),p=ue(),o=fe({resolver:pe(Be),values:{name:n.name??"",slug:n.slug??"",logo:n.logo??""}}),g=oe({mutationFn:async s=>{const a={name:s.name,slug:s.slug};s.logo&&(a.logo=s.logo);const r=await u.organization.update({data:a});if(r?.error)throw new Error(r.error.message||e("settings.organizationForm.failedToUpdateOrg"));return r},onSuccess:(s,a)=>{ee("organization_settings_updated",{organization_id:n.id,fields:Object.keys(a)}),p.invalidateQueries({queryKey:ie.organizations()}),p.invalidateQueries({queryKey:ie.activeOrganization(n.slug)}),B.success(e("settings.organizationForm.updateSuccess")),s?.data?.slug&&s.data.slug!==n.slug&&t({to:"/$org/settings/general",params:{org:s.data.slug}})},onError:(s,a)=>{ee("organization_settings_update_failed",{organization_id:n.id,fields:Object.keys(a),error:s instanceof Error?s.message:String(s)}),B.error(s instanceof Error?s.message:e("settings.organizationForm.failedToUpdateOrg"))}}),{schedule:d,flush:l}=ye({save:async()=>{const s=o.control._formState.dirtyFields;if(Object.keys(s).length===0||!await o.trigger())return;const r=o.getValues(),f=o.control._defaultValues;o.reset(r,{keepValues:!0});try{await g.mutateAsync(r)}catch{o.reset(f,{keepValues:!0})}}}),c=o.formState.errors,m=typeof window<"u"?`${window.location.host}/`:"";return i.jsx(re,{children:i.jsxs(le,{children:[i.jsx(Q,{title:e("settings.organizationForm.logoTitle"),description:e("settings.organizationForm.logoDescription"),action:i.jsx(Ge,{value:o.watch("logo"),onChange:s=>{o.setValue("logo",s??"",{shouldDirty:!0}),l()},name:o.watch("name")})}),i.jsx(Q,{title:e("settings.organizationForm.nameTitle"),action:i.jsx(se,{control:o.control,name:"name",render:({field:s})=>i.jsx(ae,{id:"org-name",...s,onChange:a=>{s.onChange(a),d()},onBlur:()=>{s.onBlur(),l()},placeholder:e("settings.organizationForm.namePlaceholder"),className:"w-[280px]"})})}),i.jsx(Q,{title:e("settings.organizationForm.urlTitle"),action:i.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[m&&i.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:m}),i.jsx(se,{control:o.control,name:"slug",render:({field:s})=>i.jsx("input",{id:"org-slug",value:s.value??"",name:s.name,ref:s.ref,placeholder:e("settings.organizationForm.slugPlaceholder"),className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:a=>{const r=a.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");o.setValue("slug",r,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),d()},onBlur:()=>{s.onBlur(),l()}})})]})}),(c.name||c.slug||c.logo)&&i.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[c.name&&i.jsx("p",{className:"text-xs text-destructive",children:c.name.message}),c.slug&&i.jsx("p",{className:"text-xs text-destructive",children:c.slug.message}),c.logo&&i.jsx("p",{className:"text-xs text-destructive",children:c.logo.message})]})]})})}function Ue(){const e=G.c(86),t=Y(),{org:n}=te(),[u,p]=Z.useState(!1),[o,g]=Z.useState(""),d=De();let l;e[0]!==n.id||e[1]!==d?(l=async()=>{await d.call("ORGANIZATION_DELETE",{id:n.id})},e[0]=n.id,e[1]=d,e[2]=l):l=e[2];let c;e[3]!==n.id||e[4]!==n.slug||e[5]!==t?(c=()=>{ee("organization_deleted",{organization_id:n.id}),localStorage.getItem(ne.lastOrgSlug())===n.slug&&localStorage.removeItem(ne.lastOrgSlug()),he(),B.success(t("settings.deleteOrganizationSection.organizationDeleted")),window.location.href="/"},e[3]=n.id,e[4]=n.slug,e[5]=t,e[6]=c):c=e[6];let m;e[7]!==t?(m=v=>{B.error(v instanceof Error?v.message:t("settings.deleteOrganizationSection.failedToDeleteOrganization"))},e[7]=t,e[8]=m):m=e[8];let s;e[9]!==l||e[10]!==c||e[11]!==m?(s={mutationFn:l,onSuccess:c,onError:m},e[9]=l,e[10]=c,e[11]=m,e[12]=s):s=e[12];const a=oe(s);let r;e[13]!==t?(r=t("settings.deleteOrganizationSection.dangerZone"),e[13]=t,e[14]=r):r=e[14];let f;e[15]!==t?(f=t("settings.deleteOrganizationSection.irreversibleActionsDescription"),e[15]=t,e[16]=f):f=e[16];let j;e[17]!==t?(j=t("settings.deleteOrganizationSection.deleteOrganizationTitle"),e[17]=t,e[18]=j):j=e[18];let h;e[19]!==t?(h=t("settings.deleteOrganizationSection.deleteOrganizationDescription"),e[19]=t,e[20]=h):h=e[20];let z;e[21]===Symbol.for("react.memo_cache_sentinel")?(z=()=>p(!0),e[21]=z):z=e[21];const H=a.isPending;let S;e[22]!==t?(S=t("settings.deleteOrganizationSection.deleteButton"),e[22]=t,e[23]=S):S=e[23];let x;e[24]!==a.isPending||e[25]!==S?(x=i.jsx(X,{variant:"destructive",size:"sm",onClick:z,disabled:H,children:S}),e[24]=a.isPending,e[25]=S,e[26]=x):x=e[26];let b;e[27]!==x||e[28]!==j||e[29]!==h?(b=i.jsx(le,{className:"border-destructive/40",children:i.jsx(Q,{title:j,description:h,action:x})}),e[27]=x,e[28]=j,e[29]=h,e[30]=b):b=e[30];let y;e[31]!==b||e[32]!==r||e[33]!==f?(y=i.jsx(re,{title:r,description:f,children:b}),e[31]=b,e[32]=r,e[33]=f,e[34]=y):y=e[34];let V;e[35]===Symbol.for("react.memo_cache_sentinel")?(V=v=>{p(v),v||g("")},e[35]=V):V=e[35];let O;e[36]!==t?(O=t("settings.deleteOrganizationSection.deleteOrganizationQuestion"),e[36]=t,e[37]=O):O=e[37];let C;e[38]!==O?(C=i.jsx(_e,{children:O}),e[38]=O,e[39]=C):C=e[39];let w;e[40]!==n.name||e[41]!==t?(w=t("settings.deleteOrganizationSection.deleteWarning",{organizationName:n.name}),e[40]=n.name,e[41]=t,e[42]=w):w=e[42];let D;e[43]!==w?(D=i.jsx("p",{children:w}),e[43]=w,e[44]=D):D=e[44];let _;e[45]!==n.name||e[46]!==t?(_=t("settings.deleteOrganizationSection.typeToConfirm",{organizationName:n.name}),e[45]=n.name,e[46]=t,e[47]=_):_=e[47];let A;e[48]!==_?(A=i.jsx("p",{className:"mt-3 mb-1.5",children:_}),e[48]=_,e[49]=A):A=e[49];let U;e[50]===Symbol.for("react.memo_cache_sentinel")?(U=v=>g(v.target.value),e[50]=U):U=e[50];let N;e[51]!==o||e[52]!==n.name?(N=i.jsx(ae,{value:o,onChange:U,placeholder:n.name,autoFocus:!0}),e[51]=o,e[52]=n.name,e[53]=N):N=e[53];let F;e[54]!==D||e[55]!==A||e[56]!==N?(F=i.jsx(Ae,{asChild:!0,children:i.jsxs("div",{children:[D,A,N]})}),e[54]=D,e[55]=A,e[56]=N,e[57]=F):F=e[57];let T;e[58]!==C||e[59]!==F?(T=i.jsxs(Ne,{children:[C,F]}),e[58]=C,e[59]=F,e[60]=T):T=e[60];let E;e[61]!==t?(E=t("settings.deleteOrganizationSection.cancel"),e[61]=t,e[62]=E):E=e[62];let P;e[63]!==E?(P=i.jsx(Fe,{children:E}),e[63]=E,e[64]=P):P=e[64];let R;e[65]!==a?(R=()=>a.mutate(),e[65]=a,e[66]=R):R=e[66];const J=o!==n.name||a.isPending;let k;e[67]!==a.isPending||e[68]!==t?(k=a.isPending?t("settings.deleteOrganizationSection.deleting"):t("settings.deleteOrganizationSection.deleteOrganizationAction"),e[67]=a.isPending,e[68]=t,e[69]=k):k=e[69];let L;e[70]!==R||e[71]!==J||e[72]!==k?(L=i.jsx(Te,{onClick:R,disabled:J,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 disabled:opacity-50",children:k}),e[70]=R,e[71]=J,e[72]=k,e[73]=L):L=e[73];let I;e[74]!==P||e[75]!==L?(I=i.jsxs(Ee,{children:[P,L]}),e[74]=P,e[75]=L,e[76]=I):I=e[76];let $;e[77]!==T||e[78]!==I?($=i.jsxs(Pe,{children:[T,I]}),e[77]=T,e[78]=I,e[79]=$):$=e[79];let q;e[80]!==u||e[81]!==$?(q=i.jsx(Re,{open:u,onOpenChange:V,children:$}),e[80]=u,e[81]=$,e[82]=q):q=e[82];let K;return e[83]!==y||e[84]!==q?(K=i.jsxs(i.Fragment,{children:[y,q]}),e[83]=y,e[84]=q,e[85]=K):K=e[85],K}function Ke(){const e=G.c(10),t=Y();let n;e[0]!==t?(n=t("settings.orgGeneral.organization"),e[0]=t,e[1]=n):n=e[1];let u;e[2]!==n?(u=i.jsx(M.Title,{children:n}),e[2]=n,e[3]=u):u=e[3];let p,o,g,d;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsx(Ie,{}),o=i.jsx(Ve,{}),g=i.jsx(we,{}),d=i.jsx(Ue,{}),e[4]=p,e[5]=o,e[6]=g,e[7]=d):(p=e[4],o=e[5],g=e[6],d=e[7]);let l;return e[8]!==u?(l=i.jsx(M,{children:i.jsx(M.Content,{children:i.jsx(M.Body,{children:i.jsxs(Ce,{children:[u,p,o,g,d]})})})}),e[8]=u,e[9]=l):l=e[9],l}function yt(){const e=G.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(ke,{capability:"org:manage",area:"general settings",children:i.jsx(Ke,{})}),e[0]=t):t=e[0],t}export{yt as default};
|
package/dist/client/assets/{github-repo-picker-BqET8_zQ.js → github-repo-picker-BamRwZo6.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as ee,a as re,o as X,r as z,ad as V,c as M,b as $,j as t,k as Q,e as te,t as K,dY as ae,K as q,n as ce,m as Y,B as ue,w as de,y as me}from"./index-BaeEjqV7.js";import{a as fe,b as ge,d as xe,e as pe}from"./dialog-CwEHiSMU.js";import{C as he}from"./collection-search-DT4BSCdW.js";import{u as be}from"./use-debounced-value-NzmZPT1j.js";import{b as ne,u as ye}from"./use-connection-DpuO4fNw.js";import{u as J,S as se}from"./use-mcp-client-tcmKmN21.js";import{a as oe}from"./authenticate-and-persist-oauth-ccpCvQUL.js";import{b as ie}from"./Settings02-Dg48gy-m.js";import{Q as je}from"./agent-icon-DJ-fLRqx.js";import{u as Ne,G as H}from"./use-registry-app-hSt4mgU8.js";import{e as ve}from"./extract-connection-data-5mcb4Mog.js";import{c as ke}from"./use-navigate-to-agent-BAhIUAJc.js";import{p as Z,f as Ce}from"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import{g as we}from"./github-repo-scope-DjMZbiKa.js";const Re="deco/mcp-github";function Se(P){const{org:e}=ee(),{data:a}=re.useSession(),p=ne(),k=X(),[o,d]=z.useState("idle"),[i,s]=z.useState(null),[f,v]=z.useState(null),{data:b,isLoading:C}=Ne(Re,{enabled:P.enabled}),c=z.useRef(!1);P.enabled&&b&&!C&&!c.current&&a?.user?.id&&o==="idle"&&(c.current=!0,l());async function l(){if(!(!b||!a?.user?.id||!e))try{d("installing"),s(null);const u=ve(b,e.id,a.user.id,{remoteIndex:0});if(!u.connection_url)throw new Error("Registry item is missing a remote URL for mcp-github");const{id:g}=await p.create.mutateAsync(u);d("authenticating");const h=await oe({connectionId:g,orgId:e.id,orgSlug:e.slug,persistFallback:m=>p.update.mutateAsync({id:g,data:{connection_token:m}}).then(()=>{})});if(h.ran&&!h.ok){try{await p.delete.mutateAsync(g)}catch{}throw new Error(h.error&&h.error!=="no token received"?h.error:"No token received from GitHub")}V(k,e.id),v(u),d("ready")}catch(u){s(u instanceof Error?u.message:String(u)),d("error")}}function r(){d("idle"),s(null),v(null),c.current=!1}return P.enabled&&C&&o==="idle"?{status:"installing",error:null,connection:null,retry:r}:{status:o,error:i,connection:f,retry:r}}function Ke(P){const e=M.c(27),{open:a,onOpenChange:p,title:k,onImportComplete:o,mode:d}=P,i=d===void 0?"agent":d,s=$();let f;e[0]!==i||e[1]!==s||e[2]!==k?(f=k??s(i==="connection"?"common.githubRepoPicker.addRepo":"common.githubRepoPicker.importFromGitHub"),e[0]=i,e[1]=s,e[2]=k,e[3]=f):f=e[3];const v=f,[b,C]=z.useState(null);let c;e[4]!==v?(c=t.jsx(fe,{className:"sr-only",children:t.jsx(ge,{children:v})}),e[4]=v,e[5]=c):c=e[5];let l;e[6]!==v||e[7]!==b||e[8]!==s?(l=t.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3 shrink-0",children:b?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":s("common.githubRepoPicker.backToAccounts"),children:t.jsx(ie,{size:16})}),t.jsx("img",{src:b.avatarUrl,alt:b.login,className:"size-5 rounded-full ring-1 ring-border shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:b.login})]}):t.jsxs(t.Fragment,{children:[t.jsx(H,{className:"size-4 text-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:v})]})}),e[6]=v,e[7]=b,e[8]=s,e[9]=l):l=e[9];let r;e[10]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Q,{size:18,className:"animate-spin text-muted-foreground"})}),e[10]=r):r=e[10];let u;e[11]!==p?(u=()=>p(!1),e[11]=p,e[12]=u):u=e[12];let x;e[13]!==i||e[14]!==o||e[15]!==a||e[16]!==b||e[17]!==u?(x=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx(z.Suspense,{fallback:r,children:t.jsx(Pe,{open:a,onComplete:u,selectedInstallation:b,onSelectInstallation:C,onImportComplete:o,mode:i})})}),e[13]=i,e[14]=o,e[15]=a,e[16]=b,e[17]=u,e[18]=x):x=e[18];let g;e[19]!==c||e[20]!==l||e[21]!==x?(g=t.jsxs(xe,{className:"sm:max-w-[560px] h-[85svh] sm:h-[520px] p-0 gap-0 overflow-hidden flex flex-col",children:[c,l,x]}),e[19]=c,e[20]=l,e[21]=x,e[22]=g):g=e[22];let h;return e[23]!==p||e[24]!==a||e[25]!==g?(h=t.jsx(pe,{open:a,onOpenChange:p,children:g}),e[23]=p,e[24]=a,e[25]=g,e[26]=h):h=e[26],h}function Pe({open:P,onComplete:e,selectedInstallation:a,onSelectInstallation:p,onImportComplete:k,mode:o="agent"}){const d=$(),{org:i}=ee(),s=X(),f=ke(),[v,b]=z.useState(null),C=ye({slug:"mcp-github"}),c=we(C),l=Se({enabled:P&&c.length===0}),r=c.length===1?c[0]??null:v,u=J({connectionId:r?.id??"",orgId:i.id,orgSlug:i.slug}),x=J({connectionId:se,orgId:i.id,orgSlug:i.slug}),g=async(n,y)=>{try{const w=await u.callTool({name:"get_file_contents",arguments:{owner:n.owner,repo:n.name,path:y}});if(w.isError)return null;const S=w.content?.find(I=>I.type==="resource")?.resource?.text;if(!S)return null;try{const I=JSON.parse(S);return typeof I=="string"?I:JSON.stringify(I)}catch{return S}}catch{return null}},h=(n,y)=>{Promise.all([g(y,"AGENTS.md"),g(y,"CLAUDE.md")]).then(async([j,w])=>{const R=j??w??null;R&&(await x.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:n,data:{metadata:{instructions:R}}}}),V(s,i.id))}).catch(j=>{console.error("GitHub instructions fetch failed:",j)})},m=te({mutationFn:async n=>{if(!r||!a)throw new Error("No GitHub connection or installation");const y=a.installationId;if(o==="connection"){const{childConnectionId:R}=await Z({orgSlug:i.slug,sourceConnection:r,installationId:y,owner:n.owner,repo:n.name,githubCallTool:S=>u.callTool(S),selfCallTool:S=>x.callTool(S),orgShared:!0});return{virtualMcpId:null,repo:n,connectionId:R,item:null}}const{childConnectionId:j}=await Z({orgSlug:i.slug,sourceConnection:r,installationId:y,owner:n.owner,repo:n.name,githubCallTool:R=>u.callTool(R),selfCallTool:R=>x.callTool(R)});let w=null;try{const R=await x.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:n.name,description:n.description||"Imported from GitHub",pinned:!1,icon:null,metadata:{githubRepo:{owner:n.owner,name:n.name,url:n.url,installationId:y,connectionId:j},instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"},chatDefaultOpen:!0}}},connections:[{connection_id:j}]}}}),S=R.structuredContent??R,I=S.item?.id;if(!S.item||!I)throw new Error("Failed to create the imported agent");return w=I,{virtualMcpId:I,repo:n,connectionId:j,item:S.item}}catch(R){throw w&&await x.callTool({name:"COLLECTION_VIRTUAL_MCP_DELETE",arguments:{id:w}}).catch(()=>{}),await x.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:j,force:!0}}).catch(()=>{}),R}},onSuccess:({virtualMcpId:n,repo:y,connectionId:j,item:w})=>{if(o==="connection"||!n||!w){V(s,i.id),ae(s,i.id),K.success(d("common.githubRepoPicker.addedRepo",{name:y.name})),e();return}if(s.setQueryData(q.collectionItem(x,i.id,"","VIRTUAL_MCP",n),{item:w}),V(s,i.id),h(n,y),k){k({virtualMcpId:n,repo:y,connectionId:j});return}K.success(d("common.githubRepoPicker.importedRepo",{name:y.name})),e(),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),f(n)},onError:n=>{K.error(d("common.githubRepoPicker.failedImport",{error:n instanceof Error?n.message:d("common.githubRepoPicker.unknownError")}))}});return l.status==="installing"||l.status==="authenticating"?t.jsx(W,{status:l.status,error:null,retry:l.retry}):l.status==="error"?t.jsx(W,{status:"error",error:l.error,retry:l.retry}):c.length===0&&l.status==="idle"?t.jsx(W,{status:"installing",error:null,retry:l.retry}):c.length>1&&!r?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:d("common.githubRepoPicker.selectConnection")})}),c.map(n=>t.jsxs("button",{type:"button",onClick:()=>b(n),className:"flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left",children:[n.icon?t.jsx("img",{src:n.icon,alt:n.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(H,{className:"size-3.5 text-muted-foreground"})}),t.jsx("span",{className:"text-sm font-medium",children:n.title})]},n.id))]}):r?a?t.jsx(Te,{connectionId:r.id,orgId:i.id,orgSlug:i.slug,installation:a,onSelectRepo:n=>m.mutate(n),isSaving:m.isPending}):t.jsx(Ie,{connectionId:r.id,orgId:i.id,orgSlug:i.slug,onSelect:p,showBackButton:c.length>1,onBack:()=>b(null)}):null}function Ie(P){const e=M.c(75),{connectionId:a,orgId:p,orgSlug:k,onSelect:o,showBackButton:d,onBack:i}=P,s=$();let f;e[0]!==p||e[1]!==k?(f={connectionId:se,orgId:p,orgSlug:k},e[0]=p,e[1]=k,e[2]=f):f=e[2];const v=J(f),b=X(),C=ne();let c;e[3]!==a||e[4]!==p?(c=q.githubUserOrgs(p,a),e[3]=a,e[4]=p,e[5]=c):c=e[5];let l;e[6]!==a||e[7]!==v?(l=()=>Ce(N=>v.callTool(N),a),e[6]=a,e[7]=v,e[8]=l):l=e[8];let r;e[9]!==c||e[10]!==l?(r={queryKey:c,queryFn:l},e[9]=c,e[10]=l,e[11]=r):r=e[11];const u=ce(r);let x;e[12]!==C||e[13]!==a||e[14]!==u||e[15]!==p||e[16]!==k||e[17]!==b?(x=async()=>{const N=await oe({connectionId:a,orgId:p,orgSlug:k,persistFallback:L=>C.update.mutateAsync({id:a,data:{connection_token:L}}).then(Ee)});if(N.ran&&!N.ok)throw new Error(N.error??"no token received");const E=new URL(`/api/${k}/mcp/${a}`,window.location.origin);await b.invalidateQueries({queryKey:q.isMCPAuthenticated(E.href,null)}),await b.invalidateQueries({queryKey:q.mcpClientPrefix()}),await u.refetch()},e[12]=C,e[13]=a,e[14]=u,e[15]=p,e[16]=k,e[17]=b,e[18]=x):x=e[18];let g;e[19]!==s?(g=N=>{K.error(s("common.githubRepoPicker.failedReconnect",{error:N instanceof Error?N.message:s("common.githubRepoPicker.unknownError")}))},e[19]=s,e[20]=g):g=e[20];let h;e[21]!==x||e[22]!==g?(h={mutationFn:x,onError:g},e[21]=x,e[22]=g,e[23]=h):h=e[23];const m=te(h);if(u.isLoading){let N;return e[24]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Q,{size:18,className:"animate-spin text-muted-foreground"})}),e[24]=N):N=e[24],N}if(u.isError){let N;e[25]!==s?(N=s("common.githubRepoPicker.failedLoadAccounts"),e[25]=s,e[26]=N):N=e[26];let E;e[27]!==N?(E=t.jsx("p",{className:"text-sm text-destructive",children:N}),e[27]=N,e[28]=E):E=e[28];let L;e[29]!==s?(L=s("common.githubRepoPicker.connectionExpiredMessage"),e[29]=s,e[30]=L):L=e[30];let G;e[31]!==L?(G=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[280px] leading-relaxed",children:L}),e[31]=L,e[32]=G):G=e[32];let O;e[33]!==m?(O=()=>m.mutate(),e[33]=m,e[34]=O):O=e[34];const le=m.isPending;let U;e[35]!==m.isPending?(U=m.isPending?t.jsx(Q,{size:14,className:"animate-spin"}):t.jsx(H,{className:"size-3.5"}),e[35]=m.isPending,e[36]=U):U=e[36];let F;e[37]!==s?(F=s("common.githubRepoPicker.reconnectGitHub"),e[37]=s,e[38]=F):F=e[38];let D;e[39]!==m.isPending||e[40]!==O||e[41]!==U||e[42]!==F?(D=t.jsxs(ue,{type:"button",variant:"outline",size:"sm",onClick:O,disabled:le,children:[U,F]}),e[39]=m.isPending,e[40]=O,e[41]=U,e[42]=F,e[43]=D):D=e[43];let B;return e[44]!==G||e[45]!==D||e[46]!==E?(B=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-3 px-6 text-center",children:[E,G,D]}),e[44]=G,e[45]=D,e[46]=E,e[47]=B):B=e[47],B}const n=u.data;if(!n)return null;let y;e[48]!==i||e[49]!==d||e[50]!==s?(y=d&&t.jsx("div",{className:"flex items-center gap-1 px-4 pt-3 pb-1 shrink-0",children:t.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(ie,{size:12}),s("common.githubRepoPicker.changeConnection")]})}),e[48]=i,e[49]=d,e[50]=s,e[51]=y):y=e[51];let j;if(e[52]!==n.installations||e[53]!==o||e[54]!==s){let N;e[56]!==o||e[57]!==s?(N=E=>t.jsxs("button",{type:"button",onClick:()=>o(E),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:E.avatarUrl,alt:E.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:E.login}),E.type==="User"&&t.jsx("span",{className:"text-xs text-muted-foreground mt-1",children:s("common.githubRepoPicker.personalAccount")})]}),t.jsxs("span",{className:"text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:[s("common.githubRepoPicker.select")," →"]})]},E.installationId),e[56]=o,e[57]=s,e[58]=N):N=e[58],j=n.installations.map(N),e[52]=n.installations,e[53]=o,e[54]=s,e[55]=j}else j=e[55];let w;e[59]!==j?(w=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:j}),e[59]=j,e[60]=w):w=e[60];const R=n.appSlug?`https://github.com/apps/${n.appSlug}/installations/new`:"https://github.com/settings/installations";let S;e[61]!==s?(S=s("common.githubRepoPicker.accountNotListed"),e[61]=s,e[62]=S):S=e[62];let I;e[63]!==s?(I=s("common.githubRepoPicker.installGitHubApp"),e[63]=s,e[64]=I):I=e[64];let T;e[65]!==I?(T=t.jsx("span",{className:"underline underline-offset-2",children:I}),e[65]=I,e[66]=T):T=e[66];let A;e[67]!==R||e[68]!==S||e[69]!==T?(A=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:R,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:[S," ",T]})}),e[67]=R,e[68]=S,e[69]=T,e[70]=A):A=e[70];let _;return e[71]!==w||e[72]!==A||e[73]!==y?(_=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[y,w,A]}),e[71]=w,e[72]=A,e[73]=y,e[74]=_):_=e[74],_}function Ee(){}function Te(P){const e=M.c(23),{connectionId:a,orgId:p,orgSlug:k,installation:o,onSelectRepo:d,isSaving:i}=P,s=$(),[f,v]=z.useState(""),b=be(f,300),C=z.useDeferredValue(b),c=f!==C;let l;e[0]!==s?(l=s("common.githubRepoPicker.searchRepositories"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==c||e[3]!==f||e[4]!==l?(r=t.jsx(he,{placeholder:l,value:f,onChange:v,isSearching:c}),e[2]=c,e[3]=f,e[4]=l,e[5]=r):r=e[5];const u=c?"opacity-40":"opacity-100";let x;e[6]!==u?(x=Y("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",u),e[6]=u,e[7]=x):x=e[7];let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Q,{size:18,className:"animate-spin text-muted-foreground"})}),e[8]=g):g=e[8];let h;e[9]!==a||e[10]!==C||e[11]!==o||e[12]!==i||e[13]!==d||e[14]!==p||e[15]!==k?(h=t.jsx(z.Suspense,{fallback:g,children:t.jsx(Ae,{connectionId:a,orgId:p,orgSlug:k,installation:o,query:C,onSelectRepo:d,isSaving:i})}),e[9]=a,e[10]=C,e[11]=o,e[12]=i,e[13]=d,e[14]=p,e[15]=k,e[16]=h):h=e[16];let m;e[17]!==x||e[18]!==h?(m=t.jsx("div",{className:x,children:h}),e[17]=x,e[18]=h,e[19]=m):m=e[19];let n;return e[20]!==r||e[21]!==m?(n=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[r,m]}),e[20]=r,e[21]=m,e[22]=n):n=e[22],n}function Ae(P){const e=M.c(36),{connectionId:a,orgId:p,orgSlug:k,installation:o,query:d,onSelectRepo:i,isSaving:s}=P,f=$();let v;e[0]!==a||e[1]!==p||e[2]!==k?(v={connectionId:a,orgId:p,orgSlug:k},e[0]=a,e[1]=p,e[2]=k,e[3]=v):v=e[3];const b=J(v),C=o.type==="User"?"user":"org",c=d?`${C}:${o.login} ${d} in:name`:`${C}:${o.login}`;let l;e[4]!==a||e[5]!==o.login||e[6]!==p||e[7]!==d?(l=q.githubOrgRepos(p,a,o.login,d),e[4]=a,e[5]=o.login,e[6]=p,e[7]=d,e[8]=l):l=e[8];let r;e[9]!==b||e[10]!==c?(r=async m=>{const{signal:n}=m,j=(await b.callTool({name:"search_repositories",arguments:{query:c,page:1,perPage:30}},void 0,{signal:n})).content?.[0]?.text;if(!j)throw new Error("No response from search_repositories");return(JSON.parse(j).items??[]).map(_e)},e[9]=b,e[10]=c,e[11]=r):r=e[11];let u;e[12]!==l||e[13]!==r?(u={queryKey:l,queryFn:r},e[12]=l,e[13]=r,e[14]=u):u=e[14];const{data:x}=de(u);if(x.length===0){let m;e[15]!==f?(m=f("common.githubRepoPicker.noRepositoriesFound"),e[15]=f,e[16]=m):m=e[16];let n;e[17]!==m?(n=t.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[17]=m,e[18]=n):n=e[18];let y;e[19]!==d||e[20]!==f?(y=d&&t.jsx("p",{className:"text-xs text-muted-foreground/60",children:f("common.githubRepoPicker.tryDifferentSearchTerm")}),e[19]=d,e[20]=f,e[21]=y):y=e[21];let j;return e[22]!==n||e[23]!==y?(j=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-1",children:[n,y]}),e[22]=n,e[23]=y,e[24]=j):j=e[24],j}let g;if(e[25]!==s||e[26]!==i||e[27]!==x||e[28]!==f){let m;e[30]!==s||e[31]!==i||e[32]!==f?(m=n=>t.jsxs("button",{type:"button",onClick:()=>i(n),disabled:s,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(H,{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:n.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:[n.private?t.jsx(me,{size:10}):t.jsx(je,{size:10}),n.private?f("common.githubRepoPicker.private"):f("common.githubRepoPicker.public")]})]},n.fullName),e[30]=s,e[31]=i,e[32]=f,e[33]=m):m=e[33],g=x.map(m),e[25]=s,e[26]=i,e[27]=x,e[28]=f,e[29]=g}else g=e[29];let h;return e[34]!==g?(h=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden flex flex-col [scrollbar-gutter:stable]",children:g}),e[34]=g,e[35]=h):h=e[35],h}function _e(P){return{name:P.name,fullName:P.full_name,owner:P.full_name.split("/")[0]??"",url:P.html_url,private:P.private,description:P.description,updatedAt:P.updated_at}}function W(P){const e=M.c(51),{status:a,error:p,retry:k}=P,o=$();if(a==="error"){let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"size-10 rounded-full bg-destructive/10 flex items-center justify-center",children:t.jsx(H,{className:"size-5 text-destructive"})}),e[0]=j):j=e[0];let w;e[1]!==o?(w=o("common.githubRepoPicker.connectionFailed"),e[1]=o,e[2]=w):w=e[2];let R;e[3]!==w?(R=t.jsx("p",{className:"text-sm font-medium",children:w}),e[3]=w,e[4]=R):R=e[4];let S;e[5]!==p||e[6]!==o?(S=p??o("common.githubRepoPicker.somethingWentWrong"),e[5]=p,e[6]=o,e[7]=S):S=e[7];let I;e[8]!==S?(I=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:S}),e[8]=S,e[9]=I):I=e[9];let T;e[10]!==R||e[11]!==I?(T=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[R,I]}),e[10]=R,e[11]=I,e[12]=T):T=e[12];let A;e[13]!==o?(A=o("common.githubRepoPicker.tryAgain"),e[13]=o,e[14]=A):A=e[14];let _;e[15]!==k||e[16]!==A?(_=t.jsx("button",{type:"button",onClick:k,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:A}),e[15]=k,e[16]=A,e[17]=_):_=e[17];let N;return e[18]!==T||e[19]!==_?(N=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[j,T,_]}),e[18]=T,e[19]=_,e[20]=N):N=e[20],N}const d=a==="authenticating";let i;e[21]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"size-10 rounded-full bg-muted flex items-center justify-center",children:t.jsx(H,{className:"size-5 text-foreground"})}),e[21]=i):i=e[21];let s;e[22]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs("div",{className:"relative size-10",children:[i,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(Q,{size:12,className:"animate-spin text-muted-foreground"})})]}),e[22]=s):s=e[22];let f;e[23]!==d||e[24]!==o?(f=o(d?"common.githubRepoPicker.authenticatingGitHub":"common.githubRepoPicker.settingUpGitHub"),e[23]=d,e[24]=o,e[25]=f):f=e[25];let v;e[26]!==f?(v=t.jsx("p",{className:"text-sm font-medium",children:f}),e[26]=f,e[27]=v):v=e[27];let b;e[28]!==d||e[29]!==o?(b=o(d?"common.githubRepoPicker.completeOAuthFlow":"common.githubRepoPicker.installingGitHubConnection"),e[28]=d,e[29]=o,e[30]=b):b=e[30];let C;e[31]!==b?(C=t.jsx("p",{className:"text-xs text-muted-foreground",children:b}),e[31]=b,e[32]=C):C=e[32];let c;e[33]!==v||e[34]!==C?(c=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[v,C]}),e[33]=v,e[34]=C,e[35]=c):c=e[35];const l=d?"bg-muted-foreground/30":"bg-foreground animate-pulse";let r;e[36]!==l?(r=Y("size-1.5 rounded-full",l),e[36]=l,e[37]=r):r=e[37];let u;e[38]!==r?(u=t.jsx("span",{className:r}),e[38]=r,e[39]=u):u=e[39];const x=d?"bg-foreground animate-pulse":"bg-muted-foreground/30";let g;e[40]!==x?(g=Y("size-1.5 rounded-full",x),e[40]=x,e[41]=g):g=e[41];let h;e[42]!==g?(h=t.jsx("span",{className:g}),e[42]=g,e[43]=h):h=e[43];let m;e[44]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("span",{className:"size-1.5 rounded-full bg-muted-foreground/30"}),e[44]=m):m=e[44];let n;e[45]!==u||e[46]!==h?(n=t.jsxs("div",{className:"flex items-center gap-1.5",children:[u,h,m]}),e[45]=u,e[46]=h,e[47]=n):n=e[47];let y;return e[48]!==n||e[49]!==c?(y=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[s,c,n]}),e[48]=n,e[49]=c,e[50]=y):y=e[50],y}export{Ke as G,Se as u};
|
|
1
|
+
import{F as ee,a as re,o as X,r as z,ad as V,c as M,b as $,j as t,k as Q,e as te,t as K,dY as ae,K as q,n as ce,m as Y,B as ue,x as de,y as me}from"./index-CpcKMJHf.js";import{a as fe,b as ge,d as xe,e as pe}from"./dialog-DflEsAVp.js";import{C as he}from"./collection-search-BfgDlrmR.js";import{u as be}from"./use-debounced-value-8smeSlAm.js";import{b as ne,u as ye}from"./use-connection-DbaNggp4.js";import{u as J,S as se}from"./use-mcp-client-DDmvok5R.js";import{a as oe}from"./authenticate-and-persist-oauth-DxQCI97g.js";import{b as ie}from"./Settings02-htWR982a.js";import{Q as je}from"./agent-icon-DclSthKR.js";import{u as Ne,G as H}from"./use-registry-app-BkNbCzQ_.js";import{e as ve}from"./extract-connection-data-BADrHucW.js";import{c as ke}from"./use-navigate-to-agent-BJfnV5Hb.js";import{p as Z,f as Ce}from"./provision-repo-scoped-github-connection-2iDn-wQ1.js";import{g as we}from"./github-repo-scope-DjMZbiKa.js";const Re="deco/mcp-github";function Se(P){const{org:e}=ee(),{data:a}=re.useSession(),p=ne(),k=X(),[o,d]=z.useState("idle"),[i,s]=z.useState(null),[f,v]=z.useState(null),{data:b,isLoading:C}=Ne(Re,{enabled:P.enabled}),c=z.useRef(!1);P.enabled&&b&&!C&&!c.current&&a?.user?.id&&o==="idle"&&(c.current=!0,l());async function l(){if(!(!b||!a?.user?.id||!e))try{d("installing"),s(null);const u=ve(b,e.id,a.user.id,{remoteIndex:0});if(!u.connection_url)throw new Error("Registry item is missing a remote URL for mcp-github");const{id:g}=await p.create.mutateAsync(u);d("authenticating");const h=await oe({connectionId:g,orgId:e.id,orgSlug:e.slug,persistFallback:m=>p.update.mutateAsync({id:g,data:{connection_token:m}}).then(()=>{})});if(h.ran&&!h.ok){try{await p.delete.mutateAsync(g)}catch{}throw new Error(h.error&&h.error!=="no token received"?h.error:"No token received from GitHub")}V(k,e.id),v(u),d("ready")}catch(u){s(u instanceof Error?u.message:String(u)),d("error")}}function r(){d("idle"),s(null),v(null),c.current=!1}return P.enabled&&C&&o==="idle"?{status:"installing",error:null,connection:null,retry:r}:{status:o,error:i,connection:f,retry:r}}function Ke(P){const e=M.c(27),{open:a,onOpenChange:p,title:k,onImportComplete:o,mode:d}=P,i=d===void 0?"agent":d,s=$();let f;e[0]!==i||e[1]!==s||e[2]!==k?(f=k??s(i==="connection"?"common.githubRepoPicker.addRepo":"common.githubRepoPicker.importFromGitHub"),e[0]=i,e[1]=s,e[2]=k,e[3]=f):f=e[3];const v=f,[b,C]=z.useState(null);let c;e[4]!==v?(c=t.jsx(fe,{className:"sr-only",children:t.jsx(ge,{children:v})}),e[4]=v,e[5]=c):c=e[5];let l;e[6]!==v||e[7]!==b||e[8]!==s?(l=t.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3 shrink-0",children:b?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":s("common.githubRepoPicker.backToAccounts"),children:t.jsx(ie,{size:16})}),t.jsx("img",{src:b.avatarUrl,alt:b.login,className:"size-5 rounded-full ring-1 ring-border shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:b.login})]}):t.jsxs(t.Fragment,{children:[t.jsx(H,{className:"size-4 text-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:v})]})}),e[6]=v,e[7]=b,e[8]=s,e[9]=l):l=e[9];let r;e[10]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Q,{size:18,className:"animate-spin text-muted-foreground"})}),e[10]=r):r=e[10];let u;e[11]!==p?(u=()=>p(!1),e[11]=p,e[12]=u):u=e[12];let x;e[13]!==i||e[14]!==o||e[15]!==a||e[16]!==b||e[17]!==u?(x=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx(z.Suspense,{fallback:r,children:t.jsx(Pe,{open:a,onComplete:u,selectedInstallation:b,onSelectInstallation:C,onImportComplete:o,mode:i})})}),e[13]=i,e[14]=o,e[15]=a,e[16]=b,e[17]=u,e[18]=x):x=e[18];let g;e[19]!==c||e[20]!==l||e[21]!==x?(g=t.jsxs(xe,{className:"sm:max-w-[560px] h-[85svh] sm:h-[520px] p-0 gap-0 overflow-hidden flex flex-col",children:[c,l,x]}),e[19]=c,e[20]=l,e[21]=x,e[22]=g):g=e[22];let h;return e[23]!==p||e[24]!==a||e[25]!==g?(h=t.jsx(pe,{open:a,onOpenChange:p,children:g}),e[23]=p,e[24]=a,e[25]=g,e[26]=h):h=e[26],h}function Pe({open:P,onComplete:e,selectedInstallation:a,onSelectInstallation:p,onImportComplete:k,mode:o="agent"}){const d=$(),{org:i}=ee(),s=X(),f=ke(),[v,b]=z.useState(null),C=ye({slug:"mcp-github"}),c=we(C),l=Se({enabled:P&&c.length===0}),r=c.length===1?c[0]??null:v,u=J({connectionId:r?.id??"",orgId:i.id,orgSlug:i.slug}),x=J({connectionId:se,orgId:i.id,orgSlug:i.slug}),g=async(n,y)=>{try{const w=await u.callTool({name:"get_file_contents",arguments:{owner:n.owner,repo:n.name,path:y}});if(w.isError)return null;const S=w.content?.find(I=>I.type==="resource")?.resource?.text;if(!S)return null;try{const I=JSON.parse(S);return typeof I=="string"?I:JSON.stringify(I)}catch{return S}}catch{return null}},h=(n,y)=>{Promise.all([g(y,"AGENTS.md"),g(y,"CLAUDE.md")]).then(async([j,w])=>{const R=j??w??null;R&&(await x.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:n,data:{metadata:{instructions:R}}}}),V(s,i.id))}).catch(j=>{console.error("GitHub instructions fetch failed:",j)})},m=te({mutationFn:async n=>{if(!r||!a)throw new Error("No GitHub connection or installation");const y=a.installationId;if(o==="connection"){const{childConnectionId:R}=await Z({orgSlug:i.slug,sourceConnection:r,installationId:y,owner:n.owner,repo:n.name,githubCallTool:S=>u.callTool(S),selfCallTool:S=>x.callTool(S),orgShared:!0});return{virtualMcpId:null,repo:n,connectionId:R,item:null}}const{childConnectionId:j}=await Z({orgSlug:i.slug,sourceConnection:r,installationId:y,owner:n.owner,repo:n.name,githubCallTool:R=>u.callTool(R),selfCallTool:R=>x.callTool(R)});let w=null;try{const R=await x.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:n.name,description:n.description||"Imported from GitHub",pinned:!1,icon:null,metadata:{githubRepo:{owner:n.owner,name:n.name,url:n.url,installationId:y,connectionId:j},instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"},chatDefaultOpen:!0}}},connections:[{connection_id:j}]}}}),S=R.structuredContent??R,I=S.item?.id;if(!S.item||!I)throw new Error("Failed to create the imported agent");return w=I,{virtualMcpId:I,repo:n,connectionId:j,item:S.item}}catch(R){throw w&&await x.callTool({name:"COLLECTION_VIRTUAL_MCP_DELETE",arguments:{id:w}}).catch(()=>{}),await x.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:j,force:!0}}).catch(()=>{}),R}},onSuccess:({virtualMcpId:n,repo:y,connectionId:j,item:w})=>{if(o==="connection"||!n||!w){V(s,i.id),ae(s,i.id),K.success(d("common.githubRepoPicker.addedRepo",{name:y.name})),e();return}if(s.setQueryData(q.collectionItem(x,i.id,"","VIRTUAL_MCP",n),{item:w}),V(s,i.id),h(n,y),k){k({virtualMcpId:n,repo:y,connectionId:j});return}K.success(d("common.githubRepoPicker.importedRepo",{name:y.name})),e(),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),f(n)},onError:n=>{K.error(d("common.githubRepoPicker.failedImport",{error:n instanceof Error?n.message:d("common.githubRepoPicker.unknownError")}))}});return l.status==="installing"||l.status==="authenticating"?t.jsx(W,{status:l.status,error:null,retry:l.retry}):l.status==="error"?t.jsx(W,{status:"error",error:l.error,retry:l.retry}):c.length===0&&l.status==="idle"?t.jsx(W,{status:"installing",error:null,retry:l.retry}):c.length>1&&!r?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:d("common.githubRepoPicker.selectConnection")})}),c.map(n=>t.jsxs("button",{type:"button",onClick:()=>b(n),className:"flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left",children:[n.icon?t.jsx("img",{src:n.icon,alt:n.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(H,{className:"size-3.5 text-muted-foreground"})}),t.jsx("span",{className:"text-sm font-medium",children:n.title})]},n.id))]}):r?a?t.jsx(Te,{connectionId:r.id,orgId:i.id,orgSlug:i.slug,installation:a,onSelectRepo:n=>m.mutate(n),isSaving:m.isPending}):t.jsx(Ie,{connectionId:r.id,orgId:i.id,orgSlug:i.slug,onSelect:p,showBackButton:c.length>1,onBack:()=>b(null)}):null}function Ie(P){const e=M.c(75),{connectionId:a,orgId:p,orgSlug:k,onSelect:o,showBackButton:d,onBack:i}=P,s=$();let f;e[0]!==p||e[1]!==k?(f={connectionId:se,orgId:p,orgSlug:k},e[0]=p,e[1]=k,e[2]=f):f=e[2];const v=J(f),b=X(),C=ne();let c;e[3]!==a||e[4]!==p?(c=q.githubUserOrgs(p,a),e[3]=a,e[4]=p,e[5]=c):c=e[5];let l;e[6]!==a||e[7]!==v?(l=()=>Ce(N=>v.callTool(N),a),e[6]=a,e[7]=v,e[8]=l):l=e[8];let r;e[9]!==c||e[10]!==l?(r={queryKey:c,queryFn:l},e[9]=c,e[10]=l,e[11]=r):r=e[11];const u=ce(r);let x;e[12]!==C||e[13]!==a||e[14]!==u||e[15]!==p||e[16]!==k||e[17]!==b?(x=async()=>{const N=await oe({connectionId:a,orgId:p,orgSlug:k,persistFallback:L=>C.update.mutateAsync({id:a,data:{connection_token:L}}).then(Ee)});if(N.ran&&!N.ok)throw new Error(N.error??"no token received");const E=new URL(`/api/${k}/mcp/${a}`,window.location.origin);await b.invalidateQueries({queryKey:q.isMCPAuthenticated(E.href,null)}),await b.invalidateQueries({queryKey:q.mcpClientPrefix()}),await u.refetch()},e[12]=C,e[13]=a,e[14]=u,e[15]=p,e[16]=k,e[17]=b,e[18]=x):x=e[18];let g;e[19]!==s?(g=N=>{K.error(s("common.githubRepoPicker.failedReconnect",{error:N instanceof Error?N.message:s("common.githubRepoPicker.unknownError")}))},e[19]=s,e[20]=g):g=e[20];let h;e[21]!==x||e[22]!==g?(h={mutationFn:x,onError:g},e[21]=x,e[22]=g,e[23]=h):h=e[23];const m=te(h);if(u.isLoading){let N;return e[24]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Q,{size:18,className:"animate-spin text-muted-foreground"})}),e[24]=N):N=e[24],N}if(u.isError){let N;e[25]!==s?(N=s("common.githubRepoPicker.failedLoadAccounts"),e[25]=s,e[26]=N):N=e[26];let E;e[27]!==N?(E=t.jsx("p",{className:"text-sm text-destructive",children:N}),e[27]=N,e[28]=E):E=e[28];let L;e[29]!==s?(L=s("common.githubRepoPicker.connectionExpiredMessage"),e[29]=s,e[30]=L):L=e[30];let G;e[31]!==L?(G=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[280px] leading-relaxed",children:L}),e[31]=L,e[32]=G):G=e[32];let O;e[33]!==m?(O=()=>m.mutate(),e[33]=m,e[34]=O):O=e[34];const le=m.isPending;let U;e[35]!==m.isPending?(U=m.isPending?t.jsx(Q,{size:14,className:"animate-spin"}):t.jsx(H,{className:"size-3.5"}),e[35]=m.isPending,e[36]=U):U=e[36];let F;e[37]!==s?(F=s("common.githubRepoPicker.reconnectGitHub"),e[37]=s,e[38]=F):F=e[38];let D;e[39]!==m.isPending||e[40]!==O||e[41]!==U||e[42]!==F?(D=t.jsxs(ue,{type:"button",variant:"outline",size:"sm",onClick:O,disabled:le,children:[U,F]}),e[39]=m.isPending,e[40]=O,e[41]=U,e[42]=F,e[43]=D):D=e[43];let B;return e[44]!==G||e[45]!==D||e[46]!==E?(B=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-3 px-6 text-center",children:[E,G,D]}),e[44]=G,e[45]=D,e[46]=E,e[47]=B):B=e[47],B}const n=u.data;if(!n)return null;let y;e[48]!==i||e[49]!==d||e[50]!==s?(y=d&&t.jsx("div",{className:"flex items-center gap-1 px-4 pt-3 pb-1 shrink-0",children:t.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(ie,{size:12}),s("common.githubRepoPicker.changeConnection")]})}),e[48]=i,e[49]=d,e[50]=s,e[51]=y):y=e[51];let j;if(e[52]!==n.installations||e[53]!==o||e[54]!==s){let N;e[56]!==o||e[57]!==s?(N=E=>t.jsxs("button",{type:"button",onClick:()=>o(E),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:E.avatarUrl,alt:E.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:E.login}),E.type==="User"&&t.jsx("span",{className:"text-xs text-muted-foreground mt-1",children:s("common.githubRepoPicker.personalAccount")})]}),t.jsxs("span",{className:"text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:[s("common.githubRepoPicker.select")," →"]})]},E.installationId),e[56]=o,e[57]=s,e[58]=N):N=e[58],j=n.installations.map(N),e[52]=n.installations,e[53]=o,e[54]=s,e[55]=j}else j=e[55];let w;e[59]!==j?(w=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:j}),e[59]=j,e[60]=w):w=e[60];const R=n.appSlug?`https://github.com/apps/${n.appSlug}/installations/new`:"https://github.com/settings/installations";let S;e[61]!==s?(S=s("common.githubRepoPicker.accountNotListed"),e[61]=s,e[62]=S):S=e[62];let I;e[63]!==s?(I=s("common.githubRepoPicker.installGitHubApp"),e[63]=s,e[64]=I):I=e[64];let T;e[65]!==I?(T=t.jsx("span",{className:"underline underline-offset-2",children:I}),e[65]=I,e[66]=T):T=e[66];let A;e[67]!==R||e[68]!==S||e[69]!==T?(A=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:R,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:[S," ",T]})}),e[67]=R,e[68]=S,e[69]=T,e[70]=A):A=e[70];let _;return e[71]!==w||e[72]!==A||e[73]!==y?(_=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[y,w,A]}),e[71]=w,e[72]=A,e[73]=y,e[74]=_):_=e[74],_}function Ee(){}function Te(P){const e=M.c(23),{connectionId:a,orgId:p,orgSlug:k,installation:o,onSelectRepo:d,isSaving:i}=P,s=$(),[f,v]=z.useState(""),b=be(f,300),C=z.useDeferredValue(b),c=f!==C;let l;e[0]!==s?(l=s("common.githubRepoPicker.searchRepositories"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==c||e[3]!==f||e[4]!==l?(r=t.jsx(he,{placeholder:l,value:f,onChange:v,isSearching:c}),e[2]=c,e[3]=f,e[4]=l,e[5]=r):r=e[5];const u=c?"opacity-40":"opacity-100";let x;e[6]!==u?(x=Y("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",u),e[6]=u,e[7]=x):x=e[7];let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Q,{size:18,className:"animate-spin text-muted-foreground"})}),e[8]=g):g=e[8];let h;e[9]!==a||e[10]!==C||e[11]!==o||e[12]!==i||e[13]!==d||e[14]!==p||e[15]!==k?(h=t.jsx(z.Suspense,{fallback:g,children:t.jsx(Ae,{connectionId:a,orgId:p,orgSlug:k,installation:o,query:C,onSelectRepo:d,isSaving:i})}),e[9]=a,e[10]=C,e[11]=o,e[12]=i,e[13]=d,e[14]=p,e[15]=k,e[16]=h):h=e[16];let m;e[17]!==x||e[18]!==h?(m=t.jsx("div",{className:x,children:h}),e[17]=x,e[18]=h,e[19]=m):m=e[19];let n;return e[20]!==r||e[21]!==m?(n=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[r,m]}),e[20]=r,e[21]=m,e[22]=n):n=e[22],n}function Ae(P){const e=M.c(36),{connectionId:a,orgId:p,orgSlug:k,installation:o,query:d,onSelectRepo:i,isSaving:s}=P,f=$();let v;e[0]!==a||e[1]!==p||e[2]!==k?(v={connectionId:a,orgId:p,orgSlug:k},e[0]=a,e[1]=p,e[2]=k,e[3]=v):v=e[3];const b=J(v),C=o.type==="User"?"user":"org",c=d?`${C}:${o.login} ${d} in:name`:`${C}:${o.login}`;let l;e[4]!==a||e[5]!==o.login||e[6]!==p||e[7]!==d?(l=q.githubOrgRepos(p,a,o.login,d),e[4]=a,e[5]=o.login,e[6]=p,e[7]=d,e[8]=l):l=e[8];let r;e[9]!==b||e[10]!==c?(r=async m=>{const{signal:n}=m,j=(await b.callTool({name:"search_repositories",arguments:{query:c,page:1,perPage:30}},void 0,{signal:n})).content?.[0]?.text;if(!j)throw new Error("No response from search_repositories");return(JSON.parse(j).items??[]).map(_e)},e[9]=b,e[10]=c,e[11]=r):r=e[11];let u;e[12]!==l||e[13]!==r?(u={queryKey:l,queryFn:r},e[12]=l,e[13]=r,e[14]=u):u=e[14];const{data:x}=de(u);if(x.length===0){let m;e[15]!==f?(m=f("common.githubRepoPicker.noRepositoriesFound"),e[15]=f,e[16]=m):m=e[16];let n;e[17]!==m?(n=t.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[17]=m,e[18]=n):n=e[18];let y;e[19]!==d||e[20]!==f?(y=d&&t.jsx("p",{className:"text-xs text-muted-foreground/60",children:f("common.githubRepoPicker.tryDifferentSearchTerm")}),e[19]=d,e[20]=f,e[21]=y):y=e[21];let j;return e[22]!==n||e[23]!==y?(j=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-1",children:[n,y]}),e[22]=n,e[23]=y,e[24]=j):j=e[24],j}let g;if(e[25]!==s||e[26]!==i||e[27]!==x||e[28]!==f){let m;e[30]!==s||e[31]!==i||e[32]!==f?(m=n=>t.jsxs("button",{type:"button",onClick:()=>i(n),disabled:s,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(H,{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:n.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:[n.private?t.jsx(me,{size:10}):t.jsx(je,{size:10}),n.private?f("common.githubRepoPicker.private"):f("common.githubRepoPicker.public")]})]},n.fullName),e[30]=s,e[31]=i,e[32]=f,e[33]=m):m=e[33],g=x.map(m),e[25]=s,e[26]=i,e[27]=x,e[28]=f,e[29]=g}else g=e[29];let h;return e[34]!==g?(h=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden flex flex-col [scrollbar-gutter:stable]",children:g}),e[34]=g,e[35]=h):h=e[35],h}function _e(P){return{name:P.name,fullName:P.full_name,owner:P.full_name.split("/")[0]??"",url:P.html_url,private:P.private,description:P.description,updatedAt:P.updated_at}}function W(P){const e=M.c(51),{status:a,error:p,retry:k}=P,o=$();if(a==="error"){let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"size-10 rounded-full bg-destructive/10 flex items-center justify-center",children:t.jsx(H,{className:"size-5 text-destructive"})}),e[0]=j):j=e[0];let w;e[1]!==o?(w=o("common.githubRepoPicker.connectionFailed"),e[1]=o,e[2]=w):w=e[2];let R;e[3]!==w?(R=t.jsx("p",{className:"text-sm font-medium",children:w}),e[3]=w,e[4]=R):R=e[4];let S;e[5]!==p||e[6]!==o?(S=p??o("common.githubRepoPicker.somethingWentWrong"),e[5]=p,e[6]=o,e[7]=S):S=e[7];let I;e[8]!==S?(I=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:S}),e[8]=S,e[9]=I):I=e[9];let T;e[10]!==R||e[11]!==I?(T=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[R,I]}),e[10]=R,e[11]=I,e[12]=T):T=e[12];let A;e[13]!==o?(A=o("common.githubRepoPicker.tryAgain"),e[13]=o,e[14]=A):A=e[14];let _;e[15]!==k||e[16]!==A?(_=t.jsx("button",{type:"button",onClick:k,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:A}),e[15]=k,e[16]=A,e[17]=_):_=e[17];let N;return e[18]!==T||e[19]!==_?(N=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[j,T,_]}),e[18]=T,e[19]=_,e[20]=N):N=e[20],N}const d=a==="authenticating";let i;e[21]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"size-10 rounded-full bg-muted flex items-center justify-center",children:t.jsx(H,{className:"size-5 text-foreground"})}),e[21]=i):i=e[21];let s;e[22]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs("div",{className:"relative size-10",children:[i,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(Q,{size:12,className:"animate-spin text-muted-foreground"})})]}),e[22]=s):s=e[22];let f;e[23]!==d||e[24]!==o?(f=o(d?"common.githubRepoPicker.authenticatingGitHub":"common.githubRepoPicker.settingUpGitHub"),e[23]=d,e[24]=o,e[25]=f):f=e[25];let v;e[26]!==f?(v=t.jsx("p",{className:"text-sm font-medium",children:f}),e[26]=f,e[27]=v):v=e[27];let b;e[28]!==d||e[29]!==o?(b=o(d?"common.githubRepoPicker.completeOAuthFlow":"common.githubRepoPicker.installingGitHubConnection"),e[28]=d,e[29]=o,e[30]=b):b=e[30];let C;e[31]!==b?(C=t.jsx("p",{className:"text-xs text-muted-foreground",children:b}),e[31]=b,e[32]=C):C=e[32];let c;e[33]!==v||e[34]!==C?(c=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[v,C]}),e[33]=v,e[34]=C,e[35]=c):c=e[35];const l=d?"bg-muted-foreground/30":"bg-foreground animate-pulse";let r;e[36]!==l?(r=Y("size-1.5 rounded-full",l),e[36]=l,e[37]=r):r=e[37];let u;e[38]!==r?(u=t.jsx("span",{className:r}),e[38]=r,e[39]=u):u=e[39];const x=d?"bg-foreground animate-pulse":"bg-muted-foreground/30";let g;e[40]!==x?(g=Y("size-1.5 rounded-full",x),e[40]=x,e[41]=g):g=e[41];let h;e[42]!==g?(h=t.jsx("span",{className:g}),e[42]=g,e[43]=h):h=e[43];let m;e[44]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("span",{className:"size-1.5 rounded-full bg-muted-foreground/30"}),e[44]=m):m=e[44];let n;e[45]!==u||e[46]!==h?(n=t.jsxs("div",{className:"flex items-center gap-1.5",children:[u,h,m]}),e[45]=u,e[46]=h,e[47]=n):n=e[47];let y;return e[48]!==n||e[49]!==c?(y=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[s,c,n]}),e[48]=n,e[49]=c,e[50]=y):y=e[50],y}export{Ke as G,Se as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{dA as St,dB as It,bh as N,M as c,dC as de,bn as ze,dD as Et,bg as Tt,aX as wt,ah as O,ag as G,ae as oe,J as _,bi as m,b4 as F,dE as Mt,dF as I,af as At,t as ge,c as Ee,r as W,F as Ot,j as Ct}from"./index-
|
|
1
|
+
import{dA as St,dB as It,bh as N,M as c,dC as de,bn as ze,dD as Et,bg as Tt,aX as wt,ah as O,ag as G,ae as oe,J as _,bi as m,b4 as F,dE as Mt,dF as I,af as At,t as ge,c as Ee,r as W,F as Ot,j as Ct}from"./index-CpcKMJHf.js";import{S as Nt,u as Rt}from"./use-mcp-client-DDmvok5R.js";import{d as xt,D as Pt}from"./decopilot-sse-pool-CHSNG2R3.js";import{d as Dt}from"./delay-CnY5UFtP.js";import{e as kt}from"./backoff-CrEUbyZT.js";var re;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function a(s){throw new Error}t.assertNever=a,t.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},t.getValidEnumValues=s=>{const o=t.objectKeys(s).filter(n=>typeof s[s[n]]!="number"),i={};for(const n of o)i[n]=s[n];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(o){return s[o]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},t.find=(s,o)=>{for(const i of s)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(re||(re={}));var Ae;(function(t){t.mergeShapes=(e,a)=>({...e,...a})})(Ae||(Ae={}));re.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);re.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ce extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}format(e){const a=e||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(a(i));else{let n=r,p=0;for(;p<i.path.length;){const u=i.path[p];p===i.path.length-1?(n[u]=n[u]||{_errors:[]},n[u]._errors.push(a(i))):n[u]=n[u]||{_errors:[]},n=n[u],p++}}};return s(this),r}static assert(e){if(!(e instanceof ce))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,re.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=a=>a.message){const a=Object.create(null),r=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];a[o]=a[o]||[],a[o].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}}ce.create=t=>new ce(t);var Oe;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Oe||(Oe={}));var h;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(h||(h={}));var Je="vercel.ai.error",Lt=Symbol.for(Je),Ce,Ne,Z=class We extends(Ne=Error,Ce=Lt,Ne){constructor({name:e,message:a,cause:r}){super(a),this[Ce]=!0,this.name=e,this.cause=r}static isInstance(e){return We.hasMarker(e,Je)}static hasMarker(e,a){const r=Symbol.for(a);return e!=null&&typeof e=="object"&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function Ge(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var Ye="AI_InvalidArgumentError",He=`vercel.ai.error.${Ye}`,jt=Symbol.for(He),Re,xe,Zt=class extends(xe=Z,Re=jt,xe){constructor({message:t,cause:e,argument:a}){super({name:Ye,message:t,cause:e}),this[Re]=!0,this.argument=a}static isInstance(t){return Z.hasMarker(t,He)}},qe="AI_JSONParseError",Xe=`vercel.ai.error.${qe}`,$t=Symbol.for(Xe),Pe,De,ke=class extends(De=Z,Pe=$t,De){constructor({text:t,cause:e}){super({name:qe,message:`JSON parsing failed: Text: ${t}.
|
|
2
2
|
Error message: ${Ge(e)}`,cause:e}),this[Pe]=!0,this.text=t}static isInstance(t){return Z.hasMarker(t,Xe)}},Qe="AI_TypeValidationError",Ke=`vercel.ai.error.${Qe}`,Ut=Symbol.for(Ke),Le,je,X=class ve extends(je=Z,Le=Ut,je){constructor({value:e,cause:a,context:r}){let s="Type validation failed";if(r?.field&&(s+=` for ${r.field}`),r?.entityName||r?.entityId){s+=" (";const o=[];r.entityName&&o.push(r.entityName),r.entityId&&o.push(`id: "${r.entityId}"`),s+=o.join(", "),s+=")"}super({name:Qe,message:`${s}: Value: ${JSON.stringify(e)}.
|
|
3
3
|
Error message: ${Ge(a)}`,cause:a}),this[Le]=!0,this.value=e,this.context=r}static isInstance(e){return Z.hasMarker(e,Ke)}static wrap({value:e,cause:a,context:r}){var s,o,i;return ve.isInstance(a)&&a.value===e&&((s=a.context)==null?void 0:s.field)===r?.field&&((o=a.context)==null?void 0:o.entityName)===r?.entityName&&((i=a.context)==null?void 0:i.entityId)===r?.entityId?a:new ve({value:e,cause:a,context:r})}},ie=({prefix:t,size:e=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const s=()=>{const o=a.length,i=new Array(e);for(let n=0;n<e;n++)i[n]=a[Math.random()*o|0];return i.join("")};if(t==null)return s;if(a.includes(r))throw new Zt({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${a}".`});return()=>`${t}${r}${s()}`};ie();var Ft=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,Bt=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function Ze(t){const e=JSON.parse(t);return e===null||typeof e!="object"||Ft.test(t)===!1&&Bt.test(t)===!1?e:Vt(e)}function Vt(t){let e=[t];for(;e.length;){const a=e;e=[];for(const r of a){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor!==null&&typeof r.constructor=="object"&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const s in r){const o=r[s];o&&typeof o=="object"&&e.push(o)}}}return t}function zt(t){const{stackTraceLimit:e}=Error;try{Error.stackTraceLimit=0}catch{return Ze(t)}try{return Ze(t)}finally{Error.stackTraceLimit=e}}function Te(t){if(t.type==="object"||Array.isArray(t.type)&&t.type.includes("object")){t.additionalProperties=!1;const{properties:a}=t;if(a!=null)for(const r of Object.keys(a))a[r]=z(a[r])}t.items!=null&&(t.items=Array.isArray(t.items)?t.items.map(z):z(t.items)),t.anyOf!=null&&(t.anyOf=t.anyOf.map(z)),t.allOf!=null&&(t.allOf=t.allOf.map(z)),t.oneOf!=null&&(t.oneOf=t.oneOf.map(z));const{definitions:e}=t;if(e!=null)for(const a of Object.keys(e))e[a]=z(e[a]);return t}function z(t){return typeof t=="boolean"?t:Te(t)}var Jt=Symbol("Let zodToJsonSchema decide on which parser to use"),$e={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},Wt=t=>typeof t=="string"?{...$e,name:t}:{...$e,...t};function R(){return{}}function Gt(t,e){var a,r,s;const o={type:"array"};return(a=t.type)!=null&&a._def&&((s=(r=t.type)==null?void 0:r._def)==null?void 0:s.typeName)!==h.ZodAny&&(o.items=b(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&(o.minItems=t.minLength.value),t.maxLength&&(o.maxItems=t.maxLength.value),t.exactLength&&(o.minItems=t.exactLength.value,o.maxItems=t.exactLength.value),o}function Yt(t){const e={type:"integer",format:"int64"};if(!t.checks)return e;for(const a of t.checks)switch(a.kind){case"min":a.inclusive?e.minimum=a.value:e.exclusiveMinimum=a.value;break;case"max":a.inclusive?e.maximum=a.value:e.exclusiveMaximum=a.value;break;case"multipleOf":e.multipleOf=a.value;break}return e}function Ht(){return{type:"boolean"}}function et(t,e){return b(t.type._def,e)}var qt=(t,e)=>b(t.innerType._def,e);function tt(t,e,a){const r=a??e.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((s,o)=>tt(t,e,s))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Xt(t)}}var Xt=t=>{const e={type:"integer",format:"unix-time"};for(const a of t.checks)switch(a.kind){case"min":e.minimum=a.value;break;case"max":e.maximum=a.value;break}return e};function Qt(t,e){return{...b(t.innerType._def,e),default:t.defaultValue()}}function Kt(t,e){return e.effectStrategy==="input"?b(t.schema._def,e):R()}function ea(t){return{type:"string",enum:Array.from(t.values)}}var ta=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function aa(t,e){const a=[b(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),b(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(s=>!!s),r=[];return a.forEach(s=>{if(ta(s))r.push(...s.allOf);else{let o=s;if("additionalProperties"in s&&s.additionalProperties===!1){const{additionalProperties:i,...n}=s;o=n}r.push(o)}}),r.length?{allOf:r}:void 0}function ra(t){const e=typeof t.value;return e!=="bigint"&&e!=="number"&&e!=="boolean"&&e!=="string"?{type:Array.isArray(t.value)?"array":"object"}:{type:e==="bigint"?"integer":e,const:t.value}}var me=void 0,P={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(me===void 0&&(me=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),me),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function at(t,e){const a={type:"string"};if(t.checks)for(const r of t.checks)switch(r.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"email":switch(e.emailStrategy){case"format:email":D(a,"email",r.message,e);break;case"format:idn-email":D(a,"idn-email",r.message,e);break;case"pattern:zod":A(a,P.email,r.message,e);break}break;case"url":D(a,"uri",r.message,e);break;case"uuid":D(a,"uuid",r.message,e);break;case"regex":A(a,r.regex,r.message,e);break;case"cuid":A(a,P.cuid,r.message,e);break;case"cuid2":A(a,P.cuid2,r.message,e);break;case"startsWith":A(a,RegExp(`^${he(r.value,e)}`),r.message,e);break;case"endsWith":A(a,RegExp(`${he(r.value,e)}$`),r.message,e);break;case"datetime":D(a,"date-time",r.message,e);break;case"date":D(a,"date",r.message,e);break;case"time":D(a,"time",r.message,e);break;case"duration":D(a,"duration",r.message,e);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"includes":{A(a,RegExp(he(r.value,e)),r.message,e);break}case"ip":{r.version!=="v6"&&D(a,"ipv4",r.message,e),r.version!=="v4"&&D(a,"ipv6",r.message,e);break}case"base64url":A(a,P.base64url,r.message,e);break;case"jwt":A(a,P.jwt,r.message,e);break;case"cidr":{r.version!=="v6"&&A(a,P.ipv4Cidr,r.message,e),r.version!=="v4"&&A(a,P.ipv6Cidr,r.message,e);break}case"emoji":A(a,P.emoji(),r.message,e);break;case"ulid":{A(a,P.ulid,r.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{D(a,"binary",r.message,e);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{A(a,P.base64,r.message,e);break}}break}case"nanoid":A(a,P.nanoid,r.message,e)}return a}function he(t,e){return e.patternStrategy==="escape"?na(t):t}var sa=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function na(t){let e="";for(let a=0;a<t.length;a++)sa.has(t[a])||(e+="\\"),e+=t[a];return e}function D(t,e,a,r){var s;t.format||(s=t.anyOf)!=null&&s.some(o=>o.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:e,...a&&r.errorMessages&&{errorMessage:{format:a}}})):t.format=e}function A(t,e,a,r){var s;t.pattern||(s=t.allOf)!=null&&s.some(o=>o.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:Ue(e,r),...a&&r.errorMessages&&{errorMessage:{pattern:a}}})):t.pattern=Ue(e,r)}function Ue(t,e){var a;if(!e.applyRegexFlags||!t.flags)return t.source;const r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},s=r.i?t.source.toLowerCase():t.source;let o="",i=!1,n=!1,p=!1;for(let u=0;u<s.length;u++){if(i){o+=s[u],i=!1;continue}if(r.i){if(n){if(s[u].match(/[a-z]/)){p?(o+=s[u],o+=`${s[u-2]}-${s[u]}`.toUpperCase(),p=!1):s[u+1]==="-"&&((a=s[u+2])!=null&&a.match(/[a-z]/))?(o+=s[u],p=!0):o+=`${s[u]}${s[u].toUpperCase()}`;continue}}else if(s[u].match(/[a-z]/)){o+=`[${s[u]}${s[u].toUpperCase()}]`;continue}}if(r.m){if(s[u]==="^"){o+=`(^|(?<=[\r
|
|
4
4
|
]))`;continue}else if(s[u]==="$"){o+=`($|(?=[\r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,m as d,r as p,j as r}from"./index-
|
|
1
|
+
import{c as f,m as d,r as p,j as r}from"./index-CpcKMJHf.js";import{r as w}from"./sidebar-BmhMU5lV.js";const v=p.createContext(void 0),H=v.Provider;function N(c,e){const l=p.Children.toArray(c);for(const i of l)if(p.isValidElement(i)&&i.type===e)return i;return null}function P(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex flex-col h-full w-full bg-background overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function C(c){const e=f.c(17),{children:l,className:i,hideSidebarTrigger:s}=c;let t;e[0]!==l?(t=N(l,j),e[0]=l,e[1]=t):t=e[1];const n=t;let a;e[2]!==l?(a=N(l,b),e[2]=l,e[3]=a):a=e[3];const o=a;let m;e[4]!==i?(m=d("shrink-0 w-full border-b border-border/50 h-11","flex items-center justify-between gap-3 pr-2 pl-2 md:pl-4",i),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==s?(x=!s&&r.jsx(w,{className:"md:hidden shrink-0"}),e[6]=s,e[7]=x):x=e[7];let u;e[8]!==n||e[9]!==x?(u=r.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[x,n]}),e[8]=n,e[9]=x,e[10]=u):u=e[10];let h;e[11]!==o?(h=r.jsx("div",{className:"flex items-center",children:o}),e[11]=o,e[12]=h):h=e[12];let g;return e[13]!==m||e[14]!==u||e[15]!==h?(g=r.jsxs("div",{className:m,children:[u,h]}),e[13]=m,e[14]=u,e[15]=h,e[16]=g):g=e[16],g}function j(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 min-w-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function b(c){const e=f.c(5),{children:l,className:i}=c;let s;e[0]!==i?(s=d("flex items-center gap-2 shrink-0 overflow-hidden",i),e[0]=i,e[1]=s):s=e[1];let t;return e[2]!==l||e[3]!==s?(t=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=t):t=e[4],t}function $(c){const e=f.c(6),{children:l,className:i}=c,s=p.useContext(v);let t;e[0]!==i||e[1]!==s?(t=d("flex-1 overflow-auto",s,i),e[0]=i,e[1]=s,e[2]=t):t=e[2];let n;return e[3]!==l||e[4]!==t?(n=r.jsx("div",{className:t,children:l}),e[3]=l,e[4]=t,e[5]=n):n=e[5],n}function y(c){const e=f.c(10),{children:l,actions:i,className:s}=c;let t;e[0]!==s?(t=d("flex flex-wrap items-center justify-between gap-3",s),e[0]=s,e[1]=t):t=e[1];let n;e[2]!==l?(n=r.jsx("div",{className:"text-xl font-medium min-w-0",children:l}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==i?(a=i&&r.jsx("div",{className:"flex items-center gap-2",children:i}),e[4]=i,e[5]=a):a=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==a?(o=r.jsxs("div",{className:t,children:[n,a]}),e[6]=t,e[7]=n,e[8]=a,e[9]=o):o=e[9],o}function R(c){const e=f.c(6),{children:l,className:i,maxWidth:s}=c,t=s===void 0?"max-w-[1200px]":s;let n;e[0]!==i||e[1]!==t?(n=d("mx-auto w-full px-4 pt-8 pb-6 md:px-10 md:pt-12 md:pb-10",t,i),e[0]=i,e[1]=t,e[2]=n):n=e[2];let a;return e[3]!==l||e[4]!==n?(a=r.jsx("div",{className:n,children:l}),e[3]=l,e[4]=n,e[5]=a):a=e[5],a}const T=Object.assign(P,{Header:Object.assign(C,{Left:j,Right:b}),Content:$,Title:y,Body:R});export{T as P,H as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as h}from"./index-
|
|
1
|
+
import{r as h}from"./index-CpcKMJHf.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,aN as R}from"./index-
|
|
1
|
+
import{r as a,aN as R}from"./index-CpcKMJHf.js";function re(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function me(e){if(Array.isArray(e))return e}function be(e,t,r){return(t=Se(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,c,s=[],f=!0,p=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(f=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);f=!0);}catch(j){p=!0,o=j}finally{try{if(!f&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(p)throw o}}return s}}function we(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ne(Object(r),!0).forEach(function(n){be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oe(e,t){if(e==null)return{};var r,n,o=je(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function je(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Me(e,t){return me(e)||ye(e,t)||Ee(e,t)||we()}function Pe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Se(e){var t=Pe(e,"string");return typeof t=="symbol"?t:t+""}function Ee(e,t){if(e){if(typeof e=="string")return re(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?re(e,t):void 0}}function Re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ie(Object(r),!0).forEach(function(n){Re(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ie(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function A(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function F(e){return{}.toString.call(e).includes("Object")}function Te(e){return!Object.keys(e).length}function D(e){return typeof e=="function"}function Ce(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e,t){return F(t)||P("changeType"),Object.keys(t).some(function(r){return!Ce(e,r)})&&P("changeField"),t}function Ae(e){D(e)||P("selectorType")}function $e(e){D(e)||F(e)||P("handlerType"),F(e)&&Object.values(e).some(function(t){return!D(t)})&&P("handlersType")}function De(e){e||P("initialIsRequired"),F(e)||P("initialType"),Te(e)&&P("initialContent")}function Ve(e,t){throw new Error(e[t]||e.default)}var xe={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},P=A(Ve)(xe),q={changes:Le,selector:Ae,handler:$e,initial:De};function Ne(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};q.initial(e),q.handler(t);var r={current:e},n=A(Fe)(r,t),o=A(ze)(r),i=A(q.changes)(e),c=A(qe)(r);function s(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(j){return j};return q.selector(p),p(r.current)}function f(p){Ie(n,o,i,c)(p)}return[s,f]}function qe(e,t){return D(t)?t(e.current):t}function ze(e,t){return e.current=ae(ae({},e.current),t),t}function Fe(e,t,r){return D(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Ue={create:Ne},He={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function We(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,s=new Array(c),f=0;f<c;f++)s[f]=arguments[f];return t.apply(r,[].concat(o,s))}}}function Be(e){return{}.toString.call(e).includes("Object")}function Ke(e){return e||ue("configIsRequired"),Be(e)||ue("configType"),e.urls?(Ge(),{paths:{vs:e.urls.monacoBase}}):e}function Ge(){console.warn(ce.deprecation)}function Ye(e,t){throw new Error(e[t]||e.default)}var ce={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
3
3
|
You are using deprecated way of configuration.
|
|
4
4
|
|