decocms 4.76.47 → 4.76.49

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.
Files changed (235) hide show
  1. package/dist/client/assets/{AlertCircle-Ct_trIMg.js → AlertCircle-BnHU1WVh.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CRrsPyiX.js → AreaChart-Dacra_O5.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-B82j0m1n.js → ArrowUp-YJEwgKMQ.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-Bs0BPetC.js → ArrowUpRight-NJr4X8di.js} +1 -1
  5. package/dist/client/assets/{Check-DXck-8sV.js → Check-B2Iz7C2o.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-S9jWn5Mh.js → CheckCircle-RW91I6m2.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-CLM1j2jp.js → ChevronDown-wkyJh8B-.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-C2E5Dp54.js → ChevronRight-C6LjrcaC.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BeHashnH.js → ChevronUp-DRO1QadU.js} +1 -1
  10. package/dist/client/assets/{Circle-BsSfrq3e.js → Circle-CUxvy7wD.js} +1 -1
  11. package/dist/client/assets/{Copy01-DpaC4fYW.js → Copy01-CXB2pTie.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-CF_wSve9.js → DotsVertical-kGeNAaNA.js} +1 -1
  13. package/dist/client/assets/{Eye-C-SV3lvP.js → Eye-D-Dw2M4r.js} +1 -1
  14. package/dist/client/assets/{FilterLines-CwURjVGJ.js → FilterLines-DyOhC9x2.js} +1 -1
  15. package/dist/client/assets/{Flag01-Dvft4iTD.js → Flag01-DsknWftL.js} +1 -1
  16. package/dist/client/assets/{Globe01-BIR5236w.js → Globe01-utYkciWz.js} +1 -1
  17. package/dist/client/assets/{Globe04-iZSw58kd.js → Globe04-D89bbuxY.js} +1 -1
  18. package/dist/client/assets/{HardDrive-5OBzO_Ky.js → HardDrive-DCDsB3vQ.js} +1 -1
  19. package/dist/client/assets/{Key01-7lp-E5Gc.js → Key01-2FRG7RAz.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-HNJhsqgp.js → LayoutLeft-QyCZpZ79.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-CUjeXN47.js → LinkExternal01-CmI96IVZ.js} +1 -1
  22. package/dist/client/assets/{List-BEh5bEKM.js → List-CUPVMrxo.js} +1 -1
  23. package/dist/client/assets/{Monitor01-B7wjMyMa.js → Monitor01-Ctbzjkwm.js} +1 -1
  24. package/dist/client/assets/{Package-B0UrtPIN.js → Package-CGK8L4DO.js} +1 -1
  25. package/dist/client/assets/{Palette-zbGC5Dmm.js → Palette-BJai2GVd.js} +1 -1
  26. package/dist/client/assets/{Play-Bz0A3Y5e.js → Play-D8R5ZwHG.js} +1 -1
  27. package/dist/client/assets/{Plus--M9dcPMO.js → Plus-DJRb0N6g.js} +1 -1
  28. package/dist/client/assets/{SearchLg-Ds17lwee.js → SearchLg-B-29p8W9.js} +1 -1
  29. package/dist/client/assets/{SearchMd-gGSITpAR.js → SearchMd-6NWySKrO.js} +1 -1
  30. package/dist/client/assets/{Settings02-C0J3RccK.js → Settings02-CQTNCM_z.js} +1 -1
  31. package/dist/client/assets/{Shield01-Ce0QsQf7.js → Shield01-CxhrfJnr.js} +1 -1
  32. package/dist/client/assets/{Star01-DRz1zPRR.js → Star01-zxSxEpuh.js} +1 -1
  33. package/dist/client/assets/{Stars01-D9poRNZc.js → Stars01-B29ViNxv.js} +1 -1
  34. package/dist/client/assets/{Stars02-XI_d0UtF.js → Stars02-tMgYvh9q.js} +1 -1
  35. package/dist/client/assets/{Sun-DgguBwdj.js → Sun-txEnN6V0.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-Bb2rm5VX.js → SwitchHorizontal01-CgzrCwk9.js} +1 -1
  37. package/dist/client/assets/{Tool01-Cob0Vw_0.js → Tool01-D08MgGA9.js} +1 -1
  38. package/dist/client/assets/{Tool02-DXqnzmcu.js → Tool02-DVWYgFCk.js} +1 -1
  39. package/dist/client/assets/{Trash01-LoLcmAxw.js → Trash01-CYokEpYZ.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-B3bGMiCS.js → TrendUp01-8hfrWGb0.js} +1 -1
  41. package/dist/client/assets/{Upload01-By7jF-FG.js → Upload01-N0TvdNGd.js} +1 -1
  42. package/dist/client/assets/{User01-DN2LKLDR.js → User01-CijmqPgt.js} +1 -1
  43. package/dist/client/assets/{UserPlus01-D3Z-h9xL.js → UserPlus01-B4d4_9jq.js} +1 -1
  44. package/dist/client/assets/{Users01-CYM1Paj5.js → Users01-DqtNsyNi.js} +1 -1
  45. package/dist/client/assets/{Users03-DXSIuYIP.js → Users03-FvR7CwhH.js} +1 -1
  46. package/dist/client/assets/{X-CQq_1twc.js → X-B-UPR33q.js} +1 -1
  47. package/dist/client/assets/{XCircle-ASq_08UK.js → XCircle-C5w4Sl-I.js} +1 -1
  48. package/dist/client/assets/{XClose-D892yOuU.js → XClose-CpCRuHnW.js} +1 -1
  49. package/dist/client/assets/{Zap-Dj5WEZOq.js → Zap-O4fvRZrc.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-CJb5VJO8.js → ZapSquare-CLQ3f842.js} +1 -1
  51. package/dist/client/assets/{ZoomOut-D6w1kwx5.js → ZoomOut-Ds166syU.js} +1 -1
  52. package/dist/client/assets/{access-gate-Cte8vird.js → access-gate-BrXDUU55.js} +1 -1
  53. package/dist/client/assets/{add-section-modal-5v7pD4SQ.js → add-section-modal-jeL28rmu.js} +1 -1
  54. package/dist/client/assets/{agent-icon-CUA9P-jc.js → agent-icon-B6xaAgiS.js} +1 -1
  55. package/dist/client/assets/{agents-list-B93b7IVZ.js → agents-list-BaRQrVc6.js} +1 -1
  56. package/dist/client/assets/{ai-providers-BRXXB4cN.js → ai-providers-TR_Z3E1J.js} +1 -1
  57. package/dist/client/assets/{alert-Da3QWuKN.js → alert-Dy_XdxPO.js} +1 -1
  58. package/dist/client/assets/{alert-dialog-CJ86orwZ.js → alert-dialog-B87oXsG-.js} +1 -1
  59. package/dist/client/assets/{app-editor-DmGtlWPK.js → app-editor-sbU5zaJ_.js} +1 -1
  60. package/dist/client/assets/{auth-CT66LXeD.js → auth-BMQqACla.js} +1 -1
  61. package/dist/client/assets/{auth-catchall-DDpoyxbX.js → auth-catchall-BAv22B3I.js} +1 -1
  62. package/dist/client/assets/{auth-entry-CJ1pSE1Z.js → auth-entry-BjqF_BrQ.js} +1 -1
  63. package/dist/client/assets/{auth-split-layout-ZTn9O9-g.js → auth-split-layout-B9O0xDY7.js} +1 -1
  64. package/dist/client/assets/{authenticate-and-persist-oauth-Dye31GIc.js → authenticate-and-persist-oauth-9csBbFeE.js} +1 -1
  65. package/dist/client/assets/{automation-list-row-DQcu9s-J.js → automation-list-row-CF3-rf0R.js} +1 -1
  66. package/dist/client/assets/{automation-runs-_Se0pK9p.js → automation-runs-CKxw-xFo.js} +1 -1
  67. package/dist/client/assets/automations-rrwY2xr-.js +1 -0
  68. package/dist/client/assets/{autosend-C-Afy-mX.js → autosend-CRGH-uCu.js} +1 -1
  69. package/dist/client/assets/{avatar-b0UOFm48.js → avatar-YW0Bjo8H.js} +1 -1
  70. package/dist/client/assets/{badge-xfs1ynpW.js → badge-BriaGMIr.js} +1 -1
  71. package/dist/client/assets/{block-document-DFPlSnch.js → block-document-Yo1zvZpR.js} +1 -1
  72. package/dist/client/assets/{brand-context-JAXn00lw.js → brand-context-BzclsfS_.js} +1 -1
  73. package/dist/client/assets/{buckets-DiBOr7SS.js → buckets-B8JBONrs.js} +1 -1
  74. package/dist/client/assets/{bulk-category-panel-DZuxbcSe.js → bulk-category-panel-B9_SurP6.js} +1 -1
  75. package/dist/client/assets/{calendar-QS-mHt0z.js → calendar-RuUK7TS8.js} +1 -1
  76. package/dist/client/assets/{capability-load-error-ChIN_BDy.js → capability-load-error-BcSCgrcJ.js} +1 -1
  77. package/dist/client/assets/{card-Co4NmtE1.js → card-BX-MHzNC.js} +1 -1
  78. package/dist/client/assets/{category-editor-uB6Fkscc.js → category-editor-BFaWbjkr.js} +1 -1
  79. package/dist/client/assets/{chat-context-CyccsWfT.js → chat-context-D3KFW4Pn.js} +1 -1
  80. package/dist/client/assets/{checkbox-Cp4HiBAg.js → checkbox-wsRsKCH7.js} +1 -1
  81. package/dist/client/assets/{cli-auth-success-QaLl6QS3.js → cli-auth-success-ubad9hMO.js} +1 -1
  82. package/dist/client/assets/{collection-detail-BIW8kaVI.js → collection-detail-T9D27p__.js} +1 -1
  83. package/dist/client/assets/{collection-display-button-BDBK9_HJ.js → collection-display-button-DVdWFNcJ.js} +1 -1
  84. package/dist/client/assets/{collection-search-CuJVF_4n.js → collection-search-BCkjixL5.js} +1 -1
  85. package/dist/client/assets/{collection-table-wrapper-CUk03yJh.js → collection-table-wrapper-BaSJyUFB.js} +1 -1
  86. package/dist/client/assets/{collection-tabs-D2dxWVhJ.js → collection-tabs-DCxJHshW.js} +1 -1
  87. package/dist/client/assets/{command-CMAhy6e5.js → command-CfKaCWIq.js} +1 -1
  88. package/dist/client/assets/{commerce-onboarding-D-7dNjEu.js → commerce-onboarding-DPhTgQwF.js} +1 -1
  89. package/dist/client/assets/{companions-core-BPrxC_5K.js → companions-core-CcO_2vjX.js} +1 -1
  90. package/dist/client/assets/{connect-desktop-dialog-H-XQO8xQ.js → connect-desktop-dialog-BP5ruFDe.js} +1 -1
  91. package/dist/client/assets/{connection-card-CSc4h430.js → connection-card-BtoQSBij.js} +1 -1
  92. package/dist/client/assets/{connection-detail-CMeFrX8_.js → connection-detail-JIZrPniV.js} +1 -1
  93. package/dist/client/assets/{connection-form-helpers-C4JWE9qO.js → connection-form-helpers-hcIYB8td.js} +1 -1
  94. package/dist/client/assets/{connections-C8LbGkrU.js → connections-DTXsxorW.js} +1 -1
  95. package/dist/client/assets/{decopilot-sse-pool-ZSJ8gdM5.js → decopilot-sse-pool-A4wv5Dm-.js} +1 -1
  96. package/dist/client/assets/{dialog-Zrgg9dlk.js → dialog-BXEobDEe.js} +1 -1
  97. package/dist/client/assets/{domain-settings-BECeOIgB.js → domain-settings-BzfLB_KG.js} +1 -1
  98. package/dist/client/assets/{drawer-BwuvaJKk.js → drawer-BI2bgTGs.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-BCoimvOX.js → dropdown-menu-BA_bzNsm.js} +1 -1
  100. package/dist/client/assets/{empty-state-CWZTKjMO.js → empty-state-B0L2IAdY.js} +1 -1
  101. package/dist/client/assets/{extract-connection-data-DKUEpjtm.js → extract-connection-data-CoQqeYeQ.js} +1 -1
  102. package/dist/client/assets/file-explorer-MMGy1yNj.js +2 -0
  103. package/dist/client/assets/{file-type-icon-9V1QXJ8L.js → file-type-icon-C1BXVCU6.js} +1 -1
  104. package/dist/client/assets/{files-CViIR-kp.js → files-PQrdCSIw.js} +1 -1
  105. package/dist/client/assets/{form-DxNXQDnh.js → form-DMA8VjIU.js} +1 -1
  106. package/dist/client/assets/{general-nldp1532.js → general-C9MFkPMv.js} +1 -1
  107. package/dist/client/assets/{github-repo-picker-CAzdUaIn.js → github-repo-picker-atFQ3h83.js} +1 -1
  108. package/dist/client/assets/{hooks-BAhswesL.js → hooks-B94FOV1X.js} +1 -1
  109. package/dist/client/assets/{index-DBNT2eWA.js → index-B2IpXFSk.js} +1 -1
  110. package/dist/client/assets/{index-CAS46UgV.js → index-BH1U8Nc4.js} +1 -1
  111. package/dist/client/assets/{index-BqP8n8ZB.js → index-BreCE_21.js} +1 -1
  112. package/dist/client/assets/{index-B41Bwftt.js → index-CAeePdqM.js} +1 -1
  113. package/dist/client/assets/{index-DWemiin_.js → index-CEOgWxk-.js} +1 -1
  114. package/dist/client/assets/{index-zMGhLGpG.js → index-CJtbm6y_.js} +5 -5
  115. package/dist/client/assets/{index-DOtxc4qw.js → index-CO7VBe2M.js} +2 -2
  116. package/dist/client/assets/{index-XvNgqTsm.js → index-ClzzqoMN.js} +1 -1
  117. package/dist/client/assets/{index-CttRGCsZ.js → index-CzVHf7Ap.js} +1 -1
  118. package/dist/client/assets/{index-19zxQHGF.js → index-D7BaOenA.js} +1 -1
  119. package/dist/client/assets/{index-B5v4NEW3.js → index-DQ7viotb.js} +3 -3
  120. package/dist/client/assets/{index-DhupVI1X.js → index-mklRdWPY.js} +1 -1
  121. package/dist/client/assets/{index-CraRnyl2.js → index-pBXHu3jy.js} +1 -1
  122. package/dist/client/assets/{index-BXilFfeF.js → index-pw46WQtO.js} +1 -1
  123. package/dist/client/assets/{index-redirect-B2Q2or9L.js → index-redirect-Diy2eTGA.js} +1 -1
  124. package/dist/client/assets/{input-Ch5gyTpF.js → input-783WqkaW.js} +1 -1
  125. package/dist/client/assets/{integration-icon-CgQElrXW.js → integration-icon-CpiFsckQ.js} +1 -1
  126. package/dist/client/assets/{invite-member-dialog-ahQAh7y0.js → invite-member-dialog-DQliPz2T.js} +1 -1
  127. package/dist/client/assets/{label-wXoTBNOj.js → label-DRLwUGMZ.js} +1 -1
  128. package/dist/client/assets/{layout-BbxH1dqm.js → layout-DUe900Bz.js} +1 -1
  129. package/dist/client/assets/{login-BQPbZgK0.js → login-BCmf8ZqY.js} +1 -1
  130. package/dist/client/assets/{mcp-oauth-CCKUAqNW.js → mcp-oauth-BRRKWKtD.js} +1 -1
  131. package/dist/client/assets/{members-DC-wFfsX.js → members-D9smUp4G.js} +1 -1
  132. package/dist/client/assets/{monaco-editor-D01rdtwj.js → monaco-editor-DEHPlRXy.js} +1 -1
  133. package/dist/client/assets/{monitoring-stats-row-ili_SMbB.js → monitoring-stats-row-C9PgNv_Y.js} +1 -1
  134. package/dist/client/assets/{multi-select-BiBr3WcW.js → multi-select-T1g9SLcN.js} +1 -1
  135. package/dist/client/assets/{oauth-callback-D3CA1b_1.js → oauth-callback-CKsvPc5G.js} +1 -1
  136. package/dist/client/assets/{oauth-callback-ai-provider-CmS7j-H6.js → oauth-callback-ai-provider-FWn1Rivj.js} +1 -1
  137. package/dist/client/assets/{onboarding-oIerFpQ4.js → onboarding-Dkupkn9w.js} +1 -1
  138. package/dist/client/assets/{org-install-ng2zG1Ih.js → org-install-BrbDYYKo.js} +1 -1
  139. package/dist/client/assets/{org-layout-C7_jwviQ.js → org-layout-BoMhM_4_.js} +1 -1
  140. package/dist/client/assets/{organization-choice-BRIDBGd-.js → organization-choice-BoEW2JRx.js} +1 -1
  141. package/dist/client/assets/{orgs-CzW9S1so.js → orgs-DjIAUMyS.js} +1 -1
  142. package/dist/client/assets/{page-seo-form-DVV9UVOY.js → page-seo-form-B7Ii0C31.js} +1 -1
  143. package/dist/client/assets/page-seo-sheet-CzZ1z6GP.js +1 -0
  144. package/dist/client/assets/{popover-stw0Mg4Y.js → popover-BJQaiJ2F.js} +1 -1
  145. package/dist/client/assets/{post-editor-Gkb7rBYy.js → post-editor-D3W9p90N.js} +1 -1
  146. package/dist/client/assets/{primitives-BSi-lJi-.js → primitives-CiK5Wvsr.js} +1 -1
  147. package/dist/client/assets/{profile-CkEYRh85.js → profile-iwEbexPz.js} +1 -1
  148. package/dist/client/assets/project-app-view-C8YG8mws.js +1 -0
  149. package/dist/client/assets/record-editor-DYkHRVTf.js +1 -0
  150. package/dist/client/assets/redirect-editor-ClQgDUpd.js +1 -0
  151. package/dist/client/assets/registry-Cmc40tJJ.js +2 -0
  152. package/dist/client/assets/{registry-layout-DX8G3iig.js → registry-layout-CmqjS3tF.js} +1 -1
  153. package/dist/client/assets/{reports-Cx3F6VW7.js → reports-D-3oyiH-.js} +1 -1
  154. package/dist/client/assets/{require-capability-vo1ql1oP.js → require-capability-Mwv3G2Wv.js} +1 -1
  155. package/dist/client/assets/{required-auth-layout-D_MW2r6y.js → required-auth-layout-CGkIwMlg.js} +1 -1
  156. package/dist/client/assets/{reset-password-BUadKv_m.js → reset-password-Bsf8WbEx.js} +1 -1
  157. package/dist/client/assets/{roles-DOzhGuZ6.js → roles-CGYuKAGA.js} +1 -1
  158. package/dist/client/assets/{search-input-BZmNJ1mS.js → search-input-CbBt_hwl.js} +1 -1
  159. package/dist/client/assets/{secrets-55RFWUFR.js → secrets-BzkmvzGH.js} +1 -1
  160. package/dist/client/assets/{sections-editor-DHZBmDLB.js → sections-editor-C-e30nQC.js} +1 -1
  161. package/dist/client/assets/{select-Bm_prz4e.js → select-UOdEK8ld.js} +1 -1
  162. package/dist/client/assets/{select-model-BdX9lqWe.js → select-model-CXVmAkgn.js} +1 -1
  163. package/dist/client/assets/{self-tool-result-BInSjvMt.js → self-tool-result-CD_XYQHz.js} +1 -1
  164. package/dist/client/assets/{seo-editor-ldJCsafP.js → seo-editor-DeoYwwqh.js} +1 -1
  165. package/dist/client/assets/{settings-layout-CT8w7wPQ.js → settings-layout-BJxt8xXx.js} +1 -1
  166. package/dist/client/assets/{settings-section-DJLAq8qW.js → settings-section-CfQpTGXU.js} +1 -1
  167. package/dist/client/assets/{shell-controls-DzMyDjjE.js → shell-controls-W-ZpN-Ts.js} +1 -1
  168. package/dist/client/assets/{shell-layout-DLAZV0gK.js → shell-layout-DhFYjC1t.js} +1 -1
  169. package/dist/client/assets/{sidebar-DS0o2bkP.js → sidebar-DCgTHOQU.js} +1 -1
  170. package/dist/client/assets/{skeleton-DDLwtl4q.js → skeleton-D-ztH7j1.js} +1 -1
  171. package/dist/client/assets/{sso-BwLwvWpb.js → sso-B3MCitHr.js} +1 -1
  172. package/dist/client/assets/{store-Beka71Bx.js → store-I0ii3lrj.js} +1 -1
  173. package/dist/client/assets/store-registry-7IEPyxow.js +2 -0
  174. package/dist/client/assets/{studio-tools-CMGrpbwo.js → studio-tools-BksY-Ad2.js} +1 -1
  175. package/dist/client/assets/{switch-Dc6TbZCo.js → switch-DGqoIuJx.js} +1 -1
  176. package/dist/client/assets/{table-B7260dBr.js → table-BHmrO8KV.js} +1 -1
  177. package/dist/client/assets/{tabs-_bz-Pk3v.js → tabs-hKnLKYtp.js} +1 -1
  178. package/dist/client/assets/{textarea-DDDctY6q.js → textarea-CMk4yqcC.js} +1 -1
  179. package/dist/client/assets/{toggle-group-BuIed1_M.js → toggle-group-BkLEELHq.js} +1 -1
  180. package/dist/client/assets/{toolbar-D4hdPbh0.js → toolbar-C5Y0NGMt.js} +1 -1
  181. package/dist/client/assets/{toolbar-icon-button-DL5-P742.js → toolbar-icon-button-BnkdHuZu.js} +1 -1
  182. package/dist/client/assets/{tooltip-Cfe7K1Wf.js → tooltip-BS-OvIHF.js} +1 -1
  183. package/dist/client/assets/{use-ai-providers-DGlVmIGh.js → use-ai-providers-fnve2hOS.js} +1 -1
  184. package/dist/client/assets/{use-automations-DoGOQL-D.js → use-automations-ykni-nDO.js} +1 -1
  185. package/dist/client/assets/{use-autosave-DjDtv4ur.js → use-autosave-Dm8FKJA8.js} +1 -1
  186. package/dist/client/assets/{use-capability-CFL9CoDX.js → use-capability-FyDdM1OY.js} +1 -1
  187. package/dist/client/assets/{use-clock-tick-Brtfp44X.js → use-clock-tick-BgWkcZef.js} +1 -1
  188. package/dist/client/assets/{use-collections-BTyUL9Wy.js → use-collections-qEVIutQN.js} +1 -1
  189. package/dist/client/assets/{use-connection-_0QRydbo.js → use-connection-BP5IgchH.js} +1 -1
  190. package/dist/client/assets/{use-copy-WkBdr4yo.js → use-copy-CXSo9qrf.js} +1 -1
  191. package/dist/client/assets/{use-create-virtual-mcp-DiLQlb2w.js → use-create-virtual-mcp-C29HY0QE.js} +1 -1
  192. package/dist/client/assets/{use-debounced-autosave-DjRMW0Ri.js → use-debounced-autosave-DmNYey6u.js} +1 -1
  193. package/dist/client/assets/{use-debounced-value-D9mS5nMY.js → use-debounced-value-DvBYllnp.js} +1 -1
  194. package/dist/client/assets/{use-deco-credits-DdaT8kKr.js → use-deco-credits-B76eIFb2.js} +1 -1
  195. package/dist/client/assets/{use-decopilot-events-DJgHT7u7.js → use-decopilot-events-BH8NADEo.js} +1 -1
  196. package/dist/client/assets/{use-delete-connection-Ux0pzJs8.js → use-delete-connection-D8Zzy_XD.js} +1 -1
  197. package/dist/client/assets/{use-deployment-admin-DNnM204n.js → use-deployment-admin-euN1ZCnG.js} +1 -1
  198. package/dist/client/assets/{use-file-configs-DsNhSUJA.js → use-file-configs-Bk2sm9Tm.js} +1 -1
  199. package/dist/client/assets/{use-infinite-scroll-CubS4jP5.js → use-infinite-scroll-Dr_9gvr9.js} +1 -1
  200. package/dist/client/assets/{use-join-requests-Bnm07fSv.js → use-join-requests-BeF5HZcR.js} +1 -1
  201. package/dist/client/assets/{use-mcp-auth-status-unQW9A6B.js → use-mcp-auth-status-BRwQPSok.js} +1 -1
  202. package/dist/client/assets/{use-mcp-client-BhwsvIVS.js → use-mcp-client-vJ_hUKuw.js} +1 -1
  203. package/dist/client/assets/{use-mcp-tools-BQDntLa2.js → use-mcp-tools-CSZSTtuE.js} +1 -1
  204. package/dist/client/assets/{use-members-Bo1ap_nJ.js → use-members-C8PUXjwn.js} +1 -1
  205. package/dist/client/assets/{use-mobile-BWkiff8G.js → use-mobile-BpfZPuSO.js} +1 -1
  206. package/dist/client/assets/{use-navigate-to-agent-DcKHP-Dx.js → use-navigate-to-agent-Bts97NhH.js} +1 -1
  207. package/dist/client/assets/{use-org-auth-client-Dht_Ty6R.js → use-org-auth-client-BTW6scjC.js} +1 -1
  208. package/dist/client/assets/{use-org-sso-CxIr0uRn.js → use-org-sso-DHt-iU6o.js} +1 -1
  209. package/dist/client/assets/{use-organization-roles-CiHlLWAh.js → use-organization-roles-CRYhg04d.js} +1 -1
  210. package/dist/client/assets/{use-organization-settings-D22Exu1R.js → use-organization-settings-DeHTHMpw.js} +1 -1
  211. package/dist/client/assets/{use-registry-connections-7qDPmY1B.js → use-registry-connections-CKsh3sEK.js} +1 -1
  212. package/dist/client/assets/{use-secrets-B2_i6JKu.js → use-secrets-M9uB4BOe.js} +1 -1
  213. package/dist/client/assets/{use-status-sounds-Ba0cRZoN.js → use-status-sounds-Cib4eoV_.js} +1 -1
  214. package/dist/client/assets/{use-view-mode-BorVmgeT.js → use-view-mode-DwaJQjgy.js} +1 -1
  215. package/dist/client/assets/{use-virtual-mcp-JuKjy5YI.js → use-virtual-mcp-DVMAHGer.js} +1 -1
  216. package/dist/client/assets/useInfiniteQuery-CoOlPRVo.js +1 -0
  217. package/dist/client/assets/{useRouterState-QQ_hhude.js → useRouterState-B8NdmLNY.js} +1 -1
  218. package/dist/client/assets/useSuspenseInfiniteQuery-DGfH2E6n.js +1 -0
  219. package/dist/client/assets/{users-DTnFxXyC.js → users-CkDLDosV.js} +1 -1
  220. package/dist/client/assets/{variant-calendar-BVLJE_D6.js → variant-calendar-BxE6JaNT.js} +1 -1
  221. package/dist/client/assets/{view-mode-toggle-19-MtwbX.js → view-mode-toggle-8s4FUS-M.js} +1 -1
  222. package/dist/client/index.html +1 -1
  223. package/dist/server/cli.js +1 -1
  224. package/dist/server/server.js +1 -1
  225. package/package.json +1 -1
  226. package/dist/client/assets/automations-CSrJ7eYr.js +0 -1
  227. package/dist/client/assets/file-explorer-CaYXdPte.js +0 -2
  228. package/dist/client/assets/page-seo-sheet-DWS2178v.js +0 -1
  229. package/dist/client/assets/project-app-view-DLfzXGeu.js +0 -1
  230. package/dist/client/assets/record-editor-ClWpfK5T.js +0 -1
  231. package/dist/client/assets/redirect-editor-C0n0g6ju.js +0 -1
  232. package/dist/client/assets/registry-CG26WHvr.js +0 -2
  233. package/dist/client/assets/store-registry-DEtkey9N.js +0 -2
  234. package/dist/client/assets/useInfiniteQuery-CRypCc_i.js +0 -1
  235. package/dist/client/assets/useSuspenseInfiniteQuery-yV-mPSY_.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "4.76.47",
