decocms 4.365.0 → 4.365.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 (488) hide show
  1. package/dist/client/assets/{AlertCircle-bl0yU7gy.js → AlertCircle-BPZWT1gc.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CHPDNuDf.js → AreaChart-CxCPUfZu.js} +3 -3
  3. package/dist/client/assets/{ArrowLeft-CpbUCYpB.js → ArrowLeft-c3HIgil5.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-CkVUmxaa.js → ArrowRight-BHzAyFwu.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BQQdFypM.js → ArrowUp-DywwLYcR.js} +1 -1
  6. package/dist/client/assets/{Check-BJaMheL7.js → Check-PyGET9iL.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-BNNyBNMK.js → CheckCircle-4Be5K85Z.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-2Ti1evDh.js → ChevronRight-vY_5m8VB.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-Cp-tcsrs.js → ChevronUp-B9QGJbr0.js} +1 -1
  10. package/dist/client/assets/{Copy01-BrL9ZrVF.js → Copy01-BbtQlTnV.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-_mwanoIZ.js → CreditCard01-2jrzrshR.js} +1 -1
  12. package/dist/client/assets/{Database01-Dm_V08L3.js → Database01-B8rfUUUF.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-B8slOnrw.js → DotsVertical-zFAA_as9.js} +1 -1
  14. package/dist/client/assets/{Download01-Bl2-HJHJ.js → Download01-CSiLQIib.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-nVgseQIz.js → ErrorBarContext-D7xML5iT.js} +1 -1
  16. package/dist/client/assets/{Eye-B_BMkWWc.js → Eye-BRXlESxS.js} +1 -1
  17. package/dist/client/assets/{File02-3fotvfyl.js → File02-D4JZqTxD.js} +1 -1
  18. package/dist/client/assets/{GitBranch01-Dr0NRbj6.js → GitBranch01-95kZh6WB.js} +1 -1
  19. package/dist/client/assets/{Globe01-DMnQmvOn.js → Globe01-Dej65_H6.js} +1 -1
  20. package/dist/client/assets/{HardDrive-CxNWrsuq.js → HardDrive-DCLQ4vdy.js} +1 -1
  21. package/dist/client/assets/{Image01-DMAKgzzX.js → Image01-Dd-Rx_B5.js} +1 -1
  22. package/dist/client/assets/{Key01-CVfJV98q.js → Key01-CQFO2R8H.js} +1 -1
  23. package/dist/client/assets/{Link01-CKw3sRrv.js → Link01-pGxgI9VT.js} +1 -1
  24. package/dist/client/assets/{LinkExternal01-OjBTsG9L.js → LinkExternal01-Jetqi62I.js} +1 -1
  25. package/dist/client/assets/MessageCircle01-D2dDPrBD.js +1 -0
  26. package/dist/client/assets/{Monitor01-Bc6Zvq9B.js → Monitor01-Bw-h-DKp.js} +1 -1
  27. package/dist/client/assets/{Package-DTeqx5ul.js → Package-CF-S4NRB.js} +1 -1
  28. package/dist/client/assets/{Palette-CiXH5EXK.js → Palette-DuCZiZH-.js} +1 -1
  29. package/dist/client/assets/{Play-BPdpqeiE.js → Play-BTJRmkRf.js} +1 -1
  30. package/dist/client/assets/{Plus-kQ9d0PiA.js → Plus-BUGmioCX.js} +1 -1
  31. package/dist/client/assets/Printer-B2Ij2s1c.js +1 -0
  32. package/dist/client/assets/{SearchLg-Cecpe6x9.js → SearchLg-De3yWxzK.js} +1 -1
  33. package/dist/client/assets/{SearchMd-hBr_biLL.js → SearchMd-DanltqT5.js} +1 -1
  34. package/dist/client/assets/{Sector-B0yBxg4a.js → Sector-DqvqR1iU.js} +2 -2
  35. package/dist/client/assets/{Settings02-BqKUeA5H.js → Settings02-C-HNbNsn.js} +1 -1
  36. package/dist/client/assets/{Share07-D8xQrAsX.js → Share07-C4Gw_nzw.js} +1 -1
  37. package/dist/client/assets/{Shield01-Dav77ssu.js → Shield01-7bhnSYVs.js} +1 -1
  38. package/dist/client/assets/{Stars01-DWjpdjKn.js → Stars01-BmtGexbk.js} +1 -1
  39. package/dist/client/assets/{Sun-wxsl7cI_.js → Sun-D5AClOdh.js} +1 -1
  40. package/dist/client/assets/{SwitchHorizontal01-CCraiYIJ.js → SwitchHorizontal01-CCmSX-Ww.js} +1 -1
  41. package/dist/client/assets/{Tool01-E6Rv0Nbs.js → Tool01-C1VYYGhf.js} +1 -1
  42. package/dist/client/assets/{Tool02-Darwb8nP.js → Tool02-A5gv-OOO.js} +1 -1
  43. package/dist/client/assets/{Trash01-BB2ymX9J.js → Trash01-DkwdEhkp.js} +1 -1
  44. package/dist/client/assets/{TrendUp01-PJuAXI74.js → TrendUp01-CQWL_vX5.js} +1 -1
  45. package/dist/client/assets/{Upload01-BtBtAyal.js → Upload01-BlEOH700.js} +1 -1
  46. package/dist/client/assets/{User01-CtDIPHIF.js → User01-C2ILPAHc.js} +1 -1
  47. package/dist/client/assets/{UserSquare-BflxhZ_l.js → UserSquare-DY1wI6ZR.js} +1 -1
  48. package/dist/client/assets/{Users01-9HTYv5bx.js → Users01-bydaoxbh.js} +1 -1
  49. package/dist/client/assets/{Users03-D8RoJqiC.js → Users03-3yW32m45.js} +1 -1
  50. package/dist/client/assets/X-DejWyAyX.js +1 -0
  51. package/dist/client/assets/{XCircle-Dvf0BUKb.js → XCircle-SVZraRfE.js} +1 -1
  52. package/dist/client/assets/{XClose-DPfGLo7I.js → XClose-wkdnmhrB.js} +1 -1
  53. package/dist/client/assets/{Zap-ChgjHdxL.js → Zap-0km1-ru7.js} +1 -1
  54. package/dist/client/assets/{ZoomOut-BAhVAzy1.js → ZoomOut-BA2ZiotX.js} +1 -1
  55. package/dist/client/assets/access-gate-DpZqBld0.js +1 -0
  56. package/dist/client/assets/add-connection-dialog-DB5JJjad.js +1 -0
  57. package/dist/client/assets/agent-analytics-CAHUVirD.js +2 -0
  58. package/dist/client/assets/agent-app-BeMC8z8k.js +1 -0
  59. package/dist/client/assets/agent-assets-DsMv2xEg.js +1 -0
  60. package/dist/client/assets/agent-automation-BY5j9rqa.js +20 -0
  61. package/dist/client/assets/agent-automations-1_XWI0cB.js +1 -0
  62. package/dist/client/assets/agent-connect-sources-CGYs_l_4.js +1 -0
  63. package/dist/client/assets/agent-deck-BqKNWwGC.js +1 -0
  64. package/dist/client/assets/agent-e2e-DSg6pAM6.js +1 -0
  65. package/dist/client/assets/agent-file-QzuIvb2U.js +1 -0
  66. package/dist/client/assets/agent-git-B5SGdxwk.js +3 -0
  67. package/dist/client/assets/agent-hosting-CWM0TAgK.js +1 -0
  68. package/dist/client/assets/agent-icon-BjknPEfN.js +1 -0
  69. package/dist/client/assets/agent-library-file-DOj4Pso1.js +1 -0
  70. package/dist/client/assets/agent-monitor-D0SLtbEO.js +1 -0
  71. package/dist/client/assets/agent-overview-4MzJb6Tv.js +1 -0
  72. package/dist/client/assets/agent-settings-D4SL-PIa.js +1 -0
  73. package/dist/client/assets/agent-site-editor-BDP-vSUl.js +24 -0
  74. package/dist/client/assets/agent-site-editor-code-C2z-Az-Y.js +2 -0
  75. package/dist/client/assets/agent-site-editor-content-JPYekiK_.js +2 -0
  76. package/dist/client/assets/agent-site-editor-preview-CFLjaarK.js +504 -0
  77. package/dist/client/assets/agent-view-Bp9ooHxf.js +1 -0
  78. package/dist/client/assets/agent-view-guard-B7qYW-b3.js +1 -0
  79. package/dist/client/assets/agents-list-h96XaSKk.js +1 -0
  80. package/dist/client/assets/ai-providers-COWdzwzu.js +1 -0
  81. package/dist/client/assets/{alert-DkgzGFz6.js → alert-CvK2RkF3.js} +1 -1
  82. package/dist/client/assets/{alert-dialog-BdwUra4d.js → alert-dialog-CDARhUOh.js} +2 -2
  83. package/dist/client/assets/{api-keys-Bl99t7Nm.js → api-keys-Ba-S9F5Y.js} +1 -1
  84. package/dist/client/assets/api-keys-DeCwNgs3.js +1 -0
  85. package/dist/client/assets/app-editor-CsOLGnt4.js +1 -0
  86. package/dist/client/assets/asset-utils-DQpbxjwd.js +1 -0
  87. package/dist/client/assets/{auth-vfqjjrgv.js → auth-Cyjh0UQp.js} +1 -1
  88. package/dist/client/assets/{auth-catchall-CZ_cFv3z.js → auth-catchall-BbOJ2FpE.js} +1 -1
  89. package/dist/client/assets/{auth-entry-Cp4v6AT2.js → auth-entry-CIc1-YG9.js} +1 -1
  90. package/dist/client/assets/{auth-split-layout-BB-yAg-2.js → auth-split-layout-WGnYlU-M.js} +1 -1
  91. package/dist/client/assets/{authenticate-and-persist-oauth-CpB-R1LO.js → authenticate-and-persist-oauth-Dgc5b4Jr.js} +1 -1
  92. package/dist/client/assets/{automation-list-row-DKusfCau.js → automation-list-row-Dyqat6cE.js} +1 -1
  93. package/dist/client/assets/automation-runs-DkHp_jZr.js +1 -0
  94. package/dist/client/assets/automations-BSGRkynt.js +1 -0
  95. package/dist/client/assets/{autosend-u-W4xgi7.js → autosend-BBoss6Ia.js} +1 -1
  96. package/dist/client/assets/{avatar-BpU54ct-.js → avatar-CO3n6wLC.js} +1 -1
  97. package/dist/client/assets/backoff-8mStPHYB.js +1 -0
  98. package/dist/client/assets/{badge-DJ5ezE5-.js → badge-DUpgRwQu.js} +1 -1
  99. package/dist/client/assets/{block-document-7Ngv587f.js → block-document-CVyeCLBq.js} +3 -3
  100. package/dist/client/assets/blocks-preview-workspace-context-CLQbGv9t.js +1 -0
  101. package/dist/client/assets/{breadcrumb-Dlcs3jWo.js → breadcrumb-FJ1G6kmP.js} +1 -1
  102. package/dist/client/assets/buckets-BTZUX3pR.js +1 -0
  103. package/dist/client/assets/build-improve-prompt-doc-CcAYvBOj.js +2 -0
  104. package/dist/client/assets/bulk-category-panel-9cEfFq4L.js +1 -0
  105. package/dist/client/assets/{calendar-B8BrEMls.js → calendar-Bb8OUNd8.js} +1 -1
  106. package/dist/client/assets/{capability-load-error-CdMFNpdR.js → capability-load-error-Ctg9pY-k.js} +1 -1
  107. package/dist/client/assets/{cards-BfP1wflC.js → cards-CbRL3hJc.js} +1 -1
  108. package/dist/client/assets/category-editor-DLB1OCyq.js +1 -0
  109. package/dist/client/assets/{chart-zbtN9_7R.js → chart-DqNrc8dZ.js} +1 -1
  110. package/dist/client/assets/{chat-context-CD1rWX64.js → chat-context-B40ngn3f.js} +9 -9
  111. package/dist/client/assets/{checkbox-DwVdLA7e.js → checkbox-STVvKX8k.js} +1 -1
  112. package/dist/client/assets/choose-editor-DVdbAy2O.js +1 -0
  113. package/dist/client/assets/claim-phase-copy-0btUuJoC.js +1 -0
  114. package/dist/client/assets/{cli-auth-success-BtBj1xJE.js → cli-auth-success-DmTxFaq5.js} +1 -1
  115. package/dist/client/assets/{client-icons-BcSFyY79.js → client-icons-CR99ZCoE.js} +1 -1
  116. package/dist/client/assets/collapsible-Cf4ZreOo.js +1 -0
  117. package/dist/client/assets/collection-detail-oWaNi-hD.js +1 -0
  118. package/dist/client/assets/collection-display-button-CkKXuKd-.js +1 -0
  119. package/dist/client/assets/{collection-search-Bi-DttH4.js → collection-search-CDaDEv2c.js} +1 -1
  120. package/dist/client/assets/{collection-table-wrapper-DfAhVjGn.js → collection-table-wrapper-B036tBOl.js} +1 -1
  121. package/dist/client/assets/{collection-tabs-BZkkvpP_.js → collection-tabs-CkeFxbT3.js} +1 -1
  122. package/dist/client/assets/{command-cJVGaRa3.js → command-D7YFT70c.js} +1 -1
  123. package/dist/client/assets/{command-palette-store-BNo0UXiS.js → command-palette-store-BcwFt5eE.js} +1 -1
  124. package/dist/client/assets/commerce-onboarding-BcoYZTQG.js +1 -0
  125. package/dist/client/assets/{companion-mcps-section-smAU7jYC.js → companion-mcps-section-CS9qQ8v0.js} +1 -1
  126. package/dist/client/assets/{connect-Bn7h46Ea.js → connect-BM6ZfhOz.js} +2 -2
  127. package/dist/client/assets/connect-layout-De5w9TxQ.js +1 -0
  128. package/dist/client/assets/{connection-card-DCMUv-0w.js → connection-card-kANJRcvf.js} +1 -1
  129. package/dist/client/assets/connection-detail-Ckkh02Py.js +1 -0
  130. package/dist/client/assets/{connection-D6f54N4w.js → connection-di4Fldx3.js} +1 -1
  131. package/dist/client/assets/{connection-form-helpers-BiJdmlDA.js → connection-form-helpers-fWne-kOd.js} +1 -1
  132. package/dist/client/assets/connections-BKm7IMTt.js +1 -0
  133. package/dist/client/assets/{create-organization-dialog-IR2z5bIs.js → create-organization-dialog-BmgLNeEx.js} +1 -1
  134. package/dist/client/assets/decofile-api-BhjpITFN.js +1 -0
  135. package/dist/client/assets/{decopilot-CK3rN_ad.js → decopilot-ClO0uusm.js} +2 -2
  136. package/dist/client/assets/dialog-Dxe0Jgna.js +1 -0
  137. package/dist/client/assets/discover-BdugM7FR.js +1 -0
  138. package/dist/client/assets/domain-settings-Dp-mWih8.js +1 -0
  139. package/dist/client/assets/{download-app-dialog-CNd8ka-x.js → download-app-dialog-lwMMuYsF.js} +1 -1
  140. package/dist/client/assets/{drawer-DsG6Si3V.js → drawer-1GzYkddr.js} +1 -1
  141. package/dist/client/assets/{dropdown-menu-4cRHTbic.js → dropdown-menu-Bws_0K_q.js} +1 -1
  142. package/dist/client/assets/{editor-NTP5Xcj9.js → editor-U5ucetu-.js} +1 -1
  143. package/dist/client/assets/{empty-state-DmTochCH.js → empty-state-BjMIbq91.js} +1 -1
  144. package/dist/client/assets/{empty-state-D86Jkx4H.js → empty-state-C3Z_6q55.js} +1 -1
  145. package/dist/client/assets/{extract-connection-data-B3hIAjiC.js → extract-connection-data-BAjOM4U5.js} +1 -1
  146. package/dist/client/assets/file-explorer-LFC3Ac60.js +2 -0
  147. package/dist/client/assets/{file-preview-BbFH5cdB.js → file-preview-n35lcg8c.js} +1 -1
  148. package/dist/client/assets/{file-share-button-ChoXQdlr.js → file-share-button-D04rfik7.js} +2 -2
  149. package/dist/client/assets/{file-type-icon-DJQFeBpV.js → file-type-icon-C4dI9q_n.js} +1 -1
  150. package/dist/client/assets/{folder-icon-BRLOuEpt.js → folder-icon-pWHmymOf.js} +1 -1
  151. package/dist/client/assets/{form-DhUF_Mtg.js → form-CRSWplOb.js} +1 -1
  152. package/dist/client/assets/{gateway-client-Cb37izH_.js → gateway-client-D45uHvIc.js} +1 -1
  153. package/dist/client/assets/general-C7RGB0Oj.js +1 -0
  154. package/dist/client/assets/{github-icon-cJDFDEm7.js → github-icon-CsH29e4W.js} +1 -1
  155. package/dist/client/assets/{github-repo-C0igpkr9.js → github-repo-BknN0SVI.js} +1 -1
  156. package/dist/client/assets/home-CpLcM3nB.js +1 -0
  157. package/dist/client/assets/hooks-CE7d6Dy1.js +15 -0
  158. package/dist/client/assets/{hooks-BrcP19Uo.js → hooks-CxBYuMc8.js} +2 -2
  159. package/dist/client/assets/{index-epfDD3H5.js → index-4fsCOuPz.js} +2 -2
  160. package/dist/client/assets/index-B53DWiGz.js +1 -0
  161. package/dist/client/assets/{index-BQzHGsvt.js → index-BJDZS0O4.js} +11 -11
  162. package/dist/client/assets/index-BQwroePl.js +1 -0
  163. package/dist/client/assets/{index-Df6f9kP3.js → index-BRigOSQu.js} +1 -1
  164. package/dist/client/assets/{index-CoYeuRng.js → index-CBcq1VSB.js} +1 -1
  165. package/dist/client/assets/index-CFUteTrc.js +1 -0
  166. package/dist/client/assets/{index-gctAQu2T.js → index-CVJEcf37.js} +74 -74
  167. package/dist/client/assets/{index-DQ6uuKpF.js → index-CblYf_yB.js} +8 -8
  168. package/dist/client/assets/{index-BywxOh2e.js → index-CcEd_wWL.js} +1 -1
  169. package/dist/client/assets/index-Clbrhj--.js +1 -0
  170. package/dist/client/assets/{index-CImKKZ20.js → index-CxOPSFx9.js} +1 -1
  171. package/dist/client/assets/index-CyYEAXEU.js +1 -0
  172. package/dist/client/assets/{index-eVyHwFa9.js → index-DAN6A7hZ.js} +1 -1
  173. package/dist/client/assets/{index-DJADaZ4J.css → index-DUflXgSu.css} +1 -1
  174. package/dist/client/assets/index-Dio39w6e.js +26 -0
  175. package/dist/client/assets/index-DsI9yqDT.js +1 -0
  176. package/dist/client/assets/{index-redirect-DxBD4sTo.js → index-redirect-Bw20Ba6Y.js} +1 -1
  177. package/dist/client/assets/{infiniteQueryObserver-Da0v0sXC.js → infiniteQueryObserver-BSmIgXE3.js} +1 -1
  178. package/dist/client/assets/infra-billing-DFEuQtvU.js +1 -0
  179. package/dist/client/assets/{input-eBmoU-9D.js → input-C8MQoDCb.js} +1 -1
  180. package/dist/client/assets/{input-DlvEXkej.js → input-CQyA0V5b.js} +1 -1
  181. package/dist/client/assets/{input-C9QH7mMV.js → input-DD_DI_Km.js} +2 -2
  182. package/dist/client/assets/{integration-icon-YYg8l_RW.js → integration-icon-BV7Q9XOu.js} +1 -1
  183. package/dist/client/assets/{label-DGkzLfNU.js → label-Cfl8uGDP.js} +1 -1
  184. package/dist/client/assets/last-preview-page-B_KVLuYW.js +1 -0
  185. package/dist/client/assets/layout-Dm4T-Vne.js +1 -0
  186. package/dist/client/assets/legacy-agents-deep-Dd57JUEI.js +1 -0
  187. package/dist/client/assets/legacy-main-redirect-CWvMqmhB.js +1 -0
  188. package/dist/client/assets/{library-CKrgioQu.js → library-3DHQWojm.js} +4 -4
  189. package/dist/client/assets/login-CupMnybl.js +1 -0
  190. package/dist/client/assets/{markdown-BV0XgGTq.js → markdown-BvSl7QX1.js} +3 -3
  191. package/dist/client/assets/{mcp-app-renderer-Bv46PiO3.js → mcp-app-renderer-DJ7Ve9Yy.js} +2 -2
  192. package/dist/client/assets/{mcp-oauth-i7PCjbNf.js → mcp-oauth-OvlzbMCP.js} +1 -1
  193. package/dist/client/assets/members-Cuiahh5G.js +1 -0
  194. package/dist/client/assets/message-templates-wocfrCJF.js +1 -0
  195. package/dist/client/assets/{mini-report-page-k88VT2C2.js → mini-report-page-4Bd0cMlr.js} +1 -1
  196. package/dist/client/assets/{monaco-editor-kRD7y0Pc.js → monaco-editor-B2KCfh7a.js} +1 -1
  197. package/dist/client/assets/{monitoring-stats-row-CuCuR7PQ.js → monitoring-stats-row-CufhVlNy.js} +1 -1
  198. package/dist/client/assets/{multi-select-CltjjMwX.js → multi-select-BHFunwbq.js} +1 -1
  199. package/dist/client/assets/{mustache-Db7x-4gI.js → mustache-DyjElMuJ.js} +1 -1
  200. package/dist/client/assets/{oauth-callback-CT29B8-5.js → oauth-callback-4BOm__rV.js} +1 -1
  201. package/dist/client/assets/{oauth-callback-ai-provider-3CPoYshC.js → oauth-callback-ai-provider-Czk5gVgf.js} +1 -1
  202. package/dist/client/assets/{onboarding-DEm51GnF.js → onboarding-D2PsWH4h.js} +1 -1
  203. package/dist/client/assets/{optimistic-project-sidebar-views-Drtbh9Ui.js → optimistic-project-sidebar-views-B3vU1qR8.js} +1 -1
  204. package/dist/client/assets/{organization-choice-BdqJqB_v.js → organization-choice-C-PRPVPc.js} +1 -1
  205. package/dist/client/assets/orgs-DpmY6dw4.js +1 -0
  206. package/dist/client/assets/{page-seo-form-BXvLQ5tk.js → page-seo-form-gUB5sB3u.js} +1 -1
  207. package/dist/client/assets/{pair-BIPkH5eA.js → pair-98UY-0wm.js} +8 -8
  208. package/dist/client/assets/{popover-BfKN_4aI.js → popover-DAJR0ej2.js} +1 -1
  209. package/dist/client/assets/post-calendar-4XiTJrif.js +1 -0
  210. package/dist/client/assets/post-editor-CXRn_RK8.js +1 -0
  211. package/dist/client/assets/preview-content-Tw_jYCgT.js +1 -0
  212. package/dist/client/assets/{preview-dialog-CYbL8r4H.js → preview-dialog-Bg_Wo7YI.js} +1 -1
  213. package/dist/client/assets/{primitives-BXcg67BS.js → primitives-BfIYsPoI.js} +1 -1
  214. package/dist/client/assets/profile-CDs1X-Le.js +1 -0
  215. package/dist/client/assets/project-app-view-BPLB01Cj.js +1 -0
  216. package/dist/client/assets/project-feed-CeGbFvMT.js +1 -0
  217. package/dist/client/assets/{project-icon-Dk1HaDIZ.js → project-icon-D1x6NEST.js} +1 -1
  218. package/dist/client/assets/project-reports-fH8-r6df.js +1 -0
  219. package/dist/client/assets/project-tasks-tas6EPem.js +1 -0
  220. package/dist/client/assets/prompts-B-VqD1p-.js +1 -0
  221. package/dist/client/assets/record-editor-LOQZDk0V.js +1 -0
  222. package/dist/client/assets/redirect-editor-CgXt_KHn.js +1 -0
  223. package/dist/client/assets/registry-YMo7WLlx.js +2 -0
  224. package/dist/client/assets/{registry-layout-CRM-FBei.js → registry-layout-SseogjtO.js} +3 -3
  225. package/dist/client/assets/reports-DC8tSFj3.js +1 -0
  226. package/dist/client/assets/{reports-B1FmmHPo.js → reports-Q6oueood.js} +2 -2
  227. package/dist/client/assets/reports-tab-DE-TYPly.js +2 -0
  228. package/dist/client/assets/repositories-BoiOgwFm.js +1 -0
  229. package/dist/client/assets/repository-import-picker-DyEfEliR.js +1 -0
  230. package/dist/client/assets/repository-picker-DWJtJkZW.js +1 -0
  231. package/dist/client/assets/require-capability-DljrHpsM.js +1 -0
  232. package/dist/client/assets/{required-auth-layout-CraNNSBi.js → required-auth-layout-TTElzhIM.js} +1 -1
  233. package/dist/client/assets/{reset-password-DcO8_P05.js → reset-password-B1ylDKoe.js} +1 -1
  234. package/dist/client/assets/resizable-DOW_fL7z.js +1 -0
  235. package/dist/client/assets/retry-i8LvYSZg.js +1 -0
  236. package/dist/client/assets/{review-settings-CANg_Nan.js → review-settings-DHvMG4G0.js} +1 -1
  237. package/dist/client/assets/{rich-text-link-control-CCig2s9-.js → rich-text-link-control-HLhFAha7.js} +1 -1
  238. package/dist/client/assets/roles-BWbTlJZc.js +1 -0
  239. package/dist/client/assets/route-D26IsMv1.js +1 -0
  240. package/dist/client/assets/route-D_kbg4iH.js +1 -0
  241. package/dist/client/assets/route-jdsFbZW7.js +1 -0
  242. package/dist/client/assets/runnable-block-editor-Bi0Cv7yD.js +16 -0
  243. package/dist/client/assets/sandbox-git-api-CMdpE2TE.js +1 -0
  244. package/dist/client/assets/{sandbox-lifecycle-context-Beua1bNX.js → sandbox-lifecycle-context-BbTDNpeS.js} +2 -2
  245. package/dist/client/assets/save-changes-debug-nBi-n9eV.js +1 -0
  246. package/dist/client/assets/{schema-BzgrQmAY.js → schema-BegvnGCM.js} +1 -1
  247. package/dist/client/assets/{scroll-area-tBZq-ZvJ.js → scroll-area-CxxMejtk.js} +1 -1
  248. package/dist/client/assets/{search-input-CYERWjWv.js → search-input-axkgbTZ7.js} +1 -1
  249. package/dist/client/assets/secrets-kzqIbFmd.js +1 -0
  250. package/dist/client/assets/section-preview-url-Csj0_ZDg.js +1 -0
  251. package/dist/client/assets/sections-editor-B_t9OrnC.js +2 -0
  252. package/dist/client/assets/select-B2GRzoG3.js +1 -0
  253. package/dist/client/assets/select-model-BRHN792B.js +1 -0
  254. package/dist/client/assets/seo-editor-DvngP1ti.js +1 -0
  255. package/dist/client/assets/settings-tab-DFjZ-Fkn.js +5 -0
  256. package/dist/client/assets/sheet-BePDARR0.js +1 -0
  257. package/dist/client/assets/shell-layout-D2wS-FNX.js +1 -0
  258. package/dist/client/assets/sidebar-IspuJbto.js +1 -0
  259. package/dist/client/assets/skill-preview-BdtuUFgV.js +1 -0
  260. package/dist/client/assets/skills-QJ3mhNvI.js +1 -0
  261. package/dist/client/assets/sso-DKhL-ARh.js +1 -0
  262. package/dist/client/assets/{store-CjL9y_7d.js → store-B9Az6md3.js} +1 -1
  263. package/dist/client/assets/store-registry-hcgHbNGW.js +2 -0
  264. package/dist/client/assets/switch-DJ4Dr2_V.js +1 -0
  265. package/dist/client/assets/synced-repos-flbNGs20.js +1 -0
  266. package/dist/client/assets/{table-aIDGrvqv.js → table-CrJ9LOSc.js} +1 -1
  267. package/dist/client/assets/{tabs-Sr-wlkg3.js → tabs-DVMaAAMA.js} +1 -1
  268. package/dist/client/assets/{task-board-CazuPR-U.js → task-board-SlBuwhrX.js} +1 -1
  269. package/dist/client/assets/task-route-B4hPzw6u.js +1 -0
  270. package/dist/client/assets/{task-status-Cj8IGjJC.js → task-status-DhZZzZ6G.js} +1 -1
  271. package/dist/client/assets/{tasks-DzatESzy.js → tasks-B_rqCvr1.js} +4 -4
  272. package/dist/client/assets/tasks-CViGtGHm.js +1 -0
  273. package/dist/client/assets/{textarea-6VvdKhvF.js → textarea-BDMLJ5G-.js} +1 -1
  274. package/dist/client/assets/{thread-intent-DPwCeeGE.js → thread-intent-C7DpKTRQ.js} +1 -1
  275. package/dist/client/assets/thread-route-Bc63tvFc.js +1 -0
  276. package/dist/client/assets/{thread-route-BsrvgyVU.js → thread-route-BzWllNYG.js} +1 -1
  277. package/dist/client/assets/thread-sheet-body-CiausLhX.js +1 -0
  278. package/dist/client/assets/toggle-group-BW8cP6lf.js +1 -0
  279. package/dist/client/assets/{toolbar-icon-button-CSTgB2Je.js → toolbar-icon-button-A2ebiBUr.js} +1 -1
  280. package/dist/client/assets/tooltip-B7VLfO9w.js +1 -0
  281. package/dist/client/assets/{track-CDfY4FZL.js → track-BGU8HJCB.js} +1 -1
  282. package/dist/client/assets/{types-8hWP_tsZ.js → types-CrAbOCy3.js} +6 -6
  283. package/dist/client/assets/usage-stats-Bf1Ukas_.js +1 -0
  284. package/dist/client/assets/use-ai-providers-R1Jac-4Q.js +1 -0
  285. package/dist/client/assets/use-automations-BzLd_Cf7.js +1 -0
  286. package/dist/client/assets/{use-autosave-DRlRuq5e.js → use-autosave-BezKrA6F.js} +1 -1
  287. package/dist/client/assets/use-commerce-diagnostic-DTGIqIpu.js +1 -0
  288. package/dist/client/assets/use-connect-companion-CgerJAPe.js +1 -0
  289. package/dist/client/assets/{use-connection-tOIuuLKJ.js → use-connection-B4t4VJEN.js} +1 -1
  290. package/dist/client/assets/{use-copy-B4PUMZjo.js → use-copy-DQwrjGi4.js} +1 -1
  291. package/dist/client/assets/{use-create-virtual-mcp-x2IPUAAO.js → use-create-virtual-mcp-CHEKOqdh.js} +1 -1
  292. package/dist/client/assets/{use-date-fns-locale-use6rm0l.js → use-date-fns-locale-m0Q-8AAg.js} +1 -1
  293. package/dist/client/assets/{use-debounced-autosave-CWLgAozd.js → use-debounced-autosave-C82NqRut.js} +1 -1
  294. package/dist/client/assets/{use-debounced-value-BHZw1Wtv.js → use-debounced-value-SjJ8k_tD.js} +1 -1
  295. package/dist/client/assets/use-deco-credits-CIfhJ3OU.js +1 -0
  296. package/dist/client/assets/use-decopilot-events-DDnHJjGY.js +1 -0
  297. package/dist/client/assets/use-delete-connection-BWW3Qwe4.js +1 -0
  298. package/dist/client/assets/{use-deployment-admin-PTBGIrMl.js → use-deployment-admin-D4Et99Id.js} +1 -1
  299. package/dist/client/assets/use-fast-preview-draft-url-B8C-G0p2.js +1 -0
  300. package/dist/client/assets/use-file-configs-CKcyFOK-.js +1 -0
  301. package/dist/client/assets/{use-infinite-scroll-DnRzNQQc.js → use-infinite-scroll-C88xvDJq.js} +1 -1
  302. package/dist/client/assets/use-join-requests-CtMSd2H7.js +1 -0
  303. package/dist/client/assets/use-main-panel-tabs-BLf-yD79.js +1 -0
  304. package/dist/client/assets/use-mcp-auth-status-CF5e5Swp.js +1 -0
  305. package/dist/client/assets/{use-mcp-client-CzGi1Gun.js → use-mcp-client-DmOwsV3f.js} +6 -6
  306. package/dist/client/assets/{use-mcp-prompts-BJsq63pG.js → use-mcp-prompts-BKFfTbQi.js} +1 -1
  307. package/dist/client/assets/{use-mcp-tools-I4ahUYGD.js → use-mcp-tools-eOThR6gd.js} +1 -1
  308. package/dist/client/assets/{use-members-xjztJVBn.js → use-members-mw1URW2v.js} +1 -1
  309. package/dist/client/assets/use-mobile-WPuOYoIV.js +1 -0
  310. package/dist/client/assets/{use-navigate-to-agent-CBQsYRLL.js → use-navigate-to-agent-zGc1-u-z.js} +1 -1
  311. package/dist/client/assets/use-open-billing-url-BYWSUicc.js +1 -0
  312. package/dist/client/assets/use-org-auth-client-mMTl8cKp.js +1 -0
  313. package/dist/client/assets/{use-org-fs-Cm8FYvYP.js → use-org-fs-Ck9VysIz.js} +1 -1
  314. package/dist/client/assets/use-org-notice-Cb7z4nA0.js +1 -0
  315. package/dist/client/assets/{use-org-sso-CP_t4LLU.js → use-org-sso-CvkPQsKr.js} +1 -1
  316. package/dist/client/assets/{use-organization-roles-Cnixvt9H.js → use-organization-roles-wnmrYWSM.js} +1 -1
  317. package/dist/client/assets/use-organization-settings-CRw6qdb3.js +1 -0
  318. package/dist/client/assets/use-panel-navigate-ez3OqVq8.js +1 -0
  319. package/dist/client/assets/{use-project-native-view-presence-CJ7vLSBz.js → use-project-native-view-presence-DFjsPIlC.js} +1 -1
  320. package/dist/client/assets/use-project-scope-D9t-w7F3.js +1 -0
  321. package/dist/client/assets/use-registry-connections-BC1Pt8V1.js +1 -0
  322. package/dist/client/assets/use-releases-B_ioEYcb.js +1 -0
  323. package/dist/client/assets/use-route-default-main-B8Ci266p.js +1 -0
  324. package/dist/client/assets/use-secrets-BZEH47Ed.js +1 -0
  325. package/dist/client/assets/use-section-preview-base-D8ddLJeY.js +1 -0
  326. package/dist/client/assets/{use-session-runtime-Cs4eGT9k.js → use-session-runtime-CKDTMwlz.js} +1 -1
  327. package/dist/client/assets/use-tags-BnnveSvi.js +1 -0
  328. package/dist/client/assets/use-task-metadata-DQ-jzCVZ.js +1 -0
  329. package/dist/client/assets/{use-thread-outputs-DtpQGqCf.js → use-thread-outputs-ChimPCUk.js} +1 -1
  330. package/dist/client/assets/use-view-mode-CpyVGfy9.js +1 -0
  331. package/dist/client/assets/use-virtual-mcp-DvSX4N6q.js +1 -0
  332. package/dist/client/assets/useInfiniteQuery-CuoCKqDV.js +1 -0
  333. package/dist/client/assets/{useQueries-CnHkVL7d.js → useQueries-CCVXh4wK.js} +1 -1
  334. package/dist/client/assets/useSuspenseInfiniteQuery-BGyZ2Zcs.js +1 -0
  335. package/dist/client/assets/{users-CWHZPvdU.js → users-DgkJfwRz.js} +1 -1
  336. package/dist/client/assets/{utils-CdxSjBly.js → utils-D06E4WDv.js} +2 -2
  337. package/dist/client/assets/variant-calendar-B2YQFxru.js +1 -0
  338. package/dist/client/assets/{variant-matcher-override-BLTbL0Nb.js → variant-matcher-override-POFwaaTG.js} +1 -1
  339. package/dist/client/assets/view-mode-toggle-B09x-ETl.js +1 -0
  340. package/dist/client/assets/{virtual-mcp-CIE6gIFV.js → virtual-mcp-D-br_N6s.js} +1 -1
  341. package/dist/client/index.html +2 -2
  342. package/dist/server/cli.js +1 -1
  343. package/dist/server/server.js +1 -1
  344. package/package.json +1 -1
  345. package/dist/client/assets/Printer-Nban-oJk.js +0 -1
  346. package/dist/client/assets/access-gate-aVhmxNUP.js +0 -1
  347. package/dist/client/assets/add-connection-dialog-C2-znERG.js +0 -1
  348. package/dist/client/assets/agent-analytics-CLObAM6S.js +0 -2
  349. package/dist/client/assets/agent-app-DtLxy7iB.js +0 -1
  350. package/dist/client/assets/agent-assets-5J9H4wgC.js +0 -1
  351. package/dist/client/assets/agent-automation-DTYBStDc.js +0 -20
  352. package/dist/client/assets/agent-automations-DYZPALXC.js +0 -1
  353. package/dist/client/assets/agent-connect-sources-DJFWziK9.js +0 -1
  354. package/dist/client/assets/agent-deck-De0Y6qk5.js +0 -1
  355. package/dist/client/assets/agent-e2e-MVQ6vmAy.js +0 -1
  356. package/dist/client/assets/agent-file-IBnKf7Fw.js +0 -1
  357. package/dist/client/assets/agent-git-DjVoKiR8.js +0 -3
  358. package/dist/client/assets/agent-hosting-DbC8wvCr.js +0 -1
  359. package/dist/client/assets/agent-icon-DsGBCBNv.js +0 -1
  360. package/dist/client/assets/agent-library-file-CySHm683.js +0 -1
  361. package/dist/client/assets/agent-monitor-Duc2QTVQ.js +0 -1
  362. package/dist/client/assets/agent-overview-DAVTPrgq.js +0 -1
  363. package/dist/client/assets/agent-settings-DBEnACPy.js +0 -1
  364. package/dist/client/assets/agent-site-editor-CJ_722sF.js +0 -1
  365. package/dist/client/assets/agent-site-editor-code-CBPV2yNN.js +0 -2
  366. package/dist/client/assets/agent-site-editor-content-C-fwwsI7.js +0 -2
  367. package/dist/client/assets/agent-site-editor-preview-Be-uG2hV.js +0 -504
  368. package/dist/client/assets/agent-view-B3DdbJTr.js +0 -1
  369. package/dist/client/assets/agent-view-guard-DTG6Ut5n.js +0 -1
  370. package/dist/client/assets/agents-list-DNaOFYAO.js +0 -1
  371. package/dist/client/assets/ai-providers-BPcl_qgT.js +0 -1
  372. package/dist/client/assets/api-keys-CYMMtT0P.js +0 -1
  373. package/dist/client/assets/app-editor-_27_2g82.js +0 -1
  374. package/dist/client/assets/asset-utils-DTfzHa9m.js +0 -1
  375. package/dist/client/assets/automation-runs-Dt50JHCo.js +0 -1
  376. package/dist/client/assets/automations-DDydXmIK.js +0 -1
  377. package/dist/client/assets/backoff-CrEUbyZT.js +0 -1
  378. package/dist/client/assets/buckets-Wx6DtJNT.js +0 -1
  379. package/dist/client/assets/build-improve-prompt-doc-4aKzyTWA.js +0 -2
  380. package/dist/client/assets/bulk-category-panel-CclTC40F.js +0 -1
  381. package/dist/client/assets/category-editor-CuGxUDVJ.js +0 -1
  382. package/dist/client/assets/choose-editor-CE7aKrQp.js +0 -1
  383. package/dist/client/assets/collapsible-BDifv-q9.js +0 -1
  384. package/dist/client/assets/collection-detail-ec9sW8Ey.js +0 -1
  385. package/dist/client/assets/collection-display-button-C3CfuUhX.js +0 -1
  386. package/dist/client/assets/commerce-onboarding-Dxc7EEsL.js +0 -1
  387. package/dist/client/assets/connect-layout-Bby2uYqZ.js +0 -1
  388. package/dist/client/assets/connection-detail-C-Fe9wui.js +0 -1
  389. package/dist/client/assets/connections-CxSK9S4W.js +0 -1
  390. package/dist/client/assets/decode-html-entities-B4Qel6ov.js +0 -1
  391. package/dist/client/assets/decopilot-sse-pool-czpSFI9L.js +0 -1
  392. package/dist/client/assets/delay-CnY5UFtP.js +0 -1
  393. package/dist/client/assets/dialog--Jkwvpx1.js +0 -1
  394. package/dist/client/assets/discover-C7-JIKhR.js +0 -1
  395. package/dist/client/assets/domain-settings-Dh029s1M.js +0 -1
  396. package/dist/client/assets/file-explorer-B4d-xz4q.js +0 -2
  397. package/dist/client/assets/general-BY1zbaWS.js +0 -1
  398. package/dist/client/assets/home-CeJo7q7K.js +0 -1
  399. package/dist/client/assets/hooks-CxPd9b6i.js +0 -15
  400. package/dist/client/assets/index-1yGxjvng.js +0 -24
  401. package/dist/client/assets/index-C7tZKQ5s.js +0 -1
  402. package/dist/client/assets/index-CklK0EA_.js +0 -1
  403. package/dist/client/assets/index-D5CXQ9x9.js +0 -1
  404. package/dist/client/assets/index-Og5m3t85.js +0 -26
  405. package/dist/client/assets/index-Y6pd1REu.js +0 -1
  406. package/dist/client/assets/infra-billing-ChvPe0pr.js +0 -1
  407. package/dist/client/assets/invite-member-dialog-CeSVAfZq.js +0 -1
  408. package/dist/client/assets/layout-BIIr_imR.js +0 -1
  409. package/dist/client/assets/legacy-agents-deep-CdZo4h4A.js +0 -1
  410. package/dist/client/assets/legacy-main-redirect-CWWHewM6.js +0 -1
  411. package/dist/client/assets/login-svGY2sKo.js +0 -1
  412. package/dist/client/assets/members-BOTXfNHf.js +0 -1
  413. package/dist/client/assets/org-layout-BiRvLqL-.js +0 -1
  414. package/dist/client/assets/orgs-CMf-H7HH.js +0 -1
  415. package/dist/client/assets/post-calendar-BAQtpQvh.js +0 -1
  416. package/dist/client/assets/post-editor-DBJMHXYe.js +0 -1
  417. package/dist/client/assets/preview-content-CICx8Frq.js +0 -1
  418. package/dist/client/assets/profile-CUkJFM3_.js +0 -1
  419. package/dist/client/assets/project-app-view-BSYHmGj3.js +0 -1
  420. package/dist/client/assets/project-feed-BEGVLizK.js +0 -1
  421. package/dist/client/assets/project-reports-BozhFElP.js +0 -1
  422. package/dist/client/assets/project-tasks-DVexwc9x.js +0 -1
  423. package/dist/client/assets/prompts-Df-P8Zuz.js +0 -1
  424. package/dist/client/assets/record-editor-9YdHcAWO.js +0 -1
  425. package/dist/client/assets/redirect-editor-BohyWJXT.js +0 -1
  426. package/dist/client/assets/registry-BbkHDIpk.js +0 -2
  427. package/dist/client/assets/reports-SeFGRJSZ.js +0 -1
  428. package/dist/client/assets/reports-tab-D5rlmWEp.js +0 -2
  429. package/dist/client/assets/repositories-BXEjUV3F.js +0 -1
  430. package/dist/client/assets/repository-import-picker-Bc_O4k0-.js +0 -1
  431. package/dist/client/assets/repository-picker-DC97O6OK.js +0 -1
  432. package/dist/client/assets/require-capability-CoB1D-Ih.js +0 -1
  433. package/dist/client/assets/retry-CErkP7V6.js +0 -1
  434. package/dist/client/assets/roles-DEMri9Kk.js +0 -1
  435. package/dist/client/assets/runnable-block-editor-BD-IThSC.js +0 -16
  436. package/dist/client/assets/secrets-7Z0pTBUq.js +0 -1
  437. package/dist/client/assets/sections-editor-DoMH-fks.js +0 -2
  438. package/dist/client/assets/select-C9ZnmbzX.js +0 -1
  439. package/dist/client/assets/select-model-FK_tmltz.js +0 -1
  440. package/dist/client/assets/seo-editor-DNovpojV.js +0 -1
  441. package/dist/client/assets/settings-layout-Cd8jASua.js +0 -1
  442. package/dist/client/assets/settings-sidebar-DP80M_GR.js +0 -1
  443. package/dist/client/assets/settings-tab-DE3XUo7h.js +0 -5
  444. package/dist/client/assets/shell-controls-CnE-Tn5l.js +0 -1
  445. package/dist/client/assets/shell-layout-DMp5UdGb.js +0 -1
  446. package/dist/client/assets/skill-preview-D2lK4hU9.js +0 -1
  447. package/dist/client/assets/skills-xXfBybxi.js +0 -1
  448. package/dist/client/assets/source-system-tabs-CnEGUb4r.js +0 -1
  449. package/dist/client/assets/sso-DdBxRFrm.js +0 -1
  450. package/dist/client/assets/store-registry-BFRxGHgD.js +0 -2
  451. package/dist/client/assets/switch-DADMizS1.js +0 -1
  452. package/dist/client/assets/synced-repos-Cp7R03Jp.js +0 -1
  453. package/dist/client/assets/task-route-_NgFGVoT.js +0 -1
  454. package/dist/client/assets/tasks-BvZdYZ5R.js +0 -1
  455. package/dist/client/assets/thread-sheet-body-S2AS0IdJ.js +0 -1
  456. package/dist/client/assets/toggle-group-CHZjV-1n.js +0 -1
  457. package/dist/client/assets/toolbar-DAhC4RMM.js +0 -1
  458. package/dist/client/assets/usage-stats-B38oXMbk.js +0 -1
  459. package/dist/client/assets/use-ai-providers-DYf552qv.js +0 -1
  460. package/dist/client/assets/use-automations-DSRSDlyo.js +0 -1
  461. package/dist/client/assets/use-commerce-diagnostic-pXwQBZmy.js +0 -1
  462. package/dist/client/assets/use-connect-companion-Bt171l5d.js +0 -1
  463. package/dist/client/assets/use-deco-credits-Coxc4dyp.js +0 -1
  464. package/dist/client/assets/use-decopilot-events-V4xtyk7c.js +0 -1
  465. package/dist/client/assets/use-delete-connection-geT4L5Ed.js +0 -1
  466. package/dist/client/assets/use-file-configs-BLWnBKpa.js +0 -1
  467. package/dist/client/assets/use-join-requests-DL4guRSR.js +0 -1
  468. package/dist/client/assets/use-main-panel-tabs-BtAksZ1f.js +0 -1
  469. package/dist/client/assets/use-mcp-auth-status-CpecQqEX.js +0 -1
  470. package/dist/client/assets/use-open-billing-url-DaC9_MxZ.js +0 -1
  471. package/dist/client/assets/use-org-auth-client-DuxSmx0x.js +0 -1
  472. package/dist/client/assets/use-org-notice-lWz1PPs-.js +0 -1
  473. package/dist/client/assets/use-organization-settings-C-LQvPpq.js +0 -1
  474. package/dist/client/assets/use-panel-navigate-D2RT2tc_.js +0 -1
  475. package/dist/client/assets/use-project-scope-Ch_4TfMQ.js +0 -1
  476. package/dist/client/assets/use-registry-connections-CuDWC28C.js +0 -1
  477. package/dist/client/assets/use-secrets-BJDccjnS.js +0 -1
  478. package/dist/client/assets/use-section-preview-base-SCqBiLMF.js +0 -1
  479. package/dist/client/assets/use-status-sounds-BG-lkYEo.js +0 -1
  480. package/dist/client/assets/use-tags-DhkHJc7C.js +0 -1
  481. package/dist/client/assets/use-task-metadata-COSUQhUk.js +0 -1
  482. package/dist/client/assets/use-view-mode-CUARubnx.js +0 -1
  483. package/dist/client/assets/use-virtual-mcp-BMRFgR9g.js +0 -1
  484. package/dist/client/assets/useInfiniteQuery-DOeboQGx.js +0 -1
  485. package/dist/client/assets/useSuspenseInfiniteQuery-B5UzTlHS.js +0 -1
  486. package/dist/client/assets/variant-calendar-f9XxiGiP.js +0 -1
  487. package/dist/client/assets/view-mode-toggle-D31fXZcw.js +0 -1
  488. /package/dist/client/assets/{index-DDGTF8rc.css → agent-site-editor-DDGTF8rc.css} +0 -0
