decocms 4.516.0 → 4.517.0

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 (409) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-BviJ1RJ0.js → ActiveShapeUtils-BB436TvV.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-BzjzqqRa.js → AlertCircle-Cch634f7.js} +1 -1
  3. package/dist/client/assets/{AreaChart-DxdfvWkl.js → AreaChart-CpsihjcZ.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-D9e74CxD.js → ArrowLeft-CohopnCT.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BbhuuuwV.js → ArrowUp-DLUdomd9.js} +1 -1
  6. package/dist/client/assets/{BarChart-C6YMYkiP.js → BarChart-DC5-aC-9.js} +1 -1
  7. package/dist/client/assets/{Building02-C2flUGF-.js → Building02-BHJQSDUK.js} +1 -1
  8. package/dist/client/assets/{CartesianChart-CPZndNAT.js → CartesianChart-dMOiAgfo.js} +1 -1
  9. package/dist/client/assets/{CategoricalChart-BjLODSSF.js → CategoricalChart-BCAB1JR1.js} +1 -1
  10. package/dist/client/assets/{CheckCircle-4gdTBGy6.js → CheckCircle-Cs8i9zYt.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-YTUkgDHg.js → ChevronSelectorVertical-C5d75KyY.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-BnA2Nw_G.js → ChevronUp-BT7eMKPK.js} +1 -1
  13. package/dist/client/assets/{Copy01-DK6eLr2i.js → Copy01-B341DqLV.js} +1 -1
  14. package/dist/client/assets/{CreditCard01-CMqZSaqi.js → CreditCard01-4Fwr0tNh.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-C4UAKneF.js → DotsVertical-DbrlDgFh.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-bVCQsHLU.js → ErrorBarContext-t45nElJh.js} +1 -1
  17. package/dist/client/assets/{Globe04-DEY1e_cW.js → Globe04-BE6c1UDj.js} +1 -1
  18. package/dist/client/assets/{Image01-DwBREChx.js → Image01-hTzc15CE.js} +1 -1
  19. package/dist/client/assets/{Key01-MBTcw2W0.js → Key01-kTu6t6u_.js} +1 -1
  20. package/dist/client/assets/{Link01-CHLntxrX.js → Link01-hfA48cFL.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-CTiL1Fp-.js → LinkBroken01-Dioz3u9i.js} +1 -1
  22. package/dist/client/assets/{Minus-BCeBycMD.js → Minus-DqDPTtRG.js} +1 -1
  23. package/dist/client/assets/{Monitor01-DtC0vfP6.js → Monitor01-Bz6QaUO4.js} +1 -1
  24. package/dist/client/assets/{Play-DV5Ma4c6.js → Play-CByslM3d.js} +1 -1
  25. package/dist/client/assets/{Plus-CxQiW556.js → Plus-Dewm72je.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-CyFWmCIf.js → ReferenceLine-DV9hYxt_.js} +1 -1
  27. package/dist/client/assets/{SearchMd-CYuw_TlP.js → SearchMd-7Jo0ZofC.js} +1 -1
  28. package/dist/client/assets/{Sector-7HoHBp31.js → Sector-D64VY8hG.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-hqBb4euZ.js → ShoppingBag01-BStpgW0a.js} +1 -1
  30. package/dist/client/assets/{Sun-_7OyKm8q.js → Sun-C37Hpdko.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-Ik-Wu8bp.js → SwitchHorizontal01-CrC4ThKg.js} +1 -1
  32. package/dist/client/assets/{Tool01-CEmvRWh7.js → Tool01-2gJDR0Ho.js} +1 -1
  33. package/dist/client/assets/{Trash01-7PWQCtvD.js → Trash01-DjE7Raat.js} +1 -1
  34. package/dist/client/assets/{Upload01-d0p8GdRf.js → Upload01-CYfTR3aZ.js} +1 -1
  35. package/dist/client/assets/{User01-CvsUVXiw.js → User01-X6IeKYZH.js} +1 -1
  36. package/dist/client/assets/{UserSquare-CRvybnC2.js → UserSquare-pmxb5ZdZ.js} +1 -1
  37. package/dist/client/assets/{Users01-BpDVBOEG.js → Users01-uKJoVSle.js} +1 -1
  38. package/dist/client/assets/{XClose-CjXzVHwC.js → XClose-BVxVAZ6V.js} +1 -1
  39. package/dist/client/assets/{ZoomOut-CLJKIGNa.js → ZoomOut-DixQygt2.js} +1 -1
  40. package/dist/client/assets/{access-gate-C_XxaZ28.js → access-gate-BpfEc6VH.js} +1 -1
  41. package/dist/client/assets/{add-connection-dialog-TX2J4mBu.js → add-connection-dialog-BZwLO1Ja.js} +1 -1
  42. package/dist/client/assets/agent-analytics-Cb2tda3-.js +1 -0
  43. package/dist/client/assets/agent-app-HX00w6TV.js +1 -0
  44. package/dist/client/assets/{agent-assets-DzeNVWVS.js → agent-assets-e6Gk5J-Q.js} +1 -1
  45. package/dist/client/assets/{agent-automation-fasQYxyE.js → agent-automation-jGwXvC8f.js} +1 -1
  46. package/dist/client/assets/{agent-automations-CFCWY442.js → agent-automations-DzW1crP1.js} +1 -1
  47. package/dist/client/assets/agent-calendar-DCHNIRTc.js +1 -0
  48. package/dist/client/assets/{agent-connect-sources-CUS1mQBU.js → agent-connect-sources-6bCKMOK5.js} +1 -1
  49. package/dist/client/assets/agent-deck-BV-5B8og.js +1 -0
  50. package/dist/client/assets/{agent-e2e-JX70_ikL.js → agent-e2e-DwASXEee.js} +1 -1
  51. package/dist/client/assets/agent-experiments-DetDutY3.js +1 -0
  52. package/dist/client/assets/agent-file-BvfhZ3mT.js +1 -0
  53. package/dist/client/assets/{agent-hosting-DXYhe_Ly.js → agent-hosting-BVT3wdCc.js} +1 -1
  54. package/dist/client/assets/{agent-icon-DhApO92C.js → agent-icon-CiKTiUdq.js} +1 -1
  55. package/dist/client/assets/agent-library-DSuyqe6T.js +1 -0
  56. package/dist/client/assets/agent-library-file-B1l2ZLvA.js +1 -0
  57. package/dist/client/assets/{agent-monitor-DGuiH3_O.js → agent-monitor-C_MtaF0x.js} +1 -1
  58. package/dist/client/assets/{agent-overview-DGX_nSiA.js → agent-overview-BaJQVLzH.js} +1 -1
  59. package/dist/client/assets/{agent-releases-B4Wvo_4b.js → agent-releases-rSbadgkl.js} +1 -1
  60. package/dist/client/assets/agent-settings-DCjo4ZYC.js +1 -0
  61. package/dist/client/assets/{agent-site-editor-CLwG7od-.js → agent-site-editor-DGIssniL.js} +1 -1
  62. package/dist/client/assets/agent-site-editor-code-BVwfCzHc.js +2 -0
  63. package/dist/client/assets/agent-site-editor-content-BU-vFmu-.js +1 -0
  64. package/dist/client/assets/agent-site-editor-preview-Coo-Ni4u.js +1 -0
  65. package/dist/client/assets/agent-view-CftHb5tC.js +1 -0
  66. package/dist/client/assets/{agent-view-guard-wNwTHz77.js → agent-view-guard-Cz_9FSeB.js} +1 -1
  67. package/dist/client/assets/{agents-list-Cikp_zRW.js → agents-list-BehVRlw8.js} +1 -1
  68. package/dist/client/assets/{ai-providers-BSKNGjn3.js → ai-providers-Cfzh0dop.js} +1 -1
  69. package/dist/client/assets/{alert-DK8EW5eY.js → alert-DlpN1nbO.js} +1 -1
  70. package/dist/client/assets/{alert-dialog--q-PWeut.js → alert-dialog-BdWXpnme.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-DMQ7rbtm.js → analytics-sections-CBRurMfi.js} +1 -1
  72. package/dist/client/assets/{analytics-tab-DBS1a1Hh.js → analytics-tab-Bu3yOSFE.js} +1 -1
  73. package/dist/client/assets/{api-keys-Dq1k7MiZ.js → api-keys-SwcfBYZn.js} +1 -1
  74. package/dist/client/assets/api-keys-jGYtI-cW.js +1 -0
  75. package/dist/client/assets/{app-editor-CrjU5dmy.js → app-editor-BzaLO82-.js} +1 -1
  76. package/dist/client/assets/{asset-utils-DobQJkEL.js → asset-utils-CYj7sEud.js} +1 -1
  77. package/dist/client/assets/{auth-BCqAeFp3.js → auth-DVebpHI3.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-BZEwAlpH.js → auth-catchall-CM988zgH.js} +1 -1
  79. package/dist/client/assets/{auth-entry-Buz4HmC0.js → auth-entry-BM6bA3ji.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-C7U-I3vQ.js → auth-split-layout-BnlVBIeL.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-BAReQnW9.js → authenticate-and-persist-oauth-qcbNyaRp.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-DYoDbKDa.js → automation-list-row-BIlvc0v-.js} +1 -1
  83. package/dist/client/assets/{automation-runs-DS3JbQ2r.js → automation-runs-jRApvuta.js} +1 -1
  84. package/dist/client/assets/{automations-DnYOtmr4.js → automations-DMHgje9o.js} +1 -1
  85. package/dist/client/assets/{autosend-CC_H9WVC.js → autosend-BTx7-p6a.js} +1 -1
  86. package/dist/client/assets/{avatar-BCxNXTas.js → avatar-DjIkOwsx.js} +1 -1
  87. package/dist/client/assets/{badge-Ccv2yax2.js → badge-BfMggcm8.js} +1 -1
  88. package/dist/client/assets/{block-document-pbAqRC0D.js → block-document-DKju3Lsl.js} +1 -1
  89. package/dist/client/assets/{blocks-preview-workspace-context-CAntUw6y.js → blocks-preview-workspace-context-AokvrTWO.js} +1 -1
  90. package/dist/client/assets/{blocks-tab-states-B-gG8PUG.js → blocks-tab-states-5tpSikld.js} +1 -1
  91. package/dist/client/assets/{blog-schema-DP6BXJ_v.js → blog-schema-B8hGgOKc.js} +1 -1
  92. package/dist/client/assets/{buckets-YwJbmX1H.js → buckets-DzW1ArnB.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-yJWFG-Qh.js → build-improve-prompt-doc-BGKe2ED3.js} +1 -1
  94. package/dist/client/assets/{calendar-CWZHYNsm.js → calendar-kdikRXDO.js} +1 -1
  95. package/dist/client/assets/{campaigns-view-BJ3dqrez.js → campaigns-view-CXUV2H04.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-ClFcG_k7.js → capability-load-error-BuC7MxXm.js} +1 -1
  97. package/dist/client/assets/{category-editor-BdRz9cOQ.js → category-editor-jRguVRoH.js} +1 -1
  98. package/dist/client/assets/{chart-ecSSTZTh.js → chart-aHPEwhl0.js} +1 -1
  99. package/dist/client/assets/{chat-context-BE5W0eRy.js → chat-context-BEyCIAaN.js} +1 -1
  100. package/dist/client/assets/{chat-draft-Bc38hokV.js → chat-draft-Dql_zG1A.js} +1 -1
  101. package/dist/client/assets/{checkbox-BUQlb_zR.js → checkbox-R6Pm_B33.js} +1 -1
  102. package/dist/client/assets/{choose-editor-CTk7V5dU.js → choose-editor-C1zV1Fp9.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-PigkRVuP.js → cli-auth-success-Dw0y5N0L.js} +1 -1
  104. package/dist/client/assets/{client-icons-CfYl7gN_.js → client-icons-C_WiAP0u.js} +1 -1
  105. package/dist/client/assets/cms-settings-editor-BAGntXvx.js +1 -0
  106. package/dist/client/assets/{collapsible-CUpe_nLN.js → collapsible-BcZaehP2.js} +1 -1
  107. package/dist/client/assets/{collection-detail-DMeJtWOq.js → collection-detail-AO17C_8B.js} +1 -1
  108. package/dist/client/assets/{collection-display-button-BA8_qWgd.js → collection-display-button-C0cYhq66.js} +1 -1
  109. package/dist/client/assets/{collection-search-D3DfnNEj.js → collection-search-7sBPioRN.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-BpHyZuIk.js → collection-table-wrapper-BzgZq6u7.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-BeE9JyBt.js → collection-tabs-DMsbicTn.js} +1 -1
  112. package/dist/client/assets/{column-rules-HrQ_91De.js → column-rules-CBkHBJjn.js} +1 -1
  113. package/dist/client/assets/{combobox-pGuSce6D.js → combobox-CEzxugDA.js} +1 -1
  114. package/dist/client/assets/{command-Due3aGE_.js → command-KmLWWmqo.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-B_r6DOQv.js → companion-mcps-section-vJ3FRpYP.js} +1 -1
  116. package/dist/client/assets/{config-4MxJL_Fy.js → config-0t8v4_10.js} +1 -1
  117. package/dist/client/assets/{connect-BmT0JQ1F.js → connect-Ceo_a42v.js} +1 -1
  118. package/dist/client/assets/{connect-layout-2QgFH1-_.js → connect-layout-DXn91Bwy.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-_wKkm_O5.js → connect-source-dialog-DCA13Vr9.js} +1 -1
  120. package/dist/client/assets/{connection-z8RZuoJq.js → connection-BXCm7RUN.js} +1 -1
  121. package/dist/client/assets/{connection-card-CawZtrlG.js → connection-card-DudSxk_f.js} +1 -1
  122. package/dist/client/assets/{connection-detail-Dm8uTSp4.js → connection-detail-Bzj7ZAYC.js} +1 -1
  123. package/dist/client/assets/{connection-form-helpers-_rP_t0oA.js → connection-form-helpers-BCgvOrMH.js} +1 -1
  124. package/dist/client/assets/{connections-DY1nEMCe.js → connections-DZsQ6PqI.js} +1 -1
  125. package/dist/client/assets/{content-tab-BMyhmLPO.js → content-tab-B8CAyeYn.js} +3 -3
  126. package/dist/client/assets/{context-Br81mOVA.js → context-Dxx9Nppi.js} +1 -1
  127. package/dist/client/assets/{context-menu-wXhD1da2.js → context-menu-Bup14w-O.js} +1 -1
  128. package/dist/client/assets/{context-shell-CSyiGVu3.js → context-shell-YuMc6M7u.js} +3 -3
  129. package/dist/client/assets/{core.esm-C9O_xZ-F.js → core.esm-BmE_KURk.js} +1 -1
  130. package/dist/client/assets/{create-organization-dialog-BULehCnN.js → create-organization-dialog-oYjru5bh.js} +1 -1
  131. package/dist/client/assets/{daily-pulse-Biczsq5_.js → daily-pulse-Cj6zflmn.js} +1 -1
  132. package/dist/client/assets/{discover-DY6Qihlm.js → discover-BsfuhgQD.js} +1 -1
  133. package/dist/client/assets/{domain-settings-D_mRu3Vm.js → domain-settings-BCFlmNLU.js} +1 -1
  134. package/dist/client/assets/{drawer-BXIYbAX4.js → drawer-Bi1-udV5.js} +1 -1
  135. package/dist/client/assets/{editor-DfNlEhGy.js → editor-DAekV0he.js} +1 -1
  136. package/dist/client/assets/{editor-classes-BgZFSVD_.js → editor-classes-BaBC2QPU.js} +1 -1
  137. package/dist/client/assets/{empty-state-DHTpGmzV.js → empty-state-B4dSQMeM.js} +1 -1
  138. package/dist/client/assets/{empty-state-DK4d2ph4.js → empty-state-wXIjf_EN.js} +1 -1
  139. package/dist/client/assets/{experiments-tab-Bxbw5NAx.js → experiments-tab-PntzDOfu.js} +1 -1
  140. package/dist/client/assets/{experiments-tab-choice-Du4Lvv_w.js → experiments-tab-choice-CQ5EsK8h.js} +1 -1
  141. package/dist/client/assets/{extract-connection-data-9sczZwO0.js → extract-connection-data-Bg9K46Rs.js} +1 -1
  142. package/dist/client/assets/{feature-gate-b0u-JPA_.js → feature-gate-4u7sb4lR.js} +1 -1
  143. package/dist/client/assets/{feature-paywall-BarXN_Ju.js → feature-paywall-BsVH1P4Z.js} +1 -1
  144. package/dist/client/assets/{file-explorer-DnOLSPWJ.js → file-explorer-CsBngoR2.js} +1 -1
  145. package/dist/client/assets/{file-preview-Cak1nE11.js → file-preview-CVVpAx14.js} +1 -1
  146. package/dist/client/assets/{file-share-button-kIwp5G-u.js → file-share-button-Dh2OblA7.js} +1 -1
  147. package/dist/client/assets/{file-type-icon-6tQy_IZ-.js → file-type-icon-DYeFNgMs.js} +1 -1
  148. package/dist/client/assets/{folder-icon-R5rTkj7V.js → folder-icon-CMfbCZZj.js} +1 -1
  149. package/dist/client/assets/{form-DuWo7Npn.js → form-BGI3x6he.js} +1 -1
  150. package/dist/client/assets/{general-Cez86_jx.js → general-AgdwRV2K.js} +1 -1
  151. package/dist/client/assets/{home-3R5Jmd9M.js → home-B3JLIiqG.js} +1 -1
  152. package/dist/client/assets/{hosted-publish-api-CReqocob.js → hosted-publish-api-Cg6A3e6a.js} +1 -1
  153. package/dist/client/assets/{hosted-publish-feedback-BuFauPpC.js → hosted-publish-feedback-R86hK4rw.js} +1 -1
  154. package/dist/client/assets/{icon-button-DetNbpEP.js → icon-button-Du_O8eku.js} +1 -1
  155. package/dist/client/assets/{index-DjG04H6F.js → index-BEaGR-Ng.js} +1 -1
  156. package/dist/client/assets/{index-BdhYTUJI.js → index-BWEksKOa.js} +1 -1
  157. package/dist/client/assets/{index-CkQE3ies.js → index-BXwVgYyP.js} +1 -1
  158. package/dist/client/assets/{index-D_jzSCP9.js → index-BeWb3VLq.js} +7 -7
  159. package/dist/client/assets/{index-BOTs238f.js → index-BflgjdLH.js} +1 -1
  160. package/dist/client/assets/{index-B0KYQovx.js → index-BliYmmPu.js} +1 -1
  161. package/dist/client/assets/{index-CRcEuXTH.js → index-BnbMIYQC.js} +1 -1
  162. package/dist/client/assets/{index-Cl9QwptG.js → index-CEnumkKh.js} +1 -1
  163. package/dist/client/assets/{index-Nkc_avaN.js → index-CcDpskhn.js} +1 -1
  164. package/dist/client/assets/{index-DHWYq2vY.js → index-CdhgpKbn.js} +1 -1
  165. package/dist/client/assets/{index-DppGNDNw.js → index-CkwxAoM4.js} +1 -1
  166. package/dist/client/assets/{index-C9OicJ74.js → index-CqX2WR0x.js} +1 -1
  167. package/dist/client/assets/{index-CU2v_61i.js → index-CqllmV-p.js} +1 -1
  168. package/dist/client/assets/{index-DlAj9KxS.js → index-DVxNOEMj.js} +1 -1
  169. package/dist/client/assets/{index-DyvCBoQO.js → index-Dw3D39xs.js} +1 -1
  170. package/dist/client/assets/{index-redirect-ZRzjZAU7.js → index-redirect-BpERt5XK.js} +1 -1
  171. package/dist/client/assets/{infiniteQueryObserver-nO7Ij1Gh.js → infiniteQueryObserver-BOCgDRcQ.js} +1 -1
  172. package/dist/client/assets/{infra-billing-BzKPkpZz.js → infra-billing-443Q4BKf.js} +1 -1
  173. package/dist/client/assets/{input-BS1vg5HJ.js → input-D1nDj3Gx.js} +3 -3
  174. package/dist/client/assets/{input---GPY-WG.js → input-D9vH1igB.js} +1 -1
  175. package/dist/client/assets/{integration-icon-BKkvrbiZ.js → integration-icon-VoZokpOe.js} +1 -1
  176. package/dist/client/assets/{jira-icon-CNOdA3T8.js → jira-icon-BOD4UX3O.js} +1 -1
  177. package/dist/client/assets/{label-BHfVaXR7.js → label-TKhfC6jr.js} +1 -1
  178. package/dist/client/assets/{layout-CDcVgS1C.js → layout-OvvfNrHJ.js} +1 -1
  179. package/dist/client/assets/{legacy-agents-deep-DPDWZmqy.js → legacy-agents-deep-Bj2cFPCz.js} +1 -1
  180. package/dist/client/assets/{legacy-main-redirect-Cg_g45Jd.js → legacy-main-redirect-Y-IABTgs.js} +1 -1
  181. package/dist/client/assets/library-CEpc5ko6.js +1 -0
  182. package/dist/client/assets/{login-wOfUg9Nh.js → login-d1G00P7v.js} +1 -1
  183. package/dist/client/assets/{markdown-Cd88osrX.js → markdown-D_Bab0vD.js} +1 -1
  184. package/dist/client/assets/{mcp-app-renderer-CFMsjvxz.js → mcp-app-renderer-C5DYTOzS.js} +1 -1
  185. package/dist/client/assets/{mcp-oauth-CReJrypj.js → mcp-oauth-Bv0ymH6e.js} +1 -1
  186. package/dist/client/assets/{mcp-oauth-DQ_xwjzU.js → mcp-oauth-gJmjFND6.js} +1 -1
  187. package/dist/client/assets/{members-EL9Mc9m1.js → members-CGCmgk2j.js} +1 -1
  188. package/dist/client/assets/{memory-BawNPVGj.js → memory-DjHNNPOW.js} +1 -1
  189. package/dist/client/assets/{mini-report-page-BAVRLfhx.js → mini-report-page-BSYlfSmZ.js} +1 -1
  190. package/dist/client/assets/{mock-board-CUvkl6Lq.js → mock-board-BCQJ9AHq.js} +3 -3
  191. package/dist/client/assets/{monaco-editor-q0K0FpZQ.js → monaco-editor-CVRVgXSh.js} +1 -1
  192. package/dist/client/assets/monitoring-mogv5pNr.js +1 -0
  193. package/dist/client/assets/{monitoring-stats-row-BsUBQUMM.js → monitoring-stats-row-BEpenrU2.js} +1 -1
  194. package/dist/client/assets/{multi-select-Db_ThqMQ.js → multi-select-ZwwArowo.js} +1 -1
  195. package/dist/client/assets/{mustache-Pqeakuud.js → mustache-B20fDMb8.js} +1 -1
  196. package/dist/client/assets/{named-rule-uses-CocrtMGd.js → named-rule-uses-Bxr3PCeC.js} +1 -1
  197. package/dist/client/assets/{named-rule-view-DI8em1Ln.js → named-rule-view-pF5yBmDb.js} +1 -1
  198. package/dist/client/assets/{new-project-dialog-CP7YY3zi.js → new-project-dialog-DfI138Mw.js} +1 -1
  199. package/dist/client/assets/{oauth-callback-C87YK0QM.js → oauth-callback-C0l4AVA-.js} +1 -1
  200. package/dist/client/assets/{oauth-callback-ai-provider-BiPEsxGS.js → oauth-callback-ai-provider-DlpJWGZf.js} +1 -1
  201. package/dist/client/assets/{onboarding-BkgYJN30.js → onboarding-DMkG4-4M.js} +1 -1
  202. package/dist/client/assets/{openai-conversation-CMtl-uGo.js → openai-conversation-BcQvnIOU.js} +1 -1
  203. package/dist/client/assets/{optimistic-project-sidebar-views-Dfnv2eVq.js → optimistic-project-sidebar-views-CBzXyVUz.js} +1 -1
  204. package/dist/client/assets/{order-monitor-day-B8b4_NRG.js → order-monitor-day-raWLiT1v.js} +1 -1
  205. package/dist/client/assets/{organization-choice-D2OqEnT1.js → organization-choice-CSBUJWem.js} +1 -1
  206. package/dist/client/assets/{orgs-BT5DM-wr.js → orgs-DYr5Iir2.js} +1 -1
  207. package/dist/client/assets/{page-seo-form-BZ5qz5Jc.js → page-seo-form-C0_Mzxj0.js} +1 -1
  208. package/dist/client/assets/{pair-CbWxf18N.js → pair-v8_ULhan.js} +1 -1
  209. package/dist/client/assets/{parse-sections-C-MhwiHZ.js → parse-sections-CigeyiXV.js} +1 -1
  210. package/dist/client/assets/{plan-DZXfEuaN.js → plan-BYiUi2-G.js} +1 -1
  211. package/dist/client/assets/{plan-ladder-jDYqtD5Q.js → plan-ladder-CtR99jrd.js} +1 -1
  212. package/dist/client/assets/{popover-BVmz1c3N.js → popover-s88DXvPL.js} +1 -1
  213. package/dist/client/assets/{post-calendar-B_8534k5.js → post-calendar-DbUDJn5r.js} +1 -1
  214. package/dist/client/assets/{post-editor-B2niN_j8.js → post-editor-CdhtoksR.js} +1 -1
  215. package/dist/client/assets/{preview-content-3uKit-hf.js → preview-content-BNZ95rhM.js} +1 -1
  216. package/dist/client/assets/{preview-dialog-Du1qcsYi.js → preview-dialog-BZcvH5f1.js} +1 -1
  217. package/dist/client/assets/{preview-panel-BoHCLryt.js → preview-panel-CjWzxG-O.js} +1 -1
  218. package/dist/client/assets/{preview-tab-DYBrEyCh.js → preview-tab-ztwq5J9Z.js} +3 -3
  219. package/dist/client/assets/{product-picker-dialog-DPPSOqIw.js → product-picker-dialog-CecFCJox.js} +1 -1
  220. package/dist/client/assets/{profile-CkB0-zr4.js → profile-Bo384oXV.js} +1 -1
  221. package/dist/client/assets/{project-app-view-DXEcNYan.js → project-app-view-C-JC6Lnp.js} +1 -1
  222. package/dist/client/assets/{project-apps-B5YazmD2.js → project-apps-BQ30Q_BX.js} +1 -1
  223. package/dist/client/assets/{project-feed-DmjT3iA5.js → project-feed--d7Txdh1.js} +1 -1
  224. package/dist/client/assets/{project-icon-BsqqQ1nI.js → project-icon-Ds8VtVRG.js} +1 -1
  225. package/dist/client/assets/project-reports-BRMk8sbv.js +1 -0
  226. package/dist/client/assets/project-tasks-DPFfk-Co.js +1 -0
  227. package/dist/client/assets/{projects-Cwzu5Iqo.js → projects-BN_UNvg1.js} +1 -1
  228. package/dist/client/assets/{projects-empty-state-Br0wajyI.js → projects-empty-state-CmS_yrG7.js} +1 -1
  229. package/dist/client/assets/{prompts-DIIjyoc9.js → prompts-g_Bby1s0.js} +1 -1
  230. package/dist/client/assets/record-editor-CmI7uwKH.js +1 -0
  231. package/dist/client/assets/{redirect-editor-B4oKb1GO.js → redirect-editor-CBEbRvVY.js} +1 -1
  232. package/dist/client/assets/{releases-api-D9GDZds6.js → releases-api-DbKlRR9w.js} +1 -1
  233. package/dist/client/assets/reports-BKtNuFy0.js +1 -0
  234. package/dist/client/assets/{reports-BLHz2f-u.js → reports-Bgmc-lqT.js} +1 -1
  235. package/dist/client/assets/{reports-onboarding-8l7cEi9O.js → reports-onboarding-D6-A2sL7.js} +1 -1
  236. package/dist/client/assets/{reports-tab-0lUp3BwL.js → reports-tab-B_Sk2TLl.js} +2 -2
  237. package/dist/client/assets/repositories-C2vwcNjc.js +1 -0
  238. package/dist/client/assets/repositories-CszhODTX.js +1 -0
  239. package/dist/client/assets/{repository-binding-Cl8gyVcv.js → repository-binding-Cf_thK-b.js} +1 -1
  240. package/dist/client/assets/{repository-import-picker-3obW4oiZ.js → repository-import-picker-BOku3VrR.js} +1 -1
  241. package/dist/client/assets/repository-picker-CeCsQGv8.js +1 -0
  242. package/dist/client/assets/{require-capability-NNP8AGk1.js → require-capability-DC_q9Xad.js} +1 -1
  243. package/dist/client/assets/{required-auth-layout-D4sDIyJ3.js → required-auth-layout-DhxdstQv.js} +1 -1
  244. package/dist/client/assets/{reset-password-CXaP1BPU.js → reset-password-BCS7WVZ6.js} +1 -1
  245. package/dist/client/assets/{resizable-DVzR2wEK.js → resizable-BySAwPSW.js} +1 -1
  246. package/dist/client/assets/{resolve-tab-icon-BdFEwYlo.js → resolve-tab-icon-B7CsMGsC.js} +1 -1
  247. package/dist/client/assets/{review-settings-CQ-ke_sY.js → review-settings-DtZi6zHg.js} +1 -1
  248. package/dist/client/assets/{roles-CSdPRDeD.js → roles-CGYNn4dv.js} +1 -1
  249. package/dist/client/assets/{route-CN2nYP-k.js → route-ChD1cXkH.js} +1 -1
  250. package/dist/client/assets/{route-CGCaN7RC.js → route-ChLLCXC9.js} +1 -1
  251. package/dist/client/assets/route-_su_B2um.js +1 -0
  252. package/dist/client/assets/{runnable-block-editor-BCPCXDwB.js → runnable-block-editor-Bod17qTV.js} +3 -3
  253. package/dist/client/assets/{sandbox-lifecycle-context-D9f3Vvrq.js → sandbox-lifecycle-context-CCjKxqdS.js} +1 -1
  254. package/dist/client/assets/{schema-DIOdOlgE.js → schema-ClGCzPdy.js} +1 -1
  255. package/dist/client/assets/{schema-JPrgW9NA.js → schema-b5uziS6S.js} +1 -1
  256. package/dist/client/assets/{scroll-area-BzPxgY-4.js → scroll-area-BVZXqx5M.js} +1 -1
  257. package/dist/client/assets/{search-input-CAgDD0MP.js → search-input-BL6XGlmm.js} +1 -1
  258. package/dist/client/assets/{search-toggle-DxyC7mO0.js → search-toggle-IRNGzCzn.js} +1 -1
  259. package/dist/client/assets/{secret-ciphertext-DIyWW8ea.js → secret-ciphertext-CKG2rzpX.js} +1 -1
  260. package/dist/client/assets/{secret-picker-BaxV5boV.js → secret-picker-NNIqKwTx.js} +1 -1
  261. package/dist/client/assets/{secrets-DSOCKy5q.js → secrets-BLs8g0Qc.js} +1 -1
  262. package/dist/client/assets/{sections-BsNG86P-.js → sections-Dw8sSpTv.js} +1 -1
  263. package/dist/client/assets/{sections-editor-Ba5HL_GU.js → sections-editor-IbsR8YsO.js} +1 -1
  264. package/dist/client/assets/{select-C1PBhx94.js → select-H4FJk0rp.js} +1 -1
  265. package/dist/client/assets/{select-model-B3qCPlEj.js → select-model-VSltfcKe.js} +1 -1
  266. package/dist/client/assets/{seo-editor-CBXv1v_K.js → seo-editor-DJxK0wxd.js} +1 -1
  267. package/dist/client/assets/{separator-DI0EmK0i.js → separator-l8ktDBQ-.js} +1 -1
  268. package/dist/client/assets/settings-tab-D08h17sS.js +1 -0
  269. package/dist/client/assets/{sheet-DaxppAym.js → sheet-DdrzSnyB.js} +1 -1
  270. package/dist/client/assets/{shell-layout-CKWLH4bq.js → shell-layout-Dpds4_um.js} +1 -1
  271. package/dist/client/assets/{site-draft-actions-Ck0Qp0lI.js → site-draft-actions-B1VIigls.js} +1 -1
  272. package/dist/client/assets/site-draft-view-BvQXujRd.js +2 -0
  273. package/dist/client/assets/site-editor-B8qpeTpl.js +1 -0
  274. package/dist/client/assets/{site-editor-toast-vUK6CnYX.js → site-editor-toast-C48kJZ8y.js} +1 -1
  275. package/dist/client/assets/{skills-Conq58a1.js → skills-F7XSMMWV.js} +1 -1
  276. package/dist/client/assets/{slider-B4XFe7FF.js → slider-tSRa1HDF.js} +1 -1
  277. package/dist/client/assets/{sortable.esm-Mem55hqW.js → sortable.esm-CE2eXOQU.js} +1 -1
  278. package/dist/client/assets/{sso-4h0pQdIc.js → sso-B_KsCvoW.js} +1 -1
  279. package/dist/client/assets/{suggestion-DXfrHDfU.js → suggestion-Bu3BweEe.js} +1 -1
  280. package/dist/client/assets/{switch-BZ12Wlze.js → switch-BI2l0q9a.js} +1 -1
  281. package/dist/client/assets/{symbol-NtdYAab7.js → symbol-CW0bfPL3.js} +1 -1
  282. package/dist/client/assets/{synced-repos-C66vtPZX.js → synced-repos-BXQtYjtL.js} +1 -1
  283. package/dist/client/assets/{tab-icon-glyph-D8h09tlE.js → tab-icon-glyph-B_hAV_wB.js} +1 -1
  284. package/dist/client/assets/{table-cd8TiUS7.js → table-BI-3H0Nx.js} +1 -1
  285. package/dist/client/assets/{tabs-PlTfpfXH.js → tabs-Cw5epDK7.js} +1 -1
  286. package/dist/client/assets/{task-assignee-avatar-CgqWAIyd.js → task-assignee-avatar-B4jYRjC8.js} +1 -1
  287. package/dist/client/assets/{task-board-DZKwU9_n.js → task-board-ByNQwZsl.js} +1 -1
  288. package/dist/client/assets/{task-route-CtG_ZySh.js → task-route-B8oSJFnj.js} +1 -1
  289. package/dist/client/assets/{task-status-DWzfRk3b.js → task-status-GAY2L2Vz.js} +1 -1
  290. package/dist/client/assets/{taskboard-analytics-CdVp5AM1.js → taskboard-analytics-MtxZahkF.js} +1 -1
  291. package/dist/client/assets/{tasks-DME9mnR2.js → tasks-CaRFrr2H.js} +1 -1
  292. package/dist/client/assets/tasks-Zus8qgLK.js +1 -0
  293. package/dist/client/assets/{textarea-CbCQygtF.js → textarea-7I-DLD6x.js} +1 -1
  294. package/dist/client/assets/{thread-analytics-D0HqEGEH.js → thread-analytics-BhyMnytl.js} +1 -1
  295. package/dist/client/assets/{thread-intent-DYTU11gs.js → thread-intent-CoB1rbzj.js} +1 -1
  296. package/dist/client/assets/{thread-route-BrF-OvAm.js → thread-route-BPSSuk8V.js} +1 -1
  297. package/dist/client/assets/{thread-route-BwLT1XI-.js → thread-route-Bjcqwe4C.js} +1 -1
  298. package/dist/client/assets/{thread-sheet-body-BClkfRHz.js → thread-sheet-body-DyDxpawL.js} +1 -1
  299. package/dist/client/assets/{time-range-picker-Dc0YWA3V.js → time-range-picker-DJ-TaM2M.js} +1 -1
  300. package/dist/client/assets/{toggle-group-CG3xZyLa.js → toggle-group-BngkTNsG.js} +1 -1
  301. package/dist/client/assets/{tool-namespace-BffmviW3.js → tool-namespace-DePiqr-m.js} +1 -1
  302. package/dist/client/assets/{toolbar-icon-button-Dvrbx_wP.js → toolbar-icon-button-DKjsnGdZ.js} +1 -1
  303. package/dist/client/assets/{tooltip-DZoMaiH-.js → tooltip-4vv5k-uR.js} +1 -1
  304. package/dist/client/assets/{tooltipContext-D6Gsaqky.js → tooltipContext-B3bWUtmi.js} +1 -1
  305. package/dist/client/assets/{track-Cv2e7Jw0.js → track-C0wfSYRO.js} +1 -1
  306. package/dist/client/assets/{types-D8wZ_EZc.js → types-CNU-uWw-.js} +1 -1
  307. package/dist/client/assets/{url-slug-C8xJrS8o.js → url-slug-DU3tFMUC.js} +1 -1
  308. package/dist/client/assets/{usage-stats-B6igVHuP.js → usage-stats-CKpL0uWf.js} +1 -1
  309. package/dist/client/assets/{use-ai-providers-DgzZ7YKT.js → use-ai-providers-Ct47MIru.js} +1 -1
  310. package/dist/client/assets/{use-apply-named-rule-BXu1w5Bp.js → use-apply-named-rule-R20A_NaL.js} +1 -1
  311. package/dist/client/assets/{use-automations-DZTdfMuj.js → use-automations-Ho0ayZT_.js} +1 -1
  312. package/dist/client/assets/{use-autosave-C5yHGYj0.js → use-autosave-DzNsVsl3.js} +1 -1
  313. package/dist/client/assets/{use-chat-layout-state-fUIATILp.js → use-chat-layout-state-CWI-mwQI.js} +1 -1
  314. package/dist/client/assets/{use-clock-tick-DiijcghV.js → use-clock-tick-DE4s8Okz.js} +1 -1
  315. package/dist/client/assets/{use-connect-companion-DvHSKAIT.js → use-connect-companion-Dmdscsai.js} +1 -1
  316. package/dist/client/assets/{use-connection-BZmon5tp.js → use-connection-HenJjVMr.js} +1 -1
  317. package/dist/client/assets/{use-content-sync-DQGv9jMR.js → use-content-sync-C0CqYtRD.js} +1 -1
  318. package/dist/client/assets/{use-copy-Dl7HNmsM.js → use-copy-C4LbXPXl.js} +1 -1
  319. package/dist/client/assets/{use-create-virtual-mcp-Y_WqPwQW.js → use-create-virtual-mcp-dBeQ8KM_.js} +1 -1
  320. package/dist/client/assets/{use-date-fns-locale-C4tTGqdg.js → use-date-fns-locale-DBqQ9Xwt.js} +1 -1
  321. package/dist/client/assets/{use-debounced-autosave-iEzw6avK.js → use-debounced-autosave-B_kpX8YN.js} +1 -1
  322. package/dist/client/assets/{use-debounced-value-DNoCsO37.js → use-debounced-value-Br6JzfN-.js} +1 -1
  323. package/dist/client/assets/{use-deco-credits-Bb3hLWha.js → use-deco-credits-DhL8Ql0T.js} +1 -1
  324. package/dist/client/assets/{use-decopilot-events-Bfz-bAKi.js → use-decopilot-events-CuBncVze.js} +1 -1
  325. package/dist/client/assets/{use-delete-connection-DHMSyjey.js → use-delete-connection-DuErB0IF.js} +1 -1
  326. package/dist/client/assets/{use-deployment-admin-CU8I3_7G.js → use-deployment-admin-BOXhbvir.js} +1 -1
  327. package/dist/client/assets/{use-fast-preview-draft-url-CBDC7qwh.js → use-fast-preview-draft-url-BPrZ2XMf.js} +1 -1
  328. package/dist/client/assets/{use-file-configs-BXF9rvXJ.js → use-file-configs-B_k4AoEo.js} +1 -1
  329. package/dist/client/assets/{use-inbox-feed-aT0WvD_J.js → use-inbox-feed-D96kN3Ph.js} +1 -1
  330. package/dist/client/assets/{use-infinite-scroll-ZRIHRcVb.js → use-infinite-scroll-Ba0Xf9MO.js} +1 -1
  331. package/dist/client/assets/{use-join-requests-p5BU3YYl.js → use-join-requests-DNpCy_xv.js} +1 -1
  332. package/dist/client/assets/{use-main-panel-tabs-69xs0HVG.js → use-main-panel-tabs-BndsHuRH.js} +1 -1
  333. package/dist/client/assets/{use-mcp-auth-status-SoBS-b1c.js → use-mcp-auth-status-BOQ5PtOH.js} +1 -1
  334. package/dist/client/assets/{use-mcp-client-DqYHf07G.js → use-mcp-client-2WkK0AxE.js} +1 -1
  335. package/dist/client/assets/{use-mcp-prompts-Cu6zSvAs.js → use-mcp-prompts-BY0itm-N.js} +1 -1
  336. package/dist/client/assets/{use-mcp-tools-CTx7o8Po.js → use-mcp-tools-Wkfd46Rr.js} +1 -1
  337. package/dist/client/assets/{use-members-7fbiQ1L2.js → use-members-Cl1_-fx1.js} +1 -1
  338. package/dist/client/assets/{use-mobile-Df_3y675.js → use-mobile-BAnIvR27.js} +1 -1
  339. package/dist/client/assets/{use-move-blocks-2-4mcwFX.js → use-move-blocks-lN8kagdi.js} +1 -1
  340. package/dist/client/assets/{use-navigate-to-agent-DOId9IHj.js → use-navigate-to-agent-C2NQ-36B.js} +1 -1
  341. package/dist/client/assets/{use-open-billing-url-_IkiYFNL.js → use-open-billing-url-Bewtr0D-.js} +1 -1
  342. package/dist/client/assets/{use-org-auth-client-D-Dp-TzJ.js → use-org-auth-client-vWdVrvgR.js} +1 -1
  343. package/dist/client/assets/{use-org-fs-CLvO6ZX7.js → use-org-fs-CxjQMzFd.js} +1 -1
  344. package/dist/client/assets/{use-org-repo-syncs-kBybWkDI.js → use-org-repo-syncs-dRJpc7Ti.js} +1 -1
  345. package/dist/client/assets/{use-org-sso-DzwVU3EX.js → use-org-sso-BnFa9r-G.js} +1 -1
  346. package/dist/client/assets/{use-organization-roles-LxJNrgl3.js → use-organization-roles-D9hV-WPT.js} +1 -1
  347. package/dist/client/assets/{use-organization-settings-BXo7nhZ3.js → use-organization-settings-CE5BJyh9.js} +1 -1
  348. package/dist/client/assets/{use-panel-navigate-DGz4w4gD.js → use-panel-navigate-CXkMPISv.js} +1 -1
  349. package/dist/client/assets/{use-project-native-view-presence-DVu_UG8f.js → use-project-native-view-presence-D4-BL2Rg.js} +1 -1
  350. package/dist/client/assets/{use-project-scope-B2UHdHkf.js → use-project-scope-BOj2O9A_.js} +1 -1
  351. package/dist/client/assets/{use-recent-apps-BOqc2cRg.js → use-recent-apps-Cj-iBJUa.js} +1 -1
  352. package/dist/client/assets/{use-releases-Bvh7Pdaa.js → use-releases-2-Z6BMdW.js} +1 -1
  353. package/dist/client/assets/{use-reports-diagnostic-Dct34RIh.js → use-reports-diagnostic-D--oIp45.js} +1 -1
  354. package/dist/client/assets/{use-sandbox-events-DxcL_G2x.js → use-sandbox-events-BVhJrX2Z.js} +1 -1
  355. package/dist/client/assets/{use-secrets-Cgbmwf1E.js → use-secrets-CQ9dfY46.js} +1 -1
  356. package/dist/client/assets/{use-section-preview-base-CMHXbkVq.js → use-section-preview-base-CrcAXE9z.js} +1 -1
  357. package/dist/client/assets/{use-session-runtime-7d3qKI0U.js → use-session-runtime-CqJF6neP.js} +1 -1
  358. package/dist/client/assets/{use-sidebar-collapsed-CEbyuj9_.js → use-sidebar-collapsed-NZNztmvG.js} +1 -1
  359. package/dist/client/assets/{use-tags-DOizZBvn.js → use-tags-BG7cxCCb.js} +1 -1
  360. package/dist/client/assets/{use-task-board-analytics-hmTm3Xr8.js → use-task-board-analytics-BhvhSxL9.js} +1 -1
  361. package/dist/client/assets/{use-task-board-events-Sjn1d0ir.js → use-task-board-events-CtQgceab.js} +1 -1
  362. package/dist/client/assets/{use-task-board-item-prs-BzC_DBWs.js → use-task-board-item-prs-Dp099nXL.js} +1 -1
  363. package/dist/client/assets/{use-task-metadata-CSxCj4yy.js → use-task-metadata-BBoC1uvX.js} +1 -1
  364. package/dist/client/assets/{use-thread-analytics-DfMbrXTf.js → use-thread-analytics-g0_FCkSl.js} +1 -1
  365. package/dist/client/assets/{use-thread-outputs-B3pyBOho.js → use-thread-outputs-C38yfNsJ.js} +1 -1
  366. package/dist/client/assets/useInfiniteQuery-CxzyY6DS.js +1 -0
  367. package/dist/client/assets/{useQueries-uLX23MNk.js → useQueries-DSs3oNbf.js} +1 -1
  368. package/dist/client/assets/useSuspenseInfiniteQuery-CWvS_hOW.js +1 -0
  369. package/dist/client/assets/{users-Ib8R59dI.js → users-BAyRTNUi.js} +1 -1
  370. package/dist/client/assets/{utils-LrUUDN57.js → utils-t1gjPfET.js} +1 -1
  371. package/dist/client/assets/{variant-calendar-DOoqqIzr.js → variant-calendar-BYITnHO8.js} +1 -1
  372. package/dist/client/assets/{variant-draft-pointer-DNyBkOr3.js → variant-draft-pointer-Cjn_TXkR.js} +1 -1
  373. package/dist/client/assets/{virtual-mcp-B7o88283.js → virtual-mcp-cTWrWR4Y.js} +1 -1
  374. package/dist/client/assets/{watch-sse-pool-DIAPPzx7.js → watch-sse-pool-C9NPGTmI.js} +1 -1
  375. package/dist/client/index.html +1 -1
  376. package/dist/server/migrate.js +214 -209
  377. package/dist/server/server.js +633 -633
  378. package/package.json +1 -1
  379. package/dist/client/assets/agent-analytics-CDwx4a2N.js +0 -1
  380. package/dist/client/assets/agent-app-G-hsYMQ8.js +0 -1
  381. package/dist/client/assets/agent-calendar-DaZrWfix.js +0 -1
  382. package/dist/client/assets/agent-deck-CqPaTZAU.js +0 -1
  383. package/dist/client/assets/agent-experiments-Cvjx0r-V.js +0 -1
  384. package/dist/client/assets/agent-file-bVYB1cfC.js +0 -1
  385. package/dist/client/assets/agent-library-D15ABzqd.js +0 -1
  386. package/dist/client/assets/agent-library-file-B9iyqErA.js +0 -1
  387. package/dist/client/assets/agent-settings-AZLE4kyB.js +0 -1
  388. package/dist/client/assets/agent-site-editor-code-Dqh-CK3q.js +0 -2
  389. package/dist/client/assets/agent-site-editor-content-ZYGhs3a9.js +0 -1
  390. package/dist/client/assets/agent-site-editor-preview-DTKZdYCv.js +0 -1
  391. package/dist/client/assets/agent-view-D3mqLvwq.js +0 -1
  392. package/dist/client/assets/api-keys-J75u9n5h.js +0 -1
  393. package/dist/client/assets/cms-settings-editor-B-g4hnK1.js +0 -1
  394. package/dist/client/assets/library-DJVFXK7P.js +0 -1
  395. package/dist/client/assets/monitoring-CmUEkQAu.js +0 -1
  396. package/dist/client/assets/project-reports-CFxmXR8C.js +0 -1
  397. package/dist/client/assets/project-tasks-DIAs0Pxy.js +0 -1
  398. package/dist/client/assets/record-editor-C5o_Ofe0.js +0 -1
  399. package/dist/client/assets/reports-CmJOblfH.js +0 -1
  400. package/dist/client/assets/repositories-BZY63VIV.js +0 -1
  401. package/dist/client/assets/repositories-DIzNxooQ.js +0 -1
  402. package/dist/client/assets/repository-picker-0eUSIZ5X.js +0 -1
  403. package/dist/client/assets/route-BuTkxBLT.js +0 -1
  404. package/dist/client/assets/settings-tab-D7gwu_vw.js +0 -1
  405. package/dist/client/assets/site-draft-view-DwI6BUF-.js +0 -2
  406. package/dist/client/assets/site-editor-C14MF5hG.js +0 -1
  407. package/dist/client/assets/tasks-4t3a03Q3.js +0 -1
  408. package/dist/client/assets/useInfiniteQuery-BuR8X__X.js +0 -1
  409. package/dist/client/assets/useSuspenseInfiniteQuery-B04nA0hC.js +0 -1
