decocms 4.2.0 → 4.3.1

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 (227) hide show
  1. package/dist/client/assets/{AlertCircle-HztvGgEK.js → AlertCircle-B4WPpzHx.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-CD45Pqa3.js → ArrowUpRight-n7J2ORua.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-B93tZkib.js → CheckCircle-DGqDWZvl.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-BHp2n33E.js → ChevronDown-BzkFMF52.js} +1 -1
  5. package/dist/client/assets/{ChevronLeft-CkLGnzyI.js → ChevronLeft-B-p3uhTp.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-HkVZWjVD.js → ChevronRight-BhZIqa2P.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-DLoyITzq.js → ChevronUp-CtzC0jb0.js} +1 -1
  8. package/dist/client/assets/{DotsVertical-DBVnta3o.js → DotsVertical-DskMPw9G.js} +1 -1
  9. package/dist/client/assets/{Eye-BuXBYPNx.js → Eye-Bkw15G1G.js} +1 -1
  10. package/dist/client/assets/{FilterLines-JdWf41nd.js → FilterLines-CTiCp3St.js} +1 -1
  11. package/dist/client/assets/{Globe01-DbyYsbkQ.js → Globe01-CIvUZBh0.js} +1 -1
  12. package/dist/client/assets/{Globe04-ht6-fzwU.js → Globe04-By_qGXm-.js} +1 -1
  13. package/dist/client/assets/{HardDrive-QsbiOkra.js → HardDrive-Da-ea-EW.js} +1 -1
  14. package/dist/client/assets/{Key01-B-rzooWI.js → Key01-DugFMT5_.js} +1 -1
  15. package/dist/client/assets/{LayoutLeft-CvZZnjM_.js → LayoutLeft-DiQ60pSu.js} +1 -1
  16. package/dist/client/assets/{LinkExternal01-C75h4nTA.js → LinkExternal01-BMDEbMBF.js} +1 -1
  17. package/dist/client/assets/{Monitor01-C751a6VH.js → Monitor01-BFD-ivVa.js} +1 -1
  18. package/dist/client/assets/{Palette-Cw4TmFXF.js → Palette-DrmZY9bB.js} +1 -1
  19. package/dist/client/assets/{Play-BaPiITj6.js → Play-CiiKZLoa.js} +1 -1
  20. package/dist/client/assets/{Plus-cqzweyhV.js → Plus-hFZ_SbzL.js} +1 -1
  21. package/dist/client/assets/{SearchLg-BgcbIGrG.js → SearchLg-D4Hs4YLQ.js} +1 -1
  22. package/dist/client/assets/{SearchMd-B_E38g9S.js → SearchMd-RBoojwOu.js} +1 -1
  23. package/dist/client/assets/{Settings02-HJQMPAnK.js → Settings02-CuT9JazG.js} +1 -1
  24. package/dist/client/assets/{Shield01-CYOeouzJ.js → Shield01-D5Fc_Ylv.js} +1 -1
  25. package/dist/client/assets/{Star01-BLuwEqBm.js → Star01-BMttIRxb.js} +1 -1
  26. package/dist/client/assets/{Stars01-bmKEIBXR.js → Stars01-HANlppqn.js} +1 -1
  27. package/dist/client/assets/{Stars02-CO1akjaP.js → Stars02-Call5O4Q.js} +1 -1
  28. package/dist/client/assets/{Sun-DGf33qzc.js → Sun-B0JI-Irq.js} +1 -1
  29. package/dist/client/assets/{SwitchHorizontal01-CtPAye2M.js → SwitchHorizontal01-BcqnyefE.js} +1 -1
  30. package/dist/client/assets/{Tool01-Dc5WA1H4.js → Tool01-DFCFgRlB.js} +1 -1
  31. package/dist/client/assets/{Trash01-Dn19EDIc.js → Trash01-CGEeRKCz.js} +1 -1
  32. package/dist/client/assets/{Upload01-AmIm4zQN.js → Upload01-V0qkIpRk.js} +1 -1
  33. package/dist/client/assets/{User01-CYnD1B0h.js → User01-Co_ACiCO.js} +1 -1
  34. package/dist/client/assets/{Users01-B3f8K1I8.js → Users01-B-VpMOmx.js} +1 -1
  35. package/dist/client/assets/{Users03-B7auzTEh.js → Users03-DBa0-LbB.js} +1 -1
  36. package/dist/client/assets/{X-BJ5AK9_B.js → X-DlUiLOPC.js} +1 -1
  37. package/dist/client/assets/{XCircle-BEhXc7sQ.js → XCircle-BIxZfFEg.js} +1 -1
  38. package/dist/client/assets/{XClose-BaODJMh0.js → XClose-CEJj7vhn.js} +1 -1
  39. package/dist/client/assets/{Zap-CDSogr5w.js → Zap-USVmT42t.js} +1 -1
  40. package/dist/client/assets/{ZapSquare-CmmJkOPb.js → ZapSquare-qeizwUPq.js} +1 -1
  41. package/dist/client/assets/{ZoomOut-9WiOjKDc.js → ZoomOut-fkR_2hFy.js} +1 -1
  42. package/dist/client/assets/{access-gate-Bwf2CoM1.js → access-gate-Dob1Rc1a.js} +1 -1
  43. package/dist/client/assets/{add-section-modal-CmQEBOgZ.js → add-section-modal-JApa7Z44.js} +1 -1
  44. package/dist/client/assets/{agent-icon-Ba-0ZYgG.js → agent-icon-CCm6veEh.js} +1 -1
  45. package/dist/client/assets/{agents-list-D5VkOHIG.js → agents-list-CsmaOmeB.js} +1 -1
  46. package/dist/client/assets/{ai-providers-CZ5SMOKO.js → ai-providers-boT7K-bH.js} +1 -1
  47. package/dist/client/assets/{alert-dialog-Bqe6OAIL.js → alert-dialog-BZ8TrIVu.js} +2 -2
  48. package/dist/client/assets/{alert-nxT5lZho.js → alert-ez0UE1C8.js} +1 -1
  49. package/dist/client/assets/app-editor-D5hlOetk.js +1 -0
  50. package/dist/client/assets/{auth-CqOhN4mO.js → auth-CNqDC7uO.js} +1 -1
  51. package/dist/client/assets/{auth-catchall-CNFrjBAq.js → auth-catchall-BG9GP_5W.js} +1 -1
  52. package/dist/client/assets/{auth-entry-DPV3aDXY.js → auth-entry-BAXdJDhh.js} +1 -1
  53. package/dist/client/assets/{auth-split-layout-Dp0-2xO6.js → auth-split-layout-BQs9JvYd.js} +1 -1
  54. package/dist/client/assets/{authenticate-and-persist-oauth-BkWGH7gY.js → authenticate-and-persist-oauth-Dy2XeMqO.js} +1 -1
  55. package/dist/client/assets/{automation-list-row-CjVzmIPj.js → automation-list-row-DO51bU3z.js} +1 -1
  56. package/dist/client/assets/{automation-runs-DIDLqvYF.js → automation-runs-CXnAhWiY.js} +1 -1
  57. package/dist/client/assets/{automations-DEtrS6hH.js → automations-akz_oClO.js} +1 -1
  58. package/dist/client/assets/{avatar-DUFWGs9Z.js → avatar-Jhd31ejW.js} +1 -1
  59. package/dist/client/assets/{badge-ULvYE549.js → badge-cxwmW2xd.js} +1 -1
  60. package/dist/client/assets/{block-document-Cl3urvMb.js → block-document-AtpOGVAy.js} +1 -1
  61. package/dist/client/assets/{brand-context-DU7I0d5o.js → brand-context-D-YGjyHl.js} +1 -1
  62. package/dist/client/assets/{buckets-4u7bKclV.js → buckets-ByuitLd7.js} +1 -1
  63. package/dist/client/assets/{bulk-category-panel-Bqpqm_Qj.js → bulk-category-panel-Bu7vkdyV.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-Xikv63T6.js → capability-load-error-C00HLz2q.js} +1 -1
  65. package/dist/client/assets/{card-DuZccs_2.js → card-D3bKVB8y.js} +1 -1
  66. package/dist/client/assets/category-editor-AxaHD2PX.js +1 -0
  67. package/dist/client/assets/{chat-context-Ba1J4Wbr.js → chat-context-B5uEh4ay.js} +4 -4
  68. package/dist/client/assets/{checkbox-CZumSc8B.js → checkbox-PMXW46HN.js} +1 -1
  69. package/dist/client/assets/{cli-auth-success-Ca86Sm5z.js → cli-auth-success-Bo07c76Z.js} +1 -1
  70. package/dist/client/assets/{collection-detail-2DizOat2.js → collection-detail-DEEAX0DE.js} +1 -1
  71. package/dist/client/assets/{collection-display-button-DTaFqStv.js → collection-display-button-Cu6MzTbi.js} +1 -1
  72. package/dist/client/assets/{collection-search-D2jsOcE8.js → collection-search-CN9TCItb.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-BlI5WHJs.js → collection-tabs-D5o6VjHd.js} +1 -1
  74. package/dist/client/assets/{command-ClUS1KMM.js → command-D-t5bmXW.js} +1 -1
  75. package/dist/client/assets/{commerce-onboarding-C9kK24Mf.js → commerce-onboarding-CljjzqU2.js} +1 -1
  76. package/dist/client/assets/{connect-desktop-dialog-DPJKYCn-.js → connect-desktop-dialog-DchtPbuP.js} +1 -1
  77. package/dist/client/assets/{connection-card-CEtBve6r.js → connection-card-BswtsnGE.js} +1 -1
  78. package/dist/client/assets/{connection-detail-dUoqAHFY.js → connection-detail-Dt-8hGUD.js} +1 -1
  79. package/dist/client/assets/{connection-form-helpers-DtWH2w6r.js → connection-form-helpers-JfkHcTGO.js} +1 -1
  80. package/dist/client/assets/{connections-SZjaegFI.js → connections-D2zRczhs.js} +1 -1
  81. package/dist/client/assets/{context-menu-VSlW1NY7.js → context-menu-Dln5uXsN.js} +1 -1
  82. package/dist/client/assets/{decopilot-Y0nnLngo.js → decopilot-CfDwLIyX.js} +1 -1
  83. package/dist/client/assets/{decopilot-sse-pool-BR9ewfWR.js → decopilot-sse-pool-DoJkdYBA.js} +1 -1
  84. package/dist/client/assets/{dialog-onqVrhoh.js → dialog-B2cGEuOv.js} +1 -1
  85. package/dist/client/assets/{domain-settings-D6CfPi24.js → domain-settings-DNJMc9fW.js} +1 -1
  86. package/dist/client/assets/{drawer-D6-83PZ_.js → drawer-Tv6bcT7w.js} +1 -1
  87. package/dist/client/assets/{dropdown-menu-D9g8Sl4X.js → dropdown-menu-Dw-pnYXI.js} +1 -1
  88. package/dist/client/assets/{empty-state-0bsCiepl.js → empty-state-D7nJB9UW.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-Dk45baha.js → extract-connection-data-CxK1dunT.js} +1 -1
  90. package/dist/client/assets/file-explorer-dyfhIxpy.js +2 -0
  91. package/dist/client/assets/{file-type-icon-B1XEm_9k.js → file-type-icon-W_AZRfzL.js} +1 -1
  92. package/dist/client/assets/{files-BvKHt3eY.js → files-B0cAPQGO.js} +1 -1
  93. package/dist/client/assets/{form-Dvd73W2C.js → form-DI8q6OtF.js} +1 -1
  94. package/dist/client/assets/{general-DrBGUycq.js → general-bpWfsinD.js} +1 -1
  95. package/dist/client/assets/{github-repo-picker-CB-ypGEp.js → github-repo-picker-M1TBbLot.js} +1 -1
  96. package/dist/client/assets/{hooks-tDbCB3C5.js → hooks-DgSrpwcx.js} +6 -6
  97. package/dist/client/assets/{import-from-deco-dialog-wTIFbH1Y.js → import-from-deco-dialog-IZXHkaJ2.js} +1 -1
  98. package/dist/client/assets/{index-DmjWDqcd.js → index-5MyNR89x.js} +3 -3
  99. package/dist/client/assets/{index-D3WaYPH4.js → index-5XIJtJJp.js} +1 -1
  100. package/dist/client/assets/{index--njjOK24.js → index-BD4HYlEX.js} +1 -1
  101. package/dist/client/assets/{index-D3mRtkEB.js → index-BFW_K0gJ.js} +1 -1
  102. package/dist/client/assets/{index-Ftnw_1Xy.js → index-BQIJkmZH.js} +1 -1
  103. package/dist/client/assets/index-BWMRVcd2.js +513 -0
  104. package/dist/client/assets/{index-1nPke5TY.js → index-BgPTCVWL.js} +1 -1
  105. package/dist/client/assets/index-BqKQnks_.css +1 -0
  106. package/dist/client/assets/index-BvxT8QID.js +1 -0
  107. package/dist/client/assets/{index-DkjetCaY.js → index-CABmrUBB.js} +1 -1
  108. package/dist/client/assets/{index-B_kMLuGG.js → index-CO_UO0dQ.js} +1 -1
  109. package/dist/client/assets/{index-BTZwvNmT.js → index-CU_03aq0.js} +1 -1
  110. package/dist/client/assets/{index-DrUwfEHA.js → index-CshxsRNd.js} +1 -1
  111. package/dist/client/assets/{index-BFlpjafk.js → index-Cxp4ZtBG.js} +1 -1
  112. package/dist/client/assets/{index-DeiWC-uz.js → index-Db0TT11B.js} +1 -1
  113. package/dist/client/assets/{index-redirect-B6SIDrdt.js → index-redirect-Clw5irxr.js} +1 -1
  114. package/dist/client/assets/{input-BlaLo4Ee.js → input-D9aeO8wK.js} +1 -1
  115. package/dist/client/assets/{integration-icon-BF4ETuj8.js → integration-icon-CMGCCNyJ.js} +1 -1
  116. package/dist/client/assets/{label-GEC2UjFS.js → label-Bj7qsNrz.js} +1 -1
  117. package/dist/client/assets/{login-DiR83Uim.js → login-BF7DsD8r.js} +1 -1
  118. package/dist/client/assets/{mcp-oauth-sGspCuYg.js → mcp-oauth-DEfvhjPc.js} +1 -1
  119. package/dist/client/assets/{members-BDtCBiR9.js → members-5GqN16xx.js} +1 -1
  120. package/dist/client/assets/{monaco-editor-BKh1966p.js → monaco-editor-B3KzPr3D.js} +1 -1
  121. package/dist/client/assets/{monitoring-stats-row-Bdo8nd6T.js → monitoring-stats-row-B6byJzyf.js} +1 -1
  122. package/dist/client/assets/{oauth-callback-ai-provider-1VSCaYAB.js → oauth-callback-ai-provider-DGwgTWgk.js} +1 -1
  123. package/dist/client/assets/{oauth-callback-BexQI-2W.js → oauth-callback-xYG2bhs8.js} +1 -1
  124. package/dist/client/assets/{onboarding-CZfsqsuP.js → onboarding-CnEfKMnB.js} +1 -1
  125. package/dist/client/assets/{org-install-BCHSGKR9.js → org-install-DfRej3K2.js} +1 -1
  126. package/dist/client/assets/{org-layout-D5zV7CtT.js → org-layout-Bc9Glt8J.js} +1 -1
  127. package/dist/client/assets/{organization-choice-B_qzGE3r.js → organization-choice-DGTNMrAe.js} +1 -1
  128. package/dist/client/assets/{page-seo-form-Cg3EP0Kg.js → page-seo-form-CcZ53r1B.js} +1 -1
  129. package/dist/client/assets/page-seo-sheet-D8FULk67.js +1 -0
  130. package/dist/client/assets/{popover-BxWSrnHV.js → popover-DowpnV25.js} +1 -1
  131. package/dist/client/assets/post-editor-SVRg54TN.js +1 -0
  132. package/dist/client/assets/{preview-dialog-B6mTIXuI.js → preview-dialog-CwTtT7qa.js} +2 -2
  133. package/dist/client/assets/{primitives-DikyHxBV.js → primitives-CAIbeS4G.js} +1 -1
  134. package/dist/client/assets/{profile-CR2pTbhO.js → profile-BF9HkmK_.js} +1 -1
  135. package/dist/client/assets/project-app-view-BQ4gYl-m.js +1 -0
  136. package/dist/client/assets/record-editor-BNOUgLnP.js +1 -0
  137. package/dist/client/assets/registry-Bo4vnNv4.js +2 -0
  138. package/dist/client/assets/{registry-layout-BQTxWcaj.js → registry-layout-CRS0SBoX.js} +1 -1
  139. package/dist/client/assets/{require-capability-B1UdIHXr.js → require-capability-BclGG3Lq.js} +1 -1
  140. package/dist/client/assets/{required-auth-layout-CykGSzYq.js → required-auth-layout-CZqB7vUr.js} +1 -1
  141. package/dist/client/assets/{reset-password-BKTSF6vw.js → reset-password-CKTIPX2L.js} +1 -1
  142. package/dist/client/assets/{roles-tVsESxlL.js → roles-DTMTF-Ml.js} +1 -1
  143. package/dist/client/assets/{scroll-area-B8CDvPWi.js → scroll-area-DLqMfi_N.js} +1 -1
  144. package/dist/client/assets/{search-input-L82tU3Bd.js → search-input-BXzntIcj.js} +1 -1
  145. package/dist/client/assets/{secrets-BPwXng2k.js → secrets-D5X-Z3Mv.js} +1 -1
  146. package/dist/client/assets/{sections-editor-CuKTooG7.js → sections-editor-jc7NLaYJ.js} +2 -2
  147. package/dist/client/assets/{select-ySr8WoR1.js → select-CZgnwyj0.js} +1 -1
  148. package/dist/client/assets/{select-model-DdjL4UVJ.js → select-model-BLeb_gwV.js} +1 -1
  149. package/dist/client/assets/seo-editor-BCj_Owpk.js +1 -0
  150. package/dist/client/assets/{settings-layout-BBsWbAB4.js → settings-layout-QQo5fqWD.js} +1 -1
  151. package/dist/client/assets/{settings-section-ysOtzM09.js → settings-section-Br7JxQz6.js} +1 -1
  152. package/dist/client/assets/{sheet-X3VztLnq.js → sheet-M6dgbK60.js} +1 -1
  153. package/dist/client/assets/{shell-controls-DTY4r0Sw.js → shell-controls-CqC5zeBM.js} +1 -1
  154. package/dist/client/assets/{shell-layout-CdseotG7.js → shell-layout-CnTaR8UN.js} +1 -1
  155. package/dist/client/assets/{shell-route-loading-DNSXVK6N.js → shell-route-loading-DFu6UBUI.js} +1 -1
  156. package/dist/client/assets/{sidebar-H8VlLCcE.js → sidebar-oYab2QX7.js} +1 -1
  157. package/dist/client/assets/{skeleton-DknPHMRJ.js → skeleton-DoPnd-4p.js} +1 -1
  158. package/dist/client/assets/{sortable.esm-Ctxa79RM.js → sortable.esm-D8GIYMew.js} +1 -1
  159. package/dist/client/assets/{sso-WkG_Ya3-.js → sso-C9l3tEYi.js} +1 -1
  160. package/dist/client/assets/{store-BisoAFLO.js → store-DXXRJ_VG.js} +1 -1
  161. package/dist/client/assets/store-registry-DuMrJjAm.js +2 -0
  162. package/dist/client/assets/{studio-tools-BWRE75AX.js → studio-tools-4NjxmaVZ.js} +1 -1
  163. package/dist/client/assets/{switch-DR4CkZQD.js → switch-DLNzAYS1.js} +1 -1
  164. package/dist/client/assets/{table-C4Cy5HHY.js → table-B06cGuvx.js} +1 -1
  165. package/dist/client/assets/{tabs-C77-FnFK.js → tabs-8VxbUDVb.js} +1 -1
  166. package/dist/client/assets/{task-status-DIimAguz.js → task-status-Cm29b2AK.js} +1 -1
  167. package/dist/client/assets/{textarea-DzC7ppsf.js → textarea-Bwn2Wdf8.js} +1 -1
  168. package/dist/client/assets/{toggle-group-DUz2fIQy.js → toggle-group-CndOAl-N.js} +1 -1
  169. package/dist/client/assets/toolbar-ClL4Dhs_.js +1 -0
  170. package/dist/client/assets/{tools-list-CTCIGteU.js → tools-list-DL7ip2gg.js} +1 -1
  171. package/dist/client/assets/{tooltip-Cr9AJTu1.js → tooltip-DvT2WKW9.js} +1 -1
  172. package/dist/client/assets/{types-DIYYFrZY.js → types-U3TqUYrY.js} +4 -4
  173. package/dist/client/assets/{use-ai-providers-DnoPML_E.js → use-ai-providers-D4m0Vu5Q.js} +1 -1
  174. package/dist/client/assets/{use-automations-B4dRXrYb.js → use-automations-ChKoVegP.js} +1 -1
  175. package/dist/client/assets/{use-capability-CDOjpxJe.js → use-capability-CQPMPR-5.js} +1 -1
  176. package/dist/client/assets/{use-clock-tick-DfB4yM8e.js → use-clock-tick-CJO5qoT7.js} +1 -1
  177. package/dist/client/assets/{use-collections-C6o5d0Mn.js → use-collections-DAKL2YGx.js} +1 -1
  178. package/dist/client/assets/{use-connection-RPVug9uL.js → use-connection-BvgL1-Da.js} +1 -1
  179. package/dist/client/assets/{use-copy-DByELpSB.js → use-copy-WaepYGtr.js} +1 -1
  180. package/dist/client/assets/{use-create-virtual-mcp-DYyOoMN3.js → use-create-virtual-mcp-BSTwTG_J.js} +1 -1
  181. package/dist/client/assets/{use-debounced-autosave-D9laFBFB.js → use-debounced-autosave-mA5Fw-09.js} +1 -1
  182. package/dist/client/assets/{use-debounced-value-Bs78etny.js → use-debounced-value-cQ7ZQKtl.js} +1 -1
  183. package/dist/client/assets/{use-decopilot-events-DavYF-aF.js → use-decopilot-events-BDkaUhLT.js} +1 -1
  184. package/dist/client/assets/{use-delete-connection-9x3-oXog.js → use-delete-connection-B9XKLaZf.js} +1 -1
  185. package/dist/client/assets/{use-file-configs-YQp2GWKp.js → use-file-configs-Dfeoim5G.js} +1 -1
  186. package/dist/client/assets/{use-infinite-scroll-BmnUwDlC.js → use-infinite-scroll-4tV6tFjB.js} +1 -1
  187. package/dist/client/assets/{use-join-requests-wdTUrAXP.js → use-join-requests-CdAJlpjO.js} +1 -1
  188. package/dist/client/assets/{use-mcp-client-NDJy9UEP.js → use-mcp-client-CherrXvD.js} +2 -2
  189. package/dist/client/assets/{use-mcp-prompts-ziW0oQXD.js → use-mcp-prompts-BnOdccbh.js} +1 -1
  190. package/dist/client/assets/{use-mcp-tools-ByN1fg_5.js → use-mcp-tools-w6KwNDra.js} +1 -1
  191. package/dist/client/assets/{use-members-CqCv95kS.js → use-members-ge80zFlj.js} +1 -1
  192. package/dist/client/assets/{use-mobile-C1ok2Oda.js → use-mobile-lIIxFH5C.js} +1 -1
  193. package/dist/client/assets/{use-navigate-to-agent-GB89TSmS.js → use-navigate-to-agent-BtVHPn7N.js} +1 -1
  194. package/dist/client/assets/{use-org-auth-client-a0tV0I4a.js → use-org-auth-client-Ctxe3HXF.js} +1 -1
  195. package/dist/client/assets/{use-org-fs-C4An_fXX.js → use-org-fs-D-40uH2W.js} +1 -1
  196. package/dist/client/assets/{use-org-sso-DXOaOrbn.js → use-org-sso-BxzKK5rO.js} +1 -1
  197. package/dist/client/assets/{use-organization-roles-CsUVzen8.js → use-organization-roles-DmQYT9Pn.js} +1 -1
  198. package/dist/client/assets/{use-organization-settings-rqcqUUeR.js → use-organization-settings-CZfEdu0P.js} +1 -1
  199. package/dist/client/assets/{use-registry-connections-BHtQ89zr.js → use-registry-connections-C_VqH6te.js} +1 -1
  200. package/dist/client/assets/{use-secrets-CQoqzufN.js → use-secrets-Dn4coT0R.js} +1 -1
  201. package/dist/client/assets/{use-status-sounds-yeVUNOcg.js → use-status-sounds-CWHPQWBO.js} +1 -1
  202. package/dist/client/assets/{use-view-mode-D7GDuIV9.js → use-view-mode--ERDyrf1.js} +1 -1
  203. package/dist/client/assets/{use-virtual-mcp-DQxIBquV.js → use-virtual-mcp-C5pbd140.js} +1 -1
  204. package/dist/client/assets/useInfiniteQuery-_sl5B1oR.js +1 -0
  205. package/dist/client/assets/useSuspenseInfiniteQuery-_eC9d3ii.js +1 -0
  206. package/dist/client/assets/{useSuspenseQueries-DM2UC-1d.js → useSuspenseQueries-CRdXyKYB.js} +1 -1
  207. package/dist/client/assets/{variant-calendar-Dkf9XIru.js → variant-calendar-Dqcgu1C1.js} +1 -1
  208. package/dist/client/assets/{view-mode-toggle-1VKSbXaL.js → view-mode-toggle-BP4LoXpd.js} +1 -1
  209. package/dist/client/index.html +2 -2
  210. package/dist/server/cli.js +10 -1
  211. package/package.json +1 -1
  212. package/dist/client/assets/app-editor-Cfln2sHr.js +0 -1
  213. package/dist/client/assets/category-editor-BT4Cxoo3.js +0 -1
  214. package/dist/client/assets/file-explorer-BtYpNmrX.js +0 -2
  215. package/dist/client/assets/index-1MQY-aKx.css +0 -1
  216. package/dist/client/assets/index-DL5xoOQh.js +0 -513
  217. package/dist/client/assets/index-PHpiDror.js +0 -1
  218. package/dist/client/assets/page-seo-sheet-fP6EiExR.js +0 -1
  219. package/dist/client/assets/post-editor-CpIwB3m_.js +0 -1
  220. package/dist/client/assets/project-app-view-AkqKN49v.js +0 -1
  221. package/dist/client/assets/record-editor-Dm0nCNn9.js +0 -1
  222. package/dist/client/assets/registry-DhcyXlrd.js +0 -2
  223. package/dist/client/assets/seo-editor-BXwxtymi.js +0 -1
  224. package/dist/client/assets/store-registry-DKSrdFtG.js +0 -2
  225. package/dist/client/assets/toolbar-1nBak56S.js +0 -1
  226. package/dist/client/assets/useInfiniteQuery-BiSAb_zK.js +0 -1
  227. package/dist/client/assets/useSuspenseInfiniteQuery-9J-jWStM.js +0 -1
