decocms 4.397.0 → 4.397.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 (352) hide show
  1. package/dist/client/assets/{AlertCircle-B3LJiQhZ.js → AlertCircle-DwYUjJBu.js} +1 -1
  2. package/dist/client/assets/{AreaChart-C3D5EayI.js → AreaChart-BhT_gWYN.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DmWma6hW.js → ArrowLeft-BrzmATFY.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-540iMVH3.js → ArrowRight-DYu8UyAE.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BB5V3348.js → ArrowUp-Bgr2TLsm.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-CYHbwjBR.js → CartesianChart-D3J9yYMj.js} +1 -1
  7. package/dist/client/assets/{Check-CGKF06bT.js → Check-BgzQchyA.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-tvGC17Dy.js → CheckCircle-DxLYuezp.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-Du4AWZmG.js → ChevronUp-CEt2-KWf.js} +1 -1
  10. package/dist/client/assets/{Copy01-CYbqJpFZ.js → Copy01-DY06zeXh.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-CK4yyvJY.js → CreditCard01-atzqozkq.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-BQfY36BV.js → DotsVertical-DY1WVLqG.js} +1 -1
  13. package/dist/client/assets/{Download01-C8jubU2p.js → Download01-BsnTCWqr.js} +1 -1
  14. package/dist/client/assets/{ErrorBarContext-DIzox7VI.js → ErrorBarContext-q2DeMR5z.js} +1 -1
  15. package/dist/client/assets/{Eye-CpLoEsen.js → Eye-BCLEOXNL.js} +1 -1
  16. package/dist/client/assets/{Globe04-DnURSsdQ.js → Globe04-C9YOUwUx.js} +1 -1
  17. package/dist/client/assets/{Image01-DPZCMheY.js → Image01-Dnl26WcB.js} +1 -1
  18. package/dist/client/assets/{Key01-CSyDklFV.js → Key01-CwoMWwVQ.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-DgiG6wiH.js → LayoutLeft-Bis2ERIL.js} +1 -1
  20. package/dist/client/assets/{Line-BzHEfJpl.js → Line-BkS8r3Hh.js} +1 -1
  21. package/dist/client/assets/{Link01-CYG0Mr8Q.js → Link01-1Ii-ZBB1.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-Div0d_z3.js → LinkExternal01-CxPBcUve.js} +1 -1
  23. package/dist/client/assets/{Monitor01-BrSZ6zzu.js → Monitor01-DypnteF9.js} +1 -1
  24. package/dist/client/assets/{Package-C5JGfmw5.js → Package-DLofDsnv.js} +1 -1
  25. package/dist/client/assets/{Palette-Bm4HMPv2.js → Palette-DZw1jmn0.js} +1 -1
  26. package/dist/client/assets/{Plus-Do5Wkomw.js → Plus-DJAmbMrJ.js} +1 -1
  27. package/dist/client/assets/{SearchLg-gOfrWgIs.js → SearchLg-0M2kccVO.js} +1 -1
  28. package/dist/client/assets/{SearchMd-B9ModJFt.js → SearchMd-BT8cdzsW.js} +1 -1
  29. package/dist/client/assets/{Sector-83Vf-xGJ.js → Sector-BJGxTbou.js} +1 -1
  30. package/dist/client/assets/{Share07-DpckpNEB.js → Share07-BqFFQNeK.js} +1 -1
  31. package/dist/client/assets/{Stars01-B6IfixlN.js → Stars01-BFm8fGnC.js} +1 -1
  32. package/dist/client/assets/{Sun-CzonSHrU.js → Sun-qCW4hQHf.js} +1 -1
  33. package/dist/client/assets/{Tool01-DK_vv6qf.js → Tool01-BNu7BHqQ.js} +1 -1
  34. package/dist/client/assets/{Trash01-Dw6PLr8l.js → Trash01-CSeT8ZD8.js} +1 -1
  35. package/dist/client/assets/{Upload01-BsQDz7U2.js → Upload01-GlJ5Ud3s.js} +1 -1
  36. package/dist/client/assets/{User01-Bla6DkK3.js → User01-D0NPPWmZ.js} +1 -1
  37. package/dist/client/assets/{UserSquare-CHvWRyuq.js → UserSquare-B_QuMjVL.js} +1 -1
  38. package/dist/client/assets/{Users01-fXdkObFe.js → Users01-K81i8krS.js} +1 -1
  39. package/dist/client/assets/{X-CLqvixem.js → X-ClBxN2Lo.js} +1 -1
  40. package/dist/client/assets/{XCircle-xC8IFHez.js → XCircle-Ds0Log1_.js} +1 -1
  41. package/dist/client/assets/{XClose-1APsw2yP.js → XClose-DjadAVCX.js} +1 -1
  42. package/dist/client/assets/{Zap-SzxRRv0w.js → Zap-D3U8XJRb.js} +1 -1
  43. package/dist/client/assets/{ZoomOut-DD-ULjJm.js → ZoomOut-DsH_k1C4.js} +1 -1
  44. package/dist/client/assets/{access-gate-DuyMJbDj.js → access-gate-CuIthKSm.js} +1 -1
  45. package/dist/client/assets/{add-connection-dialog-D9j0h-SU.js → add-connection-dialog-BKL_hKkk.js} +1 -1
  46. package/dist/client/assets/{agent-analytics-BYTMzPFg.js → agent-analytics-AEMDlU2l.js} +1 -1
  47. package/dist/client/assets/agent-app-Dg3IYcc1.js +1 -0
  48. package/dist/client/assets/{agent-assets-BvxD5BYD.js → agent-assets-BI_o8EXn.js} +1 -1
  49. package/dist/client/assets/{agent-automation-Ba85XZXF.js → agent-automation-DUiD7Tiw.js} +1 -1
  50. package/dist/client/assets/{agent-automations-C3Rb_m0i.js → agent-automations-BqRu2Acp.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-BAkxw0dJ.js → agent-connect-sources-wVhW_Voj.js} +1 -1
  52. package/dist/client/assets/agent-deck-BZGEf92K.js +1 -0
  53. package/dist/client/assets/{agent-e2e-DfSc6gB-.js → agent-e2e-B_VPTtsE.js} +1 -1
  54. package/dist/client/assets/{agent-experiments-DYALFaiE.js → agent-experiments-VNCtI9MN.js} +1 -1
  55. package/dist/client/assets/agent-file-D1Iq_S8L.js +1 -0
  56. package/dist/client/assets/{agent-git-Cx-YU73R.js → agent-git-DvIcC2QG.js} +1 -1
  57. package/dist/client/assets/{agent-hosting-BCPfQ2PT.js → agent-hosting-DQWvdG7u.js} +1 -1
  58. package/dist/client/assets/{agent-icon-CVsOY5Om.js → agent-icon-v-YF8SZ6.js} +1 -1
  59. package/dist/client/assets/agent-library-file-DJ5gCk1X.js +1 -0
  60. package/dist/client/assets/{agent-monitor-B-yEUTbW.js → agent-monitor-CEAGevcJ.js} +1 -1
  61. package/dist/client/assets/{agent-overview-Cfajc4T9.js → agent-overview-B9mWtQrN.js} +1 -1
  62. package/dist/client/assets/agent-settings-Bd8_YJSI.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-CkmomzNE.js → agent-site-editor-Dn-SwMeX.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-Y4xPIzmS.js +2 -0
  65. package/dist/client/assets/{agent-site-editor-content-CmJpSlh2.js → agent-site-editor-content-Dn2d28FJ.js} +3 -3
  66. package/dist/client/assets/{agent-site-editor-preview-DDrBOF0Z.js → agent-site-editor-preview-BGtSWN6k.js} +3 -3
  67. package/dist/client/assets/agent-view-BqNl4IOK.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-B7Mzpeja.js → agent-view-guard-KuUlGmjg.js} +1 -1
  69. package/dist/client/assets/{agents-list-IOt-xE6T.js → agents-list-DUTGAaYB.js} +1 -1
  70. package/dist/client/assets/{ai-providers-tko4xsdH.js → ai-providers-CvP0mu_h.js} +1 -1
  71. package/dist/client/assets/{alert-CQx6yLHp.js → alert-BGlOaWga.js} +1 -1
  72. package/dist/client/assets/{alert-dialog-m7PHs13d.js → alert-dialog-5zuyoQ54.js} +1 -1
  73. package/dist/client/assets/{analytics-sections-DsjRpqe8.js → analytics-sections-B2FKhhgH.js} +1 -1
  74. package/dist/client/assets/{api-keys-BprG_h9e.js → api-keys-B85PZWC-.js} +1 -1
  75. package/dist/client/assets/api-keys-guA8nw2b.js +1 -0
  76. package/dist/client/assets/app-editor-B4Z-g5Dd.js +1 -0
  77. package/dist/client/assets/{asset-utils-DvBCIwrI.js → asset-utils-DHE59DFm.js} +1 -1
  78. package/dist/client/assets/{auth-k9t16OOb.js → auth-Bdfh9TTN.js} +1 -1
  79. package/dist/client/assets/{auth-catchall-C7UKh7ij.js → auth-catchall-BoMWkor5.js} +1 -1
  80. package/dist/client/assets/{auth-entry-C6RqohRy.js → auth-entry-BEwITJEV.js} +1 -1
  81. package/dist/client/assets/{auth-split-layout-BHZF4vyi.js → auth-split-layout-BdEGeOmG.js} +1 -1
  82. package/dist/client/assets/{authenticate-and-persist-oauth-8HHvB0nM.js → authenticate-and-persist-oauth-DKS7LloY.js} +1 -1
  83. package/dist/client/assets/{automation-list-row-C44HdDvH.js → automation-list-row-C8lOzNNS.js} +1 -1
  84. package/dist/client/assets/{automation-runs-BCo5l857.js → automation-runs-VhaUbL_z.js} +1 -1
  85. package/dist/client/assets/{automations-CYGQmasI.js → automations-BxXnVrTy.js} +1 -1
  86. package/dist/client/assets/{autosend-BKkKn8iq.js → autosend-D8pg19Rh.js} +1 -1
  87. package/dist/client/assets/{avatar-B9CWtHB4.js → avatar-CAxICn2w.js} +1 -1
  88. package/dist/client/assets/{badge-DS7xysUQ.js → badge-BnOb-zsy.js} +1 -1
  89. package/dist/client/assets/{block-document-C4eQcnX0.js → block-document-Kro-pK9Z.js} +1 -1
  90. package/dist/client/assets/{blocks-preview-workspace-context-sjVUFVpv.js → blocks-preview-workspace-context-DdZhOygI.js} +1 -1
  91. package/dist/client/assets/{breadcrumb-DgDOitTK.js → breadcrumb-CkGzv7W5.js} +1 -1
  92. package/dist/client/assets/{buckets-B9kHwSwC.js → buckets-CjuL4oVA.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-lqIM7ao_.js → build-improve-prompt-doc-BUDaGIGD.js} +1 -1
  94. package/dist/client/assets/{calendar-v9y9PDp2.js → calendar-Rh3Ayi6D.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-BByCTECw.js → capability-load-error-Dy5jJdoS.js} +1 -1
  96. package/dist/client/assets/{category-editor-BreOyR0b.js → category-editor-BWM9wIdp.js} +1 -1
  97. package/dist/client/assets/{chart-BCxri3_D.js → chart-BXfjoXsa.js} +1 -1
  98. package/dist/client/assets/{chat-context-CIrojUbL.js → chat-context-ZGS-0Lc6.js} +1 -1
  99. package/dist/client/assets/{chat-draft-CsL23XeE.js → chat-draft-WttJ8tkW.js} +1 -1
  100. package/dist/client/assets/{checkbox-DXebLGmO.js → checkbox-8e5Ux6Bp.js} +1 -1
  101. package/dist/client/assets/{choose-editor-DTKQtlb0.js → choose-editor-C6KpaeEk.js} +1 -1
  102. package/dist/client/assets/{claim-phase-copy-Oexgf5gh.js → claim-phase-copy-B9MsUskO.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-BnGCv2Bd.js → cli-auth-success-Li-2eHwe.js} +1 -1
  104. package/dist/client/assets/{client-icons-D2WOCZv4.js → client-icons-xZ20IU_9.js} +1 -1
  105. package/dist/client/assets/{collapsible-Ckib1khq.js → collapsible-BSf9Onia.js} +1 -1
  106. package/dist/client/assets/{collection-detail-DnoTme22.js → collection-detail-fBl2Fztc.js} +1 -1
  107. package/dist/client/assets/{collection-display-button-CJrP29Qc.js → collection-display-button-4NcwJUay.js} +1 -1
  108. package/dist/client/assets/{collection-search-B2Rze4Ue.js → collection-search-DUPEyodi.js} +1 -1
  109. package/dist/client/assets/{collection-table-wrapper-C4p-UNKT.js → collection-table-wrapper-zQraMMIZ.js} +1 -1
  110. package/dist/client/assets/{collection-tabs-CrAcGqu0.js → collection-tabs-DltvKsB7.js} +1 -1
  111. package/dist/client/assets/{combobox-lelWCr2H.js → combobox-CFoM-dcS.js} +1 -1
  112. package/dist/client/assets/{command-DZRWMxD5.js → command-0Q71adD5.js} +1 -1
  113. package/dist/client/assets/{companion-mcps-section-Di0GvwiM.js → companion-mcps-section-A0aC2MKi.js} +1 -1
  114. package/dist/client/assets/{connect-DQoon_ei.js → connect-jOjDz1xq.js} +1 -1
  115. package/dist/client/assets/{connect-layout-DxnvLjPI.js → connect-layout-BrutlKFN.js} +1 -1
  116. package/dist/client/assets/{connection-BtvJKuLN.js → connection-BwlYp_98.js} +1 -1
  117. package/dist/client/assets/{connection-card-CEFIrJY3.js → connection-card-BwH4OiUh.js} +1 -1
  118. package/dist/client/assets/{connection-detail-B-1EXZEm.js → connection-detail-CM-qh20_.js} +1 -1
  119. package/dist/client/assets/{connection-form-helpers-DFcBYAWG.js → connection-form-helpers-DukXidKL.js} +1 -1
  120. package/dist/client/assets/{connections-BDHqljAv.js → connections-cAoSaU23.js} +1 -1
  121. package/dist/client/assets/{context-DWKz0IRn.js → context-Dqy_Piwx.js} +1 -1
  122. package/dist/client/assets/{create-organization-dialog-VdEJZP_b.js → create-organization-dialog-2wNLwwUG.js} +1 -1
  123. package/dist/client/assets/{decofile-api-DrtvihiV.js → decofile-api-Bk6Q_m6Q.js} +1 -1
  124. package/dist/client/assets/{decopilot-CaIWBpB6.js → decopilot-CjeDftvq.js} +1 -1
  125. package/dist/client/assets/{dialog-DiUlVwD1.js → dialog-aNfvq0Gx.js} +1 -1
  126. package/dist/client/assets/{discover-S8lOKkYU.js → discover-BhBU7Gzl.js} +1 -1
  127. package/dist/client/assets/{domain-settings-BSPXcrvG.js → domain-settings-Cg5mUYYW.js} +1 -1
  128. package/dist/client/assets/{download-app-dialog-CwgA8Jar.js → download-app-dialog-jqsRuRCN.js} +1 -1
  129. package/dist/client/assets/{drawer-BT08Xqaa.js → drawer-DSLgUl8S.js} +1 -1
  130. package/dist/client/assets/{editor-S8HMRfnV.js → editor-PxmQfpfP.js} +1 -1
  131. package/dist/client/assets/{empty-state-YhHJ1PAR.js → empty-state-Bryk1SHf.js} +1 -1
  132. package/dist/client/assets/{empty-state-AwoelJY5.js → empty-state-BtpZBU4x.js} +1 -1
  133. package/dist/client/assets/{extract-connection-data-ak1yxd15.js → extract-connection-data-B9DyPVU-.js} +1 -1
  134. package/dist/client/assets/{feature-gate-DpWu04P_.js → feature-gate-D6zo6xG-.js} +1 -1
  135. package/dist/client/assets/{feature-paywall-O1oksi-z.js → feature-paywall-Bh8RRr9y.js} +1 -1
  136. package/dist/client/assets/{file-explorer-Cml3GhPa.js → file-explorer-CN0NFZe1.js} +1 -1
  137. package/dist/client/assets/{file-preview-DMCP6_DD.js → file-preview-CJ-_1Vqz.js} +1 -1
  138. package/dist/client/assets/{file-share-button-DkoS4iJK.js → file-share-button-f2Yvf1Ye.js} +1 -1
  139. package/dist/client/assets/{file-type-icon-DyGflp6T.js → file-type-icon-BYgiZIDa.js} +1 -1
  140. package/dist/client/assets/{folder-icon-BDD2uWKR.js → folder-icon-CNG-f1SD.js} +1 -1
  141. package/dist/client/assets/{form-DDtq3Oeg.js → form-BvSGycPj.js} +1 -1
  142. package/dist/client/assets/{gateway-client-BrPXiQqR.js → gateway-client-DEZhRkTS.js} +1 -1
  143. package/dist/client/assets/{general-DfP98aec.js → general-BJZXxBNe.js} +1 -1
  144. package/dist/client/assets/{github-icon-C3M97Kp1.js → github-icon-BP92s-aj.js} +1 -1
  145. package/dist/client/assets/{home-xKrXsUuw.js → home-CdxWRWJt.js} +1 -1
  146. package/dist/client/assets/{hooks-Dpw_cJTM.js → hooks-BHo3iW8o.js} +1 -1
  147. package/dist/client/assets/{icon-button-BA96KFLT.js → icon-button-rGUjPiBO.js} +1 -1
  148. package/dist/client/assets/{index-DV_mVnUZ.js → index-B-vo5TqF.js} +1 -1
  149. package/dist/client/assets/{index-pU5iRqYT.js → index-B1YIjoy8.js} +1 -1
  150. package/dist/client/assets/{index-BBOB34ZQ.js → index-B9Mt2Zue.js} +1 -1
  151. package/dist/client/assets/{index-B3naBK-e.js → index-BIlCrPH2.js} +1 -1
  152. package/dist/client/assets/{index-CTQuScgI.js → index-BmxQhKcc.js} +1 -1
  153. package/dist/client/assets/{index-cT94sQUH.js → index-Bv8ovZX7.js} +2 -2
  154. package/dist/client/assets/{index-4NmZWgdA.js → index-CCZIVOTb.js} +1 -1
  155. package/dist/client/assets/{index-B37137hI.js → index-CEIxT9-w.js} +1 -1
  156. package/dist/client/assets/{index-C9PI5TjH.js → index-CMM8OiJN.js} +1 -1
  157. package/dist/client/assets/{index-CgGEL4tk.js → index-CW3mvbP-.js} +1 -1
  158. package/dist/client/assets/{index-Bh23iZvW.js → index-D4jxiDhV.js} +1 -1
  159. package/dist/client/assets/{index-eJ0UMn-u.js → index-DB7CW9tW.js} +1 -1
  160. package/dist/client/assets/{index-ChjHAm_X.js → index-DGESUJrE.js} +1 -1
  161. package/dist/client/assets/{index-Tjbom_M5.js → index-DfHvWqHg.js} +1 -1
  162. package/dist/client/assets/{index-redirect-D4SSam4Y.js → index-redirect-Cf0qGvvQ.js} +1 -1
  163. package/dist/client/assets/{infiniteQueryObserver-Dj3x0ul-.js → infiniteQueryObserver-CLmBPvOC.js} +1 -1
  164. package/dist/client/assets/{infra-billing-D24Nnoas.js → infra-billing-CgTT7mEA.js} +1 -1
  165. package/dist/client/assets/{input-q5pG06UZ.js → input-BrBT4VAu.js} +1 -1
  166. package/dist/client/assets/{input-DbR0YCVu.js → input-CXs-YVYu.js} +1 -1
  167. package/dist/client/assets/{input-CSdHjp7L.js → input-D7VKtVHV.js} +1 -1
  168. package/dist/client/assets/{integration-icon-CBv4y2ld.js → integration-icon-_QdW_HEl.js} +1 -1
  169. package/dist/client/assets/{label-C6sMx1BY.js → label-BAb2clBH.js} +1 -1
  170. package/dist/client/assets/{last-preview-page-CcpwTOWp.js → last-preview-page-BOasaofB.js} +1 -1
  171. package/dist/client/assets/{layout-E2cSDTGe.js → layout-DKz_gVMk.js} +1 -1
  172. package/dist/client/assets/{legacy-agents-deep-BMTlTde1.js → legacy-agents-deep-DzJV9WdZ.js} +1 -1
  173. package/dist/client/assets/{legacy-main-redirect-B68-Adnw.js → legacy-main-redirect-DoEPYUQz.js} +1 -1
  174. package/dist/client/assets/{library-DI55mv6l.js → library-BxKGOYLR.js} +1 -1
  175. package/dist/client/assets/{login-DwlqHc1T.js → login-B13wBUsH.js} +1 -1
  176. package/dist/client/assets/{markdown-rYdPNaGa.js → markdown-IEb50bp3.js} +1 -1
  177. package/dist/client/assets/{mcp-app-renderer-DQd4z-tw.js → mcp-app-renderer-BVjb1uep.js} +1 -1
  178. package/dist/client/assets/{mcp-oauth-CtDqQIpT.js → mcp-oauth-D7EnzUg3.js} +1 -1
  179. package/dist/client/assets/{members-CnWBKrrf.js → members-DaYkffyz.js} +1 -1
  180. package/dist/client/assets/{message-templates-wovwT2FV.js → message-templates-DIQZvuul.js} +1 -1
  181. package/dist/client/assets/{mini-report-page-C71ATA2q.js → mini-report-page-gPQljQx-.js} +1 -1
  182. package/dist/client/assets/{mock-board-vXXuZ9OB.js → mock-board-BCEtuogR.js} +3 -3
  183. package/dist/client/assets/{monaco-editor-BYvrmVl8.js → monaco-editor-CZ3UOq2C.js} +1 -1
  184. package/dist/client/assets/{monitoring-stats-row-IkwiQHjH.js → monitoring-stats-row-BKgG20GP.js} +1 -1
  185. package/dist/client/assets/{multi-select-CDQWJfyp.js → multi-select-B_FsyhJ3.js} +1 -1
  186. package/dist/client/assets/{mustache-g0W1c9Pz.js → mustache-B64bzbQE.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-7N1qrOP1.js → oauth-callback-BVa1wqY_.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-ai-provider-D330wyq5.js → oauth-callback-ai-provider-B6p3LEub.js} +1 -1
  189. package/dist/client/assets/{onboarding-DsJ-aRc9.js → onboarding-CjY9ZaJa.js} +1 -1
  190. package/dist/client/assets/{optimistic-project-sidebar-views-KtCnoFH8.js → optimistic-project-sidebar-views-CIgk0pPq.js} +1 -1
  191. package/dist/client/assets/{org-file-open-context-DjmvTwmC.js → org-file-open-context-C3CvG90a.js} +1 -1
  192. package/dist/client/assets/{organization-choice-CZOzYUte.js → organization-choice-4sTsbqZY.js} +1 -1
  193. package/dist/client/assets/{orgs-CRAWDAbw.js → orgs-DMLLTLY8.js} +1 -1
  194. package/dist/client/assets/{page-seo-form-DUgQn0jT.js → page-seo-form-BGuhWwqo.js} +1 -1
  195. package/dist/client/assets/{pair-knW_lHO5.js → pair-DSAE6kBc.js} +1 -1
  196. package/dist/client/assets/{plan-ladder-CcvRWQzg.js → plan-ladder-DRDlfnKQ.js} +1 -1
  197. package/dist/client/assets/{popover-DuPXzrgi.js → popover-n4tdwfg1.js} +1 -1
  198. package/dist/client/assets/{post-calendar-Dm2FZlVO.js → post-calendar-BAf3rV18.js} +1 -1
  199. package/dist/client/assets/{post-editor-BkQnPDqK.js → post-editor-BOL_jJ5F.js} +1 -1
  200. package/dist/client/assets/{preview-content-nqp1cQig.js → preview-content-BOr8t_B7.js} +1 -1
  201. package/dist/client/assets/{preview-dialog-DGkB30uu.js → preview-dialog-CBQATPoA.js} +1 -1
  202. package/dist/client/assets/{profile-B2S2gmBW.js → profile-CP_1bWDP.js} +1 -1
  203. package/dist/client/assets/{project-app-view-CJHRV6yL.js → project-app-view-XkPj660d.js} +1 -1
  204. package/dist/client/assets/{project-feed-8Cez5QU8.js → project-feed-mDfQ-laa.js} +1 -1
  205. package/dist/client/assets/{project-icon-DW-tv9X7.js → project-icon-K8IkvwTu.js} +1 -1
  206. package/dist/client/assets/project-reports-8pX-TMsT.js +1 -0
  207. package/dist/client/assets/project-tasks-C6Kryc4_.js +1 -0
  208. package/dist/client/assets/{prompts-B2tfrrMA.js → prompts-49OLfQnt.js} +1 -1
  209. package/dist/client/assets/record-editor-13ULQgYo.js +1 -0
  210. package/dist/client/assets/{redirect-editor-BbBd0UrL.js → redirect-editor-6KbeprTc.js} +1 -1
  211. package/dist/client/assets/reports-BrFDkh6w.js +1 -0
  212. package/dist/client/assets/{reports-2V5MZWdY.js → reports-C1-T_XI6.js} +1 -1
  213. package/dist/client/assets/{reports-onboarding-DA-l-ocL.js → reports-onboarding-BbH4V7A-.js} +1 -1
  214. package/dist/client/assets/{reports-tab-B6VauTwc.js → reports-tab-DyE4mWa3.js} +2 -2
  215. package/dist/client/assets/{repositories-CeQWa7JA.js → repositories-DHwboveY.js} +1 -1
  216. package/dist/client/assets/{repository-import-picker-DgpEdzVj.js → repository-import-picker-CRs10CPh.js} +1 -1
  217. package/dist/client/assets/{repository-picker-B-RVPafI.js → repository-picker-CZ9LQZYf.js} +1 -1
  218. package/dist/client/assets/{require-capability-A2qKaV-G.js → require-capability-D9SZxHsZ.js} +1 -1
  219. package/dist/client/assets/{required-auth-layout-fSuiMVRc.js → required-auth-layout-5gvCMtcO.js} +1 -1
  220. package/dist/client/assets/{reset-password-B9ys5_ef.js → reset-password-DWdrV3bH.js} +1 -1
  221. package/dist/client/assets/{resizable-CyPCDk7u.js → resizable-B57Znxf0.js} +1 -1
  222. package/dist/client/assets/{review-settings-CiSbDHmD.js → review-settings-BQC6b8ZY.js} +1 -1
  223. package/dist/client/assets/{rich-text-link-control-CEAa82WB.js → rich-text-link-control-B-NORzEn.js} +1 -1
  224. package/dist/client/assets/{roles-slcMFBOI.js → roles-BMRJMNLe.js} +1 -1
  225. package/dist/client/assets/{route-Be_JrbZa.js → route-BCJP0MYO.js} +1 -1
  226. package/dist/client/assets/{route-CBjQKRPM.js → route-Bms7Naqu.js} +1 -1
  227. package/dist/client/assets/{route-D6QVa62m.js → route-Bv4TqLdN.js} +1 -1
  228. package/dist/client/assets/{route-page-header-CQ5gYErc.js → route-page-header-CsPi4GMO.js} +1 -1
  229. package/dist/client/assets/{runnable-block-editor-s0ZqFhOI.js → runnable-block-editor-DM8wSMV8.js} +1 -1
  230. package/dist/client/assets/{sandbox-lifecycle-context-Bt6dDo65.js → sandbox-lifecycle-context-DsRGwORN.js} +1 -1
  231. package/dist/client/assets/{schema-BwpPocS5.js → schema-CMlylut3.js} +1 -1
  232. package/dist/client/assets/{scroll-area-C_IMBr_-.js → scroll-area-t3NukeQO.js} +1 -1
  233. package/dist/client/assets/{search-input-B12ZEo-u.js → search-input-B3K0cIXk.js} +1 -1
  234. package/dist/client/assets/{search-toggle-DN5GZHXp.js → search-toggle-7vfSZ3oM.js} +1 -1
  235. package/dist/client/assets/{secret-picker-yI9Rfw9t.js → secret-picker-BvIcwT9-.js} +1 -1
  236. package/dist/client/assets/{secrets-Dwbmj7Nu.js → secrets-Vf4pio1e.js} +1 -1
  237. package/dist/client/assets/sections-editor-Diy2sJ51.js +1 -0
  238. package/dist/client/assets/{select-B3V6AARR.js → select-B_9gxhnf.js} +1 -1
  239. package/dist/client/assets/{select-model-Dgg0QqmD.js → select-model-Dc8NFwmy.js} +1 -1
  240. package/dist/client/assets/{seo-editor-DVhSkr87.js → seo-editor-CyA_IHYp.js} +1 -1
  241. package/dist/client/assets/{separator-B-YTOKXU.js → separator-CeYTQgxJ.js} +1 -1
  242. package/dist/client/assets/{settings-tab-Bqa114IE.js → settings-tab-CSmq_TZm.js} +1 -1
  243. package/dist/client/assets/{sheet-908igmnH.js → sheet-ncGbwo3c.js} +1 -1
  244. package/dist/client/assets/{shell-layout-CkG1W_88.js → shell-layout-Cn2XiFfO.js} +1 -1
  245. package/dist/client/assets/{sidebar-BFWjj-3T.js → sidebar-DMorNI5B.js} +1 -1
  246. package/dist/client/assets/{skill-preview-DCEvyr6I.js → skill-preview-Csp1-IaM.js} +1 -1
  247. package/dist/client/assets/{skills-Kroh8R0z.js → skills-JdOILRst.js} +1 -1
  248. package/dist/client/assets/{sso-CI5lCnpA.js → sso-D6HM5t6s.js} +1 -1
  249. package/dist/client/assets/{suggestion-DWARFIlS.js → suggestion-5QOsyBWf.js} +1 -1
  250. package/dist/client/assets/{switch-BhJ3AZWs.js → switch-B8V9Ox46.js} +1 -1
  251. package/dist/client/assets/{synced-repos-Dk3VsHpp.js → synced-repos-Cq9R4ohv.js} +1 -1
  252. package/dist/client/assets/{table-niYnsTKc.js → table-CqSUYS4O.js} +1 -1
  253. package/dist/client/assets/{tabs-BcaB_WSA.js → tabs-god_zfat.js} +1 -1
  254. package/dist/client/assets/{task-board-BKlDz2nG.js → task-board-CSfWLhg4.js} +1 -1
  255. package/dist/client/assets/{task-route-CUZautp3.js → task-route-qv7COOYP.js} +1 -1
  256. package/dist/client/assets/{task-status-VdIk_CP0.js → task-status-BAjWghil.js} +1 -1
  257. package/dist/client/assets/{taskboard-analytics-CRqfD7UI.js → taskboard-analytics-D-yRn1S6.js} +1 -1
  258. package/dist/client/assets/tasks-BR9-q4OQ.js +1 -0
  259. package/dist/client/assets/{tasks-d4yimVTu.js → tasks-ChC4tJl9.js} +1 -1
  260. package/dist/client/assets/{textarea-lt2TXyPT.js → textarea-Bs1krskq.js} +1 -1
  261. package/dist/client/assets/{thread-analytics-DHF3uWYQ.js → thread-analytics-BgyyDuVq.js} +1 -1
  262. package/dist/client/assets/{thread-button-BVgcb5x6.js → thread-button-CU8FEc0x.js} +1 -1
  263. package/dist/client/assets/{thread-intent-CHlBhQ4g.js → thread-intent-Bl6xIfFf.js} +1 -1
  264. package/dist/client/assets/{thread-route-fx8YTsf_.js → thread-route-BSeISsE6.js} +1 -1
  265. package/dist/client/assets/{thread-route-C05Rrd8B.js → thread-route-CX0quyn9.js} +1 -1
  266. package/dist/client/assets/{thread-sheet-body-Do5I-YMq.js → thread-sheet-body-hkS4aUg5.js} +1 -1
  267. package/dist/client/assets/{toggle-group-D0Pzc72Y.js → toggle-group-uWDttGAl.js} +1 -1
  268. package/dist/client/assets/{toolbar-icon-button-BXZ727Lv.js → toolbar-icon-button-CL9TUqhr.js} +1 -1
  269. package/dist/client/assets/{tooltip-BGTnGCWW.js → tooltip-452rT2Av.js} +1 -1
  270. package/dist/client/assets/{track-Cl2p3Vuk.js → track-9kgX0QPk.js} +1 -1
  271. package/dist/client/assets/{types-C2ulVtYx.js → types-CKACT3re.js} +1 -1
  272. package/dist/client/assets/{usage-stats-D4BBDmdo.js → usage-stats-DpOdKRPA.js} +1 -1
  273. package/dist/client/assets/{use-ai-providers-Cc_CzBZr.js → use-ai-providers-BfBmzjxk.js} +1 -1
  274. package/dist/client/assets/{use-automations-Bjnctu1x.js → use-automations-BSATGAzs.js} +1 -1
  275. package/dist/client/assets/{use-autosave-C6qsU6pa.js → use-autosave-Cgp9LI2B.js} +1 -1
  276. package/dist/client/assets/{use-connect-companion-YiSxQfB7.js → use-connect-companion-C-aC_6H2.js} +1 -1
  277. package/dist/client/assets/{use-connection-BUnGMpfY.js → use-connection-DZHmMxeG.js} +1 -1
  278. package/dist/client/assets/{use-copy-Cg8pzMCn.js → use-copy-CKbfXSV3.js} +1 -1
  279. package/dist/client/assets/{use-create-virtual-mcp-DfoENq1A.js → use-create-virtual-mcp-DT6S24Ek.js} +1 -1
  280. package/dist/client/assets/{use-date-fns-locale-BxNb5mu8.js → use-date-fns-locale-4nMtSnpk.js} +1 -1
  281. package/dist/client/assets/{use-debounced-autosave-Ds1nUcal.js → use-debounced-autosave-Dabnhryq.js} +1 -1
  282. package/dist/client/assets/{use-debounced-value-CylTsY1l.js → use-debounced-value-D4IIgvZ6.js} +1 -1
  283. package/dist/client/assets/{use-deco-credits-BqxUGiz2.js → use-deco-credits-CUhDqFNs.js} +1 -1
  284. package/dist/client/assets/{use-decopilot-events-BT_W0lJl.js → use-decopilot-events-E0BM35TR.js} +1 -1
  285. package/dist/client/assets/{use-delete-connection-PzbXJAFK.js → use-delete-connection-CKxZ4wsy.js} +1 -1
  286. package/dist/client/assets/{use-deployment-admin-B1rWnD8o.js → use-deployment-admin-CULH8aip.js} +1 -1
  287. package/dist/client/assets/{use-entitlements-Dbhso4ZI.js → use-entitlements-BTK1TiYJ.js} +1 -1
  288. package/dist/client/assets/{use-fast-preview-draft-url-zcMUpMeA.js → use-fast-preview-draft-url-CDZ9QnYg.js} +1 -1
  289. package/dist/client/assets/{use-file-configs-Du_BOfea.js → use-file-configs-BX41631Z.js} +1 -1
  290. package/dist/client/assets/{use-in-settings-3zEronlT.js → use-in-settings-DMlBXVsJ.js} +1 -1
  291. package/dist/client/assets/{use-infinite-scroll-DASshMJA.js → use-infinite-scroll-Be1BN8YX.js} +1 -1
  292. package/dist/client/assets/{use-join-requests-DBEizFwN.js → use-join-requests-D7k_-rqK.js} +1 -1
  293. package/dist/client/assets/{use-main-panel-tabs-CSiN5F_0.js → use-main-panel-tabs-Xzm5JVo2.js} +1 -1
  294. package/dist/client/assets/{use-mcp-auth-status-JThWl3bk.js → use-mcp-auth-status-DZc1kZiD.js} +1 -1
  295. package/dist/client/assets/{use-mcp-client-GBv4syMd.js → use-mcp-client-8W4pv2iG.js} +1 -1
  296. package/dist/client/assets/{use-mcp-prompts-CrOqkZmO.js → use-mcp-prompts-EP5VAc7p.js} +1 -1
  297. package/dist/client/assets/{use-mcp-tools-BZqzi-qU.js → use-mcp-tools-CWjm4_qp.js} +1 -1
  298. package/dist/client/assets/{use-members-hKKM8H8F.js → use-members-DdFSpvT6.js} +1 -1
  299. package/dist/client/assets/{use-mobile-Dv7BcXr5.js → use-mobile-CbgvL5x6.js} +1 -1
  300. package/dist/client/assets/{use-navigate-to-agent-Cp353ZuE.js → use-navigate-to-agent-CnwjWuW_.js} +1 -1
  301. package/dist/client/assets/{use-open-billing-url-DzWGWKyA.js → use-open-billing-url-DAJYSvuP.js} +1 -1
  302. package/dist/client/assets/{use-org-auth-client-DzE4u5oy.js → use-org-auth-client-PjV6soYN.js} +1 -1
  303. package/dist/client/assets/{use-org-fs-CGr2NA9d.js → use-org-fs-DlHKBaPi.js} +1 -1
  304. package/dist/client/assets/{use-org-repo-syncs-6F5S6E3X.js → use-org-repo-syncs-IAlIRz5z.js} +1 -1
  305. package/dist/client/assets/{use-org-sso-BziwA5dH.js → use-org-sso-Od2nvWUP.js} +1 -1
  306. package/dist/client/assets/{use-organization-roles-BpECo09m.js → use-organization-roles-Cma99AA4.js} +1 -1
  307. package/dist/client/assets/{use-organization-settings-C55vewZa.js → use-organization-settings-BXDoAx1p.js} +1 -1
  308. package/dist/client/assets/{use-panel-navigate-BvpNAJeL.js → use-panel-navigate-CeERwAhY.js} +1 -1
  309. package/dist/client/assets/{use-project-native-view-presence-DYD4cRxj.js → use-project-native-view-presence-0O5UQcYW.js} +1 -1
  310. package/dist/client/assets/{use-project-scope-CYpIGnJg.js → use-project-scope-CdX2mBNC.js} +1 -1
  311. package/dist/client/assets/{use-releases-w4OvCw5M.js → use-releases-BKjJ4TJe.js} +1 -1
  312. package/dist/client/assets/{use-reports-diagnostic-DvPUM_ji.js → use-reports-diagnostic-T8Asd01v.js} +1 -1
  313. package/dist/client/assets/{use-route-default-main-Bux-DW8_.js → use-route-default-main-BW9UadGk.js} +1 -1
  314. package/dist/client/assets/{use-secrets-9InRr5Wg.js → use-secrets-CfE-SREF.js} +1 -1
  315. package/dist/client/assets/{use-section-preview-base-BbXgFtzl.js → use-section-preview-base-WUaK1Pi8.js} +1 -1
  316. package/dist/client/assets/{use-session-runtime-CyC7y7Wf.js → use-session-runtime-Bf6vLaxh.js} +1 -1
  317. package/dist/client/assets/{use-tags-B4nQMv-Q.js → use-tags-BUAJ1eC5.js} +1 -1
  318. package/dist/client/assets/{use-task-board-analytics-CVUteVBr.js → use-task-board-analytics-BDIpYBbX.js} +1 -1
  319. package/dist/client/assets/{use-task-metadata-C-i2MCdn.js → use-task-metadata-DyG3Lo1p.js} +1 -1
  320. package/dist/client/assets/{use-thread-analytics-CTAY_EQL.js → use-thread-analytics-DjnPlB1b.js} +1 -1
  321. package/dist/client/assets/{use-thread-outputs-B__J7AZP.js → use-thread-outputs-CSH9qR28.js} +1 -1
  322. package/dist/client/assets/{use-virtual-mcp-CyUsVYwB.js → use-virtual-mcp-DyTrBBn7.js} +1 -1
  323. package/dist/client/assets/useInfiniteQuery-COua6s42.js +1 -0
  324. package/dist/client/assets/{useQueries-DRE-cCNR.js → useQueries-BxKAM4Rs.js} +1 -1
  325. package/dist/client/assets/useSuspenseInfiniteQuery-6311fHu0.js +1 -0
  326. package/dist/client/assets/{users-DBkZe3bO.js → users-hKaW80lb.js} +1 -1
  327. package/dist/client/assets/{utils-CHGVrATA.js → utils-BnjmVFWV.js} +1 -1
  328. package/dist/client/assets/{variant-calendar-BDMygNPj.js → variant-calendar-7Gr0v6MN.js} +1 -1
  329. package/dist/client/assets/{variant-matcher-override-DefoQYjj.js → variant-matcher-override-BhXPWsTJ.js} +1 -1
  330. package/dist/client/assets/{view-mode-toggle-CSfYGuhk.js → view-mode-toggle-Blh9kDM6.js} +1 -1
  331. package/dist/client/assets/{virtual-mcp-C_hBI7Rj.js → virtual-mcp-BYf8h9T-.js} +1 -1
  332. package/dist/client/index.html +1 -1
  333. package/dist/server/cli.js +1 -1
  334. package/dist/server/server.js +1 -1
  335. package/package.json +1 -1
  336. package/dist/client/assets/agent-app-WxppwwfV.js +0 -1
  337. package/dist/client/assets/agent-deck-B70vaH0w.js +0 -1
  338. package/dist/client/assets/agent-file-D2-O8b6i.js +0 -1
  339. package/dist/client/assets/agent-library-file-Dfir9Jjz.js +0 -1
  340. package/dist/client/assets/agent-settings-DgXye6uc.js +0 -1
  341. package/dist/client/assets/agent-site-editor-code-DjOBYRBJ.js +0 -2
  342. package/dist/client/assets/agent-view-BgER_VJ8.js +0 -1
  343. package/dist/client/assets/api-keys-kPU0tPrf.js +0 -1
  344. package/dist/client/assets/app-editor-rJdo4lSU.js +0 -1
  345. package/dist/client/assets/project-reports-kefrM59s.js +0 -1
  346. package/dist/client/assets/project-tasks-B7o9qjzH.js +0 -1
  347. package/dist/client/assets/record-editor-C887zwF7.js +0 -1
  348. package/dist/client/assets/reports-N7SlvZN1.js +0 -1
  349. package/dist/client/assets/sections-editor-DWq3wSNS.js +0 -1
  350. package/dist/client/assets/tasks-CLicx8Qy.js +0 -1
  351. package/dist/client/assets/useInfiniteQuery-DS8vuz-1.js +0 -1
  352. package/dist/client/assets/useSuspenseInfiniteQuery-D-EjhUK7.js +0 -1