@@ -1 +1 @@
1
- import{c as p,l as d,j as f,ek as m}from"./index-D_jzSCP9.js";function x(l){const t=p.c(12);let o,a,r,i;t[0]!==l?({className:o,orientation:r,decorative:i,...a}=l,t[0]=l,t[1]=o,t[2]=a,t[3]=r,t[4]=i):(o=t[1],a=t[2],r=t[3],i=t[4]);const s=r===void 0?"horizontal":r,c=i===void 0?!0:i;let e;t[5]!==o?(e=d("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=e):e=t[6];let n;return t[7]!==c||t[8]!==s||t[9]!==a||t[10]!==e?(n=f.jsx(m,{"data-slot":"separator-root",decorative:c,orientation:s,className:e,...a}),t[7]=c,t[8]=s,t[9]=a,t[10]=e,t[11]=n):n=t[11],n}export{x as S};
1
+ import{c as p,l as d,j as f,ek as m}from"./index-BeWb3VLq.js";function x(l){const t=p.c(12);let o,a,r,i;t[0]!==l?({className:o,orientation:r,decorative:i,...a}=l,t[0]=l,t[1]=o,t[2]=a,t[3]=r,t[4]=i):(o=t[1],a=t[2],r=t[3],i=t[4]);const s=r===void 0?"horizontal":r,c=i===void 0?!0:i;let e;t[5]!==o?(e=d("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=e):e=t[6];let n;return t[7]!==c||t[8]!==s||t[9]!==a||t[10]!==e?(n=f.jsx(m,{"data-slot":"separator-root",decorative:c,orientation:s,className:e,...a}),t[7]=c,t[8]=s,t[9]=a,t[10]=e,t[11]=n):n=t[11],n}export{x as S};
@@ -0,0 +1 @@
1
+ import{c as e,j as o}from"./index-BeWb3VLq.js";import{V as a}from"./index-BWEksKOa.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
@@ -1 +1 @@
1
- import{c as n,l as f,j as i,dw as S,dk as $,aJ as w,dx as C,dl as z,dy as k,aU as R,dm as B}from"./index-D_jzSCP9.js";function P(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(z,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function E(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(B,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(22);let t,s,a,l,p,m;e[0]!==o?({className:s,children:t,side:l,size:p,hideCloseButton:m,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=p,e[6]=m):(t=e[1],s=e[2],a=e[3],l=e[4],p=e[5],m=e[6]);const d=l===void 0?"right":l,v=p===void 0?"sm":p,x=m===void 0?!1:m;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx(E,{}),e[7]=u):u=e[7];const g=d==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l",b=d==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r",j=(d==="left"||d==="right")&&(v==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),N=d==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",y=d==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[8]!==s||e[9]!==g||e[10]!==b||e[11]!==j||e[12]!==N||e[13]!==y?(r=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",g,b,j,N,y,s),e[8]=s,e[9]=g,e[10]=b,e[11]=j,e[12]=N,e[13]=y,e[14]=r):r=e[14];let c;e[15]!==x?(c=!x&&i.jsxs(k,{className:"data-[state=open]:bg-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus-ring disabled:pointer-events-none rounded-lg",children:[i.jsx(R,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[15]=x,e[16]=c):c=e[16];let h;return e[17]!==t||e[18]!==a||e[19]!==r||e[20]!==c?(h=i.jsxs(D,{children:[u,i.jsxs(w,{"data-slot":"sheet-content",className:r,...a,children:[t,c]})]}),e[17]=t,e[18]=a,e[19]=r,e[20]=c,e[21]=h):h=e[21],h}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function F(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("mt-auto flex flex-col gap-2 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function H(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(S,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function J(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(C,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{H as S,T as a,P as b,_ as c,J as d,F as e};
1
+ import{c as n,l as f,j as i,dw as S,dk as $,aJ as w,dx as C,dl as z,dy as k,aU as R,dm as B}from"./index-BeWb3VLq.js";function P(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(z,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function E(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(B,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(22);let t,s,a,l,p,m;e[0]!==o?({className:s,children:t,side:l,size:p,hideCloseButton:m,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=p,e[6]=m):(t=e[1],s=e[2],a=e[3],l=e[4],p=e[5],m=e[6]);const d=l===void 0?"right":l,v=p===void 0?"sm":p,x=m===void 0?!1:m;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx(E,{}),e[7]=u):u=e[7];const g=d==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l",b=d==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r",j=(d==="left"||d==="right")&&(v==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),N=d==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",y=d==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[8]!==s||e[9]!==g||e[10]!==b||e[11]!==j||e[12]!==N||e[13]!==y?(r=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",g,b,j,N,y,s),e[8]=s,e[9]=g,e[10]=b,e[11]=j,e[12]=N,e[13]=y,e[14]=r):r=e[14];let c;e[15]!==x?(c=!x&&i.jsxs(k,{className:"data-[state=open]:bg-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus-ring disabled:pointer-events-none rounded-lg",children:[i.jsx(R,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[15]=x,e[16]=c):c=e[16];let h;return e[17]!==t||e[18]!==a||e[19]!==r||e[20]!==c?(h=i.jsxs(D,{children:[u,i.jsxs(w,{"data-slot":"sheet-content",className:r,...a,children:[t,c]})]}),e[17]=t,e[18]=a,e[19]=r,e[20]=c,e[21]=h):h=e[21],h}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function F(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("mt-auto flex flex-col gap-2 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function H(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(S,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function J(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(C,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{H as S,T as a,P as b,_ as c,J as d,F as e};
@@ -1 +1 @@
1
- import{c as R,b as J,e as st,j as n,B as F,t as We,bX as fe,ad as Tt,a as Be,G as Vt,R as Nt,K as Ue,bY as Wt,bZ as Yt,aw as Ke,l as ht,aX as Qt,x as gt,r as se,ab as Xt,ac as re,s as _t,v as Pt,q as At,D as Ct,d as Et,a2 as mt,J as Ot,m as He,y as ct,aL as It,b_ as Zt,aR as en,aV as pt,F as tn,b$ as nn,aM as sn,w as on,c0 as an,c1 as rn,c2 as ln,c3 as cn,c4 as dn,a3 as un,u as mn,a4 as fn,c5 as hn,c6 as gn,k as $t,c7 as rt,c8 as pn,c9 as yn,O as bn,_ as xn}from"./index-D_jzSCP9.js";import{A as it}from"./avatar-BCxNXTas.js";import{t as Lt}from"./Building02-C2flUGF-.js";import{i as Sn,s as ae}from"./UserSquare-CRvybnC2.js";import{aA as wn,W as vn,I as lt,aa as jn,K as kn,aB as Tn,n as yt,g as Nn,p as _n,k as Pn,aC as An,l as Cn}from"./agent-icon-DhApO92C.js";import{s as En}from"./XClose-CjXzVHwC.js";import{a as On,u as In}from"./use-project-scope-B2UHdHkf.js";import{u as Dt,a as $n}from"./use-panel-navigate-DGz4w4gD.js";import{i as de}from"./CheckCircle-4gdTBGy6.js";import{i as bt}from"./Monitor01-DtC0vfP6.js";import{i as qe}from"./ZoomOut-CLJKIGNa.js";import{u as Ln}from"./use-clock-tick-DiijcghV.js";import{s as xt}from"./Plus-CxQiW556.js";import{a as Dn}from"./Tool01-CEmvRWh7.js";import{b as le,a as Je,f as Rn,e as Fn,c as Mn,C as zn}from"./command-Due3aGE_.js";import{I as qn}from"./integration-icon-BKkvrbiZ.js";import{P as Kn}from"./project-icon-BsqqQ1nI.js";import{a as Bn,m as Hn}from"./use-mcp-client-DqYHf07G.js";import{u as Un,a as Gn,n as Jn}from"./new-project-dialog-CP7YY3zi.js";import{S as Vn,u as Wn}from"./thread-intent-DYTU11gs.js";import{R as Yn}from"./required-auth-layout-D4sDIyJ3.js";import{A as Qn}from"./autosend-CC_H9WVC.js";import{u as Xn,a as Zn,b as es,c as ts}from"./thread-route-BrF-OvAm.js";import{u as ns}from"./use-org-sso-DzwVU3EX.js";function ss(t){const e=R.c(49),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let c;e[0]!==r||e[1]!==i?(c=async()=>{const p=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await p.json();if(!p.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==r?(m=p=>{window.location.href=`/${p.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=p=>{We.error(p instanceof Error?p.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let w;e[7]!==c||e[8]!==m||e[9]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[7]=c,e[8]=m,e[9]=h,e[10]=w):w=e[10];const u=st(w),y=os;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(it,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Lt,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let g;e[14]!==o||e[15]!==i?(g=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=g):g=e[16];let f;e[17]!==g?(f=n.jsx("h3",{className:"text-lg font-medium",children:g}),e[17]=g,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 b;e[24]!==f||e[25]!==x?(b=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=b):b=e[26];let S;e[27]!==u?(S=()=>u.mutate(),e[27]=u,e[28]=S):S=e[28];let j;e[29]!==u.isPending||e[30]!==o||e[31]!==i?(j=u.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=u.isPending,e[30]=o,e[31]=i,e[32]=j):j=e[32];let P;e[33]!==u.isPending||e[34]!==S||e[35]!==j?(P=n.jsx(F,{onClick:S,disabled:u.isPending,children:j}),e[33]=u.isPending,e[34]=S,e[35]=j,e[36]=P):P=e[36];const k=u.isPending;let v;e[37]!==i?(v=i("common.goHome"),e[37]=i,e[38]=v):v=e[38];let T;e[39]!==u.isPending||e[40]!==v?(T=n.jsx(F,{variant:"ghost",onClick:y,disabled:k,children:v}),e[39]=u.isPending,e[40]=v,e[41]=T):T=e[41];let N;e[42]!==P||e[43]!==T?(N=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[P,T]}),e[42]=P,e[43]=T,e[44]=N):N=e[44];let _;return e[45]!==b||e[46]!==N||e[47]!==l?(_=n.jsxs(fe,{children:[l,b,N]}),e[45]=b,e[46]=N,e[47]=l,e[48]=_):_=e[48],_}function os(){window.location.href="/"}function St(t){const e=R.c(25),{orgSlug:o,orgName:r,reason:s}=t,a=J(),i=is,c=s==="not-found",m=c?Sn:Tt;let h;e[0]!==c||e[1]!==a?(h=a(c?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=c,e[1]=a,e[2]=h):h=e[2];const w=h;let u;e[3]!==c||e[4]!==r||e[5]!==o||e[6]!==a?(u=c?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]=c,e[4]=r,e[5]=o,e[6]=a,e[7]=u):u=e[7];const y=u;let l;e[8]!==m?(l=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]=l):l=e[9];let g;e[10]!==w?(g=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[10]=w,e[11]=g):g=e[11];let f;e[12]!==y?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=f):f=e[13];let d;e[14]!==g||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[g,f]}),e[14]=g,e[15]=f,e[16]=d):d=e[16];let x;e[17]!==a?(x=a("common.goHome"),e[17]=a,e[18]=x):x=e[18];let b;e[19]!==x?(b=n.jsx(F,{onClick:i,children:x}),e[19]=x,e[20]=b):b=e[20];let S;return e[21]!==l||e[22]!==d||e[23]!==b?(S=n.jsxs(fe,{children:[l,d,b]}),e[21]=l,e[22]=d,e[23]=b,e[24]=S):S=e[24],S}function is(){window.location.href="/"}function as(t){const e=R.c(59),{invitationId:o,orgName:r,orgSlug:s,orgLogo:a}=t,i=J();let c;e[0]!==o?(c=async()=>{const C=await Be.organization.acceptInvitation({invitationId:o});if(C.error)throw new Error(C.error.message);return C.data},e[0]=o,e[1]=c):c=e[1];let m;e[2]!==s?(m=()=>{Vt(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let h;e[4]!==i?(h=C=>{We.error(C instanceof Error?C.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let w;e[6]!==c||e[7]!==m||e[8]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[6]=c,e[7]=m,e[8]=h,e[9]=w):w=e[9];const u=st(w);let y;e[10]!==o?(y=async()=>{const C=await Be.organization.rejectInvitation({invitationId:o});if(C.error)throw new Error(C.error.message);return C.data},e[10]=o,e[11]=y):y=e[11];let l,g;e[12]!==i?(l=()=>{We.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},g=C=>{We.error(C instanceof Error?C.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=g):(l=e[13],g=e[14]);let f;e[15]!==y||e[16]!==l||e[17]!==g?(f={mutationFn:y,onSuccess:l,onError:g},e[15]=y,e[16]=l,e[17]=g,e[18]=f):f=e[18];const d=st(f),x=u.isPending||d.isPending;let b;e[19]!==a||e[20]!==r?(b=a?n.jsx(it,{url:a,fallback:r,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(wn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=b):b=e[21];let S;e[22]!==r||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=S):S=e[24];let j;e[25]!==S?(j=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,e[26]=j):j=e[26];let P;e[27]!==i?(P=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=P):P=e[28];let k;e[29]!==P?(k=n.jsx("p",{className:"text-sm text-muted-foreground",children:P}),e[29]=P,e[30]=k):k=e[30];let v;e[31]!==j||e[32]!==k?(v=n.jsxs("div",{className:"space-y-2",children:[j,k]}),e[31]=j,e[32]=k,e[33]=v):v=e[33];let T;e[34]!==u?(T=()=>u.mutate(),e[34]=u,e[35]=T):T=e[35];let N;e[36]!==u.isPending||e[37]!==i?(N=u.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=u.isPending,e[37]=i,e[38]=N):N=e[38];let _;e[39]!==x||e[40]!==T||e[41]!==N?(_=n.jsx(F,{onClick:T,disabled:x,children:N}),e[39]=x,e[40]=T,e[41]=N,e[42]=_):_=e[42];let p;e[43]!==d?(p=()=>d.mutate(),e[43]=d,e[44]=p):p=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[48]!==x||e[49]!==p||e[50]!==A?($=n.jsx(F,{variant:"ghost",onClick:p,disabled:x,children:A}),e[48]=x,e[49]=p,e[50]=A,e[51]=$):$=e[51];let I;e[52]!==_||e[53]!==$?(I=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=I):I=e[54];let D;return e[55]!==v||e[56]!==I||e[57]!==b?(D=n.jsxs(fe,{children:[b,v,I]}),e[55]=v,e[56]=I,e[57]=b,e[58]=D):D=e[58],D}function rs(t){const e=R.c(23),{orgName:o,orgLogo:r}=t,s=J();let a;e[0]!==r||e[1]!==o?(a=r?n.jsx(it,{url:r,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(vn,{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 c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=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 w;e[12]!==c||e[13]!==h?(w=n.jsxs("div",{className:"space-y-2",children:[c,h]}),e[12]=c,e[13]=h,e[14]=w):w=e[14];let u;e[15]!==s?(u=s("common.goHome"),e[15]=s,e[16]=u):u=e[16];let y;e[17]!==u?(y=n.jsx(F,{variant:"ghost",onClick:ls,children:u}),e[17]=u,e[18]=y):y=e[18];let l;return e[19]!==a||e[20]!==w||e[21]!==y?(l=n.jsxs(fe,{children:[a,w,y]}),e[19]=a,e[20]=w,e[21]=y,e[22]=l):l=e[22],l}function ls(){window.location.href="/"}function cs(t){const e=R.c(45),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let c;e[0]!==r?(c=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),p=await _.json();if(!_.ok||!p.success)throw new Error(p.error??"Failed to request access");return p},e[0]=r,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=us,e[2]=m):m=e[2];let h;e[3]!==i?(h=_=>{We.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let w;e[5]!==c||e[6]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[5]=c,e[6]=h,e[7]=w):w=e[7];const u=st(w);let y;e[8]!==s||e[9]!==o?(y=s?n.jsx(it,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Lt,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=y):y=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let g;e[14]!==l?(g=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=g):g=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]!==g||e[22]!==d?(x=n.jsxs("div",{className:"space-y-2",children:[g,d]}),e[21]=g,e[22]=d,e[23]=x):x=e[23];let b;e[24]!==u?(b=()=>u.mutate(),e[24]=u,e[25]=b):b=e[25];let S;e[26]!==u.isPending||e[27]!==i?(S=u.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=u.isPending,e[27]=i,e[28]=S):S=e[28];let j;e[29]!==u.isPending||e[30]!==b||e[31]!==S?(j=n.jsx(F,{onClick:b,disabled:u.isPending,children:S}),e[29]=u.isPending,e[30]=b,e[31]=S,e[32]=j):j=e[32];const P=u.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let v;e[35]!==u.isPending||e[36]!==k?(v=n.jsx(F,{variant:"ghost",onClick:ds,disabled:P,children:k}),e[35]=u.isPending,e[36]=k,e[37]=v):v=e[37];let T;e[38]!==j||e[39]!==v?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[j,v]}),e[38]=j,e[39]=v,e[40]=T):T=e[40];let N;return e[41]!==x||e[42]!==T||e[43]!==y?(N=n.jsxs(fe,{children:[y,x,T]}),e[41]=x,e[42]=T,e[43]=y,e[44]=N):N=e[44],N}function ds(){window.location.href="/"}function us(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ms(t){const e=R.c(7);let o;e[0]!==t?(o=Ue.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],Nt(s)}function fs({orgSlug:t}){const{data:e}=ms(t);if(e.status!=="member"){Wt()?.org===t&&Yt();const o=localStorage.getItem(Ke.lastOrgSlug())===t;if(o&&localStorage.removeItem(Ke.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(as,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ss,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(cs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(rs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(St,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Rt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:r,eyebrow:s,title:a,description:i,icon:c,children:m,footerLeading:h,actions:w,onDismiss:u,tone:y}=t,l=y===void 0?"neutral":y,g=h||w;let f;e[0]!==l?(f=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(En,{size:14}),e[2]=d):d=e[2];let x;e[3]!==r||e[4]!==u?(x=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:u,children:d}),e[3]=r,e[4]=u,e[5]=x):x=e[5];const b=c&&"flex items-start gap-3",S=m&&"pb-3";let j;e[6]!==b||e[7]!==S?(j=ht("p-4 pr-11",b,S),e[6]=b,e[7]=S,e[8]=j):j=e[8];let P;e[9]!==c?(P=c&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=P):P=e[10];let k;e[11]!==s?(k=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=k):k=e[12];let v;e[13]!==a?(v=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=v):v=e[14];let T;e[15]!==i?(T=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=T):T=e[16];let N;e[17]!==v||e[18]!==T||e[19]!==k?(N=n.jsxs("div",{children:[k,v,T]}),e[17]=v,e[18]=T,e[19]=k,e[20]=N):N=e[20];let _;e[21]!==m?(_=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=_):_=e[22];let p;e[23]!==N||e[24]!==_?(p=n.jsxs("div",{className:"min-w-0 flex-1",children:[N,_]}),e[23]=N,e[24]=_,e[25]=p):p=e[25];let A;e[26]!==p||e[27]!==j||e[28]!==P?(A=n.jsxs("div",{className:j,children:[P,p]}),e[26]=p,e[27]=j,e[28]=P,e[29]=A):A=e[29];let $;e[30]!==w||e[31]!==h||e[32]!==g||e[33]!==l?($=g&&n.jsxs("div",{className:ht("flex items-center justify-between gap-3 px-4 py-2.5",l==="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:w})]}),e[30]=w,e[31]=h,e[32]=g,e[33]=l,e[34]=$):$=e[34];let I;return e[35]!==o||e[36]!==A||e[37]!==$||e[38]!==f||e[39]!==x||e[40]!==l?(I=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,$]}),e[35]=o,e[36]=A,e[37]=$,e[38]=f,e[39]=x,e[40]=l,e[41]=I):I=e[41],I}const hs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Ft(t){return`[data-tour="${hs[t]}"]`}const gs=[{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 ps(t){return gs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ys(t,e){return ps(e).map(o=>({element:Ft(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const bs=Ft("switcher"),xs=30;function Mt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Ss(t,e){return ys(t,e).filter(o=>typeof o.element=="string"&&Mt(o.element))}function ws(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:()=>{Ve=!1},steps:e}}let Ve=!1;async function vs(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function js(t,e){if(Ve)return;Ve=!0;let o=0;const r=()=>{if(!Mt(bs)&&o++<xs){requestAnimationFrame(r);return}const s=Ss(t,e);if(s.length===0){Ve=!1;return}vs().then(a=>{a(ws(t,s)).drive()}).catch(()=>{Ve=!1})};r()}function ks(t){return t!=="off"}function si(t){if(!t.hasSource)return[];const e=["site-editor"];return ks(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function oi(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const qt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:bt,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:lt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:jn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:gt,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:ae,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:bt,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:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ae,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:de,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:qe,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:ae,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:de,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:qe,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:de,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:ae,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:qe,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:ae,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:de,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:qe,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:ae,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:de,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:qe,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:ae,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:lt,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:de,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:gt,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:qe,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:de,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:ae,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:lt,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:ae,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:kn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ot="studio.release-feed.v1",dt=new Set;let ue="",me={},ut=!1;function Ts(){if(ut)return ue||"{}";try{return localStorage.getItem(ot)??"{}"}catch{return ue||"{}"}}function Kt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=Ts();return t!==ue&&(ue=t,me=Kt(t)),me}function Ns(t){dt.add(t);const e=o=>{if(!(o.key!==ot&&o.key!==null)){try{const r=localStorage.getItem(ot)??"{}",a={...Kt(r),...me};me=a,ue=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{dt.delete(t),window.removeEventListener("storage",e)}}function _s(t){me=t,ue=JSON.stringify(t);try{localStorage.setItem(ot,ue),ut=!1}catch{ut=!0}dt.forEach(e=>e())}function Ps(){const t=R.c(7),e=se.useSyncExternalStore(Ns,wt,wt);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const r=o,s=As;let a;t[2]!==e?(a=qt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let c;return t[4]!==r||t[5]!==i?(c={isSeen:r,markSeen:s,unseenCount:i},t[4]=r,t[5]=i,t[6]=c):c=t[6],c}function As(t){me[t]||_s({...me,[t]:{seenAt:new Date().toISOString()}})}const Cs=720*60*60*1e3,Es=10080*60*1e3;function Os(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 Is(t){const e=qt[0];if(!e)return null;const o=Os(e.date),r=t-o;return r<0||r>Cs?null:e}function $s(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 Ls(t,e){const o=$s(t);return o===null?!1:e-o>=Es}function Ds(){const t=R.c(46),e=J(),o=On(),r=Xt(),s=Dt(),a=!!o,i=r===re.home&&!o;let c;t[0]!==s||t[1]!==a?(c=a&&!!s&&zt(s),t[0]=s,t[1]=a,t[2]=c):c=t[2];const m=c,{data:h}=Be.useSession(),{isSeen:w,markSeen:u}=Ps(),y=Ln(6e4);let l,g,f;if(t[3]!==w||t[4]!==y||t[5]!==h?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{if(l=Is(y),!l){f=null;break e}if(!Ls(h?.user?.createdAt,y)){f=null;break e}g=w(l.id)}t[3]=w,t[4]=y,t[5]=h?.user?.createdAt,t[6]=l,t[7]=g,t[8]=f}else l=t[6],g=t[7],f=t[8];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(g)return null;let d;t[9]!==l.id||t[10]!==a||t[11]!==u||t[12]!==i||t[13]!==m||t[14]!==e?(d=()=>{u(l.id),js(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[9]=l.id,t[10]=a,t[11]=u,t[12]=i,t[13]=m,t[14]=e,t[15]=d):d=t[15];const x=d;let b;t[16]!==e?(b=e("announcements.release.ariaLabel"),t[16]=e,t[17]=b):b=t[17];let S;t[18]!==e?(S=e("announcements.release.dismiss"),t[18]=e,t[19]=S):S=t[19];const j=l.eyebrow,P=l.title;let k;t[20]!==l.id||t[21]!==u?(k=()=>u(l.id),t[20]=l.id,t[21]=u,t[22]=k):k=t[22];let v;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==u||t[26]!==e?(v=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>u(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=u,t[26]=e,t[27]=v):v=t[27];let T;t[28]!==l.cta||t[29]!==l.id||t[30]!==u||t[31]!==x?(T=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>u(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(F,{size:"sm",onClick:x,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=u,t[31]=x,t[32]=T):T=t[32];let N;t[33]!==l.bullets?(N=l.bullets.map(Rs),t[33]=l.bullets,t[34]=N):N=t[34];let _;t[35]!==N?(_=n.jsx("ul",{className:"flex flex-col gap-3",children:N}),t[35]=N,t[36]=_):_=t[36];let p;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==T||t[40]!==_||t[41]!==b||t[42]!==S||t[43]!==k||t[44]!==v?(p=n.jsx(Rt,{ariaLabel:b,dismissLabel:S,eyebrow:j,title:P,onDismiss:k,footerLeading:v,actions:T,children:_}),t[37]=l.eyebrow,t[38]=l.title,t[39]=T,t[40]=_,t[41]=b,t[42]=S,t[43]=k,t[44]=v,t[45]=p):p=t[45],p}function Rs(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)}const Bt=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Bt?"⌘":"Ctrl",G={commandPalette:{keys:[ce,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[ce,"["],description:"Back to previous"},focusChatInput:{keys:[ce,"L"],description:"Focus chat input"},saveAndFormat:{keys:[ce,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[ce,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[ce,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",ce,"S"],description:"New task"},toggleDaemon:{keys:[ce,"D"],description:"Toggle daemon logs"}},Fs=[{label:"General",shortcuts:[G.commandPalette,G.keyboardShortcuts,G.back,G.newTask,G.toggleDaemon]},{label:"Editor",shortcuts:[G.saveAndFormat]},{label:"Chat",shortcuts:[G.focusChatInput,G.togglePlanMode,G.sendMessage,G.newLine]},{label:"Questions",shortcuts:[G.selectOption]},{label:"Monitoring",shortcuts:[G.applyFilter]}];function vt(t){return Bt?t.metaKey:t.ctrlKey}function Ms(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function zs(t){const e=R.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(_t,{children:n.jsx(Pt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:Fs.map(qs)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=n.jsxs(At,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==o||e[9]!==m?(h=n.jsx(Ct,{open:o,onOpenChange:r,children:m}),e[7]=r,e[8]=o,e[9]=m,e[10]=h):h=e[10],h}function qs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ks)})]},t.label)}function Ks(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(Bs)})]},t.description)}function Bs(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 jt=8;function Hs(t){const{org:e}=mt(),o=Bn({connectionId:Ot,orgId:e.id,orgSlug:e.slug}),{data:r}=He({queryKey:Ue.globalSearch(e.id,t,jt),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:jt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Us(t){const e=R.c(195),{open:o,onOpenChange:r}=t,s=J(),a=Et(),{org:i}=mt(),{projects:c,hasProjects:m}=In(),[h,w]=se.useState(""),u=se.useDeferredValue(h),y=Hs(u);let l;e[0]!==r?(l=()=>{r(!1),w("")},e[0]=r,e[1]=l):l=e[1];const g=l;let f;e[2]!==g?(f=(q,W)=>{ct("command_palette_used",{kind:W}),q(),g()},e[2]=g,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.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:q.slug}});return}if(q.type==="task"){a({to:re.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const W=It(i.id).id;Zt(a,en({org:i.slug,agentId:q.virtual_mcp_id??W,superAgentId:W}),{search:()=>({thread:q.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const b=x;let S;e[8]!==h?(S=[h],e[8]=h,e[9]=S):S=e[9];const j=S;let P,k,v,T,N,_,p,A,$,I,D,C,M;if(e[10]!==g||e[11]!==d||e[12]!==m||e[13]!==y||e[14]!==a||e[15]!==r||e[16]!==o||e[17]!==b||e[18]!==i.slug||e[19]!==c||e[20]!==j||e[21]!==s||e[22]!==h){const q=y.filter(Js),W=y.filter(Gs);let Y;e[36]!==i.slug?(Y={org:i.slug},e[36]=i.slug,e[37]=Y):Y=e[37];const L=Y;let Q;e[38]!==s?(Q=s("sidebar.navDestinations.home"),e[38]=s,e[39]=Q):Q=e[39];let Ge;e[40]===Symbol.for("react.memo_cache_sentinel")?(Ge=n.jsx(Nn,{"aria-hidden":"true"}),e[40]=Ge):Ge=e[40];let oe;e[41]!==L||e[42]!==Q?(oe={key:"home",label:Q,icon:Ge,to:re.home,params:L},e[41]=L,e[42]=Q,e[43]=oe):oe=e[43];let B;e[44]!==s?(B=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=B):B=e[45];let X;e[46]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(_n,{"aria-hidden":"true"}),e[46]=X):X=e[46];let Z;e[47]!==L||e[48]!==B?(Z={key:"reports",label:B,icon:X,to:re.reports,params:L},e[47]=L,e[48]=B,e[49]=Z):Z=e[49];let ee;e[50]!==s?(ee=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=ee):ee=e[51];let te;e[52]===Symbol.for("react.memo_cache_sentinel")?(te=n.jsx(yt,{"aria-hidden":"true"}),e[52]=te):te=e[52];let H;e[53]!==i.slug?(H={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=H):H=e[54];let U;e[55]!==ee||e[56]!==H?(U={key:"tasks",label:ee,icon:te,to:re.tasks,params:H},e[55]=ee,e[56]=H,e[57]=U):U=e[57];let ne;e[58]!==s?(ne=s("sidebar.navDestinations.library"),e[58]=s,e[59]=ne):ne=e[59];let ie;e[60]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(Pn,{"aria-hidden":"true"}),e[60]=ie):ie=e[60];let E;e[61]!==L||e[62]!==ne?(E={key:"library",label:ne,icon:ie,to:re.library,params:L},e[61]=L,e[62]=ne,e[63]=E):E=e[63];let z;e[64]!==s?(z=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=z):z=e[65];let Qe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(An,{"aria-hidden":"true"}),e[66]=Qe):Qe=e[66];let he;e[67]!==L||e[68]!==z?(he={key:"discover",label:z,icon:Qe,to:re.discover,params:L},e[67]=L,e[68]=z,e[69]=he):he=e[69];let Xe;e[70]!==oe||e[71]!==Z||e[72]!==U||e[73]!==E||e[74]!==he?(Xe=[oe,Z,U,E,he],e[70]=oe,e[71]=Z,e[72]=U,e[73]=E,e[74]=he,e[75]=Xe):Xe=e[75];const at=Xe;k=Rn,T=o,e[76]!==g||e[77]!==r?(N=O=>O?r(!0):g(),e[76]=g,e[77]=r,e[78]=N):N=e[78],e[79]!==s?(_=s("commandPalette.title"),e[79]=s,e[80]=_):_=e[80],e[81]!==s?(p=s("commandPalette.description"),e[81]=s,e[82]=p):p=e[82];let ge;e[83]!==s?(ge=s("commandPalette.placeholder"),e[83]=s,e[84]=ge):ge=e[84];let pe;e[85]!==s?(pe=s("commandPalette.placeholder"),e[85]=s,e[86]=pe):pe=e[86],e[87]!==ge||e[88]!==pe||e[89]!==h?(A=n.jsx(Fn,{placeholder:ge,"aria-label":pe,value:h,onValueChange:w}),e[87]=ge,e[88]=pe,e[89]=h,e[90]=A):A=e[90],P=Mn;let ye;e[91]!==s?(ye=s("commandPalette.empty"),e[91]=s,e[92]=ye):ye=e[92],e[93]!==ye?($=n.jsx(zn,{children:ye}),e[93]=ye,e[94]=$):$=e[94];let be;e[95]!==s?(be=s("commandPalette.goTo"),e[95]=s,e[96]=be):be=e[96];let xe;e[97]!==at||e[98]!==d||e[99]!==a?(xe=at.map(O=>n.jsxs(le,{onSelect:()=>d(()=>a({to:O.to,params:O.params}),"destination"),children:[O.icon,n.jsx("span",{children:O.label})]},O.key)),e[97]=at,e[98]=d,e[99]=a,e[100]=xe):xe=e[100],e[101]!==be||e[102]!==xe?(I=n.jsx(Je,{heading:be,children:xe}),e[101]=be,e[102]=xe,e[103]=I):I=e[103],e[104]!==d||e[105]!==m||e[106]!==a||e[107]!==i.slug||e[108]!==c||e[109]!==s?(D=m&&n.jsx(Je,{heading:s("commandPalette.projects"),children:c.map(O=>n.jsxs(le,{value:`project ${O.title}`,onSelect:()=>d(()=>a({to:re.projects,params:{org:i.slug,agentId:O.id}}),"project"),children:[n.jsx(Kn,{icon:O.icon,name:O.title,"aria-hidden":"true"}),n.jsx("span",{children:O.title})]},O.id))}),e[104]=d,e[105]=m,e[106]=a,e[107]=i.slug,e[108]=c,e[109]=s,e[110]=D):D=e[110];let Se;e[111]!==s?(Se=s("commandPalette.actions"),e[111]=s,e[112]=Se):Se=e[112];let we;e[113]!==s?(we=s("commandPalette.newProject"),e[113]=s,e[114]=we):we=e[114];let ve;e[115]!==d||e[116]!==a||e[117]!==L?(ve=()=>d(()=>a({to:re.home,params:L}),"new_project"),e[115]=d,e[116]=a,e[117]=L,e[118]=ve):ve=e[118];let Ze;e[119]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(xt,{"aria-hidden":"true"}),e[119]=Ze):Ze=e[119];let je;e[120]!==s?(je=s("commandPalette.newProject"),e[120]=s,e[121]=je):je=e[121];let ke;e[122]!==je?(ke=n.jsx("span",{children:je}),e[122]=je,e[123]=ke):ke=e[123];let Te;e[124]!==we||e[125]!==ve||e[126]!==ke?(Te=n.jsxs(le,{value:we,onSelect:ve,children:[Ze,ke]}),e[124]=we,e[125]=ve,e[126]=ke,e[127]=Te):Te=e[127];let Ne;e[128]!==s?(Ne=s("commandPalette.inviteTeammate"),e[128]=s,e[129]=Ne):Ne=e[129];let _e;e[130]!==d||e[131]!==a||e[132]!==L?(_e=()=>d(()=>a({to:"/$org/settings/members",params:L}),"invite"),e[130]=d,e[131]=a,e[132]=L,e[133]=_e):_e=e[133];let et;e[134]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(Cn,{"aria-hidden":"true"}),e[134]=et):et=e[134];let Pe;e[135]!==s?(Pe=s("commandPalette.inviteTeammate"),e[135]=s,e[136]=Pe):Pe=e[136];let Ae;e[137]!==Pe?(Ae=n.jsx("span",{children:Pe}),e[137]=Pe,e[138]=Ae):Ae=e[138];let Ce;e[139]!==Ne||e[140]!==_e||e[141]!==Ae?(Ce=n.jsxs(le,{value:Ne,onSelect:_e,children:[et,Ae]}),e[139]=Ne,e[140]=_e,e[141]=Ae,e[142]=Ce):Ce=e[142];let Ee;e[143]!==s?(Ee=s("commandPalette.addConnection"),e[143]=s,e[144]=Ee):Ee=e[144];let Oe;e[145]!==d||e[146]!==a||e[147]!==L?(Oe=()=>d(()=>a({to:"/$org/settings/connections",params:L,search:{tab:"all"}}),"add_connection"),e[145]=d,e[146]=a,e[147]=L,e[148]=Oe):Oe=e[148];let tt;e[149]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(xt,{"aria-hidden":"true"}),e[149]=tt):tt=e[149];let Ie;e[150]!==s?(Ie=s("commandPalette.addConnection"),e[150]=s,e[151]=Ie):Ie=e[151];let $e;e[152]!==Ie?($e=n.jsx("span",{children:Ie}),e[152]=Ie,e[153]=$e):$e=e[153];let Le;e[154]!==Ee||e[155]!==Oe||e[156]!==$e?(Le=n.jsxs(le,{value:Ee,onSelect:Oe,children:[tt,$e]}),e[154]=Ee,e[155]=Oe,e[156]=$e,e[157]=Le):Le=e[157];let De;e[158]!==s?(De=s("commandPalette.settings"),e[158]=s,e[159]=De):De=e[159];let Re;e[160]!==d||e[161]!==a||e[162]!==L?(Re=()=>d(()=>a({to:"/$org/settings/general",params:L}),"settings"),e[160]=d,e[161]=a,e[162]=L,e[163]=Re):Re=e[163];let nt;e[164]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(Dn,{"aria-hidden":"true"}),e[164]=nt):nt=e[164];let Fe;e[165]!==s?(Fe=s("commandPalette.settings"),e[165]=s,e[166]=Fe):Fe=e[166];let Me;e[167]!==Fe?(Me=n.jsx("span",{children:Fe}),e[167]=Fe,e[168]=Me):Me=e[168];let ze;e[169]!==De||e[170]!==Re||e[171]!==Me?(ze=n.jsxs(le,{value:De,onSelect:Re,children:[nt,Me]}),e[169]=De,e[170]=Re,e[171]=Me,e[172]=ze):ze=e[172],e[173]!==Se||e[174]!==Te||e[175]!==Ce||e[176]!==Le||e[177]!==ze?(C=n.jsxs(Je,{heading:Se,children:[Te,Ce,Le,ze]}),e[173]=Se,e[174]=Te,e[175]=Ce,e[176]=Le,e[177]=ze,e[178]=C):C=e[178],M=q.length>0&&n.jsx(Je,{heading:s("commandPalette.connections"),children:q.map(O=>n.jsxs(le,{value:`${O.title} ${O.id}`,keywords:j,onSelect:()=>d(()=>b(O),"connection"),children:[n.jsx(qn,{icon:O.icon,name:O.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:O.title})]},`connection:${O.id}`))}),v=W.length>0&&n.jsx(Je,{heading:s("commandPalette.results"),children:W.map(O=>n.jsxs(le,{value:`${O.title} ${O.id}`,keywords:j,onSelect:()=>d(()=>b(O),O.type),children:[O.type==="thread"?n.jsx(Tn,{"aria-hidden":"true"}):n.jsx(yt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:O.title}),O.type==="task"&&O.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:O.key})]},`${O.type}:${O.id}`))}),e[10]=g,e[11]=d,e[12]=m,e[13]=y,e[14]=a,e[15]=r,e[16]=o,e[17]=b,e[18]=i.slug,e[19]=c,e[20]=j,e[21]=s,e[22]=h,e[23]=P,e[24]=k,e[25]=v,e[26]=T,e[27]=N,e[28]=_,e[29]=p,e[30]=A,e[31]=$,e[32]=I,e[33]=D,e[34]=C,e[35]=M}else P=e[23],k=e[24],v=e[25],T=e[26],N=e[27],_=e[28],p=e[29],A=e[30],$=e[31],I=e[32],D=e[33],C=e[34],M=e[35];let K;e[179]!==P||e[180]!==v||e[181]!==$||e[182]!==I||e[183]!==D||e[184]!==C||e[185]!==M?(K=n.jsxs(P,{children:[$,I,D,C,M,v]}),e[179]=P,e[180]=v,e[181]=$,e[182]=I,e[183]=D,e[184]=C,e[185]=M,e[186]=K):K=e[186];let V;return e[187]!==k||e[188]!==T||e[189]!==N||e[190]!==_||e[191]!==p||e[192]!==A||e[193]!==K?(V=n.jsxs(k,{open:T,onOpenChange:N,title:_,description:p,children:[A,K]}),e[187]=k,e[188]=T,e[189]=N,e[190]=_,e[191]=p,e[192]=A,e[193]=K,e[194]=V):V=e[194],V}function Gs(t){return t.type!=="connection"}function Js(t){return t.type==="connection"}const Ye=new Vn(!1);function Vs(){Ye.set(!0)}function Ws(){Ye.set(!1)}function Ys(){const t=R.c(2),e=se.useSyncExternalStore(Ye.subscribe,Ye.get);let o;return t[0]!==e?(o=[e,Ye.set],t[0]=e,t[1]=o):o=t[1],o}const Qs=300*1e3,Xs=2;function Zs(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 eo(t,e){return t.count>=Xs&&t.version!==null&&t.version!==e}function to(){const t=R.c(31),e=J();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:Ue.appVersionCheck(),queryFn:so,refetchInterval:Qs,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:r,dataUpdatedAt:s}=He(o),[a,i]=se.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,h]=se.useState(c);s!==a&&(i(s),h(T=>Zs(T,r,"4.516.0")));const[w,u]=se.useState(null);if(!eo(m,w))return null;let y;t[2]!==e?(y=e("announcements.version.ariaLabel"),t[2]=e,t[3]=y):y=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let g;t[6]!==e?(g=e("announcements.version.eyebrow"),t[6]=e,t[7]=g):g=t[7];let f;t[8]!==e?(f=e("announcements.version.title"),t[8]=e,t[9]=f):f=t[9];let d;t[10]!==e?(d=e("announcements.version.description"),t[10]=e,t[11]=d):d=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(pt,{size:16}),t[12]=x):x=t[12];let b;t[13]!==m.version?(b=()=>u(m.version),t[13]=m.version,t[14]=b):b=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.516.0"}),t[15]=e,t[16]=S):S=t[16];let j;t[17]!==e?(j=e("announcements.version.refresh"),t[17]=e,t[18]=j):j=t[18];let P;t[19]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(pt,{size:14}),t[19]=P):P=t[19];let k;t[20]!==j?(k=n.jsxs(F,{size:"sm",onClick:no,children:[j,P]}),t[20]=j,t[21]=k):k=t[21];let v;return t[22]!==k||t[23]!==y||t[24]!==l||t[25]!==g||t[26]!==f||t[27]!==d||t[28]!==b||t[29]!==S?(v=n.jsx(Rt,{ariaLabel:y,dismissLabel:l,eyebrow:g,title:f,description:d,icon:x,tone:"system",onDismiss:b,footerLeading:S,actions:k}),t[22]=k,t[23]=y,t[24]=l,t[25]=g,t[26]=f,t[27]=d,t[28]=b,t[29]=S,t[30]=v):v=t[30],v}function no(){return window.location.reload()}async function so(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function oo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const io=Date.parse("2026-07-21T00:00:00Z"),kt=t=>oo(Ke.ptBrAnnouncementSeen(t));function ao(){const t=R.c(35),e=J(),[o,r]=tn(),{data:s,isPending:a}=Be.useSession(),i=s?.user,c=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<io,w=nn()==="pt-BR",u=!a&&!!c&&h&&w&&o.language==="en"&&!kt(c).has(),[y,l]=se.useState(!1),[g,f]=se.useState(!1);!y&&!a&&(l(!0),u&&c&&(kt(c).mark(),r(lo),f(!0),ct("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=V=>{ct("pt_br_auto_switch_closed",{action:V}),f(!1)},t[0]=d):d=t[0];const x=d;let b;t[1]!==r?(b=()=>{r(ro),x("switch-back")},t[1]=r,t[2]=b):b=t[2];const S=b;let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=V=>!V&&x("dismiss"),t[3]=j):j=t[3];let P;t[4]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=P):P=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let v;t[7]!==k?(v=n.jsx(Pt,{children:k}),t[7]=k,t[8]=v):v=t[8];let T;t[9]!==e?(T=e("announcements.ptBr.description"),t[9]=e,t[10]=T):T=t[10];let N;t[11]!==T?(N=n.jsx(sn,{children:T}),t[11]=T,t[12]=N):N=t[12];let _;t[13]!==v||t[14]!==N?(_=n.jsxs(_t,{children:[v,N]}),t[13]=v,t[14]=N,t[15]=_):_=t[15];let p;t[16]!==e?(p=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=p):p=t[17];let A;t[18]!==S||t[19]!==p?(A=n.jsx(F,{variant:"outline",onClick:S,children:p}),t[18]=S,t[19]=p,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>x("ok"),t[21]=$):$=t[21];let I;t[22]!==e?(I=e("announcements.ptBr.ok"),t[22]=e,t[23]=I):I=t[23];let D;t[24]!==I?(D=n.jsx(F,{onClick:$,children:I}),t[24]=I,t[25]=D):D=t[25];let C;t[26]!==A||t[27]!==D?(C=n.jsxs(on,{children:[A,D]}),t[26]=A,t[27]=D,t[28]=C):C=t[28];let M;t[29]!==C||t[30]!==_?(M=n.jsxs(At,{className:"sm:max-w-md",children:[P,_,C]}),t[29]=C,t[30]=_,t[31]=M):M=t[31];let K;return t[32]!==g||t[33]!==M?(K=n.jsx(Ct,{open:g,onOpenChange:j,children:M}),t[32]=g,t[33]=M,t[34]=K):K=t[34],K}function ro(t){return{...t,language:"en"}}function lo(t){return{...t,language:"pt-BR"}}function co(t){const e=an(t);return typeof e=="string"?e:void 0}function uo(){return co("experiment-pipeline-check"),null}function mo(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;rn(o.id,{name:o.name??void 0,slug:o.slug??void 0}),ln();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(uo,{}),e[0]=r):r=e[0],r}function fo(t){const{prev:e,virtualMcpId:o,decopilotId:r,savedLayout:s,opts:a,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,w=(o??m)!==m;let u,y;return a?.panel?y=a.panel:a?.newThread&&!w&&cn(e.tabId)?(y=e.tabId,c.mainpanel=e.mainpanel,u=e.sidepanel):s?(y=s.tab,s.sidepanel!==void 0&&(u=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!w&&e.tabId&&!dn(e.tabId)&&(y=e.tabId),u!==void 0&&(c.sidepanel=u),a?.autosend&&(c.autosend=i),{tabId:y,search:c}}const Ht="studio:thread-layout:v4",ho=50;function Ut(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 go(t,e,o,r=ho){const s=t.filter(([a])=>a!==e);for(s.push([e,Ut(o)]);s.length>r;)s.shift();return s}function ft(){try{const t=sessionStorage.getItem(Ht);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 Gt(t){try{sessionStorage.setItem(Ht,JSON.stringify(t))}catch{}}function po(t,e){t&&Gt(go(ft(),t,e))}function yo(t){if(!t)return null;const e=ft().find(([o])=>o===t);return e?Ut(e[1]):null}function ii(t){if(!t)return;const e=ft(),o=e.filter(([r])=>r!==t);o.length!==e.length&&Gt(o)}function Jt(t){return{queryKey:Ue.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 ai(t){const e=R.c(10);let o;e[0]!==t?(o=Jt(t),e[0]=t,e[1]=o):o=e[1];const r=He(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 bo(t){const e=R.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 c=i,m=xo;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(Tt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let w;e[3]!==a?(w=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=w):w=e[4];let u;e[5]!==w?(u=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[5]=w,e[6]=u):u=e[6];let y;e[7]!==s||e[8]!==r||e[9]!==a?(y=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]=y):y=e[10];let l;e[11]!==y?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[11]=y,e[12]=l):l=e[12];let g;e[13]!==u||e[14]!==l?(g=n.jsxs("div",{className:"space-y-2",children:[u,l]}),e[13]=u,e[14]=l,e[15]=g):g=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]!==c||e[19]!==f?(d=n.jsx(F,{onClick:c,children:f}),e[18]=c,e[19]=f,e[20]=d):d=e[20];let x;e[21]!==a?(x=a("common.goBack"),e[21]=a,e[22]=x):x=e[22];let b;e[23]!==x?(b=n.jsx(F,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=b):b=e[24];let S;e[25]!==b||e[26]!==d?(S=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,b]}),e[25]=b,e[26]=d,e[27]=S):S=e[27];let j;return e[28]!==S||e[29]!==g?(j=n.jsxs(fe,{children:[h,g,S]}),e[28]=S,e[29]=g,e[30]=j):j=e[30],j}function xo(){window.location.href="/"}function So(t){const e=R.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(un,{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 c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let h;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(h=o.ctaUrl&&o.ctaLabel?n.jsx(F,{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 w=`/${encodeURIComponent(r)}/settings/infra-billing`;let u;e[11]!==s?(u=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=u):u=e[12];let y;e[13]!==w||e[14]!==u?(y=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:w,children:u})}),e[13]=w,e[14]=u,e[15]=y):y=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let g;e[18]!==l?(g=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=g):g=e[19];let f;e[20]!==g||e[21]!==h||e[22]!==y?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,y,g]}),e[20]=g,e[21]=h,e[22]=y,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(fe,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}function wo(t){const e=R.c(8);let o;e[0]!==t?(o=Ue.orgNotice(t??""),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=r):r=e[3];const s=!!t;let a;return e[4]!==o||e[5]!==r||e[6]!==s?(a={queryKey:o,queryFn:r,enabled:s,staleTime:6e4},e[4]=o,e[5]=r,e[6]=s,e[7]=a):a=e[7],He(a)}const vo="/settings/infra-billing";function jo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(vo)}function ko(t){const e=R.c(7),{org:o,children:r}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const a=s;let i;return e[3]!==r||e[4]!==o||e[5]!==a?(i=n.jsx(xn,{org:o,project:a,children:r}),e[3]=r,e[4]=o,e[5]=a,e[6]=i):i=e[6],i}function To(){const t=Et(),e=Wn(),{org:o}=mt(),r=mn({strict:!1}),s=Dt(),{openPanel:a,closePanel:i}=$n(),c=Xn(),m=Zn(),h=es(),w=ts(),u=(f,d=!0)=>t({to:".",search:f,replace:d}),y=()=>u(f=>({...f,sidepanel:!0})),l=(f,d,x)=>{const b=!!m&&m===f;m&&!b&&po(m,{tab:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const S=b?null:yo(f),j=It(o.id).id,P=fo({prev:{virtualmcpid:c,tabId:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel},virtualMcpId:d,decopilotId:j,savedLayout:S,opts:x,autosendValue:Qn});return w(f,()=>P.search,{virtualMcpId:d,view:{tabId:P.tabId}})};return{openSidePanel:y,setTaskId:l,createNewTask:async(f,d,x)=>{const b=crypto.randomUUID(),S=f??h;try{await e?.create({id:b,virtual_mcp_id:S,...d?{branch:d}:{}})}catch{}l(b,S,{...x,newThread:!0})},openTab:a,closeTab:i}}const No=new Set(["/$org/","/$org/home"]);function _o(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Po},t[0]=e):e=t[0],$t(e)}function Po(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&No.has(e)}function Ao(){const t=R.c(63);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=fn(e)?.params.org,[s,a]=se.useState(!1),[i,c]=Ys(),[m,h]=Un(),w=hn(),u=_o(),y=r??"";let l;t[1]!==y?(l=Jt(y),t[1]=y,t[2]=l):l=t[2];const g=!!r&&u;let f;t[3]!==l||t[4]!==g?(f={...l,enabled:g},t[3]=l,t[4]=g,t[5]=f):f=t[5],He(f);const{data:d}=Be.useSession(),x=d?.user?.id;let b;t[6]!==r||t[7]!==x?(b=r&&x?gn(x,r):null,t[6]=r,t[7]=x,t[8]=b):b=t[8];const S=b;let j,P;t[9]!==w?(j=()=>{const E=z=>{if(vt(z)&&z.code==="KeyK"){z.preventDefault(),Vs();return}if(z.key==="?"&&!Ms(z.target)){z.preventDefault(),a(!0);return}vt(z)&&z.code==="BracketLeft"&&w.history.canGoBack()&&(z.preventDefault(),w.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},P=[w],t[9]=w,t[10]=j,t[11]=P):(j=t[10],P=t[11]),se.useEffect(j,P);let k;t[12]!==r?(k=Ue.activeOrganization(r),t[12]=r,t[13]=k):k=t[13];let v;t[14]!==r||t[15]!==x?(v=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:E}=await Be.organization.getFullOrganization({query:{organizationSlug:r}}).finally(Eo),z=rt(E);return E&&!z&&localStorage.setItem(Ke.lastOrgSlug(),r),x&&E&&yn(x,r,E),E},t[14]=r,t[15]=x,t[16]=v):v=t[16];const T=S?S.data:void 0,N=S?.updatedAt;let _;t[17]!==T||t[18]!==N||t[19]!==k||t[20]!==v?(_={queryKey:k,queryFn:v,initialData:T,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=T,t[18]=N,t[19]=k,t[20]=v,t[21]=_):_=t[21];const{data:p}=Nt(_),A=p?.id,$=p?.slug,{data:I}=ns(A,$),D=!!I?.ssoRequired&&!I.authenticated,{data:C}=wo($);let M;t[22]===Symbol.for("react.memo_cache_sentinel")?(M={select:Co},t[22]=M):M=t[22];const K=$t(M),V=C?.severity==="block"&&!jo(K),q=A??"",W=$??"";let Y;t[23]!==q||t[24]!==W?(Y=Hn({connectionId:Ot,orgId:q,orgSlug:W}),t[23]=q,t[24]=W,t[25]=Y):Y=t[25];const L=!!A&&!!$;let Q;if(t[26]!==Y||t[27]!==L?(Q={...Y,enabled:L},t[26]=Y,t[27]=L,t[28]=Q):Q=t[28],He(Q),(!p||rt(p)||D||V)&&Ws(),!p){let E;return t[29]!==r?(E=n.jsx(fs,{orgSlug:r}),t[29]=r,t[30]=E):E=t[30],E}if(rt(p)){localStorage.getItem(Ke.lastOrgSlug())===r&&localStorage.removeItem(Ke.lastOrgSlug());let E;return t[31]!==p.name?(E=n.jsx(pn,{orgName:p.name}),t[31]=p.name,t[32]=E):E=t[32],E}if(V&&C){let E;return t[33]!==p.slug||t[34]!==C?(E=n.jsx(So,{notice:C,orgSlug:p.slug}),t[33]=p.slug,t[34]=C,t[35]=E):E=t[35],E}if(D){let E;return t[36]!==p.id||t[37]!==p.name||t[38]!==p.slug||t[39]!==I.domain?(E=n.jsx(bo,{orgId:p.id,orgSlug:p.slug,orgName:p.name,domain:I.domain}),t[36]=p.id,t[37]=p.name,t[38]=p.slug,t[39]=I.domain,t[40]=E):E=t[40],E}const oe=p.logo??null;let B;t[41]!==p||t[42]!==oe?(B={...p,logo:oe},t[41]=p,t[42]=oe,t[43]=B):B=t[43];let X;t[44]!==p?(X=n.jsx(mo,{activeOrg:p}),t[44]=p,t[45]=X):X=t[45];let Z;t[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(bn,{}),t[46]=Z):Z=t[46];let ee;t[47]===Symbol.for("react.memo_cache_sentinel")?(ee=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(Ds,{}),n.jsx(to,{})]}),t[47]=ee):ee=t[47];let te;t[48]!==i||t[49]!==c?(te=i&&n.jsx(Us,{open:i,onOpenChange:c}),t[48]=i,t[49]=c,t[50]=te):te=t[50];let H;t[51]!==m||t[52]!==h?(H=m&&n.jsx(Gn,{open:!0,onOpenChange:h,source:Jn()}),t[51]=m,t[52]=h,t[53]=H):H=t[53];let U;t[54]!==s?(U=n.jsx(zs,{open:s,onOpenChange:a}),t[54]=s,t[55]=U):U=t[55];let ne;t[56]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(ao,{}),t[56]=ne):ne=t[56];let ie;return t[57]!==B||t[58]!==X||t[59]!==te||t[60]!==H||t[61]!==U?(ie=n.jsxs(ko,{org:B,children:[X,Z,ee,te,H,U,ne]}),t[57]=B,t[58]=X,t[59]=te,t[60]=H,t[61]=U,t[62]=ie):ie=t[62],ie}function Co(t){return t.location.pathname}function Eo(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Oo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Yn,{children:n.jsx(Ao,{})}),t[0]=e):e=t[0],e}const ri=Object.freeze(Object.defineProperty({__proto__:null,default:Oo,usePanelActions:To},Symbol.toStringTag,{value:"Module"}));export{G as K,hs as L,To as a,vt as b,ks as c,ai as d,Ms as e,ii as f,ri as g,zt as i,Vs as o,si as r,oi as s,wo as u};
1
+ import{c as R,b as J,e as st,j as n,B as F,t as We,bX as fe,ad as Tt,a as Be,G as Vt,R as Nt,K as Ue,bY as Wt,bZ as Yt,aw as Ke,l as ht,aX as Qt,x as gt,r as se,ab as Xt,ac as re,s as _t,v as Pt,q as At,D as Ct,d as Et,a2 as mt,J as Ot,m as He,y as ct,aL as It,b_ as Zt,aR as en,aV as pt,F as tn,b$ as nn,aM as sn,w as on,c0 as an,c1 as rn,c2 as ln,c3 as cn,c4 as dn,a3 as un,u as mn,a4 as fn,c5 as hn,c6 as gn,k as $t,c7 as rt,c8 as pn,c9 as yn,O as bn,_ as xn}from"./index-BeWb3VLq.js";import{A as it}from"./avatar-DjIkOwsx.js";import{t as Lt}from"./Building02-BHJQSDUK.js";import{i as Sn,s as ae}from"./UserSquare-pmxb5ZdZ.js";import{aA as wn,W as vn,I as lt,aa as jn,K as kn,aB as Tn,n as yt,g as Nn,p as _n,k as Pn,aC as An,l as Cn}from"./agent-icon-CiKTiUdq.js";import{s as En}from"./XClose-BVxVAZ6V.js";import{a as On,u as In}from"./use-project-scope-BOj2O9A_.js";import{u as Dt,a as $n}from"./use-panel-navigate-CXkMPISv.js";import{i as de}from"./CheckCircle-Cs8i9zYt.js";import{i as bt}from"./Monitor01-Bz6QaUO4.js";import{i as qe}from"./ZoomOut-DixQygt2.js";import{u as Ln}from"./use-clock-tick-DE4s8Okz.js";import{s as xt}from"./Plus-Dewm72je.js";import{a as Dn}from"./Tool01-2gJDR0Ho.js";import{b as le,a as Je,f as Rn,e as Fn,c as Mn,C as zn}from"./command-KmLWWmqo.js";import{I as qn}from"./integration-icon-VoZokpOe.js";import{P as Kn}from"./project-icon-Ds8VtVRG.js";import{a as Bn,m as Hn}from"./use-mcp-client-2WkK0AxE.js";import{u as Un,a as Gn,n as Jn}from"./new-project-dialog-DfI138Mw.js";import{S as Vn,u as Wn}from"./thread-intent-CoB1rbzj.js";import{R as Yn}from"./required-auth-layout-DhxdstQv.js";import{A as Qn}from"./autosend-BTx7-p6a.js";import{u as Xn,a as Zn,b as es,c as ts}from"./thread-route-BPSSuk8V.js";import{u as ns}from"./use-org-sso-BnFa9r-G.js";function ss(t){const e=R.c(49),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let c;e[0]!==r||e[1]!==i?(c=async()=>{const p=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await p.json();if(!p.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==r?(m=p=>{window.location.href=`/${p.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=p=>{We.error(p instanceof Error?p.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let w;e[7]!==c||e[8]!==m||e[9]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[7]=c,e[8]=m,e[9]=h,e[10]=w):w=e[10];const u=st(w),y=os;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(it,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Lt,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let g;e[14]!==o||e[15]!==i?(g=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=g):g=e[16];let f;e[17]!==g?(f=n.jsx("h3",{className:"text-lg font-medium",children:g}),e[17]=g,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 b;e[24]!==f||e[25]!==x?(b=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=b):b=e[26];let S;e[27]!==u?(S=()=>u.mutate(),e[27]=u,e[28]=S):S=e[28];let j;e[29]!==u.isPending||e[30]!==o||e[31]!==i?(j=u.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=u.isPending,e[30]=o,e[31]=i,e[32]=j):j=e[32];let P;e[33]!==u.isPending||e[34]!==S||e[35]!==j?(P=n.jsx(F,{onClick:S,disabled:u.isPending,children:j}),e[33]=u.isPending,e[34]=S,e[35]=j,e[36]=P):P=e[36];const k=u.isPending;let v;e[37]!==i?(v=i("common.goHome"),e[37]=i,e[38]=v):v=e[38];let T;e[39]!==u.isPending||e[40]!==v?(T=n.jsx(F,{variant:"ghost",onClick:y,disabled:k,children:v}),e[39]=u.isPending,e[40]=v,e[41]=T):T=e[41];let N;e[42]!==P||e[43]!==T?(N=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[P,T]}),e[42]=P,e[43]=T,e[44]=N):N=e[44];let _;return e[45]!==b||e[46]!==N||e[47]!==l?(_=n.jsxs(fe,{children:[l,b,N]}),e[45]=b,e[46]=N,e[47]=l,e[48]=_):_=e[48],_}function os(){window.location.href="/"}function St(t){const e=R.c(25),{orgSlug:o,orgName:r,reason:s}=t,a=J(),i=is,c=s==="not-found",m=c?Sn:Tt;let h;e[0]!==c||e[1]!==a?(h=a(c?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=c,e[1]=a,e[2]=h):h=e[2];const w=h;let u;e[3]!==c||e[4]!==r||e[5]!==o||e[6]!==a?(u=c?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]=c,e[4]=r,e[5]=o,e[6]=a,e[7]=u):u=e[7];const y=u;let l;e[8]!==m?(l=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]=l):l=e[9];let g;e[10]!==w?(g=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[10]=w,e[11]=g):g=e[11];let f;e[12]!==y?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=f):f=e[13];let d;e[14]!==g||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[g,f]}),e[14]=g,e[15]=f,e[16]=d):d=e[16];let x;e[17]!==a?(x=a("common.goHome"),e[17]=a,e[18]=x):x=e[18];let b;e[19]!==x?(b=n.jsx(F,{onClick:i,children:x}),e[19]=x,e[20]=b):b=e[20];let S;return e[21]!==l||e[22]!==d||e[23]!==b?(S=n.jsxs(fe,{children:[l,d,b]}),e[21]=l,e[22]=d,e[23]=b,e[24]=S):S=e[24],S}function is(){window.location.href="/"}function as(t){const e=R.c(59),{invitationId:o,orgName:r,orgSlug:s,orgLogo:a}=t,i=J();let c;e[0]!==o?(c=async()=>{const C=await Be.organization.acceptInvitation({invitationId:o});if(C.error)throw new Error(C.error.message);return C.data},e[0]=o,e[1]=c):c=e[1];let m;e[2]!==s?(m=()=>{Vt(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let h;e[4]!==i?(h=C=>{We.error(C instanceof Error?C.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let w;e[6]!==c||e[7]!==m||e[8]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[6]=c,e[7]=m,e[8]=h,e[9]=w):w=e[9];const u=st(w);let y;e[10]!==o?(y=async()=>{const C=await Be.organization.rejectInvitation({invitationId:o});if(C.error)throw new Error(C.error.message);return C.data},e[10]=o,e[11]=y):y=e[11];let l,g;e[12]!==i?(l=()=>{We.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},g=C=>{We.error(C instanceof Error?C.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=g):(l=e[13],g=e[14]);let f;e[15]!==y||e[16]!==l||e[17]!==g?(f={mutationFn:y,onSuccess:l,onError:g},e[15]=y,e[16]=l,e[17]=g,e[18]=f):f=e[18];const d=st(f),x=u.isPending||d.isPending;let b;e[19]!==a||e[20]!==r?(b=a?n.jsx(it,{url:a,fallback:r,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(wn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=b):b=e[21];let S;e[22]!==r||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=S):S=e[24];let j;e[25]!==S?(j=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,e[26]=j):j=e[26];let P;e[27]!==i?(P=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=P):P=e[28];let k;e[29]!==P?(k=n.jsx("p",{className:"text-sm text-muted-foreground",children:P}),e[29]=P,e[30]=k):k=e[30];let v;e[31]!==j||e[32]!==k?(v=n.jsxs("div",{className:"space-y-2",children:[j,k]}),e[31]=j,e[32]=k,e[33]=v):v=e[33];let T;e[34]!==u?(T=()=>u.mutate(),e[34]=u,e[35]=T):T=e[35];let N;e[36]!==u.isPending||e[37]!==i?(N=u.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=u.isPending,e[37]=i,e[38]=N):N=e[38];let _;e[39]!==x||e[40]!==T||e[41]!==N?(_=n.jsx(F,{onClick:T,disabled:x,children:N}),e[39]=x,e[40]=T,e[41]=N,e[42]=_):_=e[42];let p;e[43]!==d?(p=()=>d.mutate(),e[43]=d,e[44]=p):p=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[48]!==x||e[49]!==p||e[50]!==A?($=n.jsx(F,{variant:"ghost",onClick:p,disabled:x,children:A}),e[48]=x,e[49]=p,e[50]=A,e[51]=$):$=e[51];let I;e[52]!==_||e[53]!==$?(I=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=I):I=e[54];let D;return e[55]!==v||e[56]!==I||e[57]!==b?(D=n.jsxs(fe,{children:[b,v,I]}),e[55]=v,e[56]=I,e[57]=b,e[58]=D):D=e[58],D}function rs(t){const e=R.c(23),{orgName:o,orgLogo:r}=t,s=J();let a;e[0]!==r||e[1]!==o?(a=r?n.jsx(it,{url:r,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(vn,{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 c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=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 w;e[12]!==c||e[13]!==h?(w=n.jsxs("div",{className:"space-y-2",children:[c,h]}),e[12]=c,e[13]=h,e[14]=w):w=e[14];let u;e[15]!==s?(u=s("common.goHome"),e[15]=s,e[16]=u):u=e[16];let y;e[17]!==u?(y=n.jsx(F,{variant:"ghost",onClick:ls,children:u}),e[17]=u,e[18]=y):y=e[18];let l;return e[19]!==a||e[20]!==w||e[21]!==y?(l=n.jsxs(fe,{children:[a,w,y]}),e[19]=a,e[20]=w,e[21]=y,e[22]=l):l=e[22],l}function ls(){window.location.href="/"}function cs(t){const e=R.c(45),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=J();let c;e[0]!==r?(c=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),p=await _.json();if(!_.ok||!p.success)throw new Error(p.error??"Failed to request access");return p},e[0]=r,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=us,e[2]=m):m=e[2];let h;e[3]!==i?(h=_=>{We.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let w;e[5]!==c||e[6]!==h?(w={mutationFn:c,onSuccess:m,onError:h},e[5]=c,e[6]=h,e[7]=w):w=e[7];const u=st(w);let y;e[8]!==s||e[9]!==o?(y=s?n.jsx(it,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Lt,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=y):y=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let g;e[14]!==l?(g=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=g):g=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]!==g||e[22]!==d?(x=n.jsxs("div",{className:"space-y-2",children:[g,d]}),e[21]=g,e[22]=d,e[23]=x):x=e[23];let b;e[24]!==u?(b=()=>u.mutate(),e[24]=u,e[25]=b):b=e[25];let S;e[26]!==u.isPending||e[27]!==i?(S=u.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=u.isPending,e[27]=i,e[28]=S):S=e[28];let j;e[29]!==u.isPending||e[30]!==b||e[31]!==S?(j=n.jsx(F,{onClick:b,disabled:u.isPending,children:S}),e[29]=u.isPending,e[30]=b,e[31]=S,e[32]=j):j=e[32];const P=u.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let v;e[35]!==u.isPending||e[36]!==k?(v=n.jsx(F,{variant:"ghost",onClick:ds,disabled:P,children:k}),e[35]=u.isPending,e[36]=k,e[37]=v):v=e[37];let T;e[38]!==j||e[39]!==v?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[j,v]}),e[38]=j,e[39]=v,e[40]=T):T=e[40];let N;return e[41]!==x||e[42]!==T||e[43]!==y?(N=n.jsxs(fe,{children:[y,x,T]}),e[41]=x,e[42]=T,e[43]=y,e[44]=N):N=e[44],N}function ds(){window.location.href="/"}function us(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ms(t){const e=R.c(7);let o;e[0]!==t?(o=Ue.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],Nt(s)}function fs({orgSlug:t}){const{data:e}=ms(t);if(e.status!=="member"){Wt()?.org===t&&Yt();const o=localStorage.getItem(Ke.lastOrgSlug())===t;if(o&&localStorage.removeItem(Ke.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(as,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ss,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(cs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(rs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(St,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Rt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:r,eyebrow:s,title:a,description:i,icon:c,children:m,footerLeading:h,actions:w,onDismiss:u,tone:y}=t,l=y===void 0?"neutral":y,g=h||w;let f;e[0]!==l?(f=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(En,{size:14}),e[2]=d):d=e[2];let x;e[3]!==r||e[4]!==u?(x=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:u,children:d}),e[3]=r,e[4]=u,e[5]=x):x=e[5];const b=c&&"flex items-start gap-3",S=m&&"pb-3";let j;e[6]!==b||e[7]!==S?(j=ht("p-4 pr-11",b,S),e[6]=b,e[7]=S,e[8]=j):j=e[8];let P;e[9]!==c?(P=c&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=P):P=e[10];let k;e[11]!==s?(k=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=k):k=e[12];let v;e[13]!==a?(v=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=v):v=e[14];let T;e[15]!==i?(T=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=T):T=e[16];let N;e[17]!==v||e[18]!==T||e[19]!==k?(N=n.jsxs("div",{children:[k,v,T]}),e[17]=v,e[18]=T,e[19]=k,e[20]=N):N=e[20];let _;e[21]!==m?(_=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=_):_=e[22];let p;e[23]!==N||e[24]!==_?(p=n.jsxs("div",{className:"min-w-0 flex-1",children:[N,_]}),e[23]=N,e[24]=_,e[25]=p):p=e[25];let A;e[26]!==p||e[27]!==j||e[28]!==P?(A=n.jsxs("div",{className:j,children:[P,p]}),e[26]=p,e[27]=j,e[28]=P,e[29]=A):A=e[29];let $;e[30]!==w||e[31]!==h||e[32]!==g||e[33]!==l?($=g&&n.jsxs("div",{className:ht("flex items-center justify-between gap-3 px-4 py-2.5",l==="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:w})]}),e[30]=w,e[31]=h,e[32]=g,e[33]=l,e[34]=$):$=e[34];let I;return e[35]!==o||e[36]!==A||e[37]!==$||e[38]!==f||e[39]!==x||e[40]!==l?(I=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,$]}),e[35]=o,e[36]=A,e[37]=$,e[38]=f,e[39]=x,e[40]=l,e[41]=I):I=e[41],I}const hs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Ft(t){return`[data-tour="${hs[t]}"]`}const gs=[{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 ps(t){return gs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ys(t,e){return ps(e).map(o=>({element:Ft(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const bs=Ft("switcher"),xs=30;function Mt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Ss(t,e){return ys(t,e).filter(o=>typeof o.element=="string"&&Mt(o.element))}function ws(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:()=>{Ve=!1},steps:e}}let Ve=!1;async function vs(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function js(t,e){if(Ve)return;Ve=!0;let o=0;const r=()=>{if(!Mt(bs)&&o++<xs){requestAnimationFrame(r);return}const s=Ss(t,e);if(s.length===0){Ve=!1;return}vs().then(a=>{a(ws(t,s)).drive()}).catch(()=>{Ve=!1})};r()}function ks(t){return t!=="off"}function si(t){if(!t.hasSource)return[];const e=["site-editor"];return ks(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function oi(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const qt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:bt,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:lt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:jn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:gt,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:ae,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:bt,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:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ae,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:de,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:qe,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:ae,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:de,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:qe,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:de,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:ae,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:qe,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:ae,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:de,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:qe,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:ae,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:de,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:qe,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:ae,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:lt,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:de,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:gt,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:qe,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:de,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:ae,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:lt,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:ae,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:kn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],ot="studio.release-feed.v1",dt=new Set;let ue="",me={},ut=!1;function Ts(){if(ut)return ue||"{}";try{return localStorage.getItem(ot)??"{}"}catch{return ue||"{}"}}function Kt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=Ts();return t!==ue&&(ue=t,me=Kt(t)),me}function Ns(t){dt.add(t);const e=o=>{if(!(o.key!==ot&&o.key!==null)){try{const r=localStorage.getItem(ot)??"{}",a={...Kt(r),...me};me=a,ue=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{dt.delete(t),window.removeEventListener("storage",e)}}function _s(t){me=t,ue=JSON.stringify(t);try{localStorage.setItem(ot,ue),ut=!1}catch{ut=!0}dt.forEach(e=>e())}function Ps(){const t=R.c(7),e=se.useSyncExternalStore(Ns,wt,wt);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const r=o,s=As;let a;t[2]!==e?(a=qt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let c;return t[4]!==r||t[5]!==i?(c={isSeen:r,markSeen:s,unseenCount:i},t[4]=r,t[5]=i,t[6]=c):c=t[6],c}function As(t){me[t]||_s({...me,[t]:{seenAt:new Date().toISOString()}})}const Cs=720*60*60*1e3,Es=10080*60*1e3;function Os(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 Is(t){const e=qt[0];if(!e)return null;const o=Os(e.date),r=t-o;return r<0||r>Cs?null:e}function $s(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 Ls(t,e){const o=$s(t);return o===null?!1:e-o>=Es}function Ds(){const t=R.c(46),e=J(),o=On(),r=Xt(),s=Dt(),a=!!o,i=r===re.home&&!o;let c;t[0]!==s||t[1]!==a?(c=a&&!!s&&zt(s),t[0]=s,t[1]=a,t[2]=c):c=t[2];const m=c,{data:h}=Be.useSession(),{isSeen:w,markSeen:u}=Ps(),y=Ln(6e4);let l,g,f;if(t[3]!==w||t[4]!==y||t[5]!==h?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{if(l=Is(y),!l){f=null;break e}if(!Ls(h?.user?.createdAt,y)){f=null;break e}g=w(l.id)}t[3]=w,t[4]=y,t[5]=h?.user?.createdAt,t[6]=l,t[7]=g,t[8]=f}else l=t[6],g=t[7],f=t[8];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(g)return null;let d;t[9]!==l.id||t[10]!==a||t[11]!==u||t[12]!==i||t[13]!==m||t[14]!==e?(d=()=>{u(l.id),js(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[9]=l.id,t[10]=a,t[11]=u,t[12]=i,t[13]=m,t[14]=e,t[15]=d):d=t[15];const x=d;let b;t[16]!==e?(b=e("announcements.release.ariaLabel"),t[16]=e,t[17]=b):b=t[17];let S;t[18]!==e?(S=e("announcements.release.dismiss"),t[18]=e,t[19]=S):S=t[19];const j=l.eyebrow,P=l.title;let k;t[20]!==l.id||t[21]!==u?(k=()=>u(l.id),t[20]=l.id,t[21]=u,t[22]=k):k=t[22];let v;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==u||t[26]!==e?(v=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>u(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=u,t[26]=e,t[27]=v):v=t[27];let T;t[28]!==l.cta||t[29]!==l.id||t[30]!==u||t[31]!==x?(T=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>u(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(F,{size:"sm",onClick:x,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=u,t[31]=x,t[32]=T):T=t[32];let N;t[33]!==l.bullets?(N=l.bullets.map(Rs),t[33]=l.bullets,t[34]=N):N=t[34];let _;t[35]!==N?(_=n.jsx("ul",{className:"flex flex-col gap-3",children:N}),t[35]=N,t[36]=_):_=t[36];let p;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==T||t[40]!==_||t[41]!==b||t[42]!==S||t[43]!==k||t[44]!==v?(p=n.jsx(Rt,{ariaLabel:b,dismissLabel:S,eyebrow:j,title:P,onDismiss:k,footerLeading:v,actions:T,children:_}),t[37]=l.eyebrow,t[38]=l.title,t[39]=T,t[40]=_,t[41]=b,t[42]=S,t[43]=k,t[44]=v,t[45]=p):p=t[45],p}function Rs(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)}const Bt=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Bt?"⌘":"Ctrl",G={commandPalette:{keys:[ce,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[ce,"["],description:"Back to previous"},focusChatInput:{keys:[ce,"L"],description:"Focus chat input"},saveAndFormat:{keys:[ce,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[ce,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[ce,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",ce,"S"],description:"New task"},toggleDaemon:{keys:[ce,"D"],description:"Toggle daemon logs"}},Fs=[{label:"General",shortcuts:[G.commandPalette,G.keyboardShortcuts,G.back,G.newTask,G.toggleDaemon]},{label:"Editor",shortcuts:[G.saveAndFormat]},{label:"Chat",shortcuts:[G.focusChatInput,G.togglePlanMode,G.sendMessage,G.newLine]},{label:"Questions",shortcuts:[G.selectOption]},{label:"Monitoring",shortcuts:[G.applyFilter]}];function vt(t){return Bt?t.metaKey:t.ctrlKey}function Ms(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function zs(t){const e=R.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(_t,{children:n.jsx(Pt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:Fs.map(qs)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=n.jsxs(At,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==o||e[9]!==m?(h=n.jsx(Ct,{open:o,onOpenChange:r,children:m}),e[7]=r,e[8]=o,e[9]=m,e[10]=h):h=e[10],h}function qs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ks)})]},t.label)}function Ks(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(Bs)})]},t.description)}function Bs(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 jt=8;function Hs(t){const{org:e}=mt(),o=Bn({connectionId:Ot,orgId:e.id,orgSlug:e.slug}),{data:r}=He({queryKey:Ue.globalSearch(e.id,t,jt),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:jt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Us(t){const e=R.c(195),{open:o,onOpenChange:r}=t,s=J(),a=Et(),{org:i}=mt(),{projects:c,hasProjects:m}=In(),[h,w]=se.useState(""),u=se.useDeferredValue(h),y=Hs(u);let l;e[0]!==r?(l=()=>{r(!1),w("")},e[0]=r,e[1]=l):l=e[1];const g=l;let f;e[2]!==g?(f=(q,W)=>{ct("command_palette_used",{kind:W}),q(),g()},e[2]=g,e[3]=f):f=e[3];const d=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.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:q.slug}});return}if(q.type==="task"){a({to:re.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const W=It(i.id).id;Zt(a,en({org:i.slug,agentId:q.virtual_mcp_id??W,superAgentId:W}),{search:()=>({thread:q.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const b=x;let S;e[8]!==h?(S=[h],e[8]=h,e[9]=S):S=e[9];const j=S;let P,k,v,T,N,_,p,A,$,I,D,C,M;if(e[10]!==g||e[11]!==d||e[12]!==m||e[13]!==y||e[14]!==a||e[15]!==r||e[16]!==o||e[17]!==b||e[18]!==i.slug||e[19]!==c||e[20]!==j||e[21]!==s||e[22]!==h){const q=y.filter(Js),W=y.filter(Gs);let Y;e[36]!==i.slug?(Y={org:i.slug},e[36]=i.slug,e[37]=Y):Y=e[37];const L=Y;let Q;e[38]!==s?(Q=s("sidebar.navDestinations.home"),e[38]=s,e[39]=Q):Q=e[39];let Ge;e[40]===Symbol.for("react.memo_cache_sentinel")?(Ge=n.jsx(Nn,{"aria-hidden":"true"}),e[40]=Ge):Ge=e[40];let oe;e[41]!==L||e[42]!==Q?(oe={key:"home",label:Q,icon:Ge,to:re.home,params:L},e[41]=L,e[42]=Q,e[43]=oe):oe=e[43];let B;e[44]!==s?(B=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=B):B=e[45];let X;e[46]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(_n,{"aria-hidden":"true"}),e[46]=X):X=e[46];let Z;e[47]!==L||e[48]!==B?(Z={key:"reports",label:B,icon:X,to:re.reports,params:L},e[47]=L,e[48]=B,e[49]=Z):Z=e[49];let ee;e[50]!==s?(ee=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=ee):ee=e[51];let te;e[52]===Symbol.for("react.memo_cache_sentinel")?(te=n.jsx(yt,{"aria-hidden":"true"}),e[52]=te):te=e[52];let H;e[53]!==i.slug?(H={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=H):H=e[54];let U;e[55]!==ee||e[56]!==H?(U={key:"tasks",label:ee,icon:te,to:re.tasks,params:H},e[55]=ee,e[56]=H,e[57]=U):U=e[57];let ne;e[58]!==s?(ne=s("sidebar.navDestinations.library"),e[58]=s,e[59]=ne):ne=e[59];let ie;e[60]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(Pn,{"aria-hidden":"true"}),e[60]=ie):ie=e[60];let E;e[61]!==L||e[62]!==ne?(E={key:"library",label:ne,icon:ie,to:re.library,params:L},e[61]=L,e[62]=ne,e[63]=E):E=e[63];let z;e[64]!==s?(z=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=z):z=e[65];let Qe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(An,{"aria-hidden":"true"}),e[66]=Qe):Qe=e[66];let he;e[67]!==L||e[68]!==z?(he={key:"discover",label:z,icon:Qe,to:re.discover,params:L},e[67]=L,e[68]=z,e[69]=he):he=e[69];let Xe;e[70]!==oe||e[71]!==Z||e[72]!==U||e[73]!==E||e[74]!==he?(Xe=[oe,Z,U,E,he],e[70]=oe,e[71]=Z,e[72]=U,e[73]=E,e[74]=he,e[75]=Xe):Xe=e[75];const at=Xe;k=Rn,T=o,e[76]!==g||e[77]!==r?(N=O=>O?r(!0):g(),e[76]=g,e[77]=r,e[78]=N):N=e[78],e[79]!==s?(_=s("commandPalette.title"),e[79]=s,e[80]=_):_=e[80],e[81]!==s?(p=s("commandPalette.description"),e[81]=s,e[82]=p):p=e[82];let ge;e[83]!==s?(ge=s("commandPalette.placeholder"),e[83]=s,e[84]=ge):ge=e[84];let pe;e[85]!==s?(pe=s("commandPalette.placeholder"),e[85]=s,e[86]=pe):pe=e[86],e[87]!==ge||e[88]!==pe||e[89]!==h?(A=n.jsx(Fn,{placeholder:ge,"aria-label":pe,value:h,onValueChange:w}),e[87]=ge,e[88]=pe,e[89]=h,e[90]=A):A=e[90],P=Mn;let ye;e[91]!==s?(ye=s("commandPalette.empty"),e[91]=s,e[92]=ye):ye=e[92],e[93]!==ye?($=n.jsx(zn,{children:ye}),e[93]=ye,e[94]=$):$=e[94];let be;e[95]!==s?(be=s("commandPalette.goTo"),e[95]=s,e[96]=be):be=e[96];let xe;e[97]!==at||e[98]!==d||e[99]!==a?(xe=at.map(O=>n.jsxs(le,{onSelect:()=>d(()=>a({to:O.to,params:O.params}),"destination"),children:[O.icon,n.jsx("span",{children:O.label})]},O.key)),e[97]=at,e[98]=d,e[99]=a,e[100]=xe):xe=e[100],e[101]!==be||e[102]!==xe?(I=n.jsx(Je,{heading:be,children:xe}),e[101]=be,e[102]=xe,e[103]=I):I=e[103],e[104]!==d||e[105]!==m||e[106]!==a||e[107]!==i.slug||e[108]!==c||e[109]!==s?(D=m&&n.jsx(Je,{heading:s("commandPalette.projects"),children:c.map(O=>n.jsxs(le,{value:`project ${O.title}`,onSelect:()=>d(()=>a({to:re.projects,params:{org:i.slug,agentId:O.id}}),"project"),children:[n.jsx(Kn,{icon:O.icon,name:O.title,"aria-hidden":"true"}),n.jsx("span",{children:O.title})]},O.id))}),e[104]=d,e[105]=m,e[106]=a,e[107]=i.slug,e[108]=c,e[109]=s,e[110]=D):D=e[110];let Se;e[111]!==s?(Se=s("commandPalette.actions"),e[111]=s,e[112]=Se):Se=e[112];let we;e[113]!==s?(we=s("commandPalette.newProject"),e[113]=s,e[114]=we):we=e[114];let ve;e[115]!==d||e[116]!==a||e[117]!==L?(ve=()=>d(()=>a({to:re.home,params:L}),"new_project"),e[115]=d,e[116]=a,e[117]=L,e[118]=ve):ve=e[118];let Ze;e[119]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(xt,{"aria-hidden":"true"}),e[119]=Ze):Ze=e[119];let je;e[120]!==s?(je=s("commandPalette.newProject"),e[120]=s,e[121]=je):je=e[121];let ke;e[122]!==je?(ke=n.jsx("span",{children:je}),e[122]=je,e[123]=ke):ke=e[123];let Te;e[124]!==we||e[125]!==ve||e[126]!==ke?(Te=n.jsxs(le,{value:we,onSelect:ve,children:[Ze,ke]}),e[124]=we,e[125]=ve,e[126]=ke,e[127]=Te):Te=e[127];let Ne;e[128]!==s?(Ne=s("commandPalette.inviteTeammate"),e[128]=s,e[129]=Ne):Ne=e[129];let _e;e[130]!==d||e[131]!==a||e[132]!==L?(_e=()=>d(()=>a({to:"/$org/settings/members",params:L}),"invite"),e[130]=d,e[131]=a,e[132]=L,e[133]=_e):_e=e[133];let et;e[134]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(Cn,{"aria-hidden":"true"}),e[134]=et):et=e[134];let Pe;e[135]!==s?(Pe=s("commandPalette.inviteTeammate"),e[135]=s,e[136]=Pe):Pe=e[136];let Ae;e[137]!==Pe?(Ae=n.jsx("span",{children:Pe}),e[137]=Pe,e[138]=Ae):Ae=e[138];let Ce;e[139]!==Ne||e[140]!==_e||e[141]!==Ae?(Ce=n.jsxs(le,{value:Ne,onSelect:_e,children:[et,Ae]}),e[139]=Ne,e[140]=_e,e[141]=Ae,e[142]=Ce):Ce=e[142];let Ee;e[143]!==s?(Ee=s("commandPalette.addConnection"),e[143]=s,e[144]=Ee):Ee=e[144];let Oe;e[145]!==d||e[146]!==a||e[147]!==L?(Oe=()=>d(()=>a({to:"/$org/settings/connections",params:L,search:{tab:"all"}}),"add_connection"),e[145]=d,e[146]=a,e[147]=L,e[148]=Oe):Oe=e[148];let tt;e[149]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(xt,{"aria-hidden":"true"}),e[149]=tt):tt=e[149];let Ie;e[150]!==s?(Ie=s("commandPalette.addConnection"),e[150]=s,e[151]=Ie):Ie=e[151];let $e;e[152]!==Ie?($e=n.jsx("span",{children:Ie}),e[152]=Ie,e[153]=$e):$e=e[153];let Le;e[154]!==Ee||e[155]!==Oe||e[156]!==$e?(Le=n.jsxs(le,{value:Ee,onSelect:Oe,children:[tt,$e]}),e[154]=Ee,e[155]=Oe,e[156]=$e,e[157]=Le):Le=e[157];let De;e[158]!==s?(De=s("commandPalette.settings"),e[158]=s,e[159]=De):De=e[159];let Re;e[160]!==d||e[161]!==a||e[162]!==L?(Re=()=>d(()=>a({to:"/$org/settings/general",params:L}),"settings"),e[160]=d,e[161]=a,e[162]=L,e[163]=Re):Re=e[163];let nt;e[164]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(Dn,{"aria-hidden":"true"}),e[164]=nt):nt=e[164];let Fe;e[165]!==s?(Fe=s("commandPalette.settings"),e[165]=s,e[166]=Fe):Fe=e[166];let Me;e[167]!==Fe?(Me=n.jsx("span",{children:Fe}),e[167]=Fe,e[168]=Me):Me=e[168];let ze;e[169]!==De||e[170]!==Re||e[171]!==Me?(ze=n.jsxs(le,{value:De,onSelect:Re,children:[nt,Me]}),e[169]=De,e[170]=Re,e[171]=Me,e[172]=ze):ze=e[172],e[173]!==Se||e[174]!==Te||e[175]!==Ce||e[176]!==Le||e[177]!==ze?(C=n.jsxs(Je,{heading:Se,children:[Te,Ce,Le,ze]}),e[173]=Se,e[174]=Te,e[175]=Ce,e[176]=Le,e[177]=ze,e[178]=C):C=e[178],M=q.length>0&&n.jsx(Je,{heading:s("commandPalette.connections"),children:q.map(O=>n.jsxs(le,{value:`${O.title} ${O.id}`,keywords:j,onSelect:()=>d(()=>b(O),"connection"),children:[n.jsx(qn,{icon:O.icon,name:O.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:O.title})]},`connection:${O.id}`))}),v=W.length>0&&n.jsx(Je,{heading:s("commandPalette.results"),children:W.map(O=>n.jsxs(le,{value:`${O.title} ${O.id}`,keywords:j,onSelect:()=>d(()=>b(O),O.type),children:[O.type==="thread"?n.jsx(Tn,{"aria-hidden":"true"}):n.jsx(yt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:O.title}),O.type==="task"&&O.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:O.key})]},`${O.type}:${O.id}`))}),e[10]=g,e[11]=d,e[12]=m,e[13]=y,e[14]=a,e[15]=r,e[16]=o,e[17]=b,e[18]=i.slug,e[19]=c,e[20]=j,e[21]=s,e[22]=h,e[23]=P,e[24]=k,e[25]=v,e[26]=T,e[27]=N,e[28]=_,e[29]=p,e[30]=A,e[31]=$,e[32]=I,e[33]=D,e[34]=C,e[35]=M}else P=e[23],k=e[24],v=e[25],T=e[26],N=e[27],_=e[28],p=e[29],A=e[30],$=e[31],I=e[32],D=e[33],C=e[34],M=e[35];let K;e[179]!==P||e[180]!==v||e[181]!==$||e[182]!==I||e[183]!==D||e[184]!==C||e[185]!==M?(K=n.jsxs(P,{children:[$,I,D,C,M,v]}),e[179]=P,e[180]=v,e[181]=$,e[182]=I,e[183]=D,e[184]=C,e[185]=M,e[186]=K):K=e[186];let V;return e[187]!==k||e[188]!==T||e[189]!==N||e[190]!==_||e[191]!==p||e[192]!==A||e[193]!==K?(V=n.jsxs(k,{open:T,onOpenChange:N,title:_,description:p,children:[A,K]}),e[187]=k,e[188]=T,e[189]=N,e[190]=_,e[191]=p,e[192]=A,e[193]=K,e[194]=V):V=e[194],V}function Gs(t){return t.type!=="connection"}function Js(t){return t.type==="connection"}const Ye=new Vn(!1);function Vs(){Ye.set(!0)}function Ws(){Ye.set(!1)}function Ys(){const t=R.c(2),e=se.useSyncExternalStore(Ye.subscribe,Ye.get);let o;return t[0]!==e?(o=[e,Ye.set],t[0]=e,t[1]=o):o=t[1],o}const Qs=300*1e3,Xs=2;function Zs(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 eo(t,e){return t.count>=Xs&&t.version!==null&&t.version!==e}function to(){const t=R.c(31),e=J();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:Ue.appVersionCheck(),queryFn:so,refetchInterval:Qs,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:r,dataUpdatedAt:s}=He(o),[a,i]=se.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,h]=se.useState(c);s!==a&&(i(s),h(T=>Zs(T,r,"4.517.0")));const[w,u]=se.useState(null);if(!eo(m,w))return null;let y;t[2]!==e?(y=e("announcements.version.ariaLabel"),t[2]=e,t[3]=y):y=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let g;t[6]!==e?(g=e("announcements.version.eyebrow"),t[6]=e,t[7]=g):g=t[7];let f;t[8]!==e?(f=e("announcements.version.title"),t[8]=e,t[9]=f):f=t[9];let d;t[10]!==e?(d=e("announcements.version.description"),t[10]=e,t[11]=d):d=t[11];let x;t[12]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(pt,{size:16}),t[12]=x):x=t[12];let b;t[13]!==m.version?(b=()=>u(m.version),t[13]=m.version,t[14]=b):b=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.517.0"}),t[15]=e,t[16]=S):S=t[16];let j;t[17]!==e?(j=e("announcements.version.refresh"),t[17]=e,t[18]=j):j=t[18];let P;t[19]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(pt,{size:14}),t[19]=P):P=t[19];let k;t[20]!==j?(k=n.jsxs(F,{size:"sm",onClick:no,children:[j,P]}),t[20]=j,t[21]=k):k=t[21];let v;return t[22]!==k||t[23]!==y||t[24]!==l||t[25]!==g||t[26]!==f||t[27]!==d||t[28]!==b||t[29]!==S?(v=n.jsx(Rt,{ariaLabel:y,dismissLabel:l,eyebrow:g,title:f,description:d,icon:x,tone:"system",onDismiss:b,footerLeading:S,actions:k}),t[22]=k,t[23]=y,t[24]=l,t[25]=g,t[26]=f,t[27]=d,t[28]=b,t[29]=S,t[30]=v):v=t[30],v}function no(){return window.location.reload()}async function so(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function oo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const io=Date.parse("2026-07-21T00:00:00Z"),kt=t=>oo(Ke.ptBrAnnouncementSeen(t));function ao(){const t=R.c(35),e=J(),[o,r]=tn(),{data:s,isPending:a}=Be.useSession(),i=s?.user,c=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<io,w=nn()==="pt-BR",u=!a&&!!c&&h&&w&&o.language==="en"&&!kt(c).has(),[y,l]=se.useState(!1),[g,f]=se.useState(!1);!y&&!a&&(l(!0),u&&c&&(kt(c).mark(),r(lo),f(!0),ct("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=V=>{ct("pt_br_auto_switch_closed",{action:V}),f(!1)},t[0]=d):d=t[0];const x=d;let b;t[1]!==r?(b=()=>{r(ro),x("switch-back")},t[1]=r,t[2]=b):b=t[2];const S=b;let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=V=>!V&&x("dismiss"),t[3]=j):j=t[3];let P;t[4]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=P):P=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let v;t[7]!==k?(v=n.jsx(Pt,{children:k}),t[7]=k,t[8]=v):v=t[8];let T;t[9]!==e?(T=e("announcements.ptBr.description"),t[9]=e,t[10]=T):T=t[10];let N;t[11]!==T?(N=n.jsx(sn,{children:T}),t[11]=T,t[12]=N):N=t[12];let _;t[13]!==v||t[14]!==N?(_=n.jsxs(_t,{children:[v,N]}),t[13]=v,t[14]=N,t[15]=_):_=t[15];let p;t[16]!==e?(p=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=p):p=t[17];let A;t[18]!==S||t[19]!==p?(A=n.jsx(F,{variant:"outline",onClick:S,children:p}),t[18]=S,t[19]=p,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>x("ok"),t[21]=$):$=t[21];let I;t[22]!==e?(I=e("announcements.ptBr.ok"),t[22]=e,t[23]=I):I=t[23];let D;t[24]!==I?(D=n.jsx(F,{onClick:$,children:I}),t[24]=I,t[25]=D):D=t[25];let C;t[26]!==A||t[27]!==D?(C=n.jsxs(on,{children:[A,D]}),t[26]=A,t[27]=D,t[28]=C):C=t[28];let M;t[29]!==C||t[30]!==_?(M=n.jsxs(At,{className:"sm:max-w-md",children:[P,_,C]}),t[29]=C,t[30]=_,t[31]=M):M=t[31];let K;return t[32]!==g||t[33]!==M?(K=n.jsx(Ct,{open:g,onOpenChange:j,children:M}),t[32]=g,t[33]=M,t[34]=K):K=t[34],K}function ro(t){return{...t,language:"en"}}function lo(t){return{...t,language:"pt-BR"}}function co(t){const e=an(t);return typeof e=="string"?e:void 0}function uo(){return co("experiment-pipeline-check"),null}function mo(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;rn(o.id,{name:o.name??void 0,slug:o.slug??void 0}),ln();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(uo,{}),e[0]=r):r=e[0],r}function fo(t){const{prev:e,virtualMcpId:o,decopilotId:r,savedLayout:s,opts:a,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,w=(o??m)!==m;let u,y;return a?.panel?y=a.panel:a?.newThread&&!w&&cn(e.tabId)?(y=e.tabId,c.mainpanel=e.mainpanel,u=e.sidepanel):s?(y=s.tab,s.sidepanel!==void 0&&(u=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!w&&e.tabId&&!dn(e.tabId)&&(y=e.tabId),u!==void 0&&(c.sidepanel=u),a?.autosend&&(c.autosend=i),{tabId:y,search:c}}const Ht="studio:thread-layout:v4",ho=50;function Ut(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 go(t,e,o,r=ho){const s=t.filter(([a])=>a!==e);for(s.push([e,Ut(o)]);s.length>r;)s.shift();return s}function ft(){try{const t=sessionStorage.getItem(Ht);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 Gt(t){try{sessionStorage.setItem(Ht,JSON.stringify(t))}catch{}}function po(t,e){t&&Gt(go(ft(),t,e))}function yo(t){if(!t)return null;const e=ft().find(([o])=>o===t);return e?Ut(e[1]):null}function ii(t){if(!t)return;const e=ft(),o=e.filter(([r])=>r!==t);o.length!==e.length&&Gt(o)}function Jt(t){return{queryKey:Ue.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 ai(t){const e=R.c(10);let o;e[0]!==t?(o=Jt(t),e[0]=t,e[1]=o):o=e[1];const r=He(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 bo(t){const e=R.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 c=i,m=xo;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(Tt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let w;e[3]!==a?(w=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=w):w=e[4];let u;e[5]!==w?(u=n.jsx("h3",{className:"text-lg font-medium",children:w}),e[5]=w,e[6]=u):u=e[6];let y;e[7]!==s||e[8]!==r||e[9]!==a?(y=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]=y):y=e[10];let l;e[11]!==y?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[11]=y,e[12]=l):l=e[12];let g;e[13]!==u||e[14]!==l?(g=n.jsxs("div",{className:"space-y-2",children:[u,l]}),e[13]=u,e[14]=l,e[15]=g):g=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]!==c||e[19]!==f?(d=n.jsx(F,{onClick:c,children:f}),e[18]=c,e[19]=f,e[20]=d):d=e[20];let x;e[21]!==a?(x=a("common.goBack"),e[21]=a,e[22]=x):x=e[22];let b;e[23]!==x?(b=n.jsx(F,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=b):b=e[24];let S;e[25]!==b||e[26]!==d?(S=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,b]}),e[25]=b,e[26]=d,e[27]=S):S=e[27];let j;return e[28]!==S||e[29]!==g?(j=n.jsxs(fe,{children:[h,g,S]}),e[28]=S,e[29]=g,e[30]=j):j=e[30],j}function xo(){window.location.href="/"}function So(t){const e=R.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(un,{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 c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let h;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(h=o.ctaUrl&&o.ctaLabel?n.jsx(F,{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 w=`/${encodeURIComponent(r)}/settings/infra-billing`;let u;e[11]!==s?(u=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=u):u=e[12];let y;e[13]!==w||e[14]!==u?(y=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:w,children:u})}),e[13]=w,e[14]=u,e[15]=y):y=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let g;e[18]!==l?(g=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=g):g=e[19];let f;e[20]!==g||e[21]!==h||e[22]!==y?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,y,g]}),e[20]=g,e[21]=h,e[22]=y,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(fe,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}function wo(t){const e=R.c(8);let o;e[0]!==t?(o=Ue.orgNotice(t??""),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=r):r=e[3];const s=!!t;let a;return e[4]!==o||e[5]!==r||e[6]!==s?(a={queryKey:o,queryFn:r,enabled:s,staleTime:6e4},e[4]=o,e[5]=r,e[6]=s,e[7]=a):a=e[7],He(a)}const vo="/settings/infra-billing";function jo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(vo)}function ko(t){const e=R.c(7),{org:o,children:r}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const a=s;let i;return e[3]!==r||e[4]!==o||e[5]!==a?(i=n.jsx(xn,{org:o,project:a,children:r}),e[3]=r,e[4]=o,e[5]=a,e[6]=i):i=e[6],i}function To(){const t=Et(),e=Wn(),{org:o}=mt(),r=mn({strict:!1}),s=Dt(),{openPanel:a,closePanel:i}=$n(),c=Xn(),m=Zn(),h=es(),w=ts(),u=(f,d=!0)=>t({to:".",search:f,replace:d}),y=()=>u(f=>({...f,sidepanel:!0})),l=(f,d,x)=>{const b=!!m&&m===f;m&&!b&&po(m,{tab:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const S=b?null:yo(f),j=It(o.id).id,P=fo({prev:{virtualmcpid:c,tabId:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel},virtualMcpId:d,decopilotId:j,savedLayout:S,opts:x,autosendValue:Qn});return w(f,()=>P.search,{virtualMcpId:d,view:{tabId:P.tabId}})};return{openSidePanel:y,setTaskId:l,createNewTask:async(f,d,x)=>{const b=crypto.randomUUID(),S=f??h;try{await e?.create({id:b,virtual_mcp_id:S,...d?{branch:d}:{}})}catch{}l(b,S,{...x,newThread:!0})},openTab:a,closeTab:i}}const No=new Set(["/$org/","/$org/home"]);function _o(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Po},t[0]=e):e=t[0],$t(e)}function Po(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&No.has(e)}function Ao(){const t=R.c(63);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=fn(e)?.params.org,[s,a]=se.useState(!1),[i,c]=Ys(),[m,h]=Un(),w=hn(),u=_o(),y=r??"";let l;t[1]!==y?(l=Jt(y),t[1]=y,t[2]=l):l=t[2];const g=!!r&&u;let f;t[3]!==l||t[4]!==g?(f={...l,enabled:g},t[3]=l,t[4]=g,t[5]=f):f=t[5],He(f);const{data:d}=Be.useSession(),x=d?.user?.id;let b;t[6]!==r||t[7]!==x?(b=r&&x?gn(x,r):null,t[6]=r,t[7]=x,t[8]=b):b=t[8];const S=b;let j,P;t[9]!==w?(j=()=>{const E=z=>{if(vt(z)&&z.code==="KeyK"){z.preventDefault(),Vs();return}if(z.key==="?"&&!Ms(z.target)){z.preventDefault(),a(!0);return}vt(z)&&z.code==="BracketLeft"&&w.history.canGoBack()&&(z.preventDefault(),w.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},P=[w],t[9]=w,t[10]=j,t[11]=P):(j=t[10],P=t[11]),se.useEffect(j,P);let k;t[12]!==r?(k=Ue.activeOrganization(r),t[12]=r,t[13]=k):k=t[13];let v;t[14]!==r||t[15]!==x?(v=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:E}=await Be.organization.getFullOrganization({query:{organizationSlug:r}}).finally(Eo),z=rt(E);return E&&!z&&localStorage.setItem(Ke.lastOrgSlug(),r),x&&E&&yn(x,r,E),E},t[14]=r,t[15]=x,t[16]=v):v=t[16];const T=S?S.data:void 0,N=S?.updatedAt;let _;t[17]!==T||t[18]!==N||t[19]!==k||t[20]!==v?(_={queryKey:k,queryFn:v,initialData:T,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=T,t[18]=N,t[19]=k,t[20]=v,t[21]=_):_=t[21];const{data:p}=Nt(_),A=p?.id,$=p?.slug,{data:I}=ns(A,$),D=!!I?.ssoRequired&&!I.authenticated,{data:C}=wo($);let M;t[22]===Symbol.for("react.memo_cache_sentinel")?(M={select:Co},t[22]=M):M=t[22];const K=$t(M),V=C?.severity==="block"&&!jo(K),q=A??"",W=$??"";let Y;t[23]!==q||t[24]!==W?(Y=Hn({connectionId:Ot,orgId:q,orgSlug:W}),t[23]=q,t[24]=W,t[25]=Y):Y=t[25];const L=!!A&&!!$;let Q;if(t[26]!==Y||t[27]!==L?(Q={...Y,enabled:L},t[26]=Y,t[27]=L,t[28]=Q):Q=t[28],He(Q),(!p||rt(p)||D||V)&&Ws(),!p){let E;return t[29]!==r?(E=n.jsx(fs,{orgSlug:r}),t[29]=r,t[30]=E):E=t[30],E}if(rt(p)){localStorage.getItem(Ke.lastOrgSlug())===r&&localStorage.removeItem(Ke.lastOrgSlug());let E;return t[31]!==p.name?(E=n.jsx(pn,{orgName:p.name}),t[31]=p.name,t[32]=E):E=t[32],E}if(V&&C){let E;return t[33]!==p.slug||t[34]!==C?(E=n.jsx(So,{notice:C,orgSlug:p.slug}),t[33]=p.slug,t[34]=C,t[35]=E):E=t[35],E}if(D){let E;return t[36]!==p.id||t[37]!==p.name||t[38]!==p.slug||t[39]!==I.domain?(E=n.jsx(bo,{orgId:p.id,orgSlug:p.slug,orgName:p.name,domain:I.domain}),t[36]=p.id,t[37]=p.name,t[38]=p.slug,t[39]=I.domain,t[40]=E):E=t[40],E}const oe=p.logo??null;let B;t[41]!==p||t[42]!==oe?(B={...p,logo:oe},t[41]=p,t[42]=oe,t[43]=B):B=t[43];let X;t[44]!==p?(X=n.jsx(mo,{activeOrg:p}),t[44]=p,t[45]=X):X=t[45];let Z;t[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(bn,{}),t[46]=Z):Z=t[46];let ee;t[47]===Symbol.for("react.memo_cache_sentinel")?(ee=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(Ds,{}),n.jsx(to,{})]}),t[47]=ee):ee=t[47];let te;t[48]!==i||t[49]!==c?(te=i&&n.jsx(Us,{open:i,onOpenChange:c}),t[48]=i,t[49]=c,t[50]=te):te=t[50];let H;t[51]!==m||t[52]!==h?(H=m&&n.jsx(Gn,{open:!0,onOpenChange:h,source:Jn()}),t[51]=m,t[52]=h,t[53]=H):H=t[53];let U;t[54]!==s?(U=n.jsx(zs,{open:s,onOpenChange:a}),t[54]=s,t[55]=U):U=t[55];let ne;t[56]===Symbol.for("react.memo_cache_sentinel")?(ne=n.jsx(ao,{}),t[56]=ne):ne=t[56];let ie;return t[57]!==B||t[58]!==X||t[59]!==te||t[60]!==H||t[61]!==U?(ie=n.jsxs(ko,{org:B,children:[X,Z,ee,te,H,U,ne]}),t[57]=B,t[58]=X,t[59]=te,t[60]=H,t[61]=U,t[62]=ie):ie=t[62],ie}function Co(t){return t.location.pathname}function Eo(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Oo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Yn,{children:n.jsx(Ao,{})}),t[0]=e):e=t[0],e}const ri=Object.freeze(Object.defineProperty({__proto__:null,default:Oo,usePanelActions:To},Symbol.toStringTag,{value:"Module"}));export{G as K,hs as L,To as a,vt as b,ks as c,ai as d,Ms as e,ii as f,ri as g,zt as i,Vs as o,si as r,oi as s,wo as u};
@@ -1,4 +1,4 @@
1
- import{c as M,b as ve,r as z,j as a,B as we,l as Q,K as Ft,ap as Gs,av as ar,az as Fa,U as Ot,t as _e,T as xs,V as vs,X as ys,a as ws,a2 as js,bs as $a,h as Lt,aq as Ea,I as _a,a5 as Oa,o as Ps,R as lr,m as Rt,dX as Qs,F as ir,D as or,v as cr,q as dr,Q as ur,H as hr,a$ as fr,a3 as mr,aV as Ws,e as Tn,y as La,J as Ua}from"./index-D_jzSCP9.js";import{S as za}from"./separator-DI0EmK0i.js";import{f as qa,u as Vt,r as pr,l as br,c as gr,b as Ha}from"./chat-context-BE5W0eRy.js";import{u as Ht,$ as Ka,c as xr,b as vr,a0 as Js,a1 as hs,a2 as In,a3 as Va,a4 as Ga,G as Ds,a5 as Qa,a6 as Bn,a7 as Wa,a8 as Ja,a9 as Xa,aa as Ya,ab as Za,ac as el,ad as tl,C as Xs,A as yr,ae as sl,af as wr,w as jr}from"./site-editor-toast-vUK6CnYX.js";import{L as nl,a as rl}from"./shell-layout-CKWLH4bq.js";import{I as Pr}from"./toolbar-icon-button-Dvrbx_wP.js";import{P as al,a as ll,b as il}from"./popover-BVmz1c3N.js";import{c as wt,T as jt,a as Pt,b as Ss}from"./tooltip-DZoMaiH-.js";import{A as Ys,a as Zs,b as en,c as tn,g as sn,d as nn,e as rn,f as an}from"./alert-dialog--q-PWeut.js";import{d as ol,e as cl,c as dl,C as Dn,a as Mn,b as Fn}from"./command-Due3aGE_.js";import{T as Dt,a as Sr,c as kr}from"./tabs-PlTfpfXH.js";import{t as Cr}from"./ChevronUp-BnA2Nw_G.js";import{aH as ks,H as ul,a as Nr,aI as hl,b as fl,aJ as Ar,O as ml}from"./agent-icon-DhApO92C.js";import{i as Rr}from"./DotsVertical-C4UAKneF.js";import{b as Tr}from"./Tool01-CEmvRWh7.js";import{s as Ir}from"./Plus-CxQiW556.js";import{s as Cs}from"./Trash01-7PWQCtvD.js";import{u as ln,r as Ms,a as $n,n as Fs,g as on,b as cn}from"./use-releases-Bvh7Pdaa.js";import{u as pl}from"./use-members-7fbiQ1L2.js";import{n as bl,d as gl,l as xl,j as vl}from"./thread-intent-DYTU11gs.js";import{h as Br,r as Dr,g as yl,f as Ye,a as dn,j as Mr}from"./repository-binding-Cl8gyVcv.js";import{u as wl}from"./use-debounced-value-DNoCsO37.js";import{u as jl}from"./use-clock-tick-DiijcghV.js";import{u as Pl}from"./useInfiniteQuery-BuR8X__X.js";import{e as Sl,c as kl,p as Cl,g as Fr,h as $r,i as Er}from"./use-navigate-to-agent-DOId9IHj.js";import{R as En}from"./virtual-mcp-B7o88283.js";import{u as _r,c as Nl,e as Al}from"./experiments-tab-choice-Du4Lvv_w.js";import{G as Or}from"./repository-picker-0eUSIZ5X.js";import{u as un}from"./use-session-runtime-7d3qKI0U.js";import{u as Rl,a as Tl}from"./use-fast-preview-draft-url-CBDC7qwh.js";import{aG as Et,aH as Lr,A as fs,t as hn,aI as Ur,aJ as fn,$ as Il,b as Bl,aK as zr,ar as Dl,aL as Ml,o as Fl,z as At,f as mn,aM as $l}from"./parse-sections-C-MhwiHZ.js";import"./index-Cl9QwptG.js";import{T as El}from"./textarea-CbCQygtF.js";import{i as pn}from"./CheckCircle-4gdTBGy6.js";import{s as ms}from"./Image01-DwBREChx.js";import{b as _l}from"./format-time-Cq80KKvY.js";import{a as Ol,g as Ll}from"./UserSquare-CRvybnC2.js";import{n as Ul,b as zl,m as ql}from"./named-rule-uses-CocrtMGd.js";import{S as Hl,e as Kl,a as Vl,R as qr}from"./secret-ciphertext-DIyWW8ea.js";import{f as bn,b as Hr,r as Ns,p as Gl,c as Kr,i as gn,d as Ql,e as Vr,m as Wl,h as Jl,g as Gr,j as Xl,n as Yl,k as Zl,l as ei,o as ti,q as xn,t as si,u as Qr,s as Wr,v as $s}from"./sandbox-git-api-CH_-QFpD.js";import{b as ni,g as ri}from"./utils-LrUUDN57.js";import{i as ai}from"./Monitor01-DtC0vfP6.js";import{w as Jr,g as li,D as ii}from"./section-preview-url-7zfngvgW.js";import{w as vn}from"./device-hint-SeLRi17j.js";import{w as _n}from"./editor-DfNlEhGy.js";import{u as Xr}from"./use-content-sync-DQGv9jMR.js";import{p as oi,H as ci,r as di}from"./hosted-publish-api-CReqocob.js";import{h as ui,n as hi,a as fi}from"./hosted-publish-feedback-BuFauPpC.js";import{s as Yr}from"./save-changes-debug-nBi-n9eV.js";import{u as mi}from"./use-mcp-client-DqYHf07G.js";import{u as pi}from"./use-sandbox-events-DxcL_G2x.js";import{b as bi,a as gi}from"./sandbox-lifecycle-context-D9f3Vvrq.js";import{b as xi}from"./thread-route-BrF-OvAm.js";const On=/[\r\n<>]/,vi=/^[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/;function As(t){const e=t?.userName?.trim();if(!e||On.test(e))return null;const s=t?.userEmail?.trim();return!s||On.test(s)?{userName:e}:vi.test(s)?{userName:e,userEmail:s}:{userName:e}}function yi(t){return t.split(`
1
+ import{c as M,b as ve,r as z,j as a,B as we,l as Q,K as Ft,ap as Gs,av as ar,az as Fa,U as Ot,t as _e,T as xs,V as vs,X as ys,a as ws,a2 as js,bs as $a,h as Lt,aq as Ea,I as _a,a5 as Oa,o as Ps,R as lr,m as Rt,dX as Qs,F as ir,D as or,v as cr,q as dr,Q as ur,H as hr,a$ as fr,a3 as mr,aV as Ws,e as Tn,y as La,J as Ua}from"./index-BeWb3VLq.js";import{S as za}from"./separator-l8ktDBQ-.js";import{f as qa,u as Vt,r as pr,l as br,c as gr,b as Ha}from"./chat-context-BEyCIAaN.js";import{u as Ht,$ as Ka,c as xr,b as vr,a0 as Js,a1 as hs,a2 as In,a3 as Va,a4 as Ga,G as Ds,a5 as Qa,a6 as Bn,a7 as Wa,a8 as Ja,a9 as Xa,aa as Ya,ab as Za,ac as el,ad as tl,C as Xs,A as yr,ae as sl,af as wr,w as jr}from"./site-editor-toast-C48kJZ8y.js";import{L as nl,a as rl}from"./shell-layout-Dpds4_um.js";import{I as Pr}from"./toolbar-icon-button-DKjsnGdZ.js";import{P as al,a as ll,b as il}from"./popover-s88DXvPL.js";import{c as wt,T as jt,a as Pt,b as Ss}from"./tooltip-4vv5k-uR.js";import{A as Ys,a as Zs,b as en,c as tn,g as sn,d as nn,e as rn,f as an}from"./alert-dialog-BdWXpnme.js";import{d as ol,e as cl,c as dl,C as Dn,a as Mn,b as Fn}from"./command-KmLWWmqo.js";import{T as Dt,a as Sr,c as kr}from"./tabs-Cw5epDK7.js";import{t as Cr}from"./ChevronUp-BT7eMKPK.js";import{aH as ks,H as ul,a as Nr,aI as hl,b as fl,aJ as Ar,O as ml}from"./agent-icon-CiKTiUdq.js";import{i as Rr}from"./DotsVertical-DbrlDgFh.js";import{b as Tr}from"./Tool01-2gJDR0Ho.js";import{s as Ir}from"./Plus-Dewm72je.js";import{s as Cs}from"./Trash01-DjE7Raat.js";import{u as ln,r as Ms,a as $n,n as Fs,g as on,b as cn}from"./use-releases-2-Z6BMdW.js";import{u as pl}from"./use-members-Cl1_-fx1.js";import{n as bl,d as gl,l as xl,j as vl}from"./thread-intent-CoB1rbzj.js";import{h as Br,r as Dr,g as yl,f as Ye,a as dn,j as Mr}from"./repository-binding-Cf_thK-b.js";import{u as wl}from"./use-debounced-value-Br6JzfN-.js";import{u as jl}from"./use-clock-tick-DE4s8Okz.js";import{u as Pl}from"./useInfiniteQuery-CxzyY6DS.js";import{e as Sl,c as kl,p as Cl,g as Fr,h as $r,i as Er}from"./use-navigate-to-agent-C2NQ-36B.js";import{R as En}from"./virtual-mcp-cTWrWR4Y.js";import{u as _r,c as Nl,e as Al}from"./experiments-tab-choice-CQ5EsK8h.js";import{G as Or}from"./repository-picker-CeCsQGv8.js";import{u as un}from"./use-session-runtime-CqJF6neP.js";import{u as Rl,a as Tl}from"./use-fast-preview-draft-url-BPrZ2XMf.js";import{aG as Et,aH as Lr,A as fs,t as hn,aI as Ur,aJ as fn,$ as Il,b as Bl,aK as zr,ar as Dl,aL as Ml,o as Fl,z as At,f as mn,aM as $l}from"./parse-sections-CigeyiXV.js";import"./index-CEnumkKh.js";import{T as El}from"./textarea-7I-DLD6x.js";import{i as pn}from"./CheckCircle-Cs8i9zYt.js";import{s as ms}from"./Image01-hTzc15CE.js";import{b as _l}from"./format-time-Cq80KKvY.js";import{a as Ol,g as Ll}from"./UserSquare-pmxb5ZdZ.js";import{n as Ul,b as zl,m as ql}from"./named-rule-uses-Bxr3PCeC.js";import{S as Hl,e as Kl,a as Vl,R as qr}from"./secret-ciphertext-CKG2rzpX.js";import{f as bn,b as Hr,r as Ns,p as Gl,c as Kr,i as gn,d as Ql,e as Vr,m as Wl,h as Jl,g as Gr,j as Xl,n as Yl,k as Zl,l as ei,o as ti,q as xn,t as si,u as Qr,s as Wr,v as $s}from"./sandbox-git-api-CH_-QFpD.js";import{b as ni,g as ri}from"./utils-t1gjPfET.js";import{i as ai}from"./Monitor01-Bz6QaUO4.js";import{w as Jr,g as li,D as ii}from"./section-preview-url-7zfngvgW.js";import{w as vn}from"./device-hint-SeLRi17j.js";import{w as _n}from"./editor-DAekV0he.js";import{u as Xr}from"./use-content-sync-C0CqYtRD.js";import{p as oi,H as ci,r as di}from"./hosted-publish-api-Cg6A3e6a.js";import{h as ui,n as hi,a as fi}from"./hosted-publish-feedback-R86hK4rw.js";import{s as Yr}from"./save-changes-debug-nBi-n9eV.js";import{u as mi}from"./use-mcp-client-2WkK0AxE.js";import{u as pi}from"./use-sandbox-events-BVhJrX2Z.js";import{b as bi,a as gi}from"./sandbox-lifecycle-context-CCjKxqdS.js";import{b as xi}from"./thread-route-BPSSuk8V.js";const On=/[\r\n<>]/,vi=/^[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/;function As(t){const e=t?.userName?.trim();if(!e||On.test(e))return null;const s=t?.userEmail?.trim();return!s||On.test(s)?{userName:e}:vi.test(s)?{userName:e,userEmail:s}:{userName:e}}function yi(t){return t.split(`
2
2
  `).filter(e=>!/^Co-authored-by:\s/i.test(e)).join(`
3
3
  `).trimEnd()}function wi(t){const e=t.userName.trim(),s=t.userEmail?.trim();return s?`Co-authored-by: ${e} <${s}>`:`Co-authored-by: ${e}`}function Zr(t,e){const s=As(e);if(!s)return t;const r=yi(t),n=wi(s);if(r.includes(n))return r;const o=r.trimEnd();return o.length>0?`${o}
4
4
 
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/agent-site-editor-DGIssniL.js","assets/index-BeWb3VLq.js","assets/index-DjdMnw7p.css","assets/chat-context-BEyCIAaN.js","assets/use-panel-navigate-CXkMPISv.js","assets/thread-route-BPSSuk8V.js","assets/use-project-scope-BOj2O9A_.js","assets/repository-binding-Cf_thK-b.js","assets/use-mcp-client-2WkK0AxE.js","assets/auth-DVebpHI3.js","assets/autosend-BTx7-p6a.js","assets/thread-intent-CoB1rbzj.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-C9NPGTmI.js","assets/task-board-ByNQwZsl.js","assets/schema-b5uziS6S.js","assets/slugify-CEUa2lfQ.js","assets/use-decopilot-events-CuBncVze.js","assets/use-ai-providers-Ct47MIru.js","assets/location-V0VwTJTt.js","assets/use-organization-settings-CE5BJyh9.js","assets/site-draft-actions-B1VIigls.js","assets/separator-l8ktDBQ-.js","assets/site-editor-toast-C48kJZ8y.js","assets/use-session-runtime-CqJF6neP.js","assets/experiments-tab-choice-CQ5EsK8h.js","assets/sandbox-url-D3mC8qhT.js","assets/utils-t1gjPfET.js","assets/ZoomOut-DixQygt2.js","assets/Image01-hTzc15CE.js","assets/use-sandbox-events-BVhJrX2Z.js","assets/sandbox-git-api-CH_-QFpD.js","assets/shell-layout-Dpds4_um.js","assets/avatar-DjIkOwsx.js","assets/User01-X6IeKYZH.js","assets/Building02-BHJQSDUK.js","assets/UserSquare-pmxb5ZdZ.js","assets/agent-icon-CiKTiUdq.js","assets/AlertCircle-Cch634f7.js","assets/Tool01-2gJDR0Ho.js","assets/ArrowUp-DLUdomd9.js","assets/ArrowLeft-CohopnCT.js","assets/LinkBroken01-Dioz3u9i.js","assets/ShoppingBag01-BStpgW0a.js","assets/CheckCircle-Cs8i9zYt.js","assets/ChevronUp-BT7eMKPK.js","assets/ChevronSelectorVertical-C5d75KyY.js","assets/Copy01-B341DqLV.js","assets/CreditCard01-4Fwr0tNh.js","assets/DotsVertical-DbrlDgFh.js","assets/Globe04-BE6c1UDj.js","assets/SwitchHorizontal01-CrC4ThKg.js","assets/Key01-kTu6t6u_.js","assets/Link01-hfA48cFL.js","assets/Minus-DqDPTtRG.js","assets/Monitor01-Bz6QaUO4.js","assets/Sun-C37Hpdko.js","assets/Play-CByslM3d.js","assets/Plus-Dewm72je.js","assets/SearchMd-7Jo0ZofC.js","assets/Trash01-DjE7Raat.js","assets/Upload01-CYfTR3aZ.js","assets/Users01-uKJoVSle.js","assets/XClose-BVxVAZ6V.js","assets/use-clock-tick-DE4s8Okz.js","assets/command-KmLWWmqo.js","assets/index-BliYmmPu.js","assets/integration-icon-VoZokpOe.js","assets/project-icon-Ds8VtVRG.js","assets/new-project-dialog-DfI138Mw.js","assets/label-TKhfC6jr.js","assets/repository-import-picker-BOku3VrR.js","assets/use-navigate-to-agent-C2NQ-36B.js","assets/repository-picker-CeCsQGv8.js","assets/tooltip-4vv5k-uR.js","assets/index-CdhgpKbn.js","assets/useInfiniteQuery-CxzyY6DS.js","assets/infiniteQueryObserver-BOCgDRcQ.js","assets/collection-search-7sBPioRN.js","assets/use-debounced-value-Br6JzfN-.js","assets/required-auth-layout-DhxdstQv.js","assets/use-org-sso-BnFa9r-G.js","assets/shell-layout-CE2Eihra.css","assets/toolbar-icon-button-DKjsnGdZ.js","assets/popover-s88DXvPL.js","assets/alert-dialog-BdWXpnme.js","assets/tabs-Cw5epDK7.js","assets/active-indicator-CCMhAsc_.js","assets/use-releases-2-Z6BMdW.js","assets/serial-task-queue-CGOeQgpr.js","assets/use-members-Cl1_-fx1.js","assets/use-org-auth-client-vWdVrvgR.js","assets/virtual-mcp-cTWrWR4Y.js","assets/url-slug-DU3tFMUC.js","assets/use-fast-preview-draft-url-BPrZ2XMf.js","assets/section-preview-url-7zfngvgW.js","assets/parse-sections-CigeyiXV.js","assets/index-CEnumkKh.js","assets/tool-namespace-DePiqr-m.js","assets/drawer-Bi1-udV5.js","assets/use-mobile-BAnIvR27.js","assets/use-mcp-prompts-BY0itm-N.js","assets/usage-stats-CKpL0uWf.js","assets/form-BGI3x6he.js","assets/utils-CVEq3hMx.js","assets/markdown-D_Bab0vD.js","assets/use-copy-C4LbXPXl.js","assets/format-time-Cq80KKvY.js","assets/differenceInSeconds-C3x8sHUj.js","assets/input-D1nDj3Gx.js","assets/icon-button-Du_O8eku.js","assets/file-type-icon-DYeFNgMs.js","assets/chat-draft-Dql_zG1A.js","assets/select-H4FJk0rp.js","assets/index-BdQq_4o_.js","assets/use-deco-credits-DhL8Ql0T.js","assets/toggle-group-BngkTNsG.js","assets/use-open-billing-url-Bewtr0D-.js","assets/index-BnbMIYQC.js","assets/checkbox-R6Pm_B33.js","assets/ai-providers-logos-DD3qZ33J.js","assets/input-D9vH1igB.js","assets/suggestion-Bu3BweEe.js","assets/use-org-fs-CxjQMzFd.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-BsVH1P4Z.js","assets/plan-ladder-CtR99jrd.js","assets/add-connection-dialog-BZwLO1Ja.js","assets/extract-connection-data-Bg9K46Rs.js","assets/metadata-D72DunRR.js","assets/connection-BXCm7RUN.js","assets/connection-card-DudSxk_f.js","assets/connection-slug-CITJ0kGN.js","assets/textarea-7I-DLD6x.js","assets/use-connection-HenJjVMr.js","assets/schema-ClGCzPdy.js","assets/connection-form-helpers-BCgvOrMH.js","assets/authenticate-and-persist-oauth-qcbNyaRp.js","assets/mcp-oauth-gJmjFND6.js","assets/mcp-oauth-Bv0ymH6e.js","assets/collection-tabs-DMsbicTn.js","assets/badge-BfMggcm8.js","assets/use-infinite-scroll-Ba0Xf9MO.js","assets/useSuspenseInfiniteQuery-CWvS_hOW.js","assets/use-task-board-events-CtQgceab.js","assets/use-chat-layout-state-CWI-mwQI.js","assets/input-Bwd_JSM8.css","assets/pair-v8_ULhan.js","assets/collapsible-BcZaehP2.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-C5DYTOzS.js","assets/types-CNU-uWw-.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/sheet-DdrzSnyB.js","assets/use-thread-outputs-C38yfNsJ.js","assets/named-rule-uses-Bxr3PCeC.js","assets/secret-ciphertext-CKG2rzpX.js","assets/alert-DlpN1nbO.js","assets/device-hint-SeLRi17j.js","assets/editor-DAekV0he.js","assets/use-content-sync-C0CqYtRD.js","assets/hosted-publish-api-Cg6A3e6a.js","assets/hosted-publish-feedback-R86hK4rw.js","assets/save-changes-debug-nBi-n9eV.js","assets/sandbox-lifecycle-context-CCjKxqdS.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/index-CqllmV-p.js","assets/use-sidebar-collapsed-NZNztmvG.js","assets/resizable-BySAwPSW.js","assets/agent-site-editor-DDGTF8rc.css","assets/agent-site-editor-content-BU-vFmu-.js","assets/agent-view-guard-Cz_9FSeB.js","assets/use-main-panel-tabs-BndsHuRH.js","assets/use-mcp-tools-Wkfd46Rr.js","assets/resolve-tab-icon-B7CsMGsC.js","assets/use-task-metadata-BBoC1uvX.js","assets/preview-source-BsRLGWUP.js","assets/use-project-native-view-presence-D4-BL2Rg.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/use-file-configs-B_k4AoEo.js","assets/site-slug-DebpOoQq.js","assets/feature-gate-4u7sb4lR.js","assets/content-tab-B8CAyeYn.js","assets/blocks-tab-states-5tpSikld.js","assets/slider-tSRa1HDF.js","assets/index-BEaGR-Ng.js","assets/tooltipContext-B3bWUtmi.js","assets/CategoricalChart-BCAB1JR1.js","assets/index-DVxNOEMj.js","assets/ActiveShapeUtils-BB436TvV.js","assets/Sector-D64VY8hG.js","assets/symbol-CW0bfPL3.js","assets/empty-state-B4dSQMeM.js","assets/runnable-block-editor-Bod17qTV.js","assets/switch-BI2l0q9a.js","assets/scroll-area-BVZXqx5M.js","assets/monaco-editor-CVRVgXSh.js","assets/calendar-kdikRXDO.js","assets/editor-classes-BaBC2QPU.js","assets/core.esm-BmE_KURk.js","assets/sortable.esm-CE2eXOQU.js","assets/combobox-CEzxugDA.js","assets/search-input-BL6XGlmm.js","assets/asset-utils-CYj7sEud.js","assets/mustache-B20fDMb8.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-lN8kagdi.js","assets/empty-state-wXIjf_EN.js"])))=>i.map(i=>d[i]);
2
+ import{k as O,l as N,m as V}from"./named-rule-view-pF5yBmDb.js";import{h as H}from"./named-rule-uses-Bxr3PCeC.js";import{aN as A,a_ as L}from"./parse-sections-CigeyiXV.js";import{aX as y,c as R,b as T,a2 as U,j as c,n as _}from"./index-BeWb3VLq.js";import{E as B}from"./empty-state-wXIjf_EN.js";import{u as K}from"./chat-context-BEyCIAaN.js";import{u as M,l as $}from"./site-editor-toast-C48kJZ8y.js";import{i as q,u as Q,S as G}from"./blocks-tab-states-5tpSikld.js";import{a as X}from"./use-panel-navigate-CXkMPISv.js";const P={running:0,everyone:1,off:2};function ae(s,e){const i=A(s,"experiments");if(i.kind==="conflict")return[];const o=e?.published??null;return Object.entries(i.values).map(([n,l],a)=>{const m=O(o,"experiments",n,l),x=m==="changed"?N(o,"experiments",n):void 0;return{order:a,row:{name:n,share:l,status:L(l),uses:e?H(e,"experiments",n):0,entryState:m,...x!==void 0?{publishedShare:x}:{}}}}).sort((n,l)=>P[n.row.status]-P[l.row.status]||n.order-l.order).map(n=>n.row)}function ce(s,e){return V(s,e?.published??null,"experiments")}function de(s){const e={contentPageVariant:s.focus?.pageVariant,contentSection:s.focus?.section,contentVariant:s.focus?.variant};return s.blockKind==="page"?{contentPageId:s.blockKey,contentCollection:void 0,contentItem:void 0,...e}:{contentPageId:void 0,contentCollection:"sections",contentItem:s.blockKey,...e}}let F=null;function z(){return F??=Promise.all([y(()=>import("./agent-site-editor-DGIssniL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170])),y(()=>import("./agent-site-editor-content-BU-vFmu-.js"),__vite__mapDeps([171,1,2,172,173,146,5,4,6,7,8,9,11,12,13,14,15,16,17,38,39,40,41,42,43,44,29,36,45,46,47,37,48,49,50,30,51,52,53,54,55,56,57,58,59,60,61,62,35,63,64,135,174,152,105,26,98,3,10,18,19,20,21,99,75,76,100,79,101,102,103,104,71,106,107,108,109,110,111,112,33,34,65,66,67,68,69,70,72,73,74,77,78,80,81,82,83,113,25,114,115,87,88,116,117,118,119,120,121,85,122,123,124,125,91,92,126,127,128,129,130,131,94,132,133,134,136,137,138,139,140,141,142,143,144,145,147,148,149,150,151,153,154,155,31,27,175,176,177,178,179,180,181,93,182,183,184,185,186,187,188,189,190,191,192,97,24,28,32,193,194,166,157,158,195,196,197,160,198,199,200,201,202,86,203,204,205,161,165,206,207,208]))]).catch(s=>{throw F=null,s}),F}function J(s){return e=>{if(!e)return;const i=()=>{s().catch(()=>{})};if(typeof requestIdleCallback=="function"){const t=requestIdleCallback(i,{timeout:2e3});return()=>cancelIdleCallback(t)}const o=setTimeout(i,200);return()=>clearTimeout(o)}}const W=J(z);function I(s){const e=R.c(7),{icon:i,title:o,description:t,action:n}=s;let l;e[0]!==n?(l=n?{children:n.label,onClick:n.onClick}:void 0,e[0]=n,e[1]=l):l=e[1];let a;return e[2]!==t||e[3]!==i||e[4]!==l||e[5]!==o?(a=c.jsx(_,{children:c.jsx(_.Content,{children:c.jsx(_.Container,{children:c.jsx(B,{icon:i,title:o,description:t,buttonProps:l})})})}),e[2]=t,e[3]=i,e[4]=l,e[5]=o,e[6]=a):a=e[6],a}function ue(s){const e=R.c(28),{virtualMcpId:i,icon:o,copy:t,skeleton:n,children:l}=s,a=T(),{org:m}=U(),x=K(),p=x?.currentBranch??null,g=M(i,p),{openPanel:k}=X();if(!p){const r=t.noDraftTitle,v=t.noDraftDesc;let d;e[0]!==a?(d=a("sectionsEditor.namedRules.openEditor"),e[0]=a,e[1]=d):d=e[1];let u;e[2]!==k?(u=()=>k("content"),e[2]=k,e[3]=u):u=e[3];let f;e[4]!==d||e[5]!==u?(f={label:d,onClick:u},e[4]=d,e[5]=u,e[6]=f):f=e[6];let b;return e[7]!==t.noDraftDesc||e[8]!==t.noDraftTitle||e[9]!==o||e[10]!==f?(b=c.jsx(I,{icon:o,title:r,description:v,action:f}),e[7]=t.noDraftDesc,e[8]=t.noDraftTitle,e[9]=o,e[10]=f,e[11]=b):b=e[11],b}if(q(g)){let r;return e[12]===Symbol.for("react.memo_cache_sentinel")?(r=c.jsx(G,{}),e[12]=r):r=e[12],r}if(g.kind==="pending"){let r;return e[13]!==n?(r=c.jsx(c.Fragment,{children:n}),e[13]=n,e[14]=r):r=e[14],r}if(g.kind!=="protocol"){let r;return e[15]!==t.loadFailed||e[16]!==t.loadFailedHint||e[17]!==o?(r=c.jsx(I,{icon:o,title:t.loadFailed,description:t.loadFailedHint}),e[15]=t.loadFailed,e[16]=t.loadFailedHint,e[17]=o,e[18]=r):r=e[18],r}const S=x?.taskId??null;let h;return e[19]!==p||e[20]!==l||e[21]!==t||e[22]!==o||e[23]!==m.slug||e[24]!==n||e[25]!==S||e[26]!==i?(h=c.jsx(Y,{orgSlug:m.slug,virtualMcpId:i,branch:p,threadId:S,icon:o,copy:t,skeleton:n,children:l},p),e[19]=p,e[20]=l,e[21]=t,e[22]=o,e[23]=m.slug,e[24]=n,e[25]=S,e[26]=i,e[27]=h):h=e[27],h}function Y(s){const e=R.c(30),{orgSlug:i,virtualMcpId:o,branch:t,threadId:n,icon:l,copy:a,skeleton:m,children:x}=s,p=T();let g;e[0]!==t||e[1]!==i||e[2]!==n||e[3]!==o?(g={orgSlug:i,virtualMcpId:o,branch:t,threadId:n,previewUrl:null},e[0]=t,e[1]=i,e[2]=n,e[3]=o,e[4]=g):g=e[4];const k=g,S=$(k),h=Q(k),r=S.data,v=h.data;if(!r||!v){if(S.isError||h.isError){const b=a.loadFailed,w=a.loadFailedHint;let E;e[5]!==p?(E=p("sectionsEditor.namedRules.tryAgain"),e[5]=p,e[6]=E):E=e[6];let C;e[7]!==S||e[8]!==h?(C=()=>{S.refetch(),h.refetch()},e[7]=S,e[8]=h,e[9]=C):C=e[9];let D;e[10]!==E||e[11]!==C?(D={label:E,onClick:C},e[10]=E,e[11]=C,e[12]=D):D=e[12];let j;return e[13]!==a.loadFailed||e[14]!==a.loadFailedHint||e[15]!==l||e[16]!==D?(j=c.jsx(I,{icon:l,title:b,description:w,action:D}),e[13]=a.loadFailed,e[14]=a.loadFailedHint,e[15]=l,e[16]=D,e[17]=j):j=e[17],j}let f;return e[18]!==m?(f=c.jsx(c.Fragment,{children:m}),e[18]=m,e[19]=f):f=e[19],f}let d;e[20]!==t||e[21]!==x||e[22]!==r||e[23]!==v||e[24]!==i||e[25]!==n||e[26]!==o?(d=x({orgSlug:i,virtualMcpId:o,branch:t,threadId:n,decofile:r,meta:v}),e[20]=t,e[21]=x,e[22]=r,e[23]=v,e[24]=i,e[25]=n,e[26]=o,e[27]=d):d=e[27];let u;return e[28]!==d?(u=c.jsx("div",{className:"contents",ref:W,children:d}),e[28]=d,e[29]=u):u=e[29],u}export{ue as S,I as a,de as c,ae as e,ce as r};
@@ -0,0 +1 @@
1
+ import{c as u,r as g,j as n,F,Z as G,_ as H,a as E,k as P,b as O,n as y,L as M}from"./index-BeWb3VLq.js";import{C as V}from"./chat-context-BEyCIAaN.js";import{C as x}from"./index-CqllmV-p.js";import{L}from"./index-CqX2WR0x.js";import{B as K}from"./blocks-preview-workspace-context-AokvrTWO.js";import{e as T,p as W,s as J,a as U,r as z,T as $,u as R,b as Z}from"./site-editor-toast-C48kJZ8y.js";import{u as q,L as B,P as Q,S as X}from"./preview-tab-ztwq5J9Z.js";import{C as Y}from"./content-tab-B8CAyeYn.js";import{T as tt}from"./tab-icon-glyph-B_hAV_wB.js";import{r as ot}from"./resolve-tab-icon-B7CsMGsC.js";import et from"./agent-site-editor-DGIssniL.js";import"./use-panel-navigate-CXkMPISv.js";import"./thread-route-BPSSuk8V.js";import"./use-project-scope-BOj2O9A_.js";import"./repository-binding-Cf_thK-b.js";import"./use-mcp-client-2WkK0AxE.js";import"./auth-DVebpHI3.js";import"./autosend-BTx7-p6a.js";import"./thread-intent-CoB1rbzj.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C9NPGTmI.js";import"./task-board-ByNQwZsl.js";import"./schema-b5uziS6S.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-CuBncVze.js";import"./use-ai-providers-Ct47MIru.js";import"./location-V0VwTJTt.js";import"./use-organization-settings-CE5BJyh9.js";import"./use-mobile-BAnIvR27.js";import"./use-sidebar-collapsed-NZNztmvG.js";import"./use-chat-layout-state-CWI-mwQI.js";import"./agent-icon-CiKTiUdq.js";import"./AlertCircle-Cch634f7.js";import"./Tool01-2gJDR0Ho.js";import"./ArrowUp-DLUdomd9.js";import"./ArrowLeft-CohopnCT.js";import"./LinkBroken01-Dioz3u9i.js";import"./ShoppingBag01-BStpgW0a.js";import"./ZoomOut-DixQygt2.js";import"./Building02-BHJQSDUK.js";import"./CheckCircle-Cs8i9zYt.js";import"./ChevronUp-BT7eMKPK.js";import"./ChevronSelectorVertical-C5d75KyY.js";import"./UserSquare-pmxb5ZdZ.js";import"./Copy01-B341DqLV.js";import"./CreditCard01-4Fwr0tNh.js";import"./DotsVertical-DbrlDgFh.js";import"./Image01-hTzc15CE.js";import"./Globe04-BE6c1UDj.js";import"./SwitchHorizontal01-CrC4ThKg.js";import"./Key01-kTu6t6u_.js";import"./Link01-hfA48cFL.js";import"./Minus-DqDPTtRG.js";import"./Monitor01-Bz6QaUO4.js";import"./Sun-C37Hpdko.js";import"./Play-CByslM3d.js";import"./Plus-Dewm72je.js";import"./SearchMd-7Jo0ZofC.js";import"./Trash01-DjE7Raat.js";import"./Upload01-CYfTR3aZ.js";import"./User01-X6IeKYZH.js";import"./Users01-uKJoVSle.js";import"./XClose-BVxVAZ6V.js";import"./tooltip-4vv5k-uR.js";import"./index-CdhgpKbn.js";import"./toolbar-icon-button-DKjsnGdZ.js";import"./shell-layout-Dpds4_um.js";import"./avatar-DjIkOwsx.js";import"./use-clock-tick-DE4s8Okz.js";import"./command-KmLWWmqo.js";import"./index-BliYmmPu.js";import"./integration-icon-VoZokpOe.js";import"./project-icon-Ds8VtVRG.js";import"./new-project-dialog-DfI138Mw.js";import"./label-TKhfC6jr.js";import"./repository-import-picker-BOku3VrR.js";import"./use-navigate-to-agent-C2NQ-36B.js";import"./repository-picker-CeCsQGv8.js";import"./useInfiniteQuery-CxzyY6DS.js";import"./infiniteQueryObserver-BOCgDRcQ.js";import"./collection-search-7sBPioRN.js";import"./use-debounced-value-Br6JzfN-.js";import"./required-auth-layout-DhxdstQv.js";import"./use-org-sso-BnFa9r-G.js";import"./sheet-DdrzSnyB.js";import"./resizable-BySAwPSW.js";import"./core.esm-BmE_KURk.js";import"./sortable.esm-CE2eXOQU.js";import"./context-menu-Bup14w-O.js";import"./create-organization-dialog-oYjru5bh.js";import"./alert-dialog-BdWXpnme.js";import"./form-BGI3x6he.js";import"./project-apps-BQ30Q_BX.js";import"./use-recent-apps-Cj-iBJUa.js";import"./use-session-runtime-CqJF6neP.js";import"./experiments-tab-choice-CQ5EsK8h.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-t1gjPfET.js";import"./use-sandbox-events-BVhJrX2Z.js";import"./sandbox-git-api-CH_-QFpD.js";import"./runnable-block-editor-Bod17qTV.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-v8_ULhan.js";import"./format-time-Cq80KKvY.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-BcZaehP2.js";import"./use-copy-C4LbXPXl.js";import"./usage-stats-CKpL0uWf.js";import"./tool-namespace-DePiqr-m.js";import"./utils-CVEq3hMx.js";import"./markdown-D_Bab0vD.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-C5DYTOzS.js";import"./types-CNU-uWw-.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-connection-HenJjVMr.js";import"./use-mcp-prompts-BY0itm-N.js";import"./use-thread-outputs-C38yfNsJ.js";import"./file-type-icon-DYeFNgMs.js";import"./secret-ciphertext-CKG2rzpX.js";import"./alert-DlpN1nbO.js";import"./parse-sections-CigeyiXV.js";import"./switch-BI2l0q9a.js";import"./textarea-7I-DLD6x.js";import"./popover-s88DXvPL.js";import"./blocks-tab-states-5tpSikld.js";import"./slider-tSRa1HDF.js";import"./index-BEaGR-Ng.js";import"./index-BdQq_4o_.js";import"./tooltipContext-B3bWUtmi.js";import"./CategoricalChart-BCAB1JR1.js";import"./index-DVxNOEMj.js";import"./ActiveShapeUtils-BB436TvV.js";import"./Sector-D64VY8hG.js";import"./symbol-CW0bfPL3.js";import"./empty-state-B4dSQMeM.js";import"./scroll-area-BVZXqx5M.js";import"./monaco-editor-CVRVgXSh.js";import"./editor-DAekV0he.js";import"./calendar-kdikRXDO.js";import"./select-H4FJk0rp.js";import"./editor-classes-BaBC2QPU.js";import"./toggle-group-BngkTNsG.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-CEzxugDA.js";import"./search-input-BL6XGlmm.js";import"./tabs-Cw5epDK7.js";import"./use-file-configs-B_k4AoEo.js";import"./asset-utils-CYj7sEud.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-lifecycle-context-CCjKxqdS.js";import"./variant-draft-pointer-Cjn_TXkR.js";import"./section-preview-url-7zfngvgW.js";import"./use-fast-preview-draft-url-BPrZ2XMf.js";import"./useQueries-DSs3oNbf.js";import"./device-hint-SeLRi17j.js";import"./releases-api-DbKlRR9w.js";import"./use-content-sync-C0CqYtRD.js";import"./hosted-publish-api-Cg6A3e6a.js";import"./virtual-mcp-cTWrWR4Y.js";import"./url-slug-DU3tFMUC.js";import"./preview-source-BsRLGWUP.js";import"./use-task-metadata-BBoC1uvX.js";import"./mustache-B20fDMb8.js";import"./checkbox-R6Pm_B33.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-lN8kagdi.js";import"./badge-BfMggcm8.js";import"./empty-state-wXIjf_EN.js";import"./site-draft-actions-B1VIigls.js";import"./separator-l8ktDBQ-.js";import"./use-releases-2-Z6BMdW.js";import"./serial-task-queue-CGOeQgpr.js";import"./use-members-Cl1_-fx1.js";import"./use-org-auth-client-vWdVrvgR.js";import"./index-CEnumkKh.js";import"./drawer-Bi1-udV5.js";import"./input-D1nDj3Gx.js";import"./icon-button-Du_O8eku.js";import"./chat-draft-Dql_zG1A.js";import"./use-deco-credits-DhL8Ql0T.js";import"./use-open-billing-url-Bewtr0D-.js";import"./index-BnbMIYQC.js";import"./ai-providers-logos-DD3qZ33J.js";import"./input-D9vH1igB.js";import"./suggestion-Bu3BweEe.js";import"./use-org-fs-CxjQMzFd.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-BsVH1P4Z.js";import"./plan-ladder-CtR99jrd.js";import"./add-connection-dialog-BZwLO1Ja.js";import"./extract-connection-data-Bg9K46Rs.js";import"./metadata-D72DunRR.js";import"./connection-BXCm7RUN.js";import"./connection-card-DudSxk_f.js";import"./connection-slug-CITJ0kGN.js";import"./schema-ClGCzPdy.js";import"./connection-form-helpers-BCgvOrMH.js";import"./authenticate-and-persist-oauth-qcbNyaRp.js";import"./mcp-oauth-gJmjFND6.js";import"./mcp-oauth-Bv0ymH6e.js";import"./collection-tabs-DMsbicTn.js";import"./use-infinite-scroll-Ba0Xf9MO.js";import"./useSuspenseInfiniteQuery-CWvS_hOW.js";import"./use-task-board-events-CtQgceab.js";import"./named-rule-uses-Bxr3PCeC.js";import"./hosted-publish-feedback-R86hK4rw.js";import"./save-changes-debug-nBi-n9eV.js";function I(o){return o.kind==="unavailable"&&o.source==="local"&&(o.problem?.reason??"not-answering")==="not-answering"}const it=o=>o;function rt(o){const t=u.c(10),{candidates:e,invalidLink:c,shell:m,editor:i}=o,r=c===void 0?!1:c,s=m===void 0?it:m,[p,l]=g.useState(null);if(p){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>l(null),t[0]=f):f=t[0];let h;return t[1]!==p||t[2]!==i?(h=i(p,f),t[1]=p,t[2]=i,t[3]=h):h=t[3],h}let a;t[4]!==e||t[5]!==r?(a=n.jsx(nt,{candidates:e,invalidLink:r,onConnect:l}),t[4]=e,t[5]=r,t[6]=a):a=t[6];let d;return t[7]!==s||t[8]!==a?(d=s(a),t[7]=s,t[8]=a,t[9]=d):d=t[9],d}function nt(o){const t=u.c(17),{candidates:e,invalidLink:c,onConnect:m}=o,i=c===void 0?!1:c,[r]=F(),{language:s}=r;let p;t[0]!==m?(p=D=>m({endpoint:D}),t[0]=m,t[1]=p):p=t[1];let l;t[2]!==e||t[3]!==p?(l={candidates:e,onFound:p},t[2]=e,t[3]=p,t[4]=l):l=t[4];const a=q(l),{state:d,access:f,needsGesture:h}=a;let k;t[5]!==e||t[6]!==s?(k=new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(e.map(T)),t[5]=e,t[6]=s,t[7]=k):k=t[7];const C=k;let j;t[8]!==f||t[9]!==a.start||t[10]!==h||t[11]!==d?(j=f==="denied"?{kind:"denied"}:h?{kind:"needs-gesture",onStart:a.start}:d.problem?{kind:"problem",problem:d.problem,host:T(d.problem.endpoint)}:{kind:"looking",paused:d.status==="paused"},t[8]=f,t[9]=a.start,t[10]=h,t[11]=d,t[12]=j):j=t[12];const _=j;let S;return t[13]!==C||t[14]!==i||t[15]!==_?(S=n.jsx(B,{wait:_,hosts:C,invalidLink:i}),t[13]=C,t[14]=i,t[15]=_,t[16]=S):S=t[16],S}const v="deco-serve",w="working-tree",st={id:"",slug:"",name:"",logo:null},mt={id:v,slug:v},pt={virtualMcpId:v,taskId:null,openTask:()=>{},createTask:()=>"",createTaskWithMessage:()=>{},activeTask:null,isThreadLocked:!1,lockedHarness:null,lockedBranch:null,currentBranch:w,setCurrentTaskBranch:()=>{}};function at(){const o=window.location.hash,t=new URLSearchParams(o.replace(/^#/,"")).has("endpoint"),e=t?W(o):null;return t&&window.history.replaceState(null,"",window.location.pathname+window.location.search),e&&J(e),{candidates:U(e,z()),invalidLink:t&&!e}}const ct=[{id:"site-editor",to:"/site-editor",label:"preview"},{id:"content",to:"/site-editor/content",label:"content"}];function lt(){const o=u.c(6),t=O();let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:dt},o[0]=e):e=o[0];const c=P(e);let m;o[1]!==t||o[2]!==c?(m=ct.map(r=>n.jsx(y.Tab,{asChild:!0,active:c==="content"==(r.id==="content"),children:n.jsxs(M,{to:r.to,activeOptions:{exact:!0},children:[n.jsx("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:n.jsx(tt,{icon:ot({tabId:r.id,kind:"system",connections:[]})})}),t(`common.mainPanelTabs.${r.label}`)]})},r.id)),o[1]=t,o[2]=c,o[3]=m):m=o[3];let i;return o[4]!==m?(i=n.jsx(y.Tabs,{children:m}),o[4]=m,o[5]=i):i=o[5],i}function dt(o){return o.matches.at(-1)?.staticData.siteEditorView}function N(o){const t=u.c(14),{children:e}=o,c=O(),{connection:m}=Z(v),i=R(v,w);let r,s;if(t[0]!==i||t[1]!==e||t[2]!==m||t[3]!==c){s=Symbol.for("react.early_return_sentinel");t:{if(r=m?T(m.endpoint):"",i.kind==="protocol"){s=e;break t}if(i.kind!=="unavailable"||I(i)){s=n.jsx(X,{headingLevel:2,waiting:!0,title:c("decoServe.connect.reaching",{host:r})});break t}}t[0]=i,t[1]=e,t[2]=m,t[3]=c,t[4]=r,t[5]=s}else r=t[4],s=t[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let p;t[6]!==i.problem?(p=i.problem??{reason:"not-answering"},t[6]=i.problem,t[7]=p):p=t[7];let l;t[8]!==r||t[9]!==p?(l={kind:"problem",problem:p,host:r},t[8]=r,t[9]=p,t[10]=l):l=t[10];let a;return t[11]!==r||t[12]!==l?(a=n.jsx(B,{wait:l,hosts:r}),t[11]=r,t[12]=l,t[13]=a):a=t[13],a}function ut(o){const t=u.c(6),{onLost:e}=o,c=R(v,w);let m;t[0]!==c?(m=I(c),t[0]=c,t[1]=m):m=t[1];const i=m;let r,s;return t[2]!==i||t[3]!==e?(r=()=>{i&&e()},s=[i,e],t[2]=i,t[3]=e,t[4]=r,t[5]=s):(r=t[4],s=t[5]),g.useEffect(r,s),null}const A={threadOpen:!1,contentOpen:!0,threadVisibilityExplicit:!1,toggleThread:()=>{},toggleContent:()=>{}};function ft(){const o=u.c(11),{data:t}=E.useSession();let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ht},o[0]=e):e=o[0];const c=P(e),m=!!t?.user;let i;o[1]!==m?(i={rail:m},o[1]=m,o[2]=i):i=o[2];const r=c??"preview";let s,p,l;o[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(lt,{}),p=n.jsx(x.Thread,{children:null}),l=n.jsx(et,{}),o[3]=s,o[4]=p,o[5]=l):(s=o[3],p=o[4],l=o[5]);let a;o[6]!==r?(a=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:r,contentNavigation:s,children:[p,l]})}),o[6]=r,o[7]=a):a=o[7];let d;return o[8]!==i||o[9]!==a?(d=n.jsx(L,{outsideOrg:i,children:a}),o[8]=i,o[9]=a,o[10]=d):d=o[10],d}function ht(o){return o.matches.at(-1)?.staticData.siteEditorView}function vt(o){const t=u.c(8),{children:e}=o,{data:c}=E.useSession(),m=!!c?.user;let i;t[0]!==m?(i={rail:m},t[0]=m,t[1]=i):i=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(x.Thread,{children:null}),t[2]=r):r=t[2];let s;t[3]!==e?(s=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:"guide",children:[r,n.jsx(x.Content,{children:e})]})}),t[3]=e,t[4]=s):s=t[4];let p;return t[5]!==i||t[6]!==s?(p=n.jsx(L,{outsideOrg:i,children:s}),t[5]=i,t[6]=s,t[7]=p):p=t[7],p}const b=()=>{},xt={connection:null,set:b,clear:b};function fr(){const o=u.c(3),[t]=g.useState(at);let e;return o[0]!==t.candidates||o[1]!==t.invalidLink?(e=n.jsx(G,{value:!0,children:n.jsx(H,{org:st,project:mt,children:n.jsx(rt,{candidates:t.candidates,invalidLink:t.invalidLink,shell:jt,editor:kt})})}),o[0]=t.candidates,o[1]=t.invalidLink,o[2]=e):e=o[2],e}function kt(o,t){return n.jsxs($.Provider,{value:{connection:o,set:b,clear:b},children:[n.jsx(ut,{onLost:t}),n.jsx(V,{value:pt,children:n.jsx(K,{children:n.jsx(ft,{})})})]})}function jt(o){return n.jsx($.Provider,{value:xt,children:n.jsx(vt,{children:o})})}function hr(){const o=u.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Q,{virtualMcpId:v})}),o[0]=t):t=o[0],t}function vr(){const o=u.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Y,{virtualMcpId:v})}),o[0]=t):t=o[0],t}export{vr as SiteEditorContent,hr as SiteEditorPreview,fr as default};