decocms 4.150.12 → 4.150.13
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-DkUSF8S9.js → AlertCircle-Eoiskkdw.js} +1 -1
- package/dist/client/assets/{AreaChart-B7P5iILx.js → AreaChart-D1UwNZ2i.js} +1 -1
- package/dist/client/assets/{ArrowUp-CwxMxJ_X.js → ArrowUp-Cqu5i0aZ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Fn4hisEQ.js → ArrowUpRight-CWi3fozt.js} +1 -1
- package/dist/client/assets/{Check-CaWO08Ol.js → Check-BdHuJuPw.js} +1 -1
- package/dist/client/assets/{CheckCircle-Ce06Dt0r.js → CheckCircle-myPjsJGU.js} +1 -1
- package/dist/client/assets/{ChevronDown-dQW8AtGI.js → ChevronDown-DEyjLxYx.js} +1 -1
- package/dist/client/assets/{ChevronRight-BK_QoWDW.js → ChevronRight-BBN141em.js} +1 -1
- package/dist/client/assets/{ChevronUp-ClNBV1ML.js → ChevronUp-DJfqG7zj.js} +1 -1
- package/dist/client/assets/{Copy01-D0rsTdyc.js → Copy01-gvtGLLcY.js} +1 -1
- package/dist/client/assets/{CpuChip01-EpnURADx.js → CpuChip01-kG4BiE9Y.js} +1 -1
- package/dist/client/assets/{DotsVertical-BISxlJ7z.js → DotsVertical-5WbYSo6Z.js} +1 -1
- package/dist/client/assets/{Eye-CHWgme6t.js → Eye-CZFxMqY9.js} +1 -1
- package/dist/client/assets/{FilterLines-2nONIGaK.js → FilterLines-ubYrwRwC.js} +1 -1
- package/dist/client/assets/{HardDrive--H6xeB9a.js → HardDrive-F_HbtdSs.js} +1 -1
- package/dist/client/assets/{Key01-DGgsccNk.js → Key01-D9NzOa5l.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Cl0i-UMj.js → LayoutLeft-BuxvHUKx.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DLruoFNK.js → LinkExternal01-DJvk8I2A.js} +1 -1
- package/dist/client/assets/{LogOut01-Cu8U0s7_.js → LogOut01-DN8933ou.js} +1 -1
- package/dist/client/assets/{Monitor01-CDpPX-EA.js → Monitor01-Cd36dx-4.js} +1 -1
- package/dist/client/assets/{Palette-C9-u1HL2.js → Palette-D0m6ZhK3.js} +1 -1
- package/dist/client/assets/{Play-3ZXTDwaq.js → Play-D_aQs7dj.js} +1 -1
- package/dist/client/assets/{Plus-BJivuRWZ.js → Plus-XPxaBtTZ.js} +1 -1
- package/dist/client/assets/{SearchLg-DehWCYuP.js → SearchLg-Dlw09bmE.js} +1 -1
- package/dist/client/assets/{SearchMd-Dxz9PRr9.js → SearchMd-D-oUO6X0.js} +1 -1
- package/dist/client/assets/{Settings02-jyt4Cg5Z.js → Settings02-B_QAMj-P.js} +1 -1
- package/dist/client/assets/{Shield01-D8NQC667.js → Shield01-m7YUf-pl.js} +1 -1
- package/dist/client/assets/{Star01-Dwm5Prxz.js → Star01-4a_Jxita.js} +1 -1
- package/dist/client/assets/{Stars01-Cr6jH6bn.js → Stars01-C8PrtncY.js} +1 -1
- package/dist/client/assets/{Stars02-BvkKgu1r.js → Stars02-COchQugv.js} +1 -1
- package/dist/client/assets/{Sun-BmSr6mcR.js → Sun-Bdj4gRC5.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Cocp1NCJ.js → SwitchHorizontal01-IoYlCupu.js} +1 -1
- package/dist/client/assets/{Tool01-B43_tnd4.js → Tool01-B96hoDFN.js} +1 -1
- package/dist/client/assets/{Tool02-B1k57A59.js → Tool02-AsfUGp__.js} +1 -1
- package/dist/client/assets/{Trash01-Bij2sBQa.js → Trash01-g9SUeAN0.js} +1 -1
- package/dist/client/assets/{TrendUp01-DNUroovp.js → TrendUp01-BAGSq_YF.js} +1 -1
- package/dist/client/assets/{Upload01-DjH022N7.js → Upload01-L2syNbDQ.js} +1 -1
- package/dist/client/assets/{User01-ZmPLIjFd.js → User01-CbL87ZBv.js} +1 -1
- package/dist/client/assets/{Users01-BVLWlI1e.js → Users01-BMwIQhmY.js} +1 -1
- package/dist/client/assets/{Users03-BJvAVnZb.js → Users03-BJNH9N4K.js} +1 -1
- package/dist/client/assets/{X-BRRsujeq.js → X-th7ARgOR.js} +1 -1
- package/dist/client/assets/{XCircle-CCKIXuSl.js → XCircle-CfjuVDux.js} +1 -1
- package/dist/client/assets/{XClose-x59ADxdn.js → XClose-BV56nJYO.js} +1 -1
- package/dist/client/assets/{Zap-5T12Qisd.js → Zap-Cu4-I_Ac.js} +1 -1
- package/dist/client/assets/{ZapSquare-BnJ2CyTX.js → ZapSquare-k4WUcduv.js} +1 -1
- package/dist/client/assets/{access-gate-DtqxGB-6.js → access-gate-B0jUQZZH.js} +1 -1
- package/dist/client/assets/{add-section-modal-Bpcf-n0v.js → add-section-modal-Dz_K3qJ2.js} +1 -1
- package/dist/client/assets/{agent-icon-CX57MHZN.js → agent-icon-DCQPTD-I.js} +1 -1
- package/dist/client/assets/agents-list-opUfTjSK.js +1 -0
- package/dist/client/assets/{ai-providers-D4M2XSvx.js → ai-providers-C3-viUvZ.js} +1 -1
- package/dist/client/assets/{alert-Coj2IknE.js → alert-BGIkzGI9.js} +1 -1
- package/dist/client/assets/{alert-dialog-DMgETmzD.js → alert-dialog-P11DPMoL.js} +1 -1
- package/dist/client/assets/{app-editor-BLK6ix0D.js → app-editor-ccFWMS20.js} +1 -1
- package/dist/client/assets/{auth-Bxvu_2Ac.js → auth-BqANqm0A.js} +1 -1
- package/dist/client/assets/{auth-catchall-BLVM76qH.js → auth-catchall-BOnc_g4-.js} +1 -1
- package/dist/client/assets/{auth-entry-hR1VkCsv.js → auth-entry-DMFjUxSN.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Bq7vmRP1.js → auth-split-layout-B07StbUi.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-iGLSyEy7.js → authenticate-and-persist-oauth-sNdJBe3I.js} +1 -1
- package/dist/client/assets/{automation-list-row-KsI-CvB5.js → automation-list-row-BgdzPrn2.js} +1 -1
- package/dist/client/assets/{automation-runs-B7jzZApT.js → automation-runs-kY0Hd5bJ.js} +1 -1
- package/dist/client/assets/{automations-BGn1AtyZ.js → automations-duhQRZ_h.js} +1 -1
- package/dist/client/assets/{avatar-JWYe9tuD.js → avatar-C7VBTxjb.js} +1 -1
- package/dist/client/assets/{badge-D7PXFjPU.js → badge-Bu9TYgek.js} +1 -1
- package/dist/client/assets/{block-document-ClcxUvCd.js → block-document-Dx-Kq5IV.js} +1 -1
- package/dist/client/assets/{brand-context-DA0HdnVu.js → brand-context-CWx4XQkj.js} +1 -1
- package/dist/client/assets/{buckets-1I5fO_OM.js → buckets-CW6FQIkN.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-FNvOtMsi.js → bulk-category-panel-Dz7CZ_Ps.js} +1 -1
- package/dist/client/assets/{calendar-CyE49Lc6.js → calendar-DOxmGM7p.js} +1 -1
- package/dist/client/assets/{capability-load-error-_6TFDt_Z.js → capability-load-error-DTwJskAo.js} +1 -1
- package/dist/client/assets/{card-soYQdPhw.js → card-B0f_2u3D.js} +1 -1
- package/dist/client/assets/{category-editor-Dl0UGGun.js → category-editor-eF5ieM9X.js} +1 -1
- package/dist/client/assets/{chat-context-DOruUose.js → chat-context-aAijaY3A.js} +1 -1
- package/dist/client/assets/{checkbox-0q9FnTIX.js → checkbox-d1Rt9GUt.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CR_KdW_E.js → cli-auth-success-BTkf7YGZ.js} +1 -1
- package/dist/client/assets/{collection-detail-CwGX6_bW.js → collection-detail-XE42oRb-.js} +1 -1
- package/dist/client/assets/{collection-display-button-CNua0OQw.js → collection-display-button-DUa_Df-A.js} +1 -1
- package/dist/client/assets/{collection-search-Dpng8LoC.js → collection-search-DVfGAujX.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BEablUll.js → collection-table-wrapper-BsO2CtT4.js} +1 -1
- package/dist/client/assets/{collection-tabs-BIyQDwrD.js → collection-tabs-u5enzkVl.js} +1 -1
- package/dist/client/assets/{command-lV9P9VCb.js → command-uPNVzZmX.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-d5Ckriwp.js → commerce-onboarding-EbYviyIl.js} +1 -1
- package/dist/client/assets/{companions-core-T8xKIDs8.js → companions-core-Dg0TNpYb.js} +1 -1
- package/dist/client/assets/{connect-CBvQSyjS.js → connect-Da9YwgpD.js} +1 -1
- package/dist/client/assets/{connection-Cn5mPZjc.js → connection-Du_RJnpr.js} +1 -1
- package/dist/client/assets/{connection-card-M--ClGzW.js → connection-card-CSYIgKfu.js} +1 -1
- package/dist/client/assets/{connection-detail-CKiwpwQw.js → connection-detail-COQvrxlN.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-SRVklhqj.js → connection-form-helpers-C1xXkycr.js} +1 -1
- package/dist/client/assets/{connections-Bn8tLKRu.js → connections-f5IaRiLS.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DfiSaS6Z.js → decopilot-sse-pool-B-6W79yQ.js} +1 -1
- package/dist/client/assets/{dialog-B9oegZDu.js → dialog-CJkJPlAS.js} +1 -1
- package/dist/client/assets/{domain-settings-BamKNkfv.js → domain-settings-B-OR8tCr.js} +1 -1
- package/dist/client/assets/{drawer-gCdKlKyC.js → drawer-Vmj6vj2H.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BYWILVSv.js → dropdown-menu-DabrgiLz.js} +1 -1
- package/dist/client/assets/{empty-state-DI5SVsDm.js → empty-state-fv8rbuQT.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BiZHVUW1.js → extract-connection-data-C2XmdMG4.js} +1 -1
- package/dist/client/assets/{file-explorer-MajU3dSY.js → file-explorer-DmkInB_B.js} +1 -1
- package/dist/client/assets/{form-DbQjm3RG.js → form-BNZvnkRb.js} +1 -1
- package/dist/client/assets/{general-BL1n62uN.js → general-m1pdndCH.js} +1 -1
- package/dist/client/assets/github-repo-picker-BZBSEeFT.js +1 -0
- package/dist/client/assets/{hooks-Cdi0T6NA.js → hooks-S0-VfPJM.js} +1 -1
- package/dist/client/assets/{index-Dsg3QMPc.js → index-B6ykVoku.js} +1 -1
- package/dist/client/assets/{index-4jt5IRNL.js → index-BR5NjjJc.js} +1 -1
- package/dist/client/assets/{index-CB06aXrK.js → index-Bc4pTCDJ.js} +1 -1
- package/dist/client/assets/{index-BtOilzE5.js → index-Bp9fmXVF.js} +1 -1
- package/dist/client/assets/{index-Bn5LDRj0.js → index-C8ZRu3O2.js} +1 -1
- package/dist/client/assets/{index-yzqlSPEW.js → index-CE-pZQ5n.js} +1 -1
- package/dist/client/assets/{index-CLgyj0Ph.js → index-CsXIUaax.js} +3 -3
- package/dist/client/assets/{index-BBJRaxX8.js → index-DfcOr-zj.js} +1 -1
- package/dist/client/assets/{index-DD0t6510.js → index-oCG8H3JL.js} +5 -5
- package/dist/client/assets/{index-redirect-BiiMfl6M.js → index-redirect-ejiq3ej6.js} +1 -1
- package/dist/client/assets/{index-BcxH3g_P.js → index-vAlUDtly.js} +3 -3
- package/dist/client/assets/{index-DYdINzCW.js → index-vd6CkgrG.js} +1 -1
- package/dist/client/assets/{input-BwMPytZi.js → input-B6QX4Bsc.js} +1 -1
- package/dist/client/assets/{integration-icon-BSizUwtM.js → integration-icon-CAdntIjt.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-C0XaeElw.js → invite-member-dialog-34FD2jh4.js} +1 -1
- package/dist/client/assets/{label-DFGmypV5.js → label-CEg7qY-f.js} +1 -1
- package/dist/client/assets/{layout-DxXYx71Y.js → layout-BzEtom0U.js} +1 -1
- package/dist/client/assets/{login-Bz-2wgDI.js → login-CFRyKNLt.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DNSOSAwY.js → mcp-oauth-Dl2k8oDk.js} +1 -1
- package/dist/client/assets/{members-f5WGmg4S.js → members-DJ1Auc8C.js} +1 -1
- package/dist/client/assets/{monaco-editor-nBV34MRL.js → monaco-editor-BVhG6A-M.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B42ZD2Pr.js → monitoring-stats-row-SqogCnFC.js} +1 -1
- package/dist/client/assets/{multi-select-BXdAwEJ3.js → multi-select-UF9SWQ6e.js} +1 -1
- package/dist/client/assets/{oauth-callback-ChT-RlHe.js → oauth-callback-DZO2ZJBO.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dj3lFY5c.js → oauth-callback-ai-provider-9-U3XUKP.js} +1 -1
- package/dist/client/assets/{onboarding-wXglYyah.js → onboarding-CyrprJFg.js} +1 -1
- package/dist/client/assets/{org-install-BGhxaoAp.js → org-install-DGCT_s6M.js} +1 -1
- package/dist/client/assets/{org-layout-CWltwFJ8.js → org-layout-B728gB0l.js} +1 -1
- package/dist/client/assets/{organization-choice-t5wYtE_x.js → organization-choice-Ccuwzodh.js} +1 -1
- package/dist/client/assets/{orgs-BIX-r_Bs.js → orgs-CPUy2U55.js} +1 -1
- package/dist/client/assets/{page-seo-form-Hdn6H-EE.js → page-seo-form-DlEVMpaI.js} +1 -1
- package/dist/client/assets/{popover-DmPP_Wum.js → popover-DEaCMzZP.js} +1 -1
- package/dist/client/assets/{post-editor-OyGhf2Ka.js → post-editor-Bb5IfTCU.js} +1 -1
- package/dist/client/assets/{primitives-CaH5RBnr.js → primitives-BTgHbvPp.js} +1 -1
- package/dist/client/assets/{profile-B2VY0ZS8.js → profile-CxkMLIYl.js} +1 -1
- package/dist/client/assets/project-app-view-CbsnI5_S.js +1 -0
- package/dist/client/assets/provision-repo-scoped-github-connection-C2RHf8fG.js +1 -0
- package/dist/client/assets/record-editor-CDJ26ss0.js +1 -0
- package/dist/client/assets/{redirect-editor-C96uMcWu.js → redirect-editor-DD7PcldO.js} +1 -1
- package/dist/client/assets/registry-Uwc000L6.js +2 -0
- package/dist/client/assets/{registry-layout-JmQNDspa.js → registry-layout-CfaJe34R.js} +1 -1
- package/dist/client/assets/{reports-Bl0iJBbV.js → reports-BFgBFsZV.js} +1 -1
- package/dist/client/assets/{require-capability-APhfyAbM.js → require-capability-BV5_KDVM.js} +1 -1
- package/dist/client/assets/{required-auth-layout-D68OOUEY.js → required-auth-layout-CWHGEbNY.js} +1 -1
- package/dist/client/assets/{reset-password-DL8RfFE6.js → reset-password-cg551v26.js} +1 -1
- package/dist/client/assets/{roles-Cm81NQ5G.js → roles-DkFyVRXC.js} +1 -1
- package/dist/client/assets/{search-input-CVQs7RpL.js → search-input-BiAm-dHP.js} +1 -1
- package/dist/client/assets/{secrets-CCvK4loO.js → secrets-CbL3TEVq.js} +1 -1
- package/dist/client/assets/{sections-editor-DkBwWst3.js → sections-editor-YtQ-pXxY.js} +1 -1
- package/dist/client/assets/{select-DiBMx0I6.js → select-DWrifuH3.js} +1 -1
- package/dist/client/assets/{select-model-U0NH-03Z.js → select-model-L_zaW5VV.js} +1 -1
- package/dist/client/assets/{self-tool-result-Dmty8b-9.js → self-tool-result-ILtZLxoN.js} +1 -1
- package/dist/client/assets/{seo-editor-Cv5a7w20.js → seo-editor-7FbWYb3Z.js} +1 -1
- package/dist/client/assets/{settings-layout-DTUqWdZq.js → settings-layout-CAkmdzMT.js} +1 -1
- package/dist/client/assets/{settings-section-CJi2U3py.js → settings-section-CZBB9hU0.js} +1 -1
- package/dist/client/assets/{shell-controls-BtDc9Y-D.js → shell-controls-llKLpxpW.js} +1 -1
- package/dist/client/assets/{shell-layout-CZMSsz_J.js → shell-layout-BTLWrDNT.js} +1 -1
- package/dist/client/assets/{sidebar-DeKVeH2K.js → sidebar-Dy1VWxxx.js} +1 -1
- package/dist/client/assets/{skeleton-YNL4Gfyh.js → skeleton-Dr0ihbmb.js} +1 -1
- package/dist/client/assets/{spinner-cWHEuKxp.js → spinner-ChQk-fuJ.js} +1 -1
- package/dist/client/assets/{sso-BIp8LA3w.js → sso-CZy_Z0iZ.js} +1 -1
- package/dist/client/assets/store-registry-C4rA423j.js +2 -0
- package/dist/client/assets/{store-R2rNmTrf.js → store-yTKa6R4e.js} +1 -1
- package/dist/client/assets/{studio-tools-DIB17zFH.js → studio-tools-WL-_7DVR.js} +1 -1
- package/dist/client/assets/{switch-CbcK-jGL.js → switch-lBLWR9-v.js} +1 -1
- package/dist/client/assets/{tab-id-7b3wA9i7.js → tab-id-BME_CqCy.js} +1 -1
- package/dist/client/assets/{table-DBYSBeR3.js → table-DX49ZzwB.js} +1 -1
- package/dist/client/assets/{tabs-BrFyu0Ld.js → tabs-EJLJDayr.js} +1 -1
- package/dist/client/assets/{textarea-BGf8-22U.js → textarea-C_aquDFn.js} +1 -1
- package/dist/client/assets/{toggle-group-CjS_UJ7P.js → toggle-group-Q0IrBn5K.js} +1 -1
- package/dist/client/assets/{toolbar-BZigRKxC.js → toolbar-DtyhtDGB.js} +1 -1
- package/dist/client/assets/{tooltip-Boyng34D.js → tooltip-fIVhp5ou.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BrI62wxb.js → use-ai-providers-DEYBcyVN.js} +1 -1
- package/dist/client/assets/{use-automations-CwH1KDVN.js → use-automations-NZO0H-p1.js} +1 -1
- package/dist/client/assets/{use-autosave-D4pq6CN0.js → use-autosave-CUy33u2t.js} +1 -1
- package/dist/client/assets/{use-capability-BWY6g3Hm.js → use-capability-Dzali0wY.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CGEs0Tg3.js → use-clock-tick-DR9o8Vl7.js} +1 -1
- package/dist/client/assets/{use-connection-DpTbs6D3.js → use-connection-B06hUHgo.js} +1 -1
- package/dist/client/assets/{use-copy-BjAla8BE.js → use-copy-2CfnxQXo.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-SW1VWhqm.js → use-create-virtual-mcp-DEF-DvFp.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-pWgqt4Hv.js → use-debounced-autosave-ChmgSDUl.js} +1 -1
- package/dist/client/assets/{use-debounced-value-MHaS7My_.js → use-debounced-value-CFLMM6Qe.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D_UnpHIS.js → use-deco-credits-Bf0twN-A.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DIQe_rcp.js → use-decopilot-events-ByGtTT-X.js} +1 -1
- package/dist/client/assets/{use-delete-connection-XG9nVuEY.js → use-delete-connection-D0aJn94j.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-QHseVn26.js → use-deployment-admin-CbjYP-TY.js} +1 -1
- package/dist/client/assets/{use-file-configs-C3YngRho.js → use-file-configs-Du58T_Jv.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CfKncOiK.js → use-infinite-scroll-C3O-KBl8.js} +1 -1
- package/dist/client/assets/{use-join-requests-BG4xsWYG.js → use-join-requests-Bl54Lsyw.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-qaat6Jvn.js → use-mcp-auth-status-P3A3uVfF.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BEwkzQUP.js → use-mcp-client-DpsAHhsu.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-gn9osu_Q.js → use-mcp-tools-D5d64p3C.js} +1 -1
- package/dist/client/assets/{use-members-DTeBeYXQ.js → use-members-CmlnN6Aw.js} +1 -1
- package/dist/client/assets/{use-mobile-ClQdbPYE.js → use-mobile-DGf5vwNF.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DvK4hzMp.js → use-navigate-to-agent-BtA6n79A.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DHBscDoc.js → use-org-auth-client-BmTFN65s.js} +1 -1
- package/dist/client/assets/{use-org-sso-R6aJskDC.js → use-org-sso-DWfsG4pV.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CSIbmHE0.js → use-organization-roles-DcrcrZqB.js} +1 -1
- package/dist/client/assets/{use-organization-settings-3l3-PWZ-.js → use-organization-settings-DOeb2tV3.js} +1 -1
- package/dist/client/assets/{use-registry-connections-m_NzqSHw.js → use-registry-connections-CWaA6tdp.js} +1 -1
- package/dist/client/assets/{use-secrets-CmAxrjv8.js → use-secrets-en8tthJo.js} +1 -1
- package/dist/client/assets/{use-status-sounds-D4JT9F25.js → use-status-sounds-CW8S7oZ-.js} +1 -1
- package/dist/client/assets/{use-tags-BauEp0vd.js → use-tags-Q5fBrYNZ.js} +1 -1
- package/dist/client/assets/{use-view-mode-9NHwOyEs.js → use-view-mode-W11-AL0e.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BnHBU3_3.js → use-virtual-mcp-CNAeRFsi.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BsbgCJ-c.js +1 -0
- package/dist/client/assets/{useQueries-DF7muCkz.js → useQueries-mGQBH8qb.js} +1 -1
- package/dist/client/assets/{useRouterState-CO6LbiMl.js → useRouterState-DstVuNgC.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-3ceZ8_NX.js +1 -0
- package/dist/client/assets/{users-CcQPcfAb.js → users-CcHMTpxs.js} +1 -1
- package/dist/client/assets/{variant-calendar-BOnCE7y-.js → variant-calendar-BnAhmw2x.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CNPz7BwP.js → view-mode-toggle-BjeJK31L.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +259 -259
- package/dist/server/server.js +108 -108
- package/package.json +1 -1
- package/dist/client/assets/agents-list-gFzIi7tp.js +0 -1
- package/dist/client/assets/github-repo-picker-Bu5y6cUR.js +0 -1
- package/dist/client/assets/project-app-view-C18r3lmY.js +0 -1
- package/dist/client/assets/provision-repo-scoped-github-connection-DWINBxtd.js +0 -1
- package/dist/client/assets/record-editor-DJRW6Y3d.js +0 -1
- package/dist/client/assets/registry-BQ5mVg5k.js +0 -2
- package/dist/client/assets/store-registry-DbqduPMQ.js +0 -2
- package/dist/client/assets/useInfiniteQuery-P1Iqwjod.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-dT7ERMWt.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as ge,b as me,j as o,v as Ae,t as le,B as ie,F as De,o as Ie,a as Le,r as W,n as Te,K as de,e as Ee,p as K,G as Fe,m as ke}from"./index-CLgyj0Ph.js";import{a as ne,b as ye,D as ue,c as pe}from"./dropdown-menu-BYWILVSv.js";import{a as Me}from"./Users03-BJvAVnZb.js";import{G as we,b as Ge,a as Oe}from"./github-repo-picker-Bu5y6cUR.js";import{a as Pe,b as ze,c as Be}from"./use-virtual-mcp-BnHBU3_3.js";import{P as ce}from"./index-Dsg3QMPc.js";import{a as Re}from"./DotsVertical-BISxlJ7z.js";import{A as Ue,H as fe,aZ as $e}from"./agent-icon-CX57MHZN.js";import{a as He,b as Ve}from"./Settings02-jyt4Cg5Z.js";import{s as Ke}from"./Trash01-Bij2sBQa.js";import{p as qe,f as he}from"./pt-BR-CLy76QW2.js";import{c as Se}from"./use-navigate-to-agent-DvK4hzMp.js";import{e as Qe,h as Je}from"./use-organization-settings-3l3-PWZ-.js";import{u as _e}from"./use-capability-BWY6g3Hm.js";import{C as Ye}from"./card-soYQdPhw.js";import{E as We}from"./empty-state-DI5SVsDm.js";import{u as Ze}from"./use-create-virtual-mcp-SW1VWhqm.js";import{u as Xe}from"./use-connection-DpTbs6D3.js";import{u as xe,S as et}from"./use-mcp-client-BEwkzQUP.js";import{p as tt,a as je}from"./deco-site-production-url-CaKZ7xBn.js";import{g as ot,f as st,a as it,p as nt}from"./provision-repo-scoped-github-connection-DWINBxtd.js";import{e as rt,d as lt,a as at,b as ct,c as mt}from"./dialog-B9oegZDu.js";import{C as dt}from"./collection-search-Dpng8LoC.js";import{c as ut,d as pt,b as gt,f as ft,g as ht,e as xt,a as jt,A as Ct}from"./alert-dialog-DMgETmzD.js";import{S as bt}from"./search-input-CVQs7RpL.js";import{s as Ce}from"./Plus-BJivuRWZ.js";import"./Check-CaWO08Ol.js";import"./ChevronRight-BK_QoWDW.js";import"./use-debounced-value-MHaS7My_.js";import"./authenticate-and-persist-oauth-iGLSyEy7.js";import"./mcp-oauth-DNSOSAwY.js";import"./auth-Bxvu_2Ac.js";import"./LinkExternal01-DLruoFNK.js";import"./use-mcp-tools-gn9osu_Q.js";import"./extract-connection-data-BiZHVUW1.js";import"./metadata-dUsYcpuu.js";import"./sidebar-DeKVeH2K.js";import"./LayoutLeft-Cl0i-UMj.js";import"./use-mobile-ClQdbPYE.js";import"./X-BRRsujeq.js";import"./tooltip-Boyng34D.js";import"./AlertCircle-DkUSF8S9.js";import"./Tool01-B43_tnd4.js";import"./ArrowUp-CwxMxJ_X.js";import"./Tool02-B1k57A59.js";import"./XCircle-CCKIXuSl.js";import"./ArrowUpRight-Fn4hisEQ.js";import"./TrendUp01-DNUroovp.js";import"./ZapSquare-BnJ2CyTX.js";import"./CheckCircle-Ce06Dt0r.js";import"./ChevronDown-dQW8AtGI.js";import"./ChevronUp-ClNBV1ML.js";import"./Stars02-BvkKgu1r.js";import"./Copy01-D0rsTdyc.js";import"./CpuChip01-EpnURADx.js";import"./Eye-CHWgme6t.js";import"./FilterLines-2nONIGaK.js";import"./Star01-Dwm5Prxz.js";import"./Palette-C9-u1HL2.js";import"./SwitchHorizontal01-Cocp1NCJ.js";import"./HardDrive--H6xeB9a.js";import"./Key01-DGgsccNk.js";import"./LogOut01-Cu8U0s7_.js";import"./Monitor01-CDpPX-EA.js";import"./Sun-BmSr6mcR.js";import"./Play-3ZXTDwaq.js";import"./SearchLg-DehWCYuP.js";import"./SearchMd-Dxz9PRr9.js";import"./Shield01-D8NQC667.js";import"./Stars01-Cr6jH6bn.js";import"./Upload01-DjH022N7.js";import"./User01-ZmPLIjFd.js";import"./Users01-BVLWlI1e.js";import"./XClose-x59ADxdn.js";import"./Zap-5T12Qisd.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./hooks-Cdi0T6NA.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DfiSaS6Z.js";import"./reusable-new-chat-CouMjkYR.js";import"./studio-tools-DIB17zFH.js";function be(t){const e=ge.c(28),{onCreateFromScratch:i,onImportGitHub:n,onImportDeco:r,isCreating:f,align:c,side:G,showBetaBadge:j}=t,O=c===void 0?"end":c,d=me();let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T=o.jsx(Me,{size:14}),e[0]=T):T=e[0];let m;e[1]!==d?(m=d("common.createAgentDropdown.createFromScratch"),e[1]=d,e[2]=m):m=e[2];let D;e[3]!==f||e[4]!==i||e[5]!==m?(D=o.jsxs(ne,{disabled:f,onClick:i,children:[T,m]}),e[3]=f,e[4]=i,e[5]=m,e[6]=D):D=e[6];let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(we,{className:"size-3.5"}),e[7]=C):C=e[7];let y;e[8]!==d?(y=d("common.createAgentDropdown.importFromGitHub"),e[8]=d,e[9]=y):y=e[9];let a;e[10]!==j?(a=j&&o.jsx("span",{className:"ml-auto text-[10px] font-medium text-muted-foreground bg-muted rounded px-1 py-0.5",children:"Beta"}),e[10]=j,e[11]=a):a=e[11];let l;e[12]!==n||e[13]!==y||e[14]!==a?(l=o.jsxs(ne,{onClick:n,children:[C,y,a]}),e[12]=n,e[13]=y,e[14]=a,e[15]=l):l=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsx("img",{src:"/logos/deco%20logo.svg",alt:"deco.cx",className:"size-3.5"}),e[16]=h):h=e[16];let b;e[17]!==d?(b=d("common.createAgentDropdown.importFromDeco"),e[17]=d,e[18]=b):b=e[18];let w;e[19]!==r||e[20]!==b?(w=o.jsxs(ne,{onClick:r,children:[h,b]}),e[19]=r,e[20]=b,e[21]=w):w=e[21];let u;return e[22]!==O||e[23]!==G||e[24]!==w||e[25]!==D||e[26]!==l?(u=o.jsxs(ye,{side:G,align:O,className:"w-48",children:[D,l,w]}),e[22]=O,e[23]=G,e[24]=w,e[25]=D,e[26]=l,e[27]=u):u=e[27],u}function Dt(t){const e=ge.c(65),{project:i,lastUsedAt:n,onDeleteClick:r}=t,f=Se(),c=me(),[G]=Ae(),j=G.language==="pt-BR"?qe:void 0,{mainAgentId:O}=Qe(),d=Je(),{granted:T}=_e("org:manage"),m=O===i.id;let D;e[0]!==m||e[1]!==i.id||e[2]!==i.title||e[3]!==d||e[4]!==c?(D=()=>{const A=m?null:i.id;d.mutate(A,{onSuccess:()=>le.success(m?c("home.projectCard.mainAgentUnset",{title:i.title}):c("home.projectCard.mainAgentSet",{title:i.title})),onError:()=>le.error(c("home.projectCard.mainAgentError"))})},e[0]=m,e[1]=i.id,e[2]=i.title,e[3]=d,e[4]=c,e[5]=D):D=e[5];const C=D;let y;e[6]!==f||e[7]!==i.id?(y=()=>f(i.id),e[6]=f,e[7]=i.id,e[8]=y):y=e[8];let a;e[9]!==i.title||e[10]!==y?(a=o.jsx("button",{type:"button",onClick:y,className:"absolute inset-0 z-0","aria-label":i.title}),e[9]=i.title,e[10]=y,e[11]=a):a=e[11];let l;e[12]!==i.icon||e[13]!==i.title?(l=o.jsx(Ue,{icon:i.icon,name:i.title,size:"sm",className:"shrink-0 shadow-sm"}),e[12]=i.icon,e[13]=i.title,e[14]=l):l=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsx(ue,{asChild:!0,children:o.jsx(ie,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:o.jsx(Re,{size:20})})}),e[15]=h):h=e[15];let b;e[16]!==f||e[17]!==i.id?(b=()=>f(i.id,{search:{main:"settings"}}),e[16]=f,e[17]=i.id,e[18]=b):b=e[18];let w;e[19]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(He,{size:16}),e[19]=w):w=e[19];let u;e[20]!==b?(u=o.jsxs(ne,{onClick:b,children:[w,"Settings"]}),e[20]=b,e[21]=u):u=e[21];let B;e[22]!==T||e[23]!==m||e[24]!==c||e[25]!==C?(B=T&&o.jsxs(ne,{onClick:A=>{A.stopPropagation(),C()},children:[o.jsx(fe,{size:16}),c(m?"home.projectCard.unsetMainAgent":"home.projectCard.setAsMainAgent")]}),e[22]=T,e[23]=m,e[24]=c,e[25]=C,e[26]=B):B=e[26];let E;e[27]!==r?(E=r&&o.jsxs(ne,{variant:"destructive",onClick:A=>{A.stopPropagation(),r(A)},children:[o.jsx(Ke,{size:16}),"Delete"]}),e[27]=r,e[28]=E):E=e[28];let R;e[29]!==E||e[30]!==u||e[31]!==B?(R=o.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:o.jsxs(pe,{children:[h,o.jsxs(ye,{align:"end",children:[u,B,E]})]})}),e[29]=E,e[30]=u,e[31]=B,e[32]=R):R=e[32];let S;e[33]!==R||e[34]!==l?(S=o.jsxs("div",{className:"flex items-start justify-between",children:[l,R]}),e[33]=R,e[34]=l,e[35]=S):S=e[35];let _;e[36]!==i.title?(_=o.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:i.title}),e[36]=i.title,e[37]=_):_=e[37];let N;e[38]!==m||e[39]!==c?(N=m&&o.jsxs("span",{className:"shrink-0 inline-flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs text-muted-foreground",children:[o.jsx(fe,{size:12}),c("home.projectCard.mainAgentBadge")]}),e[38]=m,e[39]=c,e[40]=N):N=e[40];let P;e[41]!==_||e[42]!==N?(P=o.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[_,N]}),e[41]=_,e[42]=N,e[43]=P):P=e[43];const F=i.description||"No description";let s;e[44]!==F?(s=o.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:F}),e[44]=F,e[45]=s):s=e[45];let p;e[46]!==P||e[47]!==s?(p=o.jsxs("div",{className:"flex flex-col gap-1",children:[P,s]}),e[46]=P,e[47]=s,e[48]=p):p=e[48];let x;e[49]!==S||e[50]!==p?(x=o.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[S,p]}),e[49]=S,e[50]=p,e[51]=x):x=e[51];let L;e[52]!==n||e[53]!==j||e[54]!==i.updated_at||e[55]!==c?(L=n?c("home.projectCard.lastUsed",{time:he(new Date(n),{addSuffix:!0,locale:j})}):c("home.projectCard.updated",{time:he(new Date(i.updated_at),{addSuffix:!0,locale:j})}),e[52]=n,e[53]=j,e[54]=i.updated_at,e[55]=c,e[56]=L):L=e[56];let g;e[57]!==L?(g=o.jsx("div",{className:"border-t border-border mt-auto",children:o.jsx("div",{className:"h-10 flex items-center px-4.5",children:o.jsx("p",{className:"text-xs text-muted-foreground",children:L})})}),e[57]=L,e[58]=g):g=e[58];let v;e[59]!==x||e[60]!==g?(v=o.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[x,g]}),e[59]=x,e[60]=g,e[61]=v):v=e[61];let k;return e[62]!==v||e[63]!==a?(k=o.jsxs(Ye,{className:"relative transition-colors group overflow-hidden flex flex-col h-full hover:bg-muted/50",children:[a,v]}),e[62]=v,e[63]=a,e[64]=k):k=e[64],k}const yt="deco-sites";function wt(t){if(!t||typeof t!="object")return null;const e=t.github;if(!e||typeof e!="object")return null;const i=e.owner,n=e.repo;return typeof i!="string"||typeof n!="string"||i.length===0||n.length===0?null:{owner:i,repo:n}}function St(t,e){const i=e?wt(e):null,n=i?.owner??yt,r=i?.repo??t;return{owner:n,name:r,url:`https://github.com/${n}/${r}`}}function _t(t){return t.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}async function Ne(t,e,i){const n=await fetch(t,e),r=await n.json().catch(()=>({}));if(!n.ok)throw new Error(r.error??`${i} (${n.status})`);return r}function Nt(t){return Ne(`/api/${t}/deco-sites`,void 0,"Failed to load sites")}function vt({open:t,onOpenChange:e,onBack:i}){const n=me(),{org:r}=De(),f=Se(),c=Ie(),{data:G}=Le.useSession(),[j,O]=W.useState(null),[d,T]=W.useState(null),[m,D]=W.useState(""),C=xe({connectionId:et,orgId:r.id,orgSlug:r.slug}),y=Xe({slug:"mcp-github"}),a=ot(y),l=Ge({enabled:t&&a.length===0}),h=a.length===1?a[0]??null:d,b=a.length>1&&!h,w=xe({connectionId:h?.id??"",orgId:r.id,orgSlug:r.slug}),u=t&&a.length===0&&(l.status==="installing"||l.status==="authenticating"||l.status==="idle"),{data:B,isLoading:E,error:R}=Te({queryKey:de.decoSites(G?.user?.email),queryFn:()=>Nt(r.slug),enabled:t&&!!G?.user?.email,staleTime:6e4,retry:!1}),S=B?.sites??[],_=s=>{s||(O(null),T(null),D("")),e(s)},N=S.filter(s=>s.name.toLowerCase().includes(m.toLowerCase())||(s.domains?.[0]?.domain?.toLowerCase().includes(m.toLowerCase())??!1)),P=!j||N.some(s=>s.name===j),F=Ee({mutationFn:async s=>{if(!h)throw new Error(n("common.importFromDecoDialog.githubNotConnected"));K("deco_site_import_started",{site_name:s});const{installations:p,appSlug:x}=await st(M=>C.callTool(M),h.id),L=S.find(M=>M.name===s);if(!L)throw new Error(n("common.importFromDecoDialog.siteNoLongerAvailable"));const g=St(s,L.metadata),v=it(p,g.owner);if(!v){const M=x?`https://github.com/apps/${x}/installations/new`:"https://github.com/settings/installations";throw new Error(n("common.importFromDecoDialog.installGithubApp",{owner:g.owner,installUrl:M}))}let k=null,A=null,$=null;const re=async()=>{$&&await C.callTool({name:"COLLECTION_VIRTUAL_MCP_DELETE",arguments:{id:$}}).catch(()=>{}),A&&await C.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:A,force:!0}}).catch(()=>{}),k&&await C.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:k,force:!0}}).catch(()=>{})};try{const M=await Ne(`/api/${r.slug}/deco-sites/connection`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteName:s})},n("common.importFromDecoDialog.failedToCreateConnection")),z=M.connId;if(!z)throw new Error(n("common.importFromDecoDialog.noConnectionId"));k=z;const{childConnectionId:H}=await nt({orgSlug:r.slug,sourceConnection:h,installationId:v.installationId,owner:g.owner,repo:g.name,githubCallTool:V=>w.callTool(V),selfCallTool:V=>C.callTool(V)});A=H;const q=M.icon??null,Z=_t(s),J=s.toLowerCase(),Y=tt(je(L.domains)),Q=await C.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:s,description:"Imported from deco.cx",pinned:!1,icon:q??null,subtype:"project",metadata:{instructions:null,enabled_plugins:[],siteSlug:J,productionUrl:Y,githubRepo:{owner:g.owner,name:g.name,url:g.url,installationId:v.installationId,connectionId:H},ui:{banner:null,bannerColor:"#22C55E",icon:q,themeColor:"#22C55E",slug:Z,pinnedViews:[{connectionId:z,toolName:"fetch_assets",label:"Assets",icon:null},{connectionId:z,toolName:"get_monitor_data",label:"Monitor",icon:null}],layout:{defaultMainView:{type:"preview"},chatDefaultOpen:!0}}},connections:[{connection_id:z},{connection_id:H}]}}}),U=Q.structuredContent??Q;if(!U.item?.id)throw new Error(n("common.importFromDecoDialog.failedToCreateAgent"));return $=U.item.id,{slug:Z,virtualMcpId:U.item.id,connId:z,item:U.item}}catch(M){throw await re(),M}},onSuccess:({slug:s,virtualMcpId:p,item:x})=>{K("deco_site_import_succeeded",{site_name:x.title,virtual_mcp_id:p,slug:s}),c.setQueryData(de.collectionItem(C,r.id,"","VIRTUAL_MCP",p),{item:x}),c.invalidateQueries({predicate:L=>{const g=L.queryKey;return g[1]===r.id&&g[3]==="collection"&&g[4]==="VIRTUAL_MCP"}}),c.invalidateQueries({queryKey:de.projects(r.id)}),le.success(n("common.importFromDecoDialog.importSuccess",{slug:s})),_(!1),localStorage.setItem(Fe.sidebarOpen(),JSON.stringify(!1)),f(p)},onError:s=>{K("deco_site_import_failed",{error:s instanceof Error?s.message:"Unknown error"}),le.error(n("common.importFromDecoDialog.importFailed",{error:(s instanceof Error?s.message:n("common.importFromDecoDialog.unknownError"))??""}))}});return o.jsx(rt,{open:t,onOpenChange:_,children:o.jsxs(lt,{className:"sm:max-w-[900px] p-0 gap-0 overflow-hidden",children:[o.jsx(at,{className:"sr-only",children:o.jsx(ct,{children:n("common.importFromDecoDialog.title")})}),o.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3",children:[i&&o.jsx("button",{type:"button",onClick:i,className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors","aria-label":n("common.importFromDecoDialog.goBack"),children:o.jsx(Ve,{size:18})}),o.jsx("span",{className:"text-sm font-medium text-foreground",children:n("common.importFromDecoDialog.title")})]}),o.jsx("div",{children:o.jsx(dt,{value:m,onChange:D,placeholder:n("common.importFromDecoDialog.searchPlaceholder"),onKeyDown:s=>{s.key==="Escape"&&D("")}})}),o.jsxs("div",{className:"pb-0 min-h-[300px]",children:[l.status==="error"&&o.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 h-48 px-8 text-center",children:[o.jsx("p",{className:"text-sm text-destructive",children:l.error??n("common.importFromDecoDialog.failedToConnectGithub")}),o.jsx(ie,{variant:"outline",size:"sm",onClick:l.retry,children:n("common.importFromDecoDialog.retryGithubSetup")})]}),u&&l.status!=="error"&&o.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:n("common.importFromDecoDialog.settingUpGithub")}),b&&!u&&l.status!=="error"&&o.jsxs("div",{className:"flex flex-col py-2",children:[o.jsx("div",{className:"px-8 py-2",children:o.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:n("common.importFromDecoDialog.selectGithubConnection")})}),a.map(s=>o.jsxs("button",{type:"button",onClick:()=>T(s),className:"flex items-center gap-3 px-8 py-3 hover:bg-accent transition-colors text-left",children:[s.icon?o.jsx("img",{src:s.icon,alt:s.title,className:"size-7 rounded-full shrink-0"}):o.jsx("div",{className:"size-7 rounded-full bg-muted flex items-center justify-center shrink-0",children:o.jsx(we,{className:"size-3.5 text-muted-foreground"})}),o.jsx("span",{className:"text-sm font-medium",children:s.title})]},s.id))]}),E&&!u&&l.status!=="error"&&o.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:n("common.importFromDecoDialog.loadingSites")}),!E&&!u&&!b&&l.status!=="error"&&!R&&S.length===0&&o.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:n("common.importFromDecoDialog.noSitesFound")}),!E&&!u&&!b&&l.status!=="error"&&S.length>0&&o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 max-h-[420px] overflow-y-auto py-4 px-8 [scrollbar-gutter:stable]",children:[N.length===0&&o.jsx("p",{className:"col-span-3 text-sm text-muted-foreground text-center py-8",children:n("common.importFromDecoDialog.noSitesMatch",{search:m})}),N.map(s=>{const p=je(s.domains),x=j===s.name;return o.jsxs("button",{type:"button",onClick:()=>O(s.name),className:ke("flex flex-col rounded-xl border overflow-hidden text-left transition-all cursor-pointer",x?"border-primary ring-1 ring-primary":"border-border hover:border-muted-foreground/40"),children:[o.jsx("div",{className:"w-full aspect-video bg-muted overflow-hidden",children:s.thumb_url?o.jsx("img",{src:s.thumb_url,alt:s.name,className:"w-full h-full object-cover",loading:"lazy"}):o.jsx("div",{className:"w-full h-full bg-muted"})}),o.jsxs("div",{className:"px-4 py-3",children:[o.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.name}),p&&o.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:p})]})]},s.name)})]})]}),o.jsxs(mt,{className:"px-8 py-5 border-t border-border",children:[o.jsx(ie,{variant:"outline",onClick:()=>_(!1),disabled:F.isPending,children:n("common.importFromDecoDialog.cancel")}),o.jsx(ie,{disabled:!j||!P||F.isPending||E||u||b||!h||l.status==="error",onClick:()=>j&&F.mutate(j),children:F.isPending?n("common.importFromDecoDialog.importing"):n("common.importFromDecoDialog.import")})]})]})})}function is(){const t=ge.c(77),e=me(),{org:i}=De(),n=Pe(),r=ze(),[f,c]=W.useState("");let G;t[0]===Symbol.for("react.memo_cache_sentinel")?(G={navigateOnCreate:!0},t[0]=G):G=t[0];const{createVirtualMCP:j,isCreating:O}=Ze(G),[d,T]=W.useState(null),[m,D]=W.useState(!1),[C,y]=W.useState(!1),{granted:a}=_e("agents:manage"),l=f.toLowerCase(),h=n.filter(I=>I.id!==i.id&&(I.title.toLowerCase().includes(l)||I.description?.toLowerCase().includes(l))),{data:b}=Be(h.map(At));let w;t[1]!==r||t[2]!==d||t[3]!==e?(w=async()=>{if(!d)return;const{id:I,title:ve}=d;T(null);try{await r.delete.mutateAsync(I),K("agent_deleted",{agent_id:I,source:"agents_list"}),le.success(e("routes.agentsList.deletedAgent",{title:ve}))}catch{}},t[1]=r,t[2]=d,t[3]=e,t[4]=w):w=t[4];const u=w,B=ce,E=ce,R=ce;let S;t[5]!==e?(S=e("routes.agentsList.title"),t[5]=e,t[6]=S):S=t[6];let _;t[7]!==S?(_=o.jsx(ce.Title,{children:S}),t[7]=S,t[8]=_):_=t[8];let N;t[9]!==e?(N=e("routes.agentsList.searchPlaceholder"),t[9]=e,t[10]=N):N=t[10];let P;t[11]===Symbol.for("react.memo_cache_sentinel")?(P=I=>{I.key==="Escape"&&(c(""),I.target.blur())},t[11]=P):P=t[11];let F;t[12]!==f||t[13]!==N?(F=o.jsx(bt,{value:f,onChange:c,placeholder:N,className:"w-full md:w-[375px]",onKeyDown:P}),t[12]=f,t[13]=N,t[14]=F):F=t[14];let s;t[15]!==a||t[16]!==j||t[17]!==O||t[18]!==e?(s=a&&o.jsxs(pe,{children:[o.jsx(ue,{asChild:!0,children:o.jsxs(ie,{size:"sm",children:[o.jsx(Ce,{size:14}),e("routes.agentsList.createAgent")]})}),o.jsx(be,{onCreateFromScratch:()=>{K("agent_create_clicked",{source:"agents_list",method:"scratch"}),j()},onImportGitHub:()=>{K("agent_create_clicked",{source:"agents_list",method:"github"}),y(!0)},onImportDeco:()=>{K("agent_create_clicked",{source:"agents_list",method:"deco"}),D(!0)},isCreating:O,align:"end"})]}),t[15]=a,t[16]=j,t[17]=O,t[18]=e,t[19]=s):s=t[19];let p;t[20]!==F||t[21]!==s?(p=o.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[F,s]}),t[20]=F,t[21]=s,t[22]=p):p=t[22];let x;t[23]!==p||t[24]!==_?(x=o.jsxs("div",{className:"flex flex-col gap-6",children:[_,p]}),t[23]=p,t[24]=_,t[25]=x):x=t[25];const L=h.length===0&&o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(We,{image:o.jsx($e,{size:48,className:"text-muted-foreground"}),title:e(f?"routes.agentsList.noAgentsFound":"routes.agentsList.noAgentsYet"),description:f?e("routes.agentsList.noAgentsMatchSearch",{search:f}):e(a?"routes.agentsList.createAgentToGetStarted":"routes.agentsList.askAdminToCreate"),actions:!f&&a&&o.jsxs(pe,{children:[o.jsx(ue,{asChild:!0,children:o.jsxs(ie,{size:"sm",children:[o.jsx(Ce,{size:14}),e("routes.agentsList.createAgent")]})}),o.jsx(be,{onCreateFromScratch:()=>{K("agent_create_clicked",{source:"agents_list_empty",method:"scratch"}),j()},onImportGitHub:()=>{K("agent_create_clicked",{source:"agents_list_empty",method:"github"}),y(!0)},onImportDeco:()=>{K("agent_create_clicked",{source:"agents_list_empty",method:"deco"}),D(!0)},isCreating:O,align:"center",showBetaBadge:!0})]})})}),g=h.length>0&&o.jsxs("div",{className:"mt-6 @container",children:[o.jsx("h3",{className:"text-sm font-medium text-muted-foreground mb-3",children:e("routes.agentsList.agentsHeading")}),o.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:h.map(I=>o.jsx(Dt,{project:I,lastUsedAt:b?.get(I.id)?.last_used_at,onDeleteClick:a?()=>T({id:I.id,title:I.title}):void 0},I.id))})]});let v;t[26]!==x||t[27]!==L||t[28]!==g||t[29]!==R.Body?(v=o.jsxs(R.Body,{children:[x,L,g]}),t[26]=x,t[27]=L,t[28]=g,t[29]=R.Body,t[30]=v):v=t[30];let k;t[31]!==v||t[32]!==E.Content?(k=o.jsx(E.Content,{children:v}),t[31]=v,t[32]=E.Content,t[33]=k):k=t[33];let A;t[34]!==C?(A=o.jsx(Oe,{open:C,onOpenChange:y}),t[34]=C,t[35]=A):A=t[35];let $;t[36]!==m?($=o.jsx(vt,{open:m,onOpenChange:D}),t[36]=m,t[37]=$):$=t[37];const re=!!d;let M;t[38]===Symbol.for("react.memo_cache_sentinel")?(M=I=>!I&&T(null),t[38]=M):M=t[38];let z;t[39]!==e?(z=e("routes.agentsList.deleteAgentTitle"),t[39]=e,t[40]=z):z=t[40];let H;t[41]!==z?(H=o.jsx(ut,{children:z}),t[41]=z,t[42]=H):H=t[42];let q;t[43]!==e?(q=e("routes.agentsList.deleteAgentDescription"),t[43]=e,t[44]=q):q=t[44];const Z=d?.title;let J;t[45]!==Z?(J=o.jsx("span",{className:"font-medium text-foreground",children:Z}),t[45]=Z,t[46]=J):J=t[46];let Y;t[47]!==q||t[48]!==J?(Y=o.jsxs(pt,{children:[q," ",J,"."]}),t[47]=q,t[48]=J,t[49]=Y):Y=t[49];let Q;t[50]!==H||t[51]!==Y?(Q=o.jsxs(gt,{children:[H,Y]}),t[50]=H,t[51]=Y,t[52]=Q):Q=t[52];let U;t[53]!==e?(U=e("routes.agentsList.cancelButton"),t[53]=e,t[54]=U):U=t[54];let V;t[55]!==U?(V=o.jsx(ft,{children:U}),t[55]=U,t[56]=V):V=t[56];let X;t[57]!==e?(X=e("routes.agentsList.deleteButton"),t[57]=e,t[58]=X):X=t[58];let ee;t[59]!==u||t[60]!==X?(ee=o.jsx(ht,{onClick:u,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:X}),t[59]=u,t[60]=X,t[61]=ee):ee=t[61];let te;t[62]!==V||t[63]!==ee?(te=o.jsxs(xt,{children:[V,ee]}),t[62]=V,t[63]=ee,t[64]=te):te=t[64];let oe;t[65]!==Q||t[66]!==te?(oe=o.jsxs(jt,{children:[Q,te]}),t[65]=Q,t[66]=te,t[67]=oe):oe=t[67];let se;t[68]!==re||t[69]!==oe?(se=o.jsx(Ct,{open:re,onOpenChange:M,children:oe}),t[68]=re,t[69]=oe,t[70]=se):se=t[70];let ae;return t[71]!==B||t[72]!==k||t[73]!==A||t[74]!==$||t[75]!==se?(ae=o.jsxs(B,{children:[k,A,$,se]}),t[71]=B,t[72]=k,t[73]=A,t[74]=$,t[75]=se,t[76]=ae):ae=t[76],ae}function At(t){return t.id}export{is as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as q,j as t,F as me,a as ye,o as fe,r as D,$ as le,b as te,k as ee,e as ge,t as re,dS as Ne,K as se,G as ve,n as ke,m as ue,B as ce,x as Ce,y as Re}from"./index-CLgyj0Ph.js";import{a as we,b as Se,d as Pe,e as Ie}from"./dialog-B9oegZDu.js";import{C as _e}from"./collection-search-Dpng8LoC.js";import{u as Te}from"./use-debounced-value-MHaS7My_.js";import{b as he,u as Ee}from"./use-connection-DpTbs6D3.js";import{W as Ae,u as ne,S as pe}from"./use-mcp-client-BEwkzQUP.js";import{a as be}from"./authenticate-and-persist-oauth-iGLSyEy7.js";import{b as de}from"./Settings02-jyt4Cg5Z.js";import{n as ze}from"./LinkExternal01-DLruoFNK.js";import{U as Le}from"./agent-icon-CX57MHZN.js";import{u as Ge}from"./use-mcp-tools-gn9osu_Q.js";import{e as Oe}from"./extract-connection-data-BiZHVUW1.js";import{c as Fe}from"./use-navigate-to-agent-DvK4hzMp.js";import{g as Ue,p as xe,f as $e}from"./provision-repo-scoped-github-connection-DWINBxtd.js";function M(k){const e=q.c(4),{size:n,className:l}=k;let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),e[0]=h):h=e[0];let o;return e[1]!==l||e[2]!==n?(o=t.jsx("svg",{width:n,height:n,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:l,children:h}),e[1]=l,e[2]=n,e[3]=o):o=e[3],o}function De(k,e){const n=q.c(12),{org:l}=me();let h;n[0]!==l.id?(h=Ae.REGISTRY(l.id),n[0]=l.id,n[1]=h):h=n[1];const o=h;let a;n[2]!==l.id||n[3]!==l.slug||n[4]!==o?(a={connectionId:o,orgId:l.id,orgSlug:l.slug},n[2]=l.id,n[3]=l.slug,n[4]=o,n[5]=a):a=n[5];const r=ne(a);let s;n[6]!==k?(s={name:k},n[6]=k,n[7]=s):s=n[7];const u=e?.enabled??!0;let y;return n[8]!==r||n[9]!==s||n[10]!==u?(y={client:r,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:s,enabled:u,staleTime:3e5,select:He},n[8]=r,n[9]=s,n[10]=u,n[11]=y):y=n[11],Ge(y)}function He(k){return k.structuredContent?.item??null}const Me="deco/mcp-github";function qe(k){const{org:e}=me(),{data:n}=ye.useSession(),l=he(),h=fe(),[o,a]=D.useState("idle"),[r,s]=D.useState(null),[u,y]=D.useState(null),{data:N,isLoading:w}=De(Me,{enabled:k.enabled}),f=D.useRef(!1);k.enabled&&N&&!w&&!f.current&&n?.user?.id&&o==="idle"&&(f.current=!0,d());async function d(){if(!(!N||!n?.user?.id||!e))try{a("installing"),s(null);const c=Oe(N,e.id,n.user.id,{remoteIndex:0});if(!c.connection_url)throw new Error("Registry item is missing a remote URL for mcp-github");const{id:g}=await l.create.mutateAsync(c);a("authenticating");const j=await be({connectionId:g,orgId:e.id,orgSlug:e.slug,persistFallback:x=>l.update.mutateAsync({id:g,data:{connection_token:x}}).then(()=>{})});if(j.ran&&!j.ok){try{await l.delete.mutateAsync(g)}catch{}throw new Error(j.error&&j.error!=="no token received"?j.error:"No token received from GitHub")}le(h,e.id),y(c),a("ready")}catch(c){s(c instanceof Error?c.message:String(c)),a("error")}}function m(){a("idle"),s(null),y(null),f.current=!1}return k.enabled&&w&&o==="idle"?{status:"installing",error:null,connection:null,retry:m}:{status:o,error:r,connection:u,retry:m}}function dt(k){const e=q.c(27),{open:n,onOpenChange:l,title:h,onImportComplete:o,mode:a}=k,r=a===void 0?"agent":a,s=te();let u;e[0]!==r||e[1]!==s||e[2]!==h?(u=h??s(r==="connection"?"common.githubRepoPicker.addRepo":"common.githubRepoPicker.importFromGitHub"),e[0]=r,e[1]=s,e[2]=h,e[3]=u):u=e[3];const y=u,[N,w]=D.useState(null);let f;e[4]!==y?(f=t.jsx(we,{className:"sr-only",children:t.jsx(Se,{children:y})}),e[4]=y,e[5]=f):f=e[5];let d;e[6]!==y||e[7]!==N||e[8]!==s?(d=t.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3 shrink-0",children:N?t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",onClick:()=>w(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(de,{size:16})}),t.jsx("img",{src:N.avatarUrl,alt:N.login,className:"size-5 rounded-full ring-1 ring-border shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:N.login})]}):t.jsxs(t.Fragment,{children:[t.jsx(M,{className:"size-4 text-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:y})]})}),e[6]=y,e[7]=N,e[8]=s,e[9]=d):d=e[9];let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(ee,{size:18,className:"animate-spin text-muted-foreground"})}),e[10]=m):m=e[10];let c;e[11]!==l?(c=()=>l(!1),e[11]=l,e[12]=c):c=e[12];let p;e[13]!==r||e[14]!==o||e[15]!==n||e[16]!==N||e[17]!==c?(p=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx(D.Suspense,{fallback:m,children:t.jsx(Qe,{open:n,onComplete:c,selectedInstallation:N,onSelectInstallation:w,onImportComplete:o,mode:r})})}),e[13]=r,e[14]=o,e[15]=n,e[16]=N,e[17]=c,e[18]=p):p=e[18];let g;e[19]!==f||e[20]!==d||e[21]!==p?(g=t.jsxs(Pe,{className:"sm:max-w-[560px] h-[85svh] sm:h-[520px] p-0 gap-0 overflow-hidden flex flex-col",children:[f,d,p]}),e[19]=f,e[20]=d,e[21]=p,e[22]=g):g=e[22];let j;return e[23]!==l||e[24]!==n||e[25]!==g?(j=t.jsx(Ie,{open:n,onOpenChange:l,children:g}),e[23]=l,e[24]=n,e[25]=g,e[26]=j):j=e[26],j}function Qe({open:k,onComplete:e,selectedInstallation:n,onSelectInstallation:l,onImportComplete:h,mode:o="agent"}){const a=te(),{org:r}=me(),s=fe(),u=Fe(),[y,N]=D.useState(null),w=Ee({slug:"mcp-github"}),f=Ue(w),d=qe({enabled:k&&f.length===0}),m=f.length===1?f[0]??null:y,c=ne({connectionId:m?.id??"",orgId:r.id,orgSlug:r.slug}),p=ne({connectionId:pe,orgId:r.id,orgSlug:r.slug}),g=async(i,v)=>{try{const S=await c.callTool({name:"get_file_contents",arguments:{owner:i.owner,repo:i.name,path:v}});if(S.isError)return null;const P=S.content?.find(I=>I.type==="resource")?.resource?.text;if(!P)return null;try{const I=JSON.parse(P);return typeof I=="string"?I:JSON.stringify(I)}catch{return P}}catch{return null}},j=(i,v)=>{Promise.all([g(v,"AGENTS.md"),g(v,"CLAUDE.md")]).then(async([C,S])=>{const R=C??S??null;R&&(await p.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:i,data:{metadata:{instructions:R}}}}),le(s,r.id))}).catch(C=>{console.error("GitHub instructions fetch failed:",C)})},x=ge({mutationFn:async i=>{if(!m||!n)throw new Error("No GitHub connection or installation");const v=n.installationId;if(o==="connection"){const{childConnectionId:R}=await xe({orgSlug:r.slug,sourceConnection:m,installationId:v,owner:i.owner,repo:i.name,githubCallTool:P=>c.callTool(P),selfCallTool:P=>p.callTool(P),orgShared:!0});return{virtualMcpId:null,repo:i,connectionId:R,item:null}}const{childConnectionId:C}=await xe({orgSlug:r.slug,sourceConnection:m,installationId:v,owner:i.owner,repo:i.name,githubCallTool:R=>c.callTool(R),selfCallTool:R=>p.callTool(R)});let S=null;try{const R=await p.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:i.name,description:i.description||"Imported from GitHub",pinned:!1,icon:null,metadata:{githubRepo:{owner:i.owner,name:i.name,url:i.url,installationId:v,connectionId:C},instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"},chatDefaultOpen:!0}}},connections:[{connection_id:C}]}}}),P=R.structuredContent??R,I=P.item?.id;if(!P.item||!I)throw new Error("Failed to create the imported agent");return S=I,{virtualMcpId:I,repo:i,connectionId:C,item:P.item}}catch(R){throw S&&await p.callTool({name:"COLLECTION_VIRTUAL_MCP_DELETE",arguments:{id:S}}).catch(()=>{}),await p.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:C,force:!0}}).catch(()=>{}),R}},onSuccess:({virtualMcpId:i,repo:v,connectionId:C,item:S})=>{if(o==="connection"||!i||!S){le(s,r.id),Ne(s,r.id),re.success(a("common.githubRepoPicker.addedRepo",{name:v.name})),e();return}if(s.setQueryData(se.collectionItem(p,r.id,"","VIRTUAL_MCP",i),{item:S}),le(s,r.id),j(i,v),h){h({virtualMcpId:i,repo:v,connectionId:C});return}re.success(a("common.githubRepoPicker.importedRepo",{name:v.name})),e(),localStorage.setItem(ve.sidebarOpen(),JSON.stringify(!1)),u(i)},onError:i=>{re.error(a("common.githubRepoPicker.failedImport",{error:i instanceof Error?i.message:a("common.githubRepoPicker.unknownError")}))}});return d.status==="installing"||d.status==="authenticating"?t.jsx(ae,{status:d.status,error:null,retry:d.retry}):d.status==="error"?t.jsx(ae,{status:"error",error:d.error,retry:d.retry}):f.length===0&&d.status==="idle"?t.jsx(ae,{status:"installing",error:null,retry:d.retry}):f.length>1&&!m?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:a("common.githubRepoPicker.selectConnection")})}),f.map(i=>t.jsxs("button",{type:"button",onClick:()=>N(i),className:"flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left",children:[i.icon?t.jsx("img",{src:i.icon,alt:i.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(M,{className:"size-3.5 text-muted-foreground"})}),t.jsx("span",{className:"text-sm font-medium",children:i.title})]},i.id))]}):m?n?t.jsx(Ke,{connectionId:m.id,orgId:r.id,orgSlug:r.slug,installation:n,onSelectRepo:i=>x.mutate(i),isSaving:x.isPending}):t.jsx(Be,{connectionId:m.id,orgId:r.id,orgSlug:r.slug,onSelect:l,showBackButton:f.length>1,onBack:()=>N(null)}):null}function Be(k){const e=q.c(126),{connectionId:n,orgId:l,orgSlug:h,onSelect:o,showBackButton:a,onBack:r}=k,s=te();let u;e[0]!==l||e[1]!==h?(u={connectionId:pe,orgId:l,orgSlug:h},e[0]=l,e[1]=h,e[2]=u):u=e[2];const y=ne(u),N=fe(),w=he();let f;e[3]!==n||e[4]!==l?(f=se.githubUserOrgs(l,n),e[3]=n,e[4]=l,e[5]=f):f=e[5];let d;e[6]!==n||e[7]!==y?(d=()=>$e(b=>y.callTool(b),n),e[6]=n,e[7]=y,e[8]=d):d=e[8];let m;e[9]!==f||e[10]!==d?(m={queryKey:f,queryFn:d},e[9]=f,e[10]=d,e[11]=m):m=e[11];const c=ke(m);let p;e[12]!==w||e[13]!==n||e[14]!==c||e[15]!==l||e[16]!==h||e[17]!==N?(p=async()=>{const b=await be({connectionId:n,orgId:l,orgSlug:h,persistFallback:A=>w.update.mutateAsync({id:n,data:{connection_token:A}}).then(Ve)});if(b.ran&&!b.ok)throw new Error(b.error??"no token received");const _=new URL(`/api/${h}/mcp/${n}`,window.location.origin);await N.invalidateQueries({queryKey:se.isMCPAuthenticated(_.href,null)}),await N.invalidateQueries({queryKey:se.mcpClientPrefix()}),await c.refetch()},e[12]=w,e[13]=n,e[14]=c,e[15]=l,e[16]=h,e[17]=N,e[18]=p):p=e[18];let g;e[19]!==s?(g=b=>{re.error(s("common.githubRepoPicker.failedReconnect",{error:b instanceof Error?b.message:s("common.githubRepoPicker.unknownError")}))},e[19]=s,e[20]=g):g=e[20];let j;e[21]!==p||e[22]!==g?(j={mutationFn:p,onError:g},e[21]=p,e[22]=g,e[23]=j):j=e[23];const x=ge(j);if(c.isLoading){let b;return e[24]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(ee,{size:18,className:"animate-spin text-muted-foreground"})}),e[24]=b):b=e[24],b}if(c.isError){let b;e[25]!==s?(b=s("common.githubRepoPicker.failedLoadAccounts"),e[25]=s,e[26]=b):b=e[26];let _;e[27]!==b?(_=t.jsx("p",{className:"text-sm text-destructive",children:b}),e[27]=b,e[28]=_):_=e[28];let A;e[29]!==s?(A=s("common.githubRepoPicker.connectionExpiredMessage"),e[29]=s,e[30]=A):A=e[30];let z;e[31]!==A?(z=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[280px] leading-relaxed",children:A}),e[31]=A,e[32]=z):z=e[32];let L;e[33]!==x?(L=()=>x.mutate(),e[33]=x,e[34]=L):L=e[34];const H=x.isPending;let G;e[35]!==x.isPending?(G=x.isPending?t.jsx(ee,{size:14,className:"animate-spin"}):t.jsx(M,{className:"size-3.5"}),e[35]=x.isPending,e[36]=G):G=e[36];let O;e[37]!==s?(O=s("common.githubRepoPicker.reconnectGitHub"),e[37]=s,e[38]=O):O=e[38];let F;e[39]!==x.isPending||e[40]!==L||e[41]!==G||e[42]!==O?(F=t.jsxs(ce,{type:"button",variant:"outline",size:"sm",onClick:L,disabled:H,children:[G,O]}),e[39]=x.isPending,e[40]=L,e[41]=G,e[42]=O,e[43]=F):F=e[43];let $;return e[44]!==z||e[45]!==F||e[46]!==_?($=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-3 px-6 text-center",children:[_,z,F]}),e[44]=z,e[45]=F,e[46]=_,e[47]=$):$=e[47],$}const i=c.data;if(!i)return null;const v=i.appSlug?`https://github.com/apps/${i.appSlug}/installations/new`:"https://github.com/settings/installations";if(i.installations.length===0){let b;e[48]!==r||e[49]!==a||e[50]!==s?(b=a&&t.jsx("div",{className:"flex items-center gap-1 px-4 pt-3 pb-1 shrink-0",children:t.jsxs("button",{type:"button",onClick:r,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(de,{size:12}),s("common.githubRepoPicker.changeConnection")]})}),e[48]=r,e[49]=a,e[50]=s,e[51]=b):b=e[51];let _;e[52]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("div",{className:"size-16 rounded-2xl bg-muted flex items-center justify-center",children:t.jsx(M,{className:"size-8 text-foreground"})}),e[52]=_):_=e[52];let A;e[53]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx("span",{className:"size-1.5 rounded-full bg-success"}),e[53]=A):A=e[53];let z;e[54]!==s?(z=s("common.githubRepoPicker.githubConnected"),e[54]=s,e[55]=z):z=e[55];let L;e[56]!==z?(L=t.jsxs("div",{className:"mt-4 flex items-center gap-1.5 text-xs font-medium text-success",children:[A,z]}),e[56]=z,e[57]=L):L=e[57];let H;e[58]!==s?(H=s("common.githubRepoPicker.setupRepositoriesTitle"),e[58]=s,e[59]=H):H=e[59];let G;e[60]!==H?(G=t.jsx("h2",{className:"mt-2 text-base font-semibold text-foreground",children:H}),e[60]=H,e[61]=G):G=e[61];let O;e[62]!==s?(O=s("common.githubRepoPicker.noRepositoriesShared"),e[62]=s,e[63]=O):O=e[63];let F;e[64]!==O?(F=t.jsx("p",{className:"mt-1.5 max-w-[360px] text-xs leading-relaxed text-muted-foreground",children:O}),e[64]=O,e[65]=F):F=e[65];let $;e[66]!==s?($=s("common.githubRepoPicker.chooseRepositories"),e[66]=s,e[67]=$):$=e[67];let ie;e[68]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(ze,{size:14}),e[68]=ie):ie=e[68];let Q;e[69]!==v||e[70]!==$?(Q=t.jsx(ce,{asChild:!0,size:"sm",children:t.jsxs("a",{href:v,target:"_blank",rel:"noopener noreferrer",children:[$,ie]})}),e[69]=v,e[70]=$,e[71]=Q):Q=e[71];let B;e[72]!==c?(B=()=>{c.refetch()},e[72]=c,e[73]=B):B=e[73];const je=c.isFetching;let V;e[74]!==c.isFetching?(V=c.isFetching&&t.jsx(ee,{size:14,className:"animate-spin"}),e[74]=c.isFetching,e[75]=V):V=e[75];let K;e[76]!==s?(K=s("common.githubRepoPicker.checkAgain"),e[76]=s,e[77]=K):K=e[77];let J;e[78]!==c.isFetching||e[79]!==B||e[80]!==V||e[81]!==K?(J=t.jsxs(ce,{type:"button",variant:"outline",size:"sm",onClick:B,disabled:je,children:[V,K]}),e[78]=c.isFetching,e[79]=B,e[80]=V,e[81]=K,e[82]=J):J=e[82];let W;e[83]!==Q||e[84]!==J?(W=t.jsxs("div",{className:"mt-5 flex items-center gap-2",children:[Q,J]}),e[83]=Q,e[84]=J,e[85]=W):W=e[85];let Y;e[86]!==s?(Y=s("common.githubRepoPicker.repositoryAccessNote"),e[86]=s,e[87]=Y):Y=e[87];let X;e[88]!==Y?(X=t.jsx("p",{className:"mt-4 max-w-[360px] rounded-lg bg-muted/50 px-3 py-2 text-xs leading-relaxed text-muted-foreground",children:Y}),e[88]=Y,e[89]=X):X=e[89];let Z;e[90]!==L||e[91]!==G||e[92]!==F||e[93]!==W||e[94]!==X?(Z=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center px-8 py-6 text-center",children:[_,L,G,F,W,X]}),e[90]=L,e[91]=G,e[92]=F,e[93]=W,e[94]=X,e[95]=Z):Z=e[95];let oe;return e[96]!==Z||e[97]!==b?(oe=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[b,Z]}),e[96]=Z,e[97]=b,e[98]=oe):oe=e[98],oe}let C;e[99]!==r||e[100]!==a||e[101]!==s?(C=a&&t.jsx("div",{className:"flex items-center gap-1 px-4 pt-3 pb-1 shrink-0",children:t.jsxs("button",{type:"button",onClick:r,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(de,{size:12}),s("common.githubRepoPicker.changeConnection")]})}),e[99]=r,e[100]=a,e[101]=s,e[102]=C):C=e[102];let S;if(e[103]!==i.installations||e[104]!==o||e[105]!==s){let b;e[107]!==o||e[108]!==s?(b=_=>t.jsxs("button",{type:"button",onClick:()=>o(_),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:_.avatarUrl,alt:_.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:_.login}),_.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")," →"]})]},_.installationId),e[107]=o,e[108]=s,e[109]=b):b=e[109],S=i.installations.map(b),e[103]=i.installations,e[104]=o,e[105]=s,e[106]=S}else S=e[106];let R;e[110]!==S?(R=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:S}),e[110]=S,e[111]=R):R=e[111];let P;e[112]!==s?(P=s("common.githubRepoPicker.accountNotListed"),e[112]=s,e[113]=P):P=e[113];let I;e[114]!==s?(I=s("common.githubRepoPicker.installGitHubApp"),e[114]=s,e[115]=I):I=e[115];let T;e[116]!==I?(T=t.jsx("span",{className:"underline underline-offset-2",children:I}),e[116]=I,e[117]=T):T=e[117];let E;e[118]!==v||e[119]!==P||e[120]!==T?(E=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:[P," ",T]})}),e[118]=v,e[119]=P,e[120]=T,e[121]=E):E=e[121];let U;return e[122]!==R||e[123]!==E||e[124]!==C?(U=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[C,R,E]}),e[122]=R,e[123]=E,e[124]=C,e[125]=U):U=e[125],U}function Ve(){}function Ke(k){const e=q.c(23),{connectionId:n,orgId:l,orgSlug:h,installation:o,onSelectRepo:a,isSaving:r}=k,s=te(),[u,y]=D.useState(""),N=Te(u,300),w=D.useDeferredValue(N),f=u!==w;let d;e[0]!==s?(d=s("common.githubRepoPicker.searchRepositories"),e[0]=s,e[1]=d):d=e[1];let m;e[2]!==f||e[3]!==u||e[4]!==d?(m=t.jsx(_e,{placeholder:d,value:u,onChange:y,isSearching:f}),e[2]=f,e[3]=u,e[4]=d,e[5]=m):m=e[5];const c=f?"opacity-40":"opacity-100";let p;e[6]!==c?(p=ue("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",c),e[6]=c,e[7]=p):p=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(ee,{size:18,className:"animate-spin text-muted-foreground"})}),e[8]=g):g=e[8];let j;e[9]!==n||e[10]!==w||e[11]!==o||e[12]!==r||e[13]!==a||e[14]!==l||e[15]!==h?(j=t.jsx(D.Suspense,{fallback:g,children:t.jsx(Je,{connectionId:n,orgId:l,orgSlug:h,installation:o,query:w,onSelectRepo:a,isSaving:r})}),e[9]=n,e[10]=w,e[11]=o,e[12]=r,e[13]=a,e[14]=l,e[15]=h,e[16]=j):j=e[16];let x;e[17]!==p||e[18]!==j?(x=t.jsx("div",{className:p,children:j}),e[17]=p,e[18]=j,e[19]=x):x=e[19];let i;return e[20]!==m||e[21]!==x?(i=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[m,x]}),e[20]=m,e[21]=x,e[22]=i):i=e[22],i}function Je(k){const e=q.c(36),{connectionId:n,orgId:l,orgSlug:h,installation:o,query:a,onSelectRepo:r,isSaving:s}=k,u=te();let y;e[0]!==n||e[1]!==l||e[2]!==h?(y={connectionId:n,orgId:l,orgSlug:h},e[0]=n,e[1]=l,e[2]=h,e[3]=y):y=e[3];const N=ne(y),w=o.type==="User"?"user":"org",f=a?`${w}:${o.login} ${a} in:name`:`${w}:${o.login}`;let d;e[4]!==n||e[5]!==o.login||e[6]!==l||e[7]!==a?(d=se.githubOrgRepos(l,n,o.login,a),e[4]=n,e[5]=o.login,e[6]=l,e[7]=a,e[8]=d):d=e[8];let m;e[9]!==N||e[10]!==f?(m=async x=>{const{signal:i}=x,C=(await N.callTool({name:"search_repositories",arguments:{query:f,page:1,perPage:30}},void 0,{signal:i})).content?.[0]?.text;if(!C)throw new Error("No response from search_repositories");return(JSON.parse(C).items??[]).map(We)},e[9]=N,e[10]=f,e[11]=m):m=e[11];let c;e[12]!==d||e[13]!==m?(c={queryKey:d,queryFn:m},e[12]=d,e[13]=m,e[14]=c):c=e[14];const{data:p}=Ce(c);if(p.length===0){let x;e[15]!==u?(x=u("common.githubRepoPicker.noRepositoriesFound"),e[15]=u,e[16]=x):x=e[16];let i;e[17]!==x?(i=t.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[17]=x,e[18]=i):i=e[18];let v;e[19]!==a||e[20]!==u?(v=a&&t.jsx("p",{className:"text-xs text-muted-foreground/60",children:u("common.githubRepoPicker.tryDifferentSearchTerm")}),e[19]=a,e[20]=u,e[21]=v):v=e[21];let C;return e[22]!==i||e[23]!==v?(C=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-1",children:[i,v]}),e[22]=i,e[23]=v,e[24]=C):C=e[24],C}let g;if(e[25]!==s||e[26]!==r||e[27]!==p||e[28]!==u){let x;e[30]!==s||e[31]!==r||e[32]!==u?(x=i=>t.jsxs("button",{type:"button",onClick:()=>r(i),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(M,{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:i.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:[i.private?t.jsx(Re,{size:10}):t.jsx(Le,{size:10}),i.private?u("common.githubRepoPicker.private"):u("common.githubRepoPicker.public")]})]},i.fullName),e[30]=s,e[31]=r,e[32]=u,e[33]=x):x=e[33],g=p.map(x),e[25]=s,e[26]=r,e[27]=p,e[28]=u,e[29]=g}else g=e[29];let j;return e[34]!==g?(j=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]=j):j=e[35],j}function We(k){return{name:k.name,fullName:k.full_name,owner:k.full_name.split("/")[0]??"",url:k.html_url,private:k.private,description:k.description,updatedAt:k.updated_at}}function ae(k){const e=q.c(51),{status:n,error:l,retry:h}=k,o=te();if(n==="error"){let C;e[0]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("div",{className:"size-10 rounded-full bg-destructive/10 flex items-center justify-center",children:t.jsx(M,{className:"size-5 text-destructive"})}),e[0]=C):C=e[0];let S;e[1]!==o?(S=o("common.githubRepoPicker.connectionFailed"),e[1]=o,e[2]=S):S=e[2];let R;e[3]!==S?(R=t.jsx("p",{className:"text-sm font-medium",children:S}),e[3]=S,e[4]=R):R=e[4];let P;e[5]!==l||e[6]!==o?(P=l??o("common.githubRepoPicker.somethingWentWrong"),e[5]=l,e[6]=o,e[7]=P):P=e[7];let I;e[8]!==P?(I=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:P}),e[8]=P,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 E;e[13]!==o?(E=o("common.githubRepoPicker.tryAgain"),e[13]=o,e[14]=E):E=e[14];let U;e[15]!==h||e[16]!==E?(U=t.jsx("button",{type:"button",onClick:h,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:E}),e[15]=h,e[16]=E,e[17]=U):U=e[17];let b;return e[18]!==T||e[19]!==U?(b=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[C,T,U]}),e[18]=T,e[19]=U,e[20]=b):b=e[20],b}const a=n==="authenticating";let r;e[21]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"size-10 rounded-full bg-muted flex items-center justify-center",children:t.jsx(M,{className:"size-5 text-foreground"})}),e[21]=r):r=e[21];let s;e[22]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs("div",{className:"relative size-10",children:[r,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(ee,{size:12,className:"animate-spin text-muted-foreground"})})]}),e[22]=s):s=e[22];let u;e[23]!==a||e[24]!==o?(u=o(a?"common.githubRepoPicker.authenticatingGitHub":"common.githubRepoPicker.settingUpGitHub"),e[23]=a,e[24]=o,e[25]=u):u=e[25];let y;e[26]!==u?(y=t.jsx("p",{className:"text-sm font-medium",children:u}),e[26]=u,e[27]=y):y=e[27];let N;e[28]!==a||e[29]!==o?(N=o(a?"common.githubRepoPicker.completeOAuthFlow":"common.githubRepoPicker.installingGitHubConnection"),e[28]=a,e[29]=o,e[30]=N):N=e[30];let w;e[31]!==N?(w=t.jsx("p",{className:"text-xs text-muted-foreground",children:N}),e[31]=N,e[32]=w):w=e[32];let f;e[33]!==y||e[34]!==w?(f=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[y,w]}),e[33]=y,e[34]=w,e[35]=f):f=e[35];const d=a?"bg-muted-foreground/30":"bg-foreground animate-pulse";let m;e[36]!==d?(m=ue("size-1.5 rounded-full",d),e[36]=d,e[37]=m):m=e[37];let c;e[38]!==m?(c=t.jsx("span",{className:m}),e[38]=m,e[39]=c):c=e[39];const p=a?"bg-foreground animate-pulse":"bg-muted-foreground/30";let g;e[40]!==p?(g=ue("size-1.5 rounded-full",p),e[40]=p,e[41]=g):g=e[41];let j;e[42]!==g?(j=t.jsx("span",{className:g}),e[42]=g,e[43]=j):j=e[43];let x;e[44]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("span",{className:"size-1.5 rounded-full bg-muted-foreground/30"}),e[44]=x):x=e[44];let i;e[45]!==c||e[46]!==j?(i=t.jsxs("div",{className:"flex items-center gap-1.5",children:[c,j,x]}),e[45]=c,e[46]=j,e[47]=i):i=e[47];let v;return e[48]!==i||e[49]!==f?(v=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[s,f,i]}),e[48]=i,e[49]=f,e[50]=v):v=e[50],v}export{M as G,dt as a,qe as b,De as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,F as H,j as U}from"./index-CLgyj0Ph.js";import{a as O,g as $,s as E}from"./automation-runs-B7jzZApT.js";import{r as k,u as B}from"./use-mcp-client-BEwkzQUP.js";import{b as V,c as Y}from"./use-mcp-tools-gn9osu_Q.js";import{u as q}from"./index-DD0t6510.js";import{c as G}from"./monaco-editor-nBV34MRL.js";import{g as F,M as K,a as D}from"./index-4jt5IRNL.js";import{a as W,u as z}from"./chat-context-DOruUose.js";import{u as J}from"./shell-layout-CZMSsz_J.js";import{O as Q}from"./tab-id-7b3wA9i7.js";import"./select-DiBMx0I6.js";import"./tooltip-Boyng34D.js";import"./Check-CaWO08Ol.js";import"./ChevronDown-dQW8AtGI.js";import"./ChevronUp-ClNBV1ML.js";import"./useInfiniteQuery-P1Iqwjod.js";import"./use-infinite-scroll-CfKncOiK.js";import"./use-connection-DpTbs6D3.js";import"./use-virtual-mcp-BnHBU3_3.js";import"./card-soYQdPhw.js";import"./sidebar-DeKVeH2K.js";import"./LayoutLeft-Cl0i-UMj.js";import"./use-mobile-ClQdbPYE.js";import"./X-BRRsujeq.js";import"./table-DBYSBeR3.js";import"./empty-state-DI5SVsDm.js";import"./use-members-DTeBeYXQ.js";import"./use-org-auth-client-DHBscDoc.js";import"./use-clock-tick-CGEs0Tg3.js";import"./AlertCircle-DkUSF8S9.js";import"./CheckCircle-Ce06Dt0r.js";import"./DotsVertical-BISxlJ7z.js";import"./agent-icon-CX57MHZN.js";import"./Tool01-B43_tnd4.js";import"./ArrowUp-CwxMxJ_X.js";import"./Settings02-jyt4Cg5Z.js";import"./Tool02-B1k57A59.js";import"./XCircle-CCKIXuSl.js";import"./ArrowUpRight-Fn4hisEQ.js";import"./TrendUp01-DNUroovp.js";import"./ZapSquare-BnJ2CyTX.js";import"./Users03-BJvAVnZb.js";import"./ChevronRight-BK_QoWDW.js";import"./Stars02-BvkKgu1r.js";import"./Copy01-D0rsTdyc.js";import"./CpuChip01-EpnURADx.js";import"./Eye-CHWgme6t.js";import"./FilterLines-2nONIGaK.js";import"./Star01-Dwm5Prxz.js";import"./Palette-C9-u1HL2.js";import"./SwitchHorizontal01-Cocp1NCJ.js";import"./HardDrive--H6xeB9a.js";import"./Key01-DGgsccNk.js";import"./LinkExternal01-DLruoFNK.js";import"./LogOut01-Cu8U0s7_.js";import"./Monitor01-CDpPX-EA.js";import"./Sun-BmSr6mcR.js";import"./Play-3ZXTDwaq.js";import"./Plus-BJivuRWZ.js";import"./SearchLg-DehWCYuP.js";import"./SearchMd-Dxz9PRr9.js";import"./Shield01-D8NQC667.js";import"./Stars01-Cr6jH6bn.js";import"./Trash01-Bij2sBQa.js";import"./Upload01-DjH022N7.js";import"./User01-ZmPLIjFd.js";import"./Users01-BVLWlI1e.js";import"./XClose-x59ADxdn.js";import"./Zap-5T12Qisd.js";import"./use-automations-CwH1KDVN.js";import"./studio-tools-DIB17zFH.js";import"./useSuspenseInfiniteQuery-dT7ERMWt.js";import"./avatar-JWYe9tuD.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BjAla8BE.js";import"./dialog-B9oegZDu.js";import"./hooks-Cdi0T6NA.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DfiSaS6Z.js";import"./calendar-CyE49Lc6.js";import"./integration-icon-BSizUwtM.js";import"./use-navigate-to-agent-DvK4hzMp.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-B7P5iILx.js";import"./form-DbQjm3RG.js";import"./label-DFGmypV5.js";import"./input-BwMPytZi.js";import"./spinner-cWHEuKxp.js";import"./auth-Bxvu_2Ac.js";import"./drawer-gCdKlKyC.js";import"./collection-search-Dpng8LoC.js";import"./index-BcxH3g_P.js";import"./get-initials-D-f_fDFw.js";import"./popover-DmPP_Wum.js";import"./dropdown-menu-BYWILVSv.js";import"./github-repo-picker-Bu5y6cUR.js";import"./use-debounced-value-MHaS7My_.js";import"./authenticate-and-persist-oauth-iGLSyEy7.js";import"./mcp-oauth-DNSOSAwY.js";import"./extract-connection-data-BiZHVUW1.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-DWINBxtd.js";import"./use-decopilot-events-DIQe_rcp.js";import"./use-tags-BauEp0vd.js";import"./command-lV9P9VCb.js";import"./index-Bn5LDRj0.js";import"./use-organization-settings-3l3-PWZ-.js";import"./companions-core-T8xKIDs8.js";import"./tabs-BrFyu0Ld.js";import"./toggle-group-CjS_UJ7P.js";import"./use-deco-credits-D_UnpHIS.js";import"./alert-dialog-DMgETmzD.js";import"./toolbar-BZigRKxC.js";import"./skeleton-YNL4Gfyh.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-M--ClGzW.js";import"./use-registry-connections-m_NzqSHw.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-BGf8-22U.js";import"./connection-form-helpers-SRVklhqj.js";import"./collection-tabs-BIyQDwrD.js";import"./badge-D7PXFjPU.js";import"./use-ai-providers-BrI62wxb.js";import"./select-model-U0NH-03Z.js";import"./checkbox-0q9FnTIX.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CJi2U3py.js";import"./use-is-desktop-app-BNujXJc_.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-D4JT9F25.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-BWY6g3Hm.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-qaat6Jvn.js";import"./use-debounced-autosave-pWgqt4Hv.js";import"./index-Dsg3QMPc.js";import"./search-input-CVQs7RpL.js";import"./switch-CbcK-jGL.js";import"./use-secrets-CmAxrjv8.js";import"./useQueries-DF7muCkz.js";import"./use-file-configs-C3YngRho.js";import"./automation-list-row-KsI-CvB5.js";import"./required-auth-layout-D68OOUEY.js";import"./use-org-sso-R6aJskDC.js";const X="studio://navigate";function Z(M){const[t]=M;if(M.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null;try{o=new URL(t.uri).searchParams.get("main")}catch{}return{isNavigate:!0,tab:o&&Q.has(o)?o:null}}const tt={};function ot(M){const t=L.c(38),{client:o,resourceURI:I,tool:e,connectionId:p,orgId:a,args:v}=M,{sendMessage:C}=W(),{setAppContext:f,clearAppContext:l}=z(),{openSidePanel:g,openTab:s}=J(),i=`${p}:${e.name}`;let c;t[0]!==s?(c=x=>x==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=c):c=t[1];const m=c,n=v??tt;let u;t[2]!==o||t[3]!==e.name||t[4]!==n?(u={client:o,toolName:e.name,toolArguments:n},t[2]=o,t[3]=e.name,t[4]=n,t[5]=u):u=t[5];const{data:r}=Y(u);let h;if(t[6]!==e._meta||t[7]!==e.name){const x=$(e._meta);h=E(e.name,x),t[6]=e._meta,t[7]=e.name,t[8]=h}else h=t[8];const A=h;let d;t[9]!==e.inputSchema?(d=e.inputSchema??{type:"object"},t[9]=e.inputSchema,t[10]=d):d=t[10];let R;t[11]!==A||t[12]!==d||t[13]!==e?(R={...e,name:A,inputSchema:d},t[11]=A,t[12]=d,t[13]=e,t[14]=R):R=t[14];const b=R;let _;t[15]!==g||t[16]!==s||t[17]!==C?(_=x=>{const j=Z(x.content);if(j.isNavigate){j.tab&&s(j.tab);return}const w=G(x.content);w.content.length>0&&(g("chat"),C({tiptapDoc:w}))},t[15]=g,t[16]=s,t[17]=C,t[18]=_):_=t[18];const y=_;let P;t[19]!==b?(P={tool:b},t[19]=b,t[20]=P):P=t[20];let N;t[21]!==f||t[22]!==i?(N=x=>f(i,x),t[21]=f,t[22]=i,t[23]=N):N=t[23];let T;t[24]!==l||t[25]!==i?(T=()=>l(i),t[24]=l,t[25]=i,t[26]=T):T=t[26];let S;return t[27]!==o||t[28]!==y||t[29]!==m||t[30]!==a||t[31]!==I||t[32]!==P||t[33]!==N||t[34]!==T||t[35]!==n||t[36]!==r?(S=U.jsx(K,{resourceURI:I,orgId:a,toolInfo:P,toolInput:n,toolResult:r,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:o,onMessage:y,onUpdateModelContext:N,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=o,t[28]=y,t[29]=m,t[30]=a,t[31]=I,t[32]=P,t[33]=N,t[34]=T,t[35]=n,t[36]=r,t[37]=S):S=t[37],S}function Ve(M){const t=L.c(24),{connectionId:o,toolName:I,args:e}=M,{org:p}=H(),a=q();let v;t[0]!==o||t[1]!==a?(v=k(o)&&a.vmEntry?.sandboxProviderKind==="user-desktop"&&a.previewUrl?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=o,t[1]=a,t[2]=v):v=t[2];const C=v;let f;t[3]!==o||t[4]!==C||t[5]!==p.id||t[6]!==p.slug?(f={connectionId:o,orgId:p.id,orgSlug:p.slug,mcpUrl:C},t[3]=o,t[4]=C,t[5]=p.id,t[6]=p.slug,t[7]=f):f=t[7];const l=B(f);let g;t[8]!==l?(g={client:l},t[8]=l,t[9]=g):g=t[9];const{data:s}=V(g);let i,c,m;t[10]!==I||t[11]!==s.tools?(i=O(decodeURIComponent(I)),m=s.tools.find(r=>r.name===i)??s.tools.find(r=>{const h=$(r._meta);if(!h)return!1;if(E(r.name,h)===i)return!0;const d=E(i,h);return d!==i&&r.name===d}),c=m?._meta?F(m._meta):void 0,t[10]=I,t[11]=s.tools,t[12]=i,t[13]=c,t[14]=m):(i=t[12],c=t[13],m=t[14]);const n=c;if(!m||!n){let r;return t[15]!==i?(r=U.jsx("div",{className:"flex items-center justify-center h-full w-full",children:U.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',i,'" not found or has no UI']})}),t[15]=i,t[16]=r):r=t[16],r}let u;return t[17]!==e||t[18]!==l||t[19]!==o||t[20]!==p.id||t[21]!==n||t[22]!==m?(u=U.jsx(ot,{client:l,resourceURI:n,tool:m,connectionId:o,orgId:p.id,args:e}),t[17]=e,t[18]=l,t[19]=o,t[20]=p.id,t[21]=n,t[22]=m,t[23]=u):u=t[23],u}export{Ve as AppViewContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const l={contents:"write",metadata:"read",pull_requests:"write",issues:"write",checks:"read"};function x(e){return e?/permission\s+"?checks"?\s+is not allowed/i.test(e)||/permissions exceed what the github app/i.test(e):!1}function G(e){const{checks:t,...o}=e;return o}async function L(e,t){const o={...t,checks:"read"},r=await e(o);if(r.isError&&x(r.content?.find(i=>i.type==="text")?.text)){const i=G(t);return{result:await e(i),grantedPermissions:i}}return{result:r,grantedPermissions:o}}function P(e){if(!e||typeof e!="object"||Array.isArray(e))return l;const t=e;return Object.values(t).some(o=>typeof o!="string")?l:t}function H(e){if(!(typeof e!="number"||!Number.isFinite(e)||!Number.isInteger(e)||e<=0))return e}function F(e){const t=e.metadata?.repoScope;if(!t||typeof t.installationId!="number"||!Number.isFinite(t.installationId)||!Number.isInteger(t.installationId)||t.installationId<=0||typeof t.owner!="string"||typeof t.repo!="string"||t.owner.length===0||t.repo.length===0)return null;const o=H(t.repositoryId);return{sourceConnectionId:typeof t.sourceConnectionId=="string"?t.sourceConnectionId:void 0,installationId:t.installationId,repositoryId:o,owner:t.owner,repo:t.repo,permissions:P(t.permissions),grantProvider:t.grantProvider==="github-mcp"?"github-mcp":void 0}}function $(e){return(e??[]).filter(t=>F(t)===null)}function D(e){return e.metadata?.orgShared===!0}async function j(e,t){const r=(await e({name:"GITHUB_LIST_USER_ORGS",arguments:{connectionId:t}})).content?.[0]?.text;if(!r)throw new Error("No response from GITHUB_LIST_USER_ORGS");try{return JSON.parse(r)}catch{throw new Error("Invalid response from GITHUB_LIST_USER_ORGS")}}function B(e,t){const o=t.toLowerCase();return e.find(r=>r.login.toLowerCase()===o)}const b="GitHub MCP did not return refreshable repo grant metadata";function c(e){if(typeof e!="string")return null;const t=e.trim();return t.length>0?t:null}function A(e){try{const t=new URL(e);return(t.protocol==="http:"||t.protocol==="https:")&&!t.username&&!t.password}catch{return!1}}function v(e){return typeof e=="number"&&Number.isFinite(e)&&Number.isInteger(e)&&e>0?e:void 0}async function J(e){const{orgSlug:t,sourceConnection:o,installationId:r,owner:i,repo:s,githubCallTool:_,selfCallTool:m,orgShared:S}=e,{result:u,grantedPermissions:N}=await L(p=>_({name:"MINT_REPO_TOKEN",arguments:{installationId:r,owner:i,repo:s,permissions:p}}),l),n=u.structuredContent;if(u.isError||!n?.token){const p=u.content?.find(O=>O.type==="text")?.text;throw new Error(p?`Failed to mint a repo-scoped GitHub token: ${p}`:"Failed to mint a repo-scoped GitHub token")}const f=c(n.refreshToken),d=c(n.tokenEndpoint),h=c(n.clientId);if(!f||!d||!h)throw new Error(b);if(!A(d))throw new Error(b);const I=c(n.repository?.owner),w=c(n.repository?.name),g="GitHub MCP returned refresh metadata for a different repository";if(n.repository?.owner!==void 0&&(!I||I.toLowerCase()!==i.toLowerCase()))throw new Error(g);if(n.repository?.name!==void 0&&(!w||w.toLowerCase()!==s.toLowerCase()))throw new Error(g);const k=v(n.repository?.id),E=n.expiresAt?Date.parse(n.expiresAt):NaN,R=Number.isFinite(E)?Math.max(0,Math.floor((E-Date.now())/1e3)):null,T=(typeof n.expiresIn=="number"&&Number.isFinite(n.expiresIn)&&Number.isInteger(n.expiresIn)&&n.expiresIn>0?n.expiresIn:null)??R,y=await m({name:"COLLECTION_CONNECTIONS_CREATE",arguments:{data:{title:`GitHub: ${i}/${s}`,description:`Repo-scoped GitHub access for ${i}/${s}`,icon:o.icon,app_name:o.app_name,app_id:o.app_id,connection_type:o.connection_type,connection_url:o.connection_url,metadata:{...S?{orgShared:!0}:{},repoScope:{installationId:r,repositoryId:k,owner:i,repo:s,permissions:N,grantProvider:"github-mcp"}}}}}),C=y.structuredContent??y,a=C.item?.id??C.id;if(!a)throw new Error("Failed to create the repo-scoped GitHub connection");if(!(await fetch(`/api/${t}/connections/${a}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:n.token,refreshToken:f,expiresIn:T,scope:n.scope??null,clientId:h,tokenEndpoint:d})})).ok)throw await m({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:a,force:!0}}).catch(()=>{}),new Error("Failed to persist the repo-scoped token");return{childConnectionId:a}}export{B as a,F as b,j as f,$ as g,D as i,J as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,b as A,j as r}from"./index-CLgyj0Ph.js";import{I as O}from"./input-BwMPytZi.js";import{L as F}from"./label-DFGmypV5.js";import{S as R,a as z,b as V,c as D,d as J}from"./select-DiBMx0I6.js";import{T as M}from"./textarea-BGf8-22U.js";import{O as Q,P as Y,Q as $,I as q,T as G,Y as H}from"./index-DD0t6510.js";import{s as I}from"./primitives-CaH5RBnr.js";import{u as U}from"./use-autosave-D4pq6CN0.js";import"./tooltip-Boyng34D.js";import"./Check-CaWO08Ol.js";import"./ChevronDown-dQW8AtGI.js";import"./ChevronUp-ClNBV1ML.js";import"./ArrowUp-CwxMxJ_X.js";import"./chat-context-DOruUose.js";import"./tab-id-7b3wA9i7.js";import"./dialog-B9oegZDu.js";import"./X-BRRsujeq.js";import"./Copy01-D0rsTdyc.js";import"./hooks-Cdi0T6NA.js";import"./use-mcp-client-BEwkzQUP.js";import"./auth-Bxvu_2Ac.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DfiSaS6Z.js";import"./studio-tools-DIB17zFH.js";import"./use-virtual-mcp-BnHBU3_3.js";import"./use-ai-providers-BrI62wxb.js";import"./use-decopilot-events-DIQe_rcp.js";import"./use-organization-settings-3l3-PWZ-.js";import"./automation-runs-B7jzZApT.js";import"./useInfiniteQuery-P1Iqwjod.js";import"./use-infinite-scroll-CfKncOiK.js";import"./use-connection-DpTbs6D3.js";import"./card-soYQdPhw.js";import"./sidebar-DeKVeH2K.js";import"./LayoutLeft-Cl0i-UMj.js";import"./use-mobile-ClQdbPYE.js";import"./table-DBYSBeR3.js";import"./empty-state-DI5SVsDm.js";import"./use-members-DTeBeYXQ.js";import"./use-org-auth-client-DHBscDoc.js";import"./use-clock-tick-CGEs0Tg3.js";import"./AlertCircle-DkUSF8S9.js";import"./CheckCircle-Ce06Dt0r.js";import"./DotsVertical-BISxlJ7z.js";import"./agent-icon-CX57MHZN.js";import"./Tool01-B43_tnd4.js";import"./Settings02-jyt4Cg5Z.js";import"./Tool02-B1k57A59.js";import"./XCircle-CCKIXuSl.js";import"./ArrowUpRight-Fn4hisEQ.js";import"./TrendUp01-DNUroovp.js";import"./ZapSquare-BnJ2CyTX.js";import"./Users03-BJvAVnZb.js";import"./ChevronRight-BK_QoWDW.js";import"./Stars02-BvkKgu1r.js";import"./CpuChip01-EpnURADx.js";import"./Eye-CHWgme6t.js";import"./FilterLines-2nONIGaK.js";import"./Star01-Dwm5Prxz.js";import"./Palette-C9-u1HL2.js";import"./SwitchHorizontal01-Cocp1NCJ.js";import"./HardDrive--H6xeB9a.js";import"./Key01-DGgsccNk.js";import"./LinkExternal01-DLruoFNK.js";import"./LogOut01-Cu8U0s7_.js";import"./Monitor01-CDpPX-EA.js";import"./Sun-BmSr6mcR.js";import"./Play-3ZXTDwaq.js";import"./Plus-BJivuRWZ.js";import"./SearchLg-DehWCYuP.js";import"./SearchMd-Dxz9PRr9.js";import"./Shield01-D8NQC667.js";import"./Stars01-Cr6jH6bn.js";import"./Trash01-Bij2sBQa.js";import"./Upload01-DjH022N7.js";import"./User01-ZmPLIjFd.js";import"./Users01-BVLWlI1e.js";import"./XClose-x59ADxdn.js";import"./Zap-5T12Qisd.js";import"./use-automations-CwH1KDVN.js";import"./useSuspenseInfiniteQuery-dT7ERMWt.js";import"./avatar-JWYe9tuD.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BjAla8BE.js";import"./monaco-editor-nBV34MRL.js";import"./spinner-cWHEuKxp.js";import"./index-4jt5IRNL.js";import"./calendar-CyE49Lc6.js";import"./shell-layout-CZMSsz_J.js";import"./required-auth-layout-D68OOUEY.js";import"./use-org-sso-R6aJskDC.js";import"./integration-icon-BSizUwtM.js";import"./use-navigate-to-agent-DvK4hzMp.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-B7P5iILx.js";import"./form-DbQjm3RG.js";import"./drawer-gCdKlKyC.js";import"./collection-search-Dpng8LoC.js";import"./index-BcxH3g_P.js";import"./get-initials-D-f_fDFw.js";import"./popover-DmPP_Wum.js";import"./dropdown-menu-BYWILVSv.js";import"./github-repo-picker-Bu5y6cUR.js";import"./use-debounced-value-MHaS7My_.js";import"./authenticate-and-persist-oauth-iGLSyEy7.js";import"./mcp-oauth-DNSOSAwY.js";import"./use-mcp-tools-gn9osu_Q.js";import"./extract-connection-data-BiZHVUW1.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-DWINBxtd.js";import"./use-tags-BauEp0vd.js";import"./command-lV9P9VCb.js";import"./index-Bn5LDRj0.js";import"./companions-core-T8xKIDs8.js";import"./tabs-BrFyu0Ld.js";import"./toggle-group-CjS_UJ7P.js";import"./use-deco-credits-D_UnpHIS.js";import"./alert-dialog-DMgETmzD.js";import"./toolbar-BZigRKxC.js";import"./skeleton-YNL4Gfyh.js";import"./agent-capabilities-cXfbMfjV.js";import"./connection-card-M--ClGzW.js";import"./use-registry-connections-m_NzqSHw.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-SRVklhqj.js";import"./collection-tabs-BIyQDwrD.js";import"./badge-D7PXFjPU.js";import"./select-model-U0NH-03Z.js";import"./checkbox-0q9FnTIX.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-CJi2U3py.js";import"./use-is-desktop-app-BNujXJc_.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-D4JT9F25.js";import"./deco-site-production-url-CaKZ7xBn.js";import"./use-capability-BWY6g3Hm.js";import"./pt-BR-CLy76QW2.js";import"./use-mcp-auth-status-qaat6Jvn.js";import"./use-debounced-autosave-pWgqt4Hv.js";import"./index-Dsg3QMPc.js";import"./search-input-CVQs7RpL.js";import"./switch-CbcK-jGL.js";import"./use-secrets-CmAxrjv8.js";import"./useQueries-DF7muCkz.js";import"./use-file-configs-C3YngRho.js";import"./automation-list-row-KsI-CvB5.js";const W={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},X={authors:"sandbox.recordEditor.titleAuthor"};function Dr(C){const t=L.c(40),{orgSlug:K,virtualMcpId:h,branch:w,kind:a,blockKey:g,block:P}=C,i=A(),f=Q(h);let b;t[0]!==w||t[1]!==K||t[2]!==f||t[3]!==h?(b={orgSlug:K,virtualMcpId:h,branch:w,packagePath:f},t[0]=w,t[1]=K,t[2]=f,t[3]=h,t[4]=b):b=t[4];const p=Y(b);let k;t[5]!==P||t[6]!==a?(k=$(P,a),t[5]=P,t[6]=a,t[7]=k):k=t[7];const B=k;let v;t[8]!==g||t[9]!==a||t[10]!==p?(v=l=>{p.mutate({blockKey:g,data:G(g,a,l)})},t[8]=g,t[9]=a,t[10]=p,t[11]=v):v=t[11];const[e,S]=U(B,v);let j;t[12]!==e||t[13]!==S?(j=(l,o)=>S({...e,[l]:o}),t[12]=e,t[13]=S,t[14]=j):j=t[14];const s=j,T=X[a];let n;t[15]!==i||t[16]!==T?(n=i(T),t[15]=i,t[16]=T,t[17]=n):n=t[17];let c;t[18]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[18]=n,t[19]=c):c=t[19];let d;t[20]!==p.isError||t[21]!==p.isPending?(d=r.jsx(q,{isPending:p.isPending,isError:p.isError}),t[20]=p.isError,t[21]=p.isPending,t[22]=d):d=t[22];let y;t[23]!==c||t[24]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[23]=c,t[24]=d,t[25]=y):y=t[25];const N=W[a];let x;if(t[26]!==e||t[27]!==s||t[28]!==i||t[29]!==N){let l;t[31]!==e||t[32]!==s||t[33]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(H,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:e[o.key],onChange:m=>s(o.key,m),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(R,{value:I(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(z,{id:o.key,className:"h-10 w-full",children:r.jsx(V,{placeholder:i(o.labelKey)})}),r.jsx(D,{children:(o.options??[]).map(m=>r.jsx(J,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(M,{id:o.key,value:I(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(O,{id:o.key,value:I(e[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:m=>s(o.key,m.target.value),className:"h-10"})]})},o.key),t[31]=e,t[32]=s,t[33]=i,t[34]=l):l=t[34],x=N.map(l),t[26]=e,t[27]=s,t[28]=i,t[29]=N,t[30]=x}else x=t[30];let u;t[35]!==x?(u=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:x})}),t[35]=x,t[36]=u):u=t[36];let E;return t[37]!==y||t[38]!==u?(E=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[37]=y,t[38]=u,t[39]=E):E=t[39],E}export{Dr as RecordEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-JmQNDspa.js","assets/index-CLgyj0Ph.js","assets/index-BAZmyVC-.css","assets/Tool02-B1k57A59.js","assets/CheckCircle-Ce06Dt0r.js","assets/Settings02-jyt4Cg5Z.js","assets/use-mcp-client-BEwkzQUP.js","assets/auth-Bxvu_2Ac.js","assets/useInfiniteQuery-P1Iqwjod.js","assets/use-infinite-scroll-CfKncOiK.js","assets/studio-tools-DIB17zFH.js","assets/badge-D7PXFjPU.js","assets/input-BwMPytZi.js","assets/dropdown-menu-BYWILVSv.js","assets/Check-CaWO08Ol.js","assets/ChevronRight-BK_QoWDW.js","assets/DotsVertical-BISxlJ7z.js","assets/table-DBYSBeR3.js","assets/toggle-group-CjS_UJ7P.js","assets/use-view-mode-9NHwOyEs.js","assets/use-mobile-ClQdbPYE.js","assets/FilterLines-2nONIGaK.js","assets/SearchMd-Dxz9PRr9.js","assets/dialog-B9oegZDu.js","assets/X-BRRsujeq.js","assets/AlertCircle-DkUSF8S9.js","assets/Upload01-DjH022N7.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DMgETmzD.js","assets/card-soYQdPhw.js","assets/Trash01-Bij2sBQa.js","assets/label-DFGmypV5.js","assets/select-DiBMx0I6.js","assets/tooltip-Boyng34D.js","assets/ChevronDown-dQW8AtGI.js","assets/ChevronUp-ClNBV1ML.js","assets/switch-CbcK-jGL.js","assets/textarea-BGf8-22U.js","assets/XCircle-CCKIXuSl.js","assets/checkbox-0q9FnTIX.js","assets/Eye-CHWgme6t.js","assets/LinkExternal01-DLruoFNK.js","assets/use-copy-BjAla8BE.js","assets/Copy01-D0rsTdyc.js","assets/Key01-DGgsccNk.js","assets/Plus-BJivuRWZ.js","assets/mcp-oauth-DNSOSAwY.js","assets/Play-3ZXTDwaq.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as i,j as e,r as s,k as a,aG as o}from"./index-CLgyj0Ph.js";import{R as m}from"./require-capability-APhfyAbM.js";import"./use-capability-BWY6g3Hm.js";import"./access-gate-DtqxGB-6.js";import"./capability-load-error-_6TFDt_Z.js";const n=s.lazy(()=>o(()=>import("./registry-layout-JmQNDspa.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function f(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-JmQNDspa.js","assets/index-CLgyj0Ph.js","assets/index-BAZmyVC-.css","assets/Tool02-B1k57A59.js","assets/CheckCircle-Ce06Dt0r.js","assets/Settings02-jyt4Cg5Z.js","assets/use-mcp-client-BEwkzQUP.js","assets/auth-Bxvu_2Ac.js","assets/useInfiniteQuery-P1Iqwjod.js","assets/use-infinite-scroll-CfKncOiK.js","assets/studio-tools-DIB17zFH.js","assets/badge-D7PXFjPU.js","assets/input-BwMPytZi.js","assets/dropdown-menu-BYWILVSv.js","assets/Check-CaWO08Ol.js","assets/ChevronRight-BK_QoWDW.js","assets/DotsVertical-BISxlJ7z.js","assets/table-DBYSBeR3.js","assets/toggle-group-CjS_UJ7P.js","assets/use-view-mode-9NHwOyEs.js","assets/use-mobile-ClQdbPYE.js","assets/FilterLines-2nONIGaK.js","assets/SearchMd-Dxz9PRr9.js","assets/dialog-B9oegZDu.js","assets/X-BRRsujeq.js","assets/AlertCircle-DkUSF8S9.js","assets/Upload01-DjH022N7.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DMgETmzD.js","assets/card-soYQdPhw.js","assets/Trash01-Bij2sBQa.js","assets/label-DFGmypV5.js","assets/select-DiBMx0I6.js","assets/tooltip-Boyng34D.js","assets/ChevronDown-dQW8AtGI.js","assets/ChevronUp-ClNBV1ML.js","assets/switch-CbcK-jGL.js","assets/textarea-BGf8-22U.js","assets/XCircle-CCKIXuSl.js","assets/checkbox-0q9FnTIX.js","assets/Eye-CHWgme6t.js","assets/LinkExternal01-DLruoFNK.js","assets/use-copy-BjAla8BE.js","assets/Copy01-D0rsTdyc.js","assets/Key01-DGgsccNk.js","assets/Plus-BJivuRWZ.js","assets/mcp-oauth-DNSOSAwY.js","assets/Play-3ZXTDwaq.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,d as n,f as c,j as t,k as f,r as l,aG as p}from"./index-CLgyj0Ph.js";import{R as u}from"./require-capability-APhfyAbM.js";import"./use-capability-BWY6g3Hm.js";import"./access-gate-DtqxGB-6.js";import"./capability-load-error-_6TFDt_Z.js";const g=l.lazy(()=>p(()=>import("./registry-layout-JmQNDspa.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-CfKncOiK.js";import{dX as i}from"./index-CLgyj0Ph.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./use-infinite-scroll-CfKncOiK.js";import{dX as u,W as n}from"./index-CLgyj0Ph.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|