3
+ "version": "4.76.49",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import{c as B,j as o,C as L,b as T,r as $,B as M,p as N}from"./index-B5v4NEW3.js";import{s as q}from"./Plus--M9dcPMO.js";import{i as S}from"./Zap-Dj5WEZOq.js";import{S as D}from"./search-input-BZmNJ1mS.js";import{P as l}from"./index-DhupVI1X.js";import{E as b}from"./empty-state-CWZTKjMO.js";import{c as O}from"./use-automations-DoGOQL-D.js";import{c as V}from"./use-navigate-to-agent-DcKHP-Dx.js";import{A as F}from"./automation-list-row-DQcu9s-J.js";import{f as G}from"./constants-D_FQAPnt.js";import{u as H}from"./use-virtual-mcp-JuKjy5YI.js";import{R as J}from"./require-capability-vo1ql1oP.js";import"./SearchMd-gGSITpAR.js";import"./sidebar-DS0o2bkP.js";import"./LayoutLeft-HNJhsqgp.js";import"./use-mobile-BWkiff8G.js";import"./X-CQq_1twc.js";import"./tooltip-Cfe7K1Wf.js";import"./use-mcp-client-BhwsvIVS.js";import"./auth-CT66LXeD.js";import"./studio-tools-CMGrpbwo.js";import"./hooks-BAhswesL.js";import"./decopilot-sse-pool-ZSJ8gdM5.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./alert-dialog-CJ86orwZ.js";import"./dropdown-menu-BCoimvOX.js";import"./Check-DXck-8sV.js";import"./ChevronRight-C2E5Dp54.js";import"./Circle-BsSfrq3e.js";import"./Stars02-XI_d0UtF.js";import"./DotsVertical-CF_wSve9.js";import"./Trash01-LoLcmAxw.js";import"./agent-icon-CUA9P-jc.js";import"./AlertCircle-Ct_trIMg.js";import"./UserPlus01-D3Z-h9xL.js";import"./Tool01-Cob0Vw_0.js";import"./ArrowUp-B82j0m1n.js";import"./Settings02-C0J3RccK.js";import"./Tool02-DXqnzmcu.js";import"./XCircle-ASq_08UK.js";import"./ArrowUpRight-Bs0BPetC.js";import"./TrendUp01-B3bGMiCS.js";import"./ZapSquare-CJb5VJO8.js";import"./Users03-DXSIuYIP.js";import"./CheckCircle-S9jWn5Mh.js";import"./ChevronDown-CLM1j2jp.js";import"./ChevronUp-BeHashnH.js";import"./Copy01-DpaC4fYW.js";import"./ZoomOut-D6w1kwx5.js";import"./Globe01-BIR5236w.js";import"./Eye-C-SV3lvP.js";import"./FilterLines-CwURjVGJ.js";import"./Flag01-Dvft4iTD.js";import"./Star01-DRz1zPRR.js";import"./Globe04-iZSw58kd.js";import"./SwitchHorizontal01-Bb2rm5VX.js";import"./HardDrive-5OBzO_Ky.js";import"./Key01-7lp-E5Gc.js";import"./LinkExternal01-CUjeXN47.js";import"./List-BEh5bEKM.js";import"./Monitor01-B7wjMyMa.js";import"./Sun-DgguBwdj.js";import"./Package-B0UrtPIN.js";import"./Palette-zbGC5Dmm.js";import"./Play-Bz0A3Y5e.js";import"./SearchLg-Ds17lwee.js";import"./Shield01-Ce0QsQf7.js";import"./Stars01-D9poRNZc.js";import"./Upload01-By7jF-FG.js";import"./User01-DN2LKLDR.js";import"./Users01-CYM1Paj5.js";import"./XClose-D892yOuU.js";import"./use-collections-BTyUL9Wy.js";import"./use-capability-CFL9CoDX.js";import"./access-gate-Cte8vird.js";import"./capability-load-error-ChIN_BDy.js";function K(){const t=B.c(16),{org:i}=L(),{data:w}=O(void 0),u=w===void 0?[]:w,R=H(),k=V(),d=T(),[f,E]=$.useState(""),g=f.toLowerCase(),y=new Map(R.map(Q)),C=u.filter(e=>{if(!g||e.name.toLowerCase().includes(g))return!0;if(e.virtual_mcp_id){const a=y.get(e.virtual_mcp_id);if(a&&a.title.toLowerCase().includes(g))return!0}return!1}),P=(e,a)=>{const A=a&&y.has(a)?a:G(i.id);N("automations_list_row_clicked",{automation_id:e,agent_id:A,source:"settings_automations"}),k(A,{search:{main:"automation:"+e}})};let n;t[0]!==d||t[1]!==i.slug?(n=()=>{N("automations_empty_state_browse_agents_clicked"),d({to:"/$org/settings/agents",params:{org:i.slug}})},t[0]=d,t[1]=i.slug,t[2]=n):n=t[2];const z=n,x=l,h=l,j=l;let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(l.Title,{children:"Automations"}),t[3]=p):p=t[3];const _=u.length>0&&o.jsx(D,{value:f,onChange:E,placeholder:"Search automations...",className:"w-full md:w-[375px]"});let r;t[4]!==_?(r=o.jsxs("div",{className:"flex flex-col gap-6",children:[p,_]}),t[4]=_,t[5]=r):r=t[5];const v=u.length===0?o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(b,{image:o.jsx(S,{size:48,className:"text-muted-foreground"}),title:"No automations yet",description:"Automations are created per agent. Open an agent and add one from its Automations tab.",actions:o.jsxs(M,{size:"sm",onClick:z,children:[o.jsx(q,{size:14}),"Browse agents"]})})}):C.length===0?o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(b,{image:o.jsx(S,{size:48,className:"text-muted-foreground"}),title:"No automations found",description:`No automations match "${f}"`})}):o.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:C.map(e=>o.jsx(F,{automation:e,showAgent:!0,onClick:()=>P(e.id,e.virtual_mcp_id)},e.id))});let s;t[6]!==j.Body||t[7]!==r||t[8]!==v?(s=o.jsxs(j.Body,{children:[r,v]}),t[6]=j.Body,t[7]=r,t[8]=v,t[9]=s):s=t[9];let m;t[10]!==h.Content||t[11]!==s?(m=o.jsx(h.Content,{children:s}),t[10]=h.Content,t[11]=s,t[12]=m):m=t[12];let c;return t[13]!==x||t[14]!==m?(c=o.jsx(x,{children:m}),t[13]=x,t[14]=m,t[15]=c):c=t[15],c}function Q(t){return[t.id,t]}function _o(){const t=B.c(1);let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(J,{capability:"automations:manage",area:"automations",children:o.jsx(K,{})}),t[0]=i):i=t[0],i}export{_o as default};
@@ -1,2 +0,0 @@
1
- import{c as Z,r as u,j as r,i as se,B as he,d$ as St,aO as Mt,aU as ie,e0 as Dt,e1 as Rt,e2 as Pt,e3 as Et,bO as kt,e4 as Tt,e5 as Ve,aQ as Ot,e6 as At,e7 as Lt,e8 as It,e9 as Ft,ea as $t,eb as _t,ec as zt,ed as Wt,ee as Gt,l as ae,n as Kt,t as W,K as Fe}from"./index-B5v4NEW3.js";import{F as Bt,l as Ut}from"./index-BqP8n8ZB.js";import{d as Vt,ay as qt,az as Qt,aA as ue,aB as Ht,a7 as $e}from"./agent-icon-CUA9P-jc.js";import{a as Xt}from"./Tool01-Cob0Vw_0.js";import{s as Yt}from"./XClose-D892yOuU.js";import{A as Jt}from"./automation-runs-_Se0pK9p.js";import{b as _e,T as ze,a as We}from"./tooltip-Cfe7K1Wf.js";import{f as Zt,a as en,b as tn,c as nn,d as rn,e as on,A as sn,g as an}from"./alert-dialog-CJ86orwZ.js";import{b as ln}from"./chat-context-CyccsWfT.js";import{u as cn}from"./shell-layout-DLAZV0gK.js";import{s as fe,a as Ge,f as dn}from"./index-zMGhLGpG.js";import{a as un,h as fn,D as mn,c as pn,d as xn,e as hn}from"./dialog-Zrgg9dlk.js";import{I as Ke}from"./input-Ch5gyTpF.js";import{t as gn}from"./ChevronDown-CLM1j2jp.js";import{i as vn}from"./ChevronRight-C2E5Dp54.js";import{a as yn}from"./ZoomOut-D6w1kwx5.js";import{E as Cn,v as Be,w as Ce,x as wn,y as bn,z as jn,A as U,C as me,g as we,D as be,G as Nn,I as Sn,J as je,K as pe,M as Ne,N as Mn,O as Dn}from"./index-DBNT2eWA.js";import"./AlertCircle-Ct_trIMg.js";import"./UserPlus01-D3Z-h9xL.js";import"./ArrowUp-B82j0m1n.js";import"./Settings02-C0J3RccK.js";import"./Tool02-DXqnzmcu.js";import"./XCircle-ASq_08UK.js";import"./ArrowUpRight-Bs0BPetC.js";import"./TrendUp01-B3bGMiCS.js";import"./ZapSquare-CJb5VJO8.js";import"./Users03-DXSIuYIP.js";import"./CheckCircle-S9jWn5Mh.js";import"./Check-DXck-8sV.js";import"./ChevronUp-BeHashnH.js";import"./Circle-BsSfrq3e.js";import"./Stars02-XI_d0UtF.js";import"./Copy01-DpaC4fYW.js";import"./DotsVertical-CF_wSve9.js";import"./Globe01-BIR5236w.js";import"./Eye-C-SV3lvP.js";import"./FilterLines-CwURjVGJ.js";import"./Flag01-Dvft4iTD.js";import"./Star01-DRz1zPRR.js";import"./Globe04-iZSw58kd.js";import"./SwitchHorizontal01-Bb2rm5VX.js";import"./HardDrive-5OBzO_Ky.js";import"./Key01-7lp-E5Gc.js";import"./LayoutLeft-HNJhsqgp.js";import"./LinkExternal01-CUjeXN47.js";import"./List-BEh5bEKM.js";import"./Monitor01-B7wjMyMa.js";import"./Sun-DgguBwdj.js";import"./Package-B0UrtPIN.js";import"./Palette-zbGC5Dmm.js";import"./Play-Bz0A3Y5e.js";import"./Plus--M9dcPMO.js";import"./SearchLg-Ds17lwee.js";import"./SearchMd-gGSITpAR.js";import"./Shield01-Ce0QsQf7.js";import"./Stars01-D9poRNZc.js";import"./Trash01-LoLcmAxw.js";import"./Upload01-By7jF-FG.js";import"./User01-DN2LKLDR.js";import"./Users01-CYM1Paj5.js";import"./X-CQq_1twc.js";import"./Zap-Dj5WEZOq.js";import"./select-Bm_prz4e.js";import"./useInfiniteQuery-CRypCc_i.js";import"./use-infinite-scroll-CubS4jP5.js";import"./use-connection-_0QRydbo.js";import"./use-collections-BTyUL9Wy.js";import"./use-mcp-client-BhwsvIVS.js";import"./constants-D_FQAPnt.js";import"./auth-CT66LXeD.js";import"./use-virtual-mcp-JuKjy5YI.js";import"./card-Co4NmtE1.js";import"./sidebar-DS0o2bkP.js";import"./use-mobile-BWkiff8G.js";import"./table-B7260dBr.js";import"./empty-state-CWZTKjMO.js";import"./use-members-Bo1ap_nJ.js";import"./use-org-auth-client-Dht_Ty6R.js";import"./use-clock-tick-Brtfp44X.js";import"./use-automations-DoGOQL-D.js";import"./studio-tools-CMGrpbwo.js";import"./useSuspenseInfiniteQuery-yV-mPSY_.js";import"./avatar-b0UOFm48.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-WkBdr4yo.js";import"./file-type-icon-9V1QXJ8L.js";import"./tab-id-BijBBRwE.js";import"./monaco-editor-D01rdtwj.js";import"./delay-CnY5UFtP.js";import"./index-19zxQHGF.js";import"./hooks-BAhswesL.js";import"./decopilot-sse-pool-ZSJ8gdM5.js";import"./backoff-CrEUbyZT.js";import"./integration-icon-CgQElrXW.js";import"./use-navigate-to-agent-DcKHP-Dx.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CRrsPyiX.js";import"./form-DxNXQDnh.js";import"./label-wXoTBNOj.js";import"./autosend-C-Afy-mX.js";import"./use-ai-providers-DGlVmIGh.js";import"./use-decopilot-events-DJgHT7u7.js";import"./use-organization-settings-D22Exu1R.js";import"./required-auth-layout-D_MW2r6y.js";import"./use-org-sso-CxIr0uRn.js";import"./drawer-BwuvaJKk.js";import"./collection-search-CuJVF_4n.js";import"./tabs-_bz-Pk3v.js";import"./toggle-group-BuIed1_M.js";import"./use-deco-credits-DdaT8kKr.js";import"./extract-connection-data-DKUEpjtm.js";import"./connection-card-CSc4h430.js";import"./use-registry-connections-7qDPmY1B.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-DDDctY6q.js";import"./connection-form-helpers-C4JWE9qO.js";import"./authenticate-and-persist-oauth-Dye31GIc.js";import"./mcp-oauth-CCKUAqNW.js";import"./collection-tabs-D2dxWVhJ.js";import"./badge-xfs1ynpW.js";import"./connect-desktop-dialog-H-XQO8xQ.js";import"./select-model-BdX9lqWe.js";import"./checkbox-Cp4HiBAg.js";import"./skeleton-DDLwtl4q.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DJLAq8qW.js";import"./command-CMAhy6e5.js";import"./index-B41Bwftt.js";import"./popover-stw0Mg4Y.js";import"./dropdown-menu-BCoimvOX.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ba0cRZoN.js";import"./toolbar-D4hdPbh0.js";import"./use-mcp-tools-BQDntLa2.js";import"./use-capability-CFL9CoDX.js";import"./switch-Dc6TbZCo.js";import"./use-debounced-autosave-DjRMW0Ri.js";import"./index-DhupVI1X.js";import"./search-input-BZmNJ1mS.js";import"./use-mcp-auth-status-unQW9A6B.js";import"./github-repo-picker-CAzdUaIn.js";import"./use-debounced-value-D9mS5nMY.js";import"./provision-repo-scoped-github-connection-CB4ICKHq.js";import"./use-secrets-B2_i6JKu.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-BPrxC_5K.js";import"./index-DOtxc4qw.js";import"./get-initials-D-f_fDFw.js";import"./calendar-QS-mHt0z.js";import"./toolbar-icon-button-DL5-P742.js";import"./use-file-configs-DsNhSUJA.js";import"./automation-list-row-DQcu9s-J.js";const Rn={"new-file":{title:"New File",description:"Enter a name for the new file.",submit:"Create",placeholder:"filename.ts"},"new-folder":{title:"New Folder",description:"Enter a name for the new folder.",submit:"Create",placeholder:"folder-name"},rename:{title:"Rename",description:"Enter a new name for this item.",submit:"Rename",placeholder:"new-name"}};function Pn(s){const e=Z.c(51),{open:i,mode:a,initialName:c,parentLabel:m,isPending:x,onSubmit:p,onOpenChange:g}=s,M=c===void 0?"":c,d=x===void 0?!1:x,[h,v]=u.useState(M),[B,V]=u.useState(i),y=Rn[a];i!==B&&(V(i),i&&v(M));let F;e[0]!==d||e[1]!==g?(F=_=>{!_&&!d&&g(!1)},e[0]=d,e[1]=g,e[2]=F):F=e[2];const H=F;let q;e[3]!==d||e[4]!==h||e[5]!==p?(q=async _=>{_.preventDefault();const K=h.trim();!K||d||await p(K)},e[3]=d,e[4]=h,e[5]=p,e[6]=q):q=e[6];const Q=q;let $;e[7]!==y.title?($=r.jsx(un,{children:y.title}),e[7]=y.title,e[8]=$):$=e[8];let T;e[9]!==y.description?(T=r.jsx(fn,{children:y.description}),e[9]=y.description,e[10]=T):T=e[10];let G;e[11]!==$||e[12]!==T?(G=r.jsxs(mn,{children:[$,T]}),e[11]=$,e[12]=T,e[13]=G):G=e[13];let O;e[14]!==m?(O=m&&r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Location"}),r.jsx(Ke,{value:m,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[14]=m,e[15]=O):O=e[15];let A;e[16]===Symbol.for("react.memo_cache_sentinel")?(A=r.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[16]=A):A=e[16];let R;e[17]===Symbol.for("react.memo_cache_sentinel")?(R=_=>v(_.target.value),e[17]=R):R=e[17];let P;e[18]!==y.placeholder||e[19]!==d||e[20]!==h?(P=r.jsxs("div",{className:"space-y-1.5",children:[A,r.jsx(Ke,{id:"file-explorer-name",value:h,onChange:R,placeholder:y.placeholder,autoFocus:!0,disabled:d})]}),e[18]=y.placeholder,e[19]=d,e[20]=h,e[21]=P):P=e[21];let j;e[22]!==P||e[23]!==O?(j=r.jsxs("div",{className:"space-y-4 py-4",children:[O,P]}),e[22]=P,e[23]=O,e[24]=j):j=e[24];let N;e[25]!==g?(N=()=>g(!1),e[25]=g,e[26]=N):N=e[26];let E;e[27]!==d||e[28]!==N?(E=r.jsx(he,{type:"button",variant:"outline",onClick:N,disabled:d,children:"Cancel"}),e[27]=d,e[28]=N,e[29]=E):E=e[29];let k;e[30]!==d||e[31]!==h?(k=!h.trim()||d,e[30]=d,e[31]=h,e[32]=k):k=e[32];let C;e[33]!==y.submit||e[34]!==d?(C=d?r.jsxs(r.Fragment,{children:[r.jsx(se,{size:14,className:"animate-spin"}),"Saving…"]}):y.submit,e[33]=y.submit,e[34]=d,e[35]=C):C=e[35];let L;e[36]!==k||e[37]!==C?(L=r.jsx(he,{type:"submit",disabled:k,children:C}),e[36]=k,e[37]=C,e[38]=L):L=e[38];let w;e[39]!==E||e[40]!==L?(w=r.jsxs(pn,{children:[E,L]}),e[39]=E,e[40]=L,e[41]=w):w=e[41];let S;e[42]!==Q||e[43]!==j||e[44]!==w||e[45]!==G?(S=r.jsx(xn,{className:"sm:max-w-md",children:r.jsxs("form",{onSubmit:Q,children:[G,j,w]})}),e[42]=Q,e[43]=j,e[44]=w,e[45]=G,e[46]=S):S=e[46];let z;return e[47]!==H||e[48]!==i||e[49]!==S?(z=r.jsx(hn,{open:i,onOpenChange:H,children:S}),e[47]=H,e[48]=i,e[49]=S,e[50]=z):z=e[50],z}var Se="ContextMenu",[En]=Ot(Se,[Ve]),I=Ve(),[kn,qe]=En(Se),Qe=s=>{const{__scopeContextMenu:e,children:i,onOpenChange:a,dir:c,modal:m=!0}=s,[x,p]=u.useState(!1),g=I(e),M=kt(a),d=u.useCallback(h=>{p(h),M(h)},[M]);return r.jsx(kn,{scope:e,open:x,onOpenChange:d,modal:m,children:r.jsx(Tt,{...g,dir:c,open:x,onOpenChange:d,modal:m,children:i})})};Qe.displayName=Se;var He="ContextMenuTrigger",Xe=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,disabled:a=!1,...c}=s,m=qe(He,i),x=I(i),p=u.useRef({x:0,y:0}),g=u.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...p.current})}),M=u.useRef(0),d=u.useCallback(()=>window.clearTimeout(M.current),[]),h=v=>{p.current={x:v.clientX,y:v.clientY},m.onOpenChange(!0)};return u.useEffect(()=>d,[d]),u.useEffect(()=>{a&&d()},[a,d]),r.jsxs(r.Fragment,{children:[r.jsx(St,{...x,virtualRef:g}),r.jsx(Mt.span,{"data-state":m.open?"open":"closed","data-disabled":a?"":void 0,...c,ref:e,style:{WebkitTouchCallout:"none",...s.style},onContextMenu:a?s.onContextMenu:ie(s.onContextMenu,v=>{d(),h(v),v.preventDefault()}),onPointerDown:a?s.onPointerDown:ie(s.onPointerDown,xe(v=>{d(),M.current=window.setTimeout(()=>h(v),700)})),onPointerMove:a?s.onPointerMove:ie(s.onPointerMove,xe(d)),onPointerCancel:a?s.onPointerCancel:ie(s.onPointerCancel,xe(d)),onPointerUp:a?s.onPointerUp:ie(s.onPointerUp,xe(d))})]})});Xe.displayName=He;var Tn="ContextMenuPortal",Ye=s=>{const{__scopeContextMenu:e,...i}=s,a=I(e);return r.jsx(Pt,{...a,...i})};Ye.displayName=Tn;var Je="ContextMenuContent",Ze=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=qe(Je,i),m=I(i),x=u.useRef(!1);return r.jsx(Et,{...m,...a,ref:e,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:p=>{s.onCloseAutoFocus?.(p),!p.defaultPrevented&&x.current&&p.preventDefault(),x.current=!1},onInteractOutside:p=>{s.onInteractOutside?.(p),!p.defaultPrevented&&!c.modal&&(x.current=!0)},style:{...s.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ze.displayName=Je;var On="ContextMenuGroup",An=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=I(i);return r.jsx(At,{...c,...a,ref:e})});An.displayName=On;var Ln="ContextMenuLabel",In=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=I(i);return r.jsx(Lt,{...c,...a,ref:e})});In.displayName=Ln;var Fn="ContextMenuItem",et=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=I(i);return r.jsx(Dt,{...c,...a,ref:e})});et.displayName=Fn;var $n="ContextMenuCheckboxItem",_n=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=I(i);return r.jsx(It,{...c,...a,ref:e})});_n.displayName=$n;var zn="ContextMenuRadioGroup",Wn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=I(i);return r.jsx(Ft,{...c,...a,ref:e})});Wn.displayName=zn;var Gn="ContextMenuRadioItem",Kn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=I(i);return r.jsx($t,{...c,...a,ref:e})});Kn.displayName=Gn;var Bn="ContextMenuItemIndicator",Un=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=I(i);return r.jsx(_t,{...c,...a,ref:e})});Un.displayName=Bn;var Vn="ContextMenuSeparator",tt=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=I(i);return r.jsx(Rt,{...c,...a,ref:e})});tt.displayName=Vn;var qn="ContextMenuArrow",Qn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=I(i);return r.jsx(zt,{...c,...a,ref:e})});Qn.displayName=qn;var Hn="ContextMenuSubTrigger",Xn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=I(i);return r.jsx(Wt,{...c,...a,ref:e})});Xn.displayName=Hn;var Yn="ContextMenuSubContent",Jn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=I(i);return r.jsx(Gt,{...c,...a,ref:e,style:{...s.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Jn.displayName=Yn;function xe(s){return e=>e.pointerType!=="mouse"?s(e):void 0}var Zn=Qe,er=Xe,tr=Ye,nr=Ze,rr=et,or=tt;function ir(s){const e=Z.c(4);let i;e[0]!==s?({...i}=s,e[0]=s,e[1]=i):i=e[1];let a;return e[2]!==i?(a=r.jsx(Zn,{"data-slot":"context-menu",...i}),e[2]=i,e[3]=a):a=e[3],a}function sr(s){const e=Z.c(4);let i;e[0]!==s?({...i}=s,e[0]=s,e[1]=i):i=e[1];let a;return e[2]!==i?(a=r.jsx(er,{"data-slot":"context-menu-trigger",...i}),e[2]=i,e[3]=a):a=e[3],a}function ar(s){const e=Z.c(8);let i,a;e[0]!==s?({className:i,...a}=s,e[0]=s,e[1]=i,e[2]=a):(i=e[1],a=e[2]);let c;e[3]!==i?(c=ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",i),e[3]=i,e[4]=c):c=e[4];let m;return e[5]!==a||e[6]!==c?(m=r.jsx(tr,{children:r.jsx(nr,{"data-slot":"context-menu-content",className:c,...a})}),e[5]=a,e[6]=c,e[7]=m):m=e[7],m}function te(s){const e=Z.c(12);let i,a,c,m;e[0]!==s?({className:i,inset:a,variant:m,...c}=s,e[0]=s,e[1]=i,e[2]=a,e[3]=c,e[4]=m):(i=e[1],a=e[2],c=e[3],m=e[4]);const x=m===void 0?"default":m;let p;e[5]!==i?(p=ae("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),e[5]=i,e[6]=p):p=e[6];let g;return e[7]!==a||e[8]!==c||e[9]!==p||e[10]!==x?(g=r.jsx(rr,{"data-slot":"context-menu-item","data-inset":a,"data-variant":x,className:p,...c}),e[7]=a,e[8]=c,e[9]=p,e[10]=x,e[11]=g):g=e[11],g}function Ue(s){const e=Z.c(8);let i,a;e[0]!==s?({className:i,...a}=s,e[0]=s,e[1]=i,e[2]=a):(i=e[1],a=e[2]);let c;e[3]!==i?(c=ae("bg-border -mx-1 my-1 h-px",i),e[3]=i,e[4]=c):c=e[4];let m;return e[5]!==a||e[6]!==c?(m=r.jsx(or,{"data-slot":"context-menu-separator",className:c,...a}),e[5]=a,e[6]=c,e[7]=m):m=e[7],m}const lr="#d9a441";function cr(s){const e=Z.c(45),{node:i,depth:a,isExpanded:c,isSelected:m,isLoading:x,fileVisual:p,onOpen:g,onSelect:M,onNewFile:d,onNewFolder:h,onCopyPath:v,onCopyRelativePath:B,onRename:V,onDelete:y}=s,F=x===void 0?!1:x,H=i.kind==="directory",{Icon:q,color:Q}=p,$=m&&"bg-accent";let T;e[0]!==$?(T=ae("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",$),e[0]=$,e[1]=T):T=e[1];const G=`${a*14+8}px`;let O;e[2]!==G?(O={paddingLeft:G},e[2]=G,e[3]=O):O=e[3];let A;e[4]!==g||e[5]!==M?(A=()=>{M(),g()},e[4]=g,e[5]=M,e[6]=A):A=e[6];let R;e[7]!==q||e[8]!==Q||e[9]!==H||e[10]!==c||e[11]!==F?(R=H?r.jsxs(r.Fragment,{children:[F?r.jsx(se,{size:14,className:"shrink-0 animate-spin text-muted-foreground"}):c?r.jsx(gn,{size:14,className:"shrink-0 text-muted-foreground"}):r.jsx(vn,{size:14,className:"shrink-0 text-muted-foreground"}),r.jsx(yn,{size:16,className:"shrink-0",style:{color:lr}})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"w-3.5 shrink-0"}),r.jsx(q,{size:16,className:"shrink-0",style:{color:Q}})]}),e[7]=q,e[8]=Q,e[9]=H,e[10]=c,e[11]=F,e[12]=R):R=e[12];let P;e[13]!==i.name?(P=r.jsx("span",{className:"truncate",children:i.name}),e[13]=i.name,e[14]=P):P=e[14];let j;e[15]!==T||e[16]!==O||e[17]!==A||e[18]!==R||e[19]!==P?(j=r.jsx(sr,{asChild:!0,children:r.jsxs("button",{type:"button",className:T,style:O,onClick:A,children:[R,P]})}),e[15]=T,e[16]=O,e[17]=A,e[18]=R,e[19]=P,e[20]=j):j=e[20];let N;e[21]!==d?(N=r.jsx(te,{onSelect:d,children:"New File"}),e[21]=d,e[22]=N):N=e[22];let E;e[23]!==h?(E=r.jsx(te,{onSelect:h,children:"New Folder"}),e[23]=h,e[24]=E):E=e[24];let k;e[25]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(Ue,{}),e[25]=k):k=e[25];let C;e[26]!==v?(C=r.jsx(te,{onSelect:v,children:"Copy Path"}),e[26]=v,e[27]=C):C=e[27];let L;e[28]!==B?(L=r.jsx(te,{onSelect:B,children:"Copy Relative Path"}),e[28]=B,e[29]=L):L=e[29];let w;e[30]===Symbol.for("react.memo_cache_sentinel")?(w=r.jsx(Ue,{}),e[30]=w):w=e[30];let S;e[31]!==V?(S=r.jsx(te,{onSelect:V,children:"Rename"}),e[31]=V,e[32]=S):S=e[32];let z;e[33]!==y?(z=r.jsx(te,{variant:"destructive",onSelect:y,children:"Delete"}),e[33]=y,e[34]=z):z=e[34];let _;e[35]!==N||e[36]!==E||e[37]!==C||e[38]!==L||e[39]!==S||e[40]!==z?(_=r.jsxs(ar,{className:"w-52",children:[N,E,k,C,L,w,S,z]}),e[35]=N,e[36]=E,e[37]=C,e[38]=L,e[39]=S,e[40]=z,e[41]=_):_=e[41];let K;return e[42]!==_||e[43]!==j?(K=r.jsxs(ir,{children:[j,_]}),e[42]=_,e[43]=j,e[44]=K):K=e[44],K}Ut.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function dr(s,e,i,a){return`/api/${s}/sandbox/${encodeURIComponent(e)}/${encodeURIComponent(i)}/${a}`}function ur(s){const e=U(s);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}const fr="#94a3b8";function mr(s){const e=s.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:ue,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:ue,color:"#d9a441"}:e.endsWith(".json")?{Icon:Ht,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:ue,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:ue,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:Xt,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:$e,color:"#64748b"}:{Icon:$e,color:fr}}function as({orgSlug:s,virtualMcpId:e,branch:i,openPath:a}){const[c,m]=u.useState({files:[],directories:[],truncated:!1}),{files:x,directories:p}=c,[g,M]=u.useState(new Set),[d,h]=u.useState(null),[v,B]=u.useState(null),[V,y]=u.useState([]),[F,H]=u.useState(""),[q,Q]=u.useState(!1),[$,T]=u.useState(!1),[,G]=u.useState(new Set),[O,A]=u.useState(new Set),R=u.useRef(0),P=u.useRef(null),j=u.useRef(new Set),N=u.useRef(new Map);function E(t){G(n=>{const o=typeof t=="function"?t(n):t;return j.current=o,o})}const[k,C]=u.useState(new Map),L=u.useRef(null),[w,S]=u.useState(null),{sendMessage:z}=ln(),{openSidePanel:_}=cn(),K=Kt(),[D,X]=u.useState(null),[Y,ge]=u.useState(null),[ne,le]=u.useState(!1);async function J(t,n){const o=await fetch(dr(s,e,i,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!o.ok){const l=await o.json().catch(()=>({}));throw new Error(l.error??`Request failed (${o.status})`)}return o.json()}async function ce(){K.invalidateQueries({queryKey:Ge(s,e,i)})}function Me(t,n){navigator.clipboard.writeText(n).then(()=>W.success(`${t} copied`),()=>W.error(`Failed to copy ${t.toLowerCase()}`))}function nt(t){const n=Mn(t);if(!n)return;const o=`${s}/${e}/${i}`;K.setQueryData(Fe.decofile(o),l=>{if(!l)return l;const{[n]:f,...b}=l;return b}),K.invalidateQueries({queryKey:Fe.liveMeta(s,e,i)})}function rt(t){const n=t.kind==="file"?[t.path]:x.filter(o=>o.startsWith(".deco/blocks/")).map(o=>me(o)).filter(o=>o===t.path||o.startsWith(`${t.path}/`));for(const o of n)nt(o)}function ot(t){const n=me(t);return V.filter(o=>{if(o!==n&&!o.startsWith(`${n}/`))return!1;const l=k.get(o);return!!(l?.loaded&&l.editorValue!==l.savedContent)})}function De(t){y(n=>n.map(o=>t(o)).filter(o=>o!==null)),h(n=>n&&t(n)),C(n=>{const o=new Map;for(const[l,f]of n){const b=t(l);b&&o.set(b,f)}return o}),B(n=>{if(!n)return n;const o=t(n.path);return o?o===n.path?n:{...n,path:o,name:o.split("/").pop()??o}:null})}function it(t){const n=me(t);B(o=>o&&(o.path===n||o.path.startsWith(`${n}/`)?null:o)),De(o=>o===n||o.startsWith(`${n}/`)?null:o)}async function st(t){if(!D)return;const n=pe(D.parentDir,t);if(Ne(n,x,p))throw new Error(`"${t}" already exists`);await J("write",{path:U(n),content:""}),await re(),await ce(),X(null),ve(n)}async function at(t){if(!D)return;const n=pe(D.parentDir,t);if(Ne(n,x,p))throw new Error(`"${t}" already exists`);const o=U(n);await J("mkdir",{path:o}),m(l=>({...l,directories:l.directories.includes(o)?l.directories:[...l.directories,o]})),await re(),await ce(),X(null),M(l=>{const f=new Set(l);for(const b of Ce(n))f.add(b);return f.add(n),f}),B({name:t,path:n,kind:"directory",children:[]})}async function lt(t){if(!D)return;const n=D.node.path,o=je(n),l=pe(o,t);if(l===n){X(null);return}if(Ne(l,x,p))throw new Error(`"${t}" already exists`);await J("rename",{from:U(n),to:U(l)}),De(f=>f===n?l:f.startsWith(`${n}/`)?pe(l,f.slice(n.length+1)):f),await re(),await ce(),X(null)}async function ct(t){le(!0);try{await J("unlink",{path:U(t.path),recursive:t.kind==="directory"}),rt(t),it(t.path),await re(),await ce(),ge(null),W.success(`Deleted "${t.name}"`)}catch(n){W.error(n instanceof Error?n.message:"Delete failed")}finally{le(!1)}}async function dt(t){const n=Sn(t);if(n){W.error(n);return}le(!0);try{D?.mode==="new-file"?(await st(t),W.success(`Created "${t}"`)):D?.mode==="new-folder"?(await at(t),W.success(`Created folder "${t}"`)):D?.mode==="rename"&&(await lt(t),W.success(`Renamed to "${t}"`))}catch(o){W.error(o instanceof Error?o.message:"Operation failed")}finally{le(!1)}}const Re=u.useRef(!1);Re.current||(Re.current=!0,P.current=re());const[ut,ft]=u.useState(null);if(a&&a!==ut){ft(a);const t=a;queueMicrotask(()=>{ur(t)&&ve(t).catch(n=>{W.error(n instanceof Error?n.message:"Failed to open file")})})}async function Pe(t){const n=await J("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Ee(t,n,o){if(o!==R.current)return!1;let l=!1;return m(f=>{const b=n?Dn(f.files,f.directories,t,f.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return l=!!b.truncated,{files:b.files,directories:b.directories,truncated:l}}),l&&W.warning("File list truncated — some files may be hidden"),l}async function mt(t){const n=N.current.get(t);if(n)return n;const o=R.current,l=(async()=>{const f=await Pe({pattern:"**/*",path:U(t),limit:Be}),b=Ee(f,!0,o);return!b&&o===R.current&&E(oe=>{const de=new Set(oe);return de.add(t),de}),b})();N.current.set(t,l);try{return await l}finally{N.current.delete(t)}}async function ke(t){if(!be(t,j.current))return!1;A(n=>new Set(n).add(t));try{return await mt(t)}finally{A(n=>{const o=new Set(n);return o.delete(t),o})}}async function pt(t){const n=new Set(j.current);for(const o of Ce(t)){if(!be(o,n))continue;if(await ke(o))throw new Error("Folder listing truncated — expand again to load more");n.add(o)}}async function re(){const t=++R.current;N.current.clear(),Q(!0),E(new Set),M(new Set),A(new Set);try{const n=await Pe({pattern:"**/*",limit:Be,maxDepth:Cn});Ee(n,!1,t),T(!0)}catch{$&&W.error("Failed to refresh file tree")}finally{Q(!1)}}async function Te(t){if(!k.get(t)?.loaded){C(o=>{const l=new Map(o);return l.set(t,{savedContent:"",editorValue:"",loaded:!1}),l});try{const o=await J("read",{path:U(t),full:!0}),l=Nn(o.content??"");C(f=>{const b=new Map(f);return b.set(t,{savedContent:l,editorValue:l,loaded:!0}),b})}catch{}}}async function xt(t,n){try{await J("write",{path:U(t),content:n}),fe("file saved via sandbox /write",{path:t}),K.invalidateQueries({queryKey:Ge(s,e,i)});try{const o=await dn(s,e,i);fe("git status after save",o)}catch(o){fe("git status after save failed",{path:t,error:o instanceof Error?o.message:String(o)})}C(o=>{const l=new Map(o),f=l.get(t);return f&&l.set(t,{...f,savedContent:n}),l})}catch(o){fe("file save failed",{path:t,error:o instanceof Error?o.message:String(o)})}}function ht(t){h(t),B({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),S(null),V.includes(t)||y(n=>[...n,t]),Te(t)}function gt(t){y(n=>{const o=n.filter(l=>l!==t);return d===t&&h(o[o.length-1]??null),o}),C(n=>{const o=new Map(n);return o.delete(t),o})}function Oe(t){M(n=>{const o=new Set(n);return o.has(t)?o.delete(t):o.add(t),o})}async function vt(t){if(be(t,j.current))try{if(await ke(t))return}catch(n){W.error(n instanceof Error?n.message:"Failed to load folder");return}Oe(t)}async function yt(t,n){if(n){Oe(t);return}await vt(t)}async function ve(t){await P.current,await pt(t);const n=Ce(t);M(o=>{const l=new Set(o);for(const f of n)l.add(f);return l}),ht(t)}function Ct(){return v?.kind==="directory"?v.path:v?.kind==="file"?je(v.path):d?je(d):"/"}function Ae(t){const n=Ct();X({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const wt=wn(x,p),Le=bn(wt,g),Ie=F?Le.filter(t=>t.node.name.toLowerCase().includes(F.toLowerCase())):Le,ee=d?k.get(d):null,bt=ee?.loaded&&ee.editorValue!==ee.savedContent,ye=Y?ot(Y.path):[],jt=(t,n)=>{L.current=t,t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!d)return;const o=t.getValue();await xt(d,o)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const o=t.getSelection(),l=t.getModel();if(!o||!l||!d)return;const f=l.getValueInRange(o);S({filePath:d,lineStart:o.startLineNumber,lineEnd:o.endLineNumber,selectedCode:f})})};function Nt(t){if(!w)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${w.filePath}\``,`**Lines:** ${w.lineStart}–${w.lineEnd}`];if(w.selectedCode){const o=we(w.filePath),l=w.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+o,l,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),_("chat"),z({parts:[{type:"text",text:n.join(`
2
- `)}]}),S(null)}return q&&!$?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(se,{size:20,className:"animate-spin text-muted-foreground"})}):r.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[r.jsxs("div",{className:"w-64 shrink-0 border-r flex flex-col overflow-hidden",children:[r.jsxs("div",{className:"flex items-center gap-1 p-2 border-b",children:[r.jsxs("div",{className:"relative min-w-0 flex-1",children:[r.jsx(Vt,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),r.jsx("input",{type:"text",value:F,onChange:t=>H(t.target.value),placeholder:"Search files...","aria-label":"Search files",className:"w-full rounded-md border border-input bg-transparent pl-7 pr-2 py-1.5 text-xs outline-none placeholder:text-muted-foreground focus:ring-1 focus:ring-ring"})]}),r.jsxs(_e,{children:[r.jsx(ze,{asChild:!0,children:r.jsx(he,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New file",onClick:()=>Ae("new-file"),children:r.jsx(qt,{size:14})})}),r.jsx(We,{side:"bottom",children:"New file"})]}),r.jsxs(_e,{children:[r.jsx(ze,{asChild:!0,children:r.jsx(he,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New folder",onClick:()=>Ae("new-folder"),children:r.jsx(Qt,{size:14})})}),r.jsx(We,{side:"bottom",children:"New folder"})]})]}),r.jsx(Jt,{className:"flex-1",children:r.jsxs("div",{className:"py-1",children:[Ie.map(t=>{const{node:n,depth:o}=t,l=n.kind==="directory",f=g.has(n.path),b=v?.path===n.path,oe=jn(n.path,n.kind),de=l&&O.has(n.path);return r.jsx(cr,{node:n,depth:o,isExpanded:f,isSelected:b,isLoading:de,fileVisual:mr(n.name),onSelect:()=>B(n),onOpen:()=>{l?yt(n.path,f):ve(n.path)},onNewFile:()=>X({mode:"new-file",node:n,parentDir:oe}),onNewFolder:()=>X({mode:"new-folder",node:n,parentDir:oe}),onCopyPath:()=>Me("Path",me(n.path)),onCopyRelativePath:()=>Me("Relative path",U(n.path)),onRename:()=>X({mode:"rename",node:n,parentDir:oe}),onDelete:()=>ge(n)},n.path)}),$&&Ie.length===0&&r.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:F?`No files match "${F}"`:"No files found"})]})})]}),r.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[V.length>0&&r.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:V.map(t=>{const n=k.get(t),o=n?.loaded&&n.editorValue!==n.savedContent,l=d===t,f=t.split("/").pop()??t;return r.jsxs("div",{className:ae("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",l?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{h(t),Te(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":l,children:[r.jsx("span",{className:"truncate max-w-32",children:f}),o&&r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),r.jsx("button",{type:"button",className:"ml-1 rounded p-0.5 hover:bg-accent-foreground/10",onClick:b=>{b.stopPropagation(),gt(t)},children:r.jsx(Yt,{size:12})})]},t)})}),w&&r.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 mt-2",style:{width:"360px"},children:r.jsxs("form",{className:"flex w-full items-center gap-1.5 rounded-xl border border-border bg-background/95 px-3 py-1.5 shadow-lg backdrop-blur",onSubmit:t=>{t.preventDefault();const o=t.currentTarget.elements.namedItem("askAiInput");o.value.trim()&&Nt(o.value)},children:[r.jsx("input",{name:"askAiInput",autoFocus:!0,type:"text",placeholder:"Ask the AI...",className:"min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",onKeyDown:t=>{t.stopPropagation(),t.key==="Escape"&&S(null)}}),r.jsx("button",{type:"submit",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-foreground text-background transition-opacity",title:"Send",children:r.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[r.jsx("title",{children:"Send"}),r.jsx("path",{d:"M5 9V1M1 5l4-4 4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),r.jsx("div",{className:"flex-1 overflow-hidden",children:d&&ee?.loaded?r.jsx(Bt,{language:we(d),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:ee.editorValue,path:d,onChange:t=>{const n=d;n&&C(o=>{const l=new Map(o),f=l.get(n);return f&&l.set(n,{...f,editorValue:t??""}),l})},onMount:jt,loading:r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(se,{size:20,className:"animate-spin text-muted-foreground"})}),options:{fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:2,wordWrap:"on",minimap:{enabled:!1},padding:{top:12,bottom:12},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}},d):d&&!ee?.loaded?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(se,{size:20,className:"animate-spin text-muted-foreground"})}):r.jsx("div",{className:"flex items-center justify-center h-full w-full text-sm text-muted-foreground",children:"Select a file to edit"})}),d&&r.jsxs("div",{className:"flex items-center justify-between px-3 py-1 border-t text-[11px] text-muted-foreground shrink-0",children:[r.jsx("span",{className:"truncate",children:d}),r.jsxs("span",{children:[bt?"Modified":"Saved"," ·"," ",we(d)]})]})]}),r.jsx(Pn,{open:D!==null,mode:D?.mode??"new-file",initialName:D?.mode==="rename"?D.node.name:"",parentLabel:D&&D.mode!=="rename"?D.parentDir==="/"?"/":U(D.parentDir):void 0,isPending:ne,onSubmit:dt,onOpenChange:t=>{!t&&!ne&&X(null)}}),r.jsx(Zt,{open:Y!==null,onOpenChange:t=>{!t&&!ne&&ge(null)},children:r.jsxs(en,{children:[r.jsxs(tn,{children:[r.jsxs(nn,{children:["Delete ",Y?.kind==="directory"?"folder":"file","?"]}),r.jsxs(rn,{children:["This will permanently delete"," ",r.jsx("span",{className:"font-mono",children:Y?.name}),Y?.kind==="directory"?" and everything inside it.":".",ye.length>0&&r.jsxs(r.Fragment,{children:[" ",ye.length===1?"One open file has unsaved changes that will be lost.":`${ye.length} open files have unsaved changes that will be lost.`]})]})]}),r.jsxs(on,{children:[r.jsx(sn,{disabled:ne,children:"Cancel"}),r.jsx(an,{disabled:ne||!Y,onClick:t=>{t.preventDefault(),Y&&ct(Y)},children:"Delete"})]})]})})]})}export{as as FileExplorer};
@@ -1 +0,0 @@
1
- import{c as it,r as E,j as e,i as rt}from"./index-B5v4NEW3.js";import{m as mt,o as pt,p as st,q as at}from"./sidebar-DS0o2bkP.js";import{A as nt}from"./automation-runs-_Se0pK9p.js";import{r as lt,u as ct,a as dt,b as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-DVV9UVOY.js";import{r as xt}from"./index-zMGhLGpG.js";import"./LayoutLeft-HNJhsqgp.js";import"./use-mobile-BWkiff8G.js";import"./X-CQq_1twc.js";import"./tooltip-Cfe7K1Wf.js";import"./select-Bm_prz4e.js";import"./Check-DXck-8sV.js";import"./ChevronDown-CLM1j2jp.js";import"./ChevronUp-BeHashnH.js";import"./useInfiniteQuery-CRypCc_i.js";import"./use-infinite-scroll-CubS4jP5.js";import"./use-connection-_0QRydbo.js";import"./use-collections-BTyUL9Wy.js";import"./use-mcp-client-BhwsvIVS.js";import"./constants-D_FQAPnt.js";import"./auth-CT66LXeD.js";import"./use-virtual-mcp-JuKjy5YI.js";import"./card-Co4NmtE1.js";import"./table-B7260dBr.js";import"./empty-state-CWZTKjMO.js";import"./use-members-Bo1ap_nJ.js";import"./use-org-auth-client-Dht_Ty6R.js";import"./use-clock-tick-Brtfp44X.js";import"./AlertCircle-Ct_trIMg.js";import"./CheckCircle-S9jWn5Mh.js";import"./Circle-BsSfrq3e.js";import"./agent-icon-CUA9P-jc.js";import"./UserPlus01-D3Z-h9xL.js";import"./Tool01-Cob0Vw_0.js";import"./ArrowUp-B82j0m1n.js";import"./Settings02-C0J3RccK.js";import"./Tool02-DXqnzmcu.js";import"./XCircle-ASq_08UK.js";import"./ArrowUpRight-Bs0BPetC.js";import"./TrendUp01-B3bGMiCS.js";import"./ZapSquare-CJb5VJO8.js";import"./Users03-DXSIuYIP.js";import"./ChevronRight-C2E5Dp54.js";import"./Stars02-XI_d0UtF.js";import"./Copy01-DpaC4fYW.js";import"./ZoomOut-D6w1kwx5.js";import"./DotsVertical-CF_wSve9.js";import"./Globe01-BIR5236w.js";import"./Eye-C-SV3lvP.js";import"./FilterLines-CwURjVGJ.js";import"./Flag01-Dvft4iTD.js";import"./Star01-DRz1zPRR.js";import"./Globe04-iZSw58kd.js";import"./SwitchHorizontal01-Bb2rm5VX.js";import"./HardDrive-5OBzO_Ky.js";import"./Key01-7lp-E5Gc.js";import"./LinkExternal01-CUjeXN47.js";import"./List-BEh5bEKM.js";import"./Monitor01-B7wjMyMa.js";import"./Sun-DgguBwdj.js";import"./Package-B0UrtPIN.js";import"./Palette-zbGC5Dmm.js";import"./Play-Bz0A3Y5e.js";import"./Plus--M9dcPMO.js";import"./SearchLg-Ds17lwee.js";import"./SearchMd-gGSITpAR.js";import"./Shield01-Ce0QsQf7.js";import"./Stars01-D9poRNZc.js";import"./Trash01-LoLcmAxw.js";import"./Upload01-By7jF-FG.js";import"./User01-DN2LKLDR.js";import"./Users01-CYM1Paj5.js";import"./XClose-D892yOuU.js";import"./Zap-Dj5WEZOq.js";import"./use-automations-DoGOQL-D.js";import"./studio-tools-CMGrpbwo.js";import"./useSuspenseInfiniteQuery-yV-mPSY_.js";import"./avatar-b0UOFm48.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-WkBdr4yo.js";import"./file-type-icon-9V1QXJ8L.js";import"./dialog-Zrgg9dlk.js";import"./tab-id-BijBBRwE.js";import"./monaco-editor-D01rdtwj.js";import"./index-BqP8n8ZB.js";import"./chat-context-CyccsWfT.js";import"./autosend-C-Afy-mX.js";import"./hooks-BAhswesL.js";import"./decopilot-sse-pool-ZSJ8gdM5.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-DGlVmIGh.js";import"./use-decopilot-events-DJgHT7u7.js";import"./use-organization-settings-D22Exu1R.js";import"./index-19zxQHGF.js";import"./shell-layout-DLAZV0gK.js";import"./alert-dialog-CJ86orwZ.js";import"./required-auth-layout-D_MW2r6y.js";import"./use-org-sso-CxIr0uRn.js";import"./integration-icon-CgQElrXW.js";import"./use-navigate-to-agent-DcKHP-Dx.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CRrsPyiX.js";import"./form-DxNXQDnh.js";import"./label-wXoTBNOj.js";import"./input-Ch5gyTpF.js";import"./switch-Dc6TbZCo.js";import"./drawer-BwuvaJKk.js";import"./collection-search-CuJVF_4n.js";import"./tabs-_bz-Pk3v.js";import"./toggle-group-BuIed1_M.js";import"./use-deco-credits-DdaT8kKr.js";import"./extract-connection-data-DKUEpjtm.js";import"./connection-card-CSc4h430.js";import"./use-registry-connections-7qDPmY1B.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-DDDctY6q.js";import"./connection-form-helpers-C4JWE9qO.js";import"./authenticate-and-persist-oauth-Dye31GIc.js";import"./mcp-oauth-CCKUAqNW.js";import"./collection-tabs-D2dxWVhJ.js";import"./badge-xfs1ynpW.js";import"./connect-desktop-dialog-H-XQO8xQ.js";import"./select-model-BdX9lqWe.js";import"./checkbox-Cp4HiBAg.js";import"./skeleton-DDLwtl4q.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DJLAq8qW.js";import"./command-CMAhy6e5.js";import"./index-B41Bwftt.js";import"./popover-stw0Mg4Y.js";import"./dropdown-menu-BCoimvOX.js";import"./index-DBNT2eWA.js";import"./toolbar-D4hdPbh0.js";import"./use-debounced-value-D9mS5nMY.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ba0cRZoN.js";import"./use-mcp-tools-BQDntLa2.js";import"./use-capability-CFL9CoDX.js";import"./use-debounced-autosave-DjRMW0Ri.js";import"./index-DhupVI1X.js";import"./search-input-BZmNJ1mS.js";import"./use-mcp-auth-status-unQW9A6B.js";import"./github-repo-picker-CAzdUaIn.js";import"./provision-repo-scoped-github-connection-CB4ICKHq.js";import"./use-secrets-B2_i6JKu.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-BPrxC_5K.js";import"./index-DOtxc4qw.js";import"./get-initials-D-f_fDFw.js";import"./calendar-QS-mHt0z.js";import"./toolbar-icon-button-DL5-P742.js";import"./use-file-configs-DsNhSUJA.js";import"./automation-list-row-DQcu9s-J.js";function vi(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const A=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const M=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const V=F,q=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,z=m.kind==="site"&&o&&n,B=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const H=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const $=O;let l;t[13]!==q?(l=e.jsx(mt,{className:"text-sm font-semibold",children:q}),t[13]=q,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==$||t[22]!==H||t[23]!==A||t[24]!==v||t[25]!==h||t[26]!==B||t[27]!==x||t[28]!==M||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==z||t[37]!==_?(S=!o||!T&&!z?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:B}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:A,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:H,onBumpFormKey:$}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:M})})})}),t[20]=p,t[21]=$,t[22]=H,t[23]=A,t[24]=v,t[25]=h,t[26]=B,t[27]=x,t[28]=M,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=z,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==V||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:V,children:f}),t[42]=V,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{vi as SeoSheet};
@@ -1 +0,0 @@
1
- import{c as L,C as H,j as U}from"./index-B5v4NEW3.js";import{a as O,g as $,s as E}from"./automation-runs-_Se0pK9p.js";import{u as k}from"./use-mcp-client-BhwsvIVS.js";import{p as B}from"./constants-D_FQAPnt.js";import{b as V,c as Y}from"./use-mcp-tools-BQDntLa2.js";import{u as q}from"./index-zMGhLGpG.js";import{c as G}from"./monaco-editor-D01rdtwj.js";import{g as K,M as W,a as D}from"./index-19zxQHGF.js";import{b as z,a as F}from"./chat-context-CyccsWfT.js";import{u as J}from"./shell-layout-DLAZV0gK.js";import{O as Q}from"./tab-id-BijBBRwE.js";import"./select-Bm_prz4e.js";import"./tooltip-Cfe7K1Wf.js";import"./Check-DXck-8sV.js";import"./ChevronDown-CLM1j2jp.js";import"./ChevronUp-BeHashnH.js";import"./useInfiniteQuery-CRypCc_i.js";import"./use-infinite-scroll-CubS4jP5.js";import"./use-connection-_0QRydbo.js";import"./use-collections-BTyUL9Wy.js";import"./use-virtual-mcp-JuKjy5YI.js";import"./card-Co4NmtE1.js";import"./sidebar-DS0o2bkP.js";import"./LayoutLeft-HNJhsqgp.js";import"./use-mobile-BWkiff8G.js";import"./X-CQq_1twc.js";import"./table-B7260dBr.js";import"./empty-state-CWZTKjMO.js";import"./use-members-Bo1ap_nJ.js";import"./use-org-auth-client-Dht_Ty6R.js";import"./use-clock-tick-Brtfp44X.js";import"./AlertCircle-Ct_trIMg.js";import"./CheckCircle-S9jWn5Mh.js";import"./Circle-BsSfrq3e.js";import"./agent-icon-CUA9P-jc.js";import"./UserPlus01-D3Z-h9xL.js";import"./Tool01-Cob0Vw_0.js";import"./ArrowUp-B82j0m1n.js";import"./Settings02-C0J3RccK.js";import"./Tool02-DXqnzmcu.js";import"./XCircle-ASq_08UK.js";import"./ArrowUpRight-Bs0BPetC.js";import"./TrendUp01-B3bGMiCS.js";import"./ZapSquare-CJb5VJO8.js";import"./Users03-DXSIuYIP.js";import"./ChevronRight-C2E5Dp54.js";import"./Stars02-XI_d0UtF.js";import"./Copy01-DpaC4fYW.js";import"./ZoomOut-D6w1kwx5.js";import"./DotsVertical-CF_wSve9.js";import"./Globe01-BIR5236w.js";import"./Eye-C-SV3lvP.js";import"./FilterLines-CwURjVGJ.js";import"./Flag01-Dvft4iTD.js";import"./Star01-DRz1zPRR.js";import"./Globe04-iZSw58kd.js";import"./SwitchHorizontal01-Bb2rm5VX.js";import"./HardDrive-5OBzO_Ky.js";import"./Key01-7lp-E5Gc.js";import"./LinkExternal01-CUjeXN47.js";import"./List-BEh5bEKM.js";import"./Monitor01-B7wjMyMa.js";import"./Sun-DgguBwdj.js";import"./Package-B0UrtPIN.js";import"./Palette-zbGC5Dmm.js";import"./Play-Bz0A3Y5e.js";import"./Plus--M9dcPMO.js";import"./SearchLg-Ds17lwee.js";import"./SearchMd-gGSITpAR.js";import"./Shield01-Ce0QsQf7.js";import"./Stars01-D9poRNZc.js";import"./Trash01-LoLcmAxw.js";import"./Upload01-By7jF-FG.js";import"./User01-DN2LKLDR.js";import"./Users01-CYM1Paj5.js";import"./XClose-D892yOuU.js";import"./Zap-Dj5WEZOq.js";import"./use-automations-DoGOQL-D.js";import"./studio-tools-CMGrpbwo.js";import"./useSuspenseInfiniteQuery-yV-mPSY_.js";import"./avatar-b0UOFm48.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-WkBdr4yo.js";import"./file-type-icon-9V1QXJ8L.js";import"./dialog-Zrgg9dlk.js";import"./hooks-BAhswesL.js";import"./decopilot-sse-pool-ZSJ8gdM5.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./integration-icon-CgQElrXW.js";import"./use-navigate-to-agent-DcKHP-Dx.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CRrsPyiX.js";import"./form-DxNXQDnh.js";import"./label-wXoTBNOj.js";import"./input-Ch5gyTpF.js";import"./auth-CT66LXeD.js";import"./drawer-BwuvaJKk.js";import"./collection-search-CuJVF_4n.js";import"./autosend-C-Afy-mX.js";import"./tabs-_bz-Pk3v.js";import"./toggle-group-BuIed1_M.js";import"./use-deco-credits-DdaT8kKr.js";import"./extract-connection-data-DKUEpjtm.js";import"./connection-card-CSc4h430.js";import"./use-registry-connections-7qDPmY1B.js";import"./use-organization-settings-D22Exu1R.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-DDDctY6q.js";import"./connection-form-helpers-C4JWE9qO.js";import"./authenticate-and-persist-oauth-Dye31GIc.js";import"./mcp-oauth-CCKUAqNW.js";import"./collection-tabs-D2dxWVhJ.js";import"./badge-xfs1ynpW.js";import"./use-ai-providers-DGlVmIGh.js";import"./connect-desktop-dialog-H-XQO8xQ.js";import"./select-model-BdX9lqWe.js";import"./checkbox-Cp4HiBAg.js";import"./skeleton-DDLwtl4q.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DJLAq8qW.js";import"./command-CMAhy6e5.js";import"./index-B41Bwftt.js";import"./popover-stw0Mg4Y.js";import"./dropdown-menu-BCoimvOX.js";import"./index-DBNT2eWA.js";import"./alert-dialog-CJ86orwZ.js";import"./toolbar-D4hdPbh0.js";import"./use-debounced-value-D9mS5nMY.js";import"./index-BqP8n8ZB.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ba0cRZoN.js";import"./use-decopilot-events-DJgHT7u7.js";import"./use-capability-CFL9CoDX.js";import"./switch-Dc6TbZCo.js";import"./use-debounced-autosave-DjRMW0Ri.js";import"./index-DhupVI1X.js";import"./search-input-BZmNJ1mS.js";import"./use-mcp-auth-status-unQW9A6B.js";import"./github-repo-picker-CAzdUaIn.js";import"./provision-repo-scoped-github-connection-CB4ICKHq.js";import"./use-secrets-B2_i6JKu.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-BPrxC_5K.js";import"./index-DOtxc4qw.js";import"./get-initials-D-f_fDFw.js";import"./calendar-QS-mHt0z.js";import"./toolbar-icon-button-DL5-P742.js";import"./use-file-configs-DsNhSUJA.js";import"./automation-list-row-DQcu9s-J.js";import"./required-auth-layout-D_MW2r6y.js";import"./use-org-sso-CxIr0uRn.js";const X="studio://navigate";function Z(M){const[t]=M;if(M.length!==1||t?.type!=="resource_link"||!t.uri.startsWith(X))return{isNavigate:!1};let o=null;try{o=new URL(t.uri).searchParams.get("main")}catch{}return{isNavigate:!0,tab:o&&Q.has(o)?o:null}}const tt={};function ot(M){const t=L.c(38),{client:o,resourceURI:I,tool:i,connectionId:p,orgId:a,args:v}=M,{sendMessage:C}=z(),{setAppContext:d,clearAppContext:l}=F(),{openSidePanel:g,openTab:s}=J(),r=`${p}:${i.name}`;let c;t[0]!==s?(c=x=>x==="inline"?(s("0"),"inline"):"fullscreen",t[0]=s,t[1]=c):c=t[1];const m=c,n=v??tt;let u;t[2]!==o||t[3]!==i.name||t[4]!==n?(u={client:o,toolName:i.name,toolArguments:n},t[2]=o,t[3]=i.name,t[4]=n,t[5]=u):u=t[5];const{data:e}=Y(u);let h;if(t[6]!==i._meta||t[7]!==i.name){const x=$(i._meta);h=E(i.name,x),t[6]=i._meta,t[7]=i.name,t[8]=h}else h=t[8];const A=h;let f;t[9]!==i.inputSchema?(f=i.inputSchema??{type:"object"},t[9]=i.inputSchema,t[10]=f):f=t[10];let R;t[11]!==A||t[12]!==f||t[13]!==i?(R={...i,name:A,inputSchema:f},t[11]=A,t[12]=f,t[13]=i,t[14]=R):R=t[14];const b=R;let _;t[15]!==g||t[16]!==s||t[17]!==C?(_=x=>{const j=Z(x.content);if(j.isNavigate){j.tab&&s(j.tab);return}const w=G(x.content);w.content.length>0&&(g("chat"),C({tiptapDoc:w}))},t[15]=g,t[16]=s,t[17]=C,t[18]=_):_=t[18];const y=_;let P;t[19]!==b?(P={tool:b},t[19]=b,t[20]=P):P=t[20];let N;t[21]!==d||t[22]!==r?(N=x=>d(r,x),t[21]=d,t[22]=r,t[23]=N):N=t[23];let T;t[24]!==l||t[25]!==r?(T=()=>l(r),t[24]=l,t[25]=r,t[26]=T):T=t[26];let S;return t[27]!==o||t[28]!==y||t[29]!==m||t[30]!==a||t[31]!==I||t[32]!==P||t[33]!==N||t[34]!==T||t[35]!==n||t[36]!==e?(S=U.jsx(W,{resourceURI:I,orgId:a,toolInfo:P,toolInput:n,toolResult:e,displayMode:"fullscreen",minHeight:D.fullscreen.minHeight,maxHeight:D.fullscreen.maxHeight,client:o,onMessage:y,onUpdateModelContext:N,onTeardown:T,onRequestDisplayMode:m,className:"h-full"}),t[27]=o,t[28]=y,t[29]=m,t[30]=a,t[31]=I,t[32]=P,t[33]=N,t[34]=T,t[35]=n,t[36]=e,t[37]=S):S=t[37],S}function Fi(M){const t=L.c(24),{connectionId:o,toolName:I,args:i}=M,{org:p}=H(),a=q();let v;t[0]!==o||t[1]!==a?(v=B(o)&&a.vmEntry?.sandboxProviderKind==="user-desktop"&&a.previewUrl?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=o,t[1]=a,t[2]=v):v=t[2];const C=v;let d;t[3]!==o||t[4]!==C||t[5]!==p.id||t[6]!==p.slug?(d={connectionId:o,orgId:p.id,orgSlug:p.slug,mcpUrl:C},t[3]=o,t[4]=C,t[5]=p.id,t[6]=p.slug,t[7]=d):d=t[7];const l=k(d);let g;t[8]!==l?(g={client:l},t[8]=l,t[9]=g):g=t[9];const{data:s}=V(g);let r,c,m;t[10]!==I||t[11]!==s.tools?(r=O(decodeURIComponent(I)),m=s.tools.find(e=>e.name===r)??s.tools.find(e=>{const h=$(e._meta);if(!h)return!1;if(E(e.name,h)===r)return!0;const f=E(r,h);return f!==r&&e.name===f}),c=m?._meta?K(m._meta):void 0,t[10]=I,t[11]=s.tools,t[12]=r,t[13]=c,t[14]=m):(r=t[12],c=t[13],m=t[14]);const n=c;if(!m||!n){let e;return t[15]!==r?(e=U.jsx("div",{className:"flex items-center justify-center h-full w-full",children:U.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',r,'" not found or has no UI']})}),t[15]=r,t[16]=e):e=t[16],e}let u;return t[17]!==i||t[18]!==l||t[19]!==o||t[20]!==p.id||t[21]!==n||t[22]!==m?(u=U.jsx(ot,{client:l,resourceURI:n,tool:m,connectionId:o,orgId:p.id,args:i}),t[17]=i,t[18]=l,t[19]=o,t[20]=p.id,t[21]=n,t[22]=m,t[23]=u):u=t[23],u}export{Fi as AppViewContent};
@@ -1 +0,0 @@
1
- import{c as C,j as o}from"./index-B5v4NEW3.js";import{I as B}from"./input-Ch5gyTpF.js";import{L as T}from"./label-wXoTBNOj.js";import{S as L,a as A,b as R,c as z,d as O}from"./select-Bm_prz4e.js";import{T as V}from"./textarea-DDDctY6q.js";import{v as D,w as J,o as K,x as M,I as _}from"./index-zMGhLGpG.js";import{s as F}from"./primitives-BSi-lJi-.js";import{u as $}from"./use-autosave-DjDtv4ur.js";import"./tooltip-Cfe7K1Wf.js";import"./Check-DXck-8sV.js";import"./ChevronDown-CLM1j2jp.js";import"./ChevronUp-BeHashnH.js";import"./ArrowUp-B82j0m1n.js";import"./chat-context-CyccsWfT.js";import"./autosend-C-Afy-mX.js";import"./hooks-BAhswesL.js";import"./use-mcp-client-BhwsvIVS.js";import"./constants-D_FQAPnt.js";import"./auth-CT66LXeD.js";import"./decopilot-sse-pool-ZSJ8gdM5.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-CMGrpbwo.js";import"./use-virtual-mcp-JuKjy5YI.js";import"./use-collections-BTyUL9Wy.js";import"./use-ai-providers-DGlVmIGh.js";import"./use-decopilot-events-DJgHT7u7.js";import"./tab-id-BijBBRwE.js";import"./use-organization-settings-D22Exu1R.js";import"./automation-runs-_Se0pK9p.js";import"./useInfiniteQuery-CRypCc_i.js";import"./use-infinite-scroll-CubS4jP5.js";import"./use-connection-_0QRydbo.js";import"./card-Co4NmtE1.js";import"./sidebar-DS0o2bkP.js";import"./LayoutLeft-HNJhsqgp.js";import"./use-mobile-BWkiff8G.js";import"./X-CQq_1twc.js";import"./table-B7260dBr.js";import"./empty-state-CWZTKjMO.js";import"./use-members-Bo1ap_nJ.js";import"./use-org-auth-client-Dht_Ty6R.js";import"./use-clock-tick-Brtfp44X.js";import"./AlertCircle-Ct_trIMg.js";import"./CheckCircle-S9jWn5Mh.js";import"./Circle-BsSfrq3e.js";import"./agent-icon-CUA9P-jc.js";import"./UserPlus01-D3Z-h9xL.js";import"./Tool01-Cob0Vw_0.js";import"./Settings02-C0J3RccK.js";import"./Tool02-DXqnzmcu.js";import"./XCircle-ASq_08UK.js";import"./ArrowUpRight-Bs0BPetC.js";import"./TrendUp01-B3bGMiCS.js";import"./ZapSquare-CJb5VJO8.js";import"./Users03-DXSIuYIP.js";import"./ChevronRight-C2E5Dp54.js";import"./Stars02-XI_d0UtF.js";import"./Copy01-DpaC4fYW.js";import"./ZoomOut-D6w1kwx5.js";import"./DotsVertical-CF_wSve9.js";import"./Globe01-BIR5236w.js";import"./Eye-C-SV3lvP.js";import"./FilterLines-CwURjVGJ.js";import"./Flag01-Dvft4iTD.js";import"./Star01-DRz1zPRR.js";import"./Globe04-iZSw58kd.js";import"./SwitchHorizontal01-Bb2rm5VX.js";import"./HardDrive-5OBzO_Ky.js";import"./Key01-7lp-E5Gc.js";import"./LinkExternal01-CUjeXN47.js";import"./List-BEh5bEKM.js";import"./Monitor01-B7wjMyMa.js";import"./Sun-DgguBwdj.js";import"./Package-B0UrtPIN.js";import"./Palette-zbGC5Dmm.js";import"./Play-Bz0A3Y5e.js";import"./Plus--M9dcPMO.js";import"./SearchLg-Ds17lwee.js";import"./SearchMd-gGSITpAR.js";import"./Shield01-Ce0QsQf7.js";import"./Stars01-D9poRNZc.js";import"./Trash01-LoLcmAxw.js";import"./Upload01-By7jF-FG.js";import"./User01-DN2LKLDR.js";import"./Users01-CYM1Paj5.js";import"./XClose-D892yOuU.js";import"./Zap-Dj5WEZOq.js";import"./use-automations-DoGOQL-D.js";import"./useSuspenseInfiniteQuery-yV-mPSY_.js";import"./avatar-b0UOFm48.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-WkBdr4yo.js";import"./file-type-icon-9V1QXJ8L.js";import"./dialog-Zrgg9dlk.js";import"./monaco-editor-D01rdtwj.js";import"./index-BqP8n8ZB.js";import"./index-19zxQHGF.js";import"./shell-layout-DLAZV0gK.js";import"./alert-dialog-CJ86orwZ.js";import"./required-auth-layout-D_MW2r6y.js";import"./use-org-sso-CxIr0uRn.js";import"./integration-icon-CgQElrXW.js";import"./use-navigate-to-agent-DcKHP-Dx.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CRrsPyiX.js";import"./form-DxNXQDnh.js";import"./drawer-BwuvaJKk.js";import"./collection-search-CuJVF_4n.js";import"./tabs-_bz-Pk3v.js";import"./toggle-group-BuIed1_M.js";import"./use-deco-credits-DdaT8kKr.js";import"./extract-connection-data-DKUEpjtm.js";import"./connection-card-CSc4h430.js";import"./use-registry-connections-7qDPmY1B.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-C4JWE9qO.js";import"./authenticate-and-persist-oauth-Dye31GIc.js";import"./mcp-oauth-CCKUAqNW.js";import"./collection-tabs-D2dxWVhJ.js";import"./badge-xfs1ynpW.js";import"./connect-desktop-dialog-H-XQO8xQ.js";import"./select-model-BdX9lqWe.js";import"./checkbox-Cp4HiBAg.js";import"./skeleton-DDLwtl4q.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DJLAq8qW.js";import"./command-CMAhy6e5.js";import"./index-B41Bwftt.js";import"./popover-stw0Mg4Y.js";import"./dropdown-menu-BCoimvOX.js";import"./index-DBNT2eWA.js";import"./toolbar-D4hdPbh0.js";import"./use-debounced-value-D9mS5nMY.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ba0cRZoN.js";import"./use-mcp-tools-BQDntLa2.js";import"./use-capability-CFL9CoDX.js";import"./switch-Dc6TbZCo.js";import"./use-debounced-autosave-DjRMW0Ri.js";import"./index-DhupVI1X.js";import"./search-input-BZmNJ1mS.js";import"./use-mcp-auth-status-unQW9A6B.js";import"./github-repo-picker-CAzdUaIn.js";import"./provision-repo-scoped-github-connection-CB4ICKHq.js";import"./use-secrets-B2_i6JKu.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-BPrxC_5K.js";import"./index-DOtxc4qw.js";import"./get-initials-D-f_fDFw.js";import"./calendar-QS-mHt0z.js";import"./toolbar-icon-button-DL5-P742.js";import"./use-file-configs-DsNhSUJA.js";import"./automation-list-row-DQcu9s-J.js";const q={authors:[{key:"name",label:"Name",widget:"text"},{key:"type",label:"Type",widget:"select",options:[{value:"Person",label:"Person"},{value:"Organization",label:"Organization"}]},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},G={authors:"Author"};function _o(g){const t=C.c(34),{orgSlug:j,virtualMcpId:w,branch:S,kind:e,blockKey:h,block:E}=g;let y;t[0]!==S||t[1]!==j||t[2]!==w?(y={orgSlug:j,virtualMcpId:w,branch:S},t[0]=S,t[1]=j,t[2]=w,t[3]=y):y=t[3];const m=D(y);let d;t[4]!==E||t[5]!==e?(d=J(E,e),t[4]=E,t[5]=e,t[6]=d):d=t[6];const f=d;let k;t[7]!==h||t[8]!==e||t[9]!==m?(k=a=>{m.mutate({blockKey:h,data:M(h,e,a)})},t[7]=h,t[8]=e,t[9]=m,t[10]=k):k=t[10];const[i,N]=$(f,k);let b;t[11]!==i||t[12]!==N?(b=(a,r)=>N({...i,[a]:r}),t[11]=i,t[12]=N,t[13]=b):b=t[13];const p=b,I=G[e];let l;t[14]!==I?(l=o.jsx("span",{className:"text-sm font-medium",children:I}),t[14]=I,t[15]=l):l=t[15];let n;t[16]!==m.isError||t[17]!==m.isPending?(n=o.jsx(K,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=n):n=t[18];let c;t[19]!==l||t[20]!==n?(c=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,n]}),t[19]=l,t[20]=n,t[21]=c):c=t[21];const P=q[e];let u;if(t[22]!==i||t[23]!==p||t[24]!==P){let a;t[26]!==i||t[27]!==p?(a=r=>o.jsx("div",{className:"space-y-2",children:r.widget==="image"?o.jsx(_,{schema:{type:"string",format:"image-uri",title:r.label},value:i[r.key],onChange:s=>p(r.key,s),path:r.key,label:r.label}):r.widget==="select"?o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),o.jsxs(L,{value:F(i[r.key])||r.options?.[0]?.value,onValueChange:s=>p(r.key,s),children:[o.jsx(A,{id:r.key,className:"h-10 w-full",children:o.jsx(R,{placeholder:r.label})}),o.jsx(z,{children:(r.options??[]).map(H)})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(T,{htmlFor:r.key,children:r.label}),r.widget==="textarea"?o.jsx(V,{id:r.key,value:F(i[r.key]),onChange:s=>p(r.key,s.target.value),rows:3}):o.jsx(B,{id:r.key,value:F(i[r.key]),placeholder:r.placeholder,onChange:s=>p(r.key,s.target.value),className:"h-10"})]})},r.key),t[26]=i,t[27]=p,t[28]=a):a=t[28],u=P.map(a),t[22]=i,t[23]=p,t[24]=P,t[25]=u}else u=t[25];let x;t[29]!==u?(x=o.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:o.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:u})}),t[29]=u,t[30]=x):x=t[30];let v;return t[31]!==x||t[32]!==c?(v=o.jsxs("div",{className:"flex h-full flex-col",children:[c,x]}),t[31]=x,t[32]=c,t[33]=v):v=t[33],v}function H(g){return o.jsx(O,{value:g.value,children:g.label},g.value)}export{_o as RecordEditor};
@@ -1 +0,0 @@
1
- import{c as X,j as t}from"./index-B5v4NEW3.js";import{C as Y}from"./checkbox-Cp4HiBAg.js";import{I as K}from"./input-Ch5gyTpF.js";import{L as q}from"./label-wXoTBNOj.js";import{c as z,S as G,d as H,a as J,b as Z}from"./select-Bm_prz4e.js";import{k as ee,aV as te,o as re,aW as M,aX as ie}from"./index-zMGhLGpG.js";import{u as oe}from"./use-autosave-DjDtv4ur.js";import"./Check-DXck-8sV.js";import"./tooltip-Cfe7K1Wf.js";import"./ChevronDown-CLM1j2jp.js";import"./ChevronUp-BeHashnH.js";import"./ArrowUp-B82j0m1n.js";import"./chat-context-CyccsWfT.js";import"./autosend-C-Afy-mX.js";import"./hooks-BAhswesL.js";import"./use-mcp-client-BhwsvIVS.js";import"./constants-D_FQAPnt.js";import"./auth-CT66LXeD.js";import"./decopilot-sse-pool-ZSJ8gdM5.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-CMGrpbwo.js";import"./use-virtual-mcp-JuKjy5YI.js";import"./use-collections-BTyUL9Wy.js";import"./use-ai-providers-DGlVmIGh.js";import"./use-decopilot-events-DJgHT7u7.js";import"./tab-id-BijBBRwE.js";import"./use-organization-settings-D22Exu1R.js";import"./automation-runs-_Se0pK9p.js";import"./useInfiniteQuery-CRypCc_i.js";import"./use-infinite-scroll-CubS4jP5.js";import"./use-connection-_0QRydbo.js";import"./card-Co4NmtE1.js";import"./sidebar-DS0o2bkP.js";import"./LayoutLeft-HNJhsqgp.js";import"./use-mobile-BWkiff8G.js";import"./X-CQq_1twc.js";import"./table-B7260dBr.js";import"./empty-state-CWZTKjMO.js";import"./use-members-Bo1ap_nJ.js";import"./use-org-auth-client-Dht_Ty6R.js";import"./use-clock-tick-Brtfp44X.js";import"./AlertCircle-Ct_trIMg.js";import"./CheckCircle-S9jWn5Mh.js";import"./Circle-BsSfrq3e.js";import"./agent-icon-CUA9P-jc.js";import"./UserPlus01-D3Z-h9xL.js";import"./Tool01-Cob0Vw_0.js";import"./Settings02-C0J3RccK.js";import"./Tool02-DXqnzmcu.js";import"./XCircle-ASq_08UK.js";import"./ArrowUpRight-Bs0BPetC.js";import"./TrendUp01-B3bGMiCS.js";import"./ZapSquare-CJb5VJO8.js";import"./Users03-DXSIuYIP.js";import"./ChevronRight-C2E5Dp54.js";import"./Stars02-XI_d0UtF.js";import"./Copy01-DpaC4fYW.js";import"./ZoomOut-D6w1kwx5.js";import"./DotsVertical-CF_wSve9.js";import"./Globe01-BIR5236w.js";import"./Eye-C-SV3lvP.js";import"./FilterLines-CwURjVGJ.js";import"./Flag01-Dvft4iTD.js";import"./Star01-DRz1zPRR.js";import"./Globe04-iZSw58kd.js";import"./SwitchHorizontal01-Bb2rm5VX.js";import"./HardDrive-5OBzO_Ky.js";import"./Key01-7lp-E5Gc.js";import"./LinkExternal01-CUjeXN47.js";import"./List-BEh5bEKM.js";import"./Monitor01-B7wjMyMa.js";import"./Sun-DgguBwdj.js";import"./Package-B0UrtPIN.js";import"./Palette-zbGC5Dmm.js";import"./Play-Bz0A3Y5e.js";import"./Plus--M9dcPMO.js";import"./SearchLg-Ds17lwee.js";import"./SearchMd-gGSITpAR.js";import"./Shield01-Ce0QsQf7.js";import"./Stars01-D9poRNZc.js";import"./Trash01-LoLcmAxw.js";import"./Upload01-By7jF-FG.js";import"./User01-DN2LKLDR.js";import"./Users01-CYM1Paj5.js";import"./XClose-D892yOuU.js";import"./Zap-Dj5WEZOq.js";import"./use-automations-DoGOQL-D.js";import"./useSuspenseInfiniteQuery-yV-mPSY_.js";import"./avatar-b0UOFm48.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-WkBdr4yo.js";import"./file-type-icon-9V1QXJ8L.js";import"./dialog-Zrgg9dlk.js";import"./monaco-editor-D01rdtwj.js";import"./index-BqP8n8ZB.js";import"./index-19zxQHGF.js";import"./shell-layout-DLAZV0gK.js";import"./alert-dialog-CJ86orwZ.js";import"./required-auth-layout-D_MW2r6y.js";import"./use-org-sso-CxIr0uRn.js";import"./integration-icon-CgQElrXW.js";import"./use-navigate-to-agent-DcKHP-Dx.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-CRrsPyiX.js";import"./form-DxNXQDnh.js";import"./drawer-BwuvaJKk.js";import"./collection-search-CuJVF_4n.js";import"./tabs-_bz-Pk3v.js";import"./toggle-group-BuIed1_M.js";import"./use-deco-credits-DdaT8kKr.js";import"./extract-connection-data-DKUEpjtm.js";import"./connection-card-CSc4h430.js";import"./use-registry-connections-7qDPmY1B.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-DDDctY6q.js";import"./connection-form-helpers-C4JWE9qO.js";import"./authenticate-and-persist-oauth-Dye31GIc.js";import"./mcp-oauth-CCKUAqNW.js";import"./collection-tabs-D2dxWVhJ.js";import"./badge-xfs1ynpW.js";import"./connect-desktop-dialog-H-XQO8xQ.js";import"./select-model-BdX9lqWe.js";import"./skeleton-DDLwtl4q.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DJLAq8qW.js";import"./command-CMAhy6e5.js";import"./index-B41Bwftt.js";import"./popover-stw0Mg4Y.js";import"./dropdown-menu-BCoimvOX.js";import"./index-DBNT2eWA.js";import"./toolbar-D4hdPbh0.js";import"./use-debounced-value-D9mS5nMY.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Ba0cRZoN.js";import"./use-mcp-tools-BQDntLa2.js";import"./use-capability-CFL9CoDX.js";import"./switch-Dc6TbZCo.js";import"./use-debounced-autosave-DjRMW0Ri.js";import"./index-DhupVI1X.js";import"./search-input-BZmNJ1mS.js";import"./use-mcp-auth-status-unQW9A6B.js";import"./github-repo-picker-CAzdUaIn.js";import"./provision-repo-scoped-github-connection-CB4ICKHq.js";import"./use-secrets-B2_i6JKu.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-BPrxC_5K.js";import"./index-DOtxc4qw.js";import"./get-initials-D-f_fDFw.js";import"./calendar-QS-mHt0z.js";import"./toolbar-icon-button-DL5-P742.js";import"./use-file-configs-DsNhSUJA.js";import"./automation-list-row-DQcu9s-J.js";const me=[{value:"temporary",label:`Temporary (${M.temporary})`},{value:"permanent",label:`Permanent (${M.permanent})`}];function ei(S){const e=X.c(62),{orgSlug:V,virtualMcpId:$,branch:A,blockKey:B,block:D}=S;let _;e[0]!==A||e[1]!==V||e[2]!==$?(_={orgSlug:V,virtualMcpId:$,branch:A},e[0]=A,e[1]=V,e[2]=$,e[3]=_):_=e[3];const m=ee(_);let g;e[4]!==D?(g=te(D),e[4]=D,e[5]=g):g=e[5];const W=g;let v;e[6]!==B||e[7]!==m?(v=o=>{m.mutate({blockKey:B,data:ie(o)})},e[6]=B,e[7]=m,e[8]=v):v=e[8];const[r,O]=oe(W,v);let N;e[9]!==r||e[10]!==O?(N=o=>O({...r,...o}),e[9]=r,e[10]=O,e[11]=N):N=e[11];const i=N;let P;e[12]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("span",{className:"text-sm font-medium",children:"Redirect"}),e[12]=P):P=e[12];let p;e[13]!==m.isError||e[14]!==m.isPending?(p=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[P,t.jsx(re,{isPending:m.isPending,isError:m.isError})]}),e[13]=m.isError,e[14]=m.isPending,e[15]=p):p=e[15];let T;e[16]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(q,{htmlFor:"redirect-from",children:"From"}),e[16]=T):T=e[16];let s;e[17]!==i?(s=o=>i({from:o.target.value}),e[17]=i,e[18]=s):s=e[18];let l;e[19]!==r.from||e[20]!==s?(l=t.jsx(K,{id:"redirect-from",value:r.from,placeholder:"/old-path",onChange:s,className:"h-10"}),e[19]=r.from,e[20]=s,e[21]=l):l=e[21];let E;e[22]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsxs("p",{className:"text-xs text-muted-foreground",children:["The source path to match. Supports URLPattern syntax (e.g."," ",t.jsx("code",{children:"/product/:slug"}),")."]}),e[22]=E):E=e[22];let a;e[23]!==l?(a=t.jsxs("div",{className:"space-y-2",children:[T,l,E]}),e[23]=l,e[24]=a):a=e[24];let R;e[25]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(q,{htmlFor:"redirect-to",children:"To"}),e[25]=R):R=e[25];let c;e[26]!==i?(c=o=>i({to:o.target.value}),e[26]=i,e[27]=c):c=e[27];let n;e[28]!==r.to||e[29]!==c?(n=t.jsx(K,{id:"redirect-to",value:r.to,placeholder:"/new-path",onChange:c,className:"h-10"}),e[28]=r.to,e[29]=c,e[30]=n):n=e[30];let k;e[31]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("p",{className:"text-xs text-muted-foreground",children:"The destination — a relative path or an absolute URL."}),e[31]=k):k=e[31];let d;e[32]!==n?(d=t.jsxs("div",{className:"space-y-2",children:[R,n,k]}),e[32]=n,e[33]=d):d=e[33];let C;e[34]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(q,{htmlFor:"redirect-type",children:"Type"}),e[34]=C):C=e[34];let f;e[35]!==i?(f=o=>i({type:o}),e[35]=i,e[36]=f):f=e[36];let w;e[37]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(J,{id:"redirect-type",className:"h-10 w-full",children:t.jsx(Z,{placeholder:"Type"})}),e[37]=w):w=e[37];let I;e[38]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(z,{children:me.map(pe)}),e[38]=I):I=e[38];let h;e[39]!==r.type||e[40]!==f?(h=t.jsxs(G,{value:r.type,onValueChange:f,children:[w,I]}),e[39]=r.type,e[40]=f,e[41]=h):h=e[41];let F;e[42]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("strong",{children:"Temporary"}),e[42]=F):F=e[42];let L;e[43]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",F," when the redirect may change;"," ",t.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),e[43]=L):L=e[43];let x;e[44]!==h?(x=t.jsxs("div",{className:"space-y-2",children:[C,h,L]}),e[44]=h,e[45]=x):x=e[45];let u;e[46]!==i?(u=o=>i({discardQueryParameters:o===!0}),e[46]=i,e[47]=u):u=e[47];let y;e[48]!==r.discardQueryParameters||e[49]!==u?(y=t.jsx(Y,{checked:r.discardQueryParameters,onCheckedChange:u}),e[48]=r.discardQueryParameters,e[49]=u,e[50]=y):y=e[50];let Q;e[51]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx("span",{className:"text-sm",children:"Discard query parameters"}),e[51]=Q):Q=e[51];let j;e[52]!==y?(j=t.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[y,Q]}),e[52]=y,e[53]=j):j=e[53];let b;e[54]!==a||e[55]!==d||e[56]!==x||e[57]!==j?(b=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:t.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[a,d,x,j]})}),e[54]=a,e[55]=d,e[56]=x,e[57]=j,e[58]=b):b=e[58];let U;return e[59]!==b||e[60]!==p?(U=t.jsxs("div",{className:"flex h-full flex-col",children:[p,b]}),e[59]=b,e[60]=p,e[61]=U):U=e[61],U}function pe(S){return t.jsx(H,{value:S.value,children:S.label},S.value)}export{ei as RedirectEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DX8G3iig.js","assets/index-B5v4NEW3.js","assets/index-JKj_buiN.css","assets/Tool02-DXqnzmcu.js","assets/CheckCircle-S9jWn5Mh.js","assets/Settings02-C0J3RccK.js","assets/use-mcp-client-BhwsvIVS.js","assets/constants-D_FQAPnt.js","assets/auth-CT66LXeD.js","assets/useInfiniteQuery-CRypCc_i.js","assets/use-infinite-scroll-CubS4jP5.js","assets/studio-tools-CMGrpbwo.js","assets/badge-xfs1ynpW.js","assets/input-Ch5gyTpF.js","assets/dropdown-menu-BCoimvOX.js","assets/Check-DXck-8sV.js","assets/ChevronRight-C2E5Dp54.js","assets/Circle-BsSfrq3e.js","assets/table-B7260dBr.js","assets/toggle-group-BuIed1_M.js","assets/use-view-mode-BorVmgeT.js","assets/use-mobile-BWkiff8G.js","assets/DotsVertical-CF_wSve9.js","assets/FilterLines-CwURjVGJ.js","assets/Globe01-BIR5236w.js","assets/SearchMd-gGSITpAR.js","assets/dialog-Zrgg9dlk.js","assets/X-CQq_1twc.js","assets/AlertCircle-Ct_trIMg.js","assets/Upload01-By7jF-FG.js","assets/alert-dialog-CJ86orwZ.js","assets/card-Co4NmtE1.js","assets/Trash01-LoLcmAxw.js","assets/label-wXoTBNOj.js","assets/select-Bm_prz4e.js","assets/tooltip-Cfe7K1Wf.js","assets/ChevronDown-CLM1j2jp.js","assets/ChevronUp-BeHashnH.js","assets/switch-Dc6TbZCo.js","assets/textarea-DDDctY6q.js","assets/XCircle-ASq_08UK.js","assets/checkbox-Cp4HiBAg.js","assets/Eye-C-SV3lvP.js","assets/LinkExternal01-CUjeXN47.js","assets/use-copy-WkBdr4yo.js","assets/Copy01-DpaC4fYW.js","assets/Key01-7lp-E5Gc.js","assets/Plus--M9dcPMO.js","assets/mcp-oauth-CCKUAqNW.js","assets/Play-Bz0A3Y5e.js"])))=>i.map(i=>d[i]);
2
- import{c as s,j as e,r as i,i as a,aX as o}from"./index-B5v4NEW3.js";import{R as m}from"./require-capability-vo1ql1oP.js";import"./use-capability-CFL9CoDX.js";import"./access-gate-Cte8vird.js";import"./capability-load-error-ChIN_BDy.js";const n=i.lazy(()=>o(()=>import("./registry-layout-DX8G3iig.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DX8G3iig.js","assets/index-B5v4NEW3.js","assets/index-JKj_buiN.css","assets/Tool02-DXqnzmcu.js","assets/CheckCircle-S9jWn5Mh.js","assets/Settings02-C0J3RccK.js","assets/use-mcp-client-BhwsvIVS.js","assets/constants-D_FQAPnt.js","assets/auth-CT66LXeD.js","assets/useInfiniteQuery-CRypCc_i.js","assets/use-infinite-scroll-CubS4jP5.js","assets/studio-tools-CMGrpbwo.js","assets/badge-xfs1ynpW.js","assets/input-Ch5gyTpF.js","assets/dropdown-menu-BCoimvOX.js","assets/Check-DXck-8sV.js","assets/ChevronRight-C2E5Dp54.js","assets/Circle-BsSfrq3e.js","assets/table-B7260dBr.js","assets/toggle-group-BuIed1_M.js","assets/use-view-mode-BorVmgeT.js","assets/use-mobile-BWkiff8G.js","assets/DotsVertical-CF_wSve9.js","assets/FilterLines-CwURjVGJ.js","assets/Globe01-BIR5236w.js","assets/SearchMd-gGSITpAR.js","assets/dialog-Zrgg9dlk.js","assets/X-CQq_1twc.js","assets/AlertCircle-Ct_trIMg.js","assets/Upload01-By7jF-FG.js","assets/alert-dialog-CJ86orwZ.js","assets/card-Co4NmtE1.js","assets/Trash01-LoLcmAxw.js","assets/label-wXoTBNOj.js","assets/select-Bm_prz4e.js","assets/tooltip-Cfe7K1Wf.js","assets/ChevronDown-CLM1j2jp.js","assets/ChevronUp-BeHashnH.js","assets/switch-Dc6TbZCo.js","assets/textarea-DDDctY6q.js","assets/XCircle-ASq_08UK.js","assets/checkbox-Cp4HiBAg.js","assets/Eye-C-SV3lvP.js","assets/LinkExternal01-CUjeXN47.js","assets/use-copy-WkBdr4yo.js","assets/Copy01-DpaC4fYW.js","assets/Key01-7lp-E5Gc.js","assets/Plus--M9dcPMO.js","assets/mcp-oauth-CCKUAqNW.js","assets/Play-Bz0A3Y5e.js"])))=>i.map(i=>d[i]);
2
- import{c as m,b as n,e as c,j as t,i as p,r as l,aX as f}from"./index-B5v4NEW3.js";import{R as u}from"./require-capability-vo1ql1oP.js";import"./use-capability-CFL9CoDX.js";import"./access-gate-Cte8vird.js";import"./capability-load-error-ChIN_BDy.js";const g=l.lazy(()=>f(()=>import("./registry-layout-DX8G3iig.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./use-infinite-scroll-CubS4jP5.js";import{dK as i}from"./index-B5v4NEW3.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./use-infinite-scroll-CubS4jP5.js";import{dK as u,ab as n}from"./index-B5v4NEW3.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};