@@ -1 +0,0 @@
1
- import{c as z,b as J,e as He,j as n,B as q,t as Ke,bR as de,D as wt,a as Fe,w as Bt,z as vt,K as Ge,bS as Kt,bT as Ht,U as qe,l as it,an as Ut,r as X,a0 as Gt,ae as oe,d as jt,I as ct,x as kt,m as Ue,o as at,au as Tt,b6 as Jt,aE as Vt,aq as ut,v as Wt,bU as Yt,bV as Qt,bW as Xt,bX as Zt,bY as en,F as tn,u as nn,a2 as sn,bZ as on,b_ as an,k as Nt,b$ as st,c0 as rn,c1 as ln,O as cn,c2 as dn}from"./index-gctAQu2T.js";import{A as tt}from"./avatar-BpU54ct-.js";import{t as _t,b as mt}from"./Users03-D8RoJqiC.js";import{i as un}from"./SearchLg-Cecpe6x9.js";import{aj as mn,aa as fn,ak as ee,al as gn,a3 as hn,am as pn,n as ft,f as yn,e as bn,an as xn,c as Sn}from"./agent-icon-DsGBCBNv.js";import{s as wn}from"./XClose-DPfGLo7I.js";import{D as vn}from"./download-app-dialog-CNd8ka-x.js";import{l as At}from"./anchors-yqDzZN4K.js";import{a as jn,u as kn}from"./use-project-scope-Ch_4TfMQ.js";import{i as Tn}from"./source-system-tabs-CnEGUb4r.js";import{u as Pt,b as Nn}from"./use-panel-navigate-D2RT2tc_.js";import{i as ie}from"./CheckCircle-BNNyBNMK.js";import{i as gt}from"./Tool02-Darwb8nP.js";import{i as ot}from"./Monitor01-Bc6Zvq9B.js";import{i as ae}from"./Zap-ChgjHdxL.js";import{c as Ct,d as Et,b as It,D as Ot,h as _n,e as An}from"./dialog--Jkwvpx1.js";import{S as Pn,u as Cn,c as En,i as ht,o as In,a as On}from"./command-palette-store-BNo0UXiS.js";import{i as $n}from"./Share07-D8xQrAsX.js";import{s as pt}from"./Plus-kQ9d0PiA.js";import{a as Ln}from"./Settings02-BqKUeA5H.js";import{a as re,C as Me,f as Dn,d as Rn,b as zn,e as qn}from"./command-cJVGaRa3.js";import{I as Fn}from"./integration-icon-YYg8l_RW.js";import{P as Mn}from"./project-icon-Dk1HaDIZ.js";import{b as Bn,m as Kn}from"./use-mcp-client-CzGi1Gun.js";import{u as Hn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Un}from"./required-auth-layout-CraNNSBi.js";import{A as Gn}from"./autosend-u-W4xgi7.js";import{u as Jn,c as Vn,a as Wn,b as Yn}from"./thread-route-BsrvgyVU.js";import{b as Qn}from"./hooks-CxPd9b6i.js";import{c as Xn}from"./use-organization-settings-C-LQvPpq.js";import{u as Zn}from"./use-org-sso-CP_t4LLU.js";import{u as es}from"./use-org-notice-lWz1PPs-.js";function ts(t){const e=z.c(49),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let u;e[0]!==r||e[1]!==i?(u=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=u):u=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=k=>{Ke.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let v;e[7]!==u||e[8]!==m||e[9]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[7]=u,e[8]=m,e[9]=h,e[10]=v):v=e[10];const c=He(v),b=ns;let p;e[11]!==s||e[12]!==o?(p=s?n.jsx(tt,{url:s,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_t,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=p):p=e[13];let l;e[14]!==o||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let x;e[22]!==d?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=x):x=e[23];let S;e[24]!==f||e[25]!==x?(S=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=S):S=e[26];let y;e[27]!==c?(y=()=>c.mutate(),e[27]=c,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==o||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=c.isPending,e[30]=o,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(q,{onClick:y,disabled:c.isPending,children:w}),e[33]=c.isPending,e[34]=y,e[35]=w,e[36]=_):_=e[36];const P=c.isPending;let N;e[37]!==i?(N=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(q,{variant:"ghost",onClick:b,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==_||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=g):g=e[44];let T;return e[45]!==S||e[46]!==g||e[47]!==p?(T=n.jsxs(de,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function ns(){window.location.href="/"}function yt(t){const e=z.c(25),{orgSlug:o,orgName:r,reason:s}=t,a=J(),i=ss,u=s==="not-found",m=u?un:wt;let h;e[0]!==u||e[1]!==a?(h=a(u?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=u,e[1]=a,e[2]=h):h=e[2];const v=h;let c;e[3]!==u||e[4]!==r||e[5]!==o||e[6]!==a?(c=u?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??o}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=u,e[4]=r,e[5]=o,e[6]=a,e[7]=c):c=e[7];const b=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==b?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=f):f=e[13];let d;e[14]!==l||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=d):d=e[16];let x;e[17]!==a?(x=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=x):x=e[18];let S;e[19]!==x?(S=n.jsx(q,{onClick:i,children:x}),e[19]=x,e[20]=S):S=e[20];let y;return e[21]!==p||e[22]!==d||e[23]!==S?(y=n.jsxs(de,{children:[p,d,S]}),e[21]=p,e[22]=d,e[23]=S,e[24]=y):y=e[24],y}function ss(){window.location.href="/"}function os(t){const e=z.c(59),{invitationId:o,orgName:r,orgSlug:s,orgLogo:a}=t,i=J();let u;e[0]!==o?(u=async()=>{const O=await Fe.organization.acceptInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[0]=o,e[1]=u):u=e[1];let m;e[2]!==s?(m=()=>{Bt(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let h;e[4]!==i?(h=O=>{Ke.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let v;e[6]!==u||e[7]!==m||e[8]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[6]=u,e[7]=m,e[8]=h,e[9]=v):v=e[9];const c=He(v);let b;e[10]!==o?(b=async()=>{const O=await Fe.organization.rejectInvitation({invitationId:o});if(O.error)throw new Error(O.error.message);return O.data},e[10]=o,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ke.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=O=>{Ke.error(O instanceof Error?O.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==b||e[16]!==p||e[17]!==l?(f={mutationFn:b,onSuccess:p,onError:l},e[15]=b,e[16]=p,e[17]=l,e[18]=f):f=e[18];const d=He(f),x=c.isPending||d.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(tt,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(mn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=S):S=e[21];let y;e[22]!==r||e[23]!==i?(y=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=y):y=e[24];let w;e[25]!==y?(w=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[25]=y,e[26]=w):w=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let N;e[31]!==w||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[w,P]}),e[31]=w,e[32]=P,e[33]=N):N=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let g;e[36]!==c.isPending||e[37]!==i?(g=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=g):g=e[38];let T;e[39]!==x||e[40]!==j||e[41]!==g?(T=n.jsx(q,{onClick:j,disabled:x,children:g}),e[39]=x,e[40]=j,e[41]=g,e[42]=T):T=e[42];let k;e[43]!==d?(k=()=>d.mutate(),e[43]=d,e[44]=k):k=e[44];let A;e[45]!==d.isPending||e[46]!==i?(A=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==x||e[49]!==k||e[50]!==A?(E=n.jsx(q,{variant:"ghost",onClick:k,disabled:x,children:A}),e[48]=x,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==T||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,E]}),e[52]=T,e[53]=E,e[54]=C):C=e[54];let I;return e[55]!==N||e[56]!==C||e[57]!==S?(I=n.jsxs(de,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=I):I=e[58],I}function is(t){const e=z.c(23),{orgName:o,orgLogo:r}=t,s=J();let a;e[0]!==r||e[1]!==o?(a=r?n.jsx(tt,{url:r,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(fn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=o,e[2]=a):a=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let u;e[5]!==i?(u=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=u):u=e[6];let m;e[7]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let v;e[12]!==u||e[13]!==h?(v=n.jsxs("div",{className:"space-y-2",children:[u,h]}),e[12]=u,e[13]=h,e[14]=v):v=e[14];let c;e[15]!==s?(c=s("common.requestPendingScreen.goHome"),e[15]=s,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(q,{variant:"ghost",onClick:as,children:c}),e[17]=c,e[18]=b):b=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==b?(p=n.jsxs(de,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function as(){window.location.href="/"}function rs(t){const e=z.c(45),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let u;e[0]!==r?(u=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await T.json();if(!T.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=u):u=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ke.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let v;e[5]!==u||e[6]!==h?(v={mutationFn:u,onSuccess:m,onError:h},e[5]=u,e[6]=h,e[7]=v):v=e[7];const c=He(v);let b;e[8]!==s||e[9]!==o?(b=s?n.jsx(tt,{url:s,fallback:o.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_t,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=b):b=e[10];let p;e[11]!==o||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let x;e[21]!==l||e[22]!==d?(x=n.jsxs("div",{className:"space-y-2",children:[l,d]}),e[21]=l,e[22]=d,e[23]=x):x=e[23];let S;e[24]!==c?(S=()=>c.mutate(),e[24]=c,e[25]=S):S=e[25];let y;e[26]!==c.isPending||e[27]!==i?(y=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==S||e[31]!==y?(w=n.jsx(q,{onClick:S,disabled:c.isPending,children:y}),e[29]=c.isPending,e[30]=S,e[31]=y,e[32]=w):w=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(q,{variant:"ghost",onClick:ls,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==w||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,N]}),e[38]=w,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==x||e[42]!==j||e[43]!==b?(g=n.jsxs(de,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=z.c(7);let o;e[0]!==t?(o=Ge.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let s;return e[4]!==o||e[5]!==r?(s={queryKey:o,queryFn:r,refetchOnWindowFocus:!1},e[4]=o,e[5]=r,e[6]=s):s=e[6],vt(s)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Kt()?.org===t&&Ht();const o=localStorage.getItem(qe.lastOrgSlug())===t;if(o&&localStorage.removeItem(qe.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(yt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(yt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function $t(t){const e=z.c(42),{ariaLabel:o,dismissLabel:r,eyebrow:s,title:a,description:i,icon:u,children:m,footerLeading:h,actions:v,onDismiss:c,tone:b}=t,p=b===void 0?"neutral":b,l=h||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(wn,{size:14}),e[2]=d):d=e[2];let x;e[3]!==r||e[4]!==c?(x=n.jsx(q,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:d}),e[3]=r,e[4]=c,e[5]=x):x=e[5];const S=u&&"flex items-start gap-3",y=m&&"pb-3";let w;e[6]!==S||e[7]!==y?(w=it("p-4 pr-11",S,y),e[6]=S,e[7]=y,e[8]=w):w=e[8];let _;e[9]!==u?(_=u&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:u}),e[9]=u,e[10]=_):_=e[10];let P;e[11]!==s?(P=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=P):P=e[12];let N;e[13]!==a?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=N):N=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==P?(g=n.jsxs("div",{children:[P,N,j]}),e[17]=N,e[18]=j,e[19]=P,e[20]=g):g=e[20];let T;e[21]!==m?(T=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=T):T=e[22];let k;e[23]!==g||e[24]!==T?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,T]}),e[23]=g,e[24]=T,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==w||e[28]!==_?(A=n.jsxs("div",{className:w,children:[_,k]}),e[26]=k,e[27]=w,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==h||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:it("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=h,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==o||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,E]}),e[35]=o,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ms=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function fs(t){return ms.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function gs(t,e){return fs(e).map(o=>({element:At(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const hs=At("switcher"),ps=30;function Lt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function ys(t,e){return gs(t,e).filter(o=>typeof o.element=="string"&&Lt(o.element))}function bs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:r})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>r.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Be=!1},steps:e}}let Be=!1;async function xs(){return(await Ut(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function Ss(t,e){if(Be)return;Be=!0;let o=0;const r=()=>{if(!Lt(hs)&&o++<ps){requestAnimationFrame(r);return}const s=ys(t,e);if(s.length===0){Be=!1;return}xs().then(a=>{a(bs(t,s)).drive()}).catch(()=>{Be=!1})};r()}const ws=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:mt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ee,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:ot,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"native-app-linux-beta",date:"2026-08-20",eyebrow:"Now Available",title:"Studio for Linux is now in beta",bullets:[{icon:ot,title:"Native Linux desktop app",body:"Studio now ships as an AppImage for 64-bit x86 Linux, bringing the local desktop workflow to Linux."},{icon:ie,title:"Verified, no-root install",body:"The installer verifies the download, installs Studio to ~/.local/bin, and adds it to your application launcher without sudo."},{icon:ae,title:"Beta today, broader support next",body:"We're validating more distributions and desktop environments. Arm builds are not available yet, and your feedback will shape general availability."}],cta:{label:"Install Studio",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases/tag/native-v4.242.0"},{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:ae,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:ee,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:gn,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:ot,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ee,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ie,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:ae,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ee,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ie,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:ae,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ie,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ee,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:ae,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ee,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ie,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:ae,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ee,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ie,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:ae,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ee,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:gt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ie,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:mt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:ae,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ie,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ee,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:gt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ee,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:hn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Dt=ws,et="studio.release-feed.v1",rt=new Set;let le="",ce={},lt=!1;function vs(){if(lt)return le||"{}";try{return localStorage.getItem(et)??"{}"}catch{return le||"{}"}}function Rt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function bt(){const t=vs();return t!==le&&(le=t,ce=Rt(t)),ce}function js(t){rt.add(t);const e=o=>{if(!(o.key!==et&&o.key!==null)){try{const r=localStorage.getItem(et)??"{}",a={...Rt(r),...ce};ce=a,le=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{rt.delete(t),window.removeEventListener("storage",e)}}function ks(t){ce=t,le=JSON.stringify(t);try{localStorage.setItem(et,le),lt=!1}catch{lt=!0}rt.forEach(e=>e())}function Ts(){const t=z.c(7),e=X.useSyncExternalStore(js,bt,bt);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const r=o,s=Ns;let a;t[2]!==e?(a=Dt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let u;return t[4]!==r||t[5]!==i?(u={isSeen:r,markSeen:s,unseenCount:i},t[4]=r,t[5]=i,t[6]=u):u=t[6],u}function Ns(t){ce[t]||ks({...ce,[t]:{seenAt:new Date().toISOString()}})}const _s=720*60*60*1e3,As=10080*60*1e3;function Ps(t){const[e,o,r]=t.split("-").map(Number);return!e||!o||!r?new Date(t).getTime():new Date(e,o-1,r).getTime()}function Cs(t){const e=Dt[0];if(!e)return null;const o=Ps(e.date),r=t-o;return r<0||r>_s?null:e}function Es(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Is(t,e){const o=Es(t);return o===null?!1:e-o>=As}function Os(){const t=z.c(52),e=J(),o=jn(),r=Gt(),s=Pt(),a=!!o,i=r===oe.home&&!o;let u;t[0]!==s||t[1]!==a?(u=a&&!!s&&Tn(s),t[0]=s,t[1]=a,t[2]=u):u=t[2];const m=u,{data:h}=Fe.useSession(),{isSeen:v,markSeen:c}=Ts(),[b,p]=X.useState(!1);let l,f,d;if(t[3]!==v||t[4]!==h?.user?.createdAt){d=Symbol.for("react.early_return_sentinel");e:{const I=Date.now();if(l=Cs(I),!l){d=null;break e}if(!Is(h?.user?.createdAt,I)){d=null;break e}f=v(l.id)}t[3]=v,t[4]=h?.user?.createdAt,t[5]=l,t[6]=f,t[7]=d}else l=t[5],f=t[6],d=t[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;if(f)return null;let x;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(x=()=>{c(l.id),Ss(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=x):x=t[14];const S=x;let y;t[15]!==e?(y=e("announcements.release.ariaLabel"),t[15]=e,t[16]=y):y=t[16];let w;t[17]!==e?(w=e("announcements.release.dismiss"),t[17]=e,t[18]=w):w=t[18];const _=l.eyebrow,P=l.title;let N;t[19]!==l.id||t[20]!==c?(N=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=N):N=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let g;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==S?(g=l.cta?"href"in l.cta?n.jsx(q,{asChild:!0,size:"sm",onClick:()=>c(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):l.cta.action==="start-tour"?n.jsx(q,{size:"sm",onClick:S,children:l.cta.label}):n.jsx(q,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=S,t[31]=g):g=t[31];let T;t[32]!==l.bullets?(T=l.bullets.map($s),t[32]=l.bullets,t[33]=T):T=t[33];let k;t[34]!==T?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:T}),t[34]=T,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=I=>{p(I),I||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==b||t[40]!==A?(E=n.jsx(vn,{open:b,onOpenChange:A}),t[39]=b,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==g||t[45]!==k||t[46]!==E||t[47]!==y||t[48]!==w||t[49]!==N||t[50]!==j?(C=n.jsxs($t,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,onDismiss:N,footerLeading:j,actions:g,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=g,t[45]=k,t[46]=E,t[47]=y,t[48]=w,t[49]=N,t[50]=j,t[51]=C):C=t[51],C}function $s(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Ls(t){const e=z.c(11),{open:o,onOpenChange:r}=t,s=J();let a;e[0]!==s?(a=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(Ct,{children:n.jsx(Et,{children:a})}),e[2]=a,e[3]=i):i=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("div",{className:"flex flex-col gap-4",children:Pn.map(Ds)}),e[4]=u):u=e[4];let m;e[5]!==i?(m=n.jsxs(It,{className:"sm:max-w-md",children:[i,u]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==o||e[9]!==m?(h=n.jsx(Ot,{open:o,onOpenChange:r,children:m}),e[7]=r,e[8]=o,e[9]=m,e[10]=h):h=e[10],h}function Ds(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Rs)})]},t.label)}function Rs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(zs)})]},t.description)}function zs(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const xt=8;function qs(t){const{org:e}=ct(),o=Bn({connectionId:kt,orgId:e.id,orgSlug:e.slug}),{data:r}=Ue({queryKey:Ge.globalSearch(e.id,t,xt),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:xt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Fs(t){const e=z.c(192),{open:o,onOpenChange:r}=t,s=J(),a=jt(),{org:i}=ct(),{projects:u,hasProjects:m}=kn(),[h,v]=X.useState(""),c=X.useDeferredValue(h),b=qs(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(F,V)=>{at("command_palette_used",{kind:V}),F(),l()},e[2]=l,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=F=>{if(F.type==="connection"){if(!F.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:F.slug}});return}if(F.type==="task"){a({to:oe.tasks,params:{org:i.slug,taskKey:F.key??void 0}});return}const V=Tt(i.id).id;Jt(a,Vt({org:i.slug,agentId:F.virtual_mcp_id??V,superAgentId:V}),{search:()=>({thread:F.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let y;e[8]!==h?(y=[h],e[8]=h,e[9]=y):y=e[9];const w=y;let _,P,N,j,g,T,k,A,E,C,I,O,R;if(e[10]!==l||e[11]!==d||e[12]!==m||e[13]!==b||e[14]!==a||e[15]!==r||e[16]!==o||e[17]!==S||e[18]!==i.slug||e[19]!==u||e[20]!==w||e[21]!==s||e[22]!==h){const F=b.filter(Bs),V=b.filter(Ms);let te;e[36]!==i.slug?(te={org:i.slug},e[36]=i.slug,e[37]=te):te=e[37];const D=te;let Z;e[38]!==s?(Z=s("sidebar.navDestinations.home"),e[38]=s,e[39]=Z):Z=e[39];let W;e[40]===Symbol.for("react.memo_cache_sentinel")?(W=n.jsx(yn,{}),e[40]=W):W=e[40];let K;e[41]!==D||e[42]!==Z?(K={key:"home",label:Z,icon:W,to:oe.home,params:D},e[41]=D,e[42]=Z,e[43]=K):K=e[43];let Y;e[44]!==s?(Y=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=Y):Y=e[45];let ne;e[46]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(bn,{}),e[46]=ne):ne=e[46];let H;e[47]!==D||e[48]!==Y?(H={key:"reports",label:Y,icon:ne,to:oe.reports,params:D},e[47]=D,e[48]=Y,e[49]=H):H=e[49];let U;e[50]!==s?(U=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=U):U=e[51];let se;e[52]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(ft,{}),e[52]=se):se=e[52];let Q;e[53]!==i.slug?(Q={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=Q):Q=e[54];let $;e[55]!==U||e[56]!==Q?($={key:"tasks",label:U,icon:se,to:oe.tasks,params:Q},e[55]=U,e[56]=Q,e[57]=$):$=e[57];let M;e[58]!==s?(M=s("sidebar.navDestinations.library"),e[58]=s,e[59]=M):M=e[59];let Je;e[60]===Symbol.for("react.memo_cache_sentinel")?(Je=n.jsx($n,{}),e[60]=Je):Je=e[60];let ue;e[61]!==D||e[62]!==M?(ue={key:"library",label:M,icon:Je,to:oe.library,params:D},e[61]=D,e[62]=M,e[63]=ue):ue=e[63];let me;e[64]!==s?(me=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=me):me=e[65];let Ve;e[66]===Symbol.for("react.memo_cache_sentinel")?(Ve=n.jsx(xn,{}),e[66]=Ve):Ve=e[66];let fe;e[67]!==D||e[68]!==me?(fe={key:"discover",label:me,icon:Ve,to:oe.discover,params:D},e[67]=D,e[68]=me,e[69]=fe):fe=e[69];let We;e[70]!==K||e[71]!==H||e[72]!==$||e[73]!==ue||e[74]!==fe?(We=[K,H,$,ue,fe],e[70]=K,e[71]=H,e[72]=$,e[73]=ue,e[74]=fe,e[75]=We):We=e[75];const nt=We;P=Dn,j=o,e[76]!==l||e[77]!==r?(g=L=>L?r(!0):l(),e[76]=l,e[77]=r,e[78]=g):g=e[78],e[79]!==s?(T=s("commandPalette.title"),e[79]=s,e[80]=T):T=e[80],e[81]!==s?(k=s("commandPalette.description"),e[81]=s,e[82]=k):k=e[82];let ge;e[83]!==s?(ge=s("commandPalette.placeholder"),e[83]=s,e[84]=ge):ge=e[84],e[85]!==ge||e[86]!==h?(A=n.jsx(Rn,{placeholder:ge,value:h,onValueChange:v}),e[85]=ge,e[86]=h,e[87]=A):A=e[87],_=zn;let he;e[88]!==s?(he=s("commandPalette.empty"),e[88]=s,e[89]=he):he=e[89],e[90]!==he?(E=n.jsx(qn,{children:he}),e[90]=he,e[91]=E):E=e[91];let pe;e[92]!==s?(pe=s("commandPalette.goTo"),e[92]=s,e[93]=pe):pe=e[93];let ye;e[94]!==nt||e[95]!==d||e[96]!==a?(ye=nt.map(L=>n.jsxs(re,{onSelect:()=>d(()=>a({to:L.to,params:L.params}),"destination"),children:[L.icon,n.jsx("span",{children:L.label})]},L.key)),e[94]=nt,e[95]=d,e[96]=a,e[97]=ye):ye=e[97],e[98]!==pe||e[99]!==ye?(C=n.jsx(Me,{heading:pe,children:ye}),e[98]=pe,e[99]=ye,e[100]=C):C=e[100],e[101]!==d||e[102]!==m||e[103]!==a||e[104]!==i.slug||e[105]!==u||e[106]!==s?(I=m&&n.jsx(Me,{heading:s("commandPalette.projects"),children:u.map(L=>n.jsxs(re,{value:`project ${L.title}`,onSelect:()=>d(()=>a({to:oe.projects,params:{org:i.slug,agentId:L.id}}),"project"),children:[n.jsx(Mn,{icon:L.icon,name:L.title}),n.jsx("span",{children:L.title})]},L.id))}),e[101]=d,e[102]=m,e[103]=a,e[104]=i.slug,e[105]=u,e[106]=s,e[107]=I):I=e[107];let be;e[108]!==s?(be=s("commandPalette.actions"),e[108]=s,e[109]=be):be=e[109];let xe;e[110]!==s?(xe=s("commandPalette.newProject"),e[110]=s,e[111]=xe):xe=e[111];let Se;e[112]!==d||e[113]!==a||e[114]!==D?(Se=()=>d(()=>a({to:oe.home,params:D}),"new_project"),e[112]=d,e[113]=a,e[114]=D,e[115]=Se):Se=e[115];let Ye;e[116]===Symbol.for("react.memo_cache_sentinel")?(Ye=n.jsx(pt,{}),e[116]=Ye):Ye=e[116];let we;e[117]!==s?(we=s("commandPalette.newProject"),e[117]=s,e[118]=we):we=e[118];let ve;e[119]!==we?(ve=n.jsx("span",{children:we}),e[119]=we,e[120]=ve):ve=e[120];let je;e[121]!==xe||e[122]!==Se||e[123]!==ve?(je=n.jsxs(re,{value:xe,onSelect:Se,children:[Ye,ve]}),e[121]=xe,e[122]=Se,e[123]=ve,e[124]=je):je=e[124];let ke;e[125]!==s?(ke=s("commandPalette.inviteTeammate"),e[125]=s,e[126]=ke):ke=e[126];let Te;e[127]!==d||e[128]!==a||e[129]!==D?(Te=()=>d(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[127]=d,e[128]=a,e[129]=D,e[130]=Te):Te=e[130];let Qe;e[131]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Sn,{}),e[131]=Qe):Qe=e[131];let Ne;e[132]!==s?(Ne=s("commandPalette.inviteTeammate"),e[132]=s,e[133]=Ne):Ne=e[133];let _e;e[134]!==Ne?(_e=n.jsx("span",{children:Ne}),e[134]=Ne,e[135]=_e):_e=e[135];let Ae;e[136]!==ke||e[137]!==Te||e[138]!==_e?(Ae=n.jsxs(re,{value:ke,onSelect:Te,children:[Qe,_e]}),e[136]=ke,e[137]=Te,e[138]=_e,e[139]=Ae):Ae=e[139];let Pe;e[140]!==s?(Pe=s("commandPalette.addConnection"),e[140]=s,e[141]=Pe):Pe=e[141];let Ce;e[142]!==d||e[143]!==a||e[144]!==D?(Ce=()=>d(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[142]=d,e[143]=a,e[144]=D,e[145]=Ce):Ce=e[145];let Xe;e[146]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(pt,{}),e[146]=Xe):Xe=e[146];let Ee;e[147]!==s?(Ee=s("commandPalette.addConnection"),e[147]=s,e[148]=Ee):Ee=e[148];let Ie;e[149]!==Ee?(Ie=n.jsx("span",{children:Ee}),e[149]=Ee,e[150]=Ie):Ie=e[150];let Oe;e[151]!==Pe||e[152]!==Ce||e[153]!==Ie?(Oe=n.jsxs(re,{value:Pe,onSelect:Ce,children:[Xe,Ie]}),e[151]=Pe,e[152]=Ce,e[153]=Ie,e[154]=Oe):Oe=e[154];let $e;e[155]!==s?($e=s("commandPalette.settings"),e[155]=s,e[156]=$e):$e=e[156];let Le;e[157]!==d||e[158]!==a||e[159]!==D?(Le=()=>d(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[157]=d,e[158]=a,e[159]=D,e[160]=Le):Le=e[160];let Ze;e[161]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(Ln,{}),e[161]=Ze):Ze=e[161];let De;e[162]!==s?(De=s("commandPalette.settings"),e[162]=s,e[163]=De):De=e[163];let Re;e[164]!==De?(Re=n.jsx("span",{children:De}),e[164]=De,e[165]=Re):Re=e[165];let ze;e[166]!==$e||e[167]!==Le||e[168]!==Re?(ze=n.jsxs(re,{value:$e,onSelect:Le,children:[Ze,Re]}),e[166]=$e,e[167]=Le,e[168]=Re,e[169]=ze):ze=e[169],e[170]!==be||e[171]!==je||e[172]!==Ae||e[173]!==Oe||e[174]!==ze?(O=n.jsxs(Me,{heading:be,children:[je,Ae,Oe,ze]}),e[170]=be,e[171]=je,e[172]=Ae,e[173]=Oe,e[174]=ze,e[175]=O):O=e[175],R=F.length>0&&n.jsx(Me,{heading:s("commandPalette.connections"),children:F.map(L=>n.jsxs(re,{value:`${L.title} ${L.id}`,keywords:w,onSelect:()=>d(()=>S(L),"connection"),children:[n.jsx(Fn,{icon:L.icon,name:L.title,size:"2xs"}),n.jsx("span",{className:"truncate",children:L.title})]},`connection:${L.id}`))}),N=V.length>0&&n.jsx(Me,{heading:s("commandPalette.results"),children:V.map(L=>n.jsxs(re,{value:`${L.title} ${L.id}`,keywords:w,onSelect:()=>d(()=>S(L),L.type),children:[L.type==="thread"?n.jsx(pn,{}):n.jsx(ft,{}),n.jsx("span",{className:"truncate",children:L.title}),L.type==="task"&&L.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:L.key})]},`${L.type}:${L.id}`))}),e[10]=l,e[11]=d,e[12]=m,e[13]=b,e[14]=a,e[15]=r,e[16]=o,e[17]=S,e[18]=i.slug,e[19]=u,e[20]=w,e[21]=s,e[22]=h,e[23]=_,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=T,e[29]=k,e[30]=A,e[31]=E,e[32]=C,e[33]=I,e[34]=O,e[35]=R}else _=e[23],P=e[24],N=e[25],j=e[26],g=e[27],T=e[28],k=e[29],A=e[30],E=e[31],C=e[32],I=e[33],O=e[34],R=e[35];let B;e[176]!==_||e[177]!==N||e[178]!==E||e[179]!==C||e[180]!==I||e[181]!==O||e[182]!==R?(B=n.jsxs(_,{children:[E,C,I,O,R,N]}),e[176]=_,e[177]=N,e[178]=E,e[179]=C,e[180]=I,e[181]=O,e[182]=R,e[183]=B):B=e[183];let G;return e[184]!==P||e[185]!==j||e[186]!==g||e[187]!==T||e[188]!==k||e[189]!==A||e[190]!==B?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,B]}),e[184]=P,e[185]=j,e[186]=g,e[187]=T,e[188]=k,e[189]=A,e[190]=B,e[191]=G):G=e[191],G}function Ms(t){return t.type!=="connection"}function Bs(t){return t.type==="connection"}const Ks=300*1e3,Hs=2;function Us(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Gs(t,e){return t.count>=Hs&&t.version!==null&&t.version!==e}function Js(){const t=z.c(43),e=J(),o=Hn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:Ws},t[0]=r):r=t[0];const s=He(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ge.appVersionCheck(),queryFn:Vs,refetchInterval:Ks,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:u}=Ue(a),[m,h]=X.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,b]=X.useState(v);u!==m&&(h(u),b(B=>Us(B,i,"4.365.0")));const[p,l]=X.useState(null),f=o;let d;t[3]!==o||t[4]!==s?(d=()=>window.location.reload(),t[3]=o,t[4]=s,t[5]=d):d=t[5];const x=d,S="announcements.version.refresh";if(!Gs(c,p))return null;let y;t[6]!==e?(y=e("announcements.version.ariaLabel"),t[6]=e,t[7]=y):y=t[7];let w;t[8]!==e?(w=e("announcements.version.dismiss"),t[8]=e,t[9]=w):w=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const N="announcements.version.description";let j;t[14]!==e||t[15]!==N?(j=e(N),t[14]=e,t[15]=N,t[16]=j):j=t[16];let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(ut,{size:16}),t[17]=g):g=t[17];let T;t[18]!==c.version?(T=()=>l(c.version),t[18]=c.version,t[19]=T):T=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.365.0"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==S||t[23]!==e?(A=e(S),t[22]=S,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=it(E),t[25]=E,t[26]=C):C=t[26];let I;t[27]!==C?(I=n.jsx(ut,{size:14,className:C}),t[27]=C,t[28]=I):I=t[28];let O;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==I?(O=n.jsxs(q,{size:"sm",disabled:f,onClick:x,children:[A,I]}),t[29]=x,t[30]=f,t[31]=A,t[32]=I,t[33]=O):O=t[33];let R;return t[34]!==T||t[35]!==k||t[36]!==O||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(R=n.jsx($t,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:O}),t[34]=T,t[35]=k,t[36]=O,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=R):R=t[42],R}async function Vs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function Ws(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function Ys(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Qs=Date.parse("2026-07-21T00:00:00Z"),St=t=>Ys(qe.ptBrAnnouncementSeen(t));function Xs(){const t=z.c(35),e=J(),[o,r]=Wt(),{data:s,isPending:a}=Fe.useSession(),i=s?.user,u=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<Qs,v=Yt()==="pt-BR",c=!a&&!!u&&h&&v&&o.language==="en"&&!St(u).has(),[b,p]=X.useState(!1),[l,f]=X.useState(!1);!b&&!a&&(p(!0),c&&u&&(St(u).mark(),r(eo),f(!0),at("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=G=>{at("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=d):d=t[0];const x=d;let S;t[1]!==r?(S=()=>{r(Zs),x("switch-back")},t[1]=r,t[2]=S):S=t[2];const y=S;let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w=G=>!G&&x("dismiss"),t[3]=w):w=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let P;t[5]!==e?(P=e("announcements.ptBr.title"),t[5]=e,t[6]=P):P=t[6];let N;t[7]!==P?(N=n.jsx(Et,{children:P}),t[7]=P,t[8]=N):N=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let g;t[11]!==j?(g=n.jsx(_n,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(Ct,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=T):T=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let A;t[18]!==y||t[19]!==k?(A=n.jsx(q,{variant:"outline",onClick:y,children:k}),t[18]=y,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>x("ok"),t[21]=E):E=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let I;t[24]!==C?(I=n.jsx(q,{onClick:E,children:C}),t[24]=C,t[25]=I):I=t[25];let O;t[26]!==A||t[27]!==I?(O=n.jsxs(An,{children:[A,I]}),t[26]=A,t[27]=I,t[28]=O):O=t[28];let R;t[29]!==O||t[30]!==T?(R=n.jsxs(It,{className:"sm:max-w-md",children:[_,T,O]}),t[29]=O,t[30]=T,t[31]=R):R=t[31];let B;return t[32]!==l||t[33]!==R?(B=n.jsx(Ot,{open:l,onOpenChange:w,children:R}),t[32]=l,t[33]=R,t[34]=B):B=t[34],B}function Zs(t){return{...t,language:"en"}}function eo(t){return{...t,language:"pt-BR"}}function to(t){const e=Qt(t);return typeof e=="string"?e:void 0}function no(){return to("experiment-pipeline-check"),null}function so(t){const e=z.c(1),{activeOrg:o}=t;if(!o)return null;Xt(o.id,{name:o.name??void 0,slug:o.slug??void 0}),Zt();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(no,{}),e[0]=r):r=e[0],r}function oo(t){const{prev:e,virtualMcpId:o,decopilotId:r,savedLayout:s,opts:a,autosendValue:i}=t,u={mainpanel:void 0};o?u.virtualmcpid=o:e.virtualmcpid&&(u.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(o??m)!==m;let c,b;return a?.panel?b=a.panel:s?(b=s.tab,s.sidepanel!==void 0&&(c=s.sidepanel),s.mainpanel!==void 0&&(u.mainpanel=s.mainpanel)):!v&&e.tabId&&!en(e.tabId)&&(b=e.tabId),c!==void 0&&(u.sidepanel=c),a?.autosend&&(u.autosend=i),{tabId:b,search:u}}const zt="studio:thread-layout:v4",io=50;function qt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function ao(t,e,o,r=io){const s=t.filter(([a])=>a!==e);for(s.push([e,qt(o)]);s.length>r;)s.shift();return s}function dt(){try{const t=sessionStorage.getItem(zt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function Ft(t){try{sessionStorage.setItem(zt,JSON.stringify(t))}catch{}}function ro(t,e){t&&Ft(ao(dt(),t,e))}function lo(t){if(!t)return null;const e=dt().find(([o])=>o===t);return e?qt(e[1]):null}function ni(t){if(!t)return;const e=dt(),o=e.filter(([r])=>r!==t);o.length!==e.length&&Ft(o)}function Mt(t){return{queryKey:Ge.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function si(t){const e=z.c(10);let o;e[0]!==t?(o=Mt(t),e[0]=t,e[1]=o):o=e[1];const r=Ue(o);let s;e[2]!==r.data?.prompts?(s=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=s):s=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==s||e[8]!==a?(i={isLoading:r.isLoading,prompts:s,tiles:a},e[6]=r.isLoading,e[7]=s,e[8]=a,e[9]=i):i=e[9],i}function co(t){const e=z.c(31),{orgSlug:o,orgName:r,domain:s}=t,a=J();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const u=i,m=uo;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(wt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let v;e[3]!==a?(v=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=v):v=e[4];let c;e[5]!==v?(c=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[5]=v,e[6]=c):c=e[6];let b;e[7]!==s||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${a("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=r,e[9]=a,e[10]=b):b=e[10];let p;e[11]!==b?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[11]=b,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==u||e[19]!==f?(d=n.jsx(q,{onClick:u,children:f}),e[18]=u,e[19]=f,e[20]=d):d=e[20];let x;e[21]!==a?(x=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=x):x=e[22];let S;e[23]!==x?(S=n.jsx(q,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=S):S=e[24];let y;e[25]!==S||e[26]!==d?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,S]}),e[25]=S,e[26]=d,e[27]=y):y=e[27];let w;return e[28]!==y||e[29]!==l?(w=n.jsxs(de,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function uo(){window.location.href="/"}function mo(t){const e=z.c(27),{notice:o,orgSlug:r}=t,s=J();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(tn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let u;e[3]!==o.message?(u=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=u):u=e[4];let m;e[5]!==i||e[6]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[i,u]}),e[5]=i,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(h=o.ctaUrl&&o.ctaLabel?n.jsx(q,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==s?(c=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(q,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=b):b=e[15];let p;e[16]!==s?(p=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(q,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:p})}),e[18]=p,e[19]=l):l=e[19];let f;e[20]!==l||e[21]!==h||e[22]!==b?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,b,l]}),e[20]=l,e[21]=h,e[22]=b,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(de,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}const fo="/settings/infra-billing";function go(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(fo)}function ho(t){const e=z.c(8),{org:o,children:r}=t,a=Xn(o.id,o.slug)?.enabled_plugins??null;let i;e[0]!==o.id||e[1]!==o.name||e[2]!==a?(i={id:o.id,organizationId:o.id,slug:"_org",name:o.name,enabledPlugins:a,ui:null},e[0]=o.id,e[1]=o.name,e[2]=a,e[3]=i):i=e[3];const u=i;let m;return e[4]!==r||e[5]!==o||e[6]!==u?(m=n.jsx(dn,{org:o,project:u,children:r}),e[4]=r,e[5]=o,e[6]=u,e[7]=m):m=e[7],m}function po(){const t=jt(),e=Qn(),{org:o}=ct(),r=nn({strict:!1}),s=Pt(),{openPanel:a,closePanel:i}=Nn(),u=Jn(),m=Vn(),h=Wn(),v=Yn(),c=(f,d=!0)=>t({to:".",search:f,replace:d}),b=()=>c(f=>({...f,sidepanel:!0})),p=(f,d,x)=>{const S=!!m&&m===f;m&&!S&&ro(m,{tab:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:lo(f),w=Tt(o.id).id,_=oo({prev:{virtualmcpid:u,tabId:s},virtualMcpId:d,decopilotId:w,savedLayout:y,opts:x,autosendValue:Gn});return v(f,()=>_.search,{virtualMcpId:d,view:{tabId:_.tabId}})};return{openSidePanel:b,setTaskId:p,createNewTask:async(f,d,x)=>{const S=crypto.randomUUID(),y=f??h;try{await e?.create({id:S,virtual_mcp_id:y,...d?{branch:d}:{}})}catch{}p(S,y,x)},openTab:a,closeTab:i}}const yo=new Set(["/$org/","/$org/home"]);function bo(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:xo},t[0]=e):e=t[0],Nt(e)}function xo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&yo.has(e)}function So(){const t=z.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=sn(e)?.params.org,[s,a]=X.useState(!1),[i,u]=Cn(),m=on(),h=bo(),v=r??"";let c;t[1]!==v?(c=Mt(v),t[1]=v,t[2]=c):c=t[2];const b=!!r&&h;let p;t[3]!==c||t[4]!==b?(p={...c,enabled:b},t[3]=c,t[4]=b,t[5]=p):p=t[5],Ue(p);const{data:l}=Fe.useSession(),f=l?.user?.id;let d;t[6]!==r||t[7]!==f?(d=r&&f?an(f,r):null,t[6]=r,t[7]=f,t[8]=d):d=t[8];const x=d;let S,y;t[9]!==m?(S=()=>{const $=M=>{if(ht(M)&&M.code==="KeyK"){M.preventDefault(),In();return}if(M.key==="?"&&!On(M.target)){M.preventDefault(),a(!0);return}ht(M)&&M.code==="BracketLeft"&&m.history.canGoBack()&&(M.preventDefault(),m.history.back())};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},y=[m],t[9]=m,t[10]=S,t[11]=y):(S=t[10],y=t[11]),X.useEffect(S,y);let w;t[12]!==r?(w=Ge.activeOrganization(r),t[12]=r,t[13]=w):w=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:$}=await Fe.organization.getFullOrganization({query:{organizationSlug:r}}).finally(vo),M=st($);return $&&!M&&localStorage.setItem(qe.lastOrgSlug(),r),f&&$&&ln(f,r,$),$},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=x?x.data:void 0,N=x?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==w||t[20]!==_?(j={queryKey:w,queryFn:_,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=w,t[20]=_,t[21]=j):j=t[21];const{data:g}=vt(j),T=g?.id,k=g?.slug,{data:A}=Zn(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=es(k);let I;t[22]===Symbol.for("react.memo_cache_sentinel")?(I={select:wo},t[22]=I):I=t[22];const O=Nt(I),R=C?.severity==="block"&&!go(O),B=T??"",G=k??"";let F;t[23]!==B||t[24]!==G?(F=Kn({connectionId:kt,orgId:B,orgSlug:G}),t[23]=B,t[24]=G,t[25]=F):F=t[25];const V=!!T&&!!k;let te;if(t[26]!==F||t[27]!==V?(te={...F,enabled:V},t[26]=F,t[27]=V,t[28]=te):te=t[28],Ue(te),(!g||st(g)||E||R)&&En(),!g){let $;return t[29]!==r?($=n.jsx(us,{orgSlug:r}),t[29]=r,t[30]=$):$=t[30],$}if(st(g)){localStorage.getItem(qe.lastOrgSlug())===r&&localStorage.removeItem(qe.lastOrgSlug());let $;return t[31]!==g.name?($=n.jsx(rn,{orgName:g.name}),t[31]=g.name,t[32]=$):$=t[32],$}if(R&&C){let $;return t[33]!==g.slug||t[34]!==C?($=n.jsx(mo,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=$):$=t[35],$}if(E){let $;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?($=n.jsx(co,{orgId:g.id,orgSlug:g.slug,orgName:g.name,domain:A.domain}),t[36]=g.id,t[37]=g.name,t[38]=g.slug,t[39]=A.domain,t[40]=$):$=t[40],$}const Z=g.logo??null;let W;t[41]!==g||t[42]!==Z?(W={...g,logo:Z},t[41]=g,t[42]=Z,t[43]=W):W=t[43];let K;t[44]!==g?(K=n.jsx(so,{activeOrg:g}),t[44]=g,t[45]=K):K=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(cn,{}),t[46]=Y):Y=t[46];let ne;t[47]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Os,{}),n.jsx(Js,{})]}),t[47]=ne):ne=t[47];let H;t[48]!==i||t[49]!==u?(H=i&&n.jsx(Fs,{open:i,onOpenChange:u}),t[48]=i,t[49]=u,t[50]=H):H=t[50];let U;t[51]!==s?(U=n.jsx(Ls,{open:s,onOpenChange:a}),t[51]=s,t[52]=U):U=t[52];let se;t[53]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(Xs,{}),t[53]=se):se=t[53];let Q;return t[54]!==W||t[55]!==K||t[56]!==H||t[57]!==U?(Q=n.jsxs(ho,{org:W,children:[K,Y,ne,H,U,se]}),t[54]=W,t[55]=K,t[56]=H,t[57]=U,t[58]=Q):Q=t[58],Q}function wo(t){return t.location.pathname}function vo(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function jo(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Un,{children:n.jsx(So,{})}),t[0]=e):e=t[0],e}const oi=Object.freeze(Object.defineProperty({__proto__:null,default:jo,usePanelActions:po},Symbol.toStringTag,{value:"Module"}));export{si as a,ni as f,oi as s,po as u};
@@ -1 +0,0 @@
1
- import{c as E,j as s,r as K,as as u,l as M,B as T,ap as $}from"./index-gctAQu2T.js";import{b as R,D as _,d as q,i as A}from"./dialog--Jkwvpx1.js";import{i as G}from"./Zap-ChgjHdxL.js";import{a as H}from"./markdown-BV0XgGTq.js";import{F as J}from"./file-preview-BbFH5cdB.js";import{F as Q}from"./file-type-icon-DJQFeBpV.js";import{i as V,c as W,l as X}from"./use-org-fs-Cm8FYvYP.js";import{p as Y,b as c}from"./location-oTTXFrSF.js";import{p as Z}from"./skill-md-ChfVs4uF.js";function ee(n){const e=E.c(18),{skillPath:m,onClose:a,variant:t}=n,i=Y(m),{volume:r,dirPath:o}=i,P=V(),U=P(r??"",`${o}/SKILL.md`),d=W(U),D=X(r??"",o);let g;e[0]!==o?(g=c(o),e[0]=o,e[1]=g):g=e[1];const B=g;let j;e[2]!==d.data?(j=d.data?Z(d.data):null,e[2]=d.data,e[3]=j):j=e[3];const b=j,v=te;let N;e[4]===Symbol.for("react.memo_cache_sentinel")?(N=(l,h)=>v(l.path)?-1:v(h.path)?1:c(l.path).localeCompare(c(h.path)),e[4]=N):N=e[4];const L=(D.data??[]).filter(se).sort(N),[z,I]=K.useState(null),x=z===null?null:L.find(l=>l.path===z)??null,k=b?.name??B;let w;e[5]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:s.jsx(G,{size:18})}),e[5]=w):w=e[5];let f;e[6]!==k||e[7]!==t?(f=t==="dialog"?s.jsx(q,{className:"flex-1 truncate text-base font-medium text-foreground",children:k}):s.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:k}),e[6]=k,e[7]=t,e[8]=f):f=e[8];let p;e[9]!==a||e[10]!==t?(p=t==="dialog"?s.jsx(A,{asChild:!0,children:s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:s.jsx($,{size:16})})}):s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:a,children:s.jsx($,{size:16})}),e[9]=a,e[10]=t,e[11]=p):p=e[11];let y;e[12]!==f||e[13]!==p?(y=s.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[w,f,p]}),e[12]=f,e[13]=p,e[14]=y):y=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=C):C=e[15];const O="relative flex min-w-0 flex-1 flex-col overflow-y-auto",F=x?s.jsx(J,{file:{key:x.path,filename:c(x.path),size:x.size,downloadUrl:P(r??"",x.path)}}):d.isPending?s.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[s.jsx(u,{className:"h-4 w-1/3"}),s.jsx(u,{className:"h-3 w-full"}),s.jsx(u,{className:"h-3 w-5/6"}),s.jsx(u,{className:"h-3 w-2/3"})]}):d.isError||!b?s.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),s.jsx("p",{className:"text-base text-muted-foreground",children:b.description??"Claude Code skill"})]}),s.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:s.jsx(H,{id:`skill-preview-${m}`,text:b.body})})]});let S;return e[16]!==F?(S=s.jsx("div",{className:O,children:F}),e[16]=F,e[17]=S):S=e[17],s.jsxs(s.Fragment,{children:[y,s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[C,D.isPending?s.jsx(u,{className:"mx-2 h-4 w-24"}):L.map(l=>{const h=v(l.path)?x===null:z===l.path;return s.jsxs("button",{type:"button",onClick:()=>I(v(l.path)?null:l.path),className:M("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",h?"bg-background shadow-sm":"hover:bg-muted/60"),children:[s.jsx(Q,{filename:c(l.path),className:"h-6 w-5 shrink-0"}),s.jsx("span",{className:M("truncate text-sm",h?"text-foreground":"text-muted-foreground"),children:c(l.path)})]},l.path)})]}),S]})]})}function se(n){return n.kind==="file"}function te(n){return c(n)==="SKILL.md"}function xe(n){const e=E.c(8),{skillPath:m,onClose:a}=n;let t;e[0]!==a?(t=o=>{o||a()},e[0]=a,e[1]=t):t=e[1];let i;e[2]!==a||e[3]!==m?(i=s.jsx(R,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:s.jsx(ee,{skillPath:m,onClose:a,variant:"dialog"})}),e[2]=a,e[3]=m,e[4]=i):i=e[4];let r;return e[5]!==t||e[6]!==i?(r=s.jsx(_,{open:!0,onOpenChange:t,children:i}),e[5]=t,e[6]=i,e[7]=r):r=e[7],r}export{xe as S};
@@ -1 +0,0 @@
1
- import{b as te,I as se,n as oe,r as T,j as t,B as Q,P as L,as as ae,F as ce,t as w,c as ie,l as me,K as H,dZ as de}from"./index-gctAQu2T.js";import{i as pe}from"./DotsVertical-B8slOnrw.js";import{i as ue}from"./GitBranch01-Dr0NRbj6.js";import{a as ge}from"./Package-DTeqx5ul.js";import{s as fe}from"./Trash01-BB2ymX9J.js";import{i as he}from"./Upload01-BtBtAyal.js";import{i as le}from"./Zap-ChgjHdxL.js";import{S as xe}from"./search-input-CYERWjWv.js";import{c as je,D as ke,b as ve,a as ye}from"./dropdown-menu-4cRHTbic.js";import{A as Se,a as be,b as we,c as De,d as Ce,e as Ne,f as Pe,g as Ee}from"./alert-dialog-BdwUra4d.js";import{E as Z}from"./empty-state-DmTochCH.js";import{C as Ae}from"./collection-tabs-BZkkvpP_.js";import{F as Te}from"./folder-icon-BRLOuEpt.js";import{p as Me,h as Ie,q as Oe}from"./use-org-fs-Cm8FYvYP.js";import{H as J,d as ze}from"./location-oTTXFrSF.js";import{S as Fe}from"./skill-preview-D2lK4hU9.js";import{p as $e}from"./skill-md-ChfVs4uF.js";import"./SearchMd-hBr_biLL.js";import"./Check-BJaMheL7.js";import"./ChevronRight-2Ti1evDh.js";import"./badge-DJ5ezE5-.js";import"./Eye-B_BMkWWc.js";import"./dialog--Jkwvpx1.js";import"./markdown-BV0XgGTq.js";import"./Copy01-BrL9ZrVF.js";import"./Download01-Bl2-HJHJ.js";import"./ZoomOut-BAhVAzy1.js";import"./use-panel-navigate-D2RT2tc_.js";import"./thread-route-BsrvgyVU.js";import"./use-project-scope-Ch_4TfMQ.js";import"./use-virtual-mcp-BMRFgR9g.js";import"./use-mcp-client-CzGi1Gun.js";import"./auth-vfqjjrgv.js";import"./github-repo-C0igpkr9.js";import"./file-preview-BbFH5cdB.js";import"./utils-CdxSjBly.js";import"./File02-3fotvfyl.js";import"./Image01-DMAKgzzX.js";import"./editor-NTP5Xcj9.js";import"./file-type-icon-DJQFeBpV.js";const V=200,Re=new Set(["node_modules","__pycache__"]);function U(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return U(s).split("/").every(e=>!e.startsWith(".")&&!Re.has(e))}function _e(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function Be(s,e){const l=new Map;for(const r of s){const c=U(r).split("/");c.pop();const a=["skills",e,...c].join("/");l.set(a,[...l.get(a)??[],r])}return l}async function Ke(s,e){const r=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(r)throw r.reason}function qe(s,e){const l=$e(e),r=`skills/${s}`;return{id:`home/${r}`,name:l.name??s,description:l.description,source:"home",volume:J,path:r,sandboxPath:`org/${J}/${r}`}}const _="*";function B(s){return s.volume==="home"}function re(s,e){const l=s.indexOf(":");return l===-1?{label:e,glyph:le}:{label:s.slice(l+1),glyph:s.startsWith("repo:")?ue:ge}}function He(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:p}=se();let D;e[0]!==l.source||e[1]!==p.name?(D=re(l.source,p.name),e[0]=l.source,e[1]=p.name,e[2]=D):D=e[2];const{label:M,glyph:O}=D;let C;e[3]!==l?(C=B(l),e[3]=l,e[4]=C):C=e[4];const z=C,N=r?"opacity-60":"hover:bg-muted/50";let f;e[5]!==N?(f=me("relative transition-colors group overflow-hidden flex flex-col h-full",N),e[5]=N,e[6]=f):f=e[6];let m;e[7]!==l.name||e[8]!==c||e[9]!==r?(m=!r&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":l.name}),e[7]=l.name,e[8]=c,e[9]=r,e[10]=m):m=e[10];const P=z?"default":"system",F=!z;let h;e[11]!==O||e[12]!==P||e[13]!==F?(h=t.jsx(Te,{glyph:O,tone:P,readOnly:F,className:"size-8 shrink-0"}),e[11]=O,e[12]=P,e[13]=F,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==o?(x=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(je,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(pe,{size:16})})}),t.jsx(ve,{align:"end",children:t.jsxs(ye,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(fe,{size:16}),o("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=o,e[17]=x):x=e[17];let j;e[18]!==h||e[19]!==x?(j=t.jsxs("div",{className:"flex items-start justify-between",children:[h,x]}),e[18]=h,e[19]=x,e[20]=j):j=e[20];let b;e[21]!==l.name?(b=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:l.name}),e[21]=l.name,e[22]=b):b=e[22];let k;e[23]!==l.description||e[24]!==o?(k=l.description||o("settings.skills.noDescription"),e[23]=l.description,e[24]=o,e[25]=k):k=e[25];let d;e[26]!==k?(d=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=d):d=e[27];let v;e[28]!==b||e[29]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,d]}),e[28]=b,e[29]=d,e[30]=v):v=e[30];let u;e[31]!==j||e[32]!==v?(u=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=u):u=e[33];let y;e[34]!==M||e[35]!==r||e[36]!==o?(y=r?o("settings.skills.importing"):M,e[34]=M,e[35]=r,e[36]=o,e[37]=y):y=e[37];let g;e[38]!==y?(g=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y})})}),e[38]=y,e[39]=g):g=e[39];let S;e[40]!==u||e[41]!==g?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[u,g]}),e[40]=u,e[41]=g,e[42]=S):S=e[42];let I;return e[43]!==r||e[44]!==S||e[45]!==f||e[46]!==m?(I=t.jsxs(de,{"aria-busy":r,className:f,children:[m,S]}),e[43]=r,e[44]=S,e[45]=f,e[46]=m,e[47]=I):I=e[47],I}function ee(s){const e=ie.c(2),{children:l}=s;let r;return e[0]!==l?(r=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:l}),e[0]=l,e[1]=r):r=e[1],r}function Tt(){const s=te(),{org:e}=se(),l=Me(),{remove:r,upload:c}=Ie("home"),a=oe(),o=T.useRef(null),[p,D]=T.useState(""),[M,O]=T.useState(_),[C,z]=T.useState(!1),[N,f]=T.useState(null),[m,P]=T.useState(null),[F,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:H.slashSkills(e.id)}),a.invalidateQueries({queryKey:H.orgFsSkills(e.id)})},j=i=>a.setQueryData(H.slashSkills(e.id),n=>i(n??[]));async function b(i){const n=[...i??[]];if(o.current&&(o.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){w.error(s("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",R=n.filter(Le),W=R.find(A=>U(A)==="SKILL.md");if(!W){w.error(s("settings.skills.importMissingSkillMd"));return}if(R.length>V){w.error(s("settings.skills.importTooManyFiles",{count:String(R.length),max:String(V)}));return}const $=_e(q),X=`skills/${$}`;let Y=!1;z(!0);try{if(await Oe(e.slug,"home",X)){w.error(s("settings.skills.importSlugTaken",{slug:$}));return}Y=!0;const A=qe($,await W.text());j(ne=>[A,...ne]),h(A.id),await Ke(Be(R,$),c.mutateAsync),w.success(s("settings.skills.importSuccess",{name:$}))}catch(A){Y&&await r.mutateAsync(X).catch(()=>{}),w.error(A instanceof Error?A.message:s("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=p.toLowerCase(),d=(l.data??[]).filter(i=>i.name.toLowerCase().includes(k)||(i.description??"").toLowerCase().includes(k)).sort((i,n)=>Number(B(n))-Number(B(i))||i.name.localeCompare(n.name)),v=new Set((l.data??[]).map(i=>i.source)),u=new Map;for(const i of d)u.set(i.source,(u.get(i.source)??0)+1);const y=[{id:_,label:s("settings.skills.filterAll"),count:d.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:u.get(i)??0}))],g=v.has(M)?M:_,S=g===_?d:d.filter(i=>i.source===g),I=i=>f(ze(i.volume,i.path)),K=async()=>{if(!m)return;const{id:i,path:n}=m;P(null),j(E=>E.filter(q=>q.id!==i));try{await r.mutateAsync(n),w.success(s("settings.skills.deleteSuccess"))}catch(E){w.error(E instanceof Error?E.message:s("settings.skills.deleteError"))}finally{x()}},G=t.jsxs(Q,{size:"sm",disabled:C,onClick:()=>o.current?.click(),children:[t.jsx(he,{size:14}),s(C?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.Title,{children:s("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(xe,{value:p,onChange:D,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(D(""),i.target.blur())}}),G,t.jsx("input",{ref:o,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:i=>{b(i.target.files)}})]}),y.length>2&&t.jsx(Ae,{tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(i,n)=>t.jsx(ae,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(ce,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:s("settings.skills.errorDescription"),actions:t.jsx(Q,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:s("settings.skills.retry")})})}):S.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:s(p?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:p?s("settings.skills.noResultsDescription",{search:p}):s("settings.skills.emptyDescription"),actions:!p&&G})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:S.map(i=>{const n=i.id===F;return t.jsx(He,{entry:i,pending:n,onOpen:()=>I(i),onDelete:B(i)&&!n?()=>P(i):void 0},i.id)})})})]})})}),N&&t.jsx(Fe,{skillPath:N,onClose:()=>f(null)},N),t.jsx(Se,{open:m!==null,onOpenChange:i=>!i&&P(null),children:t.jsxs(be,{children:[t.jsxs(we,{children:[t.jsx(De,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(Ce,{children:s("settings.skills.deleteDialogDescription",{name:m?.name??""})})]}),t.jsxs(Ne,{children:[t.jsx(Pe,{children:s("settings.skills.cancel")}),t.jsx(Ee,{onClick:K,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.skills.deleteButton")})]})]})})]})}export{Tt as default};
@@ -1 +0,0 @@
1
- function r(e){return e!=="off"}function o(e){if(!e.hasSource)return[];const n=["site-editor"];return r(e.cmsMode)&&n.push("content"),e.runtime==="sandbox"&&n.push("code"),n}function t(e){return e==="site-editor"||e==="content"||e==="code"||e.startsWith("code:")}function s(e){return e.reportsOnly&&!e.onReportAgent&&t(e.tabId)}export{r as a,t as i,o as r,s};
@@ -1 +0,0 @@
1
- import{b as B,I as L,r as v,j as e,P as x,fa as k,eg as y,eh as E,ei as a,fH as D,B as m,o as C,t as c,c as z}from"./index-gctAQu2T.js";import{D as T}from"./domain-settings-Dh029s1M.js";import{A as O,a as R,b as F,c as q,e as M,f as U,g as H}from"./alert-dialog-BdwUra4d.js";import{I as d}from"./input-eBmoU-9D.js";import{S as $}from"./switch-DADMizS1.js";import{a as G,b as J,c as K,d as Q}from"./use-org-sso-CP_t4LLU.js";import{s as V}from"./Trash01-BB2ymX9J.js";import{R as W}from"./require-capability-CoB1D-Ih.js";import"./badge-DJ5ezE5-.js";import"./select-C9ZnmbzX.js";import"./Check-BJaMheL7.js";import"./ChevronUp-Cp-tcsrs.js";import"./access-gate-aVhmxNUP.js";import"./capability-load-error-CdMFNpdR.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:I}=G(o.id,o.slug),h=J(o.id,o.slug),S=K(o.id,o.slug),b=Q(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[P,j]=v.useState(!1),u=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!u&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(u?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Body,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),I?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx($,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&u?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:P,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(F,{children:e.jsx(q,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(M,{children:[e.jsx(U,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx(H,{onClick:w,disabled:S.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function ue(){const s=z.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{ue as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CRM-FBei.js","assets/index-gctAQu2T.js","assets/index-DJADaZ4J.css","assets/Tool02-Darwb8nP.js","assets/CheckCircle-BNNyBNMK.js","assets/Settings02-BqKUeA5H.js","assets/use-mcp-client-CzGi1Gun.js","assets/auth-vfqjjrgv.js","assets/useInfiniteQuery-DOeboQGx.js","assets/infiniteQueryObserver-Da0v0sXC.js","assets/badge-DJ5ezE5-.js","assets/input-eBmoU-9D.js","assets/dropdown-menu-4cRHTbic.js","assets/Check-BJaMheL7.js","assets/ChevronRight-2Ti1evDh.js","assets/DotsVertical-B8slOnrw.js","assets/table-aIDGrvqv.js","assets/toggle-group-CHZjV-1n.js","assets/use-view-mode-CUARubnx.js","assets/Globe01-DMnQmvOn.js","assets/SearchMd-hBr_biLL.js","assets/dialog--Jkwvpx1.js","assets/AlertCircle-bl0yU7gy.js","assets/Download01-Bl2-HJHJ.js","assets/Upload01-BtBtAyal.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-BdwUra4d.js","assets/Trash01-BB2ymX9J.js","assets/label-DGkzLfNU.js","assets/select-C9ZnmbzX.js","assets/ChevronUp-Cp-tcsrs.js","assets/switch-DADMizS1.js","assets/textarea-6VvdKhvF.js","assets/ArrowLeft-CpbUCYpB.js","assets/ArrowRight-CkVUmxaa.js","assets/Link01-CKw3sRrv.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-DwVdLA7e.js","assets/Eye-B_BMkWWc.js","assets/LinkExternal01-OjBTsG9L.js","assets/XCircle-Dvf0BUKb.js","assets/use-infinite-scroll-DnRzNQQc.js","assets/use-copy-B4PUMZjo.js","assets/Copy01-BrL9ZrVF.js","assets/Key01-CVfJV98q.js","assets/Plus-kQ9d0PiA.js","assets/mcp-oauth-i7PCjbNf.js","assets/Play-BPdpqeiE.js"])))=>i.map(i=>d[i]);
2
- import{c as n,d as c,f as m,j as t,h as f,r as l,an as p}from"./index-gctAQu2T.js";import{R as u}from"./require-capability-CoB1D-Ih.js";import"./access-gate-aVhmxNUP.js";import"./capability-load-error-CdMFNpdR.js";const g=l.lazy(()=>p(()=>import("./registry-layout-CRM-FBei.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
@@ -1 +0,0 @@
1
- import{r as c,j as i,aJ as C,aN as y,aM as T,aP as I,bE as M,bP as H,aL as z,c as A,l as g}from"./index-gctAQu2T.js";var m="Switch",[L]=z(m),[U,q]=L(m),P=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,j]=T({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(U,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":N(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{j(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});P.displayName=m;var E="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=q(E,t);return i.jsx(C.span,{"data-state":N(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=E;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function N(r){return r?"checked":"unchecked"}var $=P,D=R;function J(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{J as S};
@@ -1 +0,0 @@
1
- import{c as se,j as s,fC as ye,b as ue,r as ae,B as te,l as je,t as ce,as as Re}from"./index-gctAQu2T.js";import{i as ge}from"./GitBranch01-Dr0NRbj6.js";import{s as xe}from"./Plus-kQ9d0PiA.js";import{c as be,d as ve,b as Se,f as De,g as Ne,e as Ce,a as _e,A as Pe}from"./alert-dialog-BdwUra4d.js";import{d as Ae,h as ke,c as we,e as ze,b as Ee,D as Oe}from"./dialog--Jkwvpx1.js";import{I as Ie}from"./input-eBmoU-9D.js";import{u as $e,G as Fe,R as Te}from"./repository-picker-DC97O6OK.js";import{a as Ge,d as Be,h as He,t as qe}from"./cards-BfP1wflC.js";import{R as Le}from"./require-capability-CoB1D-Ih.js";import"./ArrowLeft-CpbUCYpB.js";import"./ChevronRight-2Ti1evDh.js";import"./LinkExternal01-OjBTsG9L.js";import"./label-DGkzLfNU.js";import"./github-icon-cJDFDEm7.js";import"./useInfiniteQuery-DOeboQGx.js";import"./infiniteQueryObserver-Da0v0sXC.js";import"./avatar-BpU54ct-.js";import"./User01-CtDIPHIF.js";import"./collection-search-Bi-DttH4.js";import"./SearchMd-hBr_biLL.js";import"./use-debounced-value-BHZw1Wtv.js";import"./use-org-fs-Cm8FYvYP.js";import"./DotsVertical-B8slOnrw.js";import"./Download01-Bl2-HJHJ.js";import"./Share07-D8xQrAsX.js";import"./Globe01-DMnQmvOn.js";import"./Key01-CVfJV98q.js";import"./Palette-CiXH5EXK.js";import"./Trash01-BB2ymX9J.js";import"./Zap-ChgjHdxL.js";import"./dropdown-menu-4cRHTbic.js";import"./Check-BJaMheL7.js";import"./file-type-icon-DJQFeBpV.js";import"./folder-icon-BRLOuEpt.js";import"./Eye-B_BMkWWc.js";import"./skill-md-ChfVs4uF.js";import"./access-gate-aVhmxNUP.js";import"./capability-load-error-CdMFNpdR.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:qe(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=se.c(38),{config:l,onRemove:i}=e,o=ue();let u;t[0]!==l||t[1]!==o?(u=Je(l,o),t[0]=l,t[1]=o,t[2]=u):u=t[2];const d=u,r=$e();let f;t[3]!==l.repositoryId||t[4]!==r.data?(f=r.data?.find(_=>_.id===l.repositoryId),t[3]=l.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?s.jsx(Fe,{provider:n.provider,size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n,t[7]=g):g=t[7];const c=n?.path??`${l.repoOwner}/${l.repoName}`;let m;t[8]!==c?(m=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=m):m=t[9];let p;t[10]!==l.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[10]=l.ref,t[11]=p):p=t[11];let S;t[12]!==m||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[m,p]}),t[12]=m,t[13]=p,t[14]=S):S=t[14];const C=d.error?"text-destructive":"text-muted-foreground";let D;t[15]!==C?(D=je("text-xs mt-0.5 truncate",C),t[15]=C,t[16]=D):D=t[16];let R;t[17]!==l.volume||t[18]!==o?(R=o("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[17]=l.volume,t[18]=o,t[19]=R):R=t[19];let b;t[20]!==d.label||t[21]!==R||t[22]!==D?(b=s.jsxs("p",{className:D,children:[R," ·"," ",d.label]}),t[20]=d.label,t[21]=R,t[22]=D,t[23]=b):b=t[23];let x;t[24]!==b||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,b]}),t[24]=b,t[25]=S,t[26]=x):x=t[26];let h;t[27]!==x||t[28]!==g?(h=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=h):h=t[29];let y;t[30]!==o?(y=o("settings.syncedRepos.remove"),t[30]=o,t[31]=y):y=t[31];let j;t[32]!==i||t[33]!==y?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:i,children:y}),t[32]=i,t[33]=y,t[34]=j):j=t[34];let N;return t[35]!==h||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,j]}),t[35]=h,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:l}=e,i=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let d;t[3]!==u?(d=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=d):d=t[4];let r;t[5]!==i?(r=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==d||t[10]!==f?(n=s.jsxs("div",{children:[d,f]}),t[9]=d,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==i?(c=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=c):c=t[14];let m;t[15]!==l||t[16]!==c?(m=s.jsxs(te,{onClick:l,size:"sm",className:"mt-2",children:[g,c]}),t[15]=l,t[16]=c,t[17]=m):m=t[17];let p;return t[18]!==n||t[19]!==m?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,m]}),t[18]=n,t[19]=m,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),l=Ge(),i=Be(),o=He(),[u,d]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,m]=ae.useState(null);let p;e[0]!==i||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||i.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let C;e[5]!==c||e[6]!==o||e[7]!==t?(C=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>m(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=C):C=e[8];const D=C;if(l.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Re,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let R;e[10]!==l.data?(R=l.data??[],e[10]=l.data,e[11]=R):R=e[11];const b=R;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=h):h=e[15];let y;e[16]!==b||e[17]!==t?(y=b.length===0?s.jsx(Me,{onAdd:()=>d(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>d(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:b.map(a=>s.jsx(Ke,{config:a,onRemove:()=>m(a)},a.id))})]}),e[16]=b,e[17]=t,e[18]=y):y=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;d(!1),f(v),g(Ve(v.path.split("/").at(-1)??v.path))},e[21]=N):N=e[21];let _;e[22]!==u||e[23]!==j?(_=s.jsx(Te,{open:u,onOpenChange:d,title:j,onPicked:N}),e[22]=u,e[23]=j,e[24]=_):_=e[24];const me=r!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>{a||f(null)},e[25]=ie):ie=e[25];let P;e[26]!==t?(P=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=P):P=e[27];let A;e[28]!==P?(A=s.jsx(Ae,{children:P}),e[28]=P,e[29]=A):A=e[29];const de=r?r.path:"";let k;e[30]!==t||e[31]!==de?(k=t("settings.syncedRepos.nameDialogDescription",{repo:de}),e[30]=t,e[31]=de,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ke,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(we,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=a=>g(a.target.value),e[38]=le):le=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(Ie,{value:n,onChange:le,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const he=i.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==i.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:he,children:I}),e[47]=i.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==i.isPending||e[51]!==n?(F=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==i.isPending||e[54]!==t?(T=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=T):T=e[55];let G;e[56]!==S||e[57]!==F||e[58]!==T?(G=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=G):G=e[59];let B;e[60]!==$||e[61]!==G?(B=s.jsxs(ze,{children:[$,G]}),e[60]=$,e[61]=G,e[62]=B):B=e[62];let H;e[63]!==z||e[64]!==O||e[65]!==B?(H=s.jsxs(Ee,{className:"sm:max-w-sm",children:[z,O,B]}),e[63]=z,e[64]=O,e[65]=B,e[66]=H):H=e[66];let q;e[67]!==H||e[68]!==me?(q=s.jsx(Oe,{open:me,onOpenChange:ie,children:H}),e[67]=H,e[68]=me,e[69]=q):q=e[69];const fe=c!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=a=>{a||m(null)},e[70]=oe):oe=e[70];const pe=c?.volume??"";let L;e[71]!==t||e[72]!==pe?(L=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=L):L=e[73];let V;e[74]!==L?(V=s.jsx(be,{children:L}),e[74]=L,e[75]=V):V=e[75];let J;e[76]!==t?(J=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=J):J=e[77];let K;e[78]!==J?(K=s.jsx(ve,{children:J}),e[78]=J,e[79]=K):K=e[79];let M;e[80]!==V||e[81]!==K?(M=s.jsxs(Se,{children:[V,K]}),e[80]=V,e[81]=K,e[82]=M):M=e[82];let Q;e[83]!==t?(Q=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=Q):Q=e[84];let U;e[85]!==Q?(U=s.jsx(De,{children:Q}),e[85]=Q,e[86]=U):U=e[86];let W;e[87]!==t?(W=t("settings.syncedRepos.remove"),e[87]=t,e[88]=W):W=e[88];let X;e[89]!==D||e[90]!==W?(X=s.jsx(Ne,{onClick:D,children:W}),e[89]=D,e[90]=W,e[91]=X):X=e[91];let Y;e[92]!==U||e[93]!==X?(Y=s.jsxs(Ce,{children:[U,X]}),e[92]=U,e[93]=X,e[94]=Y):Y=e[94];let Z;e[95]!==M||e[96]!==Y?(Z=s.jsxs(_e,{children:[M,Y]}),e[95]=M,e[96]=Y,e[97]=Z):Z=e[97];let ee;e[98]!==fe||e[99]!==Z?(ee=s.jsx(Pe,{open:fe,onOpenChange:oe,children:Z}),e[98]=fe,e[99]=Z,e[100]=ee):ee=e[100];let re;return e[101]!==q||e[102]!==h||e[103]!==ee||e[104]!==y||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[h,y,_,q,ee]}),e[101]=q,e[102]=h,e[103]=ee,e[104]=y,e[105]=_,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ye,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function Ot(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{Ot as default};
@@ -1 +0,0 @@
1
- import{dV as ft,c as z,l as te,j as o,dW as mt,r as G,I as Se,ac as Ye,m as gt,n as Ve,b as ne,e as ie,K as ce,o as pt,t as ye,aB as ht,B as Ke,ap as xt,a6 as kt,a7 as jt,a9 as yt}from"./index-gctAQu2T.js";import{a as bt,C as Fe,c as Nt,d as Ct,S as Ne}from"./task-board-CazuPR-U.js";import{t as Bt}from"./decopilot-sse-pool-czpSFI9L.js";import{u as vt}from"./use-decopilot-events-V4xtyk7c.js";import{A as $e}from"./avatar-BpU54ct-.js";import{d as St,b as Ft,f as _t,g as Tt,a as Dt,D as Et}from"./drawer-DsG6Si3V.js";import{d as xe,D as He,b as We,e as Je,c as Xe}from"./dropdown-menu-4cRHTbic.js";import{a as _e,b as Te,P as De}from"./popover-BfKN_4aI.js";import{C as ue,d as Ee,e as we,a as re,b as Ae,c as Re}from"./command-cJVGaRa3.js";import{ar as wt,as as At,at as Le,au as Rt,t as It,av as Kt,aw as $t,ax as Lt,z as Ot,ay as Pt,C as be,x as Mt,k as zt}from"./agent-icon-DsGBCBNv.js";import{i as Ze}from"./Check-BJaMheL7.js";import{t as fe}from"./ChevronUp-Cp-tcsrs.js";import{i as et}from"./Tool02-Darwb8nP.js";import{s as Ut}from"./TrendUp01-PJuAXI74.js";import{a as Qt}from"./Settings02-BqKUeA5H.js";import{s as Oe}from"./User01-CtDIPHIF.js";import{G as Gt}from"./github-icon-cJDFDEm7.js";import{P as qt}from"./project-icon-Dk1HaDIZ.js";import{g as Pe}from"./get-initials-D-f_fDFw.js";import{r as Yt,p as Vt}from"./github-repo-C0igpkr9.js";import{i as Ht}from"./AlertCircle-bl0yU7gy.js";import{i as Wt}from"./CheckCircle-BNNyBNMK.js";import{a as tt}from"./DotsVertical-B8slOnrw.js";import{s as Jt}from"./Eye-B_BMkWWc.js";import{e as Xt}from"./UserSquare-BflxhZ_l.js";import{i as Zt}from"./Shield01-Dav77ssu.js";const es=ft("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),ts=4,ss="TASK";function ls(t){return t.replace(/[^a-zA-Z]/g,"").toUpperCase().slice(0,ts)||ss}function ns(t,e){return e==null?null:`${ls(t)}-${String(e).padStart(2,"0")}`}const rs=/^(?:[a-z]{1,8}-)?0*(\d+)$/i;function as(t){const e=rs.exec(t.trim())?.[1];return e===void 0?null:Number(e)}function Me(t){const e=z.c(8),{size:s,className:n}=t,a=s===void 0?16:s;let r;e[0]!==a?(r={width:a,height:a},e[0]=a,e[1]=r):r=e[1];let l;e[2]!==n?(l=te("shrink-0 rounded-full object-cover",n),e[2]=n,e[3]=l):l=e[3];let d;return e[4]!==a||e[5]!==r||e[6]!==l?(d=o.jsx("img",{src:mt,alt:"Super Agent",width:a,height:a,style:r,className:l}),e[4]=a,e[5]=r,e[6]=l,e[7]=d):d=e[7],d}const ze=()=>0;function os(t){const{orgSlug:e,enabled:s=!0,onUpdate:n,onDelete:a,onResync:r}=t,l=G.useRef(n);l.current=n;const d=G.useRef(a);d.current=a;const u=G.useRef(r);u.current=r;const c=G.useRef(null),i=G.useRef(s),f=G.useRef(e);(!c.current||i.current!==s||f.current!==e)&&(i.current=s,f.current=e,c.current=m=>{if(!s||!e)return()=>{};const p=h=>{let x;try{x=JSON.parse(h.data)}catch{return}x.data&&(h.type===bt?d.current?.(x.data.id):l.current(x.data)),m()};return Bt.subscribe(e,p,()=>u.current?.())}),G.useSyncExternalStore(c.current,ze,ze)}function is(t,e){return{queryKey:ce.taskBoardItems(t),refetchInterval:6e4,queryFn:async()=>{const{items:s}=await e.call("TASK_BOARD_ITEM_LIST",{});return{items:s}}}}function cs(){const t=z.c(21),{org:e,locator:s}=Se(),n=Ve();let a;t[0]!==s?(a=ce.taskBoardItems(s),t[0]=s,t[1]=a):a=t[1];const r=a;let l;t[2]!==s||t[3]!==n||t[4]!==r?(l=g=>{n.cancelQueries({queryKey:r}),n.setQueryData(r,m=>m&&{...m,items:m.items.some(p=>p.id===g.id)?m.items.map(p=>p.id===g.id?g:p):[g,...m.items]}),n.invalidateQueries({queryKey:ce.taskBoardActivity(s,g.id)})},t[2]=s,t[3]=n,t[4]=r,t[5]=l):l=t[5];let d,u;t[6]!==n||t[7]!==r?(d=()=>{n.invalidateQueries({queryKey:r})},u=g=>{n.cancelQueries({queryKey:r}),n.setQueryData(r,m=>m&&{...m,items:m.items.filter(p=>p.id!==g)})},t[6]=n,t[7]=r,t[8]=d,t[9]=u):(d=t[8],u=t[9]);let c;t[10]!==e.slug||t[11]!==l||t[12]!==d||t[13]!==u?(c={orgSlug:e.slug,onUpdate:l,onResync:d,onDelete:u},t[10]=e.slug,t[11]=l,t[12]=d,t[13]=u,t[14]=c):c=t[14],os(c);let i;t[15]!==n||t[16]!==r?(i=g=>{const m=g.subject,p=g.data.status;n.cancelQueries({queryKey:r}),n.setQueryData(r,h=>h&&{...h,items:h.items.map(x=>x.threads.some(k=>k.threadId===m)?{...x,threads:x.threads.map(k=>k.threadId===m?{...k,status:p}:k)}:x)})},t[15]=n,t[16]=r,t[17]=i):i=t[17];let f;t[18]!==e.slug||t[19]!==i?(f={orgSlug:e.slug,onTaskStatus:i},t[18]=e.slug,t[19]=i,t[20]=f):f=t[20],vt(f)}function gl(){const t=z.c(9),{locator:e}=Se(),s=Ye();let n;t[0]!==e||t[1]!==s?(n=is(e,s),t[0]=e,t[1]=s,t[2]=n):n=t[2];const a=gt(n);cs();let r;t[3]!==a.data?.items?(r=a.data?.items??[],t[3]=a.data?.items,t[4]=r):r=t[4];let l;return t[5]!==a.error||t[6]!==a.isLoading||t[7]!==r?(l={items:r,isLoading:a.isLoading,error:a.error},t[5]=a.error,t[6]=a.isLoading,t[7]=r,t[8]=l):l=t[8],l}function pl(){const t=z.c(70),{org:e,locator:s}=Se(),n=Ye(),a=Ve(),r=ne();let l;t[0]!==s?(l=ce.taskBoardItems(s),t[0]=s,t[1]=l):l=t[1];const d=l;let u;t[2]!==a||t[3]!==d?(u=()=>a.invalidateQueries({queryKey:d}),t[2]=a,t[3]=d,t[4]=u):u=t[4];const c=u;let i;t[5]!==n?(i=_=>n.call("TASK_BOARD_ITEM_CREATE",_),t[5]=n,t[6]=i):i=t[6];let f;t[7]!==c||t[8]!==i?(f={mutationFn:i,onSuccess:c},t[7]=c,t[8]=i,t[9]=f):f=t[9];const g=ie(f);let m;t[10]!==n?(m=_=>n.call("TASK_BOARD_ITEM_UPDATE",_),t[10]=n,t[11]=m):m=t[11];let p;t[12]!==a||t[13]!==d?(p=async _=>{await a.cancelQueries({queryKey:d});const O=a.getQueryData(d);return a.setQueryData(d,D=>D&&{...D,items:D.items.map(Q=>Q.id===_.id?{...Q,..._}:Q)}),{previous:O}},t[12]=a,t[13]=d,t[14]=p):p=t[14];let h;t[15]!==e?(h=(_,O)=>{O.status==="done"&&pt("task_marked_done",{organization_id:e.id,task_board_item_id:O.id})},t[15]=e,t[16]=h):h=t[16];let x;t[17]!==a||t[18]!==d?(x=(_,O,D)=>{D?.previous&&a.setQueryData(d,D.previous)},t[17]=a,t[18]=d,t[19]=x):x=t[19];let k;t[20]!==c||t[21]!==s||t[22]!==a?(k=(_,O,D)=>{c(),a.invalidateQueries({queryKey:ce.taskBoardActivity(s,D.id)})},t[20]=c,t[21]=s,t[22]=a,t[23]=k):k=t[23];let C;t[24]!==m||t[25]!==p||t[26]!==h||t[27]!==x||t[28]!==k?(C={mutationFn:m,onMutate:p,onSuccess:h,onError:x,onSettled:k},t[24]=m,t[25]=p,t[26]=h,t[27]=x,t[28]=k,t[29]=C):C=t[29];const b=ie(C);let N;t[30]!==n?(N=_=>n.call("TASK_BOARD_ITEM_DELETE",{id:_}),t[30]=n,t[31]=N):N=t[31];let y;t[32]!==c||t[33]!==r?(y=_=>{ye.error(_ instanceof Error&&_.message?_.message:r("taskBoard.taskBoard.deleteError")),c()},t[32]=c,t[33]=r,t[34]=y):y=t[34];let j;t[35]!==c||t[36]!==N||t[37]!==y?(j={mutationFn:N,onSuccess:c,onError:y},t[35]=c,t[36]=N,t[37]=y,t[38]=j):j=t[38];const B=ie(j);let v;t[39]!==n?(v=async _=>{const O=await Promise.allSettled(_.map(D=>n.call("TASK_BOARD_ITEM_DELETE",{id:D})));return{total:_.length,failed:O.filter(us).length}},t[39]=n,t[40]=v):v=t[40];let S,F;t[41]!==r?(S=_=>{const{total:O,failed:D}=_;D!==0&&ye.error(r("taskBoard.taskBoard.deleteBulkError",{failed:String(D),total:String(O)}))},F=()=>ye.error(r("taskBoard.taskBoard.deleteError")),t[41]=r,t[42]=S,t[43]=F):(S=t[42],F=t[43]);let T;t[44]!==c||t[45]!==v||t[46]!==S||t[47]!==F?(T={mutationFn:v,onSuccess:S,onError:F,onSettled:c},t[44]=c,t[45]=v,t[46]=S,t[47]=F,t[48]=T):T=t[48];const $=ie(T);let R;t[49]!==n?(R=_=>n.call("TASK_BOARD_ITEM_UPDATE",_),t[49]=n,t[50]=R):R=t[50];let L;t[51]!==c||t[52]!==R?(L={mutationFn:R,onSuccess:c},t[51]=c,t[52]=R,t[53]=L):L=t[53];const I=ie(L);let P;t[54]!==n?(P=_=>n.call("TASK_BOARD_ITEM_RERUN",_),t[54]=n,t[55]=P):P=t[55];let w;t[56]!==c||t[57]!==s||t[58]!==a?(w=(_,O,D)=>{c(),a.invalidateQueries({queryKey:ce.taskBoardActivity(s,D.id)})},t[56]=c,t[57]=s,t[58]=a,t[59]=w):w=t[59];let K;t[60]!==P||t[61]!==w?(K={mutationFn:P,onSettled:w},t[60]=P,t[61]=w,t[62]=K):K=t[62];const se=ie(K);let U;return t[63]!==g||t[64]!==I||t[65]!==B||t[66]!==$||t[67]!==se||t[68]!==b?(U={create:g,update:b,remove:B,removeMany:$,link:I,rerun:se},t[63]=g,t[64]=I,t[65]=B,t[66]=$,t[67]=se,t[68]=b,t[69]=U):U=t[69],U}function us(t){return t.status==="rejected"}const ds=["ended_after_delivery","superseded"];function fs(t){return!!t&&ds.includes(t)}function hl(t){return!(t.action==="status_changed"&&typeof t.data?.retry=="number")}function xl(t){return t.failureKind!=="superseded"}function st(t){return t.threads.some(e=>e.status==="requires_action")}function kl(t){return t.status==="in_review"&&!t.assigneeId}function jl(t){return st(t)}function yl(t){return t.status==="in_progress"&&st(t)?"text-warning animate-pulse":nt(t.status).iconClassName}function bl(t){return t.threads.some(s=>s.status==="in_progress")?"running":t.threads.some(s=>s.status==="failed"&&!fs(s.failureKind))?"failed":null}function Nl(t,e,s){const n=t.findIndex(i=>i.id===s),a=e===s?t[n+1]?.id??null:e,r=t.filter(i=>i.id!==s),l=a?r.findIndex(i=>i.id===a):-1,d=l===-1?r.length:l,u=r[d-1],c=r[d];return u&&c?(u.sortOrder+c.sortOrder)/2:u?u.sortOrder+1:c?c.sortOrder-1:0}function Cl(t,e){return Array.from({length:e},(s,n)=>t-(e-1-n)*1e-4)}const ms=["archived"],lt={triage:{labelKey:"taskBoard.config.statusBacklog",icon:Ht,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:tt,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:$t,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:Jt,iconClassName:"text-warning"},approved:{labelKey:"taskBoard.config.statusApproved",icon:Kt,iconClassName:"text-success"},merged:{labelKey:"taskBoard.config.statusMerged",icon:Xt,iconClassName:"text-primary"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:It,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:Wt,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:ht,iconClassName:"text-muted-foreground"}},gs={icon:tt,iconClassName:"text-muted-foreground"},ps=lt;function nt(t){return ps[t]??gs}function Bl(t,e){const s=lt[t];return{label:s?e(s.labelKey):t,visual:nt(t)}}const vl=["bug","feature","chore","spike","security"],Sl={bug:{labelKey:"taskBoard.config.typeBug",icon:es,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:Pt,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:Ot,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:Lt,iconClassName:"text-yellow-500"},security:{labelKey:"taskBoard.config.typeSecurity",icon:Zt,iconClassName:"text-purple-500"}};function Ce(t){return Ct.includes(t)}function Fl(t){return Fe.filter(e=>t||!Ce(e))}function _l({deliveryEnabled:t,shownLanes:e,occupied:s}){const n=Fe.filter(l=>t||!Ce(l)||s.includes(l)),a=n.filter(l=>ms.includes(l)||!t&&Ce(l)),r=a.filter(l=>!e.includes(l));return{lanes:n.filter(l=>!r.includes(l)),hidden:r,hideable:a}}const Ue="lane:";function hs(t){return Fe.includes(t)}function Tl({overId:t,statusOf:e}){if(t===void 0)return null;const s=String(t),n=s.startsWith(Ue)?s.slice(Ue.length):e(s);return n!==void 0&&hs(n)?n:null}const xs=["none","low","medium","high","urgent"],he={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:Le,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:Rt,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500",icon:Le,iconClassName:"text-blue-500"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:At,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:wt,iconClassName:"text-destructive"}};function Dl(t,e=Date.now()){const s=new Date(t).getTime();return Number.isNaN(s)?null:s<e?"overdue":s-e<=ks*864e5?"soon":null}const ks=3;function Qe(t){return`color-mix(in oklab, ${t??Nt} var(--user-color-strength), transparent)`}function rt(t){return t?.projects.length===1?t.projects[0]:void 0}function js(t){return rt(t)?t.repo:t.projects.length>1?t.projects.map(e=>e.title).join(", "):null}function at(t){const e=z.c(6),{entry:s}=t;let n;e[0]!==s?(n=rt(s),e[0]=s,e[1]=n):n=e[1];const a=n;if(a){let l;return e[2]!==a.icon||e[3]!==a.title?(l=o.jsx(qt,{icon:a.icon,name:a.title}),e[2]=a.icon,e[3]=a.title,e[4]=l):l=e[4],l}let r;return e[5]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center",children:o.jsx(Gt,{className:"size-3"})}),e[5]=r):r=e[5],r}function ys(t){const e=z.c(14),{entry:s}=t;let n;e[0]!==s?(n=js(s),e[0]=s,e[1]=n):n=e[1];const a=n;let r;e[2]!==s?(r=o.jsx(at,{entry:s}),e[2]=s,e[3]=r):r=e[3];let l;e[4]!==s.title?(l=o.jsx("span",{className:"truncate",children:s.title}),e[4]=s.title,e[5]=l):l=e[5];let d;e[6]!==a?(d=a&&o.jsx("span",{className:"truncate text-xs text-muted-foreground",children:a}),e[6]=a,e[7]=d):d=e[7];let u;e[8]!==l||e[9]!==d?(u=o.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[l,d]}),e[8]=l,e[9]=d,e[10]=u):u=e[10];let c;return e[11]!==r||e[12]!==u?(c=o.jsxs(o.Fragment,{children:[r,u]}),e[11]=r,e[12]=u,e[13]=c):c=e[13],c}const ke="__no_repo__";function ae(t){return(t??"").trim().toLowerCase()}function bs(t,e){const s=(t.created_at??"").localeCompare(e.created_at??"");return s!==0?s:t.id.localeCompare(e.id)}function Ns(t){return t.projects.length===1?t.projects[0]?.title??t.repo??t.id:t.repo??t.id}function El(t,e=[]){const s=new Map,n=new Map,a=[],r=i=>{const f=ae(i),g=s.get(f);if(g)return g;const m={id:f,kind:"repo",repo:i.trim(),title:i.trim(),projects:[]};return s.set(f,m),m};for(const i of t){const f=Vt(i);if(f){const m=r(f);m.projects.push(i),n.set(i.id,m);continue}const g={id:i.id,kind:"project",repo:null,title:i.title,projects:[i]};a.push(g),n.set(i.id,g)}for(const i of e){const f=(i??"").trim();f&&r(f)}for(const i of s.values())i.projects.sort(bs),i.title=Ns(i);const l=[...s.values()].filter(i=>i.projects.length>0),d=[...s.values()].filter(i=>i.projects.length===0),u=(i,f)=>i.title.localeCompare(f.title),c=[...[...l,...a].sort(u),...d.sort(u)];return{entries:c,byId:new Map(c.map(i=>[i.id,i])),byRepo:s,byProject:n}}function Be(t,e){for(const n of t.threads??[]){const a=n.virtualMcpId?e.byProject.get(n.virtualMcpId):void 0;if(a)return a}const s=ae(t.repo);return(s?e.byRepo.get(s):void 0)??null}function Cs(t,e){const s=Be(t,e);if(!s)return[];if(s.projects.length<=1)return s.projects;for(const n of t.threads??[]){const a=n.virtualMcpId?s.projects.find(r=>r.id===n.virtualMcpId):void 0;if(a)return[a]}return s.projects}function wl(t,e){const s=Cs(t,e);return s.length===1?s[0]??null:null}function Ie(t,e){return e.byId.get(t)??e.byRepo.get(ae(t))??e.byProject.get(t)}function ot(t,e,s){if(e===null)return!0;if(e===ke)return Be(t,s)===null;const n=Ie(e,s);return n?n.repo&&ae(t.repo)===ae(n.repo)?!0:Be(t,s)===n:e.includes("/")?ae(t.repo)===ae(e):!0}function je(t,e){return t===null?!1:t===ke?!0:!!Ie(t,e)||t.includes("/")}function Al(t,e,s){return e===null?null:ot(t,e,s)?e:null}function Rl(t){return t.entries.filter(e=>e.repo!==null&&(e.projects.length===0||e.projects.some(s=>Yt(s).status!=="detached")))}const ve="__unassigned__",de="__any__",it={assignee:null,priority:null,due:null,tags:[],project:null,search:""};function Bs(t,e){return t.assignee!==null||t.priority!==null||t.due!==null||t.tags.length>0||je(t.project,e)||t.search.trim()!==""}function vs(t,e){return(t.assignee!==null?1:0)+(t.priority!==null?1:0)+(t.due!==null?1:0)+(t.tags.length>0?1:0)+(je(t.project,e)?1:0)+(t.search.trim()!==""?1:0)}const Ss=864e5;function Fs(t,e){const s=new Date(t),n=new Date(e);return s.getFullYear()===n.getFullYear()&&s.getMonth()===n.getMonth()&&s.getDate()===n.getDate()}function ct(t,e){const s=t.trim();return s===""?!1:e!=null&&as(s)===e}function _s(t,e){return t.assigneeId===e?!0:t.assigneeId===Ne&&t.assignedBy===e}function Il(t,e,s){const n=e.search.trim().toLowerCase();if(n!==""&&!`${t.title} ${t.description??""}`.toLowerCase().includes(n)&&!ct(n,t.keySeq))return!1;if(e.assignee!==null){if(e.assignee===ve){if(t.assigneeId!==null)return!1}else if(!_s(t,e.assignee))return!1}if(e.priority!==null&&t.priority!==e.priority)return!1;if(e.due!==null)if(e.due==="none"){if(t.dueDate)return!1}else{if(!t.dueDate)return!1;const a=new Date(t.dueDate).getTime(),r=Date.now();if(e.due==="overdue"&&a>=r||e.due==="today"&&!Fs(a,r)||e.due==="week"&&(a<r||a>r+7*Ss))return!1}if(e.tags.length>0){const a=t.tags.map(r=>r.id);if(!e.tags.some(r=>a.includes(r)))return!1}return!!ot(t,e.project,s)}const Ge={overdue:"taskBoard.taskFilters.dueDateFilterOverdue",today:"taskBoard.taskFilters.dueDateFilterDueToday",week:"taskBoard.taskFilters.dueDateFilterDueThisWeek",none:"taskBoard.taskFilters.dueDateFilterNoDueDate"};function oe(t,e=!1){return te("inline-flex h-8 items-center gap-1.5 rounded-lg border px-2.5 text-xs font-medium outline-none transition-colors focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/20",e&&"h-10 w-full justify-start px-3 text-sm",t?"border-transparent bg-accent text-foreground":"border-border text-muted-foreground hover:bg-muted/60 hover:text-foreground")}function Ts(t){const e=z.c(107),{value:s,members:n,onChange:a,block:r}=t,l=ne(),[d,u]=G.useState(!1);let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(Oe,{size:14,className:"shrink-0"}),e[0]=c):c=e[0];let i=c,f;e[1]!==l?(f=l("taskBoard.taskFilters.assigneeLabel"),e[1]=l,e[2]=f):f=e[2];let g=f;if(s===ve){let E;e[3]!==l?(E=l("taskBoard.taskFilters.assigneeUnassigned"),e[3]=l,e[4]=E):E=e[4],g=E}else if(s===Ne){let E;e[5]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(Me,{size:14}),e[5]=E):E=e[5],i=E;let A;e[6]!==l?(A=l("taskBoard.taskFilters.assigneeSuperAgent"),e[6]=l,e[7]=A):A=e[7],g=A}else if(s){let E,A,ee,M;if(e[8]!==n||e[9]!==s){let pe;e[14]!==s?(pe=dt=>dt.userId===s,e[14]=s,e[15]=pe):pe=e[15],A=n.find(pe),E=$e,ee=A?.user?.image??void 0,M=Pe(A?.user?.name),e[8]=n,e[9]=s,e[10]=E,e[11]=A,e[12]=ee,e[13]=M}else E=e[10],A=e[11],ee=e[12],M=e[13];let me;e[16]!==E||e[17]!==ee||e[18]!==M?(me=o.jsx(E,{url:ee,fallback:M,shape:"circle",size:"2xs"}),e[16]=E,e[17]=ee,e[18]=M,e[19]=me):me=e[19],i=me;let ge;e[20]!==A?.user?.name||e[21]!==l?(ge=A?.user?.name??l("taskBoard.taskFilters.assigneeMember"),e[20]=A?.user?.name,e[21]=l,e[22]=ge):ge=e[22],g=ge}let m;e[23]!==a?(m=E=>{a(E),u(!1)},e[23]=a,e[24]=m):m=e[24];const p=m,h=s!==null;let x;e[25]!==r||e[26]!==h?(x=oe(h,r),e[25]=r,e[26]=h,e[27]=x):x=e[27];const k=x,C=r&&"ml-auto";let b;e[28]!==C?(b=te("shrink-0 opacity-60",C),e[28]=C,e[29]=b):b=e[29];const N=b;let y;e[30]!==g?(y=o.jsx("span",{className:"max-w-[10rem] truncate",children:g}),e[30]=g,e[31]=y):y=e[31];let j;e[32]!==N?(j=o.jsx(fe,{size:12,className:N}),e[32]=N,e[33]=j):j=e[33];let B;e[34]!==i||e[35]!==y||e[36]!==j||e[37]!==k?(B=o.jsx(_e,{asChild:!0,children:o.jsxs("button",{type:"button",className:k,children:[i,y,j]})}),e[34]=i,e[35]=y,e[36]=j,e[37]=k,e[38]=B):B=e[38];let v;e[39]!==l?(v=l("taskBoard.taskFilters.assigneeFilterPlaceholder"),e[39]=l,e[40]=v):v=e[40];let S;e[41]!==l?(S=l("taskBoard.taskFilters.assigneeFilterPlaceholder"),e[41]=l,e[42]=S):S=e[42];let F;e[43]!==v||e[44]!==S?(F=o.jsx(Ee,{placeholder:v,"aria-label":S,className:"h-9"}),e[43]=v,e[44]=S,e[45]=F):F=e[45];let T;e[46]!==l?(T=l("taskBoard.taskFilters.assigneeNoMembersFound"),e[46]=l,e[47]=T):T=e[47];let $;e[48]!==T?($=o.jsx(we,{children:T}),e[48]=T,e[49]=$):$=e[49];let R;e[50]!==l?(R=l("taskBoard.taskFilters.assigneeAnyone"),e[50]=l,e[51]=R):R=e[51];let L;e[52]!==p?(L=()=>p(null),e[52]=p,e[53]=L):L=e[53];let I;e[54]!==l?(I=l("taskBoard.taskFilters.assigneeAnyone"),e[54]=l,e[55]=I):I=e[55];let P;e[56]!==R||e[57]!==L||e[58]!==I?(P=o.jsx(re,{value:R,onSelect:L,children:I}),e[56]=R,e[57]=L,e[58]=I,e[59]=P):P=e[59];let w;e[60]!==l?(w=l("taskBoard.taskFilters.assigneeUnassigned"),e[60]=l,e[61]=w):w=e[61];let K;e[62]!==p?(K=()=>p(ve),e[62]=p,e[63]=K):K=e[63];let se;e[64]===Symbol.for("react.memo_cache_sentinel")?(se=o.jsx(Oe,{size:16,className:"text-muted-foreground"}),e[64]=se):se=e[64];let U;e[65]!==l?(U=l("taskBoard.taskFilters.assigneeUnassigned"),e[65]=l,e[66]=U):U=e[66];let _;e[67]!==w||e[68]!==K||e[69]!==U?(_=o.jsxs(re,{value:w,onSelect:K,className:"gap-2",children:[se,U]}),e[67]=w,e[68]=K,e[69]=U,e[70]=_):_=e[70];let O;e[71]!==l?(O=l("taskBoard.taskFilters.assigneeSuperAgent"),e[71]=l,e[72]=O):O=e[72];let D;e[73]!==p?(D=()=>p(Ne),e[73]=p,e[74]=D):D=e[74];let Q;e[75]===Symbol.for("react.memo_cache_sentinel")?(Q=o.jsx(Me,{size:16}),e[75]=Q):Q=e[75];let q;e[76]!==l?(q=l("taskBoard.taskFilters.assigneeSuperAgent"),e[76]=l,e[77]=q):q=e[77];let Y;e[78]!==O||e[79]!==D||e[80]!==q?(Y=o.jsxs(re,{value:O,onSelect:D,className:"gap-2",children:[Q,q]}),e[78]=O,e[79]=D,e[80]=q,e[81]=Y):Y=e[81];let V;e[82]!==P||e[83]!==_||e[84]!==Y?(V=o.jsxs(ue,{children:[P,_,Y]}),e[82]=P,e[83]=_,e[84]=Y,e[85]=V):V=e[85];let H;e[86]!==l?(H=l("taskBoard.taskFilters.assigneeGroupMembers"),e[86]=l,e[87]=H):H=e[87];let W;if(e[88]!==n||e[89]!==p){let E;e[91]!==p?(E=A=>o.jsxs(re,{value:A.user?.name??A.userId,onSelect:()=>p(A.userId),className:"gap-2",children:[o.jsx($e,{url:A.user?.image??void 0,fallback:Pe(A.user?.name),shape:"circle",size:"2xs"}),o.jsx("span",{className:"truncate",children:A.user?.name??A.userId})]},A.userId),e[91]=p,e[92]=E):E=e[92],W=n.map(E),e[88]=n,e[89]=p,e[90]=W}else W=e[90];let J;e[93]!==H||e[94]!==W?(J=o.jsx(ue,{heading:H,children:W}),e[93]=H,e[94]=W,e[95]=J):J=e[95];let X;e[96]!==$||e[97]!==V||e[98]!==J?(X=o.jsxs(Ae,{children:[$,V,J]}),e[96]=$,e[97]=V,e[98]=J,e[99]=X):X=e[99];let Z;e[100]!==F||e[101]!==X?(Z=o.jsx(Te,{align:"start",className:"w-56 p-0",children:o.jsxs(Re,{children:[F,X]})}),e[100]=F,e[101]=X,e[102]=Z):Z=e[102];let le;return e[103]!==d||e[104]!==B||e[105]!==Z?(le=o.jsxs(De,{open:d,onOpenChange:u,children:[B,Z]}),e[103]=d,e[104]=B,e[105]=Z,e[106]=le):le=e[106],le}function Ds(t){const e=z.c(33),{value:s,onChange:n,block:a}=t,r=ne(),l=s!==null;let d;e[0]!==a||e[1]!==l?(d=oe(l,a),e[0]=a,e[1]=l,e[2]=d):d=e[2];const u=d,c=a&&"ml-auto";let i;e[3]!==c?(i=te("shrink-0 opacity-60",c),e[3]=c,e[4]=i):i=e[4];const f=i;let g;e[5]!==s?(g=s?o.jsx("span",{className:te("size-2 shrink-0 rounded-full",he[s].dotClassName)}):o.jsx(Ut,{size:14,className:"shrink-0"}),e[5]=s,e[6]=g):g=e[6];let m;e[7]!==r||e[8]!==s?(m=r(s?he[s].labelKey:"taskBoard.taskFilters.priorityLabel"),e[7]=r,e[8]=s,e[9]=m):m=e[9];let p;e[10]!==f?(p=o.jsx(fe,{size:12,className:f}),e[10]=f,e[11]=p):p=e[11];let h;e[12]!==g||e[13]!==m||e[14]!==p||e[15]!==u?(h=o.jsx(He,{asChild:!0,children:o.jsxs("button",{type:"button",className:u,children:[g,m,p]})}),e[12]=g,e[13]=m,e[14]=p,e[15]=u,e[16]=h):h=e[16];const x=s??de;let k;e[17]!==n?(k=B=>n(B===de?null:B),e[17]=n,e[18]=k):k=e[18];let C;e[19]!==r?(C=r("taskBoard.taskFilters.priorityAnyPriority"),e[19]=r,e[20]=C):C=e[20];let b;e[21]!==C?(b=o.jsx(xe,{value:de,children:C}),e[21]=C,e[22]=b):b=e[22];let N;e[23]!==r?(N=xs.map(B=>o.jsxs(xe,{value:B,className:"gap-2",children:[o.jsx("span",{className:te("size-2 rounded-full",he[B].dotClassName)}),r(he[B].labelKey)]},B)),e[23]=r,e[24]=N):N=e[24];let y;e[25]!==k||e[26]!==b||e[27]!==N||e[28]!==x?(y=o.jsx(We,{align:"start",className:"w-40",children:o.jsxs(Je,{value:x,onValueChange:k,children:[b,N]})}),e[25]=k,e[26]=b,e[27]=N,e[28]=x,e[29]=y):y=e[29];let j;return e[30]!==y||e[31]!==h?(j=o.jsxs(Xe,{children:[h,y]}),e[30]=y,e[31]=h,e[32]=j):j=e[32],j}function Es(t){const e=z.c(35),{value:s,onChange:n,block:a}=t,r=ne();let l;e[0]!==r||e[1]!==s?(l=s?r(Ge[s]):void 0,e[0]=r,e[1]=s,e[2]=l):l=e[2];const d=l,u=s!==null;let c;e[3]!==a||e[4]!==u?(c=oe(u,a),e[3]=a,e[4]=u,e[5]=c):c=e[5];const i=c,f=a&&"ml-auto";let g;e[6]!==f?(g=te("shrink-0 opacity-60",f),e[6]=f,e[7]=g):g=e[7];const m=g;let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(be,{size:14,className:"shrink-0"}),e[8]=p):p=e[8];let h;e[9]!==d||e[10]!==r?(h=d??r("taskBoard.taskFilters.dueDateLabel"),e[9]=d,e[10]=r,e[11]=h):h=e[11];let x;e[12]!==m?(x=o.jsx(fe,{size:12,className:m}),e[12]=m,e[13]=x):x=e[13];let k;e[14]!==h||e[15]!==x||e[16]!==i?(k=o.jsx(He,{asChild:!0,children:o.jsxs("button",{type:"button",className:i,children:[p,h,x]})}),e[14]=h,e[15]=x,e[16]=i,e[17]=k):k=e[17];const C=s??de;let b;e[18]!==n?(b=F=>n(F===de?null:F),e[18]=n,e[19]=b):b=e[19];let N;e[20]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx(be,{size:16,className:"text-muted-foreground"}),e[20]=N):N=e[20];let y;e[21]!==r?(y=r("taskBoard.taskFilters.dueDateAnyTime"),e[21]=r,e[22]=y):y=e[22];let j;e[23]!==y?(j=o.jsxs(xe,{value:de,className:"gap-2",children:[N,y]}),e[23]=y,e[24]=j):j=e[24];let B;e[25]!==r?(B=Object.entries(Ge).map(F=>{const[T,$]=F,R=T==="overdue";return o.jsxs(xe,{value:T,className:te("gap-2",R&&"text-destructive"),children:[o.jsx(be,{size:16,className:te("shrink-0",R?"text-destructive":"text-muted-foreground")}),r($)]},T)}),e[25]=r,e[26]=B):B=e[26];let v;e[27]!==C||e[28]!==b||e[29]!==j||e[30]!==B?(v=o.jsx(We,{align:"start",className:"w-44",children:o.jsxs(Je,{value:C,onValueChange:b,children:[j,B]})}),e[27]=C,e[28]=b,e[29]=j,e[30]=B,e[31]=v):v=e[31];let S;return e[32]!==v||e[33]!==k?(S=o.jsxs(Xe,{children:[k,v]}),e[32]=v,e[33]=k,e[34]=S):S=e[34],S}function ws(t){const e=z.c(56),{value:s,tags:n,onChange:a,block:r}=t,l=ne(),[d,u]=G.useState(!1);let c;e[0]!==a||e[1]!==s?(c=w=>a(s.includes(w)?s.filter(K=>K!==w):[...s,w]),e[0]=a,e[1]=s,e[2]=c):c=e[2];const i=c;let f;e[3]!==l||e[4]!==n||e[5]!==s[0]||e[6]!==s.length?(f=s.length===0?l("taskBoard.taskFilters.tagsLabel"):s.length===1?n.find(w=>w.id===s[0])?.name??l("taskBoard.taskFilters.tagsLabel"):l("taskBoard.taskFilters.tagsSelectedCount",{count:s.length}),e[3]=l,e[4]=n,e[5]=s[0],e[6]=s.length,e[7]=f):f=e[7];const g=f,m=s.length>0;let p;e[8]!==r||e[9]!==m?(p=oe(m,r),e[8]=r,e[9]=m,e[10]=p):p=e[10];const h=p,x=r&&"ml-auto";let k;e[11]!==x?(k=te("shrink-0 opacity-60",x),e[11]=x,e[12]=k):k=e[12];const C=k;let b;e[13]!==n||e[14]!==s[0]||e[15]!==s.length?(b=s.length===1?o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:Qe(n.find(w=>w.id===s[0])?.color)}}):o.jsx(Mt,{size:14,className:"shrink-0"}),e[13]=n,e[14]=s[0],e[15]=s.length,e[16]=b):b=e[16];let N;e[17]!==g?(N=o.jsx("span",{className:"max-w-[10rem] truncate",children:g}),e[17]=g,e[18]=N):N=e[18];let y;e[19]!==C?(y=o.jsx(fe,{size:12,className:C}),e[19]=C,e[20]=y):y=e[20];let j;e[21]!==b||e[22]!==N||e[23]!==y||e[24]!==h?(j=o.jsx(_e,{asChild:!0,children:o.jsxs("button",{type:"button",className:h,children:[b,N,y]})}),e[21]=b,e[22]=N,e[23]=y,e[24]=h,e[25]=j):j=e[25];let B;e[26]!==l?(B=l("taskBoard.taskFilters.tagsFilterPlaceholder"),e[26]=l,e[27]=B):B=e[27];let v;e[28]!==l?(v=l("taskBoard.taskFilters.tagsFilterPlaceholder"),e[28]=l,e[29]=v):v=e[29];let S;e[30]!==B||e[31]!==v?(S=o.jsx(Ee,{placeholder:B,"aria-label":v,className:"h-9"}),e[30]=B,e[31]=v,e[32]=S):S=e[32];let F;e[33]!==l?(F=l("taskBoard.taskFilters.tagsNoTagsFound"),e[33]=l,e[34]=F):F=e[34];let T;e[35]!==F?(T=o.jsx(we,{children:F}),e[35]=F,e[36]=T):T=e[36];let $;if(e[37]!==n||e[38]!==i||e[39]!==s){let w;e[41]!==i||e[42]!==s?(w=K=>o.jsxs(re,{value:K.name,onSelect:()=>i(K.id),className:"gap-2",children:[o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:Qe(K.color)}}),o.jsx("span",{className:"flex-1 truncate",children:K.name}),s.includes(K.id)&&o.jsx(Ze,{size:14,className:"shrink-0 text-foreground"})]},K.id),e[41]=i,e[42]=s,e[43]=w):w=e[43],$=n.map(w),e[37]=n,e[38]=i,e[39]=s,e[40]=$}else $=e[40];let R;e[44]!==$?(R=o.jsx(ue,{children:$}),e[44]=$,e[45]=R):R=e[45];let L;e[46]!==T||e[47]!==R?(L=o.jsxs(Ae,{children:[T,R]}),e[46]=T,e[47]=R,e[48]=L):L=e[48];let I;e[49]!==S||e[50]!==L?(I=o.jsx(Te,{align:"start",className:"w-56 p-0",children:o.jsxs(Re,{children:[S,L]})}),e[49]=S,e[50]=L,e[51]=I):I=e[51];let P;return e[52]!==d||e[53]!==j||e[54]!==I?(P=o.jsxs(De,{open:d,onOpenChange:u,children:[j,I]}),e[52]=d,e[53]=j,e[54]=I,e[55]=P):P=e[55],P}function qe(t){const e=z.c(11),{entry:s,selected:n,onSelect:a}=t,r=s.id,l=s.title;let d;e[0]!==s.projects?(d=s.projects.map(As).join(" "),e[0]=s.projects,e[1]=d):d=e[1];const u=`${r} ${l} ${s.repo??""} ${d}`;let c;e[2]!==s?(c=o.jsx(ys,{entry:s}),e[2]=s,e[3]=c):c=e[3];let i;e[4]!==n?(i=n&&o.jsx(Ze,{size:14,className:"shrink-0 text-foreground"}),e[4]=n,e[5]=i):i=e[5];let f;return e[6]!==a||e[7]!==u||e[8]!==c||e[9]!==i?(f=o.jsxs(re,{value:u,onSelect:a,className:"gap-2",children:[c,i]}),e[6]=a,e[7]=u,e[8]=c,e[9]=i,e[10]=f):f=e[10],f}function As(t){return t.title}function Rs(t,e,s,n){return t===null||!s?n("taskBoard.taskFilters.projectLabel"):t===ke?n("taskBoard.taskFilters.projectNone"):e?.title??t}function Is(t){const e=z.c(90),{value:s,index:n,onChange:a,block:r}=t,l=ne(),[d,u]=G.useState(!1);let c,i,f,g,m,p,h,x,k,C,b,N,y,j;if(e[0]!==r||e[1]!==n||e[2]!==a||e[3]!==d||e[4]!==l||e[5]!==s){const T=s===null?void 0:Ie(s,n),$=je(s,n),R=Rs(s,T,$,l);let L;e[20]!==a?(L=M=>{a(M),u(!1)},e[20]=a,e[21]=L):L=e[21];const I=L,P=n.entries.filter($s),w=n.entries.filter(Ks),K=oe($,r),se=r&&"ml-auto";let U;e[22]!==se?(U=te("shrink-0 opacity-60",se),e[22]=se,e[23]=U):U=e[23];const _=U;g=De,y=d,j=u;const O=$?T:void 0;let D;e[24]!==O?(D=o.jsx(at,{entry:O}),e[24]=O,e[25]=D):D=e[25];let Q;e[26]!==R?(Q=o.jsx("span",{className:"max-w-[12rem] truncate",children:R}),e[26]=R,e[27]=Q):Q=e[27];let q;e[28]!==_?(q=o.jsx(fe,{size:12,className:_}),e[28]=_,e[29]=q):q=e[29],e[30]!==D||e[31]!==Q||e[32]!==q||e[33]!==K?(p=o.jsx(_e,{asChild:!0,children:o.jsxs("button",{type:"button",className:K,children:[D,Q,q]})}),e[30]=D,e[31]=Q,e[32]=q,e[33]=K,e[34]=p):p=e[34],f=Te,b="start",N="w-72 p-0",i=Re;let Y;e[35]!==l?(Y=l("taskBoard.taskFilters.projectFilterPlaceholder"),e[35]=l,e[36]=Y):Y=e[36];let V;e[37]!==l?(V=l("taskBoard.taskFilters.projectFilterPlaceholder"),e[37]=l,e[38]=V):V=e[38],e[39]!==Y||e[40]!==V?(C=o.jsx(Ee,{placeholder:Y,"aria-label":V,className:"h-9"}),e[39]=Y,e[40]=V,e[41]=C):C=e[41],c=Ae;let H;e[42]!==l?(H=l("taskBoard.taskFilters.projectNoneFound"),e[42]=l,e[43]=H):H=e[43],e[44]!==H?(m=o.jsx(we,{children:H}),e[44]=H,e[45]=m):m=e[45];let W;e[46]!==l?(W=l("taskBoard.taskFilters.projectAny"),e[46]=l,e[47]=W):W=e[47];let J;e[48]!==I?(J=()=>I(null),e[48]=I,e[49]=J):J=e[49];let X;e[50]!==l?(X=l("taskBoard.taskFilters.projectAny"),e[50]=l,e[51]=X):X=e[51];let Z;e[52]!==W||e[53]!==J||e[54]!==X?(Z=o.jsx(re,{value:W,onSelect:J,children:X}),e[52]=W,e[53]=J,e[54]=X,e[55]=Z):Z=e[55];let le;e[56]!==l?(le=l("taskBoard.taskFilters.projectNone"),e[56]=l,e[57]=le):le=e[57];let E;e[58]!==I?(E=()=>I(ke),e[58]=I,e[59]=E):E=e[59];let A;e[60]!==l?(A=l("taskBoard.taskFilters.projectNone"),e[60]=l,e[61]=A):A=e[61];let ee;e[62]!==le||e[63]!==E||e[64]!==A?(ee=o.jsx(re,{value:le,onSelect:E,children:A}),e[62]=le,e[63]=E,e[64]=A,e[65]=ee):ee=e[65],e[66]!==Z||e[67]!==ee?(h=o.jsxs(ue,{children:[Z,ee]}),e[66]=Z,e[67]=ee,e[68]=h):h=e[68],x=P.length>0&&o.jsx(ue,{heading:l("taskBoard.taskFilters.projectGroupProjects"),children:P.map(M=>o.jsx(qe,{entry:M,selected:T===M,onSelect:()=>I(M.id)},M.id))}),k=w.length>0&&o.jsx(ue,{heading:l("taskBoard.taskFilters.projectGroupRepos"),children:w.map(M=>o.jsx(qe,{entry:M,selected:T===M,onSelect:()=>I(M.id)},M.id))}),e[0]=r,e[1]=n,e[2]=a,e[3]=d,e[4]=l,e[5]=s,e[6]=c,e[7]=i,e[8]=f,e[9]=g,e[10]=m,e[11]=p,e[12]=h,e[13]=x,e[14]=k,e[15]=C,e[16]=b,e[17]=N,e[18]=y,e[19]=j}else c=e[6],i=e[7],f=e[8],g=e[9],m=e[10],p=e[11],h=e[12],x=e[13],k=e[14],C=e[15],b=e[16],N=e[17],y=e[18],j=e[19];let B;e[69]!==c||e[70]!==m||e[71]!==h||e[72]!==x||e[73]!==k?(B=o.jsxs(c,{children:[m,h,x,k]}),e[69]=c,e[70]=m,e[71]=h,e[72]=x,e[73]=k,e[74]=B):B=e[74];let v;e[75]!==i||e[76]!==B||e[77]!==C?(v=o.jsxs(i,{children:[C,B]}),e[75]=i,e[76]=B,e[77]=C,e[78]=v):v=e[78];let S;e[79]!==f||e[80]!==v||e[81]!==b||e[82]!==N?(S=o.jsx(f,{align:b,className:N,children:v}),e[79]=f,e[80]=v,e[81]=b,e[82]=N,e[83]=S):S=e[83];let F;return e[84]!==g||e[85]!==p||e[86]!==S||e[87]!==y||e[88]!==j?(F=o.jsxs(g,{open:y,onOpenChange:j,children:[p,S]}),e[84]=g,e[85]=p,e[86]=S,e[87]=y,e[88]=j,e[89]=F):F=e[89],F}function Ks(t){return t.projects.length===0}function $s(t){return t.projects.length>0}function Ls(t){const e=z.c(25),{value:s,onChange:n,block:a}=t,r=ne(),[l,d]=G.useState(s!==""),[u,c]=G.useState(!1),[i,f]=G.useState(s);s!==i&&(f(s),s===""&&!u&&d(!1));const g=l||a,m=g?"w-32 sm:w-44":"w-8 px-0 justify-center",p=a&&"h-10 w-full px-3 text-sm sm:w-full";let h;e[0]!==m||e[1]!==p?(h=te("inline-flex h-8 shrink-0 items-center gap-1.5 overflow-hidden rounded-lg border border-border px-2.5 text-xs text-foreground transition-all duration-200 ease-out",m,p),e[0]=m,e[1]=p,e[2]=h):h=e[2];let x;e[3]!==r?(x=r("taskBoard.taskFilters.searchLabel"),e[3]=r,e[4]=x):x=e[4];let k;e[5]===Symbol.for("react.memo_cache_sentinel")?(k=()=>d(!0),e[5]=k):k=e[5];let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(zt,{size:14}),e[6]=C):C=e[6];let b;e[7]!==x?(b=o.jsx("button",{type:"button","aria-label":x,onClick:k,className:"shrink-0 text-muted-foreground transition-colors hover:text-foreground",children:C}),e[7]=x,e[8]=b):b=e[8];let N;e[9]!==a||e[10]!==g||e[11]!==n||e[12]!==r||e[13]!==s?(N=g&&o.jsx("input",{autoFocus:!a,value:s,onChange:B=>n(B.target.value),onFocus:()=>c(!0),onBlur:()=>{c(!1),s===""&&d(!1)},placeholder:r("taskBoard.taskFilters.searchPlaceholder"),"aria-label":r("taskBoard.taskFilters.searchPlaceholder"),className:"w-full min-w-0 bg-transparent text-xs outline-none placeholder:text-muted-foreground"}),e[9]=a,e[10]=g,e[11]=n,e[12]=r,e[13]=s,e[14]=N):N=e[14];let y;e[15]!==a||e[16]!==n||e[17]!==r||e[18]!==s?(y=s!==""&&o.jsx("button",{type:"button","aria-label":r("taskBoard.taskFilters.searchClearLabel"),onMouseDown:Os,onClick:()=>{n(""),a||d(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:o.jsx(xt,{size:14})}),e[15]=a,e[16]=n,e[17]=r,e[18]=s,e[19]=y):y=e[19];let j;return e[20]!==h||e[21]!==b||e[22]!==N||e[23]!==y?(j=o.jsxs("div",{className:h,children:[b,N,y]}),e[20]=h,e[21]=b,e[22]=N,e[23]=y,e[24]=j):j=e[24],j}function Os(t){return t.preventDefault()}function Ps(t){const e=z.c(20),{block:s,onClick:n}=t,a=ne();let r;e[0]!==a?(r=a("taskBoard.taskFilters.boardSettingsLabel"),e[0]=a,e[1]=r):r=e[1];const l=r;let d;e[2]!==s?(d=te(oe(!1,s),s?"h-10 w-full":"w-8 justify-center px-0"),e[2]=s,e[3]=d):d=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx(Qt,{size:14,className:"shrink-0"}),e[4]=u):u=e[4];let c;e[5]!==s||e[6]!==l?(c=s&&o.jsx("span",{children:l}),e[5]=s,e[6]=l,e[7]=c):c=e[7];let i;e[8]!==l||e[9]!==n||e[10]!==d||e[11]!==c?(i=o.jsxs("button",{type:"button",onClick:n,"aria-label":l,className:d,children:[u,c]}),e[8]=l,e[9]=n,e[10]=d,e[11]=c,e[12]=i):i=e[12];const f=i;if(s)return f;let g;e[13]!==f?(g=o.jsx(kt,{asChild:!0,children:f}),e[13]=f,e[14]=g):g=e[14];let m;e[15]!==l?(m=o.jsx(jt,{side:"top",children:l}),e[15]=l,e[16]=m):m=e[16];let p;return e[17]!==g||e[18]!==m?(p=o.jsxs(yt,{children:[g,m]}),e[17]=g,e[18]=m,e[19]=p):p=e[19],p}function ut(t){const e=z.c(53),{filters:s,members:n,tags:a,index:r,onChange:l,onOpenBoardSettings:d,block:u}=t;let c;e[0]!==s||e[1]!==l?(c=j=>l({...s,search:j}),e[0]=s,e[1]=l,e[2]=c):c=e[2];let i;e[3]!==u||e[4]!==s.search||e[5]!==c?(i=o.jsx(Ls,{block:u,value:s.search,onChange:c}),e[3]=u,e[4]=s.search,e[5]=c,e[6]=i):i=e[6];let f;e[7]!==s||e[8]!==l?(f=j=>l({...s,assignee:j}),e[7]=s,e[8]=l,e[9]=f):f=e[9];let g;e[10]!==u||e[11]!==s.assignee||e[12]!==n||e[13]!==f?(g=o.jsx(Ts,{block:u,value:s.assignee,members:n,onChange:f}),e[10]=u,e[11]=s.assignee,e[12]=n,e[13]=f,e[14]=g):g=e[14];let m;e[15]!==s||e[16]!==l?(m=j=>l({...s,priority:j}),e[15]=s,e[16]=l,e[17]=m):m=e[17];let p;e[18]!==u||e[19]!==s.priority||e[20]!==m?(p=o.jsx(Ds,{block:u,value:s.priority,onChange:m}),e[18]=u,e[19]=s.priority,e[20]=m,e[21]=p):p=e[21];let h;e[22]!==s||e[23]!==l?(h=j=>l({...s,due:j}),e[22]=s,e[23]=l,e[24]=h):h=e[24];let x;e[25]!==u||e[26]!==s.due||e[27]!==h?(x=o.jsx(Es,{block:u,value:s.due,onChange:h}),e[25]=u,e[26]=s.due,e[27]=h,e[28]=x):x=e[28];let k;e[29]!==s||e[30]!==l?(k=j=>l({...s,tags:j}),e[29]=s,e[30]=l,e[31]=k):k=e[31];let C;e[32]!==u||e[33]!==s.tags||e[34]!==k||e[35]!==a?(C=o.jsx(ws,{block:u,value:s.tags,tags:a,onChange:k}),e[32]=u,e[33]=s.tags,e[34]=k,e[35]=a,e[36]=C):C=e[36];let b;e[37]!==u||e[38]!==s||e[39]!==r||e[40]!==l?(b=(r.entries.length>0||je(s.project,r))&&o.jsx(Is,{block:u,value:s.project,index:r,onChange:j=>l({...s,project:j})}),e[37]=u,e[38]=s,e[39]=r,e[40]=l,e[41]=b):b=e[41];let N;e[42]!==u||e[43]!==d?(N=o.jsx(Ps,{block:u,onClick:d}),e[42]=u,e[43]=d,e[44]=N):N=e[44];let y;return e[45]!==C||e[46]!==b||e[47]!==N||e[48]!==i||e[49]!==g||e[50]!==p||e[51]!==x?(y=o.jsxs(o.Fragment,{children:[i,g,p,x,C,b,N]}),e[45]=C,e[46]=b,e[47]=N,e[48]=i,e[49]=g,e[50]=p,e[51]=x,e[52]=y):y=e[52],y}function Kl(t){const e=z.c(16),{filters:s,members:n,tags:a,index:r,onChange:l,onOpenBoardSettings:d}=t,u=ne();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(et,{size:16,className:"mr-0.5 shrink-0 text-muted-foreground"}),e[0]=c):c=e[0];let i;e[1]!==s||e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==d||e[6]!==a?(i=o.jsx(ut,{filters:s,members:n,tags:a,index:r,onChange:l,onOpenBoardSettings:d}),e[1]=s,e[2]=r,e[3]=n,e[4]=l,e[5]=d,e[6]=a,e[7]=i):i=e[7];let f;e[8]!==s||e[9]!==r||e[10]!==l||e[11]!==u?(f=Bs(s,r)&&o.jsx("button",{type:"button",onClick:()=>l(it),className:"ml-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:u("taskBoard.taskFilters.clearButton")}),e[8]=s,e[9]=r,e[10]=l,e[11]=u,e[12]=f):f=e[12];let g;return e[13]!==i||e[14]!==f?(g=o.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c,i,f]}),e[13]=i,e[14]=f,e[15]=g):g=e[15],g}function $l(t){const e=z.c(41),{filters:s,members:n,tags:a,index:r,onChange:l,onOpenBoardSettings:d}=t,u=ne(),[c,i]=G.useState(!1),f=vs(s,r),g=f>0;let m;e[0]!==g?(m=oe(g),e[0]=g,e[1]=m):m=e[1];const p=m;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsx(et,{size:14,className:"shrink-0"}),e[2]=h):h=e[2];let x;e[3]!==u?(x=u("taskBoard.taskFilters.filterDrawerButtonLabel"),e[3]=u,e[4]=x):x=e[4];let k;e[5]!==f?(k=f>0&&o.jsx("span",{className:"ml-0.5 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] font-semibold text-background",children:f}),e[5]=f,e[6]=k):k=e[6];let C;e[7]!==x||e[8]!==k||e[9]!==p?(C=o.jsx(St,{asChild:!0,children:o.jsxs("button",{type:"button",className:p,children:[h,x,k]})}),e[7]=x,e[8]=k,e[9]=p,e[10]=C):C=e[10];let b;e[11]!==u?(b=u("taskBoard.taskFilters.filterDrawerTitle"),e[11]=u,e[12]=b):b=e[12];let N;e[13]!==b?(N=o.jsx(Ft,{className:"px-4 pt-4 text-base font-medium text-foreground",children:b}),e[13]=b,e[14]=N):N=e[14];let y;e[15]!==s||e[16]!==r||e[17]!==n||e[18]!==l||e[19]!==d||e[20]!==a?(y=o.jsx("div",{className:"flex flex-col gap-2 p-4",children:o.jsx(ut,{block:!0,filters:s,members:n,tags:a,index:r,onChange:l,onOpenBoardSettings:d})}),e[15]=s,e[16]=r,e[17]=n,e[18]=l,e[19]=d,e[20]=a,e[21]=y):y=e[21];let j;e[22]!==f||e[23]!==l||e[24]!==u?(j=f>0&&o.jsx(Ke,{variant:"outline",className:"flex-1",onClick:()=>l(it),children:u("taskBoard.taskFilters.clearAllButton")}),e[22]=f,e[23]=l,e[24]=u,e[25]=j):j=e[25];let B;e[26]!==u?(B=u("taskBoard.taskFilters.doneButton"),e[26]=u,e[27]=B):B=e[27];let v;e[28]!==B?(v=o.jsx(_t,{asChild:!0,children:o.jsx(Ke,{className:"flex-1",children:B})}),e[28]=B,e[29]=v):v=e[29];let S;e[30]!==j||e[31]!==v?(S=o.jsxs(Tt,{className:"flex-row gap-2",children:[j,v]}),e[30]=j,e[31]=v,e[32]=S):S=e[32];let F;e[33]!==S||e[34]!==N||e[35]!==y?(F=o.jsxs(Dt,{className:"p-0",children:[N,y,S]}),e[33]=S,e[34]=N,e[35]=y,e[36]=F):F=e[36];let T;return e[37]!==c||e[38]!==F||e[39]!==C?(T=o.jsxs(Et,{open:c,onOpenChange:i,direction:"bottom",children:[C,F]}),e[37]=c,e[38]=F,e[39]=C,e[40]=T):T=e[40],T}function Ms(t,e){return ns(t,e.keySeq)??e.id}function Ll(t,e,s){const n=encodeURIComponent(t),a=encodeURIComponent(Ms(t,e));return s?`/${n}/projects/${encodeURIComponent(s)}/tasks/${a}`:`/${n}/tasks/${a}`}function Ol(t,e){const s=e?.trim();if(s)return t.find(n=>ct(s,n.keySeq))??t.find(n=>n.id===s)}export{lt as A,gl as B,Ol as C,$l as D,Kl as E,Cl as F,_l as G,it as H,bl as I,jl as J,Nl as K,Ue as L,Tl as M,Il as N,ms as O,xs as P,Al as Q,Dl as R,Me as S,vl as T,Ms as a,El as b,kl as c,is as d,he as e,Sl as f,cs as g,Be as h,st as i,wl as j,Ie as k,Bl as l,Qe as m,Ll as n,yl as o,Cs as p,nt as q,Fl as r,Rl as s,ns as t,pl as u,at as v,ys as w,hl as x,xl as y,fs as z};
@@ -1 +0,0 @@
1
- import{c as i,j as r}from"./index-gctAQu2T.js";import{T as m}from"./index-BQzHGsvt.js";import"./rich-text-link-control-CCig2s9-.js";import"./Check-BJaMheL7.js";import"./Link01-CKw3sRrv.js";import"./Trash01-BB2ymX9J.js";import"./get-initials-D-f_fDFw.js";import"./avatar-BpU54ct-.js";import"./User01-CtDIPHIF.js";import"./agent-icon-DsGBCBNv.js";import"./AlertCircle-bl0yU7gy.js";import"./Tool01-E6Rv0Nbs.js";import"./ArrowUp-BQQdFypM.js";import"./ArrowLeft-CpbUCYpB.js";import"./Tool02-Darwb8nP.js";import"./ArrowRight-CkVUmxaa.js";import"./TrendUp01-PJuAXI74.js";import"./ZoomOut-BAhVAzy1.js";import"./Users03-D8RoJqiC.js";import"./CheckCircle-BNNyBNMK.js";import"./ChevronUp-Cp-tcsrs.js";import"./ChevronRight-2Ti1evDh.js";import"./DotsVertical-B8slOnrw.js";import"./UserSquare-BflxhZ_l.js";import"./Copy01-BrL9ZrVF.js";import"./CreditCard01-_mwanoIZ.js";import"./Database01-Dm_V08L3.js";import"./Download01-Bl2-HJHJ.js";import"./Printer-Nban-oJk.js";import"./Settings02-BqKUeA5H.js";import"./Eye-B_BMkWWc.js";import"./File02-3fotvfyl.js";import"./Share07-D8xQrAsX.js";import"./GitBranch01-Dr0NRbj6.js";import"./Globe01-DMnQmvOn.js";import"./SwitchHorizontal01-CCraiYIJ.js";import"./HardDrive-CxNWrsuq.js";import"./Image01-DMAKgzzX.js";import"./Key01-CVfJV98q.js";import"./LinkExternal01-OjBTsG9L.js";import"./Monitor01-Bc6Zvq9B.js";import"./Sun-wxsl7cI_.js";import"./Package-DTeqx5ul.js";import"./Palette-CiXH5EXK.js";import"./Play-BPdpqeiE.js";import"./Plus-kQ9d0PiA.js";import"./SearchLg-Cecpe6x9.js";import"./SearchMd-hBr_biLL.js";import"./Shield01-Dav77ssu.js";import"./Stars01-DWjpdjKn.js";import"./Upload01-BtBtAyal.js";import"./Users01-9HTYv5bx.js";import"./XCircle-Dvf0BUKb.js";import"./XClose-DPfGLo7I.js";import"./Zap-ChgjHdxL.js";import"./popover-BfKN_4aI.js";import"./dropdown-menu-4cRHTbic.js";import"./task-route-_NgFGVoT.js";import"./task-board-CazuPR-U.js";import"./schema-BzgrQmAY.js";import"./decopilot-sse-pool-czpSFI9L.js";import"./backoff-CrEUbyZT.js";import"./use-decopilot-events-V4xtyk7c.js";import"./drawer-DsG6Si3V.js";import"./command-cJVGaRa3.js";import"./index-C7tZKQ5s.js";import"./dialog--Jkwvpx1.js";import"./github-icon-cJDFDEm7.js";import"./project-icon-Dk1HaDIZ.js";import"./github-repo-C0igpkr9.js";import"./repository-import-picker-Bc_O4k0-.js";import"./use-mcp-client-CzGi1Gun.js";import"./auth-vfqjjrgv.js";import"./use-navigate-to-agent-CBQsYRLL.js";import"./use-virtual-mcp-BMRFgR9g.js";import"./hooks-CxPd9b6i.js";import"./delay-CnY5UFtP.js";import"./thread-intent-DPwCeeGE.js";import"./slugify-CEUa2lfQ.js";import"./repository-picker-DC97O6OK.js";import"./input-eBmoU-9D.js";import"./label-DGkzLfNU.js";import"./useInfiniteQuery-DOeboQGx.js";import"./infiniteQueryObserver-Da0v0sXC.js";import"./collection-search-Bi-DttH4.js";import"./use-debounced-value-BHZw1Wtv.js";import"./use-members-xjztJVBn.js";import"./use-org-auth-client-DuxSmx0x.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-tags-DhkHJc7C.js";import"./use-organization-settings-C-LQvPpq.js";import"./breadcrumb-Dlcs3jWo.js";import"./calendar-B8BrEMls.js";import"./collapsible-BDifv-q9.js";import"./use-copy-B4PUMZjo.js";import"./markdown-BV0XgGTq.js";import"./use-panel-navigate-D2RT2tc_.js";import"./thread-route-BsrvgyVU.js";import"./use-project-scope-Ch_4TfMQ.js";import"./index-DQ6uuKpF.js";import"./gateway-client-Cb37izH_.js";import"./form-DhUF_Mtg.js";import"./utils-CVEq3hMx.js";import"./index-eVyHwFa9.js";import"./hooks-BrcP19Uo.js";import"./use-org-fs-Cm8FYvYP.js";import"./use-connection-tOIuuLKJ.js";import"./github-repo-scope-C8GSbvaz.js";import"./thread-sheet-body-S2AS0IdJ.js";import"./useSuspenseInfiniteQuery-B5UzTlHS.js";import"./pair-BIPkH5eA.js";import"./usage-stats-B38oXMbk.js";import"./chat-context-CD1rWX64.js";import"./autosend-u-W4xgi7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-DYf552qv.js";import"./location-oTTXFrSF.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Bv46PiO3.js";import"./types-8hWP_tsZ.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./shell-layout-DMp5UdGb.js";import"./download-app-dialog-CNd8ka-x.js";import"./anchors-yqDzZN4K.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-palette-store-BNo0UXiS.js";import"./integration-icon-YYg8l_RW.js";import"./required-auth-layout-CraNNSBi.js";import"./use-org-sso-CP_t4LLU.js";import"./use-org-notice-lWz1PPs-.js";import"./use-mcp-prompts-BJsq63pG.js";import"./use-thread-outputs-DtpQGqCf.js";import"./file-type-icon-DJQFeBpV.js";import"./use-infinite-scroll-DnRzNQQc.js";import"./task-status-Cj8IGjJC.js";import"./use-open-billing-url-DaC9_MxZ.js";function Ct(){const t=i.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(m,{})}),t[0]=o):o=t[0],o}export{Ct as default};
@@ -1 +0,0 @@
1
- import{c_ as O,au as U,c as P,j as r,r as G,E as ee,b as F,B as q,I as te,K as Q,n as se,e2 as ne,ee as re,l as ae}from"./index-gctAQu2T.js";import{u as ie}from"./useSuspenseInfiniteQuery-B5UzTlHS.js";import{A as le}from"./avatar-BpU54ct-.js";import{n as oe,t as ce}from"./ChevronUp-Cp-tcsrs.js";import{n as W}from"./Tool02-Darwb8nP.js";import{a as ue,M as de}from"./pair-BIPkH5eA.js";import{D as me}from"./chat-context-CD1rWX64.js";import{I as Y}from"./integration-icon-YYg8l_RW.js";import{u as fe}from"./use-decopilot-events-V4xtyk7c.js";import{u as xe}from"./use-infinite-scroll-DnRzNQQc.js";import{g as ge}from"./task-status-Cj8IGjJC.js";const z=[{ms:6e4,label:"1m"},{ms:12e4,label:"2m"},{ms:3e5,label:"5m"},{ms:6e5,label:"10m"},{ms:9e5,label:"15m"},{ms:18e5,label:"30m"},{ms:36e5,label:"1h"},{ms:72e5,label:"2h"},{ms:216e5,label:"6h"},{ms:432e5,label:"12h"},{ms:864e5,label:"1d"},{ms:6048e5,label:"7d"}],he=40;function qe(t){const s=(t.endDate.getTime()-t.startDate.getTime())/he;return z.find(i=>i.ms>=s)?.label??z[z.length-1].label}function K(t){const e=z.find(l=>l.label===t);if(e)return e.ms;const s=/^(\d+)([mhd])$/.exec(t);if(!s)return 6e4;const n=parseInt(s[1],10),i=s[2];return i==="h"?n*36e5:i==="d"?n*864e5:n*6e4}function pe(t,e){const s=new Date(t);return K(e)>=864e5?s.toLocaleDateString([],{month:"short",day:"numeric"}):s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function H(t,e){const s=K(e);return new Date(Math.floor(t.getTime()/s)*s)}function be(t){return t>=1e4?`${(t/1e3).toFixed(1)}s`:`${Math.round(t)}ms`}function He(t){return Number.isFinite(t)?t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:Math.round(t).toLocaleString():"0"}function Oe(t){return Number.isFinite(t)?`$${t.toFixed(t<1?4:2)}`:"$0.00"}function Ue(t,e,s){const n=K(s),i=H(e.startDate,s).getTime(),l=e.endDate.getTime(),a=new Map(t.map(c=>[H(new Date(c.timestamp),s).getTime(),c])),u=[];for(let c=i;c<=l;c+=n){const m=a.get(c),h=new Date(c).toISOString();u.push({t:h,ts:c,label:pe(h,s),calls:m?.calls??0,errors:m?.errors??0,errorRate:m?.errorRate??0,avg:m?.avg??0,p50:m?.p50??0,p95:m?.p95??0,inputTokens:m?.inputTokens??0,outputTokens:m?.outputTokens??0,totalTokens:m?.totalTokens??0,costUsd:m?.costUsd??0})}return u}function Ge(t,e,s,n){const i=new Map;for(const o of t)i.set(o.toolName,(i.get(o.toolName)??0)+o[e]);const l=[...i.entries()].sort((o,d)=>d[1]-o[1]).slice(0,s).map(([o])=>o),a=new Set(l),u=new Map,c=new Map;for(const o of t){if(!a.has(o.toolName))continue;const d=o.virtualMcpId??"";u.set(d,(u.get(d)??0)+o[e]),c.set(`${d}::${o.toolName}`,{calls:o.calls,errors:o.errors,outputSize:o.outputSize})}const m=[...u.entries()].sort((o,d)=>d[1]-o[1]).slice(0,n).map(([o])=>o);let h=0;for(const o of m)for(const d of l){const x=c.get(`${o}::${d}`);x&&x[e]>h&&(h=x[e])}return{topTools:l,topAgentIds:m,cellMap:c,maxValue:h}}function Qe(t,e){return e==="requests"?t.calls:e==="errors"?t.errorRate:t.avgDurationMs}function We(t,e){return e==="requests"?t.calls.toLocaleString():e==="errors"?`${t.errorRate.toFixed(1)}%`:be(t.avgDurationMs)}function Z(t){return(t.run_config??{}).agent?.id??(t.virtual_mcp_id||null)}function J(t,e,s,n){if(!t)return n;const i=e.find(a=>a.id===t)??s?.find(a=>a.id===t);if(i?.title)return i.title;const l=O(t);return l?U(l).title??n:t}function X(t,e,s){if(!t)return null;const n=e.find(l=>l.id===t)??s?.find(l=>l.id===t);if(n?.icon)return n.icon;const i=O(t);return i?U(i).icon??null:null}function je(t){return t?.data?.members??[]}function V(t){const e=P.c(32),{thread:s,connections:n,virtualMcps:i,nav:l}=t,a=F();let u,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const N=Z(s);u=J(N,i,n,""),c=X(N,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=u,e[4]=c}else u=e[3],c=e[4];const m=c;let h;e[5]!==u||e[6]!==a||e[7]!==s.title?(h=u||s.title||a("orgs.threads.untitledChat"),e[5]=u,e[6]=a,e[7]=s.title,e[8]=h):h=e[8];let o;e[9]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(W,{}),e[9]=o):o=e[9];let d;e[10]!==m||e[11]!==h?(d=r.jsx(Y,{icon:m,name:h,size:"sm",fallbackIcon:o,className:"shadow-sm shrink-0 rounded-md"}),e[10]=m,e[11]=h,e[12]=d):d=e[12];let x;e[13]!==a||e[14]!==s.title?(x=s.title||a("orgs.threads.untitledChat"),e[13]=a,e[14]=s.title,e[15]=x):x=e[15];let b;e[16]!==x?(b=r.jsx(ne,{className:"text-sm leading-snug truncate",children:x}),e[16]=x,e[17]=b):b=e[17];let v;e[18]!==u?(v=u&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:u}),e[18]=u,e[19]=v):v=e[19];let p;e[20]!==b||e[21]!==v?(p=r.jsxs("div",{className:"min-w-0",children:[b,v]}),e[20]=b,e[21]=v,e[22]=p):p=e[22];let f;e[23]!==d||e[24]!==p?(f=r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[d,p]}),e[23]=d,e[24]=p,e[25]=f):f=e[25];let g;e[26]!==l||e[27]!==a?(g=l&&r.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[r.jsx(q,{size:"icon",variant:"ghost",onClick:l.onPrev,disabled:l.index===0,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.previousChat"),children:r.jsx(oe,{size:14})}),r.jsx(q,{size:"icon",variant:"ghost",onClick:l.onNext,disabled:l.index===l.total-1,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.nextChat"),children:r.jsx(ce,{size:14})})]}),e[26]=l,e[27]=a,e[28]=g):g=e[28];let j;return e[29]!==g||e[30]!==f?(j=r.jsx(re,{className:"px-5 md:px-6 pt-6 pb-5 border-b border-border shrink-0",children:r.jsxs("div",{className:"flex items-start justify-between gap-3 pr-8",children:[f,g]})}),e[29]=g,e[30]=f,e[31]=j):j=e[31],j}function ve(t){const e=P.c(62),{thread:s,connections:n,virtualMcps:i,members:l}=t,a=F();let u,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const I=Z(s);u=J(I,i,n,""),c=X(I,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=u,e[4]=c}else u=e[3],c=e[4];const m=c;let h;if(e[5]!==l||e[6]!==s.created_by){const I=je(l);let R;e[8]!==s.created_by?(R=L=>L.userId===s.created_by,e[8]=s.created_by,e[9]=R):R=e[9],h=I.find(R),e[5]=l,e[6]=s.created_by,e[7]=h}else h=e[7];const o=h;let d;e[10]!==o?.user.email||e[11]!==o?.user.name||e[12]!==s.created_by?(d=o?.user.name??o?.user.email??s.created_by?.substring(0,8)??"—",e[10]=o?.user.email,e[11]=o?.user.name,e[12]=s.created_by,e[13]=d):d=e[13];const x=d,b=o?.user.image??void 0;let v;e[14]!==s.created_at?(v=new Date(s.created_at).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),e[14]=s.created_at,e[15]=v):v=e[15];const p=v;let f,g,j,N,C,w;if(e[16]!==a||e[17]!==s.status){const I=ge(s.status),R=I.icon;f="px-5 md:px-6 py-5 border-b border-border grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-4 text-sm";let L;e[24]!==a?(L=a("orgs.threads.status"),e[24]=a,e[25]=L):L=e[25],e[26]!==L?(w=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:L}),e[26]=L,e[27]=w):w=e[27],N="flex items-center gap-1.5",C=r.jsx(R,{size:13,className:I.iconClassName}),g=ae("text-sm",I.labelColor),j=a(I.labelKey),e[16]=a,e[17]=s.status,e[18]=f,e[19]=g,e[20]=j,e[21]=N,e[22]=C,e[23]=w}else f=e[18],g=e[19],j=e[20],N=e[21],C=e[22],w=e[23];let T;e[28]!==g||e[29]!==j?(T=r.jsx("span",{className:g,children:j}),e[28]=g,e[29]=j,e[30]=T):T=e[30];let y;e[31]!==T||e[32]!==N||e[33]!==C?(y=r.jsxs("div",{className:N,children:[C,T]}),e[31]=T,e[32]=N,e[33]=C,e[34]=y):y=e[34];let S;e[35]!==y||e[36]!==w?(S=r.jsxs("div",{children:[w,y]}),e[35]=y,e[36]=w,e[37]=S):S=e[37];let E;e[38]!==a?(E=a("orgs.threads.date"),e[38]=a,e[39]=E):E=e[39];let _;e[40]!==E?(_=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:E}),e[40]=E,e[41]=_):_=e[41];let M;e[42]!==p?(M=r.jsx("div",{className:"text-sm text-foreground",children:p}),e[42]=p,e[43]=M):M=e[43];let D;e[44]!==_||e[45]!==M?(D=r.jsxs("div",{children:[_,M]}),e[44]=_,e[45]=M,e[46]=D):D=e[46];let $;e[47]!==a||e[48]!==s.created_by||e[49]!==b||e[50]!==x?($=s.created_by&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.user")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(le,{url:b,fallback:x,shape:"circle",size:"2xs",className:"shrink-0"}),r.jsx("span",{className:"text-sm text-foreground",children:x})]})]}),e[47]=a,e[48]=s.created_by,e[49]=b,e[50]=x,e[51]=$):$=e[51];let k;e[52]!==m||e[53]!==u||e[54]!==a?(k=u&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.agent")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Y,{icon:m,name:u,size:"xs",fallbackIcon:r.jsx(W,{}),className:"shrink-0 size-5! min-w-5! rounded-md"}),r.jsx("span",{className:"text-sm text-foreground",children:u})]})]}),e[52]=m,e[53]=u,e[54]=a,e[55]=k):k=e[55];let A;return e[56]!==f||e[57]!==S||e[58]!==D||e[59]!==$||e[60]!==k?(A=r.jsxs("div",{className:f,children:[S,D,$,k]}),e[56]=f,e[57]=S,e[58]=D,e[59]=$,e[60]=k,e[61]=A):A=e[61],A}const B=100;function Ne(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.noMessagesInChat"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Me(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingMore"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}const Te=400,ye=5e3;function Se(t,e,s){const n=P.c(8),i=se(),l=G.useRef(null);let a;n[0]!==e||n[1]!==i||n[2]!==s?(a=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,i.invalidateQueries({queryKey:Q.threadMessages(e,s)})},Te)},n[0]=e,n[1]=i,n[2]=s,n[3]=a):a=n[3];const u=a;let c;n[4]!==t||n[5]!==u||n[6]!==s?(c={orgSlug:t,taskId:s,onStep:u,onFinish:u,onReconnect:u},n[4]=t,n[5]=u,n[6]=s,n[7]=c):c=n[7],fe(c)}function _e(t){const e=P.c(36),{client:s,locator:n,thread:i,connections:l,virtualMcps:a,members:u,nav:c,meta:m}=t,{org:h}=te();let o;e[0]!==n||e[1]!==i.id?(o=Q.threadMessages(n,i.id),e[0]=n,e[1]=i.id,e[2]=o):o=e[2];let d;e[3]!==s||e[4]!==i.id?(d=async _=>{const{pageParam:M}=_,D=M===void 0?0:M;if(!s)throw new Error("MCP client is not available");const $=await s.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:i.id,limit:B,offset:D}});return $.structuredContent??$},e[3]=s,e[4]=i.id,e[5]=d):d=e[5];let x;e[6]!==o||e[7]!==d?(x={queryKey:o,queryFn:d,initialPageParam:0,getNextPageParam:Ee,staleTime:0,refetchInterval:ye},e[6]=o,e[7]=d,e[8]=x):x=e[8];const{data:b,fetchNextPage:v,hasNextPage:p,isFetchingNextPage:f}=ie(x);Se(h.slug,n,i.id);let g;e[9]!==b.pages?(g=b.pages.flatMap(Ce).filter(we),e[9]=b.pages,e[10]=g):g=e[10];const j=g,N=ue(j);let C;e[11]!==v||e[12]!==p||e[13]!==f?(C=()=>{p&&!f&&v()},e[11]=v,e[12]=p,e[13]=f,e[14]=C):C=e[14];const w=xe(C,p??!1,f);let T;e[15]!==l||e[16]!==c||e[17]!==i||e[18]!==a?(T=r.jsx(V,{thread:i,connections:l,virtualMcps:a,nav:c}),e[15]=l,e[16]=c,e[17]=i,e[18]=a,e[19]=T):T=e[19];let y;e[20]!==l||e[21]!==u||e[22]!==m||e[23]!==i||e[24]!==a?(y=m&&r.jsx(ve,{thread:i,connections:l,virtualMcps:a,members:u}),e[20]=l,e[21]=u,e[22]=m,e[23]=i,e[24]=a,e[25]=y):y=e[25];let S;e[26]!==f||e[27]!==w||e[28]!==N||e[29]!==j.length||e[30]!==i.status?(S=j.length===0?r.jsx(Ne,{}):r.jsx("div",{"data-chat-scroller":!0,className:"flex-1 overflow-y-auto min-h-0",children:r.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[N.map((_,M)=>r.jsx("div",{ref:M===N.length-1?w:void 0,children:r.jsx(de,{pair:_,isLastPair:M===N.length-1,status:M===N.length-1&&i.status==="in_progress"?"streaming":"ready"})},`pair-${_.user?.id??_.assistant?.id}`)),f&&r.jsx(Me,{})]})}),e[26]=f,e[27]=w,e[28]=N,e[29]=j.length,e[30]=i.status,e[31]=S):S=e[31];let E;return e[32]!==T||e[33]!==y||e[34]!==S?(E=r.jsxs(r.Fragment,{children:[T,y,S]}),e[32]=T,e[33]=y,e[34]=S,e[35]=E):E=e[35],E}function we(t){return t.role==="user"||t.role==="assistant"}function Ce(t){return t.items??[]}function Ee(t,e){const s=t,n=e;if(!((s?.items?.length??0)<B))return n.length*B}function Ie(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.failedToLoadMessages"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function $e(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingConversation"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Ye(t){const e=P.c(31),{thread:s,client:n,locator:i,connections:l,virtualMcps:a,members:u,nav:c,meta:m}=t,h=m===void 0?!0:m;let o;e[0]!==l||e[1]!==c||e[2]!==s||e[3]!==a?(o=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[0]=l,e[1]=c,e[2]=s,e[3]=a,e[4]=o):o=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(Ie,{}),e[5]=d):d=e[5];let x;e[6]!==o?(x=r.jsxs(r.Fragment,{children:[o,d]}),e[6]=o,e[7]=x):x=e[7];let b;e[8]!==l||e[9]!==c||e[10]!==s||e[11]!==a?(b=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[8]=l,e[9]=c,e[10]=s,e[11]=a,e[12]=b):b=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx($e,{}),e[13]=v):v=e[13];let p;e[14]!==b?(p=r.jsxs(r.Fragment,{children:[b,v]}),e[14]=b,e[15]=p):p=e[15];let f;e[16]!==n||e[17]!==l||e[18]!==i||e[19]!==u||e[20]!==h||e[21]!==c||e[22]!==s||e[23]!==a?(f=r.jsx(_e,{client:n,locator:i,thread:s,connections:l,virtualMcps:a,members:u,nav:c,meta:h}),e[16]=n,e[17]=l,e[18]=i,e[19]=u,e[20]=h,e[21]=c,e[22]=s,e[23]=a,e[24]=f):f=e[24];let g;e[25]!==p||e[26]!==f?(g=r.jsx(G.Suspense,{fallback:p,children:f}),e[25]=p,e[26]=f,e[27]=g):g=e[27];let j;return e[28]!==x||e[29]!==g?(j=r.jsx(me,{children:r.jsx(ee,{fallback:x,children:g})}),e[28]=x,e[29]=g,e[30]=j):j=e[30],j}export{Ye as T,Oe as a,Ue as b,be as c,We as d,Qe as e,He as f,qe as g,Ge as h,je as i,Z as j,X as k,J as r};
@@ -1 +0,0 @@
1
- import{r as x,aM as h,j as c,aJ as m,aP as k,aI as p,eD as M,eE as T,aO as S,eF as A,aL as F,ax as D,c as P,l as C}from"./index-gctAQu2T.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[I]=F(v,[T]),w=T(),G=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx($,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(O,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});G.displayName=v;var[z,y]=I(v),$=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),O=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});G.displayName=v;var[B,L]=I(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=w(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(B,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",E=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=L(f,a.__scopeToggleGroup),n=w(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(b,{...o,ref:e})}):c.jsx(b,{...o,ref:e})});E.displayName=f;var b=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),H=G,J=E;const U=D("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),N=x.createContext({size:"default",variant:"default"});function K(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(N.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(N),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(U({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(J,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{K as T,Q as a};
@@ -1 +0,0 @@
1
- import{c,r as u,j as r,l as T,ar as p}from"./index-gctAQu2T.js";const g=u.createContext(null);function m(){const l=u.use(g);if(!l)throw new Error("Toolbar.* must be used inside <Toolbar>");return l}function h(l){const e=c.c(8),{children:t}=l,[s,n]=u.useState(null),[o,a]=u.useState(null),[x,E]=u.useState(null),[b,j]=u.useState(null);let f;e[0]!==x||e[1]!==b||e[2]!==o||e[3]!==s?(f={togglesEl:s,setTogglesEl:n,tabsEl:o,setTabsEl:a,centerEl:x,setCenterEl:E,rightEl:b,setRightEl:j},e[0]=x,e[1]=b,e[2]=o,e[3]=s,e[4]=f):f=e[4];let d;return e[5]!==t||e[6]!==f?(d=r.jsx(g,{value:f,children:t}),e[5]=t,e[6]=f,e[7]=d):d=e[7],d}function i(l){const e=c.c(2),{children:t}=l;let s;return e[0]!==t?(s=r.jsx(h,{children:r.jsx("div",{className:"flex flex-col h-full min-h-0",children:t})}),e[0]=t,e[1]=s):s=e[1],s}function v(l){const e=c.c(10);let t,s,n;e[0]!==l?({children:t,className:s,...n}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=n):(t=e[1],s=e[2],n=e[3]);let o;e[4]!==s?(o=T("relative z-10 shrink-0 grid grid-cols-3 items-center pl-1 pr-2 h-12 bg-sidebar",s),e[4]=s,e[5]=o):o=e[5];let a;return e[6]!==t||e[7]!==n||e[8]!==o?(a=r.jsx("div",{className:o,...n,children:t}),e[6]=t,e[7]=n,e[8]=o,e[9]=a):a=e[9],a}function S(l){const e=c.c(2),{children:t}=l;let s;return e[0]!==t?(s=r.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:t}),e[0]=t,e[1]=s):s=e[1],s}function C(l){const e=c.c(2),{children:t}=l;let s;return e[0]!==t?(s=r.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:t}),e[0]=t,e[1]=s):s=e[1],s}function N(){const l=c.c(2),{setCenterEl:e}=m();let t;return l[0]!==e?(t=r.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),l[0]=e,l[1]=t):t=l[1],t}function $(l){const e=c.c(5),{className:t}=l,{setTabsEl:s}=m();let n;e[0]!==t?(n=T("shrink-0 flex items-center",t),e[0]=t,e[1]=n):n=e[1];let o;return e[2]!==s||e[3]!==n?(o=r.jsx("div",{ref:s,className:n}),e[2]=s,e[3]=n,e[4]=o):o=e[4],o}function R(l){const e=c.c(3),{children:t}=l,{tabsEl:s}=m();if(!s)return null;let n;return e[0]!==t||e[1]!==s?(n=p.createPortal(t,s),e[0]=t,e[1]=s,e[2]=n):n=e[2],n}function w(l){const e=c.c(5),{className:t}=l,{setTogglesEl:s}=m();let n;e[0]!==t?(n=T("contents",t),e[0]=t,e[1]=n):n=e[1];let o;return e[2]!==s||e[3]!==n?(o=r.jsx("div",{ref:s,className:n}),e[2]=s,e[3]=n,e[4]=o):o=e[4],o}function y(){const l=c.c(2),{setRightEl:e}=m();let t;return l[0]!==e?(t=r.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),l[0]=e,l[1]=t):t=l[1],t}i.Provider=h;i.Header=v;i.LeftColumn=S;i.RightColumn=C;i.CenterSlot=N;i.TabsSlot=$;i.Tabs=R;i.TogglesSlot=w;i.RightSlot=y;export{i as T};
@@ -1 +0,0 @@
1
- import{c as A,b as K,r as V,j as t,l as P,o as X,a9 as I,a6 as E,a7 as D}from"./index-gctAQu2T.js";import{u as Z}from"./use-copy-B4PUMZjo.js";import{a as q}from"./markdown-BV0XgGTq.js";import{i as J}from"./Check-BJaMheL7.js";import{a as Q}from"./Copy01-BrL9ZrVF.js";import{a2 as Y}from"./agent-icon-DsGBCBNv.js";import{b as H}from"./format-time-BtXRrtv4.js";const U={openrouter:o=>{const e=o?.openrouter;return typeof e=="object"&&e!==null&&"usage"in e&&typeof e.usage=="object"&&e.usage!==null&&"cost"in e.usage&&typeof e.usage.cost=="number"?e.usage.cost:null}};function ee(o){if(!o?.providerMetadata)return 0;for(const e of Object.values(U)){const s=e(o.providerMetadata);if(s!==null)return s}return 0}function te(){return{inputTokens:0,outputTokens:0,reasoningTokens:0,totalTokens:0,cost:0,cacheReadTokens:0,cacheWriteTokens:0}}function se(o,e){if(!e)return o;const s=e.inputTokenDetails?.cacheReadTokens??e.cachedInputTokens??0,a=e.inputTokenDetails?.cacheWriteTokens??0;return{inputTokens:o.inputTokens+(e.inputTokens??0),outputTokens:o.outputTokens+(e.outputTokens??0),reasoningTokens:o.reasoningTokens+(e.reasoningTokens??0),totalTokens:o.totalTokens+(e.totalTokens??0),cost:o.cost+ee(e),cacheReadTokens:o.cacheReadTokens+s,cacheWriteTokens:o.cacheWriteTokens+a}}function B(o){const e=Math.max(o.inputTokens,o.cacheReadTokens+o.cacheWriteTokens);return e>0?o.cacheReadTokens/e:0}function ue(o){return o.reduce((e,s)=>se(e,s.metadata?.usage),te())}function xe(o){const e=A.c(19),{id:s,part:a,copyable:c,extraActions:i,alwaysShowActions:n,animate:f}=o,r=c===void 0?!1:c,l=n===void 0?!1:n,h=f===void 0?!1:f,{handleCopy:u}=Z(),x=K(),[N,b]=V.useState(!1);let j;e[0]!==u||e[1]!==s||e[2]!==a.text?(j=async()=>{X("chat_message_copied",{message_id:s,chars:a.text.length}),await u(a.text),b(!0),setTimeout(()=>b(!1),2e3)},e[0]=u,e[1]=s,e[2]=a.text,e[3]=j):j=e[3];const T=j,g=r&&i,p=g||i;let d;e[4]!==h||e[5]!==s||e[6]!==a.text?(d=t.jsx(q,{id:s,text:a.text,animate:h}),e[4]=h,e[5]=s,e[6]=a.text,e[7]=d):d=e[7];let m;e[8]!==l||e[9]!==i||e[10]!==T||e[11]!==N||e[12]!==p||e[13]!==g||e[14]!==x?(m=p&&t.jsxs("div",{className:P("flex w-full items-center gap-2 text-sm text-muted-foreground transition-all duration-200 mt-1 py-1",l?"opacity-100":"opacity-0 pointer-events-none group-hover/part:opacity-100 group-hover/part:pointer-events-auto"),children:[i,g&&i&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),g&&t.jsx("button",{type:"button",onClick:T,className:"text-muted-foreground [@media(hover:hover)]:hover:text-foreground transition-colors active:scale-[0.97]","aria-label":x("chat.textPart.copyMessage"),children:N?t.jsx(J,{className:"size-4"}):t.jsx(Q,{className:"size-4"})})]}),e[8]=l,e[9]=i,e[10]=T,e[11]=N,e[12]=p,e[13]=g,e[14]=x,e[15]=m):m=e[15];let k;return e[16]!==d||e[17]!==m?(k=t.jsxs("div",{className:"group/part relative",children:[d,m]}),e[16]=d,e[17]=m,e[18]=k):k=e[18],k}const y=16,z=2.5,G=(y-z)/2,O=2*Math.PI*G;function de(o){const e=A.c(29),{usage:s}=o;if(!s)return null;const{totalTokens:a,inputTokens:c,outputTokens:i,cost:n}=s;if(!a&&!c&&!i)return null;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Y,{size:12}),e[0]=f):f=e[0];let r;e[1]!==n||e[2]!==a?(r=n>0?`$${n.toFixed(4)}`:a.toLocaleString(),e[1]=n,e[2]=a,e[3]=r):r=e[3];let l;e[4]!==r?(l=t.jsx(E,{asChild:!0,children:t.jsxs("span",{className:"inline-flex items-center text-muted-foreground [@media(hover:hover)]:hover:text-foreground pl-1 h-6 gap-1 whitespace-nowrap shrink-0 cursor-default",children:[f,t.jsx("span",{className:"text-sm font-mono tabular-nums",children:r})]})}),e[4]=r,e[5]=l):l=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[6]=h):h=e[6];let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("span",{className:"text-muted",children:"in"}),e[7]=u):u=e[7];let x;e[8]!==c?(x=c.toLocaleString(),e[8]=c,e[9]=x):x=e[9];let N;e[10]!==x?(N=t.jsx("span",{className:"text-right tabular-nums",children:x}),e[10]=x,e[11]=N):N=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"text-muted",children:"out"}),e[12]=b):b=e[12];const j=i-(s.reasoningTokens??0);let T;e[13]!==j?(T=j.toLocaleString(),e[13]=j,e[14]=T):T=e[14];let g;e[15]!==T?(g=t.jsx("span",{className:"text-right tabular-nums",children:T}),e[15]=T,e[16]=g):g=e[16];let p;e[17]!==s?(p=(s.cacheReadTokens>0||s.cacheWriteTokens>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(B(s)*100).toFixed(0)}%`})]}),e[17]=s,e[18]=p):p=e[18];let d;e[19]!==n?(d=n>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",n.toFixed(4)]})]}),e[19]=n,e[20]=d):d=e[20];let m;e[21]!==g||e[22]!==p||e[23]!==d||e[24]!==N?(m=t.jsxs(D,{side:"top",className:"font-mono text-[11px]",children:[h,t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[u,N,b,g,p,d]})]}),e[21]=g,e[22]=p,e[23]=d,e[24]=N,e[25]=m):m=e[25];let k;return e[26]!==m||e[27]!==l?(k=t.jsxs(I,{children:[l,m]}),e[26]=m,e[27]=l,e[28]=k):k=e[28],k}function me(o){const e=A.c(19),{usage:s,duration:a}=o,c=a!=null&&a>0,i=s!=null&&(s.cost??0)>0,n=s!=null&&(s.totalTokens??0)>0;if(!c&&!i&&!n)return null;let f;e[0]!==a||e[1]!==c?(f=c?H(a/1e3):null,e[0]=a,e[1]=c,e[2]=f):f=e[2];const r=f;let l;e[3]!==a||e[4]!==r||e[5]!==s?(l=r&&t.jsxs(I,{children:[t.jsx(E,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:r})}),t.jsxs(D,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"thinking"}),t.jsx("span",{className:"tabular-nums",children:H(a/1e3)}),(s?.reasoningTokens??0)>0&&t.jsxs("span",{className:"ml-2 opacity-50",children:[s.reasoningTokens.toLocaleString()," tok"]})]})]}),e[3]=a,e[4]=r,e[5]=s,e[6]=l):l=e[6];let h;e[7]!==i||e[8]!==c||e[9]!==n?(h=c&&(i||n)&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),e[7]=i,e[8]=c,e[9]=n,e[10]=h):h=e[10];let u;e[11]!==i||e[12]!==n||e[13]!==s?(u=(i||n)&&t.jsxs(I,{children:[t.jsx(E,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:i?`$${s.cost.toFixed(4)}`:`${s.totalTokens.toLocaleString()} tok`})}),t.jsxs(D,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"tokens"}),t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[t.jsx("span",{className:"opacity-60",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:(s.inputTokens??0).toLocaleString()}),t.jsx("span",{className:"opacity-60",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:((s.outputTokens??0)-(s?.reasoningTokens??0)).toLocaleString()}),(s?.reasoningTokens??0)>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"think"}),t.jsx("span",{className:"text-right tabular-nums",children:s.reasoningTokens.toLocaleString()})]}),((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(B(s)*100).toFixed(0)}%`})]})]})]})]}),e[11]=i,e[12]=n,e[13]=s,e[14]=u):u=e[14];let x;return e[15]!==l||e[16]!==h||e[17]!==u?(x=t.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[l,h,u]}),e[15]=l,e[16]=h,e[17]=u,e[18]=x):x=e[18],x}function he(o){const e=A.c(49),{usage:s,totalTokens:a,contextWindow:c,onOpenContextPanel:i}=o,n=Math.min(a/c*100,100),f=O-n/100*O,r=s?.cost??0,l=s?.inputTokens??0,h=s?.outputTokens??0;let u;e[0]!==n?(u=n.toFixed(0),e[0]=n,e[1]=u):u=e[1];let x;e[2]!==r?(x=r>0?`, $${r.toFixed(2)}`:"",e[2]=r,e[3]=x):x=e[3];const N=`Context usage: ${u}%${x}`,b=i?"cursor-pointer":"cursor-default";let j;e[4]!==b?(j=P("flex items-center gap-1.5 text-muted-foreground hover:text-foreground h-6 px-1 shrink-0",b),e[4]=b,e[5]=j):j=e[5];let T;e[6]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("circle",{cx:y/2,cy:y/2,r:G,fill:"none",stroke:"currentColor",strokeWidth:z,className:"opacity-15"}),e[6]=T):T=e[6];const g=n>90?"text-destructive":n>70?"text-warning":"text-muted-foreground";let p;e[7]!==g?(p=P(g),e[7]=g,e[8]=p):p=e[8];let d;e[9]!==f||e[10]!==p?(d=t.jsxs("svg",{width:y,height:y,className:"-rotate-90","aria-hidden":"true",children:[T,t.jsx("circle",{cx:y/2,cy:y/2,r:G,fill:"none",stroke:"currentColor",strokeWidth:z,strokeDasharray:O,strokeDashoffset:f,strokeLinecap:"round",className:p})]}),e[9]=f,e[10]=p,e[11]=d):d=e[11];let m;e[12]!==n?(m=n.toFixed(0),e[12]=n,e[13]=m):m=e[13];let k;e[14]!==r?(k=r>0?` · $${r.toFixed(2)}`:"",e[14]=r,e[15]=k):k=e[15];let v;e[16]!==m||e[17]!==k?(v=t.jsxs("span",{className:"inline-block overflow-hidden whitespace-nowrap max-w-0 opacity-0 transition-[max-width,opacity] duration-200 ease-out @[320px]/chat-bottom:max-w-32 @[320px]/chat-bottom:opacity-100 text-[11px] font-mono tabular-nums",children:[m,"%",k]}),e[16]=m,e[17]=k,e[18]=v):v=e[18];let S;e[19]!==i||e[20]!==v||e[21]!==N||e[22]!==j||e[23]!==d?(S=t.jsx(E,{asChild:!0,children:t.jsxs("button",{type:"button",onClick:i,"aria-label":N,className:j,children:[d,v]})}),e[19]=i,e[20]=v,e[21]=N,e[22]=j,e[23]=d,e[24]=S):S=e[24];let M;e[25]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("span",{className:"text-muted",children:"context"}),e[25]=M):M=e[25];let R;e[26]!==a?(R=a.toLocaleString(),e[26]=a,e[27]=R):R=e[27];let C;e[28]!==c?(C=c.toLocaleString(),e[28]=c,e[29]=C):C=e[29];let _;e[30]!==n?(_=n.toFixed(1),e[30]=n,e[31]=_):_=e[31];let $;e[32]!==R||e[33]!==C||e[34]!==_?($=t.jsxs("span",{className:"text-right tabular-nums",children:[R," / ",C," (",_,"%)"]}),e[32]=R,e[33]=C,e[34]=_,e[35]=$):$=e[35];let w;e[36]!==r||e[37]!==l||e[38]!==h?(w=r>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",r.toFixed(4)]}),t.jsx("span",{className:"text-muted",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:l.toLocaleString()}),t.jsx("span",{className:"text-muted",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:h.toLocaleString()})]}),e[36]=r,e[37]=l,e[38]=h,e[39]=w):w=e[39];let F;e[40]!==s?(F=((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(B(s)*100).toFixed(0)}%`})]}),e[40]=s,e[41]=F):F=e[41];let L;e[42]!==$||e[43]!==w||e[44]!==F?(L=t.jsx(D,{side:"top",className:"font-mono text-[11px]",children:t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[M,$,w,F]})}),e[42]=$,e[43]=w,e[44]=F,e[45]=L):L=e[45];let W;return e[46]!==S||e[47]!==L?(W=t.jsxs(I,{children:[S,L]}),e[46]=S,e[47]=L,e[48]=W):W=e[48],W}export{xe as M,he as S,de as a,se as b,ue as c,me as d,te as e,ee as g};
@@ -1 +0,0 @@
1
- import{c as p,I as m,ac as R,K as h,m as y,z as S,ay as D}from"./index-gctAQu2T.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],M=new Set(P);function O(o){return M.has(o)}const A={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},v={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},L={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},T={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},K={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},w={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function _(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function x(o){return _(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function I(o){const e=_(o);return e.includes("deepresearch")?!1:q.some(t=>e.includes(t))}function C(o){return o.asyncResearch!==!0&&I(o.modelId)}function F(o){return o.asyncResearch===!0||x(o.modelId)||I(o.modelId)}function u(o,e,t,n){for(const i of t){const s=o.find(a=>a.modelId===i);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const i of t){const s=o.find(a=>a.modelId.includes(i));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const i=o.find(n);if(i)return{keyId:e,modelId:i.modelId,title:i.title}}return null}function b(o,e){const t={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const i=e[n.id]??[],s=n.providerId;t.chat.fast||(t.chat.fast=u(i,n.id,A[s]??[])),t.chat.smart||(t.chat.smart=u(i,n.id,v[s]??[])),t.chat.thinking||(t.chat.thinking=u(i,n.id,L[s]??[])),t.image||(t.image=u(i,n.id,T[s]??[],a=>a.capabilities?.includes("image")===!0)),t.webSearch||(t.webSearch=u(i,n.id,K[s]??[],C)),t.deepResearch||(t.deepResearch=u(i,n.id,w[s]??[],F))}return t}function H(o,e){return{queryKey:h.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await D(o,"AI_PROVIDER_KEY_LIST",{})}}function $(){const o=p.c(7),{org:e}=m(),t=R();let n;o[0]!==e.id?(n=h.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let i;o[2]!==t?(i=async()=>await t.call("AI_PROVIDERS_LIST",{}),o[2]=t,o[3]=i):i=o[3];let s;o[4]!==n||o[5]!==i?(s={queryKey:n,staleTime:1/0,queryFn:i},o[4]=n,o[5]=i,o[6]=s):s=o[6];const{data:a}=S(s);return a}function N(){const o=p.c(5),{org:e}=m();let t;o[0]!==e.id||o[1]!==e.slug?(t=H(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=t):t=o[2];const{data:n}=S(t);let i;return o[3]!==n?.keys?(i=n?.keys??[],o[3]=n?.keys,o[4]=i):i=o[4],i}function z(){const o=p.c(2),e=N();let t;return o[0]!==e?(t=e.filter(Q),o[0]=e,o[1]=t):t=o[1],t}function Q(o){return O(o.providerId)}function E(o){const e=p.c(15),{org:t}=m(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o??""),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==i||e[7]!==s||e[8]!==a?(r={queryKey:i,enabled:s,staleTime:6e4,queryFn:a},e[6]=i,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function B(o){const e=p.c(8),t=o[0],n=o[1],i=o[2],{models:s}=E(t?.id),{models:a}=E(n?.id),{models:r}=E(i?.id);let l;if(e[0]!==t||e[1]!==n||e[2]!==i||e[3]!==o||e[4]!==s||e[5]!==a||e[6]!==r){const c={};t?.id&&(c[t.id]=s),n?.id&&(c[n.id]=a),i?.id&&(c[i.id]=r),l=b(o,c),e[0]=t,e[1]=n,e[2]=i,e[3]=o,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function G(o){const e=p.c(11),{org:t}=m(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==i||e[7]!==s?(a={queryKey:i,staleTime:6e4,queryFn:s},e[6]=i,e[7]=s,e[8]=a):a=e[8];const{data:r}=S(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{B as a,E as b,F as c,$ as d,N as e,O as f,G as g,C as i,b as p,z as u};
@@ -1 +0,0 @@
1
- import{c as U,I as q,ac as M,K as T,m as Q,n as w,e as y,t as m,x as z}from"./index-gctAQu2T.js";import{u as J}from"./use-mcp-client-CzGi1Gun.js";function V(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function et(t){const e=U.c(12),{org:s}=q(),l=t??z;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==l?(a={connectionId:l,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l,e[3]=a):a=e[3];const i=J(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(V)},e[6]=i,e[7]=o):o=e[7];const c=!!t;let r;return e[8]!==n||e[9]!==o||e[10]!==c?(r={queryKey:n,queryFn:o,enabled:c,staleTime:3e4},e[8]=n,e[9]=o,e[10]=c,e[11]=r):r=e[11],Q(r)}function st(t){const e=U.c(9),{org:s}=q(),l=M();let a;e[0]!==s.id||e[1]!==t?(a=T.automations(s.id,t),e[0]=s.id,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==l||e[4]!==t?(i=async()=>(await l.call("AUTOMATION_LIST",t!=null?{virtual_mcp_id:t}:{})).automations,e[3]=l,e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==a||e[7]!==i?(n={queryKey:a,queryFn:i,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n):n=e[8],Q(n)}function it(t){const e=U.c(10),{org:s}=q(),l=M();let a;e[0]!==t||e[1]!==s.id?(a=T.automation(s.id,t),e[0]=t,e[1]=s.id,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==l?(i=async()=>(await l.call("AUTOMATION_GET",{id:t})).automation,e[3]=t,e[4]=l,e[5]=i):i=e[5];const n=!!t;let o;return e[6]!==a||e[7]!==i||e[8]!==n?(o={queryKey:a,queryFn:i,enabled:n,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n,e[9]=o):o=e[9],Q(o)}function ot(t,e){const s=U.c(12),{org:l}=q(),a=M();let i;s[0]!==t||s[1]!==l.id||s[2]!==e?(i=T.automationRunStats(l.id,t,JSON.stringify(e??{})),s[0]=t,s[1]=l.id,s[2]=e,s[3]=i):i=s[3];let n;s[4]!==t||s[5]!==e||s[6]!==a?(n=async()=>await a.call("AUTOMATION_RUN_STATS",{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}),s[4]=t,s[5]=e,s[6]=a,s[7]=n):n=s[7];const o=!!t;let c;return s[8]!==i||s[9]!==n||s[10]!==o?(c={queryKey:i,queryFn:n,enabled:o,staleTime:3e4},s[8]=i,s[9]=n,s[10]=o,s[11]=c):c=s[11],Q(c)}function at(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function nt(){const t=U.c(64),{org:e}=q(),s=M(),l=w();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let c;t[6]!==s?(c=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=c):c=t[7];let r;t[8]!==i?(r=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=r):r=t[9];let d;t[10]!==c||t[11]!==r?(d={mutationFn:c,onSuccess:r,onError:X},t[10]=c,t[11]=r,t[12]=d):d=t[12];const D=y(d);let A;t[13]!==s?(A=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=A):A=t[14];let p;t[15]!==i||t[16]!==o?(p=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=p):p=t[17];let G;t[18]!==A||t[19]!==p?(G={mutationFn:A,onSuccess:p,onError:W},t[18]=A,t[19]=p,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:H},t[27]=g,t[28]=_,t[29]=$):$=t[29];const k=y($);let E;t[30]!==s?(E=async u=>await s.call("AUTOMATION_TRIGGER_ADD",u),t[30]=s,t[31]=E):E=t[31];let S;t[32]!==i||t[33]!==o?(S=u=>{i(),o(u.automation_id)},t[32]=i,t[33]=o,t[34]=S):S=t[34];let K;t[35]!==E||t[36]!==S?(K={mutationFn:E,onSuccess:S},t[35]=E,t[36]=S,t[37]=K):K=t[37];const x=y(K);let O;t[38]!==s?(O=async u=>await s.call("AUTOMATION_TRIGGER_ROTATE_TOKEN",{trigger_id:u.trigger_id}),t[38]=s,t[39]=O):O=t[39];let R;t[40]!==i||t[41]!==o?(R=(u,f)=>{i(),o(f.automation_id)},t[40]=i,t[41]=o,t[42]=R):R=t[42];let C;t[43]!==O||t[44]!==R?(C={mutationFn:O,onSuccess:R},t[43]=O,t[44]=R,t[45]=C):C=t[45];const P=y(C);let F;t[46]!==s?(F=async u=>await s.call("AUTOMATION_TRIGGER_REMOVE",{trigger_id:u.trigger_id}),t[46]=s,t[47]=F):F=t[47];let N;t[48]!==i||t[49]!==o?(N=(u,f)=>{i(),o(f.automation_id)},t[48]=i,t[49]=o,t[50]=N):N=t[50];let b;t[51]!==F||t[52]!==N?(b={mutationFn:F,onSuccess:N},t[51]=F,t[52]=N,t[53]=b):b=t[53];const h=y(b);let I;t[54]!==s?(I={mutationFn:async u=>await s.call("AUTOMATION_RUN",{id:u}),onSuccess:B,onError:Y},t[54]=s,t[55]=I):I=t[55];const v=y(I);let L;return t[56]!==D||t[57]!==k||t[58]!==v||t[59]!==x||t[60]!==h||t[61]!==P||t[62]!==j?(L={create:D,update:j,remove:k,triggerAdd:x,triggerRemove:h,triggerRotateToken:P,run:v},t[56]=D,t[57]=k,t[58]=v,t[59]=x,t[60]=h,t[61]=P,t[62]=j,t[63]=L):L=t[63],L}function Y(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function B(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function H(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to delete automation: ${e}`)}function W(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to update automation: ${e}`)}function X(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to create automation: ${e}`)}export{nt as a,at as b,et as c,it as d,ot as e,st as u};
@@ -1 +0,0 @@
1
- import{c as D,I as N,W as M,m,K as R,x as Q,e5 as L,C as v,y as F}from"./index-gctAQu2T.js";import{m as T}from"./use-mcp-client-CzGi1Gun.js";import{u as h}from"./companions-core-CZwGf1b1.js";function A(e){return e?e.run_in_progress?"generating":e.scanned_at?"ready":"none":"none"}function K(e){return e.connectionQueryPending?!0:!e.hasConnection||e.cdClientFailed?!1:e.diagnosticQueryPending}const x=2e4;function U(e){if(typeof e!="string"||!e)return null;try{return new URL(e).hostname||null}catch{return null}}function W(){const e=D.c(24),{org:n}=N(),t=M.COMMERCE_DISCOVERY(n.id);let l;e[0]!==n.id||e[1]!==n.slug?(l=T({connectionId:Q,orgId:n.id,orgSlug:n.slug}),e[0]=n.id,e[1]=n.slug,e[2]=l):l=e[2];const{data:f}=m(l),u=m({queryKey:R.commerceDiscoveryConnection(n.id,t),enabled:!!f,retry:!1,staleTime:6e4,queryFn:async()=>{if(!f)throw new Error("selfClient not ready");const S=await f.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:t}});return h(S)}}),C=u.data?.item??null,{data:s,isError:y}=m({...T({connectionId:t,orgId:n.id,orgSlug:n.slug}),enabled:!!C}),E=R.commerceDiscoveryDiagnostic(n.id,t),p=!!s;let o;e[3]!==s?(o=async()=>{if(!s)throw new Error("cdClient not ready");const S=await s.callTool({name:L,arguments:{}});return h(S).diagnostic??null},e[3]=s,e[4]=o):o=e[4];let d;e[5]!==E||e[6]!==p||e[7]!==o?(d={queryKey:E,enabled:p,retry:1,refetchInterval:b,queryFn:o},e[5]=E,e[6]=p,e[7]=o,e[8]=d):d=e[8];const r=m(d),i=C?.metadata?.siteUrl,I=r.data??null,w=r.isSuccess,_=!!C;let c;e[9]!==y||e[10]!==u.isPending||e[11]!==r.isPending||e[12]!==_?(c=K({connectionQueryPending:u.isPending,hasConnection:_,cdClientFailed:y,diagnosticQueryPending:r.isPending}),e[9]=y,e[10]=u.isPending,e[11]=r.isPending,e[12]=_,e[13]=c):c=e[13];const O=typeof i=="string"&&i?i:null;let a;e[14]!==i?(a=U(i),e[14]=i,e[15]=a):a=e[15];const P=s??null;let g;return e[16]!==t||e[17]!==r.isSuccess||e[18]!==a||e[19]!==P||e[20]!==I||e[21]!==c||e[22]!==O?(g={diagnostic:I,isSuccess:w,isLoading:c,siteUrl:O,host:a,connectionId:t,cdClient:P},e[16]=t,e[17]=r.isSuccess,e[18]=a,e[19]=P,e[20]=I,e[21]=c,e[22]=O,e[23]=g):g=e[23],g}function b(e){return e.state.status!=="error"&&A(e.state.data)==="generating"?x:!1}function j(e,n){return{to:v.app,params:{org:e.slug,agentId:F(e.id),connectionId:n,toolName:L},search:{}}}export{j as c,A as d,W as u};