decocms 4.150.15 → 4.150.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-jxf12Gx7.js → AlertCircle-BfK5HxOk.js} +1 -1
- package/dist/client/assets/{AreaChart-Q3cdV2Tp.js → AreaChart-zRjz3Ee2.js} +1 -1
- package/dist/client/assets/{ArrowUp-D1xQwfL3.js → ArrowUp-C-irAynw.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-D0FcOFUG.js → ArrowUpRight-CrJT_p6l.js} +1 -1
- package/dist/client/assets/{Check-Dj9-hpbL.js → Check-ChVJu8gk.js} +1 -1
- package/dist/client/assets/{CheckCircle-DFnhT1JZ.js → CheckCircle-B81zLW9-.js} +1 -1
- package/dist/client/assets/{ChevronDown-BugOEMPh.js → ChevronDown-CdTs0sCQ.js} +1 -1
- package/dist/client/assets/{ChevronRight-CssptgVn.js → ChevronRight-DlZmjQdP.js} +1 -1
- package/dist/client/assets/{ChevronUp-CGobtnE2.js → ChevronUp-ziMgKh-_.js} +1 -1
- package/dist/client/assets/{Copy01-PJMVYFym.js → Copy01-Dtj3nIxn.js} +1 -1
- package/dist/client/assets/{CpuChip01-rizq-yL2.js → CpuChip01-CG9fKGY9.js} +1 -1
- package/dist/client/assets/{DotsVertical-BlOLvWPg.js → DotsVertical-CjX67LXl.js} +1 -1
- package/dist/client/assets/{Eye-IDPOMsVx.js → Eye-DGXrgMGN.js} +1 -1
- package/dist/client/assets/{FilterLines-D2EOYgGm.js → FilterLines-DwtiCnwM.js} +1 -1
- package/dist/client/assets/{HardDrive-CkNTtzK-.js → HardDrive-5cNT2j_w.js} +1 -1
- package/dist/client/assets/{Key01-C4Gpdav8.js → Key01-BCTH75Z9.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DRUUk4X1.js → LayoutLeft-IipdVWAK.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DBXaavG5.js → LinkExternal01-DuHXcl7D.js} +1 -1
- package/dist/client/assets/{LogOut01-wkl7tB8f.js → LogOut01--O_MqtOQ.js} +1 -1
- package/dist/client/assets/{Monitor01-VT3PByH9.js → Monitor01-YKgT-8y3.js} +1 -1
- package/dist/client/assets/{Palette-BxyJJ5N9.js → Palette-CY0NLg6a.js} +1 -1
- package/dist/client/assets/{Play-DDnhHGfn.js → Play-D_qDQMGr.js} +1 -1
- package/dist/client/assets/{Plus-DGVntTiI.js → Plus-Lr1XPBIQ.js} +1 -1
- package/dist/client/assets/{SearchLg-D_f2ff-d.js → SearchLg-CcIpjZHQ.js} +1 -1
- package/dist/client/assets/{SearchMd-BGqWZB08.js → SearchMd-DLfS7Nic.js} +1 -1
- package/dist/client/assets/{Settings02-B0htp6DV.js → Settings02-CDD72_vF.js} +1 -1
- package/dist/client/assets/{Shield01-BK1RGJOl.js → Shield01-DdX_ZrZ8.js} +1 -1
- package/dist/client/assets/{Star01-CgoJE9Jc.js → Star01-BEB08ax8.js} +1 -1
- package/dist/client/assets/{Stars01-CdNrK-XK.js → Stars01-CdLgQ2Wl.js} +1 -1
- package/dist/client/assets/{Stars02-1nDmkUZo.js → Stars02-BNKfhx6k.js} +1 -1
- package/dist/client/assets/{Sun-DaHpFPTd.js → Sun-Wu9w4xSH.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-9a8FI5tb.js → SwitchHorizontal01-BIpy8jfT.js} +1 -1
- package/dist/client/assets/{Tool01-BiMA6_0a.js → Tool01-CSHIBdGo.js} +1 -1
- package/dist/client/assets/{Tool02-DRf_ATg-.js → Tool02-B3nGkHFq.js} +1 -1
- package/dist/client/assets/{Trash01-B72U_vKw.js → Trash01-DEXtBryv.js} +1 -1
- package/dist/client/assets/{TrendUp01-Cg3uC2iR.js → TrendUp01-ZjHNrqrF.js} +1 -1
- package/dist/client/assets/{Upload01-2rBPOGzf.js → Upload01-UH9HQJbc.js} +1 -1
- package/dist/client/assets/{User01-DP-0oFrM.js → User01-Dk5e4c3P.js} +1 -1
- package/dist/client/assets/{Users01-haMruUi8.js → Users01-B7euoQ10.js} +1 -1
- package/dist/client/assets/{Users03-CpBJ-FiW.js → Users03-DMS1K8Cu.js} +1 -1
- package/dist/client/assets/{X-DolTvzOi.js → X-mRJBkrLo.js} +1 -1
- package/dist/client/assets/{XCircle-fuWGo_9A.js → XCircle-CAW-iMz4.js} +1 -1
- package/dist/client/assets/{XClose-ivzuJ2Bu.js → XClose-D52ReXyG.js} +1 -1
- package/dist/client/assets/{Zap-Cdzw98Op.js → Zap-ncdFG1Dr.js} +1 -1
- package/dist/client/assets/{ZapSquare-DEzLXYlw.js → ZapSquare-DmEjrR0v.js} +1 -1
- package/dist/client/assets/{access-gate-R-FRL3ZI.js → access-gate-CLn7OxkL.js} +1 -1
- package/dist/client/assets/{add-section-modal-rfOTTCgk.js → add-section-modal-Ci-q3o56.js} +1 -1
- package/dist/client/assets/{agent-icon-Cz8NAdKS.js → agent-icon-DD8EHCHf.js} +1 -1
- package/dist/client/assets/{agents-list-DkjZy3oX.js → agents-list-P2UAaToM.js} +1 -1
- package/dist/client/assets/{ai-providers-DVQlqU1r.js → ai-providers-BQC1L1HE.js} +1 -1
- package/dist/client/assets/{alert-CyNdhbOc.js → alert-B7-32pvg.js} +1 -1
- package/dist/client/assets/{alert-dialog-tWbKtq6L.js → alert-dialog-BPSD5yDn.js} +1 -1
- package/dist/client/assets/{app-editor-EvMzZckb.js → app-editor-CWr2xNoD.js} +1 -1
- package/dist/client/assets/{auth-E6A7QAGn.js → auth-DRkzWav8.js} +1 -1
- package/dist/client/assets/{auth-catchall-DujdsQPj.js → auth-catchall-DKnd_9Wt.js} +1 -1
- package/dist/client/assets/{auth-entry-RXNjbrN0.js → auth-entry-R5LBZAgC.js} +1 -1
- package/dist/client/assets/{auth-split-layout-FJQFENrS.js → auth-split-layout-0mIpixSp.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Bfe0UDTw.js → authenticate-and-persist-oauth-D0yw2xJT.js} +1 -1
- package/dist/client/assets/{automation-list-row-CLhImH1n.js → automation-list-row-CYssUsbq.js} +1 -1
- package/dist/client/assets/{automation-runs-xOZvBjoS.js → automation-runs-BN8rduUf.js} +1 -1
- package/dist/client/assets/{automations-6KH76Oks.js → automations-CKeKDmAh.js} +1 -1
- package/dist/client/assets/{avatar-DoEIDWgj.js → avatar-DUyVdK3_.js} +1 -1
- package/dist/client/assets/{badge-Br2z6w5p.js → badge-CiRzOpFo.js} +1 -1
- package/dist/client/assets/{block-document-DUZYYhlN.js → block-document-D-jQeufB.js} +1 -1
- package/dist/client/assets/{brand-context-DtpiqLm6.js → brand-context-vprouP2c.js} +1 -1
- package/dist/client/assets/{buckets-CwAyCICi.js → buckets-BzBw7k06.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BnEzZZu_.js → bulk-category-panel-u5aG2C4F.js} +1 -1
- package/dist/client/assets/{calendar-BuUFe0Dj.js → calendar-4bsMJGZw.js} +1 -1
- package/dist/client/assets/{capability-load-error-DvyFor-M.js → capability-load-error-Cg2dFS2r.js} +1 -1
- package/dist/client/assets/{card-Bvp_iEmJ.js → card-wABScRZJ.js} +1 -1
- package/dist/client/assets/{category-editor-BE_jw1ol.js → category-editor-DRULsq_h.js} +1 -1
- package/dist/client/assets/{chat-context-BX-0d0HZ.js → chat-context-CcVQXE2w.js} +1 -1
- package/dist/client/assets/{checkbox-0PEQuHLW.js → checkbox-BWycoWKl.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CC9EtW63.js → cli-auth-success-Cci61aFb.js} +1 -1
- package/dist/client/assets/{collection-detail-CpmwCvpt.js → collection-detail-Mefe-zxh.js} +1 -1
- package/dist/client/assets/{collection-display-button-BpEl8sX2.js → collection-display-button-DDXDM1Jm.js} +1 -1
- package/dist/client/assets/{collection-search-BdU7y4Eg.js → collection-search-DbFOyDGf.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CwKBjt8Z.js → collection-table-wrapper-DMcQkncA.js} +1 -1
- package/dist/client/assets/{collection-tabs-DmyEOE3p.js → collection-tabs-BP9vmdC5.js} +1 -1
- package/dist/client/assets/{command-Dr-ssJhm.js → command-CNOhEpQ8.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DK5ol95v.js → commerce-onboarding-csacJcDz.js} +1 -1
- package/dist/client/assets/{companions-core-CSaZehWu.js → companions-core-DWImUBIm.js} +1 -1
- package/dist/client/assets/{connect-DxdyW0gm.js → connect-NPJf_WA2.js} +1 -1
- package/dist/client/assets/{connection-DWB0UiTE.js → connection-BAXm_nmm.js} +1 -1
- package/dist/client/assets/{connection-card-CkF90aP1.js → connection-card-DE9r4BXa.js} +1 -1
- package/dist/client/assets/{connection-detail-B6vPPKd_.js → connection-detail-n0LowYI_.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BP0mV3mD.js → connection-form-helpers-D6GijbY2.js} +1 -1
- package/dist/client/assets/{connections-CndHL3OI.js → connections-Bi2gCMKU.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DgiTUJ7x.js → decopilot-sse-pool-3QA6Iz28.js} +1 -1
- package/dist/client/assets/{dialog-DdEtomn-.js → dialog-D-9b7XmL.js} +1 -1
- package/dist/client/assets/{domain-settings-Bs1fkzpV.js → domain-settings-OIj-pPKy.js} +1 -1
- package/dist/client/assets/{drawer-BLZmvIaA.js → drawer-_tLNJiQV.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CzBq85NZ.js → dropdown-menu-CGihXpW-.js} +1 -1
- package/dist/client/assets/{empty-state-GO9HhQwr.js → empty-state-9gpmxLs8.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DNkk0HYD.js → extract-connection-data-CyvrmpRC.js} +1 -1
- package/dist/client/assets/{file-explorer-Batkjsw5.js → file-explorer-CDfCSgYR.js} +1 -1
- package/dist/client/assets/{form-Bz2-FIPe.js → form-CuzdBf8b.js} +1 -1
- package/dist/client/assets/{general-DYeezm62.js → general-nJLdC4rK.js} +1 -1
- package/dist/client/assets/{github-repo-picker-K963LhaA.js → github-repo-picker-sYaT06MK.js} +1 -1
- package/dist/client/assets/{hooks-DcUZN6Cs.js → hooks-CR9od6hB.js} +1 -1
- package/dist/client/assets/{index-y8Lxxsic.js → index-BLyrwDWU.js} +1 -1
- package/dist/client/assets/{index-BfGINErw.js → index-Bx9yn21_.js} +1 -1
- package/dist/client/assets/{index-BVE3-HTr.js → index-CRpLCiXm.js} +5 -5
- package/dist/client/assets/{index-DYnlvgQU.js → index-Cc3tMMDQ.js} +1 -1
- package/dist/client/assets/{index-CV8-bO6u.js → index-CgJFtiug.js} +1 -1
- package/dist/client/assets/{index-C0dm88C6.js → index-Cx2K_77C.js} +1 -1
- package/dist/client/assets/{index-Bbm0EzHp.js → index-DB47JUNX.js} +1 -1
- package/dist/client/assets/{index-64ng8clT.js → index-DTals3Ly.js} +1 -1
- package/dist/client/assets/{index-CR4nVMnd.js → index-DUVdIChs.js} +3 -3
- package/dist/client/assets/{index-LNQ0BcxX.js → index-DiNpjNqc.js} +3 -3
- package/dist/client/assets/{index-BI9uGTuR.js → index-DzNyxUTU.js} +1 -1
- package/dist/client/assets/{index-redirect-Ddw52wKS.js → index-redirect-COwPd7m5.js} +1 -1
- package/dist/client/assets/{input-DBm5QVdn.js → input-63M95_-_.js} +1 -1
- package/dist/client/assets/{integration-icon-33z9qCXL.js → integration-icon-DY2cYKeF.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-DS8dlXQY.js → invite-member-dialog-D4V_sPAL.js} +1 -1
- package/dist/client/assets/{label-ffvb8tXe.js → label-C5D_eD_s.js} +1 -1
- package/dist/client/assets/{layout-9fpfWKbS.js → layout-DzyN7R3b.js} +1 -1
- package/dist/client/assets/{login-BOtFvYwp.js → login-B9cC5VuW.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Dgt-7Ujy.js → mcp-oauth-BkhMcZps.js} +1 -1
- package/dist/client/assets/{members-BsfBSNC6.js → members-RbFCn7p2.js} +1 -1
- package/dist/client/assets/{monaco-editor-DqIc4pQe.js → monaco-editor-DLh9rbH4.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BtUTy0L8.js → monitoring-stats-row-DmpWtt3t.js} +1 -1
- package/dist/client/assets/{multi-select-AuCc_TgS.js → multi-select-CHSPWPlh.js} +1 -1
- package/dist/client/assets/{oauth-callback-BE5Xfngo.js → oauth-callback-DbSPF0g6.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-kXXTG6Dx.js → oauth-callback-ai-provider-BDjT2jBG.js} +1 -1
- package/dist/client/assets/{onboarding-D2B5HQNL.js → onboarding-BUs4J1Tq.js} +1 -1
- package/dist/client/assets/{org-layout-CLug_Sht.js → org-layout-BDweWzuy.js} +1 -1
- package/dist/client/assets/{organization-choice-D9QPGzj6.js → organization-choice-BnvDk-L0.js} +1 -1
- package/dist/client/assets/{orgs-De9sGsPN.js → orgs-DTgv4ssS.js} +1 -1
- package/dist/client/assets/{page-seo-form-f8YmJ_vl.js → page-seo-form-CahELQBf.js} +1 -1
- package/dist/client/assets/{popover-CxlDGsS1.js → popover-CA2H81ny.js} +1 -1
- package/dist/client/assets/{post-editor-0D1eHWly.js → post-editor-RT1BJ_uR.js} +1 -1
- package/dist/client/assets/{primitives-vxrNDA_x.js → primitives-CtUDJ1Qq.js} +1 -1
- package/dist/client/assets/{profile-Biaxg5fQ.js → profile-CXwS_2Ev.js} +1 -1
- package/dist/client/assets/project-app-view-Do4q3Vd_.js +1 -0
- package/dist/client/assets/record-editor-9eE7IbxF.js +1 -0
- package/dist/client/assets/{redirect-editor-mNfKxmAJ.js → redirect-editor-CQobYZSZ.js} +1 -1
- package/dist/client/assets/registry-PAzjrHWg.js +2 -0
- package/dist/client/assets/{registry-layout-BDrTGQAn.js → registry-layout-BaoB-xEx.js} +1 -1
- package/dist/client/assets/{reports-CXmXbqF4.js → reports-23_-Rv8K.js} +1 -1
- package/dist/client/assets/{require-capability-Cg6lB07k.js → require-capability-DekGbafS.js} +1 -1
- package/dist/client/assets/{required-auth-layout-z550ffXm.js → required-auth-layout-BGfBcPFw.js} +1 -1
- package/dist/client/assets/{reset-password-DU0bsLjE.js → reset-password-B80pvEew.js} +1 -1
- package/dist/client/assets/{roles-BzKXJ1yb.js → roles-Usqh8ocU.js} +1 -1
- package/dist/client/assets/{search-input-CJDyo5ma.js → search-input-BLSXft-b.js} +1 -1
- package/dist/client/assets/{secrets-BgLm6lYD.js → secrets-BaGpu1-X.js} +1 -1
- package/dist/client/assets/{sections-editor-92lIsypE.js → sections-editor-Blqmr39m.js} +1 -1
- package/dist/client/assets/{select-BPnvRJqF.js → select-Bt44HQNB.js} +1 -1
- package/dist/client/assets/{select-model-CaExvv-A.js → select-model-DWHfLXSL.js} +1 -1
- package/dist/client/assets/{self-tool-result-BBMpP__C.js → self-tool-result-BPfM-u64.js} +1 -1
- package/dist/client/assets/{seo-editor-RuDmGs2u.js → seo-editor-CR_KQpz2.js} +1 -1
- package/dist/client/assets/{settings-layout-CFd_n-t1.js → settings-layout-DbZQnSfm.js} +1 -1
- package/dist/client/assets/{settings-section-DwhLErf4.js → settings-section-eQzLxOUY.js} +1 -1
- package/dist/client/assets/{shell-controls-BdVzTomc.js → shell-controls-BF47i3XR.js} +1 -1
- package/dist/client/assets/{shell-layout-Di2raMMr.js → shell-layout-B9-tqVce.js} +1 -1
- package/dist/client/assets/{sidebar-DHHC6GET.js → sidebar-CyqDY1ka.js} +1 -1
- package/dist/client/assets/{skeleton-D4MmyMAV.js → skeleton-Bk2gS_Gg.js} +1 -1
- package/dist/client/assets/{spinner-9lP2i2Gy.js → spinner-DkNof--U.js} +1 -1
- package/dist/client/assets/{sso-C8pSAkAI.js → sso-Dp9sLvNM.js} +1 -1
- package/dist/client/assets/{store-ksshVCDQ.js → store-8gTpeud7.js} +1 -1
- package/dist/client/assets/store-registry-tJ5K7Tco.js +2 -0
- package/dist/client/assets/{studio-tools-pwwzjD8w.js → studio-tools-CVBwUnAz.js} +1 -1
- package/dist/client/assets/{switch-ChFA3TRj.js → switch-D9jvrqZA.js} +1 -1
- package/dist/client/assets/{tab-id-DSonld1u.js → tab-id-CpsCk8l5.js} +1 -1
- package/dist/client/assets/{table-BjrT6OLl.js → table-B7rRaNEo.js} +1 -1
- package/dist/client/assets/{tabs-BAAuPCGv.js → tabs-CQgskdoz.js} +1 -1
- package/dist/client/assets/{textarea-D8__E7Sm.js → textarea-lyTfsfi8.js} +1 -1
- package/dist/client/assets/{toggle-group-DIvIGLwG.js → toggle-group-Cwh3Ve9X.js} +1 -1
- package/dist/client/assets/{toolbar-Dsdcuiuk.js → toolbar-D5T8ivoZ.js} +1 -1
- package/dist/client/assets/{tooltip-C8f2l6uq.js → tooltip-vb_s3oIC.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BspAPlJo.js → use-ai-providers-DxXbu1Ew.js} +1 -1
- package/dist/client/assets/{use-automations-BByYxYm_.js → use-automations-DH0tklTh.js} +1 -1
- package/dist/client/assets/{use-autosave-DuA1M-pF.js → use-autosave-BCcfi799.js} +1 -1
- package/dist/client/assets/{use-capability-B3bpEQ7v.js → use-capability-nEOD2vBG.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DchcrYff.js → use-clock-tick-CHrW-0Uo.js} +1 -1
- package/dist/client/assets/{use-connection-C_Vz-FXT.js → use-connection-DmpF_SvF.js} +1 -1
- package/dist/client/assets/{use-copy-0xxC3IRq.js → use-copy-EWNQGFPO.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B9aiT2Td.js → use-create-virtual-mcp-DlzY9FE8.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CRPfpjNz.js → use-debounced-autosave-3JdW84FC.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DUHZfHxs.js → use-debounced-value-4QNCsQgC.js} +1 -1
- package/dist/client/assets/{use-deco-credits-B3uD1cAg.js → use-deco-credits-NjOPXTyA.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DbxcGRYG.js → use-decopilot-events-Cwe_H0wk.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DJJyKqTo.js → use-delete-connection-l8IwQEIb.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-69KrNKAV.js → use-deployment-admin-DF5UjDGz.js} +1 -1
- package/dist/client/assets/{use-file-configs-BdO69iPe.js → use-file-configs-DwLQSdd8.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CNUnC6Q_.js → use-infinite-scroll-CG45qVGE.js} +1 -1
- package/dist/client/assets/{use-join-requests-DMf2fy27.js → use-join-requests-DpsHo9s8.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Bm058Aw8.js → use-mcp-auth-status-CMTszU72.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CvEaqzTv.js → use-mcp-client-CSOuwGm6.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CHqFtrhL.js → use-mcp-tools-BXT8jnYj.js} +1 -1
- package/dist/client/assets/{use-members-CajytmeN.js → use-members-CKdPrQSB.js} +1 -1
- package/dist/client/assets/{use-mobile-Q1-E-0SR.js → use-mobile-C3NZV5hD.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BgikxGan.js → use-navigate-to-agent-CVQujE-e.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CgwhYTV_.js → use-org-auth-client-BKRAVxWM.js} +1 -1
- package/dist/client/assets/{use-org-sso-BbWy0GSW.js → use-org-sso-BmLhXAGH.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BfcYp0N7.js → use-organization-roles-CghuPraW.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DV4BvR-U.js → use-organization-settings-BW2bkndR.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DZ9mDiGl.js → use-registry-connections-BXabHK6Z.js} +1 -1
- package/dist/client/assets/{use-secrets-DpVxQgT0.js → use-secrets-BI8yxs9X.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BhzCEB70.js → use-status-sounds-Dmc9W6Zr.js} +1 -1
- package/dist/client/assets/{use-tags-BKKtlGTF.js → use-tags-1IbcKOzI.js} +1 -1
- package/dist/client/assets/{use-view-mode-CzDzeGz9.js → use-view-mode-DAyZEe6C.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BNLx3Yrc.js → use-virtual-mcp-C5SrLPWo.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cwb1xs1d.js +1 -0
- package/dist/client/assets/{useQueries--Pqafp1d.js → useQueries-At7OFdSm.js} +1 -1
- package/dist/client/assets/{useRouterState-DJdEDzps.js → useRouterState-B2PQOT-0.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-gSiSuvzZ.js +1 -0
- package/dist/client/assets/{users-Bz6wRsuf.js → users-BeSbsg09.js} +1 -1
- package/dist/client/assets/{variant-calendar-0GkFwEeU.js → variant-calendar-BQj1WXZq.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Dag10m74.js → view-mode-toggle-BCU1SeMP.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/project-app-view-BIUkLTiV.js +0 -1
- package/dist/client/assets/record-editor-BK5q1CEO.js +0 -1
- package/dist/client/assets/registry-CasPmJ3k.js +0 -2
- package/dist/client/assets/store-registry-CWbEiY1L.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CL0Rktao.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BnxXjBr_.js +0 -1
package/dist/client/assets/{github-repo-picker-K963LhaA.js → github-repo-picker-sYaT06MK.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,j as t,F as de,a as ye,o as me,r as $,$ as oe,b as ee,k as Z,e as ge,t as le,dS as Ne,K as te,G as ve,n as ke,m as ae,B as re,x as Ce,y as Re}from"./index-CR4nVMnd.js";import{a as we,b as Se,d as Pe,e as Ie}from"./dialog-DdEtomn-.js";import{C as _e}from"./collection-search-BdU7y4Eg.js";import{u as Te}from"./use-debounced-value-DUHZfHxs.js";import{b as he,u as Ee}from"./use-connection-C_Vz-FXT.js";import{W as Ae,u as se,S as pe}from"./use-mcp-client-CvEaqzTv.js";import{a as be}from"./authenticate-and-persist-oauth-Bfe0UDTw.js";import{b as ue}from"./Settings02-B0htp6DV.js";import{n as ze}from"./LinkExternal01-DBXaavG5.js";import{U as Le}from"./agent-icon-Cz8NAdKS.js";import{u as Ge}from"./use-mcp-tools-CHqFtrhL.js";import{e as Oe}from"./extract-connection-data-DNkk0HYD.js";import{c as Fe}from"./use-navigate-to-agent-BgikxGan.js";import{g as Ue,p as fe,f as $e,G as xe}from"./provision-repo-scoped-github-connection-C2RHf8fG.js";function H(k){const e=M.c(4),{size:n,className:l}=k;let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=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]=p):p=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:p}),e[1]=l,e[2]=n,e[3]=o):o=e[3],o}function De(k,e){const n=M.c(12),{org:l}=de();let p;n[0]!==l.id?(p=Ae.REGISTRY(l.id),n[0]=l.id,n[1]=p):p=n[1];const o=p;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=se(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}=de(),{data:n}=ye.useSession(),l=he(),p=me(),[o,a]=$.useState("idle"),[r,s]=$.useState(null),[u,y]=$.useState(null),{data:N,isLoading:w}=De(Me,{enabled:k.enabled}),f=$.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")}oe(p,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=M.c(27),{open:n,onOpenChange:l,title:p,onImportComplete:o,mode:a}=k,r=a===void 0?"agent":a,s=ee();let u;e[0]!==r||e[1]!==s||e[2]!==p?(u=p??s(r==="connection"?"common.githubRepoPicker.addRepo":"common.githubRepoPicker.importFromGitHub"),e[0]=r,e[1]=s,e[2]=p,e[3]=u):u=e[3];const y=u,[N,w]=$.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(ue,{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(H,{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(Z,{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 b;e[13]!==r||e[14]!==o||e[15]!==n||e[16]!==N||e[17]!==c?(b=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx($.Suspense,{fallback:m,children:t.jsx(Be,{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]=b):b=e[18];let g;e[19]!==f||e[20]!==d||e[21]!==b?(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,b]}),e[19]=f,e[20]=d,e[21]=b,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 Be({open:k,onComplete:e,selectedInstallation:n,onSelectInstallation:l,onImportComplete:p,mode:o="agent"}){const a=ee(),{org:r}=de(),s=me(),u=Fe(),[y,N]=$.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=se({connectionId:m?.id??"",orgId:r.id,orgSlug:r.slug}),b=se({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(_=>_.type==="resource")?.resource?.text;if(!P)return null;try{const _=JSON.parse(P);return typeof _=="string"?_:JSON.stringify(_)}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 b.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:i,data:{metadata:{instructions:R}}}}),oe(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 fe({orgSlug:r.slug,sourceConnection:m,installationId:v,owner:i.owner,repo:i.name,githubCallTool:P=>c.callTool(P),selfCallTool:P=>b.callTool(P),orgShared:!0});return{virtualMcpId:null,repo:i,connectionId:R,item:null}}const{childConnectionId:C}=await fe({orgSlug:r.slug,sourceConnection:m,installationId:v,owner:i.owner,repo:i.name,githubCallTool:R=>c.callTool(R),selfCallTool:R=>b.callTool(R)});let S=null;try{const R=await b.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,_=P.item?.id;if(!P.item||!_)throw new Error("Failed to create the imported agent");return S=_,{virtualMcpId:_,repo:i,connectionId:C,item:P.item}}catch(R){throw S&&await b.callTool({name:"COLLECTION_VIRTUAL_MCP_DELETE",arguments:{id:S}}).catch(()=>{}),await b.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){oe(s,r.id),Ne(s,r.id),le.success(a("common.githubRepoPicker.addedRepo",{name:v.name})),e();return}if(s.setQueryData(te.collectionItem(b,r.id,"","VIRTUAL_MCP",i),{item:S}),oe(s,r.id),j(i,v),p){p({virtualMcpId:i,repo:v,connectionId:C});return}le.success(a("common.githubRepoPicker.importedRepo",{name:v.name})),e(),localStorage.setItem(ve.sidebarOpen(),JSON.stringify(!1)),u(i)},onError:i=>{le.error(a("common.githubRepoPicker.failedImport",{error:i instanceof Error?i.message:a("common.githubRepoPicker.unknownError")}))}});return d.status==="installing"||d.status==="authenticating"?t.jsx(ce,{status:d.status,error:null,retry:d.retry}):d.status==="error"?t.jsx(ce,{status:"error",error:d.error,retry:d.retry}):f.length===0&&d.status==="idle"?t.jsx(ce,{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(H,{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(Qe,{connectionId:m.id,orgId:r.id,orgSlug:r.slug,onSelect:l,showBackButton:f.length>1,onBack:()=>N(null)}):null}function Qe(k){const e=M.c(124),{connectionId:n,orgId:l,orgSlug:p,onSelect:o,showBackButton:a,onBack:r}=k,s=ee();let u;e[0]!==l||e[1]!==p?(u={connectionId:pe,orgId:l,orgSlug:p},e[0]=l,e[1]=p,e[2]=u):u=e[2];const y=se(u),N=me(),w=he();let f;e[3]!==n||e[4]!==l?(f=te.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(h=>y.callTool(h),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 b;e[12]!==w||e[13]!==n||e[14]!==c||e[15]!==l||e[16]!==p||e[17]!==N?(b=async()=>{const h=await be({connectionId:n,orgId:l,orgSlug:p,persistFallback:E=>w.update.mutateAsync({id:n,data:{connection_token:E}}).then(Ve)});if(h.ran&&!h.ok)throw new Error(h.error??"no token received");const I=new URL(`/api/${p}/mcp/${n}`,window.location.origin);await N.invalidateQueries({queryKey:te.isMCPAuthenticated(I.href,null)}),await N.invalidateQueries({queryKey:te.mcpClientPrefix()}),await c.refetch()},e[12]=w,e[13]=n,e[14]=c,e[15]=l,e[16]=p,e[17]=N,e[18]=b):b=e[18];let g;e[19]!==s?(g=h=>{le.error(s("common.githubRepoPicker.failedReconnect",{error:h instanceof Error?h.message:s("common.githubRepoPicker.unknownError")}))},e[19]=s,e[20]=g):g=e[20];let j;e[21]!==b||e[22]!==g?(j={mutationFn:b,onError:g},e[21]=b,e[22]=g,e[23]=j):j=e[23];const x=ge(j);if(c.isLoading){let h;return e[24]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Z,{size:18,className:"animate-spin text-muted-foreground"})}),e[24]=h):h=e[24],h}if(c.isError){let h;e[25]!==s?(h=s("common.githubRepoPicker.failedLoadAccounts"),e[25]=s,e[26]=h):h=e[26];let I;e[27]!==h?(I=t.jsx("p",{className:"text-sm text-destructive",children:h}),e[27]=h,e[28]=I):I=e[28];let E;e[29]!==s?(E=s("common.githubRepoPicker.connectionExpiredMessage"),e[29]=s,e[30]=E):E=e[30];let A;e[31]!==E?(A=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[280px] leading-relaxed",children:E}),e[31]=E,e[32]=A):A=e[32];let z;e[33]!==x?(z=()=>x.mutate(),e[33]=x,e[34]=z):z=e[34];const D=x.isPending;let L;e[35]!==x.isPending?(L=x.isPending?t.jsx(Z,{size:14,className:"animate-spin"}):t.jsx(H,{className:"size-3.5"}),e[35]=x.isPending,e[36]=L):L=e[36];let G;e[37]!==s?(G=s("common.githubRepoPicker.reconnectGitHub"),e[37]=s,e[38]=G):G=e[38];let O;e[39]!==x.isPending||e[40]!==z||e[41]!==L||e[42]!==G?(O=t.jsxs(re,{type:"button",variant:"outline",size:"sm",onClick:z,disabled:D,children:[L,G]}),e[39]=x.isPending,e[40]=z,e[41]=L,e[42]=G,e[43]=O):O=e[43];let U;return e[44]!==A||e[45]!==O||e[46]!==I?(U=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-3 px-6 text-center",children:[I,A,O]}),e[44]=A,e[45]=O,e[46]=I,e[47]=U):U=e[47],U}const i=c.data;if(!i)return null;if(i.installations.length===0){let h;e[48]!==r||e[49]!==a||e[50]!==s?(h=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(ue,{size:12}),s("common.githubRepoPicker.changeConnection")]})}),e[48]=r,e[49]=a,e[50]=s,e[51]=h):h=e[51];let I;e[52]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("div",{className:"size-16 rounded-2xl bg-muted flex items-center justify-center",children:t.jsx(H,{className:"size-8 text-foreground"})}),e[52]=I):I=e[52];let E;e[53]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx("span",{className:"size-1.5 rounded-full bg-success"}),e[53]=E):E=e[53];let A;e[54]!==s?(A=s("common.githubRepoPicker.githubConnected"),e[54]=s,e[55]=A):A=e[55];let z;e[56]!==A?(z=t.jsxs("div",{className:"mt-4 flex items-center gap-1.5 text-xs font-medium text-success",children:[E,A]}),e[56]=A,e[57]=z):z=e[57];let D;e[58]!==s?(D=s("common.githubRepoPicker.setupRepositoriesTitle"),e[58]=s,e[59]=D):D=e[59];let L;e[60]!==D?(L=t.jsx("h2",{className:"mt-2 text-base font-semibold text-foreground",children:D}),e[60]=D,e[61]=L):L=e[61];let G;e[62]!==s?(G=s("common.githubRepoPicker.noRepositoriesShared"),e[62]=s,e[63]=G):G=e[63];let O;e[64]!==G?(O=t.jsx("p",{className:"mt-1.5 max-w-[360px] text-xs leading-relaxed text-muted-foreground",children:G}),e[64]=G,e[65]=O):O=e[65];let U;e[66]!==s?(U=s("common.githubRepoPicker.chooseRepositories"),e[66]=s,e[67]=U):U=e[67];let ne;e[68]===Symbol.for("react.memo_cache_sentinel")?(ne=t.jsx(ze,{size:14}),e[68]=ne):ne=e[68];let q;e[69]!==U?(q=t.jsx(re,{asChild:!0,size:"sm",children:t.jsxs("a",{href:xe,target:"_blank",rel:"noopener noreferrer",children:[U,ne]})}),e[69]=U,e[70]=q):q=e[70];let B;e[71]!==c?(B=()=>{c.refetch()},e[71]=c,e[72]=B):B=e[72];const je=c.isFetching;let Q;e[73]!==c.isFetching?(Q=c.isFetching&&t.jsx(Z,{size:14,className:"animate-spin"}),e[73]=c.isFetching,e[74]=Q):Q=e[74];let V;e[75]!==s?(V=s("common.githubRepoPicker.checkAgain"),e[75]=s,e[76]=V):V=e[76];let K;e[77]!==c.isFetching||e[78]!==B||e[79]!==Q||e[80]!==V?(K=t.jsxs(re,{type:"button",variant:"outline",size:"sm",onClick:B,disabled:je,children:[Q,V]}),e[77]=c.isFetching,e[78]=B,e[79]=Q,e[80]=V,e[81]=K):K=e[81];let J;e[82]!==q||e[83]!==K?(J=t.jsxs("div",{className:"mt-5 flex items-center gap-2",children:[q,K]}),e[82]=q,e[83]=K,e[84]=J):J=e[84];let W;e[85]!==s?(W=s("common.githubRepoPicker.repositoryAccessNote"),e[85]=s,e[86]=W):W=e[86];let Y;e[87]!==W?(Y=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:W}),e[87]=W,e[88]=Y):Y=e[88];let X;e[89]!==z||e[90]!==L||e[91]!==O||e[92]!==J||e[93]!==Y?(X=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center px-8 py-6 text-center",children:[I,z,L,O,J,Y]}),e[89]=z,e[90]=L,e[91]=O,e[92]=J,e[93]=Y,e[94]=X):X=e[94];let ie;return e[95]!==X||e[96]!==h?(ie=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[h,X]}),e[95]=X,e[96]=h,e[97]=ie):ie=e[97],ie}let v;e[98]!==r||e[99]!==a||e[100]!==s?(v=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(ue,{size:12}),s("common.githubRepoPicker.changeConnection")]})}),e[98]=r,e[99]=a,e[100]=s,e[101]=v):v=e[101];let C;if(e[102]!==i.installations||e[103]!==o||e[104]!==s){let h;e[106]!==o||e[107]!==s?(h=I=>t.jsxs("button",{type:"button",onClick:()=>o(I),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:I.avatarUrl,alt:I.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:I.login}),I.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")," →"]})]},I.installationId),e[106]=o,e[107]=s,e[108]=h):h=e[108],C=i.installations.map(h),e[102]=i.installations,e[103]=o,e[104]=s,e[105]=C}else C=e[105];let S;e[109]!==C?(S=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:C}),e[109]=C,e[110]=S):S=e[110];let R;e[111]!==s?(R=s("common.githubRepoPicker.accountNotListed"),e[111]=s,e[112]=R):R=e[112];let P;e[113]!==s?(P=s("common.githubRepoPicker.installGitHubApp"),e[113]=s,e[114]=P):P=e[114];let _;e[115]!==P?(_=t.jsx("span",{className:"underline underline-offset-2",children:P}),e[115]=P,e[116]=_):_=e[116];let T;e[117]!==R||e[118]!==_?(T=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:xe,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:[R," ",_]})}),e[117]=R,e[118]=_,e[119]=T):T=e[119];let F;return e[120]!==S||e[121]!==T||e[122]!==v?(F=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[v,S,T]}),e[120]=S,e[121]=T,e[122]=v,e[123]=F):F=e[123],F}function Ve(){}function Ke(k){const e=M.c(23),{connectionId:n,orgId:l,orgSlug:p,installation:o,onSelectRepo:a,isSaving:r}=k,s=ee(),[u,y]=$.useState(""),N=Te(u,300),w=$.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 b;e[6]!==c?(b=ae("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",c),e[6]=c,e[7]=b):b=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(Z,{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]!==p?(j=t.jsx($.Suspense,{fallback:g,children:t.jsx(Je,{connectionId:n,orgId:l,orgSlug:p,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]=p,e[16]=j):j=e[16];let x;e[17]!==b||e[18]!==j?(x=t.jsx("div",{className:b,children:j}),e[17]=b,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=M.c(36),{connectionId:n,orgId:l,orgSlug:p,installation:o,query:a,onSelectRepo:r,isSaving:s}=k,u=ee();let y;e[0]!==n||e[1]!==l||e[2]!==p?(y={connectionId:n,orgId:l,orgSlug:p},e[0]=n,e[1]=l,e[2]=p,e[3]=y):y=e[3];const N=se(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=te.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:b}=Ce(c);if(b.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]!==b||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(H,{className:"size-4 text-muted-foreground mt-0.5 shrink-0"}),t.jsx("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:t.jsx("span",{className:"text-sm font-medium truncate",children: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=b.map(x),e[25]=s,e[26]=r,e[27]=b,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 ce(k){const e=M.c(51),{status:n,error:l,retry:p}=k,o=ee();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(H,{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 _;e[8]!==P?(_=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:P}),e[8]=P,e[9]=_):_=e[9];let T;e[10]!==R||e[11]!==_?(T=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[R,_]}),e[10]=R,e[11]=_,e[12]=T):T=e[12];let F;e[13]!==o?(F=o("common.githubRepoPicker.tryAgain"),e[13]=o,e[14]=F):F=e[14];let h;e[15]!==p||e[16]!==F?(h=t.jsx("button",{type:"button",onClick:p,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:F}),e[15]=p,e[16]=F,e[17]=h):h=e[17];let I;return e[18]!==T||e[19]!==h?(I=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[C,T,h]}),e[18]=T,e[19]=h,e[20]=I):I=e[20],I}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(H,{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(Z,{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=ae("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 b=a?"bg-foreground animate-pulse":"bg-muted-foreground/30";let g;e[40]!==b?(g=ae("size-1.5 rounded-full",b),e[40]=b,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{H as G,dt as a,qe as b,De as u};
|
|
1
|
+
import{c as M,j as t,F as de,a as ye,o as me,r as $,$ as oe,b as ee,k as Z,e as ge,t as le,dS as Ne,K as te,G as ve,n as ke,m as ae,B as re,x as Ce,y as Re}from"./index-DUVdIChs.js";import{a as we,b as Se,d as Pe,e as Ie}from"./dialog-D-9b7XmL.js";import{C as _e}from"./collection-search-DbFOyDGf.js";import{u as Te}from"./use-debounced-value-4QNCsQgC.js";import{b as he,u as Ee}from"./use-connection-DmpF_SvF.js";import{W as Ae,u as se,S as pe}from"./use-mcp-client-CSOuwGm6.js";import{a as be}from"./authenticate-and-persist-oauth-D0yw2xJT.js";import{b as ue}from"./Settings02-CDD72_vF.js";import{n as ze}from"./LinkExternal01-DuHXcl7D.js";import{U as Le}from"./agent-icon-DD8EHCHf.js";import{u as Ge}from"./use-mcp-tools-BXT8jnYj.js";import{e as Oe}from"./extract-connection-data-CyvrmpRC.js";import{c as Fe}from"./use-navigate-to-agent-CVQujE-e.js";import{g as Ue,p as fe,f as $e,G as xe}from"./provision-repo-scoped-github-connection-C2RHf8fG.js";function H(k){const e=M.c(4),{size:n,className:l}=k;let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p=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]=p):p=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:p}),e[1]=l,e[2]=n,e[3]=o):o=e[3],o}function De(k,e){const n=M.c(12),{org:l}=de();let p;n[0]!==l.id?(p=Ae.REGISTRY(l.id),n[0]=l.id,n[1]=p):p=n[1];const o=p;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=se(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}=de(),{data:n}=ye.useSession(),l=he(),p=me(),[o,a]=$.useState("idle"),[r,s]=$.useState(null),[u,y]=$.useState(null),{data:N,isLoading:w}=De(Me,{enabled:k.enabled}),f=$.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")}oe(p,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=M.c(27),{open:n,onOpenChange:l,title:p,onImportComplete:o,mode:a}=k,r=a===void 0?"agent":a,s=ee();let u;e[0]!==r||e[1]!==s||e[2]!==p?(u=p??s(r==="connection"?"common.githubRepoPicker.addRepo":"common.githubRepoPicker.importFromGitHub"),e[0]=r,e[1]=s,e[2]=p,e[3]=u):u=e[3];const y=u,[N,w]=$.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(ue,{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(H,{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(Z,{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 b;e[13]!==r||e[14]!==o||e[15]!==n||e[16]!==N||e[17]!==c?(b=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx($.Suspense,{fallback:m,children:t.jsx(Be,{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]=b):b=e[18];let g;e[19]!==f||e[20]!==d||e[21]!==b?(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,b]}),e[19]=f,e[20]=d,e[21]=b,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 Be({open:k,onComplete:e,selectedInstallation:n,onSelectInstallation:l,onImportComplete:p,mode:o="agent"}){const a=ee(),{org:r}=de(),s=me(),u=Fe(),[y,N]=$.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=se({connectionId:m?.id??"",orgId:r.id,orgSlug:r.slug}),b=se({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(_=>_.type==="resource")?.resource?.text;if(!P)return null;try{const _=JSON.parse(P);return typeof _=="string"?_:JSON.stringify(_)}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 b.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:i,data:{metadata:{instructions:R}}}}),oe(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 fe({orgSlug:r.slug,sourceConnection:m,installationId:v,owner:i.owner,repo:i.name,githubCallTool:P=>c.callTool(P),selfCallTool:P=>b.callTool(P),orgShared:!0});return{virtualMcpId:null,repo:i,connectionId:R,item:null}}const{childConnectionId:C}=await fe({orgSlug:r.slug,sourceConnection:m,installationId:v,owner:i.owner,repo:i.name,githubCallTool:R=>c.callTool(R),selfCallTool:R=>b.callTool(R)});let S=null;try{const R=await b.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,_=P.item?.id;if(!P.item||!_)throw new Error("Failed to create the imported agent");return S=_,{virtualMcpId:_,repo:i,connectionId:C,item:P.item}}catch(R){throw S&&await b.callTool({name:"COLLECTION_VIRTUAL_MCP_DELETE",arguments:{id:S}}).catch(()=>{}),await b.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){oe(s,r.id),Ne(s,r.id),le.success(a("common.githubRepoPicker.addedRepo",{name:v.name})),e();return}if(s.setQueryData(te.collectionItem(b,r.id,"","VIRTUAL_MCP",i),{item:S}),oe(s,r.id),j(i,v),p){p({virtualMcpId:i,repo:v,connectionId:C});return}le.success(a("common.githubRepoPicker.importedRepo",{name:v.name})),e(),localStorage.setItem(ve.sidebarOpen(),JSON.stringify(!1)),u(i)},onError:i=>{le.error(a("common.githubRepoPicker.failedImport",{error:i instanceof Error?i.message:a("common.githubRepoPicker.unknownError")}))}});return d.status==="installing"||d.status==="authenticating"?t.jsx(ce,{status:d.status,error:null,retry:d.retry}):d.status==="error"?t.jsx(ce,{status:"error",error:d.error,retry:d.retry}):f.length===0&&d.status==="idle"?t.jsx(ce,{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(H,{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(Qe,{connectionId:m.id,orgId:r.id,orgSlug:r.slug,onSelect:l,showBackButton:f.length>1,onBack:()=>N(null)}):null}function Qe(k){const e=M.c(124),{connectionId:n,orgId:l,orgSlug:p,onSelect:o,showBackButton:a,onBack:r}=k,s=ee();let u;e[0]!==l||e[1]!==p?(u={connectionId:pe,orgId:l,orgSlug:p},e[0]=l,e[1]=p,e[2]=u):u=e[2];const y=se(u),N=me(),w=he();let f;e[3]!==n||e[4]!==l?(f=te.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(h=>y.callTool(h),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 b;e[12]!==w||e[13]!==n||e[14]!==c||e[15]!==l||e[16]!==p||e[17]!==N?(b=async()=>{const h=await be({connectionId:n,orgId:l,orgSlug:p,persistFallback:E=>w.update.mutateAsync({id:n,data:{connection_token:E}}).then(Ve)});if(h.ran&&!h.ok)throw new Error(h.error??"no token received");const I=new URL(`/api/${p}/mcp/${n}`,window.location.origin);await N.invalidateQueries({queryKey:te.isMCPAuthenticated(I.href,null)}),await N.invalidateQueries({queryKey:te.mcpClientPrefix()}),await c.refetch()},e[12]=w,e[13]=n,e[14]=c,e[15]=l,e[16]=p,e[17]=N,e[18]=b):b=e[18];let g;e[19]!==s?(g=h=>{le.error(s("common.githubRepoPicker.failedReconnect",{error:h instanceof Error?h.message:s("common.githubRepoPicker.unknownError")}))},e[19]=s,e[20]=g):g=e[20];let j;e[21]!==b||e[22]!==g?(j={mutationFn:b,onError:g},e[21]=b,e[22]=g,e[23]=j):j=e[23];const x=ge(j);if(c.isLoading){let h;return e[24]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(Z,{size:18,className:"animate-spin text-muted-foreground"})}),e[24]=h):h=e[24],h}if(c.isError){let h;e[25]!==s?(h=s("common.githubRepoPicker.failedLoadAccounts"),e[25]=s,e[26]=h):h=e[26];let I;e[27]!==h?(I=t.jsx("p",{className:"text-sm text-destructive",children:h}),e[27]=h,e[28]=I):I=e[28];let E;e[29]!==s?(E=s("common.githubRepoPicker.connectionExpiredMessage"),e[29]=s,e[30]=E):E=e[30];let A;e[31]!==E?(A=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[280px] leading-relaxed",children:E}),e[31]=E,e[32]=A):A=e[32];let z;e[33]!==x?(z=()=>x.mutate(),e[33]=x,e[34]=z):z=e[34];const D=x.isPending;let L;e[35]!==x.isPending?(L=x.isPending?t.jsx(Z,{size:14,className:"animate-spin"}):t.jsx(H,{className:"size-3.5"}),e[35]=x.isPending,e[36]=L):L=e[36];let G;e[37]!==s?(G=s("common.githubRepoPicker.reconnectGitHub"),e[37]=s,e[38]=G):G=e[38];let O;e[39]!==x.isPending||e[40]!==z||e[41]!==L||e[42]!==G?(O=t.jsxs(re,{type:"button",variant:"outline",size:"sm",onClick:z,disabled:D,children:[L,G]}),e[39]=x.isPending,e[40]=z,e[41]=L,e[42]=G,e[43]=O):O=e[43];let U;return e[44]!==A||e[45]!==O||e[46]!==I?(U=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-3 px-6 text-center",children:[I,A,O]}),e[44]=A,e[45]=O,e[46]=I,e[47]=U):U=e[47],U}const i=c.data;if(!i)return null;if(i.installations.length===0){let h;e[48]!==r||e[49]!==a||e[50]!==s?(h=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(ue,{size:12}),s("common.githubRepoPicker.changeConnection")]})}),e[48]=r,e[49]=a,e[50]=s,e[51]=h):h=e[51];let I;e[52]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("div",{className:"size-16 rounded-2xl bg-muted flex items-center justify-center",children:t.jsx(H,{className:"size-8 text-foreground"})}),e[52]=I):I=e[52];let E;e[53]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx("span",{className:"size-1.5 rounded-full bg-success"}),e[53]=E):E=e[53];let A;e[54]!==s?(A=s("common.githubRepoPicker.githubConnected"),e[54]=s,e[55]=A):A=e[55];let z;e[56]!==A?(z=t.jsxs("div",{className:"mt-4 flex items-center gap-1.5 text-xs font-medium text-success",children:[E,A]}),e[56]=A,e[57]=z):z=e[57];let D;e[58]!==s?(D=s("common.githubRepoPicker.setupRepositoriesTitle"),e[58]=s,e[59]=D):D=e[59];let L;e[60]!==D?(L=t.jsx("h2",{className:"mt-2 text-base font-semibold text-foreground",children:D}),e[60]=D,e[61]=L):L=e[61];let G;e[62]!==s?(G=s("common.githubRepoPicker.noRepositoriesShared"),e[62]=s,e[63]=G):G=e[63];let O;e[64]!==G?(O=t.jsx("p",{className:"mt-1.5 max-w-[360px] text-xs leading-relaxed text-muted-foreground",children:G}),e[64]=G,e[65]=O):O=e[65];let U;e[66]!==s?(U=s("common.githubRepoPicker.chooseRepositories"),e[66]=s,e[67]=U):U=e[67];let ne;e[68]===Symbol.for("react.memo_cache_sentinel")?(ne=t.jsx(ze,{size:14}),e[68]=ne):ne=e[68];let q;e[69]!==U?(q=t.jsx(re,{asChild:!0,size:"sm",children:t.jsxs("a",{href:xe,target:"_blank",rel:"noopener noreferrer",children:[U,ne]})}),e[69]=U,e[70]=q):q=e[70];let B;e[71]!==c?(B=()=>{c.refetch()},e[71]=c,e[72]=B):B=e[72];const je=c.isFetching;let Q;e[73]!==c.isFetching?(Q=c.isFetching&&t.jsx(Z,{size:14,className:"animate-spin"}),e[73]=c.isFetching,e[74]=Q):Q=e[74];let V;e[75]!==s?(V=s("common.githubRepoPicker.checkAgain"),e[75]=s,e[76]=V):V=e[76];let K;e[77]!==c.isFetching||e[78]!==B||e[79]!==Q||e[80]!==V?(K=t.jsxs(re,{type:"button",variant:"outline",size:"sm",onClick:B,disabled:je,children:[Q,V]}),e[77]=c.isFetching,e[78]=B,e[79]=Q,e[80]=V,e[81]=K):K=e[81];let J;e[82]!==q||e[83]!==K?(J=t.jsxs("div",{className:"mt-5 flex items-center gap-2",children:[q,K]}),e[82]=q,e[83]=K,e[84]=J):J=e[84];let W;e[85]!==s?(W=s("common.githubRepoPicker.repositoryAccessNote"),e[85]=s,e[86]=W):W=e[86];let Y;e[87]!==W?(Y=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:W}),e[87]=W,e[88]=Y):Y=e[88];let X;e[89]!==z||e[90]!==L||e[91]!==O||e[92]!==J||e[93]!==Y?(X=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center px-8 py-6 text-center",children:[I,z,L,O,J,Y]}),e[89]=z,e[90]=L,e[91]=O,e[92]=J,e[93]=Y,e[94]=X):X=e[94];let ie;return e[95]!==X||e[96]!==h?(ie=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[h,X]}),e[95]=X,e[96]=h,e[97]=ie):ie=e[97],ie}let v;e[98]!==r||e[99]!==a||e[100]!==s?(v=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(ue,{size:12}),s("common.githubRepoPicker.changeConnection")]})}),e[98]=r,e[99]=a,e[100]=s,e[101]=v):v=e[101];let C;if(e[102]!==i.installations||e[103]!==o||e[104]!==s){let h;e[106]!==o||e[107]!==s?(h=I=>t.jsxs("button",{type:"button",onClick:()=>o(I),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:I.avatarUrl,alt:I.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:I.login}),I.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")," →"]})]},I.installationId),e[106]=o,e[107]=s,e[108]=h):h=e[108],C=i.installations.map(h),e[102]=i.installations,e[103]=o,e[104]=s,e[105]=C}else C=e[105];let S;e[109]!==C?(S=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:C}),e[109]=C,e[110]=S):S=e[110];let R;e[111]!==s?(R=s("common.githubRepoPicker.accountNotListed"),e[111]=s,e[112]=R):R=e[112];let P;e[113]!==s?(P=s("common.githubRepoPicker.installGitHubApp"),e[113]=s,e[114]=P):P=e[114];let _;e[115]!==P?(_=t.jsx("span",{className:"underline underline-offset-2",children:P}),e[115]=P,e[116]=_):_=e[116];let T;e[117]!==R||e[118]!==_?(T=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:xe,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:[R," ",_]})}),e[117]=R,e[118]=_,e[119]=T):T=e[119];let F;return e[120]!==S||e[121]!==T||e[122]!==v?(F=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[v,S,T]}),e[120]=S,e[121]=T,e[122]=v,e[123]=F):F=e[123],F}function Ve(){}function Ke(k){const e=M.c(23),{connectionId:n,orgId:l,orgSlug:p,installation:o,onSelectRepo:a,isSaving:r}=k,s=ee(),[u,y]=$.useState(""),N=Te(u,300),w=$.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 b;e[6]!==c?(b=ae("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",c),e[6]=c,e[7]=b):b=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(Z,{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]!==p?(j=t.jsx($.Suspense,{fallback:g,children:t.jsx(Je,{connectionId:n,orgId:l,orgSlug:p,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]=p,e[16]=j):j=e[16];let x;e[17]!==b||e[18]!==j?(x=t.jsx("div",{className:b,children:j}),e[17]=b,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=M.c(36),{connectionId:n,orgId:l,orgSlug:p,installation:o,query:a,onSelectRepo:r,isSaving:s}=k,u=ee();let y;e[0]!==n||e[1]!==l||e[2]!==p?(y={connectionId:n,orgId:l,orgSlug:p},e[0]=n,e[1]=l,e[2]=p,e[3]=y):y=e[3];const N=se(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=te.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:b}=Ce(c);if(b.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]!==b||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(H,{className:"size-4 text-muted-foreground mt-0.5 shrink-0"}),t.jsx("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:t.jsx("span",{className:"text-sm font-medium truncate",children: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=b.map(x),e[25]=s,e[26]=r,e[27]=b,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 ce(k){const e=M.c(51),{status:n,error:l,retry:p}=k,o=ee();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(H,{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 _;e[8]!==P?(_=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:P}),e[8]=P,e[9]=_):_=e[9];let T;e[10]!==R||e[11]!==_?(T=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[R,_]}),e[10]=R,e[11]=_,e[12]=T):T=e[12];let F;e[13]!==o?(F=o("common.githubRepoPicker.tryAgain"),e[13]=o,e[14]=F):F=e[14];let h;e[15]!==p||e[16]!==F?(h=t.jsx("button",{type:"button",onClick:p,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:F}),e[15]=p,e[16]=F,e[17]=h):h=e[17];let I;return e[18]!==T||e[19]!==h?(I=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[C,T,h]}),e[18]=T,e[19]=h,e[20]=I):I=e[20],I}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(H,{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(Z,{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=ae("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 b=a?"bg-foreground animate-pulse":"bg-muted-foreground/30";let g;e[40]!==b?(g=ae("size-1.5 rounded-full",b),e[40]=b,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{H as G,dt as a,qe as b,De as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{dy as St,dz as It,b8 as R,Y as c,dA as de,be as ze,dB as Et,b7 as Tt,aH as wt,a5 as O,a4 as G,a2 as oe,X as _,b9 as m,a_ as F,cn as Mt,dC as I,a3 as At,t as ge,c as Ee,r as W,F as Ot,j as Ct}from"./index-
|
|
1
|
+
import{dy as St,dz as It,b8 as R,Y as c,dA as de,be as ze,dB as Et,b7 as Tt,aH as wt,a5 as O,a4 as G,a2 as oe,X as _,b9 as m,a_ as F,cn as Mt,dC as I,a3 as At,t as ge,c as Ee,r as W,F as Ot,j as Ct}from"./index-DUVdIChs.js";import{S as Rt,u as Nt}from"./use-mcp-client-CSOuwGm6.js";import{d as xt}from"./delay-CnY5UFtP.js";import{e as Pt}from"./backoff-CrEUbyZT.js";import{d as Dt,D as kt}from"./decopilot-sse-pool-3QA6Iz28.js";var re;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function a(s){throw new Error}t.assertNever=a,t.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},t.getValidEnumValues=s=>{const o=t.objectKeys(s).filter(n=>typeof s[s[n]]!="number"),i={};for(const n of o)i[n]=s[n];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(o){return s[o]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},t.find=(s,o)=>{for(const i of s)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(re||(re={}));var Ae;(function(t){t.mergeShapes=(e,a)=>({...e,...a})})(Ae||(Ae={}));re.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);re.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ce extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}format(e){const a=e||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(a(i));else{let n=r,p=0;for(;p<i.path.length;){const u=i.path[p];p===i.path.length-1?(n[u]=n[u]||{_errors:[]},n[u]._errors.push(a(i))):n[u]=n[u]||{_errors:[]},n=n[u],p++}}};return s(this),r}static assert(e){if(!(e instanceof ce))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,re.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=a=>a.message){const a=Object.create(null),r=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];a[o]=a[o]||[],a[o].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}}ce.create=t=>new ce(t);var Oe;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Oe||(Oe={}));var h;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(h||(h={}));var Je="vercel.ai.error",Lt=Symbol.for(Je),Ce,Re,Z=class We extends(Re=Error,Ce=Lt,Re){constructor({name:e,message:a,cause:r}){super(a),this[Ce]=!0,this.name=e,this.cause=r}static isInstance(e){return We.hasMarker(e,Je)}static hasMarker(e,a){const r=Symbol.for(a);return e!=null&&typeof e=="object"&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function Ge(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var Ye="AI_InvalidArgumentError",He=`vercel.ai.error.${Ye}`,jt=Symbol.for(He),Ne,xe,Zt=class extends(xe=Z,Ne=jt,xe){constructor({message:t,cause:e,argument:a}){super({name:Ye,message:t,cause:e}),this[Ne]=!0,this.argument=a}static isInstance(t){return Z.hasMarker(t,He)}},qe="AI_JSONParseError",Xe=`vercel.ai.error.${qe}`,$t=Symbol.for(Xe),Pe,De,ke=class extends(De=Z,Pe=$t,De){constructor({text:t,cause:e}){super({name:qe,message:`JSON parsing failed: Text: ${t}.
|
|
2
2
|
Error message: ${Ge(e)}`,cause:e}),this[Pe]=!0,this.text=t}static isInstance(t){return Z.hasMarker(t,Xe)}},Qe="AI_TypeValidationError",Ke=`vercel.ai.error.${Qe}`,Ut=Symbol.for(Ke),Le,je,X=class ve extends(je=Z,Le=Ut,je){constructor({value:e,cause:a,context:r}){let s="Type validation failed";if(r?.field&&(s+=` for ${r.field}`),r?.entityName||r?.entityId){s+=" (";const o=[];r.entityName&&o.push(r.entityName),r.entityId&&o.push(`id: "${r.entityId}"`),s+=o.join(", "),s+=")"}super({name:Qe,message:`${s}: Value: ${JSON.stringify(e)}.
|
|
3
3
|
Error message: ${Ge(a)}`,cause:a}),this[Le]=!0,this.value=e,this.context=r}static isInstance(e){return Z.hasMarker(e,Ke)}static wrap({value:e,cause:a,context:r}){var s,o,i;return ve.isInstance(a)&&a.value===e&&((s=a.context)==null?void 0:s.field)===r?.field&&((o=a.context)==null?void 0:o.entityName)===r?.entityName&&((i=a.context)==null?void 0:i.entityId)===r?.entityId?a:new ve({value:e,cause:a,context:r})}},ie=({prefix:t,size:e=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const s=()=>{const o=a.length,i=new Array(e);for(let n=0;n<e;n++)i[n]=a[Math.random()*o|0];return i.join("")};if(t==null)return s;if(a.includes(r))throw new Zt({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${a}".`});return()=>`${t}${r}${s()}`};ie();var Ft=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,Bt=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function Ze(t){const e=JSON.parse(t);return e===null||typeof e!="object"||Ft.test(t)===!1&&Bt.test(t)===!1?e:Vt(e)}function Vt(t){let e=[t];for(;e.length;){const a=e;e=[];for(const r of a){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor!==null&&typeof r.constructor=="object"&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const s in r){const o=r[s];o&&typeof o=="object"&&e.push(o)}}}return t}function zt(t){const{stackTraceLimit:e}=Error;try{Error.stackTraceLimit=0}catch{return Ze(t)}try{return Ze(t)}finally{Error.stackTraceLimit=e}}function Te(t){if(t.type==="object"||Array.isArray(t.type)&&t.type.includes("object")){t.additionalProperties=!1;const{properties:a}=t;if(a!=null)for(const r of Object.keys(a))a[r]=z(a[r])}t.items!=null&&(t.items=Array.isArray(t.items)?t.items.map(z):z(t.items)),t.anyOf!=null&&(t.anyOf=t.anyOf.map(z)),t.allOf!=null&&(t.allOf=t.allOf.map(z)),t.oneOf!=null&&(t.oneOf=t.oneOf.map(z));const{definitions:e}=t;if(e!=null)for(const a of Object.keys(e))e[a]=z(e[a]);return t}function z(t){return typeof t=="boolean"?t:Te(t)}var Jt=Symbol("Let zodToJsonSchema decide on which parser to use"),$e={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},Wt=t=>typeof t=="string"?{...$e,name:t}:{...$e,...t};function N(){return{}}function Gt(t,e){var a,r,s;const o={type:"array"};return(a=t.type)!=null&&a._def&&((s=(r=t.type)==null?void 0:r._def)==null?void 0:s.typeName)!==h.ZodAny&&(o.items=b(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&(o.minItems=t.minLength.value),t.maxLength&&(o.maxItems=t.maxLength.value),t.exactLength&&(o.minItems=t.exactLength.value,o.maxItems=t.exactLength.value),o}function Yt(t){const e={type:"integer",format:"int64"};if(!t.checks)return e;for(const a of t.checks)switch(a.kind){case"min":a.inclusive?e.minimum=a.value:e.exclusiveMinimum=a.value;break;case"max":a.inclusive?e.maximum=a.value:e.exclusiveMaximum=a.value;break;case"multipleOf":e.multipleOf=a.value;break}return e}function Ht(){return{type:"boolean"}}function et(t,e){return b(t.type._def,e)}var qt=(t,e)=>b(t.innerType._def,e);function tt(t,e,a){const r=a??e.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((s,o)=>tt(t,e,s))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Xt(t)}}var Xt=t=>{const e={type:"integer",format:"unix-time"};for(const a of t.checks)switch(a.kind){case"min":e.minimum=a.value;break;case"max":e.maximum=a.value;break}return e};function Qt(t,e){return{...b(t.innerType._def,e),default:t.defaultValue()}}function Kt(t,e){return e.effectStrategy==="input"?b(t.schema._def,e):N()}function ea(t){return{type:"string",enum:Array.from(t.values)}}var ta=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function aa(t,e){const a=[b(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),b(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(s=>!!s),r=[];return a.forEach(s=>{if(ta(s))r.push(...s.allOf);else{let o=s;if("additionalProperties"in s&&s.additionalProperties===!1){const{additionalProperties:i,...n}=s;o=n}r.push(o)}}),r.length?{allOf:r}:void 0}function ra(t){const e=typeof t.value;return e!=="bigint"&&e!=="number"&&e!=="boolean"&&e!=="string"?{type:Array.isArray(t.value)?"array":"object"}:{type:e==="bigint"?"integer":e,const:t.value}}var me=void 0,P={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(me===void 0&&(me=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),me),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function at(t,e){const a={type:"string"};if(t.checks)for(const r of t.checks)switch(r.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"email":switch(e.emailStrategy){case"format:email":D(a,"email",r.message,e);break;case"format:idn-email":D(a,"idn-email",r.message,e);break;case"pattern:zod":A(a,P.email,r.message,e);break}break;case"url":D(a,"uri",r.message,e);break;case"uuid":D(a,"uuid",r.message,e);break;case"regex":A(a,r.regex,r.message,e);break;case"cuid":A(a,P.cuid,r.message,e);break;case"cuid2":A(a,P.cuid2,r.message,e);break;case"startsWith":A(a,RegExp(`^${he(r.value,e)}`),r.message,e);break;case"endsWith":A(a,RegExp(`${he(r.value,e)}$`),r.message,e);break;case"datetime":D(a,"date-time",r.message,e);break;case"date":D(a,"date",r.message,e);break;case"time":D(a,"time",r.message,e);break;case"duration":D(a,"duration",r.message,e);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"includes":{A(a,RegExp(he(r.value,e)),r.message,e);break}case"ip":{r.version!=="v6"&&D(a,"ipv4",r.message,e),r.version!=="v4"&&D(a,"ipv6",r.message,e);break}case"base64url":A(a,P.base64url,r.message,e);break;case"jwt":A(a,P.jwt,r.message,e);break;case"cidr":{r.version!=="v6"&&A(a,P.ipv4Cidr,r.message,e),r.version!=="v4"&&A(a,P.ipv6Cidr,r.message,e);break}case"emoji":A(a,P.emoji(),r.message,e);break;case"ulid":{A(a,P.ulid,r.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{D(a,"binary",r.message,e);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{A(a,P.base64,r.message,e);break}}break}case"nanoid":A(a,P.nanoid,r.message,e)}return a}function he(t,e){return e.patternStrategy==="escape"?na(t):t}var sa=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function na(t){let e="";for(let a=0;a<t.length;a++)sa.has(t[a])||(e+="\\"),e+=t[a];return e}function D(t,e,a,r){var s;t.format||(s=t.anyOf)!=null&&s.some(o=>o.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:e,...a&&r.errorMessages&&{errorMessage:{format:a}}})):t.format=e}function A(t,e,a,r){var s;t.pattern||(s=t.allOf)!=null&&s.some(o=>o.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:Ue(e,r),...a&&r.errorMessages&&{errorMessage:{pattern:a}}})):t.pattern=Ue(e,r)}function Ue(t,e){var a;if(!e.applyRegexFlags||!t.flags)return t.source;const r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},s=r.i?t.source.toLowerCase():t.source;let o="",i=!1,n=!1,p=!1;for(let u=0;u<s.length;u++){if(i){o+=s[u],i=!1;continue}if(r.i){if(n){if(s[u].match(/[a-z]/)){p?(o+=s[u],o+=`${s[u-2]}-${s[u]}`.toUpperCase(),p=!1):s[u+1]==="-"&&((a=s[u+2])!=null&&a.match(/[a-z]/))?(o+=s[u],p=!0):o+=`${s[u]}${s[u].toUpperCase()}`;continue}}else if(s[u].match(/[a-z]/)){o+=`[${s[u]}${s[u].toUpperCase()}]`;continue}}if(r.m){if(s[u]==="^"){o+=`(^|(?<=[\r
|
|
4
4
|
]))`;continue}else if(s[u]==="$"){o+=`($|(?=[\r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Me,r as ie,d as os,F as Tt,b as Ge,j as t,B as xe,t as Qe,m as qe,K as Qt,n as rs,z as Es,u as As,p as Wt,E as Vs}from"./index-
|
|
1
|
+
import{c as Me,r as ie,d as os,F as Tt,b as Ge,j as t,B as xe,t as Qe,m as qe,K as Qt,n as rs,z as Es,u as As,p as Wt,E as Vs}from"./index-DUVdIChs.js";import{S as Ks}from"./search-input-BLSXft-b.js";import{P as et}from"./index-DzNyxUTU.js";import{E as is}from"./empty-state-9gpmxLs8.js";import{R as Us}from"./require-capability-DekGbafS.js";import{y as ms,n as qs,z as Bs,B as us,D as Xt,E as qt,H as ys,I as Hs,J as fs,K as ws,A as Js,L as Qs}from"./automation-runs-BN8rduUf.js";import{u as ts}from"./use-connection-DmpF_SvF.js";import{g as Ss}from"./connection-slug-eyAPH6o3.js";import{B as kt}from"./badge-CiRzOpFo.js";import{P as $t,a as zt,b as Et}from"./popover-CA2H81ny.js";import{c as Bt,T as Ht,a as Jt}from"./tooltip-vb_s3oIC.js";import{i as Yt}from"./Check-ChVJu8gk.js";import{a as Kt}from"./Copy01-Dtj3nIxn.js";import{n as xs,a as At}from"./Tool02-B3nGkHFq.js";import{i as ns}from"./FilterLines-DwtiCnwM.js";import{i as Gs}from"./Key01-BCTH75Z9.js";import{i as Ws}from"./Play-D_qDQMGr.js";import{aO as Xs,$ as Ys,a7 as Zs}from"./agent-icon-DD8EHCHf.js";import{M as ps}from"./monaco-editor-DLh9rbH4.js";import{u as el}from"./use-members-CKdPrQSB.js";import{S as tl,u as sl,W as ll}from"./use-mcp-client-CSOuwGm6.js";import{a as ol}from"./use-virtual-mcp-C5SrLPWo.js";import{c as rl}from"./SwitchHorizontal01-BIpy8jfT.js";import{s as il}from"./Plus-Lr1XPBIQ.js";import{s as nl}from"./Trash01-DEXtBryv.js";import{I as Dt}from"./input-63M95_-_.js";import{M as Rt}from"./multi-select-CHSPWPlh.js";import{a as Pt,b as Ft,d as He,c as _t,S as Ot}from"./select-Bt44HQNB.js";import{t as Is}from"./ChevronDown-CdTs0sCQ.js";import{s as al}from"./Stars02-BNKfhx6k.js";import{C as cl}from"./calendar-4bsMJGZw.js";import{T as dl}from"./textarea-lyTfsfi8.js";import{C as ks}from"./collection-tabs-BP9vmdC5.js";import{S as ml}from"./switch-D9jvrqZA.js";import{L as ul}from"./label-C5D_eD_s.js";import{I as Ct}from"./integration-icon-DY2cYKeF.js";import{A as Cs}from"./avatar-DUyVdK3_.js";import{A as fl,a as xl,b as pl}from"./alert-B7-32pvg.js";import{C as Ts}from"./card-wABScRZJ.js";import{K as Ye}from"./monitoring-stats-row-DmpWtt3t.js";import{u as Ms}from"./studio-tools-CVBwUnAz.js";import{u as gl}from"./useSuspenseInfiniteQuery-gSiSuvzZ.js";import{o as hl,m as vl,p as jl,q as Nl}from"./sidebar-CyqDY1ka.js";import{T as tt,a as Gt,b as Ls,c as Ds,d as Ee,e as Rs}from"./table-B7rRaNEo.js";import{n as bl}from"./ChevronUp-ziMgKh-_.js";import{u as yl}from"./use-infinite-scroll-CG45qVGE.js";import{c as wl,b as Sl}from"./use-automations-DH0tklTh.js";import"./SearchMd-DLfS7Nic.js";import"./use-capability-nEOD2vBG.js";import"./access-gate-CLn7OxkL.js";import"./capability-load-error-Cg2dFS2r.js";import"./useInfiniteQuery-Cwb1xs1d.js";import"./use-clock-tick-CHrW-0Uo.js";import"./AlertCircle-BfK5HxOk.js";import"./CheckCircle-B81zLW9-.js";import"./DotsVertical-CjX67LXl.js";import"./XCircle-CAW-iMz4.js";import"./Stars01-CdLgQ2Wl.js";import"./ChevronRight-DlZmjQdP.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-EWNQGFPO.js";import"./dialog-D-9b7XmL.js";import"./X-mRJBkrLo.js";import"./use-mobile-C3NZV5hD.js";import"./tab-id-CpsCk8l5.js";import"./hooks-CR9od6hB.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-3QA6Iz28.js";import"./chat-context-CcVQXE2w.js";import"./use-ai-providers-DxXbu1Ew.js";import"./use-decopilot-events-Cwe_H0wk.js";import"./use-organization-settings-BW2bkndR.js";import"./index-DTals3Ly.js";import"./Eye-DGXrgMGN.js";import"./Star01-BEB08ax8.js";import"./XClose-D52ReXyG.js";import"./ZapSquare-DmEjrR0v.js";import"./Tool01-CSHIBdGo.js";import"./Monitor01-YKgT-8y3.js";import"./Upload01-UH9HQJbc.js";import"./shell-layout-B9-tqVce.js";import"./Users03-DMS1K8Cu.js";import"./SearchLg-CcIpjZHQ.js";import"./CpuChip01-CG9fKGY9.js";import"./Zap-ncdFG1Dr.js";import"./required-auth-layout-BGfBcPFw.js";import"./use-org-sso-BmLhXAGH.js";import"./LinkExternal01-DuHXcl7D.js";import"./ArrowUpRight-CrJT_p6l.js";import"./Palette-CY0NLg6a.js";import"./use-navigate-to-agent-CVQujE-e.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-zRjz3Ee2.js";import"./form-CuzdBf8b.js";import"./spinner-DkNof--U.js";import"./ArrowUp-C-irAynw.js";import"./Settings02-CDD72_vF.js";import"./TrendUp01-ZjHNrqrF.js";import"./HardDrive-5cNT2j_w.js";import"./LayoutLeft-IipdVWAK.js";import"./LogOut01--O_MqtOQ.js";import"./Sun-Wu9w4xSH.js";import"./Shield01-DdX_ZrZ8.js";import"./User01-Dk5e4c3P.js";import"./Users01-B7euoQ10.js";import"./use-org-auth-client-BKRAVxWM.js";import"./auth-DRkzWav8.js";import"./checkbox-BWycoWKl.js";import"./command-CNOhEpQ8.js";import"./index-DB47JUNX.js";const ss={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},Il=["eq","contains","exists","in"];function kl(s){return Il.includes(s)}function st(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Cl(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...d]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&kl(i)?i:"eq",value:decodeURIComponent(d.join(":")||"")}}).filter(e=>e!==void 0)}function Ut(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function gs(s){return s.trim()?s.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Tl(s){const e={},l={},i=[],d={};for(const n of s)if(n.key.trim())switch(n.operator){case"eq":n.value&&(e[n.key]=n.value);break;case"contains":n.value&&(l[n.key]=`%${n.value}%`);break;case"exists":i.push(n.key);break;case"in":n.value&&(d[n.key]=n.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(d).length>0?d:void 0}}function hs(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=ss.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,ss.maxJsonRenderSize)+`
|
|
4
4
|
|