@@ -1,2 +0,0 @@
1
- import{c as Ke,r as l,j as i,i as re,B as fe,l as Be,m as ut,t as $,K as Te}from"./index-DmjWDqcd.js";import{F as mt,l as pt}from"./index-1nPke5TY.js";import{i as ht,ay as xt,az as gt,aA as ae,aB as yt,W as $e}from"./agent-icon-Ba-0ZYgG.js";import{a as wt}from"./Tool01-Dc5WA1H4.js";import{s as jt}from"./XClose-BaODJMh0.js";import{S as bt}from"./scroll-area-B8CDvPWi.js";import{T as Re,a as Oe,b as ze}from"./tooltip-Cr9AJTu1.js";import{f as vt,a as Ct,b as Nt,c as St,d as Dt,e as kt,A as Ft,g as Lt}from"./alert-dialog-Bqe6OAIL.js";import{u as Et}from"./chat-context-Ba1J4Wbr.js";import{b as Pt}from"./shell-layout-CdseotG7.js";import{am as le,an as Ae,ao as Tt}from"./index-DL5xoOQh.js";import{a as $t,b as Rt,c as Ot,D as zt,d as At,e as Wt}from"./dialog-onqVrhoh.js";import{I as We}from"./input-BlaLo4Ee.js";import{b as It,C as _,a as Ie,c as Mt,d as Kt}from"./context-menu-VSlW1NY7.js";import{t as Bt}from"./ChevronDown-BHp2n33E.js";import{i as Vt}from"./ChevronRight-HkVZWjVD.js";import{a as Gt}from"./ZoomOut-9WiOjKDc.js";import{E as qt,q as Me,r as he,s as Qt,t as Ut,u as Ht,v as M,w as ce,g as xe,x as ge,y as Jt,z as Xt,A as ye,B as de,C as we,D as Yt,G as Zt}from"./preview-dialog-B6mTIXuI.js";import"./AlertCircle-HztvGgEK.js";import"./SwitchHorizontal01-CtPAye2M.js";import"./Settings02-HJQMPAnK.js";import"./XCircle-BEhXc7sQ.js";import"./ArrowUpRight-CD45Pqa3.js";import"./ZapSquare-CmmJkOPb.js";import"./Users03-B7auzTEh.js";import"./CheckCircle-B93tZkib.js";import"./ChevronUp-DLoyITzq.js";import"./ChevronLeft-CkLGnzyI.js";import"./DotsVertical-DBVnta3o.js";import"./Stars02-CO1akjaP.js";import"./Eye-BuXBYPNx.js";import"./Globe01-DbyYsbkQ.js";import"./FilterLines-JdWf41nd.js";import"./Star01-BLuwEqBm.js";import"./Globe04-ht6-fzwU.js";import"./HardDrive-QsbiOkra.js";import"./Key01-B-rzooWI.js";import"./LayoutLeft-CvZZnjM_.js";import"./LinkExternal01-C75h4nTA.js";import"./Monitor01-C751a6VH.js";import"./Sun-DGf33qzc.js";import"./Palette-Cw4TmFXF.js";import"./Play-BaPiITj6.js";import"./Plus-cqzweyhV.js";import"./SearchLg-BgcbIGrG.js";import"./SearchMd-B_E38g9S.js";import"./Shield01-CYOeouzJ.js";import"./Stars01-bmKEIBXR.js";import"./Trash01-Dn19EDIc.js";import"./Upload01-AmIm4zQN.js";import"./User01-CYnD1B0h.js";import"./Users01-B3f8K1I8.js";import"./X-BJ5AK9_B.js";import"./Zap-CDSogr5w.js";import"./use-clock-tick-DfB4yM8e.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DByELpSB.js";import"./file-type-icon-B1XEm_9k.js";import"./use-mobile-C1ok2Oda.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-DIYYFrZY.js";import"./use-mcp-client-NDJy9UEP.js";import"./auth-CqOhN4mO.js";import"./hooks-tDbCB3C5.js";import"./decopilot-sse-pool-BR9ewfWR.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-BWRE75AX.js";import"./sheet-X3VztLnq.js";import"./integration-icon-BF4ETuj8.js";import"./use-virtual-mcp-DQxIBquV.js";import"./use-collections-C6o5d0Mn.js";import"./use-navigate-to-agent-GB89TSmS.js";import"./use-connection-RPVug9uL.js";import"./use-mcp-prompts-ziW0oQXD.js";import"./form-Dvd73W2C.js";import"./label-GEC2UjFS.js";import"./select-ySr8WoR1.js";import"./use-ai-providers-DnoPML_E.js";import"./use-decopilot-events-DavYF-aF.js";import"./use-organization-settings-rqcqUUeR.js";import"./avatar-DUFWGs9Z.js";import"./required-auth-layout-CykGSzYq.js";import"./use-org-sso-DXOaOrbn.js";import"./index-D3mRtkEB.js";import"./drawer-D6-83PZ_.js";import"./collection-search-D2jsOcE8.js";import"./tabs-C77-FnFK.js";import"./toggle-group-DUz2fIQy.js";import"./sortable.esm-Ctxa79RM.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CEtBve6r.js";import"./use-registry-connections-BHtQ89zr.js";import"./useInfiniteQuery-BiSAb_zK.js";import"./use-infinite-scroll-BmnUwDlC.js";import"./extract-connection-data-Dk45baha.js";import"./card-DuZccs_2.js";import"./collection-tabs-BlI5WHJs.js";import"./badge-ULvYE549.js";import"./textarea-DzC7ppsf.js";import"./connection-form-helpers-DtWH2w6r.js";import"./authenticate-and-persist-oauth-BkWGH7gY.js";import"./mcp-oauth-sGspCuYg.js";import"./useSuspenseInfiniteQuery-9J-jWStM.js";import"./connect-desktop-dialog-DPJKYCn-.js";import"./decopilot-Y0nnLngo.js";import"./checkbox-CZumSc8B.js";import"./skeleton-DknPHMRJ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-ysOtzM09.js";import"./popover-BxWSrnHV.js";import"./command-ClUS1KMM.js";import"./index--njjOK24.js";import"./use-org-fs-C4An_fXX.js";import"./dropdown-menu-D9g8Sl4X.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-yeVUNOcg.js";import"./empty-state-0bsCiepl.js";import"./toolbar-1nBak56S.js";import"./use-mcp-tools-ByN1fg_5.js";import"./use-capability-CDOjpxJe.js";import"./shell-route-loading-DNSXVK6N.js";import"./tools-list-CTCIGteU.js";import"./switch-DR4CkZQD.js";import"./use-debounced-autosave-D9laFBFB.js";import"./index-DrUwfEHA.js";import"./sidebar-H8VlLCcE.js";import"./search-input-L82tU3Bd.js";import"./github-repo-picker-CB-ypGEp.js";import"./use-debounced-value-Bs78etny.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-CQoqzufN.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-1VKSbXaL.js";import"./automation-runs-DIDLqvYF.js";import"./table-C4Cy5HHY.js";import"./use-members-CqCv95kS.js";import"./use-org-auth-client-a0tV0I4a.js";import"./task-status-DIimAguz.js";import"./use-automations-B4dRXrYb.js";import"./use-file-configs-YQp2GWKp.js";import"./monaco-editor-BKh1966p.js";import"./select-model-DdjL4UVJ.js";import"./automation-list-row-CjVzmIPj.js";const _t={"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 en(y){const e=Ke.c(51),{open:c,mode:K,initialName:X,parentLabel:Q,isPending:A,onSubmit:B,onOpenChange:P}=y,W=X===void 0?"":X,o=A===void 0?!1:A,[p,R]=l.useState(W),[I,V]=l.useState(c),f=_t[K];c!==I&&(V(c),c&&R(W));let F;e[0]!==o||e[1]!==P?(F=E=>{!E&&!o&&P(!1)},e[0]=o,e[1]=P,e[2]=F):F=e[2];const U=F;let G;e[3]!==o||e[4]!==p||e[5]!==B?(G=async E=>{E.preventDefault();const z=p.trim();!z||o||await B(z)},e[3]=o,e[4]=p,e[5]=B,e[6]=G):G=e[6];const q=G;let L;e[7]!==f.title?(L=i.jsx($t,{children:f.title}),e[7]=f.title,e[8]=L):L=e[8];let N;e[9]!==f.description?(N=i.jsx(Rt,{children:f.description}),e[9]=f.description,e[10]=N):N=e[10];let O;e[11]!==L||e[12]!==N?(O=i.jsxs(Ot,{children:[L,N]}),e[11]=L,e[12]=N,e[13]=O):O=e[13];let S;e[14]!==Q?(S=Q&&i.jsxs("div",{className:"space-y-1.5",children:[i.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Location"}),i.jsx(We,{value:Q,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[14]=Q,e[15]=S):S=e[15];let D;e[16]===Symbol.for("react.memo_cache_sentinel")?(D=i.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[16]=D):D=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=E=>R(E.target.value),e[17]=j):j=e[17];let b;e[18]!==f.placeholder||e[19]!==o||e[20]!==p?(b=i.jsxs("div",{className:"space-y-1.5",children:[D,i.jsx(We,{id:"file-explorer-name",value:p,onChange:j,placeholder:f.placeholder,autoFocus:!0,disabled:o})]}),e[18]=f.placeholder,e[19]=o,e[20]=p,e[21]=b):b=e[21];let h;e[22]!==b||e[23]!==S?(h=i.jsxs("div",{className:"space-y-4 py-4",children:[S,b]}),e[22]=b,e[23]=S,e[24]=h):h=e[24];let x;e[25]!==P?(x=()=>P(!1),e[25]=P,e[26]=x):x=e[26];let v;e[27]!==o||e[28]!==x?(v=i.jsx(fe,{type:"button",variant:"outline",onClick:x,disabled:o,children:"Cancel"}),e[27]=o,e[28]=x,e[29]=v):v=e[29];let C;e[30]!==o||e[31]!==p?(C=!p.trim()||o,e[30]=o,e[31]=p,e[32]=C):C=e[32];let u;e[33]!==f.submit||e[34]!==o?(u=o?i.jsxs(i.Fragment,{children:[i.jsx(re,{size:14,className:"animate-spin"}),"Saving…"]}):f.submit,e[33]=f.submit,e[34]=o,e[35]=u):u=e[35];let k;e[36]!==C||e[37]!==u?(k=i.jsx(fe,{type:"submit",disabled:C,children:u}),e[36]=C,e[37]=u,e[38]=k):k=e[38];let m;e[39]!==v||e[40]!==k?(m=i.jsxs(zt,{children:[v,k]}),e[39]=v,e[40]=k,e[41]=m):m=e[41];let g;e[42]!==q||e[43]!==h||e[44]!==m||e[45]!==O?(g=i.jsx(At,{className:"sm:max-w-md",children:i.jsxs("form",{onSubmit:q,children:[O,h,m]})}),e[42]=q,e[43]=h,e[44]=m,e[45]=O,e[46]=g):g=e[46];let T;return e[47]!==U||e[48]!==c||e[49]!==g?(T=i.jsx(Wt,{open:c,onOpenChange:U,children:g}),e[47]=U,e[48]=c,e[49]=g,e[50]=T):T=e[50],T}const tn="#d9a441";function nn(y){const e=Ke.c(45),{node:c,depth:K,isExpanded:X,isSelected:Q,isLoading:A,fileVisual:B,onOpen:P,onSelect:W,onNewFile:o,onNewFolder:p,onCopyPath:R,onCopyRelativePath:I,onRename:V,onDelete:f}=y,F=A===void 0?!1:A,U=c.kind==="directory",{Icon:G,color:q}=B,L=Q&&"bg-accent";let N;e[0]!==L?(N=Be("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",L),e[0]=L,e[1]=N):N=e[1];const O=`${K*14+8}px`;let S;e[2]!==O?(S={paddingLeft:O},e[2]=O,e[3]=S):S=e[3];let D;e[4]!==P||e[5]!==W?(D=()=>{W(),P()},e[4]=P,e[5]=W,e[6]=D):D=e[6];let j;e[7]!==G||e[8]!==q||e[9]!==U||e[10]!==X||e[11]!==F?(j=U?i.jsxs(i.Fragment,{children:[F?i.jsx(re,{size:14,className:"shrink-0 animate-spin text-muted-foreground"}):X?i.jsx(Bt,{size:14,className:"shrink-0 text-muted-foreground"}):i.jsx(Vt,{size:14,className:"shrink-0 text-muted-foreground"}),i.jsx(Gt,{size:16,className:"shrink-0",style:{color:tn}})]}):i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"w-3.5 shrink-0"}),i.jsx(G,{size:16,className:"shrink-0",style:{color:q}})]}),e[7]=G,e[8]=q,e[9]=U,e[10]=X,e[11]=F,e[12]=j):j=e[12];let b;e[13]!==c.name?(b=i.jsx("span",{className:"truncate",children:c.name}),e[13]=c.name,e[14]=b):b=e[14];let h;e[15]!==N||e[16]!==S||e[17]!==D||e[18]!==j||e[19]!==b?(h=i.jsx(It,{asChild:!0,children:i.jsxs("button",{type:"button",className:N,style:S,onClick:D,children:[j,b]})}),e[15]=N,e[16]=S,e[17]=D,e[18]=j,e[19]=b,e[20]=h):h=e[20];let x;e[21]!==o?(x=i.jsx(_,{onSelect:o,children:"New File"}),e[21]=o,e[22]=x):x=e[22];let v;e[23]!==p?(v=i.jsx(_,{onSelect:p,children:"New Folder"}),e[23]=p,e[24]=v):v=e[24];let C;e[25]===Symbol.for("react.memo_cache_sentinel")?(C=i.jsx(Ie,{}),e[25]=C):C=e[25];let u;e[26]!==R?(u=i.jsx(_,{onSelect:R,children:"Copy Path"}),e[26]=R,e[27]=u):u=e[27];let k;e[28]!==I?(k=i.jsx(_,{onSelect:I,children:"Copy Relative Path"}),e[28]=I,e[29]=k):k=e[29];let m;e[30]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(Ie,{}),e[30]=m):m=e[30];let g;e[31]!==V?(g=i.jsx(_,{onSelect:V,children:"Rename"}),e[31]=V,e[32]=g):g=e[32];let T;e[33]!==f?(T=i.jsx(_,{variant:"destructive",onSelect:f,children:"Delete"}),e[33]=f,e[34]=T):T=e[34];let E;e[35]!==x||e[36]!==v||e[37]!==u||e[38]!==k||e[39]!==g||e[40]!==T?(E=i.jsxs(Mt,{className:"w-52",children:[x,v,C,u,k,m,g,T]}),e[35]=x,e[36]=v,e[37]=u,e[38]=k,e[39]=g,e[40]=T,e[41]=E):E=e[41];let z;return e[42]!==E||e[43]!==h?(z=i.jsxs(Kt,{children:[h,E]}),e[42]=E,e[43]=h,e[44]=z):z=e[44],z}pt.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function je(y,e,c,K){return`/api/${y}/sandbox/${encodeURIComponent(e)}/${encodeURIComponent(c)}/${K}`}function rn(y){const e=M(y);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}const sn="#94a3b8";function on(y){const e=y.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:ae,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:ae,color:"#d9a441"}:e.endsWith(".json")?{Icon:yt,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:ae,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:ae,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:wt,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:$e,color:"#64748b"}:{Icon:$e,color:sn}}function Gi({orgSlug:y,virtualMcpId:e,branch:c,openPath:K}){const[X,Q]=l.useState({files:[],directories:[],truncated:!1}),{files:A,directories:B}=X,[P,W]=l.useState(new Set),[o,p]=l.useState(null),[R,I]=l.useState(null),[V,f]=l.useState([]),[F,U]=l.useState(""),[G,q]=l.useState(!1),[L,N]=l.useState(!1),[,O]=l.useState(new Set),[S,D]=l.useState(new Set),j=l.useRef(0),b=l.useRef(null),h=l.useRef(new Set),x=l.useRef(new Map);function v(t){O(n=>{const r=typeof t=="function"?t(n):t;return h.current=r,r})}const[C,u]=l.useState(new Map),k=l.useRef(null),[m,g]=l.useState(null),{sendMessage:T}=Et(),{setChatOpen:E}=Pt(),z=ut(),[w,H]=l.useState(null),[J,ue]=l.useState(null),[ee,ie]=l.useState(!1);async function te(t,n){const r=await fetch(je(y,e,c,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!r.ok){const s=await r.json().catch(()=>({}));throw new Error(s.error??`Request failed (${r.status})`)}return r.json()}async function se(){z.invalidateQueries({queryKey:Ae(y,e,c)})}function be(t,n){navigator.clipboard.writeText(n).then(()=>$.success(`${t} copied`),()=>$.error(`Failed to copy ${t.toLowerCase()}`))}function Ve(t){const n=Yt(t);if(!n)return;const r=`${y}/${e}/${c}`;z.setQueryData(Te.decofile(r),s=>{if(!s)return s;const{[n]:a,...d}=s;return d}),z.invalidateQueries({queryKey:Te.liveMeta(r)})}function Ge(t){const n=t.kind==="file"?[t.path]:A.filter(r=>r.startsWith(".deco/blocks/")).map(r=>ce(r)).filter(r=>r===t.path||r.startsWith(`${t.path}/`));for(const r of n)Ve(r)}function qe(t){const n=ce(t);return V.filter(r=>{if(r!==n&&!r.startsWith(`${n}/`))return!1;const s=C.get(r);return!!(s?.loaded&&s.editorValue!==s.savedContent)})}function ve(t){f(n=>n.map(r=>t(r)).filter(r=>r!==null)),p(n=>n&&t(n)),u(n=>{const r=new Map;for(const[s,a]of n){const d=t(s);d&&r.set(d,a)}return r}),I(n=>{if(!n)return n;const r=t(n.path);return r?r===n.path?n:{...n,path:r,name:r.split("/").pop()??r}:null})}function Qe(t){const n=ce(t);I(r=>r&&(r.path===n||r.path.startsWith(`${n}/`)?null:r)),ve(r=>r===n||r.startsWith(`${n}/`)?null:r)}async function Ue(t){if(!w)return;const n=de(w.parentDir,t);if(we(n,A,B))throw new Error(`"${t}" already exists`);await te("write",{path:M(n),content:""}),await ne(),await se(),H(null),me(n)}async function He(t){if(!w)return;const n=de(w.parentDir,t);if(we(n,A,B))throw new Error(`"${t}" already exists`);const r=M(n);await te("mkdir",{path:r}),Q(s=>({...s,directories:s.directories.includes(r)?s.directories:[...s.directories,r]})),await ne(),await se(),H(null),W(s=>{const a=new Set(s);for(const d of he(n))a.add(d);return a.add(n),a}),I({name:t,path:n,kind:"directory",children:[]})}async function Je(t){if(!w)return;const n=w.node.path,r=ye(n),s=de(r,t);if(s===n){H(null);return}if(we(s,A,B))throw new Error(`"${t}" already exists`);await te("rename",{from:M(n),to:M(s)}),ve(a=>a===n?s:a.startsWith(`${n}/`)?de(s,a.slice(n.length+1)):a),await ne(),await se(),H(null)}async function Xe(t){ie(!0);try{await te("unlink",{path:M(t.path),recursive:t.kind==="directory"}),Ge(t),Qe(t.path),await ne(),await se(),ue(null),$.success(`Deleted "${t.name}"`)}catch(n){$.error(n instanceof Error?n.message:"Delete failed")}finally{ie(!1)}}async function Ye(t){const n=Xt(t);if(n){$.error(n);return}ie(!0);try{w?.mode==="new-file"?(await Ue(t),$.success(`Created "${t}"`)):w?.mode==="new-folder"?(await He(t),$.success(`Created folder "${t}"`)):w?.mode==="rename"&&(await Je(t),$.success(`Renamed to "${t}"`))}catch(r){$.error(r instanceof Error?r.message:"Operation failed")}finally{ie(!1)}}const Ce=l.useRef(!1);Ce.current||(Ce.current=!0,b.current=ne());const[Ze,_e]=l.useState(null);if(K&&K!==Ze){_e(K);const t=K;queueMicrotask(()=>{rn(t)&&me(t).catch(n=>{$.error(n instanceof Error?n.message:"Failed to open file")})})}async function Ne(t){const n=await te("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Se(t,n,r){if(r!==j.current)return!1;let s=!1;return Q(a=>{const d=n?Zt(a.files,a.directories,t,a.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return s=!!d.truncated,{files:d.files,directories:d.directories,truncated:s}}),s&&$.warning("File list truncated — some files may be hidden"),s}async function et(t){const n=x.current.get(t);if(n)return n;const r=j.current,s=(async()=>{const a=await Ne({pattern:"**/*",path:M(t),limit:Me}),d=Se(a,!0,r);return!d&&r===j.current&&v(Y=>{const oe=new Set(Y);return oe.add(t),oe}),d})();x.current.set(t,s);try{return await s}finally{x.current.delete(t)}}async function De(t){if(!ge(t,h.current))return!1;D(n=>new Set(n).add(t));try{return await et(t)}finally{D(n=>{const r=new Set(n);return r.delete(t),r})}}async function tt(t){const n=new Set(h.current);for(const r of he(t)){if(!ge(r,n))continue;if(await De(r))throw new Error("Folder listing truncated — expand again to load more");n.add(r)}}async function ne(){const t=++j.current;x.current.clear(),q(!0),v(new Set),W(new Set),D(new Set);try{const n=await Ne({pattern:"**/*",limit:Me,maxDepth:qt});Se(n,!1,t),N(!0)}catch{L&&$.error("Failed to refresh file tree")}finally{q(!1)}}async function ke(t){if(!C.get(t)?.loaded){u(r=>{const s=new Map(r);return s.set(t,{savedContent:"",editorValue:"",loaded:!1}),s});try{const r=await fetch(je(y,e,c,"read"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:M(t),full:!0})});if(!r.ok)return;const s=await r.json(),a=Jt(s.content??"");u(d=>{const Y=new Map(d);return Y.set(t,{savedContent:a,editorValue:a,loaded:!0}),Y})}catch{}}}async function nt(t,n){try{const r=await fetch(je(y,e,c,"write"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:M(t),content:n})});if(!r.ok){le("file save failed",{path:t,status:r.status});return}le("file saved via sandbox /write",{path:t}),z.invalidateQueries({queryKey:Ae(y,e,c)});try{const s=await Tt(y,e,c);le("git status after save",s)}catch(s){le("git status after save failed",{path:t,error:s instanceof Error?s.message:String(s)})}u(s=>{const a=new Map(s),d=a.get(t);return d&&a.set(t,{...d,savedContent:n}),a})}catch{}}function rt(t){p(t),I({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),g(null),V.includes(t)||f(n=>[...n,t]),ke(t)}function it(t){f(n=>{const r=n.filter(s=>s!==t);return o===t&&p(r[r.length-1]??null),r}),u(n=>{const r=new Map(n);return r.delete(t),r})}function Fe(t){W(n=>{const r=new Set(n);return r.has(t)?r.delete(t):r.add(t),r})}async function st(t){if(ge(t,h.current))try{if(await De(t))return}catch(n){$.error(n instanceof Error?n.message:"Failed to load folder");return}Fe(t)}async function ot(t,n){if(n){Fe(t);return}await st(t)}async function me(t){await b.current,await tt(t);const n=he(t);W(r=>{const s=new Set(r);for(const a of n)s.add(a);return s}),rt(t)}function at(){return R?.kind==="directory"?R.path:R?.kind==="file"?ye(R.path):o?ye(o):"/"}function Le(t){const n=at();H({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const lt=Qt(A,B),Ee=Ut(lt,P),Pe=F?Ee.filter(t=>t.node.name.toLowerCase().includes(F.toLowerCase())):Ee,Z=o?C.get(o):null,ct=Z?.loaded&&Z.editorValue!==Z.savedContent,pe=J?qe(J.path):[],dt=(t,n)=>{k.current=t,t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!o)return;const r=t.getValue();await nt(o,r)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const r=t.getSelection(),s=t.getModel();if(!r||!s||!o)return;const a=s.getValueInRange(r);g({filePath:o,lineStart:r.startLineNumber,lineEnd:r.endLineNumber,selectedCode:a})})};function ft(t){if(!m)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${m.filePath}\``,`**Lines:** ${m.lineStart}–${m.lineEnd}`];if(m.selectedCode){const r=xe(m.filePath),s=m.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+r,s,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),E(!0),T({parts:[{type:"text",text:n.join(`
2
- `)}]}),g(null)}return G&&!L?i.jsx("div",{className:"flex items-center justify-center h-full w-full",children:i.jsx(re,{size:20,className:"animate-spin text-muted-foreground"})}):i.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[i.jsxs("div",{className:"w-64 shrink-0 border-r flex flex-col overflow-hidden",children:[i.jsxs("div",{className:"flex items-center gap-1 p-2 border-b",children:[i.jsxs("div",{className:"relative min-w-0 flex-1",children:[i.jsx(ht,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),i.jsx("input",{type:"text",value:F,onChange:t=>U(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"})]}),i.jsxs(Re,{children:[i.jsx(Oe,{asChild:!0,children:i.jsx(fe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New file",onClick:()=>Le("new-file"),children:i.jsx(xt,{size:14})})}),i.jsx(ze,{side:"bottom",children:"New file"})]}),i.jsxs(Re,{children:[i.jsx(Oe,{asChild:!0,children:i.jsx(fe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New folder",onClick:()=>Le("new-folder"),children:i.jsx(gt,{size:14})})}),i.jsx(ze,{side:"bottom",children:"New folder"})]})]}),i.jsx(bt,{className:"flex-1",children:i.jsxs("div",{className:"py-1",children:[Pe.map(t=>{const{node:n,depth:r}=t,s=n.kind==="directory",a=P.has(n.path),d=R?.path===n.path,Y=Ht(n.path,n.kind),oe=s&&S.has(n.path);return i.jsx(nn,{node:n,depth:r,isExpanded:a,isSelected:d,isLoading:oe,fileVisual:on(n.name),onSelect:()=>I(n),onOpen:()=>{s?ot(n.path,a):me(n.path)},onNewFile:()=>H({mode:"new-file",node:n,parentDir:Y}),onNewFolder:()=>H({mode:"new-folder",node:n,parentDir:Y}),onCopyPath:()=>be("Path",ce(n.path)),onCopyRelativePath:()=>be("Relative path",M(n.path)),onRename:()=>H({mode:"rename",node:n,parentDir:Y}),onDelete:()=>ue(n)},n.path)}),L&&Pe.length===0&&i.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:F?`No files match "${F}"`:"No files found"})]})})]}),i.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[V.length>0&&i.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:V.map(t=>{const n=C.get(t),r=n?.loaded&&n.editorValue!==n.savedContent,s=o===t,a=t.split("/").pop()??t;return i.jsxs("div",{className:Be("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",s?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{p(t),ke(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":s,children:[i.jsx("span",{className:"truncate max-w-32",children:a}),r&&i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),i.jsx("button",{type:"button",className:"ml-1 rounded p-0.5 hover:bg-accent-foreground/10",onClick:d=>{d.stopPropagation(),it(t)},children:i.jsx(jt,{size:12})})]},t)})}),m&&i.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 mt-2",style:{width:"360px"},children:i.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 r=t.currentTarget.elements.namedItem("askAiInput");r.value.trim()&&ft(r.value)},children:[i.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"&&g(null)}}),i.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:i.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[i.jsx("title",{children:"Send"}),i.jsx("path",{d:"M5 9V1M1 5l4-4 4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),i.jsx("div",{className:"flex-1 overflow-hidden",children:o&&Z?.loaded?i.jsx(mt,{language:xe(o),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:Z.editorValue,path:o,onChange:t=>{const n=o;n&&u(r=>{const s=new Map(r),a=s.get(n);return a&&s.set(n,{...a,editorValue:t??""}),s})},onMount:dt,loading:i.jsx("div",{className:"flex items-center justify-center h-full w-full",children:i.jsx(re,{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}}},o):o&&!Z?.loaded?i.jsx("div",{className:"flex items-center justify-center h-full w-full",children:i.jsx(re,{size:20,className:"animate-spin text-muted-foreground"})}):i.jsx("div",{className:"flex items-center justify-center h-full w-full text-sm text-muted-foreground",children:"Select a file to edit"})}),o&&i.jsxs("div",{className:"flex items-center justify-between px-3 py-1 border-t text-[11px] text-muted-foreground shrink-0",children:[i.jsx("span",{className:"truncate",children:o}),i.jsxs("span",{children:[ct?"Modified":"Saved"," ·"," ",xe(o)]})]})]}),i.jsx(en,{open:w!==null,mode:w?.mode??"new-file",initialName:w?.mode==="rename"?w.node.name:"",parentLabel:w&&w.mode!=="rename"?w.parentDir==="/"?"/":M(w.parentDir):void 0,isPending:ee,onSubmit:Ye,onOpenChange:t=>{!t&&!ee&&H(null)}}),i.jsx(vt,{open:J!==null,onOpenChange:t=>{!t&&!ee&&ue(null)},children:i.jsxs(Ct,{children:[i.jsxs(Nt,{children:[i.jsxs(St,{children:["Delete ",J?.kind==="directory"?"folder":"file","?"]}),i.jsxs(Dt,{children:["This will permanently delete"," ",i.jsx("span",{className:"font-mono",children:J?.name}),J?.kind==="directory"?" and everything inside it.":".",pe.length>0&&i.jsxs(i.Fragment,{children:[" ",pe.length===1?"One open file has unsaved changes that will be lost.":`${pe.length} open files have unsaved changes that will be lost.`]})]})]}),i.jsxs(kt,{children:[i.jsx(Ft,{disabled:ee,children:"Cancel"}),i.jsx(Lt,{disabled:ee||!J,onClick:t=>{t.preventDefault(),J&&Xe(J)},children:"Delete"})]})]})})]})}export{Gi as FileExplorer};