@@ -1 +1 @@
1
- import{c as F,j as i,b as ce,r as ee,aY as ye,h as ge,B as xe,l as je,au as Pe,t as ae,F as De,G as ue,H as Ne,I as ve}from"./index-cT94sQUH.js";import{C as Ce}from"./index-ChjHAm_X.js";import{A as Se}from"./agent-view-guard-B7Mzpeja.js";import{i as we}from"./Check-CGKF06bT.js";import{a as Ae}from"./Copy01-CYbqJpFZ.js";import{i as _e}from"./DotsVertical-BQfY36BV.js";import{i as ze}from"./ZoomOut-DD-ULjJm.js";import{a as Fe}from"./Image01-DPZCMheY.js";import{n as Ie}from"./LinkExternal01-Div0d_z3.js";import{a as Ue}from"./Package-C5JGfmw5.js";import{s as $e}from"./Trash01-Dw6PLr8l.js";import{i as he}from"./Upload01-BsQDz7U2.js";import{A as Me,a as Te,b as Ee,c as Oe,g as Re,d as Be,e as Le,f as Ve}from"./alert-dialog-m7PHs13d.js";import{S as Ge}from"./search-input-B12ZEo-u.js";import{a as qe}from"./use-virtual-mcp-CyUsVYwB.js";import{u as He}from"./use-debounced-value-CylTsY1l.js";import{u as We}from"./use-file-configs-Du_BOfea.js";import{u as Ye,a as Ke,e as Qe,i as Je,b as ke,f as Xe,c as Ze}from"./asset-utils-DvBCIwrI.js";import{m as et}from"./match-site-slug-config-D3fUJ6vX.js";import{r as tt}from"./site-slug-uya6Wp4-.js";import{b as it}from"./thread-route-C05Rrd8B.js";import"./use-mobile-Dv7BcXr5.js";import"./thread-button-BVgcb5x6.js";import"./sidebar-BFWjj-3T.js";import"./LayoutLeft-DgiG6wiH.js";import"./sheet-908igmnH.js";import"./X-CLqvixem.js";import"./tooltip-BGTnGCWW.js";import"./index-CgGEL4tk.js";import"./use-panel-navigate-BvpNAJeL.js";import"./use-project-scope-CYpIGnJg.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-Bux-DW8_.js";import"./hooks-Dpw_cJTM.js";import"./use-mcp-client-GBv4syMd.js";import"./auth-k9t16OOb.js";import"./backoff-8mStPHYB.js";import"./task-board-BKlDz2nG.js";import"./schema-BwpPocS5.js";import"./agent-icon-CVsOY5Om.js";import"./AlertCircle-B3LJiQhZ.js";import"./Tool01-DK_vv6qf.js";import"./ArrowUp-BB5V3348.js";import"./ArrowLeft-DmWma6hW.js";import"./ArrowRight-540iMVH3.js";import"./XCircle-xC8IFHez.js";import"./Globe04-DnURSsdQ.js";import"./CheckCircle-tvGC17Dy.js";import"./ChevronUp-Du4AWZmG.js";import"./UserSquare-CHvWRyuq.js";import"./CreditCard01-CK4yyvJY.js";import"./Download01-C8jubU2p.js";import"./Eye-CpLoEsen.js";import"./Share07-DpckpNEB.js";import"./XClose-1APsw2yP.js";import"./Key01-CSyDklFV.js";import"./Link01-CYG0Mr8Q.js";import"./Monitor01-BrSZ6zzu.js";import"./Sun-CzonSHrU.js";import"./Palette-Bm4HMPv2.js";import"./Plus-Do5Wkomw.js";import"./SearchLg-gOfrWgIs.js";import"./SearchMd-B9ModJFt.js";import"./Stars01-B6IfixlN.js";import"./User01-Bla6DkK3.js";import"./Users01-fXdkObFe.js";import"./Zap-SzxRRv0w.js";import"./toolbar-icon-button-BXZ727Lv.js";import"./use-in-settings-3zEronlT.js";import"./shell-layout-CkG1W_88.js";import"./avatar-B9CWtHB4.js";import"./download-app-dialog-CwgA8Jar.js";import"./dialog-DiUlVwD1.js";import"./command-DZRWMxD5.js";import"./index-C9PI5TjH.js";import"./integration-icon-CBv4y2ld.js";import"./project-icon-DW-tv9X7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-fSuiMVRc.js";import"./autosend-BKkKn8iq.js";import"./use-org-sso-BziwA5dH.js";import"./resizable-CyPCDk7u.js";import"./route-page-header-CQ5gYErc.js";import"./use-main-panel-tabs-CSiN5F_0.js";import"./use-connection-BUnGMpfY.js";import"./use-mcp-tools-BZqzi-qU.js";import"./types-C2ulVtYx.js";import"./utils-CVEq3hMx.js";import"./index-BBOB34ZQ.js";import"./chat-context-CIrojUbL.js";import"./thread-intent-CHlBhQ4g.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-Dbhso4ZI.js";import"./use-ai-providers-Cc_CzBZr.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BT_W0lJl.js";import"./use-organization-settings-C55vewZa.js";import"./gateway-client-BrPXiQqR.js";import"./drawer-BT08Xqaa.js";import"./collection-search-B2Rze4Ue.js";import"./use-mcp-prompts-CrOqkZmO.js";import"./index-B37137hI.js";import"./form-DDtq3Oeg.js";import"./label-C6sMx1BY.js";import"./input-CSdHjp7L.js";import"./org-file-open-context-DjmvTwmC.js";import"./input-q5pG06UZ.js";import"./chat-draft-CsL23XeE.js";import"./use-session-runtime-CyC7y7Wf.js";import"./select-B3V6AARR.js";import"./usage-stats-D4BBDmdo.js";import"./use-copy-Cg8pzMCn.js";import"./markdown-rYdPNaGa.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-BcaB_WSA.js";import"./use-deco-credits-BqxUGiz2.js";import"./toggle-group-D0Pzc72Y.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-DzWGWKyA.js";import"./decopilot-CaIWBpB6.js";import"./checkbox-DXebLGmO.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-DuPXzrgi.js";import"./index-pU5iRqYT.js";import"./input-DbR0YCVu.js";import"./suggestion-DWARFIlS.js";import"./use-org-fs-CGr2NA9d.js";import"./question-004-sINsf4GQ.js";import"./use-members-hKKM8H8F.js";import"./use-org-auth-client-DzE4u5oy.js";import"./feature-paywall-O1oksi-z.js";import"./plan-ladder-CcvRWQzg.js";import"./add-connection-dialog-D9j0h-SU.js";import"./extract-connection-data-ak1yxd15.js";import"./metadata-D72DunRR.js";import"./connection-BtvJKuLN.js";import"./connection-card-CEFIrJY3.js";import"./useInfiniteQuery-DS8vuz-1.js";import"./infiniteQueryObserver-Dj3x0ul-.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-lt2TXyPT.js";import"./connection-form-helpers-DFcBYAWG.js";import"./authenticate-and-persist-oauth-8HHvB0nM.js";import"./mcp-oauth-CtDqQIpT.js";import"./collection-tabs-CrAcGqu0.js";import"./badge-DS7xysUQ.js";import"./use-infinite-scroll-DASshMJA.js";import"./useSuspenseInfiniteQuery-D-EjhUK7.js";import"./pair-knW_lHO5.js";import"./collapsible-Ckib1khq.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DQd4z-tw.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-navigate-to-agent-Cp353ZuE.js";import"./use-thread-outputs-B__J7AZP.js";import"./file-type-icon-DyGflp6T.js";import"./sandbox-lifecycle-context-Bt6dDo65.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-C-i2MCdn.js";import"./use-project-native-view-presence-DYD4cRxj.js";import"./virtual-mcp-C_hBI7Rj.js";function st(r){const e=F.c(6),{virtualMcpId:t}=r,s=qe(t),l=We();let o;e[0]!==l||e[1]!==s?(o=et(l,tt(s)),e[0]=l,e[1]=s,e[2]=o):o=e[2];const n=o;if(!n){let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(rt,{}),e[3]=a):a=e[3],a}let c;return e[4]!==n?(c=i.jsx(nt,{config:n}),e[4]=n,e[5]=c):c=e[5],c}function rt(){const r=F.c(12),e=ce();let t;r[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:i.jsx(Ue,{size:20,className:"text-muted-foreground"})}),r[0]=t):t=r[0];let s;r[1]!==e?(s=e("assets.browser.noBucketTitle"),r[1]=e,r[2]=s):s=r[2];let l;r[3]!==s?(l=i.jsx("p",{className:"text-sm font-medium",children:s}),r[3]=s,r[4]=l):l=r[4];let o;r[5]!==e?(o=e("assets.browser.noBucketDescription"),r[5]=e,r[6]=o):o=r[6];let n;r[7]!==o?(n=i.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),r[7]=o,r[8]=n):n=r[8];let c;return r[9]!==l||r[10]!==n?(c=i.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[t,i.jsxs("div",{children:[l,n]})]}),r[9]=l,r[10]=n,r[11]=c):c=r[11],c}function lt(r){return r<0||r<640?2:r<768?3:r<1024?4:5}function ot(r,e){const t=Array.from({length:e},()=>[]);return r.forEach((s,l)=>t[l%e].push(s)),t}function nt(r){const e=F.c(99),{config:t}=r,s=ce(),[l,o]=ee.useState(""),n=He(l,300);let c;e[0]!==t.id||e[1]!==n?(c={configId:t.id,search:n},e[0]=t.id,e[1]=n,e[2]=c):c=e[2];const a=Ye(c),m=Ke(),[y,p]=ee.useState(!1),[d,g]=ee.useState(null),u=ee.useRef(null);let h;e[3]!==t.id||e[4]!==a||e[5]!==s||e[6]!==m?(h=async function(A){if(!A)return;const Z=Array.from(A);if(Z.length===0)return;const U=[];for(const R of Z)try{await m.mutateAsync({configId:t.id,file:R})}catch($){const z=$;U.push(`${R.name} (${z instanceof Error?z.message:"upload failed"})`)}await a.refetch(),U.length>0&&ae.error(U.length===Z.length?s("filePicker.filePickerDialog.uploadFailedAll",{errors:U.join("; ")}):s("filePicker.filePickerDialog.uploadFailedSome",{errors:U.join("; ")}))},e[3]=t.id,e[4]=a,e[5]=s,e[6]=m,e[7]=h):h=e[7];const x=h;let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=function(A){A.preventDefault(),p(!0)},e[8]=f):f=e[8];const b=f;let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=function(){p(!1)},e[9]=v):v=e[9];const _=v;let k;e[10]!==x?(k=function(A){A.preventDefault(),A.stopPropagation(),p(!1),x(A.dataTransfer.files)},e[10]=x,e[11]=k):k=e[11];const j=k,[P,C]=ye();let D,N,S,w,M,I;if(e[12]!==t.name||e[13]!==n||e[14]!==C||e[15]!==P||e[16]!==x||e[17]!==y||e[18]!==a.data?.pages||e[19]!==a.isFetching||e[20]!==a.isFetchingNextPage||e[21]!==j||e[22]!==l||e[23]!==s||e[24]!==m.isPending){const A=(a.data?.pages??[]).flatMap(at),Z=ot(A,lt(P)),U=n.trim(),R=l!==n||a.isFetching&&!a.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let $;e[31]!==s?($=s("assets.browser.title"),e[31]=s,e[32]=$):$=e[32];let z;e[33]!==$?(z=i.jsx("h2",{className:"text-sm font-semibold",children:$}),e[33]=$,e[34]=z):z=e[34];let B;e[35]!==t.name||e[36]!==s?(B=s("assets.browser.bucketLabel",{name:t.name}),e[35]=t.name,e[36]=s,e[37]=B):B=e[37];let L;e[38]!==B?(L=i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:B}),e[38]=B,e[39]=L):L=e[39];let V;e[40]!==z||e[41]!==L?(V=i.jsxs("div",{className:"min-w-0",children:[z,L]}),e[40]=z,e[41]=L,e[42]=V):V=e[42];let re;e[43]===Symbol.for("react.memo_cache_sentinel")?(re=()=>u.current?.click(),e[43]=re):re=e[43];let G;e[44]!==m.isPending?(G=m.isPending?i.jsx(ge,{className:"size-3.5"}):i.jsx(he,{size:14}),e[44]=m.isPending,e[45]=G):G=e[45];let q;e[46]!==s||e[47]!==m.isPending?(q=m.isPending?s("filePicker.filePickerDialog.uploading"):s("filePicker.filePickerDialog.dropFilesOrClick"),e[46]=s,e[47]=m.isPending,e[48]=q):q=e[48];let H;e[49]!==G||e[50]!==q||e[51]!==m.isPending?(H=i.jsxs(xe,{type:"button",size:"sm",disabled:m.isPending,onClick:re,children:[G,q]}),e[49]=G,e[50]=q,e[51]=m.isPending,e[52]=H):H=e[52];let W;e[53]!==x?(W=i.jsx("input",{ref:u,type:"file",multiple:!0,className:"hidden",onChange:ne=>{const pe=Array.from(ne.target.files??[]);ne.target.value="",x(pe)}}),e[53]=x,e[54]=W):W=e[54],e[55]!==V||e[56]!==H||e[57]!==W?(I=i.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[V,H,W]}),e[55]=V,e[56]=H,e[57]=W,e[58]=I):I=e[58];let Y;e[59]!==s?(Y=s("filePicker.filePickerDialog.searchFilesPlaceholder"),e[59]=s,e[60]=Y):Y=e[60],e[61]!==R||e[62]!==l||e[63]!==Y?(D=i.jsx(Ge,{value:l,onChange:o,isSearching:R,placeholder:Y,className:"shrink-0"}),e[61]=R,e[62]=l,e[63]=Y,e[64]=D):D=e[64];let le;e[65]===Symbol.for("react.memo_cache_sentinel")?(le=()=>u.current?.click(),e[65]=le):le=e[65];const me=y&&"border-primary bg-primary/5",fe=m.isPending&&"pointer-events-none opacity-60";let K;e[66]!==me||e[67]!==fe?(K=je("flex shrink-0 flex-col items-center justify-center gap-1 rounded-xl border border-dashed border-border/60 p-4 text-center transition-colors",me,fe),e[66]=me,e[67]=fe,e[68]=K):K=e[68];let oe;e[69]===Symbol.for("react.memo_cache_sentinel")?(oe=i.jsx(he,{size:16,className:"text-muted-foreground"}),e[69]=oe):oe=e[69];let Q;e[70]!==s?(Q=s("filePicker.filePickerDialog.dropFilesOrClick"),e[70]=s,e[71]=Q):Q=e[71];let J;e[72]!==s?(J=s("filePicker.filePickerDialog.uploadSizeLimit"),e[72]=s,e[73]=J):J=e[73];let X;e[74]!==Q||e[75]!==J?(X=i.jsxs("p",{className:"text-xs text-muted-foreground",children:[Q," ",J]}),e[74]=Q,e[75]=J,e[76]=X):X=e[76],e[77]!==j||e[78]!==K||e[79]!==X?(N=i.jsxs("button",{type:"button",onClick:le,onDragOver:b,onDragLeave:_,onDrop:j,className:K,children:[oe,X]}),e[77]=j,e[78]=K,e[79]=X,e[80]=N):N=e[80],S="min-h-0 flex-1 overflow-y-auto pr-1",w=A.length===0?U?i.jsx(be,{title:s("filePicker.filePickerDialog.noMatches",{query:U}),description:s("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):i.jsx(be,{title:s("filePicker.filePickerDialog.noFilesYet"),description:s("filePicker.filePickerDialog.dropFileToGetStarted")}):i.jsx("div",{ref:C,className:"flex items-start gap-3",children:Z.map((ne,pe)=>i.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ne.map(de=>i.jsx(ct,{item:de,onDelete:()=>g(de)},de.key))},pe))}),e[12]=t.name,e[13]=n,e[14]=C,e[15]=P,e[16]=x,e[17]=y,e[18]=a.data?.pages,e[19]=a.isFetching,e[20]=a.isFetchingNextPage,e[21]=j,e[22]=l,e[23]=s,e[24]=m.isPending,e[25]=D,e[26]=N,e[27]=S,e[28]=w,e[29]=M,e[30]=I}else D=e[25],N=e[26],S=e[27],w=e[28],M=e[29],I=e[30];let T;e[81]!==a||e[82]!==s?(T=a.hasNextPage&&i.jsx("div",{className:"flex justify-center py-4",children:i.jsx(xe,{type:"button",variant:"outline",size:"sm",disabled:a.isFetchingNextPage,onClick:()=>a.fetchNextPage(),children:a.isFetchingNextPage?i.jsxs(i.Fragment,{children:[i.jsx(ge,{className:"size-3.5"}),s("filePicker.filePickerDialog.loading")]}):s("filePicker.filePickerDialog.loadMore")})}),e[81]=a,e[82]=s,e[83]=T):T=e[83];let E;e[84]!==T||e[85]!==S||e[86]!==w?(E=i.jsxs("div",{className:S,children:[w,T]}),e[84]=T,e[85]=S,e[86]=w,e[87]=E):E=e[87];let te;e[88]===Symbol.for("react.memo_cache_sentinel")?(te=()=>g(null),e[88]=te):te=e[88];let O;e[89]!==t.id||e[90]!==d?(O=i.jsx(pt,{configId:t.id,item:d,onClose:te}),e[89]=t.id,e[90]=d,e[91]=O):O=e[91];let ie;return e[92]!==D||e[93]!==N||e[94]!==E||e[95]!==O||e[96]!==M||e[97]!==I?(ie=i.jsxs("div",{className:M,children:[I,D,N,E,O]}),e[92]=D,e[93]=N,e[94]=E,e[95]=O,e[96]=M,e[97]=I,e[98]=ie):ie=e[98],ie}function at(r){return r.items}function be(r){const e=F.c(8),{title:t,description:s}=r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:i.jsx(Fe,{size:18,className:"text-muted-foreground"})}),e[0]=l):l=e[0];let o;e[1]!==t?(o=i.jsx("p",{className:"text-sm font-medium",children:t}),e[1]=t,e[2]=o):o=e[2];let n;e[3]!==s?(n=i.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[3]=s,e[4]=n):n=e[4];let c;return e[5]!==o||e[6]!==n?(c=i.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[l,o,n]}),e[5]=o,e[6]=n,e[7]=c):c=e[7],c}function ct(r){const e=F.c(34),{item:t,onDelete:s}=r;let l;e[0]!==t.key?(l=Qe(t.key),e[0]=t.key,e[1]=l):l=e[1];const o=l;let n;e[2]!==t.key?(n=Je(t.key),e[2]=t.key,e[3]=n):n=e[3];const c=n;let a;e[4]!==c||e[5]!==t.key||e[6]!==t.publicUrl?(a=c?i.jsx("img",{src:t.publicUrl,alt:t.key,loading:"lazy",className:"block h-auto w-full",onError:mt}):i.jsx("div",{className:"flex aspect-square items-center justify-center",children:i.jsx(ze,{size:28,className:"text-muted-foreground"})}),e[4]=c,e[5]=t.key,e[6]=t.publicUrl,e[7]=a):a=e[7];let m;e[8]!==t.key||e[9]!==t.publicUrl||e[10]!==a?(m=i.jsx("a",{href:t.publicUrl,target:"_blank",rel:"noreferrer",title:t.key,className:"block transition hover:ring-2 hover:ring-inset hover:ring-primary",children:a}),e[8]=t.key,e[9]=t.publicUrl,e[10]=a,e[11]=m):m=e[11];const y=t.key;let p;e[12]!==t.key?(p=ke(t.key),e[12]=t.key,e[13]=p):p=e[13];let d;e[14]!==t.key||e[15]!==p?(d=i.jsx("p",{className:"truncate text-xs font-medium",title:y,children:p}),e[14]=t.key,e[15]=p,e[16]=d):d=e[16];let g;e[17]!==t.size?(g=Xe(t.size),e[17]=t.size,e[18]=g):g=e[18];let u;e[19]!==o||e[20]!==g?(u=i.jsxs("p",{className:"text-[10px] uppercase text-muted-foreground",children:[o," · ",g]}),e[19]=o,e[20]=g,e[21]=u):u=e[21];let h;e[22]!==d||e[23]!==u?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[d,u]}),e[22]=d,e[23]=u,e[24]=h):h=e[24];let x;e[25]!==t||e[26]!==s?(x=i.jsx(ft,{item:t,onDelete:s}),e[25]=t,e[26]=s,e[27]=x):x=e[27];let f;e[28]!==h||e[29]!==x?(f=i.jsxs("div",{className:"flex items-center gap-1 border-t border-border/60 bg-background px-2 py-1.5",children:[h,x]}),e[28]=h,e[29]=x,e[30]=f):f=e[30];let b;return e[31]!==f||e[32]!==m?(b=i.jsxs("div",{className:"group relative flex flex-col overflow-hidden rounded-lg border border-border/60 bg-muted",children:[m,f]}),e[31]=f,e[32]=m,e[33]=b):b=e[33],b}function mt(r){r.target.style.display="none"}function ft(r){const e=F.c(36),{item:t,onDelete:s}=r,l=ce(),[o,n]=ee.useState(!1);let c;e[0]!==t.publicUrl||e[1]!==l?(c=async function(){try{await navigator.clipboard.writeText(t.publicUrl),n(!0),window.setTimeout(()=>n(!1),1500)}catch{ae.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=t.publicUrl,e[1]=l,e[2]=c):c=e[2];const a=c;let m;e[3]!==l?(m=l("filePicker.filePickerDialog.assetActions"),e[3]=l,e[4]=m):m=e[4];let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsx(_e,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=i.jsx(De,{asChild:!0,children:i.jsx(xe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 classic:rounded-md","aria-label":m,children:y})}),e[6]=m,e[7]=p):p=e[7];let d;e[8]!==o?(d=o?i.jsx(we,{size:14}):i.jsx(Ae,{size:14}),e[8]=o,e[9]=d):d=e[9];let g;e[10]!==o||e[11]!==l?(g=l(o?"filePicker.filePickerDialog.copied":"filePicker.filePickerDialog.copyUrl"),e[10]=o,e[11]=l,e[12]=g):g=e[12];let u;e[13]!==a||e[14]!==d||e[15]!==g?(u=i.jsxs(ue,{onClick:a,children:[d,g]}),e[13]=a,e[14]=d,e[15]=g,e[16]=u):u=e[16];const h=t.publicUrl;let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx(Ie,{size:14}),e[17]=x):x=e[17];let f;e[18]!==l?(f=l("filePicker.filePickerDialog.openInNewTab"),e[18]=l,e[19]=f):f=e[19];let b;e[20]!==t.publicUrl||e[21]!==f?(b=i.jsx(ue,{asChild:!0,children:i.jsxs("a",{href:h,target:"_blank",rel:"noreferrer",children:[x,f]})}),e[20]=t.publicUrl,e[21]=f,e[22]=b):b=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=i.jsx($e,{size:14}),e[23]=v):v=e[23];let _;e[24]!==l?(_=l("assets.browser.deleteAction"),e[24]=l,e[25]=_):_=e[25];let k;e[26]!==s||e[27]!==_?(k=i.jsxs(ue,{variant:"destructive",onClick:s,children:[v,_]}),e[26]=s,e[27]=_,e[28]=k):k=e[28];let j;e[29]!==b||e[30]!==k||e[31]!==u?(j=i.jsxs(Ne,{align:"end",children:[u,b,k]}),e[29]=b,e[30]=k,e[31]=u,e[32]=j):j=e[32];let P;return e[33]!==j||e[34]!==p?(P=i.jsxs(ve,{children:[p,j]}),e[33]=j,e[34]=p,e[35]=P):P=e[35],P}function pt(r){const e=F.c(47),{configId:t,item:s,onClose:l}=r,o=ce(),n=Ze();let c;e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==l||e[4]!==o?(c=async function(){if(s)try{await n.mutateAsync({configId:t,key:s.key}),ae.success(o("assets.browser.deleted")),l()}catch{ae.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=s,e[3]=l,e[4]=o,e[5]=c):c=e[5];const a=c,m=!!s;let y;e[6]!==l?(y=w=>!w&&l(),e[6]=l,e[7]=y):y=e[7];let p;e[8]!==o?(p=o("assets.browser.deleteConfirmTitle"),e[8]=o,e[9]=p):p=e[9];let d;e[10]!==p?(d=i.jsx(Me,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==s||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:s?ke(s.key):""}),e[12]=s,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=i.jsx(Te,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=i.jsxs(Ee,{children:[d,u]}),e[17]=d,e[18]=u,e[19]=h):h=e[19];const x=n.isPending;let f;e[20]!==o?(f=o("assets.browser.deleteCancel"),e[20]=o,e[21]=f):f=e[21];let b;e[22]!==n.isPending||e[23]!==f?(b=i.jsx(Oe,{disabled:x,children:f}),e[22]=n.isPending,e[23]=f,e[24]=b):b=e[24];let v;e[25]===Symbol.for("react.memo_cache_sentinel")?(v=je(Pe({variant:"destructive"})),e[25]=v):v=e[25];const _=n.isPending;let k;e[26]!==a?(k=w=>{w.preventDefault(),a()},e[26]=a,e[27]=k):k=e[27];let j;e[28]!==n.isPending?(j=n.isPending?i.jsx(ge,{className:"size-3.5"}):null,e[28]=n.isPending,e[29]=j):j=e[29];let P;e[30]!==o?(P=o("assets.browser.deleteConfirm"),e[30]=o,e[31]=P):P=e[31];let C;e[32]!==n.isPending||e[33]!==k||e[34]!==j||e[35]!==P?(C=i.jsxs(Re,{className:v,disabled:_,onClick:k,children:[j,P]}),e[32]=n.isPending,e[33]=k,e[34]=j,e[35]=P,e[36]=C):C=e[36];let D;e[37]!==b||e[38]!==C?(D=i.jsxs(Be,{children:[b,C]}),e[37]=b,e[38]=C,e[39]=D):D=e[39];let N;e[40]!==D||e[41]!==h?(N=i.jsxs(Le,{children:[h,D]}),e[40]=D,e[41]=h,e[42]=N):N=e[42];let S;return e[43]!==N||e[44]!==m||e[45]!==y?(S=i.jsx(Ve,{open:m,onOpenChange:y,children:N}),e[43]=N,e[44]=m,e[45]=y,e[46]=S):S=e[46],S}function dt(){const r=F.c(2),e=it();let t;return r[0]!==e?(t=i.jsx(Se,{tabId:"assets",children:i.jsx(st,{virtualMcpId:e})}),r[0]=e,r[1]=t):t=r[1],t}function gr(){const r=F.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ce.Content,{children:i.jsx(dt,{})}),r[0]=e):e=r[0],e}export{gr as default};
1
+ import{c as F,j as i,b as ce,r as ee,aY as ye,h as ge,B as xe,l as je,au as Pe,t as ae,F as De,G as ue,H as Ne,I as ve}from"./index-Bv8ovZX7.js";import{C as Ce}from"./index-DGESUJrE.js";import{A as Se}from"./agent-view-guard-KuUlGmjg.js";import{i as we}from"./Check-BgzQchyA.js";import{a as Ae}from"./Copy01-DY06zeXh.js";import{i as _e}from"./DotsVertical-DY1WVLqG.js";import{i as ze}from"./ZoomOut-DsH_k1C4.js";import{a as Fe}from"./Image01-Dnl26WcB.js";import{n as Ie}from"./LinkExternal01-CxPBcUve.js";import{a as Ue}from"./Package-DLofDsnv.js";import{s as $e}from"./Trash01-CSeT8ZD8.js";import{i as he}from"./Upload01-GlJ5Ud3s.js";import{A as Me,a as Te,b as Ee,c as Oe,g as Re,d as Be,e as Le,f as Ve}from"./alert-dialog-5zuyoQ54.js";import{S as Ge}from"./search-input-B3K0cIXk.js";import{a as qe}from"./use-virtual-mcp-DyTrBBn7.js";import{u as He}from"./use-debounced-value-D4IIgvZ6.js";import{u as We}from"./use-file-configs-BX41631Z.js";import{u as Ye,a as Ke,e as Qe,i as Je,b as ke,f as Xe,c as Ze}from"./asset-utils-DHE59DFm.js";import{m as et}from"./match-site-slug-config-D3fUJ6vX.js";import{r as tt}from"./site-slug-uya6Wp4-.js";import{b as it}from"./thread-route-CX0quyn9.js";import"./use-mobile-CbgvL5x6.js";import"./thread-button-CU8FEc0x.js";import"./sidebar-DMorNI5B.js";import"./LayoutLeft-Bis2ERIL.js";import"./sheet-ncGbwo3c.js";import"./X-ClBxN2Lo.js";import"./tooltip-452rT2Av.js";import"./index-CW3mvbP-.js";import"./use-panel-navigate-CeERwAhY.js";import"./use-project-scope-CdX2mBNC.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-BW9UadGk.js";import"./hooks-BHo3iW8o.js";import"./use-mcp-client-8W4pv2iG.js";import"./auth-Bdfh9TTN.js";import"./backoff-8mStPHYB.js";import"./task-board-CSfWLhg4.js";import"./schema-CMlylut3.js";import"./agent-icon-v-YF8SZ6.js";import"./AlertCircle-DwYUjJBu.js";import"./Tool01-BNu7BHqQ.js";import"./ArrowUp-Bgr2TLsm.js";import"./ArrowLeft-BrzmATFY.js";import"./ArrowRight-DYu8UyAE.js";import"./XCircle-Ds0Log1_.js";import"./Globe04-C9YOUwUx.js";import"./CheckCircle-DxLYuezp.js";import"./ChevronUp-CEt2-KWf.js";import"./UserSquare-B_QuMjVL.js";import"./CreditCard01-atzqozkq.js";import"./Download01-BsnTCWqr.js";import"./Eye-BCLEOXNL.js";import"./Share07-BqFFQNeK.js";import"./XClose-DjadAVCX.js";import"./Key01-CwoMWwVQ.js";import"./Link01-1Ii-ZBB1.js";import"./Monitor01-DypnteF9.js";import"./Sun-qCW4hQHf.js";import"./Palette-DZw1jmn0.js";import"./Plus-DJAmbMrJ.js";import"./SearchLg-0M2kccVO.js";import"./SearchMd-BT8cdzsW.js";import"./Stars01-BFm8fGnC.js";import"./User01-D0NPPWmZ.js";import"./Users01-K81i8krS.js";import"./Zap-D3U8XJRb.js";import"./toolbar-icon-button-CL9TUqhr.js";import"./use-in-settings-DMlBXVsJ.js";import"./shell-layout-Cn2XiFfO.js";import"./avatar-CAxICn2w.js";import"./download-app-dialog-jqsRuRCN.js";import"./dialog-aNfvq0Gx.js";import"./command-0Q71adD5.js";import"./index-CMM8OiJN.js";import"./integration-icon-_QdW_HEl.js";import"./project-icon-K8IkvwTu.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-5gvCMtcO.js";import"./autosend-D8pg19Rh.js";import"./use-org-sso-Od2nvWUP.js";import"./resizable-B57Znxf0.js";import"./route-page-header-CsPi4GMO.js";import"./use-main-panel-tabs-Xzm5JVo2.js";import"./use-connection-DZHmMxeG.js";import"./use-mcp-tools-CWjm4_qp.js";import"./types-CKACT3re.js";import"./utils-CVEq3hMx.js";import"./index-B9Mt2Zue.js";import"./chat-context-ZGS-0Lc6.js";import"./thread-intent-Bl6xIfFf.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-BTK1TiYJ.js";import"./use-ai-providers-BfBmzjxk.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-E0BM35TR.js";import"./use-organization-settings-BXDoAx1p.js";import"./gateway-client-DEZhRkTS.js";import"./drawer-DSLgUl8S.js";import"./collection-search-DUPEyodi.js";import"./use-mcp-prompts-EP5VAc7p.js";import"./index-CEIxT9-w.js";import"./form-BvSGycPj.js";import"./label-BAb2clBH.js";import"./input-D7VKtVHV.js";import"./org-file-open-context-C3CvG90a.js";import"./input-BrBT4VAu.js";import"./chat-draft-WttJ8tkW.js";import"./use-session-runtime-Bf6vLaxh.js";import"./select-B_9gxhnf.js";import"./usage-stats-DpOdKRPA.js";import"./use-copy-CKbfXSV3.js";import"./markdown-IEb50bp3.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./tabs-god_zfat.js";import"./use-deco-credits-CUhDqFNs.js";import"./toggle-group-uWDttGAl.js";import"./tool-namespace-DmnQIdtF.js";import"./use-open-billing-url-DAJYSvuP.js";import"./decopilot-CjeDftvq.js";import"./checkbox-8e5Ux6Bp.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-n4tdwfg1.js";import"./index-B1YIjoy8.js";import"./input-CXs-YVYu.js";import"./suggestion-5QOsyBWf.js";import"./use-org-fs-DlHKBaPi.js";import"./question-004-sINsf4GQ.js";import"./use-members-DdFSpvT6.js";import"./use-org-auth-client-PjV6soYN.js";import"./feature-paywall-Bh8RRr9y.js";import"./plan-ladder-DRDlfnKQ.js";import"./add-connection-dialog-BKL_hKkk.js";import"./extract-connection-data-B9DyPVU-.js";import"./metadata-D72DunRR.js";import"./connection-BwlYp_98.js";import"./connection-card-BwH4OiUh.js";import"./useInfiniteQuery-COua6s42.js";import"./infiniteQueryObserver-CLmBPvOC.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-Bs1krskq.js";import"./connection-form-helpers-DukXidKL.js";import"./authenticate-and-persist-oauth-DKS7LloY.js";import"./mcp-oauth-D7EnzUg3.js";import"./collection-tabs-DltvKsB7.js";import"./badge-BnOb-zsy.js";import"./use-infinite-scroll-Be1BN8YX.js";import"./useSuspenseInfiniteQuery-6311fHu0.js";import"./pair-DSAE6kBc.js";import"./collapsible-BSf9Onia.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BVjb1uep.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-navigate-to-agent-CnwjWuW_.js";import"./use-thread-outputs-CSH9qR28.js";import"./file-type-icon-BYgiZIDa.js";import"./sandbox-lifecycle-context-DsRGwORN.js";import"./sandbox-url-D3mC8qhT.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-metadata-DyG3Lo1p.js";import"./use-project-native-view-presence-0O5UQcYW.js";import"./virtual-mcp-BYf8h9T-.js";function st(r){const e=F.c(6),{virtualMcpId:t}=r,s=qe(t),l=We();let o;e[0]!==l||e[1]!==s?(o=et(l,tt(s)),e[0]=l,e[1]=s,e[2]=o):o=e[2];const n=o;if(!n){let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(rt,{}),e[3]=a):a=e[3],a}let c;return e[4]!==n?(c=i.jsx(nt,{config:n}),e[4]=n,e[5]=c):c=e[5],c}function rt(){const r=F.c(12),e=ce();let t;r[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:i.jsx(Ue,{size:20,className:"text-muted-foreground"})}),r[0]=t):t=r[0];let s;r[1]!==e?(s=e("assets.browser.noBucketTitle"),r[1]=e,r[2]=s):s=r[2];let l;r[3]!==s?(l=i.jsx("p",{className:"text-sm font-medium",children:s}),r[3]=s,r[4]=l):l=r[4];let o;r[5]!==e?(o=e("assets.browser.noBucketDescription"),r[5]=e,r[6]=o):o=r[6];let n;r[7]!==o?(n=i.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),r[7]=o,r[8]=n):n=r[8];let c;return r[9]!==l||r[10]!==n?(c=i.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[t,i.jsxs("div",{children:[l,n]})]}),r[9]=l,r[10]=n,r[11]=c):c=r[11],c}function lt(r){return r<0||r<640?2:r<768?3:r<1024?4:5}function ot(r,e){const t=Array.from({length:e},()=>[]);return r.forEach((s,l)=>t[l%e].push(s)),t}function nt(r){const e=F.c(99),{config:t}=r,s=ce(),[l,o]=ee.useState(""),n=He(l,300);let c;e[0]!==t.id||e[1]!==n?(c={configId:t.id,search:n},e[0]=t.id,e[1]=n,e[2]=c):c=e[2];const a=Ye(c),m=Ke(),[y,p]=ee.useState(!1),[d,g]=ee.useState(null),u=ee.useRef(null);let h;e[3]!==t.id||e[4]!==a||e[5]!==s||e[6]!==m?(h=async function(A){if(!A)return;const Z=Array.from(A);if(Z.length===0)return;const U=[];for(const R of Z)try{await m.mutateAsync({configId:t.id,file:R})}catch($){const z=$;U.push(`${R.name} (${z instanceof Error?z.message:"upload failed"})`)}await a.refetch(),U.length>0&&ae.error(U.length===Z.length?s("filePicker.filePickerDialog.uploadFailedAll",{errors:U.join("; ")}):s("filePicker.filePickerDialog.uploadFailedSome",{errors:U.join("; ")}))},e[3]=t.id,e[4]=a,e[5]=s,e[6]=m,e[7]=h):h=e[7];const x=h;let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=function(A){A.preventDefault(),p(!0)},e[8]=f):f=e[8];const b=f;let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=function(){p(!1)},e[9]=v):v=e[9];const _=v;let k;e[10]!==x?(k=function(A){A.preventDefault(),A.stopPropagation(),p(!1),x(A.dataTransfer.files)},e[10]=x,e[11]=k):k=e[11];const j=k,[P,C]=ye();let D,N,S,w,M,I;if(e[12]!==t.name||e[13]!==n||e[14]!==C||e[15]!==P||e[16]!==x||e[17]!==y||e[18]!==a.data?.pages||e[19]!==a.isFetching||e[20]!==a.isFetchingNextPage||e[21]!==j||e[22]!==l||e[23]!==s||e[24]!==m.isPending){const A=(a.data?.pages??[]).flatMap(at),Z=ot(A,lt(P)),U=n.trim(),R=l!==n||a.isFetching&&!a.isFetchingNextPage;M="flex h-full min-h-0 flex-col gap-3 p-4";let $;e[31]!==s?($=s("assets.browser.title"),e[31]=s,e[32]=$):$=e[32];let z;e[33]!==$?(z=i.jsx("h2",{className:"text-sm font-semibold",children:$}),e[33]=$,e[34]=z):z=e[34];let B;e[35]!==t.name||e[36]!==s?(B=s("assets.browser.bucketLabel",{name:t.name}),e[35]=t.name,e[36]=s,e[37]=B):B=e[37];let L;e[38]!==B?(L=i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:B}),e[38]=B,e[39]=L):L=e[39];let V;e[40]!==z||e[41]!==L?(V=i.jsxs("div",{className:"min-w-0",children:[z,L]}),e[40]=z,e[41]=L,e[42]=V):V=e[42];let re;e[43]===Symbol.for("react.memo_cache_sentinel")?(re=()=>u.current?.click(),e[43]=re):re=e[43];let G;e[44]!==m.isPending?(G=m.isPending?i.jsx(ge,{className:"size-3.5"}):i.jsx(he,{size:14}),e[44]=m.isPending,e[45]=G):G=e[45];let q;e[46]!==s||e[47]!==m.isPending?(q=m.isPending?s("filePicker.filePickerDialog.uploading"):s("filePicker.filePickerDialog.dropFilesOrClick"),e[46]=s,e[47]=m.isPending,e[48]=q):q=e[48];let H;e[49]!==G||e[50]!==q||e[51]!==m.isPending?(H=i.jsxs(xe,{type:"button",size:"sm",disabled:m.isPending,onClick:re,children:[G,q]}),e[49]=G,e[50]=q,e[51]=m.isPending,e[52]=H):H=e[52];let W;e[53]!==x?(W=i.jsx("input",{ref:u,type:"file",multiple:!0,className:"hidden",onChange:ne=>{const pe=Array.from(ne.target.files??[]);ne.target.value="",x(pe)}}),e[53]=x,e[54]=W):W=e[54],e[55]!==V||e[56]!==H||e[57]!==W?(I=i.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[V,H,W]}),e[55]=V,e[56]=H,e[57]=W,e[58]=I):I=e[58];let Y;e[59]!==s?(Y=s("filePicker.filePickerDialog.searchFilesPlaceholder"),e[59]=s,e[60]=Y):Y=e[60],e[61]!==R||e[62]!==l||e[63]!==Y?(D=i.jsx(Ge,{value:l,onChange:o,isSearching:R,placeholder:Y,className:"shrink-0"}),e[61]=R,e[62]=l,e[63]=Y,e[64]=D):D=e[64];let le;e[65]===Symbol.for("react.memo_cache_sentinel")?(le=()=>u.current?.click(),e[65]=le):le=e[65];const me=y&&"border-primary bg-primary/5",fe=m.isPending&&"pointer-events-none opacity-60";let K;e[66]!==me||e[67]!==fe?(K=je("flex shrink-0 flex-col items-center justify-center gap-1 rounded-xl border border-dashed border-border/60 p-4 text-center transition-colors",me,fe),e[66]=me,e[67]=fe,e[68]=K):K=e[68];let oe;e[69]===Symbol.for("react.memo_cache_sentinel")?(oe=i.jsx(he,{size:16,className:"text-muted-foreground"}),e[69]=oe):oe=e[69];let Q;e[70]!==s?(Q=s("filePicker.filePickerDialog.dropFilesOrClick"),e[70]=s,e[71]=Q):Q=e[71];let J;e[72]!==s?(J=s("filePicker.filePickerDialog.uploadSizeLimit"),e[72]=s,e[73]=J):J=e[73];let X;e[74]!==Q||e[75]!==J?(X=i.jsxs("p",{className:"text-xs text-muted-foreground",children:[Q," ",J]}),e[74]=Q,e[75]=J,e[76]=X):X=e[76],e[77]!==j||e[78]!==K||e[79]!==X?(N=i.jsxs("button",{type:"button",onClick:le,onDragOver:b,onDragLeave:_,onDrop:j,className:K,children:[oe,X]}),e[77]=j,e[78]=K,e[79]=X,e[80]=N):N=e[80],S="min-h-0 flex-1 overflow-y-auto pr-1",w=A.length===0?U?i.jsx(be,{title:s("filePicker.filePickerDialog.noMatches",{query:U}),description:s("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):i.jsx(be,{title:s("filePicker.filePickerDialog.noFilesYet"),description:s("filePicker.filePickerDialog.dropFileToGetStarted")}):i.jsx("div",{ref:C,className:"flex items-start gap-3",children:Z.map((ne,pe)=>i.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ne.map(de=>i.jsx(ct,{item:de,onDelete:()=>g(de)},de.key))},pe))}),e[12]=t.name,e[13]=n,e[14]=C,e[15]=P,e[16]=x,e[17]=y,e[18]=a.data?.pages,e[19]=a.isFetching,e[20]=a.isFetchingNextPage,e[21]=j,e[22]=l,e[23]=s,e[24]=m.isPending,e[25]=D,e[26]=N,e[27]=S,e[28]=w,e[29]=M,e[30]=I}else D=e[25],N=e[26],S=e[27],w=e[28],M=e[29],I=e[30];let T;e[81]!==a||e[82]!==s?(T=a.hasNextPage&&i.jsx("div",{className:"flex justify-center py-4",children:i.jsx(xe,{type:"button",variant:"outline",size:"sm",disabled:a.isFetchingNextPage,onClick:()=>a.fetchNextPage(),children:a.isFetchingNextPage?i.jsxs(i.Fragment,{children:[i.jsx(ge,{className:"size-3.5"}),s("filePicker.filePickerDialog.loading")]}):s("filePicker.filePickerDialog.loadMore")})}),e[81]=a,e[82]=s,e[83]=T):T=e[83];let E;e[84]!==T||e[85]!==S||e[86]!==w?(E=i.jsxs("div",{className:S,children:[w,T]}),e[84]=T,e[85]=S,e[86]=w,e[87]=E):E=e[87];let te;e[88]===Symbol.for("react.memo_cache_sentinel")?(te=()=>g(null),e[88]=te):te=e[88];let O;e[89]!==t.id||e[90]!==d?(O=i.jsx(pt,{configId:t.id,item:d,onClose:te}),e[89]=t.id,e[90]=d,e[91]=O):O=e[91];let ie;return e[92]!==D||e[93]!==N||e[94]!==E||e[95]!==O||e[96]!==M||e[97]!==I?(ie=i.jsxs("div",{className:M,children:[I,D,N,E,O]}),e[92]=D,e[93]=N,e[94]=E,e[95]=O,e[96]=M,e[97]=I,e[98]=ie):ie=e[98],ie}function at(r){return r.items}function be(r){const e=F.c(8),{title:t,description:s}=r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:i.jsx(Fe,{size:18,className:"text-muted-foreground"})}),e[0]=l):l=e[0];let o;e[1]!==t?(o=i.jsx("p",{className:"text-sm font-medium",children:t}),e[1]=t,e[2]=o):o=e[2];let n;e[3]!==s?(n=i.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[3]=s,e[4]=n):n=e[4];let c;return e[5]!==o||e[6]!==n?(c=i.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[l,o,n]}),e[5]=o,e[6]=n,e[7]=c):c=e[7],c}function ct(r){const e=F.c(34),{item:t,onDelete:s}=r;let l;e[0]!==t.key?(l=Qe(t.key),e[0]=t.key,e[1]=l):l=e[1];const o=l;let n;e[2]!==t.key?(n=Je(t.key),e[2]=t.key,e[3]=n):n=e[3];const c=n;let a;e[4]!==c||e[5]!==t.key||e[6]!==t.publicUrl?(a=c?i.jsx("img",{src:t.publicUrl,alt:t.key,loading:"lazy",className:"block h-auto w-full",onError:mt}):i.jsx("div",{className:"flex aspect-square items-center justify-center",children:i.jsx(ze,{size:28,className:"text-muted-foreground"})}),e[4]=c,e[5]=t.key,e[6]=t.publicUrl,e[7]=a):a=e[7];let m;e[8]!==t.key||e[9]!==t.publicUrl||e[10]!==a?(m=i.jsx("a",{href:t.publicUrl,target:"_blank",rel:"noreferrer",title:t.key,className:"block transition hover:ring-2 hover:ring-inset hover:ring-primary",children:a}),e[8]=t.key,e[9]=t.publicUrl,e[10]=a,e[11]=m):m=e[11];const y=t.key;let p;e[12]!==t.key?(p=ke(t.key),e[12]=t.key,e[13]=p):p=e[13];let d;e[14]!==t.key||e[15]!==p?(d=i.jsx("p",{className:"truncate text-xs font-medium",title:y,children:p}),e[14]=t.key,e[15]=p,e[16]=d):d=e[16];let g;e[17]!==t.size?(g=Xe(t.size),e[17]=t.size,e[18]=g):g=e[18];let u;e[19]!==o||e[20]!==g?(u=i.jsxs("p",{className:"text-[10px] uppercase text-muted-foreground",children:[o," · ",g]}),e[19]=o,e[20]=g,e[21]=u):u=e[21];let h;e[22]!==d||e[23]!==u?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[d,u]}),e[22]=d,e[23]=u,e[24]=h):h=e[24];let x;e[25]!==t||e[26]!==s?(x=i.jsx(ft,{item:t,onDelete:s}),e[25]=t,e[26]=s,e[27]=x):x=e[27];let f;e[28]!==h||e[29]!==x?(f=i.jsxs("div",{className:"flex items-center gap-1 border-t border-border/60 bg-background px-2 py-1.5",children:[h,x]}),e[28]=h,e[29]=x,e[30]=f):f=e[30];let b;return e[31]!==f||e[32]!==m?(b=i.jsxs("div",{className:"group relative flex flex-col overflow-hidden rounded-lg border border-border/60 bg-muted",children:[m,f]}),e[31]=f,e[32]=m,e[33]=b):b=e[33],b}function mt(r){r.target.style.display="none"}function ft(r){const e=F.c(36),{item:t,onDelete:s}=r,l=ce(),[o,n]=ee.useState(!1);let c;e[0]!==t.publicUrl||e[1]!==l?(c=async function(){try{await navigator.clipboard.writeText(t.publicUrl),n(!0),window.setTimeout(()=>n(!1),1500)}catch{ae.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=t.publicUrl,e[1]=l,e[2]=c):c=e[2];const a=c;let m;e[3]!==l?(m=l("filePicker.filePickerDialog.assetActions"),e[3]=l,e[4]=m):m=e[4];let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsx(_e,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=i.jsx(De,{asChild:!0,children:i.jsx(xe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0 classic:rounded-md","aria-label":m,children:y})}),e[6]=m,e[7]=p):p=e[7];let d;e[8]!==o?(d=o?i.jsx(we,{size:14}):i.jsx(Ae,{size:14}),e[8]=o,e[9]=d):d=e[9];let g;e[10]!==o||e[11]!==l?(g=l(o?"filePicker.filePickerDialog.copied":"filePicker.filePickerDialog.copyUrl"),e[10]=o,e[11]=l,e[12]=g):g=e[12];let u;e[13]!==a||e[14]!==d||e[15]!==g?(u=i.jsxs(ue,{onClick:a,children:[d,g]}),e[13]=a,e[14]=d,e[15]=g,e[16]=u):u=e[16];const h=t.publicUrl;let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx(Ie,{size:14}),e[17]=x):x=e[17];let f;e[18]!==l?(f=l("filePicker.filePickerDialog.openInNewTab"),e[18]=l,e[19]=f):f=e[19];let b;e[20]!==t.publicUrl||e[21]!==f?(b=i.jsx(ue,{asChild:!0,children:i.jsxs("a",{href:h,target:"_blank",rel:"noreferrer",children:[x,f]})}),e[20]=t.publicUrl,e[21]=f,e[22]=b):b=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=i.jsx($e,{size:14}),e[23]=v):v=e[23];let _;e[24]!==l?(_=l("assets.browser.deleteAction"),e[24]=l,e[25]=_):_=e[25];let k;e[26]!==s||e[27]!==_?(k=i.jsxs(ue,{variant:"destructive",onClick:s,children:[v,_]}),e[26]=s,e[27]=_,e[28]=k):k=e[28];let j;e[29]!==b||e[30]!==k||e[31]!==u?(j=i.jsxs(Ne,{align:"end",children:[u,b,k]}),e[29]=b,e[30]=k,e[31]=u,e[32]=j):j=e[32];let P;return e[33]!==j||e[34]!==p?(P=i.jsxs(ve,{children:[p,j]}),e[33]=j,e[34]=p,e[35]=P):P=e[35],P}function pt(r){const e=F.c(47),{configId:t,item:s,onClose:l}=r,o=ce(),n=Ze();let c;e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==l||e[4]!==o?(c=async function(){if(s)try{await n.mutateAsync({configId:t,key:s.key}),ae.success(o("assets.browser.deleted")),l()}catch{ae.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=s,e[3]=l,e[4]=o,e[5]=c):c=e[5];const a=c,m=!!s;let y;e[6]!==l?(y=w=>!w&&l(),e[6]=l,e[7]=y):y=e[7];let p;e[8]!==o?(p=o("assets.browser.deleteConfirmTitle"),e[8]=o,e[9]=p):p=e[9];let d;e[10]!==p?(d=i.jsx(Me,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==s||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:s?ke(s.key):""}),e[12]=s,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=i.jsx(Te,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=i.jsxs(Ee,{children:[d,u]}),e[17]=d,e[18]=u,e[19]=h):h=e[19];const x=n.isPending;let f;e[20]!==o?(f=o("assets.browser.deleteCancel"),e[20]=o,e[21]=f):f=e[21];let b;e[22]!==n.isPending||e[23]!==f?(b=i.jsx(Oe,{disabled:x,children:f}),e[22]=n.isPending,e[23]=f,e[24]=b):b=e[24];let v;e[25]===Symbol.for("react.memo_cache_sentinel")?(v=je(Pe({variant:"destructive"})),e[25]=v):v=e[25];const _=n.isPending;let k;e[26]!==a?(k=w=>{w.preventDefault(),a()},e[26]=a,e[27]=k):k=e[27];let j;e[28]!==n.isPending?(j=n.isPending?i.jsx(ge,{className:"size-3.5"}):null,e[28]=n.isPending,e[29]=j):j=e[29];let P;e[30]!==o?(P=o("assets.browser.deleteConfirm"),e[30]=o,e[31]=P):P=e[31];let C;e[32]!==n.isPending||e[33]!==k||e[34]!==j||e[35]!==P?(C=i.jsxs(Re,{className:v,disabled:_,onClick:k,children:[j,P]}),e[32]=n.isPending,e[33]=k,e[34]=j,e[35]=P,e[36]=C):C=e[36];let D;e[37]!==b||e[38]!==C?(D=i.jsxs(Be,{children:[b,C]}),e[37]=b,e[38]=C,e[39]=D):D=e[39];let N;e[40]!==D||e[41]!==h?(N=i.jsxs(Le,{children:[h,D]}),e[40]=D,e[41]=h,e[42]=N):N=e[42];let S;return e[43]!==N||e[44]!==m||e[45]!==y?(S=i.jsx(Ve,{open:m,onOpenChange:y,children:N}),e[43]=N,e[44]=m,e[45]=y,e[46]=S):S=e[46],S}function dt(){const r=F.c(2),e=it();let t;return r[0]!==e?(t=i.jsx(Se,{tabId:"assets",children:i.jsx(st,{virtualMcpId:e})}),r[0]=e,r[1]=t):t=r[1],t}function gr(){const r=F.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ce.Content,{children:i.jsx(dt,{})}),r[0]=e):e=r[0],e}export{gr as default};
@@ -1,4 +1,4 @@
1
- import{ai as It,c as ce,b as me,r as D,j as t,B as Q,l as $t,a0 as gt,I as At,F as Pt,H as zt,aT as Et,aU as Kt,aV as Ft,G as Ae,t as oe,aG as Ot,h as _e,q as Se,ao as Mt,aW as Ye,aX as Rt,ad as Lt,n as Ue,aJ as ht,f as Ut}from"./index-cT94sQUH.js";import{C as Wt}from"./index-ChjHAm_X.js";import{ag as Vt,i as Gt,V as Bt,ah as Ht,G as Ze,N as et,ai as Xt,d as Jt,L as Te}from"./agent-icon-CVsOY5Om.js";import{i as qt}from"./Check-CGKF06bT.js";import{t as Ge}from"./ChevronUp-Du4AWZmG.js";import{c as Qt}from"./UserSquare-CHvWRyuq.js";import{f as Be,b as jt}from"./Tool01-DK_vv6qf.js";import{i as He,a as tt}from"./Share07-DpckpNEB.js";import{a as Yt}from"./Image01-DPZCMheY.js";import{i as Zt}from"./SearchMd-B9ModJFt.js";import{t as yt}from"./Stars01-B6IfixlN.js";import{B as es}from"./badge-DS7xysUQ.js";import{C as bt}from"./checkbox-DXebLGmO.js";import{S as vt}from"./switch-BhJ3AZWs.js";import{a as Ct,b as Nt,P as St}from"./popover-DuPXzrgi.js";import{C as ts,a as st,b as ss,d as os,e as ns,c as as}from"./command-DZRWMxD5.js";import{g as is,s as rs}from"./gateway-client-BrPXiQqR.js";import{u as Xe}from"./use-connection-BUnGMpfY.js";import{u as ls}from"./use-mcp-client-GBv4syMd.js";import{u as cs}from"./use-mcp-tools-BZqzi-qU.js";import{I as ds}from"./integration-icon-CBv4y2ld.js";import{M as ms}from"./select-model-Dgg0QqmD.js";import{u as us}from"./use-ai-providers-Cc_CzBZr.js";import{U as fs,b as ps}from"./build-improve-prompt-doc-lqIM7ao_.js";import{a as Fe,c as xs,d as gs}from"./use-automations-Bjnctu1x.js";import{b as hs,a as js,t as ys,g as bs}from"./chat-context-CIrojUbL.js";import{b as vs,C as Cs,a as Ns}from"./collapsible-Ckib1khq.js";import{I as ot}from"./input-CSdHjp7L.js";import{c as Ss,T as ks,a as Ts}from"./tooltip-BGTnGCWW.js";import{a as ws}from"./shell-layout-CkG1W_88.js";import{i as kt}from"./ArrowLeft-DmWma6hW.js";import{i as _s}from"./ArrowUp-BB5V3348.js";import{s as Ds}from"./Trash01-Dw6PLr8l.js";import{s as Je}from"./XClose-1APsw2yP.js";import{u as nt}from"./use-debounced-autosave-Ds1nUcal.js";import{T as Is,a as $s}from"./input-DbR0YCVu.js";import{s as As}from"./Plus-Do5Wkomw.js";import{i as qe}from"./Zap-SzxRRv0w.js";import{d as Ps,h as zs,c as Es,e as Ks,b as Fs,D as Os}from"./dialog-DiUlVwD1.js";import{b as Ms,a as Rs,T as at}from"./tabs-BcaB_WSA.js";import{a as We}from"./Copy01-CYbqJpFZ.js";import{M as Ls}from"./monaco-editor-BYvrmVl8.js";import{A as it,a as rt,b as lt,c as ct,g as dt,d as mt,e as ut,f as ft}from"./alert-dialog-m7PHs13d.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-B3V6AARR.js";import{A as Us}from"./automation-runs-BCo5l857.js";import{C as Ws}from"./collection-tabs-CrAcGqu0.js";import{a as Vs}from"./use-panel-navigate-BvpNAJeL.js";import"./use-mobile-Dv7BcXr5.js";import"./thread-button-BVgcb5x6.js";import"./sidebar-BFWjj-3T.js";import"./LayoutLeft-DgiG6wiH.js";import"./sheet-908igmnH.js";import"./X-CLqvixem.js";import"./thread-route-C05Rrd8B.js";import"./use-route-default-main-Bux-DW8_.js";import"./hooks-Dpw_cJTM.js";import"./backoff-8mStPHYB.js";import"./task-board-BKlDz2nG.js";import"./schema-BwpPocS5.js";import"./toolbar-icon-button-BXZ727Lv.js";import"./use-in-settings-3zEronlT.js";import"./resizable-CyPCDk7u.js";import"./route-page-header-CQ5gYErc.js";import"./use-project-scope-CYpIGnJg.js";import"./use-virtual-mcp-CyUsVYwB.js";import"./github-repo-BknN0SVI.js";import"./AlertCircle-B3LJiQhZ.js";import"./ArrowRight-540iMVH3.js";import"./XCircle-xC8IFHez.js";import"./ZoomOut-DD-ULjJm.js";import"./Globe04-DnURSsdQ.js";import"./CheckCircle-tvGC17Dy.js";import"./CreditCard01-CK4yyvJY.js";import"./DotsVertical-BQfY36BV.js";import"./Download01-C8jubU2p.js";import"./Eye-CpLoEsen.js";import"./Key01-CSyDklFV.js";import"./Link01-CYG0Mr8Q.js";import"./LinkExternal01-Div0d_z3.js";import"./Monitor01-BrSZ6zzu.js";import"./Sun-CzonSHrU.js";import"./Package-C5JGfmw5.js";import"./Palette-Bm4HMPv2.js";import"./SearchLg-gOfrWgIs.js";import"./Upload01-BsQDz7U2.js";import"./User01-Bla6DkK3.js";import"./Users01-fXdkObFe.js";import"./index-C9PI5TjH.js";import"./auth-k9t16OOb.js";import"./drawer-BT08Xqaa.js";import"./decopilot-CaIWBpB6.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-B9CWtHB4.js";import"./download-app-dialog-CwgA8Jar.js";import"./use-is-desktop-app-BNujXJc_.js";import"./index-pU5iRqYT.js";import"./autosend-BKkKn8iq.js";import"./thread-intent-CHlBhQ4g.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-Dbhso4ZI.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BT_W0lJl.js";import"./use-organization-settings-C55vewZa.js";import"./index-CgGEL4tk.js";import"./project-icon-DW-tv9X7.js";import"./required-auth-layout-fSuiMVRc.js";import"./use-org-sso-BziwA5dH.js";import"./suggestion-DWARFIlS.js";import"./index-B37137hI.js";import"./form-DDtq3Oeg.js";import"./label-C6sMx1BY.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-DjmvTwmC.js";import"./use-mcp-prompts-CrOqkZmO.js";import"./use-org-fs-CGr2NA9d.js";import"./editor-S8HMRfnV.js";import"./useInfiniteQuery-DS8vuz-1.js";import"./infiniteQueryObserver-Dj3x0ul-.js";import"./table-niYnsTKc.js";import"./empty-state-YhHJ1PAR.js";import"./use-infinite-scroll-DASshMJA.js";import"./use-members-hKKM8H8F.js";import"./use-org-auth-client-DzE4u5oy.js";import"./task-status-VdIk_CP0.js";import"./thread-sheet-body-Do5I-YMq.js";import"./useSuspenseInfiniteQuery-D-EjhUK7.js";import"./pair-knW_lHO5.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-Cg8pzMCn.js";import"./usage-stats-D4BBDmdo.js";import"./markdown-rYdPNaGa.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DQd4z-tw.js";import"./types-C2ulVtYx.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-navigate-to-agent-Cp353ZuE.js";import"./use-thread-outputs-B__J7AZP.js";import"./file-type-icon-DyGflp6T.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:Jt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Xt}},Gs=["fast","smart","thinking"];function Bs(a){const e=ce.c(19),{tier:o,onSelect:i}=a,n=me(),[s,l]=D.useState(!1),r=Ve[o].icon;let j;e[0]!==r?(j=t.jsx(r,{size:14,className:"text-muted-foreground"}),e[0]=r,e[1]=j):j=e[1];const u=Ve[o];let c;e[2]!==n||e[3]!==u.labelKey?(c=n(u.labelKey),e[2]=n,e[3]=u.labelKey,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Ge,{size:14,className:"text-muted-foreground"}),e[5]=f):f=e[5];let g;e[6]!==j||e[7]!==c?(g=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,c,f]})}),e[6]=j,e[7]=c,e[8]=g):g=e[8];let h;e[9]!==i||e[10]!==n||e[11]!==o?(h=Gs.map(m=>{const x=Ve[m],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(m),l(!1)},className:$t("flex items-start gap-2 px-2 py-1.5 classic:rounded-md compact:rounded-lg text-left hover:bg-muted"),children:[t.jsx(b,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:n(x.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:n(x.subtitleKey)})]}),m===o&&t.jsx(qt,{size:14,className:"text-foreground mt-0.5"})]},m)}),e[9]=i,e[10]=n,e[11]=o,e[12]=h):h=e[12];let d;e[13]!==h?(d=t.jsx(Nt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:h})}),e[13]=h,e[14]=d):d=e[14];let p;return e[15]!==s||e[16]!==g||e[17]!==d?(p=t.jsxs(St,{open:s,onOpenChange:l,children:[g,d]}),e[15]=s,e[16]=g,e[17]=d,e[18]=p):p=e[18],p}function Hs(a){const e=ce.c(27),{tier:o,onTierChange:i,override:n,onOverrideChange:s}=a,l=me(),[r,j]=D.useState(n!==null);let u;e[0]!==l?(u=l("automations.automationConfig.modelLabel"),e[0]=l,e[1]=u):u=e[1];let c;e[2]!==u?(c=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:u}),e[2]=u,e[3]=c):c=e[3];let f;e[4]!==s||e[5]!==i||e[6]!==n||e[7]!==l||e[8]!==o||e[9]!==r?(f=r?t.jsx(D.Suspense,{fallback:t.jsx(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:l("automations.automationConfig.loadingModels")}),children:t.jsx(Xs,{override:n,onOverrideChange:s})}):t.jsx(Bs,{tier:o,onSelect:i}),e[4]=s,e[5]=i,e[6]=n,e[7]=l,e[8]=o,e[9]=r,e[10]=f):f=e[10];let g;e[11]!==s?(g=b=>{j(b),b||s(null)},e[11]=s,e[12]=g):g=e[12];let h;e[13]!==g||e[14]!==r?(h=t.jsx(vt,{checked:r,onCheckedChange:g,className:"cursor-pointer"}),e[13]=g,e[14]=r,e[15]=h):h=e[15];let d;e[16]!==l?(d=l("automations.automationConfig.specificModel"),e[16]=l,e[17]=d):d=e[17];let p;e[18]!==h||e[19]!==d?(p=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[h,d]}),e[18]=h,e[19]=d,e[20]=p):p=e[20];let m;e[21]!==f||e[22]!==p?(m=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f,p]}),e[21]=f,e[22]=p,e[23]=m):m=e[23];let x;return e[24]!==c||e[25]!==m?(x=t.jsxs("div",{className:"flex flex-col gap-2",children:[c,m]}),e[24]=c,e[25]=m,e[26]=x):x=e[26],x}function Xs(a){const e=ce.c(25),{override:o,onOverrideChange:i}=a,n=me(),s=us(),l=s[0]?.id??null;let r;e[0]!==l||e[1]!==s||e[2]!==o?.credentialId?(r=s.some(x=>x.id===o?.credentialId)?o?.credentialId??null:l,e[0]=l,e[1]=s,e[2]=o?.credentialId,e[3]=r):r=e[3];const[j,u]=D.useState(r);let c;e[4]!==j||e[5]!==l||e[6]!==s?(c=s.some(x=>x.id===j)?j:l,e[4]=j,e[5]=l,e[6]=s,e[7]=c):c=e[7];const f=c;let g;e[8]!==s||e[9]!==o?(g=o&&s.some(x=>x.id===o.credentialId)?{modelId:o.modelId,title:o.title||o.modelId,keyId:o.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=s,e[9]=o,e[10]=g):g=e[10];const h=g;if(s.length===0){let x;e[11]!==n?(x=n("automations.automationConfig.connectAiProviderHint"),e[11]=n,e[12]=x):x=e[12];let b;return e[13]!==x?(b=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:x}),e[13]=x,e[14]=b):b=e[14],b}let d;e[15]!==n?(d=n("automations.automationConfig.pickModelPlaceholder"),e[15]=n,e[16]=d):d=e[16];let p;e[17]!==f||e[18]!==i?(p=x=>{const b=x.keyId??f??"";u(b),i({modelId:x.modelId,credentialId:b,title:x.title??x.modelId})},e[17]=f,e[18]=i,e[19]=p):p=e[19];let m;return e[20]!==f||e[21]!==h||e[22]!==d||e[23]!==p?(m=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(ms,{variant:"bordered",placeholder:d,model:h,credentialId:f,onCredentialChange:u,onModelChange:p})}),e[20]=f,e[21]=h,e[22]=d,e[23]=p,e[24]=m):m=e[24],m}const Tt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:Be,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:He},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:Yt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:It},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Vt}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:tt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Gt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Bt},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Zt},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:tt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Ht}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Ze,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Ze},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:et},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:et}]}],Js=Tt.flatMap(a=>a.tools.map(e=>e.name));function qs(a){const e=a.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,o=>o.toUpperCase()):a}function Qs(a){const e=ce.c(12),{agentId:o,value:i,onChange:n}=a,s=me();let l;e[0]!==s?(l=s("automations.automationConfig.toolsLabel"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==l?(r=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:l}),e[2]=l,e[3]=r):r=e[3];let j;e[4]!==o||e[5]!==n||e[6]!==s||e[7]!==i?(j=o?t.jsx(D.Suspense,{fallback:t.jsxs(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(Be,{size:14}),s("automations.automationConfig.loadingTools")]}),children:t.jsx(Ys,{agentId:o,value:i,onChange:n})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:s("automations.automationConfig.pickAgentFirst")}),e[4]=o,e[5]=n,e[6]=s,e[7]=i,e[8]=j):j=e[8];let u;return e[9]!==r||e[10]!==j?(u=t.jsxs("div",{className:"flex flex-col gap-2",children:[r,j]}),e[9]=r,e[10]=j,e[11]=u):u=e[11],u}function pt(a){const e=ce.c(17),{value:o,checked:i,onToggle:n,title:s,description:l,leading:r}=a;let j;e[0]!==i?(j=t.jsx(bt,{checked:i,className:"pointer-events-none mt-0.5"}),e[0]=i,e[1]=j):j=e[1];let u;e[2]!==r?(u=r&&t.jsx("span",{className:"mt-px shrink-0",children:r}),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==s?(c=t.jsx("span",{className:"truncate text-sm leading-tight",children:s}),e[4]=s,e[5]=c):c=e[5];let f;e[6]!==l?(f=l&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:l}),e[6]=l,e[7]=f):f=e[7];let g;e[8]!==c||e[9]!==f?(g=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c,f]}),e[8]=c,e[9]=f,e[10]=g):g=e[10];let h;return e[11]!==n||e[12]!==j||e[13]!==u||e[14]!==g||e[15]!==o?(h=t.jsxs(ss,{value:o,onSelect:n,className:"items-start gap-2.5 py-2",children:[j,u,g]}),e[11]=n,e[12]=j,e[13]=u,e[14]=g,e[15]=o,e[16]=h):h=e[16],h}function xt(a){const e=ce.c(27),{conn:o,label:i,icon:n,on:s,total:l,onToggle:r}=a,j=me(),u=s===l;let c;e[0]!==n||e[1]!==o?(c=o?t.jsx(ds,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Qt,{size:14,className:"text-muted-foreground"}),e[0]=n,e[1]=o,e[2]=c):c=e[2];let f;e[3]!==o?.title||e[4]!==i||e[5]!==j?(f=o?.title??i??j("automations.automationConfig.otherTools"),e[3]=o?.title,e[4]=i,e[5]=j,e[6]=f):f=e[6];let g;e[7]!==f?(g=t.jsx("span",{className:"truncate",children:f}),e[7]=f,e[8]=g):g=e[8];let h;e[9]!==s||e[10]!==l?(h=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[s,"/",l]}),e[9]=s,e[10]=l,e[11]=h):h=e[11];let d;e[12]!==r?(d=C=>{C.stopPropagation(),r()},e[12]=r,e[13]=d):d=e[13];let p;e[14]!==u||e[15]!==j?(p=j(u?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=u,e[15]=j,e[16]=p):p=e[16];let m;e[17]!==d||e[18]!==p?(m=t.jsx("button",{type:"button",onClick:d,className:"text-[11px] font-medium text-primary hover:underline",children:p}),e[17]=d,e[18]=p,e[19]=m):m=e[19];let x;e[20]!==h||e[21]!==m?(x=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[h,m]}),e[20]=h,e[21]=m,e[22]=x):x=e[22];let b;return e[23]!==c||e[24]!==g||e[25]!==x?(b=t.jsxs("div",{className:"flex items-center gap-2",children:[c,g,x]}),e[23]=c,e[24]=g,e[25]=x,e[26]=b):b=e[26],b}function Ys(a){const e=ce.c(83),{agentId:o,value:i,onChange:n}=a,s=me(),{org:l}=gt(),[r,j]=D.useState(!1);let u;e[0]!==o||e[1]!==l.id||e[2]!==l.slug?(u={connectionId:o,orgId:l.id,orgSlug:l.slug},e[0]=o,e[1]=l.id,e[2]=l.slug,e[3]=u):u=e[3];const c=ls(u);let f;e[4]!==c?(f={client:c},e[4]=c,e[5]=f):f=e[5];const{data:g,isLoading:h}=cs(f),d=Xe();let p,m,x,b,C,w,N,z,_,v,S,k,E;if(e[6]!==d||e[7]!==g?.tools||e[8]!==h||e[9]!==n||e[10]!==r||e[11]!==s||e[12]!==i){const H=new Map(d.map(oo)),B=new Map;for(const T of g?.tools??[]){const A=is(T._meta)??"__other__",q=rs(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:qs(q);B.has(A)||B.set(A,{clientId:A,conn:H.get(A),tools:[]}),B.get(A).tools.push({name:T.name,display:xe,description:T.description})}const V=[...B.values()].sort(so),X=(g?.tools??[]).map(to),G=[...Js,...X],L=i===null?new Set(G):new Set(i),W=G.every(T=>L.has(T)),I=T=>n(G.every(A=>T.has(A))?null:[...T]),Y=T=>{const A=new Set(L);A.has(T)?A.delete(T):A.add(T),I(A)},Z=(T,A)=>{const q=new Set(L);for(const $ of T)A?q.add($):q.delete($);I(q)};b=St,E=r,C=j;let J;e[26]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[26]=J):J=e[26];let ne;e[27]!==W||e[28]!==s?(ne=s(W?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=W,e[28]=s,e[29]=ne):ne=e[29];const ue=!W&&t.jsxs(es,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",G.length]});let de;e[30]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(Ge,{size:14,className:"text-muted-foreground"}),e[30]=de):de=e[30],e[31]!==ne||e[32]!==ue?(w=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[J,ne,ue,de]})}),e[31]=ne,e[32]=ue,e[33]=w):w=e[33],x=Nt,S="p-0 w-80",k="start",m=os;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(ns,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const fe=W?s("automations.automationConfig.allToolsEnabled",{count:G.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:G.length});let te;e[38]!==fe?(te=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=te):te=e[39];let ae;e[40]!==n?(ae=()=>n(null),e[40]=n,e[41]=ae):ae=e[41];let ie;e[42]!==s?(ie=s("automations.automationConfig.selectAll"),e[42]=s,e[43]=ie):ie=e[43];let y;e[44]!==W||e[45]!==ae||e[46]!==ie?(y=t.jsx("button",{type:"button",onClick:ae,disabled:W,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:ie}),e[44]=W,e[45]=ae,e[46]=ie,e[47]=y):y=e[47];let O;e[48]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=O):O=e[48];let P;e[49]!==n?(P=()=>n([]),e[49]=n,e[50]=P):P=e[50];const pe=L.size===0;let se;e[51]!==s?(se=s("automations.automationConfig.clear"),e[51]=s,e[52]=se):se=e[52];let re;e[53]!==P||e[54]!==pe||e[55]!==se?(re=t.jsx("button",{type:"button",onClick:P,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:se}),e[53]=P,e[54]=pe,e[55]=se,e[56]=re):re=e[56];let le;e[57]!==y||e[58]!==re?(le=t.jsxs("div",{className:"flex items-center gap-2",children:[y,O,re]}),e[57]=y,e[58]=re,e[59]=le):le=e[59],e[60]!==te||e[61]!==le?(v=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[te,le]}),e[60]=te,e[61]=le,e[62]=v):v=e[62],p=as,N="max-h-80",z=h?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:s("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(ts,{children:s("automations.automationConfig.noToolsFound")}),Tt.map(T=>{const A=T.tools.map(eo),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{label:s(T.headingKey),icon:T.icon,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${s($.titleKey)} ${$.name}`,checked:L.has($.name),onToggle:()=>Y($.name),title:s($.titleKey),description:s($.descriptionKey),leading:t.jsx($.icon,{size:16,className:"text-muted-foreground"})},$.name))},T.key)}),V.map(T=>{const A=T.tools.map(Zs),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{conn:T.conn,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${$.display} ${$.name} ${T.conn?.title??""}`,checked:L.has($.name),onToggle:()=>Y($.name),title:$.display,description:$.description},$.name))},T.clientId)})]}),e[6]=d,e[7]=g?.tools,e[8]=h,e[9]=n,e[10]=r,e[11]=s,e[12]=i,e[13]=p,e[14]=m,e[15]=x,e[16]=b,e[17]=C,e[18]=w,e[19]=N,e[20]=z,e[21]=_,e[22]=v,e[23]=S,e[24]=k,e[25]=E}else p=e[13],m=e[14],x=e[15],b=e[16],C=e[17],w=e[18],N=e[19],z=e[20],_=e[21],v=e[22],S=e[23],k=e[24],E=e[25];let F;e[63]!==p||e[64]!==N||e[65]!==z?(F=t.jsx(p,{className:N,children:z}),e[63]=p,e[64]=N,e[65]=z,e[66]=F):F=e[66];let K;e[67]!==m||e[68]!==F||e[69]!==_||e[70]!==v?(K=t.jsxs(m,{children:[_,v,F]}),e[67]=m,e[68]=F,e[69]=_,e[70]=v,e[71]=K):K=e[71];let R;e[72]!==x||e[73]!==K||e[74]!==S||e[75]!==k?(R=t.jsx(x,{className:S,align:k,children:K}),e[72]=x,e[73]=K,e[74]=S,e[75]=k,e[76]=R):R=e[76];let U;return e[77]!==b||e[78]!==C||e[79]!==w||e[80]!==R||e[81]!==E?(U=t.jsxs(b,{open:E,onOpenChange:C,children:[w,R]}),e[77]=b,e[78]=C,e[79]=w,e[80]=R,e[81]=E,e[82]=U):U=e[82],U}function Zs(a){return a.name}function eo(a){return a.name}function to(a){return a.name}function so(a,e){return(a.conn?.title??a.clientId).localeCompare(e.conn?.title??e.clientId)}function oo(a){return[a.id,a]}function we(a){const e=a.trim().split(/\s+/);return e.length!==5?!1:e.every(o=>/^[\d*/,-]+$/.test(o))}function no(a){if(!a)return"Unknown schedule";const e=a.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return`Every ${o[1]} minutes`;const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return`Every ${i[1]} hours`;const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(n){const r=parseInt(n[1]??"1");return r%7===0?`Every ${r/7} weeks`:`Every ${r} days`}const s=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(s){const r=(s[2]??"0").padStart(2,"0"),j=(s[1]??"0").padStart(2,"0");return`Every day at ${r}:${j} UTC`}const l=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(l){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(l[3]??"0")]??"day",u=(l[2]??"0").padStart(2,"0"),c=(l[1]??"0").padStart(2,"0");return`Every ${j} at ${u}:${c} UTC`}return a}function ao(a,e){const o=Math.max(1,a);switch(e){case"minutes":return o===1?"* * * * *":`*/${o} * * * *`;case"hours":return o===1?"0 * * * *":`0 */${o} * * *`;case"days":return o===1?"0 0 * * *":`0 0 */${o} * *`;case"weeks":return o===1?"0 0 * * 1":`0 0 */${o*7} * *`}}function io(a){const e=a.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return{count:parseInt(o[1]),unit:"minutes"};const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return{count:parseInt(i[1]),unit:"hours"};const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return n?{count:parseInt(n[1]),unit:"days"}:null}function ro(a,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[a]??a:a}const lo=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function co({automationId:a,open:e,onOpenChange:o,onCustomSelect:i,onEventSelect:n,onWebhookCreated:s}){const l=me(),{triggerAdd:r}=Fe(),[j,u]=D.useState(!1),c=e??j,f=d=>{o?o(d):u(d)},g=async d=>{try{await r.mutateAsync({automation_id:a,type:"cron",cron_expression:d}),oe.success(l("automations.addStarterPopover.starterAdded")),f(!1)}catch(p){const m=p instanceof Error?p.message:l("automations.addStarterPopover.failedAddStarter");oe.error(m)}},h=async()=>{try{const d=await r.mutateAsync({automation_id:a,type:"webhook"});f(!1),d.webhook?s?.(d.webhook):oe.success(l("automations.addStarterPopover.webhookStarterAdded"))}catch(d){const p=d instanceof Error?d.message:l("automations.addStarterPopover.failedAddWebhookStarter");oe.error(p)}};return t.jsxs(At,{open:c,onOpenChange:f,children:[t.jsx(Pt,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",children:[t.jsx(As,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(zt,{align:"end",className:"w-[200px]",children:[t.jsxs(Et,{children:[t.jsxs(Kt,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx(Ft,{className:"w-[160px]",children:lo.map(d=>t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>g(d.cron),disabled:r.isPending,children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.everyUnit",{unit:d.label})]},d.cron))})]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),i?.()},children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.customCron")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),n?.()},children:[t.jsx(qe,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.event")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{h()},disabled:r.isPending,children:[t.jsx(He,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.webhook")]})]})]})}function wt(a){const e=ce.c(39),{open:o,onOpenChange:i,url:n,token:s,title:l,description:r}=a,j=l===void 0?"Webhook ready":l,u=r===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":r,c=me(),[f,g]=D.useState(null),[h,d]=D.useState("curl"),[p,m]=D.useState("header"),x=D.useId();let b;e[0]!==c?(b=async(V,X)=>{try{await navigator.clipboard.writeText(V),g(X),oe.success(c("automations.webhookSecretDialog.copied")),setTimeout(()=>g(null),1500)}catch{oe.error(c("automations.webhookSecretDialog.failedCopy"))}},e[0]=c,e[1]=b):b=e[1];const C=b;let w;e[2]!==p||e[3]!==s||e[4]!==n?(w=n&&s&&p==="url"?`${n.replace(/\/$/,"")}/${s}`:n??"",e[2]=p,e[3]=s,e[4]=n,e[5]=w):w=e[5];const N=w,z=n&&s?p==="header"?`curl -X POST "${N}" \\
1
+ import{ai as It,c as ce,b as me,r as D,j as t,B as Q,l as $t,a0 as gt,I as At,F as Pt,H as zt,aT as Et,aU as Kt,aV as Ft,G as Ae,t as oe,aG as Ot,h as _e,q as Se,ao as Mt,aW as Ye,aX as Rt,ad as Lt,n as Ue,aJ as ht,f as Ut}from"./index-Bv8ovZX7.js";import{C as Wt}from"./index-DGESUJrE.js";import{ag as Vt,i as Gt,V as Bt,ah as Ht,G as Ze,N as et,ai as Xt,d as Jt,L as Te}from"./agent-icon-v-YF8SZ6.js";import{i as qt}from"./Check-BgzQchyA.js";import{t as Ge}from"./ChevronUp-CEt2-KWf.js";import{c as Qt}from"./UserSquare-B_QuMjVL.js";import{f as Be,b as jt}from"./Tool01-BNu7BHqQ.js";import{i as He,a as tt}from"./Share07-BqFFQNeK.js";import{a as Yt}from"./Image01-Dnl26WcB.js";import{i as Zt}from"./SearchMd-BT8cdzsW.js";import{t as yt}from"./Stars01-BFm8fGnC.js";import{B as es}from"./badge-BnOb-zsy.js";import{C as bt}from"./checkbox-8e5Ux6Bp.js";import{S as vt}from"./switch-B8V9Ox46.js";import{a as Ct,b as Nt,P as St}from"./popover-n4tdwfg1.js";import{C as ts,a as st,b as ss,d as os,e as ns,c as as}from"./command-0Q71adD5.js";import{g as is,s as rs}from"./gateway-client-DEZhRkTS.js";import{u as Xe}from"./use-connection-DZHmMxeG.js";import{u as ls}from"./use-mcp-client-8W4pv2iG.js";import{u as cs}from"./use-mcp-tools-CWjm4_qp.js";import{I as ds}from"./integration-icon-_QdW_HEl.js";import{M as ms}from"./select-model-Dc8NFwmy.js";import{u as us}from"./use-ai-providers-BfBmzjxk.js";import{U as fs,b as ps}from"./build-improve-prompt-doc-BUDaGIGD.js";import{a as Fe,c as xs,d as gs}from"./use-automations-BSATGAzs.js";import{b as hs,a as js,t as ys,g as bs}from"./chat-context-ZGS-0Lc6.js";import{b as vs,C as Cs,a as Ns}from"./collapsible-BSf9Onia.js";import{I as ot}from"./input-D7VKtVHV.js";import{c as Ss,T as ks,a as Ts}from"./tooltip-452rT2Av.js";import{a as ws}from"./shell-layout-Cn2XiFfO.js";import{i as kt}from"./ArrowLeft-BrzmATFY.js";import{i as _s}from"./ArrowUp-Bgr2TLsm.js";import{s as Ds}from"./Trash01-CSeT8ZD8.js";import{s as Je}from"./XClose-DjadAVCX.js";import{u as nt}from"./use-debounced-autosave-Dabnhryq.js";import{T as Is,a as $s}from"./input-CXs-YVYu.js";import{s as As}from"./Plus-DJAmbMrJ.js";import{i as qe}from"./Zap-D3U8XJRb.js";import{d as Ps,h as zs,c as Es,e as Ks,b as Fs,D as Os}from"./dialog-aNfvq0Gx.js";import{b as Ms,a as Rs,T as at}from"./tabs-god_zfat.js";import{a as We}from"./Copy01-DY06zeXh.js";import{M as Ls}from"./monaco-editor-CZ3UOq2C.js";import{A as it,a as rt,b as lt,c as ct,g as dt,d as mt,e as ut,f as ft}from"./alert-dialog-5zuyoQ54.js";import{S as Pe,b as ze,a as Ee,d as Ke,c as Oe}from"./select-B_9gxhnf.js";import{A as Us}from"./automation-runs-VhaUbL_z.js";import{C as Ws}from"./collection-tabs-DltvKsB7.js";import{a as Vs}from"./use-panel-navigate-CeERwAhY.js";import"./use-mobile-CbgvL5x6.js";import"./thread-button-CU8FEc0x.js";import"./sidebar-DMorNI5B.js";import"./LayoutLeft-Bis2ERIL.js";import"./sheet-ncGbwo3c.js";import"./X-ClBxN2Lo.js";import"./thread-route-CX0quyn9.js";import"./use-route-default-main-BW9UadGk.js";import"./hooks-BHo3iW8o.js";import"./backoff-8mStPHYB.js";import"./task-board-CSfWLhg4.js";import"./schema-CMlylut3.js";import"./toolbar-icon-button-CL9TUqhr.js";import"./use-in-settings-DMlBXVsJ.js";import"./resizable-B57Znxf0.js";import"./route-page-header-CsPi4GMO.js";import"./use-project-scope-CdX2mBNC.js";import"./use-virtual-mcp-DyTrBBn7.js";import"./github-repo-BknN0SVI.js";import"./AlertCircle-DwYUjJBu.js";import"./ArrowRight-DYu8UyAE.js";import"./XCircle-Ds0Log1_.js";import"./ZoomOut-DsH_k1C4.js";import"./Globe04-C9YOUwUx.js";import"./CheckCircle-DxLYuezp.js";import"./CreditCard01-atzqozkq.js";import"./DotsVertical-DY1WVLqG.js";import"./Download01-BsnTCWqr.js";import"./Eye-BCLEOXNL.js";import"./Key01-CwoMWwVQ.js";import"./Link01-1Ii-ZBB1.js";import"./LinkExternal01-CxPBcUve.js";import"./Monitor01-DypnteF9.js";import"./Sun-qCW4hQHf.js";import"./Package-DLofDsnv.js";import"./Palette-DZw1jmn0.js";import"./SearchLg-0M2kccVO.js";import"./Upload01-GlJ5Ud3s.js";import"./User01-D0NPPWmZ.js";import"./Users01-K81i8krS.js";import"./index-CMM8OiJN.js";import"./auth-Bdfh9TTN.js";import"./drawer-DSLgUl8S.js";import"./decopilot-CjeDftvq.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-CAxICn2w.js";import"./download-app-dialog-jqsRuRCN.js";import"./use-is-desktop-app-BNujXJc_.js";import"./index-B1YIjoy8.js";import"./autosend-D8pg19Rh.js";import"./thread-intent-Bl6xIfFf.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-BTK1TiYJ.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-E0BM35TR.js";import"./use-organization-settings-BXDoAx1p.js";import"./index-CW3mvbP-.js";import"./project-icon-K8IkvwTu.js";import"./required-auth-layout-5gvCMtcO.js";import"./use-org-sso-Od2nvWUP.js";import"./suggestion-5QOsyBWf.js";import"./index-CEIxT9-w.js";import"./form-BvSGycPj.js";import"./label-BAb2clBH.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-C3CvG90a.js";import"./use-mcp-prompts-EP5VAc7p.js";import"./use-org-fs-DlHKBaPi.js";import"./editor-PxmQfpfP.js";import"./useInfiniteQuery-COua6s42.js";import"./infiniteQueryObserver-CLmBPvOC.js";import"./table-CqSUYS4O.js";import"./empty-state-Bryk1SHf.js";import"./use-infinite-scroll-Be1BN8YX.js";import"./use-members-DdFSpvT6.js";import"./use-org-auth-client-PjV6soYN.js";import"./task-status-BAjWghil.js";import"./thread-sheet-body-hkS4aUg5.js";import"./useSuspenseInfiniteQuery-6311fHu0.js";import"./pair-DSAE6kBc.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-CKbfXSV3.js";import"./usage-stats-DpOdKRPA.js";import"./markdown-IEb50bp3.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BVjb1uep.js";import"./types-CKACT3re.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-navigate-to-agent-CnwjWuW_.js";import"./use-thread-outputs-CSH9qR28.js";import"./file-type-icon-BYgiZIDa.js";const Ve={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:Jt},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:yt},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:Xt}},Gs=["fast","smart","thinking"];function Bs(a){const e=ce.c(19),{tier:o,onSelect:i}=a,n=me(),[s,l]=D.useState(!1),r=Ve[o].icon;let j;e[0]!==r?(j=t.jsx(r,{size:14,className:"text-muted-foreground"}),e[0]=r,e[1]=j):j=e[1];const u=Ve[o];let c;e[2]!==n||e[3]!==u.labelKey?(c=n(u.labelKey),e[2]=n,e[3]=u.labelKey,e[4]=c):c=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Ge,{size:14,className:"text-muted-foreground"}),e[5]=f):f=e[5];let g;e[6]!==j||e[7]!==c?(g=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,c,f]})}),e[6]=j,e[7]=c,e[8]=g):g=e[8];let h;e[9]!==i||e[10]!==n||e[11]!==o?(h=Gs.map(m=>{const x=Ve[m],b=x.icon;return t.jsxs("button",{type:"button",onClick:()=>{i(m),l(!1)},className:$t("flex items-start gap-2 px-2 py-1.5 classic:rounded-md compact:rounded-lg text-left hover:bg-muted"),children:[t.jsx(b,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:n(x.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:n(x.subtitleKey)})]}),m===o&&t.jsx(qt,{size:14,className:"text-foreground mt-0.5"})]},m)}),e[9]=i,e[10]=n,e[11]=o,e[12]=h):h=e[12];let d;e[13]!==h?(d=t.jsx(Nt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:h})}),e[13]=h,e[14]=d):d=e[14];let p;return e[15]!==s||e[16]!==g||e[17]!==d?(p=t.jsxs(St,{open:s,onOpenChange:l,children:[g,d]}),e[15]=s,e[16]=g,e[17]=d,e[18]=p):p=e[18],p}function Hs(a){const e=ce.c(27),{tier:o,onTierChange:i,override:n,onOverrideChange:s}=a,l=me(),[r,j]=D.useState(n!==null);let u;e[0]!==l?(u=l("automations.automationConfig.modelLabel"),e[0]=l,e[1]=u):u=e[1];let c;e[2]!==u?(c=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:u}),e[2]=u,e[3]=c):c=e[3];let f;e[4]!==s||e[5]!==i||e[6]!==n||e[7]!==l||e[8]!==o||e[9]!==r?(f=r?t.jsx(D.Suspense,{fallback:t.jsx(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:l("automations.automationConfig.loadingModels")}),children:t.jsx(Xs,{override:n,onOverrideChange:s})}):t.jsx(Bs,{tier:o,onSelect:i}),e[4]=s,e[5]=i,e[6]=n,e[7]=l,e[8]=o,e[9]=r,e[10]=f):f=e[10];let g;e[11]!==s?(g=b=>{j(b),b||s(null)},e[11]=s,e[12]=g):g=e[12];let h;e[13]!==g||e[14]!==r?(h=t.jsx(vt,{checked:r,onCheckedChange:g,className:"cursor-pointer"}),e[13]=g,e[14]=r,e[15]=h):h=e[15];let d;e[16]!==l?(d=l("automations.automationConfig.specificModel"),e[16]=l,e[17]=d):d=e[17];let p;e[18]!==h||e[19]!==d?(p=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[h,d]}),e[18]=h,e[19]=d,e[20]=p):p=e[20];let m;e[21]!==f||e[22]!==p?(m=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f,p]}),e[21]=f,e[22]=p,e[23]=m):m=e[23];let x;return e[24]!==c||e[25]!==m?(x=t.jsxs("div",{className:"flex flex-col gap-2",children:[c,m]}),e[24]=c,e[25]=m,e[26]=x):x=e[26],x}function Xs(a){const e=ce.c(25),{override:o,onOverrideChange:i}=a,n=me(),s=us(),l=s[0]?.id??null;let r;e[0]!==l||e[1]!==s||e[2]!==o?.credentialId?(r=s.some(x=>x.id===o?.credentialId)?o?.credentialId??null:l,e[0]=l,e[1]=s,e[2]=o?.credentialId,e[3]=r):r=e[3];const[j,u]=D.useState(r);let c;e[4]!==j||e[5]!==l||e[6]!==s?(c=s.some(x=>x.id===j)?j:l,e[4]=j,e[5]=l,e[6]=s,e[7]=c):c=e[7];const f=c;let g;e[8]!==s||e[9]!==o?(g=o&&s.some(x=>x.id===o.credentialId)?{modelId:o.modelId,title:o.title||o.modelId,keyId:o.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=s,e[9]=o,e[10]=g):g=e[10];const h=g;if(s.length===0){let x;e[11]!==n?(x=n("automations.automationConfig.connectAiProviderHint"),e[11]=n,e[12]=x):x=e[12];let b;return e[13]!==x?(b=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:x}),e[13]=x,e[14]=b):b=e[14],b}let d;e[15]!==n?(d=n("automations.automationConfig.pickModelPlaceholder"),e[15]=n,e[16]=d):d=e[16];let p;e[17]!==f||e[18]!==i?(p=x=>{const b=x.keyId??f??"";u(b),i({modelId:x.modelId,credentialId:b,title:x.title??x.modelId})},e[17]=f,e[18]=i,e[19]=p):p=e[19];let m;return e[20]!==f||e[21]!==h||e[22]!==d||e[23]!==p?(m=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(ms,{variant:"bordered",placeholder:d,model:h,credentialId:f,onCredentialChange:u,onModelChange:p})}),e[20]=f,e[21]=h,e[22]=d,e[23]=p,e[24]=m):m=e[24],m}const Tt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:Be,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:He},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:Yt},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:It},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:Vt}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:tt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:Gt},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:jt},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:Bt},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:Zt},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:tt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:Ht}]},{key:"context",headingKey:"automations.automationConfig.context",icon:Ze,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:Ze},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:et},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:et}]}],Js=Tt.flatMap(a=>a.tools.map(e=>e.name));function qs(a){const e=a.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,o=>o.toUpperCase()):a}function Qs(a){const e=ce.c(12),{agentId:o,value:i,onChange:n}=a,s=me();let l;e[0]!==s?(l=s("automations.automationConfig.toolsLabel"),e[0]=s,e[1]=l):l=e[1];let r;e[2]!==l?(r=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:l}),e[2]=l,e[3]=r):r=e[3];let j;e[4]!==o||e[5]!==n||e[6]!==s||e[7]!==i?(j=o?t.jsx(D.Suspense,{fallback:t.jsxs(Q,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(Be,{size:14}),s("automations.automationConfig.loadingTools")]}),children:t.jsx(Ys,{agentId:o,value:i,onChange:n})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:s("automations.automationConfig.pickAgentFirst")}),e[4]=o,e[5]=n,e[6]=s,e[7]=i,e[8]=j):j=e[8];let u;return e[9]!==r||e[10]!==j?(u=t.jsxs("div",{className:"flex flex-col gap-2",children:[r,j]}),e[9]=r,e[10]=j,e[11]=u):u=e[11],u}function pt(a){const e=ce.c(17),{value:o,checked:i,onToggle:n,title:s,description:l,leading:r}=a;let j;e[0]!==i?(j=t.jsx(bt,{checked:i,className:"pointer-events-none mt-0.5"}),e[0]=i,e[1]=j):j=e[1];let u;e[2]!==r?(u=r&&t.jsx("span",{className:"mt-px shrink-0",children:r}),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==s?(c=t.jsx("span",{className:"truncate text-sm leading-tight",children:s}),e[4]=s,e[5]=c):c=e[5];let f;e[6]!==l?(f=l&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:l}),e[6]=l,e[7]=f):f=e[7];let g;e[8]!==c||e[9]!==f?(g=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[c,f]}),e[8]=c,e[9]=f,e[10]=g):g=e[10];let h;return e[11]!==n||e[12]!==j||e[13]!==u||e[14]!==g||e[15]!==o?(h=t.jsxs(ss,{value:o,onSelect:n,className:"items-start gap-2.5 py-2",children:[j,u,g]}),e[11]=n,e[12]=j,e[13]=u,e[14]=g,e[15]=o,e[16]=h):h=e[16],h}function xt(a){const e=ce.c(27),{conn:o,label:i,icon:n,on:s,total:l,onToggle:r}=a,j=me(),u=s===l;let c;e[0]!==n||e[1]!==o?(c=o?t.jsx(ds,{icon:o.icon,name:o.title,size:"2xs"}):n?t.jsx(n,{size:14,className:"text-muted-foreground"}):t.jsx(Qt,{size:14,className:"text-muted-foreground"}),e[0]=n,e[1]=o,e[2]=c):c=e[2];let f;e[3]!==o?.title||e[4]!==i||e[5]!==j?(f=o?.title??i??j("automations.automationConfig.otherTools"),e[3]=o?.title,e[4]=i,e[5]=j,e[6]=f):f=e[6];let g;e[7]!==f?(g=t.jsx("span",{className:"truncate",children:f}),e[7]=f,e[8]=g):g=e[8];let h;e[9]!==s||e[10]!==l?(h=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[s,"/",l]}),e[9]=s,e[10]=l,e[11]=h):h=e[11];let d;e[12]!==r?(d=C=>{C.stopPropagation(),r()},e[12]=r,e[13]=d):d=e[13];let p;e[14]!==u||e[15]!==j?(p=j(u?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=u,e[15]=j,e[16]=p):p=e[16];let m;e[17]!==d||e[18]!==p?(m=t.jsx("button",{type:"button",onClick:d,className:"text-[11px] font-medium text-primary hover:underline",children:p}),e[17]=d,e[18]=p,e[19]=m):m=e[19];let x;e[20]!==h||e[21]!==m?(x=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[h,m]}),e[20]=h,e[21]=m,e[22]=x):x=e[22];let b;return e[23]!==c||e[24]!==g||e[25]!==x?(b=t.jsxs("div",{className:"flex items-center gap-2",children:[c,g,x]}),e[23]=c,e[24]=g,e[25]=x,e[26]=b):b=e[26],b}function Ys(a){const e=ce.c(83),{agentId:o,value:i,onChange:n}=a,s=me(),{org:l}=gt(),[r,j]=D.useState(!1);let u;e[0]!==o||e[1]!==l.id||e[2]!==l.slug?(u={connectionId:o,orgId:l.id,orgSlug:l.slug},e[0]=o,e[1]=l.id,e[2]=l.slug,e[3]=u):u=e[3];const c=ls(u);let f;e[4]!==c?(f={client:c},e[4]=c,e[5]=f):f=e[5];const{data:g,isLoading:h}=cs(f),d=Xe();let p,m,x,b,C,w,N,z,_,v,S,k,E;if(e[6]!==d||e[7]!==g?.tools||e[8]!==h||e[9]!==n||e[10]!==r||e[11]!==s||e[12]!==i){const H=new Map(d.map(oo)),B=new Map;for(const T of g?.tools??[]){const A=is(T._meta)??"__other__",q=rs(T.name,A==="__other__"?void 0:A),$=T.title,xe=$&&$!==T.name?$:qs(q);B.has(A)||B.set(A,{clientId:A,conn:H.get(A),tools:[]}),B.get(A).tools.push({name:T.name,display:xe,description:T.description})}const V=[...B.values()].sort(so),X=(g?.tools??[]).map(to),G=[...Js,...X],L=i===null?new Set(G):new Set(i),W=G.every(T=>L.has(T)),I=T=>n(G.every(A=>T.has(A))?null:[...T]),Y=T=>{const A=new Set(L);A.has(T)?A.delete(T):A.add(T),I(A)},Z=(T,A)=>{const q=new Set(L);for(const $ of T)A?q.add($):q.delete($);I(q)};b=St,E=r,C=j;let J;e[26]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(Be,{size:14,className:"text-muted-foreground"}),e[26]=J):J=e[26];let ne;e[27]!==W||e[28]!==s?(ne=s(W?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=W,e[28]=s,e[29]=ne):ne=e[29];const ue=!W&&t.jsxs(es,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[L.size,"/",G.length]});let de;e[30]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(Ge,{size:14,className:"text-muted-foreground"}),e[30]=de):de=e[30],e[31]!==ne||e[32]!==ue?(w=t.jsx(Ct,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[J,ne,ue,de]})}),e[31]=ne,e[32]=ue,e[33]=w):w=e[33],x=Nt,S="p-0 w-80",k="start",m=os;let ee;e[34]!==s?(ee=s("automations.automationConfig.searchToolsPlaceholder"),e[34]=s,e[35]=ee):ee=e[35],e[36]!==ee?(_=t.jsx(ns,{placeholder:ee}),e[36]=ee,e[37]=_):_=e[37];const fe=W?s("automations.automationConfig.allToolsEnabled",{count:G.length}):s("automations.automationConfig.toolsEnabledCount",{enabled:L.size,total:G.length});let te;e[38]!==fe?(te=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=te):te=e[39];let ae;e[40]!==n?(ae=()=>n(null),e[40]=n,e[41]=ae):ae=e[41];let ie;e[42]!==s?(ie=s("automations.automationConfig.selectAll"),e[42]=s,e[43]=ie):ie=e[43];let y;e[44]!==W||e[45]!==ae||e[46]!==ie?(y=t.jsx("button",{type:"button",onClick:ae,disabled:W,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:ie}),e[44]=W,e[45]=ae,e[46]=ie,e[47]=y):y=e[47];let O;e[48]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=O):O=e[48];let P;e[49]!==n?(P=()=>n([]),e[49]=n,e[50]=P):P=e[50];const pe=L.size===0;let se;e[51]!==s?(se=s("automations.automationConfig.clear"),e[51]=s,e[52]=se):se=e[52];let re;e[53]!==P||e[54]!==pe||e[55]!==se?(re=t.jsx("button",{type:"button",onClick:P,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:se}),e[53]=P,e[54]=pe,e[55]=se,e[56]=re):re=e[56];let le;e[57]!==y||e[58]!==re?(le=t.jsxs("div",{className:"flex items-center gap-2",children:[y,O,re]}),e[57]=y,e[58]=re,e[59]=le):le=e[59],e[60]!==te||e[61]!==le?(v=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[te,le]}),e[60]=te,e[61]=le,e[62]=v):v=e[62],p=as,N="max-h-80",z=h?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:s("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(ts,{children:s("automations.automationConfig.noToolsFound")}),Tt.map(T=>{const A=T.tools.map(eo),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{label:s(T.headingKey),icon:T.icon,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${s($.titleKey)} ${$.name}`,checked:L.has($.name),onToggle:()=>Y($.name),title:s($.titleKey),description:s($.descriptionKey),leading:t.jsx($.icon,{size:16,className:"text-muted-foreground"})},$.name))},T.key)}),V.map(T=>{const A=T.tools.map(Zs),q=A.filter($=>L.has($)).length;return t.jsx(st,{heading:t.jsx(xt,{conn:T.conn,on:q,total:A.length,onToggle:()=>Z(A,q!==A.length)}),children:T.tools.map($=>t.jsx(pt,{value:`${$.display} ${$.name} ${T.conn?.title??""}`,checked:L.has($.name),onToggle:()=>Y($.name),title:$.display,description:$.description},$.name))},T.clientId)})]}),e[6]=d,e[7]=g?.tools,e[8]=h,e[9]=n,e[10]=r,e[11]=s,e[12]=i,e[13]=p,e[14]=m,e[15]=x,e[16]=b,e[17]=C,e[18]=w,e[19]=N,e[20]=z,e[21]=_,e[22]=v,e[23]=S,e[24]=k,e[25]=E}else p=e[13],m=e[14],x=e[15],b=e[16],C=e[17],w=e[18],N=e[19],z=e[20],_=e[21],v=e[22],S=e[23],k=e[24],E=e[25];let F;e[63]!==p||e[64]!==N||e[65]!==z?(F=t.jsx(p,{className:N,children:z}),e[63]=p,e[64]=N,e[65]=z,e[66]=F):F=e[66];let K;e[67]!==m||e[68]!==F||e[69]!==_||e[70]!==v?(K=t.jsxs(m,{children:[_,v,F]}),e[67]=m,e[68]=F,e[69]=_,e[70]=v,e[71]=K):K=e[71];let R;e[72]!==x||e[73]!==K||e[74]!==S||e[75]!==k?(R=t.jsx(x,{className:S,align:k,children:K}),e[72]=x,e[73]=K,e[74]=S,e[75]=k,e[76]=R):R=e[76];let U;return e[77]!==b||e[78]!==C||e[79]!==w||e[80]!==R||e[81]!==E?(U=t.jsxs(b,{open:E,onOpenChange:C,children:[w,R]}),e[77]=b,e[78]=C,e[79]=w,e[80]=R,e[81]=E,e[82]=U):U=e[82],U}function Zs(a){return a.name}function eo(a){return a.name}function to(a){return a.name}function so(a,e){return(a.conn?.title??a.clientId).localeCompare(e.conn?.title??e.clientId)}function oo(a){return[a.id,a]}function we(a){const e=a.trim().split(/\s+/);return e.length!==5?!1:e.every(o=>/^[\d*/,-]+$/.test(o))}function no(a){if(!a)return"Unknown schedule";const e=a.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return`Every ${o[1]} minutes`;const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return`Every ${i[1]} hours`;const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(n){const r=parseInt(n[1]??"1");return r%7===0?`Every ${r/7} weeks`:`Every ${r} days`}const s=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(s){const r=(s[2]??"0").padStart(2,"0"),j=(s[1]??"0").padStart(2,"0");return`Every day at ${r}:${j} UTC`}const l=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(l){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(l[3]??"0")]??"day",u=(l[2]??"0").padStart(2,"0"),c=(l[1]??"0").padStart(2,"0");return`Every ${j} at ${u}:${c} UTC`}return a}function ao(a,e){const o=Math.max(1,a);switch(e){case"minutes":return o===1?"* * * * *":`*/${o} * * * *`;case"hours":return o===1?"0 * * * *":`0 */${o} * * *`;case"days":return o===1?"0 0 * * *":`0 0 */${o} * *`;case"weeks":return o===1?"0 0 * * 1":`0 0 */${o*7} * *`}}function io(a){const e=a.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const o=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(o)return{count:parseInt(o[1]),unit:"minutes"};const i=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(i)return{count:parseInt(i[1]),unit:"hours"};const n=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return n?{count:parseInt(n[1]),unit:"days"}:null}function ro(a,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[a]??a:a}const lo=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function co({automationId:a,open:e,onOpenChange:o,onCustomSelect:i,onEventSelect:n,onWebhookCreated:s}){const l=me(),{triggerAdd:r}=Fe(),[j,u]=D.useState(!1),c=e??j,f=d=>{o?o(d):u(d)},g=async d=>{try{await r.mutateAsync({automation_id:a,type:"cron",cron_expression:d}),oe.success(l("automations.addStarterPopover.starterAdded")),f(!1)}catch(p){const m=p instanceof Error?p.message:l("automations.addStarterPopover.failedAddStarter");oe.error(m)}},h=async()=>{try{const d=await r.mutateAsync({automation_id:a,type:"webhook"});f(!1),d.webhook?s?.(d.webhook):oe.success(l("automations.addStarterPopover.webhookStarterAdded"))}catch(d){const p=d instanceof Error?d.message:l("automations.addStarterPopover.failedAddWebhookStarter");oe.error(p)}};return t.jsxs(At,{open:c,onOpenChange:f,children:[t.jsx(Pt,{asChild:!0,children:t.jsxs(Q,{variant:"outline",size:"sm",children:[t.jsx(As,{size:14}),l("automations.addStarterPopover.addStarter")]})}),t.jsxs(zt,{align:"end",className:"w-[200px]",children:[t.jsxs(Et,{children:[t.jsxs(Kt,{className:"gap-2.5",children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.every")]}),t.jsx(Ft,{className:"w-[160px]",children:lo.map(d=>t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>g(d.cron),disabled:r.isPending,children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.everyUnit",{unit:d.label})]},d.cron))})]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),i?.()},children:[t.jsx(Te,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.customCron")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{f(!1),n?.()},children:[t.jsx(qe,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.event")]}),t.jsxs(Ae,{className:"gap-2.5",onSelect:()=>{h()},disabled:r.isPending,children:[t.jsx(He,{size:14,className:"text-muted-foreground shrink-0"}),l("automations.addStarterPopover.webhook")]})]})]})}function wt(a){const e=ce.c(39),{open:o,onOpenChange:i,url:n,token:s,title:l,description:r}=a,j=l===void 0?"Webhook ready":l,u=r===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":r,c=me(),[f,g]=D.useState(null),[h,d]=D.useState("curl"),[p,m]=D.useState("header"),x=D.useId();let b;e[0]!==c?(b=async(V,X)=>{try{await navigator.clipboard.writeText(V),g(X),oe.success(c("automations.webhookSecretDialog.copied")),setTimeout(()=>g(null),1500)}catch{oe.error(c("automations.webhookSecretDialog.failedCopy"))}},e[0]=c,e[1]=b):b=e[1];const C=b;let w;e[2]!==p||e[3]!==s||e[4]!==n?(w=n&&s&&p==="url"?`${n.replace(/\/$/,"")}/${s}`:n??"",e[2]=p,e[3]=s,e[4]=n,e[5]=w):w=e[5];const N=w,z=n&&s?p==="header"?`curl -X POST "${N}" \\
2
2
  -H "Authorization: Bearer ${s}" \\
3
3
  -H "Content-Type: application/json" \\
4
4
  -d '{"hello":"world"}'`:`curl -X POST "${N}" \\
@@ -1 +1 @@
1
- import{c as R,Z as U,b as W,r as H,j as e,n as m,q as X,B as F,aJ as Y}from"./index-cT94sQUH.js";import{C as tt}from"./index-ChjHAm_X.js";import{s as et}from"./Plus-Do5Wkomw.js";import{R as ot}from"./agent-icon-CVsOY5Om.js";import{i as G}from"./Zap-SzxRRv0w.js";import{S as it}from"./search-input-B12ZEo-u.js";import{E as M}from"./empty-state-YhHJ1PAR.js";import{u as st,a as rt,b as nt}from"./use-automations-Bjnctu1x.js";import{a as mt}from"./use-panel-navigate-BvpNAJeL.js";import{A as at}from"./automation-list-row-C44HdDvH.js";import{b as lt}from"./thread-route-C05Rrd8B.js";import"./use-mobile-Dv7BcXr5.js";import"./thread-button-BVgcb5x6.js";import"./sidebar-BFWjj-3T.js";import"./LayoutLeft-DgiG6wiH.js";import"./sheet-908igmnH.js";import"./X-CLqvixem.js";import"./tooltip-BGTnGCWW.js";import"./index-CgGEL4tk.js";import"./use-route-default-main-Bux-DW8_.js";import"./hooks-Dpw_cJTM.js";import"./use-mcp-client-GBv4syMd.js";import"./auth-k9t16OOb.js";import"./backoff-8mStPHYB.js";import"./task-board-BKlDz2nG.js";import"./schema-BwpPocS5.js";import"./toolbar-icon-button-BXZ727Lv.js";import"./use-in-settings-3zEronlT.js";import"./shell-layout-CkG1W_88.js";import"./avatar-B9CWtHB4.js";import"./User01-Bla6DkK3.js";import"./Globe04-DnURSsdQ.js";import"./SearchLg-gOfrWgIs.js";import"./XClose-1APsw2yP.js";import"./download-app-dialog-CwgA8Jar.js";import"./dialog-DiUlVwD1.js";import"./Check-CGKF06bT.js";import"./Copy01-CYbqJpFZ.js";import"./Download01-C8jubU2p.js";import"./use-project-scope-CYpIGnJg.js";import"./use-virtual-mcp-CyUsVYwB.js";import"./github-repo-BknN0SVI.js";import"./CheckCircle-tvGC17Dy.js";import"./Monitor01-BrSZ6zzu.js";import"./Share07-DpckpNEB.js";import"./Tool01-DK_vv6qf.js";import"./command-DZRWMxD5.js";import"./index-C9PI5TjH.js";import"./SearchMd-B9ModJFt.js";import"./integration-icon-CBv4y2ld.js";import"./project-icon-DW-tv9X7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-fSuiMVRc.js";import"./autosend-BKkKn8iq.js";import"./use-org-sso-BziwA5dH.js";import"./resizable-CyPCDk7u.js";import"./route-page-header-CQ5gYErc.js";import"./AlertCircle-B3LJiQhZ.js";import"./ArrowUp-BB5V3348.js";import"./ArrowLeft-DmWma6hW.js";import"./ArrowRight-540iMVH3.js";import"./XCircle-xC8IFHez.js";import"./ZoomOut-DD-ULjJm.js";import"./ChevronUp-Du4AWZmG.js";import"./UserSquare-CHvWRyuq.js";import"./CreditCard01-CK4yyvJY.js";import"./DotsVertical-BQfY36BV.js";import"./Eye-CpLoEsen.js";import"./Image01-DPZCMheY.js";import"./Key01-CSyDklFV.js";import"./Link01-CYG0Mr8Q.js";import"./LinkExternal01-Div0d_z3.js";import"./Sun-CzonSHrU.js";import"./Package-C5JGfmw5.js";import"./Palette-Bm4HMPv2.js";import"./Stars01-B6IfixlN.js";import"./Trash01-Dw6PLr8l.js";import"./Upload01-BsQDz7U2.js";import"./Users01-fXdkObFe.js";import"./alert-dialog-m7PHs13d.js";function ct(i){if(!(i instanceof Error))return!1;const t=i.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function pt(i){const t=R.c(46),{virtualMcpId:r}=i,n=U(),o=W(),{openPanel:a}=mt(),{data:B,error:J}=st(r),b=B===void 0?[]:B,{create:L}=rt(),[_,K]=H.useState("");if(J&&ct(J)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(ot,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let h;t[1]!==o?(h=o("automations.setupRequired.title"),t[1]=o,t[2]=h):h=t[2];let j;t[3]!==o?(j=o("automations.setupRequired.description"),t[3]=o,t[4]=j):j=t[4];let g;t[5]!==a?(g=()=>a("settings"),t[5]=a,t[6]=g):g=t[6];let C;t[7]!==o?(C=o("automations.setupRequired.goToSetup"),t[7]=o,t[8]=C):C=t[8];let y;t[9]!==g||t[10]!==C?(y=e.jsx(F,{size:"sm",onClick:g,children:C}),t[9]=g,t[10]=C,t[11]=y):y=t[11];let S;return t[12]!==h||t[13]!==j||t[14]!==y?(S=e.jsx(m,{children:e.jsx(m.Content,{children:e.jsx(m.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(M,{image:s,title:h,description:j,actions:y})})})})}),t[12]=h,t[13]=j,t[14]=y,t[15]=S):S=t[15],S}const O=_.toLowerCase(),V=b.filter(s=>s.name.toLowerCase().includes(O));let w;t[16]!==a?(w=s=>a(`automation:${s}`),t[16]=a,t[17]=w):w=t[17];const Z=w,P=async()=>{if(L.isPending)return;X("automation_new_clicked",{virtual_mcp_id:r,existing_count:b.length});const s=await L.mutateAsync(nt(r));Z(s.id)},Q=L.isPending;let A;t[18]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(et,{size:14}),t[18]=A):A=t[18];let l;t[19]!==o?(l=o("automations.automationsList.newAutomation"),t[19]=o,t[20]=l):l=t[20];let v;t[21]!==L.isPending||t[22]!==P||t[23]!==l?(v=e.jsxs(F,{size:"sm",onClick:P,disabled:Q,children:[A,l]}),t[21]=L.isPending,t[22]=P,t[23]=l,t[24]=v):v=t[24];const T=v,E=m,k=m,z=m,I=n&&T;let c;t[25]!==o?(c=o("automations.automationsList.title"),t[25]=o,t[26]=c):c=t[26];let p;t[27]!==c||t[28]!==I?(p=e.jsx(m.Title,{actions:I,children:c}),t[27]=c,t[28]=I,t[29]=p):p=t[29];const $=b.length>0&&e.jsx(it,{value:_,onChange:K,placeholder:o("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"}),q=!n&&T;let u;t[30]!==$||t[31]!==q?(u=e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[$,q]}),t[30]=$,t[31]=q,t[32]=u):u=t[32];let d;t[33]!==p||t[34]!==u?(d=e.jsxs("div",{className:"flex flex-col gap-6",children:[p,u]}),t[33]=p,t[34]=u,t[35]=d):d=t[35];const D=b.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(M,{image:e.jsx(G,{size:48,className:"text-muted-foreground"}),title:o("automations.automationsList.emptyTitle"),description:o("automations.automationsList.emptyDescription"),actions:!n&&T})}):V.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(M,{image:e.jsx(G,{size:48,className:"text-muted-foreground"}),title:o("automations.automationsList.noResultsTitle"),description:o("automations.automationsList.noResultsDescription",{search:_})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:V.map(s=>e.jsx(at,{automation:s,onClick:()=>Z(s.id)},s.id))});let f;t[36]!==d||t[37]!==D||t[38]!==z.Container?(f=e.jsxs(z.Container,{children:[d,D]}),t[36]=d,t[37]=D,t[38]=z.Container,t[39]=f):f=t[39];let x;t[40]!==f||t[41]!==k.Content?(x=e.jsx(k.Content,{children:f}),t[40]=f,t[41]=k.Content,t[42]=x):x=t[42];let N;return t[43]!==E||t[44]!==x?(N=e.jsx(E,{children:x}),t[43]=E,t[44]=x,t[45]=N):N=t[45],N}function ut(i){const t=R.c(3),{virtualMcpId:r}=i;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx(Y,{}),t[0]=n):n=t[0];let o;return t[1]!==r?(o=e.jsx(H.Suspense,{fallback:n,children:e.jsx(pt,{virtualMcpId:r})}),t[1]=r,t[2]=o):o=t[2],o}function dt(){const i=R.c(2),t=lt();let r;return i[0]!==t?(r=e.jsx(ut,{virtualMcpId:t}),i[0]=t,i[1]=r):r=i[1],r}function Be(){const i=R.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(tt.Content,{children:e.jsx(dt,{})}),i[0]=t):t=i[0],t}export{Be as default};
1
+ import{c as R,Z as U,b as W,r as H,j as e,n as m,q as X,B as F,aJ as Y}from"./index-Bv8ovZX7.js";import{C as tt}from"./index-DGESUJrE.js";import{s as et}from"./Plus-DJAmbMrJ.js";import{R as ot}from"./agent-icon-v-YF8SZ6.js";import{i as G}from"./Zap-D3U8XJRb.js";import{S as it}from"./search-input-B3K0cIXk.js";import{E as M}from"./empty-state-Bryk1SHf.js";import{u as st,a as rt,b as nt}from"./use-automations-BSATGAzs.js";import{a as mt}from"./use-panel-navigate-CeERwAhY.js";import{A as at}from"./automation-list-row-C8lOzNNS.js";import{b as lt}from"./thread-route-CX0quyn9.js";import"./use-mobile-CbgvL5x6.js";import"./thread-button-CU8FEc0x.js";import"./sidebar-DMorNI5B.js";import"./LayoutLeft-Bis2ERIL.js";import"./sheet-ncGbwo3c.js";import"./X-ClBxN2Lo.js";import"./tooltip-452rT2Av.js";import"./index-CW3mvbP-.js";import"./use-route-default-main-BW9UadGk.js";import"./hooks-BHo3iW8o.js";import"./use-mcp-client-8W4pv2iG.js";import"./auth-Bdfh9TTN.js";import"./backoff-8mStPHYB.js";import"./task-board-CSfWLhg4.js";import"./schema-CMlylut3.js";import"./toolbar-icon-button-CL9TUqhr.js";import"./use-in-settings-DMlBXVsJ.js";import"./shell-layout-Cn2XiFfO.js";import"./avatar-CAxICn2w.js";import"./User01-D0NPPWmZ.js";import"./Globe04-C9YOUwUx.js";import"./SearchLg-0M2kccVO.js";import"./XClose-DjadAVCX.js";import"./download-app-dialog-jqsRuRCN.js";import"./dialog-aNfvq0Gx.js";import"./Check-BgzQchyA.js";import"./Copy01-DY06zeXh.js";import"./Download01-BsnTCWqr.js";import"./use-project-scope-CdX2mBNC.js";import"./use-virtual-mcp-DyTrBBn7.js";import"./github-repo-BknN0SVI.js";import"./CheckCircle-DxLYuezp.js";import"./Monitor01-DypnteF9.js";import"./Share07-BqFFQNeK.js";import"./Tool01-BNu7BHqQ.js";import"./command-0Q71adD5.js";import"./index-CMM8OiJN.js";import"./SearchMd-BT8cdzsW.js";import"./integration-icon-_QdW_HEl.js";import"./project-icon-K8IkvwTu.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-5gvCMtcO.js";import"./autosend-D8pg19Rh.js";import"./use-org-sso-Od2nvWUP.js";import"./resizable-B57Znxf0.js";import"./route-page-header-CsPi4GMO.js";import"./AlertCircle-DwYUjJBu.js";import"./ArrowUp-Bgr2TLsm.js";import"./ArrowLeft-BrzmATFY.js";import"./ArrowRight-DYu8UyAE.js";import"./XCircle-Ds0Log1_.js";import"./ZoomOut-DsH_k1C4.js";import"./ChevronUp-CEt2-KWf.js";import"./UserSquare-B_QuMjVL.js";import"./CreditCard01-atzqozkq.js";import"./DotsVertical-DY1WVLqG.js";import"./Eye-BCLEOXNL.js";import"./Image01-Dnl26WcB.js";import"./Key01-CwoMWwVQ.js";import"./Link01-1Ii-ZBB1.js";import"./LinkExternal01-CxPBcUve.js";import"./Sun-qCW4hQHf.js";import"./Package-DLofDsnv.js";import"./Palette-DZw1jmn0.js";import"./Stars01-BFm8fGnC.js";import"./Trash01-CSeT8ZD8.js";import"./Upload01-GlJ5Ud3s.js";import"./Users01-K81i8krS.js";import"./alert-dialog-5zuyoQ54.js";function ct(i){if(!(i instanceof Error))return!1;const t=i.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function pt(i){const t=R.c(46),{virtualMcpId:r}=i,n=U(),o=W(),{openPanel:a}=mt(),{data:B,error:J}=st(r),b=B===void 0?[]:B,{create:L}=rt(),[_,K]=H.useState("");if(J&&ct(J)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(ot,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let h;t[1]!==o?(h=o("automations.setupRequired.title"),t[1]=o,t[2]=h):h=t[2];let j;t[3]!==o?(j=o("automations.setupRequired.description"),t[3]=o,t[4]=j):j=t[4];let g;t[5]!==a?(g=()=>a("settings"),t[5]=a,t[6]=g):g=t[6];let C;t[7]!==o?(C=o("automations.setupRequired.goToSetup"),t[7]=o,t[8]=C):C=t[8];let y;t[9]!==g||t[10]!==C?(y=e.jsx(F,{size:"sm",onClick:g,children:C}),t[9]=g,t[10]=C,t[11]=y):y=t[11];let S;return t[12]!==h||t[13]!==j||t[14]!==y?(S=e.jsx(m,{children:e.jsx(m.Content,{children:e.jsx(m.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(M,{image:s,title:h,description:j,actions:y})})})})}),t[12]=h,t[13]=j,t[14]=y,t[15]=S):S=t[15],S}const O=_.toLowerCase(),V=b.filter(s=>s.name.toLowerCase().includes(O));let w;t[16]!==a?(w=s=>a(`automation:${s}`),t[16]=a,t[17]=w):w=t[17];const Z=w,P=async()=>{if(L.isPending)return;X("automation_new_clicked",{virtual_mcp_id:r,existing_count:b.length});const s=await L.mutateAsync(nt(r));Z(s.id)},Q=L.isPending;let A;t[18]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(et,{size:14}),t[18]=A):A=t[18];let l;t[19]!==o?(l=o("automations.automationsList.newAutomation"),t[19]=o,t[20]=l):l=t[20];let v;t[21]!==L.isPending||t[22]!==P||t[23]!==l?(v=e.jsxs(F,{size:"sm",onClick:P,disabled:Q,children:[A,l]}),t[21]=L.isPending,t[22]=P,t[23]=l,t[24]=v):v=t[24];const T=v,E=m,k=m,z=m,I=n&&T;let c;t[25]!==o?(c=o("automations.automationsList.title"),t[25]=o,t[26]=c):c=t[26];let p;t[27]!==c||t[28]!==I?(p=e.jsx(m.Title,{actions:I,children:c}),t[27]=c,t[28]=I,t[29]=p):p=t[29];const $=b.length>0&&e.jsx(it,{value:_,onChange:K,placeholder:o("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"}),q=!n&&T;let u;t[30]!==$||t[31]!==q?(u=e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[$,q]}),t[30]=$,t[31]=q,t[32]=u):u=t[32];let d;t[33]!==p||t[34]!==u?(d=e.jsxs("div",{className:"flex flex-col gap-6",children:[p,u]}),t[33]=p,t[34]=u,t[35]=d):d=t[35];const D=b.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(M,{image:e.jsx(G,{size:48,className:"text-muted-foreground"}),title:o("automations.automationsList.emptyTitle"),description:o("automations.automationsList.emptyDescription"),actions:!n&&T})}):V.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(M,{image:e.jsx(G,{size:48,className:"text-muted-foreground"}),title:o("automations.automationsList.noResultsTitle"),description:o("automations.automationsList.noResultsDescription",{search:_})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:V.map(s=>e.jsx(at,{automation:s,onClick:()=>Z(s.id)},s.id))});let f;t[36]!==d||t[37]!==D||t[38]!==z.Container?(f=e.jsxs(z.Container,{children:[d,D]}),t[36]=d,t[37]=D,t[38]=z.Container,t[39]=f):f=t[39];let x;t[40]!==f||t[41]!==k.Content?(x=e.jsx(k.Content,{children:f}),t[40]=f,t[41]=k.Content,t[42]=x):x=t[42];let N;return t[43]!==E||t[44]!==x?(N=e.jsx(E,{children:x}),t[43]=E,t[44]=x,t[45]=N):N=t[45],N}function ut(i){const t=R.c(3),{virtualMcpId:r}=i;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx(Y,{}),t[0]=n):n=t[0];let o;return t[1]!==r?(o=e.jsx(H.Suspense,{fallback:n,children:e.jsx(pt,{virtualMcpId:r})}),t[1]=r,t[2]=o):o=t[2],o}function dt(){const i=R.c(2),t=lt();let r;return i[0]!==t?(r=e.jsx(ut,{virtualMcpId:t}),i[0]=t,i[1]=r):r=i[1],r}function Be(){const i=R.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(tt.Content,{children:e.jsx(dt,{})}),i[0]=t):t=i[0],t}export{Be as default};
@@ -1 +1 @@
1
- import{c as M,j as i,r as _,E as F,b as w,a0 as L,W as U,z as W,e as $}from"./index-cT94sQUH.js";import{C as D}from"./index-ChjHAm_X.js";import{u as B}from"./use-mcp-client-GBv4syMd.js";import{C as z,a as H}from"./companion-mcps-section-Di0GvwiM.js";import{c as K}from"./use-connect-companion-YiSxQfB7.js";import{C as v,a as q}from"./connect-layout-DxnvLjPI.js";import{p as G}from"./self-tool-result-8OxPN9Nm.js";import{a as J}from"./use-panel-navigate-BvpNAJeL.js";import"./use-mobile-Dv7BcXr5.js";import"./thread-button-BVgcb5x6.js";import"./sidebar-BFWjj-3T.js";import"./LayoutLeft-DgiG6wiH.js";import"./sheet-908igmnH.js";import"./X-CLqvixem.js";import"./tooltip-BGTnGCWW.js";import"./index-CgGEL4tk.js";import"./thread-route-C05Rrd8B.js";import"./use-route-default-main-Bux-DW8_.js";import"./hooks-Dpw_cJTM.js";import"./backoff-8mStPHYB.js";import"./task-board-BKlDz2nG.js";import"./schema-BwpPocS5.js";import"./agent-icon-CVsOY5Om.js";import"./AlertCircle-B3LJiQhZ.js";import"./Tool01-DK_vv6qf.js";import"./ArrowUp-BB5V3348.js";import"./ArrowLeft-DmWma6hW.js";import"./ArrowRight-540iMVH3.js";import"./XCircle-xC8IFHez.js";import"./ZoomOut-DD-ULjJm.js";import"./Globe04-DnURSsdQ.js";import"./CheckCircle-tvGC17Dy.js";import"./Check-CGKF06bT.js";import"./ChevronUp-Du4AWZmG.js";import"./UserSquare-CHvWRyuq.js";import"./Copy01-CYbqJpFZ.js";import"./CreditCard01-CK4yyvJY.js";import"./DotsVertical-BQfY36BV.js";import"./Download01-C8jubU2p.js";import"./Eye-CpLoEsen.js";import"./Share07-DpckpNEB.js";import"./XClose-1APsw2yP.js";import"./Image01-DPZCMheY.js";import"./Key01-CSyDklFV.js";import"./Link01-CYG0Mr8Q.js";import"./LinkExternal01-Div0d_z3.js";import"./Monitor01-BrSZ6zzu.js";import"./Sun-CzonSHrU.js";import"./Package-C5JGfmw5.js";import"./Palette-Bm4HMPv2.js";import"./Plus-Do5Wkomw.js";import"./SearchLg-gOfrWgIs.js";import"./SearchMd-B9ModJFt.js";import"./Stars01-B6IfixlN.js";import"./Trash01-Dw6PLr8l.js";import"./Upload01-BsQDz7U2.js";import"./User01-Bla6DkK3.js";import"./Users01-fXdkObFe.js";import"./Zap-SzxRRv0w.js";import"./toolbar-icon-button-BXZ727Lv.js";import"./use-in-settings-3zEronlT.js";import"./shell-layout-CkG1W_88.js";import"./avatar-B9CWtHB4.js";import"./download-app-dialog-CwgA8Jar.js";import"./dialog-DiUlVwD1.js";import"./use-project-scope-CYpIGnJg.js";import"./use-virtual-mcp-CyUsVYwB.js";import"./github-repo-BknN0SVI.js";import"./command-DZRWMxD5.js";import"./index-C9PI5TjH.js";import"./integration-icon-CBv4y2ld.js";import"./project-icon-DW-tv9X7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-fSuiMVRc.js";import"./autosend-BKkKn8iq.js";import"./use-org-sso-BziwA5dH.js";import"./resizable-CyPCDk7u.js";import"./route-page-header-CQ5gYErc.js";import"./auth-k9t16OOb.js";import"./site-url-en5df9c-.js";import"./companions-core-BnuxEm_5.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C8GSbvaz.js";import"./form-DDtq3Oeg.js";import"./label-C6sMx1BY.js";import"./input-CSdHjp7L.js";import"./use-debounced-value-CylTsY1l.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./useQueries-DRE-cCNR.js";import"./authenticate-and-persist-oauth-8HHvB0nM.js";import"./mcp-oauth-CtDqQIpT.js";import"./track-Cl2p3Vuk.js";import"./extract-connection-data-ak1yxd15.js";import"./connection-BtvJKuLN.js";function Q(o){const t=M.c(7),{onClose:l}=o,n=w();let r;t[0]!==n?(r=n("routes.reportsOnboarding.connectModal.loadError"),t[0]=n,t[1]=r):r=t[1];let e;t[2]!==r?(e=i.jsx("p",{className:"text-sm text-muted-foreground",children:r}),t[2]=r,t[3]=e):e=t[3];let s;return t[4]!==l||t[5]!==e?(s=i.jsx(v,{onClose:l,footer:null,children:e}),t[4]=l,t[5]=e,t[6]=s):s=t[6],s}function V(){const o=M.c(10),{closePanel:t}=J();let l;o[0]!==t?(l=()=>t(),o[0]=t,o[1]=l):l=o[1];const n=l;let r;o[2]!==n?(r=()=>i.jsx(Q,{onClose:n}),o[2]=n,o[3]=r):r=o[3];let e;o[4]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(z,{}),o[4]=e):e=o[4];let s;o[5]!==n?(s=i.jsx(_.Suspense,{fallback:i.jsx(v,{onClose:n,footer:null,children:e}),children:i.jsx(X,{onDone:n,onClose:n})}),o[5]=n,o[6]=s):s=o[6];let m;return o[7]!==r||o[8]!==s?(m=i.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:i.jsx(F,{fallback:r,children:s})}),o[7]=r,o[8]=s,o[9]=m):m=o[9],m}function X(o){const t=M.c(46),{onDone:l,onClose:n}=o,r=w(),{org:e}=L();let s;t[0]!==e.id?(s=U.REPORTS(e.id),t[0]=e.id,t[1]=s):s=t[1];const m=s;let b;t[2]!==e.id||t[3]!==e.slug?(b={connectionId:W,orgId:e.id,orgSlug:e.slug},t[2]=e.id,t[3]=e.slug,t[4]=b):b=t[4];const a=B(b);let P;t[5]!==m||t[6]!==e||t[7]!==a?(P={selfClient:a,org:e,cdConnectionId:m},t[5]=m,t[6]=e,t[7]=a,t[8]=P):P=t[8];const c=K(P),[I,k]=_.useState(!1),[R,N]=_.useState(null);let y;t[9]!==a?(y={mutationFn:async A=>G(await a.callTool({name:"REPORTS_RUN",arguments:{siteUrl:A}})),retry:!1},t[9]=a,t[10]=y):y=t[10];const p=$(y);let E;t[11]!==l||t[12]!==p||t[13]!==c||t[14]!==r?(E=async()=>{if(N(null),c)try{await p.mutateAsync(c)}catch{N(r("routes.reportsOnboarding.connectModal.somethingWentWrong"));return}l()},t[11]=l,t[12]=p,t[13]=c,t[14]=r,t[15]=E):E=t[15];const O=E;let u;t[16]!==R?(u=R?i.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:R}):null,t[16]=R,t[17]=u):u=t[17];let f;t[18]!==p.isPending||t[19]!==r?(f=p.isPending?r("routes.reportsOnboarding.connectSourcesTab.refreshing"):r("routes.reportsOnboarding.connectSourcesTab.refresh"),t[18]=p.isPending,t[19]=r,t[20]=f):f=t[20];let d;t[21]!==O?(d=()=>{O()},t[21]=O,t[22]=d):d=t[22];let x;t[23]!==I||t[24]!==p.isPending||t[25]!==f||t[26]!==d?(x=i.jsx(q,{ready:I,pending:p.isPending,label:f,onClick:d}),t[23]=I,t[24]=p.isPending,t[25]=f,t[26]=d,t[27]=x):x=t[27];let g;t[28]!==u||t[29]!==x?(g=i.jsxs(i.Fragment,{children:[u,x]}),t[28]=u,t[29]=x,t[30]=g):g=t[30];let C;t[31]!==r?(C=r("routes.reportsOnboarding.connectSourcesTab.title"),t[31]=r,t[32]=C):C=t[32];let h;t[33]!==C?(h=i.jsx("h2",{className:"text-xl font-medium leading-tight text-foreground",children:C}),t[33]=C,t[34]=h):h=t[34];let S;t[35]!==m||t[36]!==e||t[37]!==c?(S=i.jsx(H,{org:e,cdConnectionId:m,siteUrl:c,onReadinessChange:k}),t[35]=m,t[36]=e,t[37]=c,t[38]=S):S=t[38];let j;t[39]!==h||t[40]!==S?(j=i.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 overflow-y-auto",children:[h,S]}),t[39]=h,t[40]=S,t[41]=j):j=t[41];let T;return t[42]!==n||t[43]!==g||t[44]!==j?(T=i.jsx(v,{onClose:n,footer:g,children:j}),t[42]=n,t[43]=g,t[44]=j,t[45]=T):T=t[45],T}function Wo(){const o=M.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D.Content,{children:i.jsx(V,{})}),o[0]=t):t=o[0],t}export{Wo as default};
1
+ import{c as M,j as i,r as _,E as F,b as w,a0 as L,W as U,z as W,e as $}from"./index-Bv8ovZX7.js";import{C as D}from"./index-DGESUJrE.js";import{u as B}from"./use-mcp-client-8W4pv2iG.js";import{C as z,a as H}from"./companion-mcps-section-A0aC2MKi.js";import{c as K}from"./use-connect-companion-C-aC_6H2.js";import{C as v,a as q}from"./connect-layout-BrutlKFN.js";import{p as G}from"./self-tool-result-8OxPN9Nm.js";import{a as J}from"./use-panel-navigate-CeERwAhY.js";import"./use-mobile-CbgvL5x6.js";import"./thread-button-CU8FEc0x.js";import"./sidebar-DMorNI5B.js";import"./LayoutLeft-Bis2ERIL.js";import"./sheet-ncGbwo3c.js";import"./X-ClBxN2Lo.js";import"./tooltip-452rT2Av.js";import"./index-CW3mvbP-.js";import"./thread-route-CX0quyn9.js";import"./use-route-default-main-BW9UadGk.js";import"./hooks-BHo3iW8o.js";import"./backoff-8mStPHYB.js";import"./task-board-CSfWLhg4.js";import"./schema-CMlylut3.js";import"./agent-icon-v-YF8SZ6.js";import"./AlertCircle-DwYUjJBu.js";import"./Tool01-BNu7BHqQ.js";import"./ArrowUp-Bgr2TLsm.js";import"./ArrowLeft-BrzmATFY.js";import"./ArrowRight-DYu8UyAE.js";import"./XCircle-Ds0Log1_.js";import"./ZoomOut-DsH_k1C4.js";import"./Globe04-C9YOUwUx.js";import"./CheckCircle-DxLYuezp.js";import"./Check-BgzQchyA.js";import"./ChevronUp-CEt2-KWf.js";import"./UserSquare-B_QuMjVL.js";import"./Copy01-DY06zeXh.js";import"./CreditCard01-atzqozkq.js";import"./DotsVertical-DY1WVLqG.js";import"./Download01-BsnTCWqr.js";import"./Eye-BCLEOXNL.js";import"./Share07-BqFFQNeK.js";import"./XClose-DjadAVCX.js";import"./Image01-Dnl26WcB.js";import"./Key01-CwoMWwVQ.js";import"./Link01-1Ii-ZBB1.js";import"./LinkExternal01-CxPBcUve.js";import"./Monitor01-DypnteF9.js";import"./Sun-qCW4hQHf.js";import"./Package-DLofDsnv.js";import"./Palette-DZw1jmn0.js";import"./Plus-DJAmbMrJ.js";import"./SearchLg-0M2kccVO.js";import"./SearchMd-BT8cdzsW.js";import"./Stars01-BFm8fGnC.js";import"./Trash01-CSeT8ZD8.js";import"./Upload01-GlJ5Ud3s.js";import"./User01-D0NPPWmZ.js";import"./Users01-K81i8krS.js";import"./Zap-D3U8XJRb.js";import"./toolbar-icon-button-CL9TUqhr.js";import"./use-in-settings-DMlBXVsJ.js";import"./shell-layout-Cn2XiFfO.js";import"./avatar-CAxICn2w.js";import"./download-app-dialog-jqsRuRCN.js";import"./dialog-aNfvq0Gx.js";import"./use-project-scope-CdX2mBNC.js";import"./use-virtual-mcp-DyTrBBn7.js";import"./github-repo-BknN0SVI.js";import"./command-0Q71adD5.js";import"./index-CMM8OiJN.js";import"./integration-icon-_QdW_HEl.js";import"./project-icon-K8IkvwTu.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-5gvCMtcO.js";import"./autosend-D8pg19Rh.js";import"./use-org-sso-Od2nvWUP.js";import"./resizable-B57Znxf0.js";import"./route-page-header-CsPi4GMO.js";import"./auth-Bdfh9TTN.js";import"./site-url-en5df9c-.js";import"./companions-core-BnuxEm_5.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C8GSbvaz.js";import"./form-BvSGycPj.js";import"./label-BAb2clBH.js";import"./input-D7VKtVHV.js";import"./use-debounced-value-D4IIgvZ6.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./useQueries-BxKAM4Rs.js";import"./authenticate-and-persist-oauth-DKS7LloY.js";import"./mcp-oauth-D7EnzUg3.js";import"./track-9kgX0QPk.js";import"./extract-connection-data-B9DyPVU-.js";import"./connection-BwlYp_98.js";function Q(o){const t=M.c(7),{onClose:l}=o,n=w();let r;t[0]!==n?(r=n("routes.reportsOnboarding.connectModal.loadError"),t[0]=n,t[1]=r):r=t[1];let e;t[2]!==r?(e=i.jsx("p",{className:"text-sm text-muted-foreground",children:r}),t[2]=r,t[3]=e):e=t[3];let s;return t[4]!==l||t[5]!==e?(s=i.jsx(v,{onClose:l,footer:null,children:e}),t[4]=l,t[5]=e,t[6]=s):s=t[6],s}function V(){const o=M.c(10),{closePanel:t}=J();let l;o[0]!==t?(l=()=>t(),o[0]=t,o[1]=l):l=o[1];const n=l;let r;o[2]!==n?(r=()=>i.jsx(Q,{onClose:n}),o[2]=n,o[3]=r):r=o[3];let e;o[4]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(z,{}),o[4]=e):e=o[4];let s;o[5]!==n?(s=i.jsx(_.Suspense,{fallback:i.jsx(v,{onClose:n,footer:null,children:e}),children:i.jsx(X,{onDone:n,onClose:n})}),o[5]=n,o[6]=s):s=o[6];let m;return o[7]!==r||o[8]!==s?(m=i.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:i.jsx(F,{fallback:r,children:s})}),o[7]=r,o[8]=s,o[9]=m):m=o[9],m}function X(o){const t=M.c(46),{onDone:l,onClose:n}=o,r=w(),{org:e}=L();let s;t[0]!==e.id?(s=U.REPORTS(e.id),t[0]=e.id,t[1]=s):s=t[1];const m=s;let b;t[2]!==e.id||t[3]!==e.slug?(b={connectionId:W,orgId:e.id,orgSlug:e.slug},t[2]=e.id,t[3]=e.slug,t[4]=b):b=t[4];const a=B(b);let P;t[5]!==m||t[6]!==e||t[7]!==a?(P={selfClient:a,org:e,cdConnectionId:m},t[5]=m,t[6]=e,t[7]=a,t[8]=P):P=t[8];const c=K(P),[I,k]=_.useState(!1),[R,N]=_.useState(null);let y;t[9]!==a?(y={mutationFn:async A=>G(await a.callTool({name:"REPORTS_RUN",arguments:{siteUrl:A}})),retry:!1},t[9]=a,t[10]=y):y=t[10];const p=$(y);let E;t[11]!==l||t[12]!==p||t[13]!==c||t[14]!==r?(E=async()=>{if(N(null),c)try{await p.mutateAsync(c)}catch{N(r("routes.reportsOnboarding.connectModal.somethingWentWrong"));return}l()},t[11]=l,t[12]=p,t[13]=c,t[14]=r,t[15]=E):E=t[15];const O=E;let u;t[16]!==R?(u=R?i.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:R}):null,t[16]=R,t[17]=u):u=t[17];let f;t[18]!==p.isPending||t[19]!==r?(f=p.isPending?r("routes.reportsOnboarding.connectSourcesTab.refreshing"):r("routes.reportsOnboarding.connectSourcesTab.refresh"),t[18]=p.isPending,t[19]=r,t[20]=f):f=t[20];let d;t[21]!==O?(d=()=>{O()},t[21]=O,t[22]=d):d=t[22];let x;t[23]!==I||t[24]!==p.isPending||t[25]!==f||t[26]!==d?(x=i.jsx(q,{ready:I,pending:p.isPending,label:f,onClick:d}),t[23]=I,t[24]=p.isPending,t[25]=f,t[26]=d,t[27]=x):x=t[27];let g;t[28]!==u||t[29]!==x?(g=i.jsxs(i.Fragment,{children:[u,x]}),t[28]=u,t[29]=x,t[30]=g):g=t[30];let C;t[31]!==r?(C=r("routes.reportsOnboarding.connectSourcesTab.title"),t[31]=r,t[32]=C):C=t[32];let h;t[33]!==C?(h=i.jsx("h2",{className:"text-xl font-medium leading-tight text-foreground",children:C}),t[33]=C,t[34]=h):h=t[34];let S;t[35]!==m||t[36]!==e||t[37]!==c?(S=i.jsx(H,{org:e,cdConnectionId:m,siteUrl:c,onReadinessChange:k}),t[35]=m,t[36]=e,t[37]=c,t[38]=S):S=t[38];let j;t[39]!==h||t[40]!==S?(j=i.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 overflow-y-auto",children:[h,S]}),t[39]=h,t[40]=S,t[41]=j):j=t[41];let T;return t[42]!==n||t[43]!==g||t[44]!==j?(T=i.jsx(v,{onClose:n,footer:g,children:j}),t[42]=n,t[43]=g,t[44]=j,t[45]=T):T=t[45],T}function Wo(){const o=M.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D.Content,{children:i.jsx(V,{})}),o[0]=t):t=o[0],t}export{Wo as default};
@@ -0,0 +1 @@
1
+ import{c,j as e,aR as b,u as g}from"./index-Bv8ovZX7.js";import{C as j}from"./index-DGESUJrE.js";import{F as v,H as S}from"./file-share-button-f2Yvf1Ye.js";import{u as k,b as y,e as _}from"./use-org-fs-DlHKBaPi.js";import{S as w}from"./settings-tab-CSmq_TZm.js";import{b as M}from"./thread-route-CX0quyn9.js";import"./use-mobile-CbgvL5x6.js";import"./thread-button-CU8FEc0x.js";import"./sidebar-DMorNI5B.js";import"./LayoutLeft-Bis2ERIL.js";import"./sheet-ncGbwo3c.js";import"./X-ClBxN2Lo.js";import"./tooltip-452rT2Av.js";import"./index-CW3mvbP-.js";import"./use-panel-navigate-CeERwAhY.js";import"./use-project-scope-CdX2mBNC.js";import"./use-virtual-mcp-DyTrBBn7.js";import"./use-mcp-client-8W4pv2iG.js";import"./auth-Bdfh9TTN.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-BW9UadGk.js";import"./hooks-BHo3iW8o.js";import"./backoff-8mStPHYB.js";import"./task-board-CSfWLhg4.js";import"./schema-CMlylut3.js";import"./agent-icon-v-YF8SZ6.js";import"./AlertCircle-DwYUjJBu.js";import"./Tool01-BNu7BHqQ.js";import"./ArrowUp-Bgr2TLsm.js";import"./ArrowLeft-BrzmATFY.js";import"./ArrowRight-DYu8UyAE.js";import"./XCircle-Ds0Log1_.js";import"./ZoomOut-DsH_k1C4.js";import"./Globe04-C9YOUwUx.js";import"./CheckCircle-DxLYuezp.js";import"./Check-BgzQchyA.js";import"./ChevronUp-CEt2-KWf.js";import"./UserSquare-B_QuMjVL.js";import"./Copy01-DY06zeXh.js";import"./CreditCard01-atzqozkq.js";import"./DotsVertical-DY1WVLqG.js";import"./Download01-BsnTCWqr.js";import"./Eye-BCLEOXNL.js";import"./Share07-BqFFQNeK.js";import"./XClose-DjadAVCX.js";import"./Image01-Dnl26WcB.js";import"./Key01-CwoMWwVQ.js";import"./Link01-1Ii-ZBB1.js";import"./LinkExternal01-CxPBcUve.js";import"./Monitor01-DypnteF9.js";import"./Sun-qCW4hQHf.js";import"./Package-DLofDsnv.js";import"./Palette-DZw1jmn0.js";import"./Plus-DJAmbMrJ.js";import"./SearchLg-0M2kccVO.js";import"./SearchMd-BT8cdzsW.js";import"./Stars01-BFm8fGnC.js";import"./Trash01-CSeT8ZD8.js";import"./Upload01-GlJ5Ud3s.js";import"./User01-D0NPPWmZ.js";import"./Users01-K81i8krS.js";import"./Zap-D3U8XJRb.js";import"./toolbar-icon-button-CL9TUqhr.js";import"./use-in-settings-DMlBXVsJ.js";import"./shell-layout-Cn2XiFfO.js";import"./avatar-CAxICn2w.js";import"./download-app-dialog-jqsRuRCN.js";import"./dialog-aNfvq0Gx.js";import"./command-0Q71adD5.js";import"./index-CMM8OiJN.js";import"./integration-icon-_QdW_HEl.js";import"./project-icon-K8IkvwTu.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-5gvCMtcO.js";import"./autosend-D8pg19Rh.js";import"./use-org-sso-Od2nvWUP.js";import"./resizable-B57Znxf0.js";import"./route-page-header-CsPi4GMO.js";import"./input-D7VKtVHV.js";import"./popover-n4tdwfg1.js";import"./scroll-area-t3NukeQO.js";import"./select-B_9gxhnf.js";import"./breadcrumb-CkGzv7W5.js";import"./extract-connection-data-B9DyPVU-.js";import"./metadata-D72DunRR.js";import"./connection-BwlYp_98.js";import"./chat-context-ZGS-0Lc6.js";import"./thread-intent-Bl6xIfFf.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-BTK1TiYJ.js";import"./use-ai-providers-BfBmzjxk.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-E0BM35TR.js";import"./use-organization-settings-BXDoAx1p.js";import"./build-improve-prompt-doc-BUDaGIGD.js";import"./empty-state-Bryk1SHf.js";import"./use-date-fns-locale-4nMtSnpk.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-DZHmMxeG.js";import"./mcp-oauth-D7EnzUg3.js";import"./alert-dialog-5zuyoQ54.js";import"./textarea-Bs1krskq.js";import"./use-debounced-autosave-Dabnhryq.js";import"./add-connection-dialog-BKL_hKkk.js";import"./collection-search-DUPEyodi.js";import"./connection-card-BwH4OiUh.js";import"./useInfiniteQuery-COua6s42.js";import"./infiniteQueryObserver-CLmBPvOC.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-DSLgUl8S.js";import"./form-BvSGycPj.js";import"./label-BAb2clBH.js";import"./connection-form-helpers-DukXidKL.js";import"./authenticate-and-persist-oauth-DKS7LloY.js";import"./collection-tabs-DltvKsB7.js";import"./badge-BnOb-zsy.js";import"./use-infinite-scroll-Be1BN8YX.js";import"./useSuspenseInfiniteQuery-6311fHu0.js";import"./file-type-icon-BYgiZIDa.js";import"./checkbox-8e5Ux6Bp.js";import"./search-input-B3K0cIXk.js";import"./use-mcp-auth-status-DZc1kZiD.js";import"./types-CKACT3re.js";import"./use-mcp-tools-CWjm4_qp.js";import"./use-mcp-prompts-EP5VAc7p.js";import"./utils-CVEq3hMx.js";import"./switch-B8V9Ox46.js";import"./use-project-native-view-presence-0O5UQcYW.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-BX41631Z.js";import"./site-slug-uya6Wp4-.js";import"./optimistic-project-sidebar-views-CIgk0pPq.js";import"./virtual-mcp-BYf8h9T-.js";import"./repository-import-picker-CRs10CPh.js";import"./use-navigate-to-agent-CnwjWuW_.js";import"./repository-picker-CZ9LQZYf.js";import"./github-icon-BP92s-aj.js";import"./use-debounced-value-D4IIgvZ6.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-BvIcwT9-.js";import"./use-secrets-CfE-SREF.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";const x="home";function P(i){const t=c.c(5),{label:r}=i;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p=e.jsx(b,{className:"aspect-video w-2/3 max-w-xl"}),t[0]=p):p=t[0];let o;t[1]!==r?(o=r&&e.jsx("p",{className:"text-xs text-muted-foreground",children:r}),t[1]=r,t[2]=o):o=t[2];let m;return t[3]!==o?(m=e.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 bg-background",children:[p,o]}),t[3]=o,t[4]=m):m=t[4],m}function D(i){const t=c.c(15),{path:r}=i;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={refetchIntervalWhenAbsent:2e3},t[0]=p):p=t[0];const o=k(x,r,p),m=y(x)(r);if(o.isPending||!o.data){const h=!o.isPending&&!o.data?"Waiting for the deck to sync…":void 0;let l;return t[1]!==h?(l=e.jsx(P,{label:h}),t[1]=h,t[2]=l):l=t[2],l}let s;t[3]!==o.data?(s=_(o.data),t[3]=o.data,t[4]=s):s=t[4];const f=o.data.shareMode??"private",u=o.data.effectivePublic??!1,d=window.location.origin+m;let a;t[5]!==r||t[6]!==f||t[7]!==u||t[8]!==d?(a=e.jsx(v,{volume:x,path:r,shareMode:f,effectivePublic:u,url:d}),t[5]=r,t[6]=f,t[7]=u,t[8]=d,t[9]=a):a=t[9];let n;return t[10]!==r||t[11]!==m||t[12]!==s||t[13]!==a?(n=e.jsx(S,{readUrl:m,marker:s,title:r,savePath:r,trailing:a}),t[10]=r,t[11]=m,t[12]=s,t[13]=a,t[14]=n):n=t[14],n}function R(){const i=c.c(4);let t;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},i[0]=t):t=i[0];const r=g(t),p=M(),o="path"in r&&typeof r.path=="string"?r.path:void 0;let m;return i[1]!==o||i[2]!==p?(m=o?e.jsx(D,{path:o},o):e.jsx(w,{virtualMcpId:p}),i[1]=o,i[2]=p,i[3]=m):m=i[3],m}function fr(){const i=c.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(j.Content,{children:e.jsx(R,{})}),i[0]=t):t=i[0],t}export{fr as default};