decocms 4.373.5 → 4.373.6

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 (360) hide show
  1. package/dist/client/assets/{AlertCircle-DRpebp4h.js → AlertCircle-D3eYSD-F.js} +1 -1
  2. package/dist/client/assets/{AreaChart-B0gnunw-.js → AreaChart-DwaiozPI.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-Cqy0IIEv.js → ArrowLeft-pKUucwnA.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-b56ImWX_.js → ArrowRight-dpr4pl9N.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-C2RQRHDD.js → ArrowUp-CYYVNB-P.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-BQINx9xQ.js → CartesianChart-C0zj7nlT.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-jHqe_fbp.js → CheckCircle-GeSGM969.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-BipIqZKN.js → ChevronUp-D3WR1M0A.js} +1 -1
  9. package/dist/client/assets/{Copy01-BXOyEXn_.js → Copy01-DqrZOvVi.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-gK8a476R.js → CreditCard01-VmFyjxYd.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-CBmcX5ZQ.js → DotsVertical-CD4T7H6_.js} +1 -1
  12. package/dist/client/assets/{Download01-BqdbVKkx.js → Download01-BRqjontI.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-ii8yIYGv.js → ErrorBarContext-DL2J6Vap.js} +1 -1
  14. package/dist/client/assets/{Eye-NHkb_0Hv.js → Eye-CI6aKDnd.js} +1 -1
  15. package/dist/client/assets/{Globe01-NGWhOOw4.js → Globe01-DF7y1beg.js} +1 -1
  16. package/dist/client/assets/{Globe04-DaWdeD_h.js → Globe04-BFA3LOH7.js} +1 -1
  17. package/dist/client/assets/{Image01-DRwEr3Il.js → Image01-B6W5URkI.js} +1 -1
  18. package/dist/client/assets/{Key01-CMNC3L72.js → Key01-BB4eK9Eq.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-ULL_7jIQ.js → LayoutLeft-DEnYqvHT.js} +1 -1
  20. package/dist/client/assets/{Line-DQ9rkjlL.js → Line-DrZZSRLC.js} +1 -1
  21. package/dist/client/assets/{Link01-DkJLSZKm.js → Link01-DVDPoM5q.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-DRJgOkS5.js → LinkExternal01-DpqcCYOT.js} +1 -1
  23. package/dist/client/assets/{Monitor01-BMO5GW_Z.js → Monitor01-DKEZpVnT.js} +1 -1
  24. package/dist/client/assets/{Package-CX9rDgp4.js → Package-BYLXGnrw.js} +1 -1
  25. package/dist/client/assets/{Palette-BaZfD7NH.js → Palette-CJjjIC-G.js} +1 -1
  26. package/dist/client/assets/{Play-R6tzdzJz.js → Play-DJHXfM-U.js} +1 -1
  27. package/dist/client/assets/{Plus-Bhgtdwjl.js → Plus-CFFsuHFf.js} +1 -1
  28. package/dist/client/assets/{SearchLg-CaDGdzKV.js → SearchLg-DgqRTz9C.js} +1 -1
  29. package/dist/client/assets/{SearchMd-DqAc-aF0.js → SearchMd-DRk1Er2c.js} +1 -1
  30. package/dist/client/assets/{Sector-lggKGspb.js → Sector-WqXSCDB7.js} +1 -1
  31. package/dist/client/assets/{Settings02-CqejvZCP.js → Settings02-DsaxolGj.js} +1 -1
  32. package/dist/client/assets/{Share07-BRS1J9YL.js → Share07-NUMfhSqd.js} +1 -1
  33. package/dist/client/assets/{Stars01-_MpByilY.js → Stars01-DwhcksvZ.js} +1 -1
  34. package/dist/client/assets/{Sun-BuiE9-Qr.js → Sun-C0V63ie9.js} +1 -1
  35. package/dist/client/assets/{Tool01-DHgpsL-M.js → Tool01-d_iK_DkH.js} +1 -1
  36. package/dist/client/assets/{Tool02-DC4h3G7C.js → Tool02-cweQ69Nx.js} +1 -1
  37. package/dist/client/assets/{Trash01-CePc620H.js → Trash01-Desmqajq.js} +1 -1
  38. package/dist/client/assets/{TrendUp01-BRi4yW6T.js → TrendUp01-B7gk74Ha.js} +1 -1
  39. package/dist/client/assets/{Upload01-DX6JXeV7.js → Upload01-DelvmgfV.js} +1 -1
  40. package/dist/client/assets/{User01-CuXkeRZu.js → User01-CbDoD5mb.js} +1 -1
  41. package/dist/client/assets/{UserSquare-DgZ1lpys.js → UserSquare-Bje-nfYn.js} +1 -1
  42. package/dist/client/assets/{Users01-4GrNqNW2.js → Users01-BqKNBiO6.js} +1 -1
  43. package/dist/client/assets/{X-Bg-qbBOB.js → X-CTlWdd97.js} +1 -1
  44. package/dist/client/assets/{XCircle-bO1WYRjm.js → XCircle-D6WY1ym8.js} +1 -1
  45. package/dist/client/assets/{XClose-BL7URSGz.js → XClose-DS_Db3B_.js} +1 -1
  46. package/dist/client/assets/{Zap-C63eteO6.js → Zap-XRJ8YEEc.js} +1 -1
  47. package/dist/client/assets/{ZoomOut-B8Fl4ZUs.js → ZoomOut-DBByf2mh.js} +1 -1
  48. package/dist/client/assets/{access-gate-Cy6tml22.js → access-gate-BPsOGNar.js} +1 -1
  49. package/dist/client/assets/{add-connection-dialog-D3_IjFEm.js → add-connection-dialog-TAht4cuO.js} +1 -1
  50. package/dist/client/assets/{agent-analytics-CMgNDs8a.js → agent-analytics-BU1-PzkI.js} +1 -1
  51. package/dist/client/assets/agent-app-DB0n9kOL.js +1 -0
  52. package/dist/client/assets/{agent-assets-EiqAguQ9.js → agent-assets-BrYlDhjI.js} +1 -1
  53. package/dist/client/assets/{agent-automation-BWve3gQX.js → agent-automation-DRIwy8Ar.js} +1 -1
  54. package/dist/client/assets/{agent-automations-BfhaWGsH.js → agent-automations-BHxYXOUj.js} +1 -1
  55. package/dist/client/assets/{agent-connect-sources-Bnr4gy7g.js → agent-connect-sources-wRyuYv4j.js} +1 -1
  56. package/dist/client/assets/agent-deck-Bw6Hm4Fs.js +1 -0
  57. package/dist/client/assets/{agent-e2e--u42ofiU.js → agent-e2e-DY_ih97m.js} +1 -1
  58. package/dist/client/assets/{agent-experiments-IK8fH0P-.js → agent-experiments-dhU9xmuI.js} +1 -1
  59. package/dist/client/assets/agent-file-B3o36mvT.js +1 -0
  60. package/dist/client/assets/{agent-git-D-_UYNlm.js → agent-git-Cnyq85Ut.js} +1 -1
  61. package/dist/client/assets/{agent-hosting-VQrHq4HJ.js → agent-hosting-Bfupqb3A.js} +1 -1
  62. package/dist/client/assets/{agent-icon-DufTIfP9.js → agent-icon-BRULiLDc.js} +1 -1
  63. package/dist/client/assets/agent-library-file-C6aVVhO7.js +1 -0
  64. package/dist/client/assets/{agent-monitor-nqntXwEO.js → agent-monitor-aF5mIseh.js} +1 -1
  65. package/dist/client/assets/{agent-overview-DV_onvSv.js → agent-overview-CUKcQOax.js} +1 -1
  66. package/dist/client/assets/agent-settings-BXN1E4GQ.js +1 -0
  67. package/dist/client/assets/{agent-site-editor-DfqbHKh0.js → agent-site-editor-BrClI9uN.js} +1 -1
  68. package/dist/client/assets/agent-site-editor-code-lUlSWpIf.js +2 -0
  69. package/dist/client/assets/{agent-site-editor-content-fL2OHuSD.js → agent-site-editor-content-aGIy9wkn.js} +2 -2
  70. package/dist/client/assets/{agent-site-editor-preview-yn1fEVn-.js → agent-site-editor-preview-BkdcHe-G.js} +3 -3
  71. package/dist/client/assets/agent-view-DfomKgn9.js +1 -0
  72. package/dist/client/assets/{agent-view-guard-C7QN_-Wr.js → agent-view-guard-S1hwNIOS.js} +1 -1
  73. package/dist/client/assets/{agents-list-DdmCCR4o.js → agents-list-BRkUdqSH.js} +1 -1
  74. package/dist/client/assets/{ai-providers-qMsDd_5B.js → ai-providers-BCwuu37Q.js} +1 -1
  75. package/dist/client/assets/{alert-DRbzNrSq.js → alert-B1s9CJD8.js} +1 -1
  76. package/dist/client/assets/{alert-dialog-MFqJ1LQJ.js → alert-dialog-DqO-3R76.js} +1 -1
  77. package/dist/client/assets/{api-keys-CB3qdQG6.js → api-keys-MUj_Ov5B.js} +1 -1
  78. package/dist/client/assets/api-keys-q9NetUp4.js +1 -0
  79. package/dist/client/assets/app-editor--D9yS_3r.js +1 -0
  80. package/dist/client/assets/{asset-utils-DB6jdzK1.js → asset-utils-CcZCvpL7.js} +1 -1
  81. package/dist/client/assets/{auth-BuR8_3Rx.js → auth-CXaWU5n-.js} +1 -1
  82. package/dist/client/assets/{auth-catchall-BzOKlpso.js → auth-catchall-CKeXgRzB.js} +1 -1
  83. package/dist/client/assets/{auth-entry-LKNKnOD-.js → auth-entry-DzpuiHht.js} +1 -1
  84. package/dist/client/assets/{auth-split-layout-CJz16SJc.js → auth-split-layout-B9R0oKiN.js} +1 -1
  85. package/dist/client/assets/{authenticate-and-persist-oauth-B6q4FvBV.js → authenticate-and-persist-oauth-D7P0kNl_.js} +1 -1
  86. package/dist/client/assets/{automation-list-row-BU2qQeTT.js → automation-list-row-DhIsdNHC.js} +1 -1
  87. package/dist/client/assets/{automation-runs-DrWZY5pK.js → automation-runs-JqP5LSua.js} +1 -1
  88. package/dist/client/assets/{automations-Cp3T58uS.js → automations-Bvrg2Ist.js} +1 -1
  89. package/dist/client/assets/{autosend-LI2Q470J.js → autosend-Bpehk8fy.js} +1 -1
  90. package/dist/client/assets/{avatar-YUwJoSeh.js → avatar-Didv6efi.js} +1 -1
  91. package/dist/client/assets/{badge-D82o8bXv.js → badge-BNCSp2s3.js} +1 -1
  92. package/dist/client/assets/{block-document-DgNuL_aZ.js → block-document-DGTOwJRV.js} +1 -1
  93. package/dist/client/assets/{blocks-preview-workspace-context-Br_u1FrC.js → blocks-preview-workspace-context-MbXHAD_k.js} +1 -1
  94. package/dist/client/assets/{breadcrumb-DeKFrMun.js → breadcrumb-Boq-3hHe.js} +1 -1
  95. package/dist/client/assets/{buckets-YW8Wxi0L.js → buckets-D2ABK9h6.js} +1 -1
  96. package/dist/client/assets/{build-improve-prompt-doc-BK7E3I7G.js → build-improve-prompt-doc-Cokn8AIT.js} +1 -1
  97. package/dist/client/assets/{bulk-category-panel-BzItHmfT.js → bulk-category-panel-CGL0cNkF.js} +1 -1
  98. package/dist/client/assets/{calendar-Bz7iq98w.js → calendar-Dm4fhyz-.js} +1 -1
  99. package/dist/client/assets/{capability-load-error-QZCwPJn0.js → capability-load-error-B0iwFf7_.js} +1 -1
  100. package/dist/client/assets/{category-editor-uC2n6-MT.js → category-editor-J_clPaRt.js} +1 -1
  101. package/dist/client/assets/{chart-tNixenOU.js → chart-Akk0F8wU.js} +1 -1
  102. package/dist/client/assets/{chat-context-TY-WfTe2.js → chat-context-iYlkLZJd.js} +1 -1
  103. package/dist/client/assets/{chat-draft-C8DDqrbp.js → chat-draft-BT2YB8qY.js} +1 -1
  104. package/dist/client/assets/{checkbox-Bd0pVkFs.js → checkbox-CEMIbeLG.js} +1 -1
  105. package/dist/client/assets/{choose-editor-BhSXf4h9.js → choose-editor-D7H3RTiD.js} +1 -1
  106. package/dist/client/assets/{cli-auth-success-Cx8uqzVU.js → cli-auth-success-sL-AfU_l.js} +1 -1
  107. package/dist/client/assets/{client-icons-CawGhhPp.js → client-icons-CceCjUyO.js} +1 -1
  108. package/dist/client/assets/{collapsible-DoaJMwv0.js → collapsible-Ddmiof2Z.js} +1 -1
  109. package/dist/client/assets/{collection-detail-BYvG1zRo.js → collection-detail-UAstqg8H.js} +1 -1
  110. package/dist/client/assets/{collection-display-button-Cdh_DfEz.js → collection-display-button-Cqjn8K7c.js} +1 -1
  111. package/dist/client/assets/{collection-search-Rv_Famau.js → collection-search-DJYVC05l.js} +1 -1
  112. package/dist/client/assets/{collection-table-wrapper-B-Zk2Djn.js → collection-table-wrapper-qc6gW6SL.js} +1 -1
  113. package/dist/client/assets/{collection-tabs-BW0ALmEv.js → collection-tabs-anNBFHFb.js} +1 -1
  114. package/dist/client/assets/{combobox-gVLR5Rh5.js → combobox-CGYz-V_6.js} +1 -1
  115. package/dist/client/assets/{command-BUbzDbU_.js → command-Dt5rZk11.js} +1 -1
  116. package/dist/client/assets/{companion-mcps-section-D5wFIiPY.js → companion-mcps-section-C6ViuDC1.js} +1 -1
  117. package/dist/client/assets/{connect-8mQdxEHY.js → connect-DlhT2_a0.js} +1 -1
  118. package/dist/client/assets/{connect-layout-BmiheUuP.js → connect-layout-UA_ojwUJ.js} +1 -1
  119. package/dist/client/assets/{connection-DWSp4370.js → connection-BgOyoL-N.js} +1 -1
  120. package/dist/client/assets/{connection-card-B_j7JUAi.js → connection-card-DxPN8sYJ.js} +1 -1
  121. package/dist/client/assets/{connection-detail-DPLFAzV5.js → connection-detail-D4jYnX4w.js} +1 -1
  122. package/dist/client/assets/{connection-form-helpers-BD3Obe6z.js → connection-form-helpers-BgtFrKr_.js} +1 -1
  123. package/dist/client/assets/{connections-BBQrx9eV.js → connections-C1YycoCL.js} +1 -1
  124. package/dist/client/assets/{create-organization-dialog-DFg7ZEy_.js → create-organization-dialog-B4051f2Y.js} +1 -1
  125. package/dist/client/assets/{decofile-api-D5j1--HW.js → decofile-api-qrEn75pC.js} +1 -1
  126. package/dist/client/assets/{decopilot-CoQZcLAw.js → decopilot-DUPu0_xK.js} +1 -1
  127. package/dist/client/assets/{dialog-HZ9qQm76.js → dialog-BG4c8Ew3.js} +1 -1
  128. package/dist/client/assets/{discover-D4ESd7Tz.js → discover-CZhPBem-.js} +1 -1
  129. package/dist/client/assets/{domain-settings-BvNgL15z.js → domain-settings-B5xKTZUy.js} +1 -1
  130. package/dist/client/assets/{download-app-dialog-D40FFt_i.js → download-app-dialog-BUFOH47d.js} +1 -1
  131. package/dist/client/assets/{drawer-CJCVps1a.js → drawer-HsdaIuzu.js} +1 -1
  132. package/dist/client/assets/{editor-BeNEyFY1.js → editor-D6niHdLA.js} +1 -1
  133. package/dist/client/assets/{empty-state-BSFJHfgC.js → empty-state-BI6nLRJ9.js} +1 -1
  134. package/dist/client/assets/{empty-state-D-oQVUen.js → empty-state-DtKYrRQz.js} +1 -1
  135. package/dist/client/assets/{extract-connection-data-CK3_iI7H.js → extract-connection-data-BN2GqRYG.js} +1 -1
  136. package/dist/client/assets/{feature-gate-D0BTSOOI.js → feature-gate-CBjka-VN.js} +1 -1
  137. package/dist/client/assets/{feature-paywall-DZmgqu99.js → feature-paywall-CRwtygFs.js} +1 -1
  138. package/dist/client/assets/{file-explorer-CpHhO0a0.js → file-explorer-Dm8CypxL.js} +1 -1
  139. package/dist/client/assets/{file-preview-C1g6pPFA.js → file-preview-C81z-6bM.js} +1 -1
  140. package/dist/client/assets/{file-share-button-CtVm5jXG.js → file-share-button-DZuygGvz.js} +1 -1
  141. package/dist/client/assets/{file-type-icon-BZYncmwg.js → file-type-icon-DpJWy5M2.js} +1 -1
  142. package/dist/client/assets/{folder-icon-DvyCwyeo.js → folder-icon-Bm639N0Y.js} +1 -1
  143. package/dist/client/assets/{form-CBihhH6R.js → form-Dky9WQSJ.js} +1 -1
  144. package/dist/client/assets/{gateway-client-zpb6f42t.js → gateway-client-QdZQKIDo.js} +1 -1
  145. package/dist/client/assets/{general-8dGImt4k.js → general-D__F-EyS.js} +1 -1
  146. package/dist/client/assets/{github-icon-BXivHfH-.js → github-icon-B_0P_4Xb.js} +1 -1
  147. package/dist/client/assets/{home-BJ7LX3kr.js → home-CDgdAzeZ.js} +1 -1
  148. package/dist/client/assets/{hooks-B6_FetIS.js → hooks-BP4OlUD4.js} +1 -1
  149. package/dist/client/assets/{hooks-Cr7z1jDa.js → hooks-Dr4SK9lF.js} +1 -1
  150. package/dist/client/assets/{icon-button-W-WM76O5.js → icon-button-DcEuCL60.js} +1 -1
  151. package/dist/client/assets/{index-C1neAU7j.js → index-1S4uBH3x.js} +1 -1
  152. package/dist/client/assets/{index-D06_-0n3.js → index-5QMOhTWH.js} +1 -1
  153. package/dist/client/assets/{index-LuQPyfHg.js → index-B9-heAAa.js} +4 -4
  154. package/dist/client/assets/{index-hQd2Rs55.js → index-BJVVvEJb.js} +1 -1
  155. package/dist/client/assets/{index-mYx9uY_O.js → index-BvpMJL9X.js} +1 -1
  156. package/dist/client/assets/{index-B6Lhlxso.js → index-BwRzUgh0.js} +1 -1
  157. package/dist/client/assets/{index-DkT0vWt0.js → index-C4voA6sY.js} +1 -1
  158. package/dist/client/assets/{index-Rr3pxwiA.js → index-CHtlQTUQ.js} +1 -1
  159. package/dist/client/assets/{index-Zd0dTvge.js → index-CcHKaTn6.js} +1 -1
  160. package/dist/client/assets/{index-CpQcdffy.js → index-ClSKfzUE.js} +1 -1
  161. package/dist/client/assets/{index-DyQrMS9n.js → index-Dc_i1Bik.js} +1 -1
  162. package/dist/client/assets/{index-CEibrSC7.js → index-DfOmiBMV.js} +1 -1
  163. package/dist/client/assets/{index-D36LSiH7.js → index-cOIC2Zfa.js} +1 -1
  164. package/dist/client/assets/{index-redirect-Bsh-JRej.js → index-redirect-CT5fA9So.js} +1 -1
  165. package/dist/client/assets/{index-Bn9GxS8i.js → index-v_Uq46OW.js} +1 -1
  166. package/dist/client/assets/{infiniteQueryObserver-DWBRQw_v.js → infiniteQueryObserver-Dj9z-_Ba.js} +1 -1
  167. package/dist/client/assets/{infra-billing-CnTJps2P.js → infra-billing-C_FQsgB0.js} +1 -1
  168. package/dist/client/assets/{input-C9oONNic.js → input-Bsj5KDt6.js} +1 -1
  169. package/dist/client/assets/{input-9TmKngWX.js → input-D7UnEeXl.js} +1 -1
  170. package/dist/client/assets/{input-BdRVbgEc.js → input-DQJIevdV.js} +1 -1
  171. package/dist/client/assets/{integration-icon-CyoFiiYN.js → integration-icon-B6dtorjO.js} +1 -1
  172. package/dist/client/assets/{label-DioQ1YA1.js → label-BO4yFijb.js} +1 -1
  173. package/dist/client/assets/{last-preview-page-d2hxbLrX.js → last-preview-page-Dv830AIe.js} +1 -1
  174. package/dist/client/assets/{layout-BzONNt5i.js → layout-Bxh_his-.js} +1 -1
  175. package/dist/client/assets/{legacy-agents-deep-k6vHlYIk.js → legacy-agents-deep-qsw3IhVI.js} +1 -1
  176. package/dist/client/assets/{legacy-main-redirect-CnGyVzes.js → legacy-main-redirect-C6TKhr8-.js} +1 -1
  177. package/dist/client/assets/{library-BHLqAjeY.js → library-CfLbpWZK.js} +1 -1
  178. package/dist/client/assets/{login-BlgcnYJK.js → login-CZbYiPIn.js} +1 -1
  179. package/dist/client/assets/{markdown-B7dRWvN8.js → markdown-BF4hkzaL.js} +1 -1
  180. package/dist/client/assets/{mcp-app-renderer-shF9Uwqi.js → mcp-app-renderer-Bxmf7t4w.js} +1 -1
  181. package/dist/client/assets/{mcp-oauth-CgVup_iI.js → mcp-oauth-DzKWzujJ.js} +1 -1
  182. package/dist/client/assets/{members-C_bPhhDi.js → members-CDm04dqD.js} +1 -1
  183. package/dist/client/assets/{message-templates-DqAaNZFI.js → message-templates-Dqw35wcK.js} +1 -1
  184. package/dist/client/assets/{mini-report-page-B9laPd-F.js → mini-report-page-DImPoXRk.js} +1 -1
  185. package/dist/client/assets/{mock-board-BjEfqSrD.js → mock-board-BmIzs8Cs.js} +3 -3
  186. package/dist/client/assets/{monaco-editor-yW0L-r5i.js → monaco-editor-CLDMxU3Q.js} +1 -1
  187. package/dist/client/assets/{monitoring-stats-row-C6QS0tj3.js → monitoring-stats-row-1O6-pYvX.js} +1 -1
  188. package/dist/client/assets/{multi-select-DawxxHTL.js → multi-select-DJ-p4Z1M.js} +1 -1
  189. package/dist/client/assets/{mustache-CmprohQX.js → mustache-7izSLTr2.js} +1 -1
  190. package/dist/client/assets/{oauth-callback-CztQgjwi.js → oauth-callback-D4wX3DB9.js} +1 -1
  191. package/dist/client/assets/{oauth-callback-ai-provider-BIp0Es5j.js → oauth-callback-ai-provider-BkM4OhqK.js} +1 -1
  192. package/dist/client/assets/{onboarding-Cyk3OCOl.js → onboarding-QU_kmcMD.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-P4YvxIWX.js → optimistic-project-sidebar-views-CyseA3Te.js} +1 -1
  194. package/dist/client/assets/{org-file-open-context-CgoXVQJH.js → org-file-open-context-BJOB9JXS.js} +1 -1
  195. package/dist/client/assets/{organization-choice-BvjNuVed.js → organization-choice-Yyr2HSJT.js} +1 -1
  196. package/dist/client/assets/{orgs-Clek1XKs.js → orgs-BV2AvFmU.js} +1 -1
  197. package/dist/client/assets/{page-seo-form-DXBYSuZJ.js → page-seo-form-BsO0DrNN.js} +1 -1
  198. package/dist/client/assets/{pair-SamLaVqt.js → pair-BUORk8Dw.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-LtgpxZ9m.js → plan-ladder-DokAEKuN.js} +1 -1
  200. package/dist/client/assets/{popover-D3y1e9f_.js → popover-DM5IZa3t.js} +1 -1
  201. package/dist/client/assets/{post-calendar-jqhB8Tz3.js → post-calendar-C-e5-TV2.js} +1 -1
  202. package/dist/client/assets/{post-editor-Bh2EUOqL.js → post-editor-BcTEdZP9.js} +1 -1
  203. package/dist/client/assets/{preview-content-CNXZwsI5.js → preview-content-D4gN_IR-.js} +1 -1
  204. package/dist/client/assets/{preview-dialog-6ys1_8tR.js → preview-dialog-CUXp3Zgx.js} +1 -1
  205. package/dist/client/assets/{primitives-djWhLh7P.js → primitives-B5JG2jIM.js} +1 -1
  206. package/dist/client/assets/{profile-CwG9h9dy.js → profile-CT7SVHWT.js} +1 -1
  207. package/dist/client/assets/{project-app-view-CR53PtA0.js → project-app-view-CnjyPq4z.js} +1 -1
  208. package/dist/client/assets/{project-feed-BXQJU-Lq.js → project-feed-CWn-Lv0t.js} +1 -1
  209. package/dist/client/assets/{project-icon-BNaK4V-S.js → project-icon-Ba4aI2hq.js} +1 -1
  210. package/dist/client/assets/project-reports-CT0QZktU.js +1 -0
  211. package/dist/client/assets/project-tasks-BBYQxnPi.js +1 -0
  212. package/dist/client/assets/{prompts-BUBw9WOd.js → prompts-W3xLcrYm.js} +1 -1
  213. package/dist/client/assets/record-editor-J2Uasy2O.js +1 -0
  214. package/dist/client/assets/{redirect-editor-DIiWBnTQ.js → redirect-editor-BMH4ehui.js} +1 -1
  215. package/dist/client/assets/registry-CCMThGEu.js +2 -0
  216. package/dist/client/assets/{registry-layout-BxyJZ4a0.js → registry-layout-B6_xJXmc.js} +1 -1
  217. package/dist/client/assets/{reports-DtGwTvyg.js → reports-B4eXifzx.js} +1 -1
  218. package/dist/client/assets/reports-DolpTcLc.js +1 -0
  219. package/dist/client/assets/{reports-onboarding-Dndz3euc.js → reports-onboarding-ZAUri_6S.js} +1 -1
  220. package/dist/client/assets/{reports-tab-CFhnwYBJ.js → reports-tab-D4AGFGPc.js} +2 -2
  221. package/dist/client/assets/{repositories-DVy9gi28.js → repositories-Buk76J8t.js} +1 -1
  222. package/dist/client/assets/{repository-import-picker-DZK5nFkw.js → repository-import-picker-ebb6WNSx.js} +1 -1
  223. package/dist/client/assets/{repository-picker-DKVkzLp4.js → repository-picker-B9Ygev7q.js} +1 -1
  224. package/dist/client/assets/{require-capability-BmfInhOP.js → require-capability-DhJhDP-L.js} +1 -1
  225. package/dist/client/assets/{required-auth-layout-C8rnLRRD.js → required-auth-layout-Cac00Ws4.js} +1 -1
  226. package/dist/client/assets/{reset-password-DDnt0oDT.js → reset-password-B8vf7L1c.js} +1 -1
  227. package/dist/client/assets/{resizable-_gRklRa4.js → resizable-C3bWrtWT.js} +1 -1
  228. package/dist/client/assets/{review-settings-DGbhEqkr.js → review-settings-C-hBeg41.js} +1 -1
  229. package/dist/client/assets/{rich-text-link-control-BwrZ0Rq8.js → rich-text-link-control-CvYxTCJj.js} +1 -1
  230. package/dist/client/assets/{roles-B3FGUjGZ.js → roles-Dh9UUZcV.js} +1 -1
  231. package/dist/client/assets/{route-CURW_i6J.js → route-Bb-xA0Ol.js} +1 -1
  232. package/dist/client/assets/{route-D4jdB3Jz.js → route-DwkJPD1w.js} +1 -1
  233. package/dist/client/assets/{route-page-header-7RPoLHvN.js → route-page-header-BfHqQiDS.js} +1 -1
  234. package/dist/client/assets/{route-Br7-Mf2P.js → route-sCTIOnzJ.js} +1 -1
  235. package/dist/client/assets/{runnable-block-editor-Bpz2RYcL.js → runnable-block-editor-3WdOeD3r.js} +1 -1
  236. package/dist/client/assets/{sandbox-lifecycle-context-BmqpyoGL.js → sandbox-lifecycle-context-DfY4dZfw.js} +1 -1
  237. package/dist/client/assets/{schema-CTcdIHci.js → schema-6mN0bvm3.js} +1 -1
  238. package/dist/client/assets/{scroll-area--p0oLuFI.js → scroll-area-D7qbBjMH.js} +1 -1
  239. package/dist/client/assets/{search-input-CBDtuFaQ.js → search-input-Ck0252jm.js} +1 -1
  240. package/dist/client/assets/{search-toggle-CorYcgG4.js → search-toggle-BLXBsyeS.js} +1 -1
  241. package/dist/client/assets/{secrets-DP9PDxVT.js → secrets-CqlL4cwb.js} +1 -1
  242. package/dist/client/assets/{sections-editor-DohMT2TR.js → sections-editor-S86e9po8.js} +1 -1
  243. package/dist/client/assets/{select-CE4utxRu.js → select-CGIEs0gc.js} +1 -1
  244. package/dist/client/assets/{select-model-DPfWtNra.js → select-model-B_ckG0Vk.js} +1 -1
  245. package/dist/client/assets/{seo-editor--VYOVmP-.js → seo-editor-CiJSQ0hg.js} +1 -1
  246. package/dist/client/assets/{separator-CfEbfObm.js → separator-Lx1_tt_L.js} +1 -1
  247. package/dist/client/assets/{settings-tab-BUfox-t7.js → settings-tab-08jTQ5mn.js} +1 -1
  248. package/dist/client/assets/{sheet-B4Gi1sGY.js → sheet-BCMwxEJt.js} +1 -1
  249. package/dist/client/assets/{shell-layout-DskZ7YaE.js → shell-layout-C1-8bBsl.js} +1 -1
  250. package/dist/client/assets/{sidebar-C4iuLw3C.js → sidebar-CpgCLs_P.js} +1 -1
  251. package/dist/client/assets/{skill-preview-CDRAH_WW.js → skill-preview-B9Fe89d7.js} +1 -1
  252. package/dist/client/assets/{skills-CU5P7Nd-.js → skills-DEDSoqR0.js} +1 -1
  253. package/dist/client/assets/{sso-D2yzX9Hl.js → sso-Bcqdho85.js} +1 -1
  254. package/dist/client/assets/store-Cs5Bmze9.js +1 -0
  255. package/dist/client/assets/store-registry-B9NkoB0_.js +2 -0
  256. package/dist/client/assets/{switch-PUAtlc1q.js → switch-B7r0dQcL.js} +1 -1
  257. package/dist/client/assets/{synced-repos-C8iBzP3z.js → synced-repos-CMjTOFt-.js} +1 -1
  258. package/dist/client/assets/{table-DSBp_pkp.js → table-DgtBm1fC.js} +1 -1
  259. package/dist/client/assets/{tabs-CVORM5c5.js → tabs-8a-KIKo5.js} +1 -1
  260. package/dist/client/assets/{task-board--VJa6ODn.js → task-board-CiWJ5lUh.js} +1 -1
  261. package/dist/client/assets/{task-route-Kwsi_MjW.js → task-route-CN2ffNmY.js} +1 -1
  262. package/dist/client/assets/{task-status-Dozb4AYU.js → task-status-DPBgrE0W.js} +1 -1
  263. package/dist/client/assets/{taskboard-analytics-CKBpuKL1.js → taskboard-analytics-DtbeRtX6.js} +1 -1
  264. package/dist/client/assets/{tasks-fP9QfttY.js → tasks-Csxrv5NN.js} +1 -1
  265. package/dist/client/assets/tasks-snZl8AHp.js +1 -0
  266. package/dist/client/assets/{textarea-DGI1GnBQ.js → textarea-B4b4OfxE.js} +1 -1
  267. package/dist/client/assets/{thread-button-RY43Y8bB.js → thread-button-DPSOj2uV.js} +1 -1
  268. package/dist/client/assets/{thread-intent-BlR8TpCF.js → thread-intent-D_ZAwkxt.js} +1 -1
  269. package/dist/client/assets/{thread-route-bGs9fSMP.js → thread-route-Bb_Mex6m.js} +1 -1
  270. package/dist/client/assets/{thread-route-mS20Kc2d.js → thread-route-MBCO8DTC.js} +1 -1
  271. package/dist/client/assets/{thread-sheet-body-9W9w7Xfz.js → thread-sheet-body-C_Vpg-fX.js} +1 -1
  272. package/dist/client/assets/{toggle-group-nSkm1Zz5.js → toggle-group-DG19r_KQ.js} +1 -1
  273. package/dist/client/assets/{toolbar-icon-button-I3CeX274.js → toolbar-icon-button-6kpUmydY.js} +1 -1
  274. package/dist/client/assets/{tooltip-SRIuIppn.js → tooltip-DB_mQQ5y.js} +1 -1
  275. package/dist/client/assets/{track-D7QItdrm.js → track-DVuJubzn.js} +1 -1
  276. package/dist/client/assets/{types-CZuWZKU6.js → types-C5y87H9S.js} +1 -1
  277. package/dist/client/assets/{usage-stats-Cm6Eeoxn.js → usage-stats-rVm4rZXJ.js} +1 -1
  278. package/dist/client/assets/{use-ai-providers-D5fiM2J9.js → use-ai-providers-ChLr6stH.js} +1 -1
  279. package/dist/client/assets/{use-automations-DgjQzBnx.js → use-automations-D29wqp0p.js} +1 -1
  280. package/dist/client/assets/{use-autosave-CF1OYBpf.js → use-autosave-DzXheZOH.js} +1 -1
  281. package/dist/client/assets/{use-connect-companion-C4pkyL7z.js → use-connect-companion-C9XVvNbQ.js} +1 -1
  282. package/dist/client/assets/{use-connection--1qJj6iq.js → use-connection-CxUZdVtx.js} +1 -1
  283. package/dist/client/assets/{use-copy-DIi60N72.js → use-copy-n0GWSVkA.js} +1 -1
  284. package/dist/client/assets/{use-create-virtual-mcp-DRR090Qw.js → use-create-virtual-mcp-Cqo-Z1Nz.js} +1 -1
  285. package/dist/client/assets/{use-date-fns-locale-ZzEUAiXb.js → use-date-fns-locale-DRlG3NUT.js} +1 -1
  286. package/dist/client/assets/{use-debounced-autosave-D_K_B-C2.js → use-debounced-autosave-0DRMOIhZ.js} +1 -1
  287. package/dist/client/assets/{use-debounced-value-COVYb0FX.js → use-debounced-value-D9Q5Remb.js} +1 -1
  288. package/dist/client/assets/{use-deco-credits-D6cSv2pt.js → use-deco-credits-D_VcXnYT.js} +1 -1
  289. package/dist/client/assets/{use-decopilot-events-Btc9Hw20.js → use-decopilot-events-M5cJZFyY.js} +1 -1
  290. package/dist/client/assets/{use-delete-connection-DZ9HC2Qt.js → use-delete-connection-D1JqYId6.js} +1 -1
  291. package/dist/client/assets/{use-deployment-admin-B-oXcfbg.js → use-deployment-admin-CURK73vg.js} +1 -1
  292. package/dist/client/assets/{use-entitlements-CAw-4ybd.js → use-entitlements-BNCg22H6.js} +1 -1
  293. package/dist/client/assets/{use-fast-preview-draft-url-B17zQ9G8.js → use-fast-preview-draft-url-CamuNqdc.js} +1 -1
  294. package/dist/client/assets/{use-file-configs-Blz7gQxO.js → use-file-configs-CtFInHrx.js} +1 -1
  295. package/dist/client/assets/{use-in-settings-0JyiK4rA.js → use-in-settings-BVlXs-Md.js} +1 -1
  296. package/dist/client/assets/{use-infinite-scroll-CFc4g2v0.js → use-infinite-scroll-DWMzEhh9.js} +1 -1
  297. package/dist/client/assets/{use-join-requests-wgTigAL0.js → use-join-requests--jRCdkZk.js} +1 -1
  298. package/dist/client/assets/{use-main-panel-tabs-BP48EtIS.js → use-main-panel-tabs-BoYcNsqs.js} +1 -1
  299. package/dist/client/assets/{use-mcp-auth-status--iOFjxjN.js → use-mcp-auth-status-_gtuZE1M.js} +1 -1
  300. package/dist/client/assets/{use-mcp-client-Bd-tc7BB.js → use-mcp-client-QkBFbC3f.js} +1 -1
  301. package/dist/client/assets/{use-mcp-prompts-CNvxhVoK.js → use-mcp-prompts-DvwjTF0b.js} +1 -1
  302. package/dist/client/assets/{use-mcp-tools-Cdzxtrxv.js → use-mcp-tools-Dqs2rAUi.js} +1 -1
  303. package/dist/client/assets/{use-members-2Ck9xtlB.js → use-members-aplVIbSX.js} +1 -1
  304. package/dist/client/assets/{use-mobile-YjO30zbo.js → use-mobile-z5LlRP9d.js} +1 -1
  305. package/dist/client/assets/{use-navigate-to-agent-DLz5eqnM.js → use-navigate-to-agent-B82Qcige.js} +1 -1
  306. package/dist/client/assets/{use-open-billing-url-BbkkoILM.js → use-open-billing-url-6XxQw3Eh.js} +1 -1
  307. package/dist/client/assets/{use-org-auth-client-BWwsKUxX.js → use-org-auth-client-LTupMcfa.js} +1 -1
  308. package/dist/client/assets/{use-org-fs-OA7i6aZv.js → use-org-fs-CP-M8wtZ.js} +1 -1
  309. package/dist/client/assets/{use-org-repo-syncs-DQZqAtpE.js → use-org-repo-syncs-ug_mDBgC.js} +1 -1
  310. package/dist/client/assets/{use-org-sso-DKeFIwB6.js → use-org-sso-jTEc7oSr.js} +1 -1
  311. package/dist/client/assets/{use-organization-roles-D0gVnuqV.js → use-organization-roles-BC9sU7Oz.js} +1 -1
  312. package/dist/client/assets/{use-organization-settings-Dt8pz_Xc.js → use-organization-settings-CcUVu9tG.js} +1 -1
  313. package/dist/client/assets/{use-panel-navigate-lA5Vutgx.js → use-panel-navigate-C1nn8JtC.js} +1 -1
  314. package/dist/client/assets/{use-project-native-view-presence-BIIs2cxk.js → use-project-native-view-presence-dy3A_Smb.js} +1 -1
  315. package/dist/client/assets/{use-project-scope-BQji3uMT.js → use-project-scope-BC5vNotn.js} +1 -1
  316. package/dist/client/assets/{use-registry-connections-04qEX4iQ.js → use-registry-connections-D949LAVQ.js} +1 -1
  317. package/dist/client/assets/{use-releases-Ck_Ppkv1.js → use-releases-DbvQa9X0.js} +1 -1
  318. package/dist/client/assets/{use-reports-diagnostic-CyoYUJW-.js → use-reports-diagnostic-CvqD5Npp.js} +1 -1
  319. package/dist/client/assets/{use-route-default-main-C-_nMKb3.js → use-route-default-main-4UlGpexs.js} +1 -1
  320. package/dist/client/assets/{use-secrets-B5_Etu9P.js → use-secrets-DQ0yv8Dx.js} +1 -1
  321. package/dist/client/assets/{use-section-preview-base-CpYHheIc.js → use-section-preview-base-A8bn_b5M.js} +1 -1
  322. package/dist/client/assets/{use-session-runtime-Az3IhpTV.js → use-session-runtime-D8PkcXOC.js} +1 -1
  323. package/dist/client/assets/{use-tags-V2rRKyJt.js → use-tags-eYRRTNnb.js} +1 -1
  324. package/dist/client/assets/{use-task-board-analytics-CrwEUHpD.js → use-task-board-analytics-D-kcn1Zu.js} +1 -1
  325. package/dist/client/assets/{use-task-metadata-C_07VLsf.js → use-task-metadata-DZMFkATI.js} +1 -1
  326. package/dist/client/assets/{use-thread-outputs-iNfVWX0R.js → use-thread-outputs-DTZIvT49.js} +1 -1
  327. package/dist/client/assets/{use-view-mode-BFNc3zM5.js → use-view-mode-DxPHENE7.js} +1 -1
  328. package/dist/client/assets/{use-virtual-mcp-DNJANJ1O.js → use-virtual-mcp-fKIjaLUZ.js} +1 -1
  329. package/dist/client/assets/useInfiniteQuery-BQbzbaMU.js +1 -0
  330. package/dist/client/assets/{useQueries-DVNbBLH1.js → useQueries-CivyO6wT.js} +1 -1
  331. package/dist/client/assets/useSuspenseInfiniteQuery-ydSR9RDy.js +1 -0
  332. package/dist/client/assets/{users-BNPX8AQC.js → users-CUvKzNap.js} +1 -1
  333. package/dist/client/assets/{utils-DfrVSNtD.js → utils-DSkbGbRW.js} +1 -1
  334. package/dist/client/assets/{variant-calendar-BpWvSSM7.js → variant-calendar-DjBw6GgF.js} +1 -1
  335. package/dist/client/assets/{variant-matcher-override-CC-cqTMb.js → variant-matcher-override-DIc1blpZ.js} +1 -1
  336. package/dist/client/assets/{view-mode-toggle-C1_SFL-z.js → view-mode-toggle-BEII9Hz5.js} +1 -1
  337. package/dist/client/assets/{virtual-mcp-D9YcK0wc.js → virtual-mcp-BuIha-KP.js} +1 -1
  338. package/dist/client/index.html +1 -1
  339. package/dist/server/cli.js +1 -1
  340. package/dist/server/server.js +1 -1
  341. package/package.json +1 -1
  342. package/dist/client/assets/agent-app-BCo5yjGs.js +0 -1
  343. package/dist/client/assets/agent-deck-BESZ0xNS.js +0 -1
  344. package/dist/client/assets/agent-file-CjHnsYA8.js +0 -1
  345. package/dist/client/assets/agent-library-file-CYOgcRbq.js +0 -1
  346. package/dist/client/assets/agent-settings-rUuwRxqm.js +0 -1
  347. package/dist/client/assets/agent-site-editor-code-9Q1n2G2W.js +0 -2
  348. package/dist/client/assets/agent-view-BZR2NJ34.js +0 -1
  349. package/dist/client/assets/api-keys-C6VdQLSB.js +0 -1
  350. package/dist/client/assets/app-editor-BFF_l3do.js +0 -1
  351. package/dist/client/assets/project-reports-blyXSmXr.js +0 -1
  352. package/dist/client/assets/project-tasks-DuGjGSVk.js +0 -1
  353. package/dist/client/assets/record-editor-DYdyenUG.js +0 -1
  354. package/dist/client/assets/registry-DnDVb5H8.js +0 -2
  355. package/dist/client/assets/reports-CcJrOO_r.js +0 -1
  356. package/dist/client/assets/store-NkRf_ILk.js +0 -1
  357. package/dist/client/assets/store-registry-BtXeT7wN.js +0 -2
  358. package/dist/client/assets/tasks-E8_VR8R0.js +0 -1
  359. package/dist/client/assets/useInfiniteQuery-COtwxc8g.js +0 -1
  360. package/dist/client/assets/useSuspenseInfiniteQuery-CgAI7poF.js +0 -1
@@ -1 +1 @@
1
- import{c as n,l as f,j as i,bg as N,bf as y,as as S,bh as v,bi as $,bl as C,bk as w}from"./index-LuQPyfHg.js";import{i as k}from"./X-Bg-qbBOB.js";function E(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(y,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function z(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-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(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(w,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function O(o){const e=n.c(20);let t,s,a,l,c;e[0]!==o?({className:s,children:t,side:l,hideCloseButton:c,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=c):(t=e[1],s=e[2],a=e[3],l=e[4],c=e[5]);const p=l===void 0?"right":l,h=c===void 0?!1:c;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(R,{}),e[6]=m):m=e[6];const x=p==="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 sm:max-w-sm",b=p==="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 sm:max-w-sm",g=p==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",j=p==="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[7]!==s||e[8]!==x||e[9]!==b||e[10]!==g||e[11]!==j?(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",x,b,g,j,s),e[7]=s,e[8]=x,e[9]=b,e[10]=g,e[11]=j,e[12]=r):r=e[12];let d;e[13]!==h?(d=!h&&i.jsxs(C,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 classic:rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none compact:rounded-lg",children:[i.jsx(k,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=h,e[14]=d):d=e[14];let u;return e[15]!==t||e[16]!==a||e[17]!==r||e[18]!==d?(u=i.jsxs(z,{children:[m,i.jsxs(S,{"data-slot":"sheet-content",className:r,...a,children:[t,d]})]}),e[15]=t,e[16]=a,e[17]=r,e[18]=d,e[19]=u):u=e[19],u}function P(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 T(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(N,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}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("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(v,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{T as S,O as a,E as b,P as c,_ as d};
1
+ import{c as n,l as f,j as i,bg as N,bf as y,as as S,bh as v,bi as $,bl as C,bk as w}from"./index-B9-heAAa.js";import{i as k}from"./X-CTlWdd97.js";function E(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(y,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function z(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-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(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(w,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function O(o){const e=n.c(20);let t,s,a,l,c;e[0]!==o?({className:s,children:t,side:l,hideCloseButton:c,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=c):(t=e[1],s=e[2],a=e[3],l=e[4],c=e[5]);const p=l===void 0?"right":l,h=c===void 0?!1:c;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(R,{}),e[6]=m):m=e[6];const x=p==="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 sm:max-w-sm",b=p==="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 sm:max-w-sm",g=p==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",j=p==="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[7]!==s||e[8]!==x||e[9]!==b||e[10]!==g||e[11]!==j?(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",x,b,g,j,s),e[7]=s,e[8]=x,e[9]=b,e[10]=g,e[11]=j,e[12]=r):r=e[12];let d;e[13]!==h?(d=!h&&i.jsxs(C,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 classic:rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none compact:rounded-lg",children:[i.jsx(k,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=h,e[14]=d):d=e[14];let u;return e[15]!==t||e[16]!==a||e[17]!==r||e[18]!==d?(u=i.jsxs(z,{children:[m,i.jsxs(S,{"data-slot":"sheet-content",className:r,...a,children:[t,d]})]}),e[15]=t,e[16]=a,e[17]=r,e[18]=d,e[19]=u):u=e[19],u}function P(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 T(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(N,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}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("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(v,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{T as S,O as a,E as b,P as c,_ as d};
@@ -1 +1 @@
1
- import{c as R,b as W,e as Ye,j as n,B as F,t as Ve,bP as me,R as Tt,a as Ke,y as Vt,D as Nt,K as Ue,bQ as Wt,bR as Yt,$ as Be,l as ct,aJ as Qt,p as ht,bS as Xt,r as V,a1 as Zt,aa as ie,d as _t,a0 as ft,z as At,m as He,q as dt,au as Pt,bT as en,aB as tn,aH as pt,x as nn,bU as sn,bV as on,bW as an,bX as rn,bY as ln,T as cn,u as dn,a3 as un,bZ as mn,b_ as fn,k as Ct,b$ as rt,c0 as gn,c1 as hn,O as pn,c2 as yn}from"./index-LuQPyfHg.js";import{A as it}from"./avatar-YUwJoSeh.js";import{t as Et}from"./Globe04-DaWdeD_h.js";import{i as bn}from"./SearchLg-CaDGdzKV.js";import{ad as xn,ac as Sn,ae as te,r as wn,af as vn,n as yt,g as jn,f as kn,ag as Tn,e as Nn}from"./agent-icon-DufTIfP9.js";import{s as _n}from"./XClose-BL7URSGz.js";import{D as An}from"./download-app-dialog-D40FFt_i.js";import{a as Pn,u as Cn}from"./use-project-scope-BQji3uMT.js";import{u as Ot,a as En}from"./use-panel-navigate-lA5Vutgx.js";import{i as ae}from"./CheckCircle-jHqe_fbp.js";import{i as bt}from"./Tool02-DC4h3G7C.js";import{i as lt}from"./Monitor01-BMO5GW_Z.js";import{i as re}from"./Zap-C63eteO6.js";import{c as It,d as Lt,b as $t,D as Dt,h as On,e as In}from"./dialog-HZ9qQm76.js";import{i as Ln}from"./Share07-BRS1J9YL.js";import{s as xt}from"./Plus-Bhgtdwjl.js";import{a as $n}from"./Settings02-CqejvZCP.js";import{b as le,a as Ge,f as Dn,e as Rn,c as Mn,C as Fn}from"./command-BUbzDbU_.js";import{I as zn}from"./integration-icon-CyoFiiYN.js";import{P as qn}from"./project-icon-BNaK4V-S.js";import{a as Bn,m as Kn}from"./use-mcp-client-Bd-tc7BB.js";import{S as Hn,u as Un}from"./hooks-B6_FetIS.js";import{u as Gn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Jn}from"./required-auth-layout-C8rnLRRD.js";import{A as Vn}from"./autosend-LI2Q470J.js";import{u as Wn,a as Yn,b as Qn,c as Xn}from"./thread-route-mS20Kc2d.js";import{b as Zn}from"./use-organization-settings-Dt8pz_Xc.js";import{u as es}from"./use-org-sso-DKeFIwB6.js";function ts(t){const e=R.c(49),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let d;e[0]!==r||e[1]!==i?(d=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=d):d=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=k=>{Ve.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let v;e[7]!==d||e[8]!==m||e[9]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[7]=d,e[8]=m,e[9]=h,e[10]=v):v=e[10];const c=Ye(v),b=ns;let p;e[11]!==o||e[12]!==s?(p=o?n.jsx(it,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Et,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=s,e[13]=p):p=e[13];let l;e[14]!==s||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let u;e[19]!==a||e[20]!==i?(u=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=u):u=e[21];let x;e[22]!==u?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[22]=u,e[23]=x):x=e[23];let S;e[24]!==f||e[25]!==x?(S=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=S):S=e[26];let y;e[27]!==c?(y=()=>c.mutate(),e[27]=c,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(F,{onClick:y,disabled:c.isPending,children:w}),e[33]=c.isPending,e[34]=y,e[35]=w,e[36]=_):_=e[36];const P=c.isPending;let N;e[37]!==i?(N=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(F,{variant:"ghost",onClick:b,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==_||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=g):g=e[44];let T;return e[45]!==S||e[46]!==g||e[47]!==p?(T=n.jsxs(me,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function ns(){window.location.href="/"}function St(t){const e=R.c(25),{orgSlug:s,orgName:r,reason:o}=t,a=W(),i=ss,d=o==="not-found",m=d?bn:Tt;let h;e[0]!==d||e[1]!==a?(h=a(d?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=d,e[1]=a,e[2]=h):h=e[2];const v=h;let c;e[3]!==d||e[4]!==r||e[5]!==s||e[6]!==a?(c=d?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??s}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=d,e[4]=r,e[5]=s,e[6]=a,e[7]=c):c=e[7];const b=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==b?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=f):f=e[13];let u;e[14]!==l||e[15]!==f?(u=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=u):u=e[16];let x;e[17]!==a?(x=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=x):x=e[18];let S;e[19]!==x?(S=n.jsx(F,{onClick:i,children:x}),e[19]=x,e[20]=S):S=e[20];let y;return e[21]!==p||e[22]!==u||e[23]!==S?(y=n.jsxs(me,{children:[p,u,S]}),e[21]=p,e[22]=u,e[23]=S,e[24]=y):y=e[24],y}function ss(){window.location.href="/"}function os(t){const e=R.c(59),{invitationId:s,orgName:r,orgSlug:o,orgLogo:a}=t,i=W();let d;e[0]!==s?(d=async()=>{const I=await Ke.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=d):d=e[1];let m;e[2]!==o?(m=()=>{Vt(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let h;e[4]!==i?(h=I=>{Ve.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let v;e[6]!==d||e[7]!==m||e[8]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[6]=d,e[7]=m,e[8]=h,e[9]=v):v=e[9];const c=Ye(v);let b;e[10]!==s?(b=async()=>{const I=await Ke.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ve.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=I=>{Ve.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==b||e[16]!==p||e[17]!==l?(f={mutationFn:b,onSuccess:p,onError:l},e[15]=b,e[16]=p,e[17]=l,e[18]=f):f=e[18];const u=Ye(f),x=c.isPending||u.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(it,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(xn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=S):S=e[21];let y;e[22]!==r||e[23]!==i?(y=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=y):y=e[24];let w;e[25]!==y?(w=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[25]=y,e[26]=w):w=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let N;e[31]!==w||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[w,P]}),e[31]=w,e[32]=P,e[33]=N):N=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let g;e[36]!==c.isPending||e[37]!==i?(g=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=g):g=e[38];let T;e[39]!==x||e[40]!==j||e[41]!==g?(T=n.jsx(F,{onClick:j,disabled:x,children:g}),e[39]=x,e[40]=j,e[41]=g,e[42]=T):T=e[42];let k;e[43]!==u?(k=()=>u.mutate(),e[43]=u,e[44]=k):k=e[44];let A;e[45]!==u.isPending||e[46]!==i?(A=u.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=u.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==x||e[49]!==k||e[50]!==A?(E=n.jsx(F,{variant:"ghost",onClick:k,disabled:x,children:A}),e[48]=x,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==T||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,E]}),e[52]=T,e[53]=E,e[54]=C):C=e[54];let O;return e[55]!==N||e[56]!==C||e[57]!==S?(O=n.jsxs(me,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=O):O=e[58],O}function is(t){const e=R.c(23),{orgName:s,orgLogo:r}=t,o=W();let a;e[0]!==r||e[1]!==s?(a=r?n.jsx(it,{url:r,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Sn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=s,e[2]=a):a=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let d;e[5]!==i?(d=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=d):d=e[6];let m;e[7]!==s||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let v;e[12]!==d||e[13]!==h?(v=n.jsxs("div",{className:"space-y-2",children:[d,h]}),e[12]=d,e[13]=h,e[14]=v):v=e[14];let c;e[15]!==o?(c=o("common.requestPendingScreen.goHome"),e[15]=o,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(F,{variant:"ghost",onClick:as,children:c}),e[17]=c,e[18]=b):b=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==b?(p=n.jsxs(me,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function as(){window.location.href="/"}function rs(t){const e=R.c(45),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let d;e[0]!==r?(d=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await T.json();if(!T.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=d):d=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ve.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let v;e[5]!==d||e[6]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[5]=d,e[6]=h,e[7]=v):v=e[7];const c=Ye(v);let b;e[8]!==o||e[9]!==s?(b=o?n.jsx(it,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Et,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=b):b=e[10];let p;e[11]!==s||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let u;e[19]!==f?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=u):u=e[20];let x;e[21]!==l||e[22]!==u?(x=n.jsxs("div",{className:"space-y-2",children:[l,u]}),e[21]=l,e[22]=u,e[23]=x):x=e[23];let S;e[24]!==c?(S=()=>c.mutate(),e[24]=c,e[25]=S):S=e[25];let y;e[26]!==c.isPending||e[27]!==i?(y=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==S||e[31]!==y?(w=n.jsx(F,{onClick:S,disabled:c.isPending,children:y}),e[29]=c.isPending,e[30]=S,e[31]=y,e[32]=w):w=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(F,{variant:"ghost",onClick:ls,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==w||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,N]}),e[38]=w,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==x||e[42]!==j||e[43]!==b?(g=n.jsxs(me,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=R.c(7);let s;e[0]!==t?(s=Ue.orgAccessStatus(t),e[0]=t,e[1]=s):s=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 o;return e[4]!==s||e[5]!==r?(o={queryKey:s,queryFn:r,refetchOnWindowFocus:!1},e[4]=s,e[5]=r,e[6]=o):o=e[6],Nt(o)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Wt()?.org===t&&Yt();const s=localStorage.getItem(Be.lastOrgSlug())===t;if(s&&localStorage.removeItem(Be.lastOrgSlug()),s&&(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(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(St,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Rt(t){const e=R.c(42),{ariaLabel:s,dismissLabel:r,eyebrow:o,title:a,description:i,icon:d,children:m,footerLeading:h,actions:v,onDismiss:c,tone:b}=t,p=b===void 0?"neutral":b,l=h||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(_n,{size:14}),e[2]=u):u=e[2];let x;e[3]!==r||e[4]!==c?(x=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:u}),e[3]=r,e[4]=c,e[5]=x):x=e[5];const S=d&&"flex items-start gap-3",y=m&&"pb-3";let w;e[6]!==S||e[7]!==y?(w=ct("p-4 pr-11",S,y),e[6]=S,e[7]=y,e[8]=w):w=e[8];let _;e[9]!==d?(_=d&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:d}),e[9]=d,e[10]=_):_=e[10];let P;e[11]!==o?(P=o&&n.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=P):P=e[12];let N;e[13]!==a?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=N):N=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==P?(g=n.jsxs("div",{children:[P,N,j]}),e[17]=N,e[18]=j,e[19]=P,e[20]=g):g=e[20];let T;e[21]!==m?(T=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=T):T=e[22];let k;e[23]!==g||e[24]!==T?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,T]}),e[23]=g,e[24]=T,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==w||e[28]!==_?(A=n.jsxs("div",{className:w,children:[_,k]}),e[26]=k,e[27]=w,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==h||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:ct("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=h,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==s||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,E]}),e[35]=s,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ms={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 Mt(t){return`[data-tour="${ms[t]}"]`}const fs=[{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 gs(t){return fs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function hs(t,e){return gs(e).map(s=>({element:Mt(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const ps=Mt("switcher"),ys=30;function Ft(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function bs(t,e){return hs(t,e).filter(s=>typeof s.element=="string"&&Ft(s.element))}function xs(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:(s,{driver:r})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>r.destroy()),s.footerButtons.insertBefore(o,s.footerButtons.firstChild)},onDestroyed:()=>{Je=!1},steps:e}}let Je=!1;async function Ss(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function ws(t,e){if(Je)return;Je=!0;let s=0;const r=()=>{if(!Ft(ps)&&s++<ys){requestAnimationFrame(r);return}const o=bs(t,e);if(o.length===0){Je=!1;return}Ss().then(a=>{a(xs(t,o)).drive()}).catch(()=>{Je=!1})};r()}function vs(t){return t!=="off"}function ai(t){if(!t.hasSource)return[];const e=["site-editor"];return vs(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 ri(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const js=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:ht,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:te,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:lt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"native-app-linux-beta",date:"2026-08-20",eyebrow:"Now Available",title:"Studio for Linux is now in beta",bullets:[{icon:lt,title:"Native Linux desktop app",body:"Studio now ships as an AppImage for 64-bit x86 Linux, bringing the local desktop workflow to Linux."},{icon:ae,title:"Verified, no-root install",body:"The installer verifies the download, installs Studio to ~/.local/bin, and adds it to your application launcher without sudo."},{icon:re,title:"Beta today, broader support next",body:"We're validating more distributions and desktop environments. Arm builds are not available yet, and your feedback will shape general availability."}],cta:{label:"Install Studio",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases/tag/native-v4.242.0"},{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:re,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:te,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:Xt,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:lt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:te,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ae,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:re,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:te,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:ae,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:re,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:ae,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:te,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:re,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:te,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:ae,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:re,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:te,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:ae,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:re,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:te,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:bt,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:ae,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:ht,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:re,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:ae,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:te,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:bt,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:te,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:wn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],qt=js,ot="studio.release-feed.v1",ut=new Set;let de="",ue={},mt=!1;function ks(){if(mt)return de||"{}";try{return localStorage.getItem(ot)??"{}"}catch{return de||"{}"}}function Bt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=ks();return t!==de&&(de=t,ue=Bt(t)),ue}function Ts(t){ut.add(t);const e=s=>{if(!(s.key!==ot&&s.key!==null)){try{const r=localStorage.getItem(ot)??"{}",a={...Bt(r),...ue};ue=a,de=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{ut.delete(t),window.removeEventListener("storage",e)}}function Ns(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(ot,de),mt=!1}catch{mt=!0}ut.forEach(e=>e())}function _s(){const t=R.c(7),e=V.useSyncExternalStore(Ts,wt,wt);let s;t[0]!==e?(s=m=>!!e[m],t[0]=e,t[1]=s):s=t[1];const r=s,o=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 d;return t[4]!==r||t[5]!==i?(d={isSeen:r,markSeen:o,unseenCount:i},t[4]=r,t[5]=i,t[6]=d):d=t[6],d}function As(t){ue[t]||Ns({...ue,[t]:{seenAt:new Date().toISOString()}})}const Ps=720*60*60*1e3,Cs=10080*60*1e3;function Es(t){const[e,s,r]=t.split("-").map(Number);return!e||!s||!r?new Date(t).getTime():new Date(e,s-1,r).getTime()}function Os(t){const e=qt[0];if(!e)return null;const s=Es(e.date),r=t-s;return r<0||r>Ps?null:e}function Is(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 s=Is(t);return s===null?!1:e-s>=Cs}function $s(){const t=R.c(52),e=W(),s=Pn(),r=Zt(),o=Ot(),a=!!s,i=r===ie.home&&!s;let d;t[0]!==o||t[1]!==a?(d=a&&!!o&&zt(o),t[0]=o,t[1]=a,t[2]=d):d=t[2];const m=d,{data:h}=Ke.useSession(),{isSeen:v,markSeen:c}=_s(),[b,p]=V.useState(!1);let l,f,u;if(t[3]!==v||t[4]!==h?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{const O=Date.now();if(l=Os(O),!l){u=null;break e}if(!Ls(h?.user?.createdAt,O)){u=null;break e}f=v(l.id)}t[3]=v,t[4]=h?.user?.createdAt,t[5]=l,t[6]=f,t[7]=u}else l=t[5],f=t[6],u=t[7];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(f)return null;let x;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(x=()=>{c(l.id),ws(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=x):x=t[14];const S=x;let y;t[15]!==e?(y=e("announcements.release.ariaLabel"),t[15]=e,t[16]=y):y=t[16];let w;t[17]!==e?(w=e("announcements.release.dismiss"),t[17]=e,t[18]=w):w=t[18];const _=l.eyebrow,P=l.title;let N;t[19]!==l.id||t[20]!==c?(N=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=N):N=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let g;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==S?(g=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>c(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):l.cta.action==="start-tour"?n.jsx(F,{size:"sm",onClick:S,children:l.cta.label}):n.jsx(F,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=S,t[31]=g):g=t[31];let T;t[32]!==l.bullets?(T=l.bullets.map(Ds),t[32]=l.bullets,t[33]=T):T=t[33];let k;t[34]!==T?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:T}),t[34]=T,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=O=>{p(O),O||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==b||t[40]!==A?(E=n.jsx(An,{open:b,onOpenChange:A}),t[39]=b,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==g||t[45]!==k||t[46]!==E||t[47]!==y||t[48]!==w||t[49]!==N||t[50]!==j?(C=n.jsxs(Rt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,onDismiss:N,footerLeading:j,actions:g,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=g,t[45]=k,t[46]=E,t[47]=y,t[48]=w,t[49]=N,t[50]=j,t[51]=C):C=t[51],C}function Ds(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 Kt=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Kt?"⌘":"Ctrl",J={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"}},Rs=[{label:"General",shortcuts:[J.commandPalette,J.keyboardShortcuts,J.back,J.newTask,J.toggleDaemon]},{label:"Editor",shortcuts:[J.saveAndFormat]},{label:"Chat",shortcuts:[J.focusChatInput,J.togglePlanMode,J.sendMessage,J.newLine]},{label:"Questions",shortcuts:[J.selectOption]},{label:"Monitoring",shortcuts:[J.applyFilter]}];function vt(t){return Kt?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 Fs(t){const e=R.c(11),{open:s,onOpenChange:r}=t,o=W();let a;e[0]!==o?(a=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(It,{children:n.jsx(Lt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"flex flex-col gap-4",children:Rs.map(zs)}),e[4]=d):d=e[4];let m;e[5]!==i?(m=n.jsxs($t,{className:"sm:max-w-md",children:[i,d]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==s||e[9]!==m?(h=n.jsx(Dt,{open:s,onOpenChange:r,children:m}),e[7]=r,e[8]=s,e[9]=m,e[10]=h):h=e[10],h}function zs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(qs)})]},t.label)}function qs(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 Ks(t){const{org:e}=ft(),s=Bn({connectionId:At,orgId:e.id,orgSlug:e.slug}),{data:r}=He({queryKey:Ue.globalSearch(e.id,t,jt),enabled:!!s&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!s)return[];try{return(await s.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Hs(t){const e=R.c(195),{open:s,onOpenChange:r}=t,o=W(),a=_t(),{org:i}=ft(),{projects:d,hasProjects:m}=Cn(),[h,v]=V.useState(""),c=V.useDeferredValue(h),b=Ks(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(z,Y)=>{dt("command_palette_used",{kind:Y}),z(),l()},e[2]=l,e[3]=f):f=e[3];const u=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=z=>{if(z.type==="connection"){if(!z.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:z.slug}});return}if(z.type==="task"){a({to:ie.tasks,params:{org:i.slug,taskKey:z.key??void 0}});return}const Y=Pt(i.id).id;en(a,tn({org:i.slug,agentId:z.virtual_mcp_id??Y,superAgentId:Y}),{search:()=>({thread:z.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let y;e[8]!==h?(y=[h],e[8]=h,e[9]=y):y=e[9];const w=y;let _,P,N,j,g,T,k,A,E,C,O,I,M;if(e[10]!==l||e[11]!==u||e[12]!==m||e[13]!==b||e[14]!==a||e[15]!==r||e[16]!==s||e[17]!==S||e[18]!==i.slug||e[19]!==d||e[20]!==w||e[21]!==o||e[22]!==h){const z=b.filter(Gs),Y=b.filter(Us);let ne;e[36]!==i.slug?(ne={org:i.slug},e[36]=i.slug,e[37]=ne):ne=e[37];const D=ne;let ee;e[38]!==o?(ee=o("sidebar.navDestinations.home"),e[38]=o,e[39]=ee):ee=e[39];let Q;e[40]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(jn,{"aria-hidden":"true"}),e[40]=Q):Q=e[40];let K;e[41]!==D||e[42]!==ee?(K={key:"home",label:ee,icon:Q,to:ie.home,params:D},e[41]=D,e[42]=ee,e[43]=K):K=e[43];let X;e[44]!==o?(X=o("sidebar.navDestinations.reports"),e[44]=o,e[45]=X):X=e[45];let se;e[46]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(kn,{"aria-hidden":"true"}),e[46]=se):se=e[46];let H;e[47]!==D||e[48]!==X?(H={key:"reports",label:X,icon:se,to:ie.reports,params:D},e[47]=D,e[48]=X,e[49]=H):H=e[49];let U;e[50]!==o?(U=o("sidebar.navDestinations.tasks"),e[50]=o,e[51]=U):U=e[51];let oe;e[52]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(yt,{"aria-hidden":"true"}),e[52]=oe):oe=e[52];let Z;e[53]!==i.slug?(Z={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=Z):Z=e[54];let L;e[55]!==U||e[56]!==Z?(L={key:"tasks",label:U,icon:oe,to:ie.tasks,params:Z},e[55]=U,e[56]=Z,e[57]=L):L=e[57];let q;e[58]!==o?(q=o("sidebar.navDestinations.library"),e[58]=o,e[59]=q):q=e[59];let Qe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Ln,{"aria-hidden":"true"}),e[60]=Qe):Qe=e[60];let fe;e[61]!==D||e[62]!==q?(fe={key:"library",label:q,icon:Qe,to:ie.library,params:D},e[61]=D,e[62]=q,e[63]=fe):fe=e[63];let ge;e[64]!==o?(ge=o("sidebar.navDestinations.discover"),e[64]=o,e[65]=ge):ge=e[65];let Xe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(Tn,{"aria-hidden":"true"}),e[66]=Xe):Xe=e[66];let he;e[67]!==D||e[68]!==ge?(he={key:"discover",label:ge,icon:Xe,to:ie.discover,params:D},e[67]=D,e[68]=ge,e[69]=he):he=e[69];let Ze;e[70]!==K||e[71]!==H||e[72]!==L||e[73]!==fe||e[74]!==he?(Ze=[K,H,L,fe,he],e[70]=K,e[71]=H,e[72]=L,e[73]=fe,e[74]=he,e[75]=Ze):Ze=e[75];const at=Ze;P=Dn,j=s,e[76]!==l||e[77]!==r?(g=$=>$?r(!0):l(),e[76]=l,e[77]=r,e[78]=g):g=e[78],e[79]!==o?(T=o("commandPalette.title"),e[79]=o,e[80]=T):T=e[80],e[81]!==o?(k=o("commandPalette.description"),e[81]=o,e[82]=k):k=e[82];let pe;e[83]!==o?(pe=o("commandPalette.placeholder"),e[83]=o,e[84]=pe):pe=e[84];let ye;e[85]!==o?(ye=o("commandPalette.placeholder"),e[85]=o,e[86]=ye):ye=e[86],e[87]!==pe||e[88]!==ye||e[89]!==h?(A=n.jsx(Rn,{placeholder:pe,"aria-label":ye,value:h,onValueChange:v}),e[87]=pe,e[88]=ye,e[89]=h,e[90]=A):A=e[90],_=Mn;let be;e[91]!==o?(be=o("commandPalette.empty"),e[91]=o,e[92]=be):be=e[92],e[93]!==be?(E=n.jsx(Fn,{children:be}),e[93]=be,e[94]=E):E=e[94];let xe;e[95]!==o?(xe=o("commandPalette.goTo"),e[95]=o,e[96]=xe):xe=e[96];let Se;e[97]!==at||e[98]!==u||e[99]!==a?(Se=at.map($=>n.jsxs(le,{onSelect:()=>u(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[97]=at,e[98]=u,e[99]=a,e[100]=Se):Se=e[100],e[101]!==xe||e[102]!==Se?(C=n.jsx(Ge,{heading:xe,children:Se}),e[101]=xe,e[102]=Se,e[103]=C):C=e[103],e[104]!==u||e[105]!==m||e[106]!==a||e[107]!==i.slug||e[108]!==d||e[109]!==o?(O=m&&n.jsx(Ge,{heading:o("commandPalette.projects"),children:d.map($=>n.jsxs(le,{value:`project ${$.title}`,onSelect:()=>u(()=>a({to:ie.projects,params:{org:i.slug,agentId:$.id}}),"project"),children:[n.jsx(qn,{icon:$.icon,name:$.title,"aria-hidden":"true"}),n.jsx("span",{children:$.title})]},$.id))}),e[104]=u,e[105]=m,e[106]=a,e[107]=i.slug,e[108]=d,e[109]=o,e[110]=O):O=e[110];let we;e[111]!==o?(we=o("commandPalette.actions"),e[111]=o,e[112]=we):we=e[112];let ve;e[113]!==o?(ve=o("commandPalette.newProject"),e[113]=o,e[114]=ve):ve=e[114];let je;e[115]!==u||e[116]!==a||e[117]!==D?(je=()=>u(()=>a({to:ie.home,params:D}),"new_project"),e[115]=u,e[116]=a,e[117]=D,e[118]=je):je=e[118];let et;e[119]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(xt,{"aria-hidden":"true"}),e[119]=et):et=e[119];let ke;e[120]!==o?(ke=o("commandPalette.newProject"),e[120]=o,e[121]=ke):ke=e[121];let Te;e[122]!==ke?(Te=n.jsx("span",{children:ke}),e[122]=ke,e[123]=Te):Te=e[123];let Ne;e[124]!==ve||e[125]!==je||e[126]!==Te?(Ne=n.jsxs(le,{value:ve,onSelect:je,children:[et,Te]}),e[124]=ve,e[125]=je,e[126]=Te,e[127]=Ne):Ne=e[127];let _e;e[128]!==o?(_e=o("commandPalette.inviteTeammate"),e[128]=o,e[129]=_e):_e=e[129];let Ae;e[130]!==u||e[131]!==a||e[132]!==D?(Ae=()=>u(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[130]=u,e[131]=a,e[132]=D,e[133]=Ae):Ae=e[133];let tt;e[134]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(Nn,{"aria-hidden":"true"}),e[134]=tt):tt=e[134];let Pe;e[135]!==o?(Pe=o("commandPalette.inviteTeammate"),e[135]=o,e[136]=Pe):Pe=e[136];let Ce;e[137]!==Pe?(Ce=n.jsx("span",{children:Pe}),e[137]=Pe,e[138]=Ce):Ce=e[138];let Ee;e[139]!==_e||e[140]!==Ae||e[141]!==Ce?(Ee=n.jsxs(le,{value:_e,onSelect:Ae,children:[tt,Ce]}),e[139]=_e,e[140]=Ae,e[141]=Ce,e[142]=Ee):Ee=e[142];let Oe;e[143]!==o?(Oe=o("commandPalette.addConnection"),e[143]=o,e[144]=Oe):Oe=e[144];let Ie;e[145]!==u||e[146]!==a||e[147]!==D?(Ie=()=>u(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[145]=u,e[146]=a,e[147]=D,e[148]=Ie):Ie=e[148];let nt;e[149]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(xt,{"aria-hidden":"true"}),e[149]=nt):nt=e[149];let Le;e[150]!==o?(Le=o("commandPalette.addConnection"),e[150]=o,e[151]=Le):Le=e[151];let $e;e[152]!==Le?($e=n.jsx("span",{children:Le}),e[152]=Le,e[153]=$e):$e=e[153];let De;e[154]!==Oe||e[155]!==Ie||e[156]!==$e?(De=n.jsxs(le,{value:Oe,onSelect:Ie,children:[nt,$e]}),e[154]=Oe,e[155]=Ie,e[156]=$e,e[157]=De):De=e[157];let Re;e[158]!==o?(Re=o("commandPalette.settings"),e[158]=o,e[159]=Re):Re=e[159];let Me;e[160]!==u||e[161]!==a||e[162]!==D?(Me=()=>u(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[160]=u,e[161]=a,e[162]=D,e[163]=Me):Me=e[163];let st;e[164]===Symbol.for("react.memo_cache_sentinel")?(st=n.jsx($n,{"aria-hidden":"true"}),e[164]=st):st=e[164];let Fe;e[165]!==o?(Fe=o("commandPalette.settings"),e[165]=o,e[166]=Fe):Fe=e[166];let ze;e[167]!==Fe?(ze=n.jsx("span",{children:Fe}),e[167]=Fe,e[168]=ze):ze=e[168];let qe;e[169]!==Re||e[170]!==Me||e[171]!==ze?(qe=n.jsxs(le,{value:Re,onSelect:Me,children:[st,ze]}),e[169]=Re,e[170]=Me,e[171]=ze,e[172]=qe):qe=e[172],e[173]!==we||e[174]!==Ne||e[175]!==Ee||e[176]!==De||e[177]!==qe?(I=n.jsxs(Ge,{heading:we,children:[Ne,Ee,De,qe]}),e[173]=we,e[174]=Ne,e[175]=Ee,e[176]=De,e[177]=qe,e[178]=I):I=e[178],M=z.length>0&&n.jsx(Ge,{heading:o("commandPalette.connections"),children:z.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>u(()=>S($),"connection"),children:[n.jsx(zn,{icon:$.icon,name:$.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=Y.length>0&&n.jsx(Ge,{heading:o("commandPalette.results"),children:Y.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>u(()=>S($),$.type),children:[$.type==="thread"?n.jsx(vn,{"aria-hidden":"true"}):n.jsx(yt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title}),$.type==="task"&&$.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:$.key})]},`${$.type}:${$.id}`))}),e[10]=l,e[11]=u,e[12]=m,e[13]=b,e[14]=a,e[15]=r,e[16]=s,e[17]=S,e[18]=i.slug,e[19]=d,e[20]=w,e[21]=o,e[22]=h,e[23]=_,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=T,e[29]=k,e[30]=A,e[31]=E,e[32]=C,e[33]=O,e[34]=I,e[35]=M}else _=e[23],P=e[24],N=e[25],j=e[26],g=e[27],T=e[28],k=e[29],A=e[30],E=e[31],C=e[32],O=e[33],I=e[34],M=e[35];let B;e[179]!==_||e[180]!==N||e[181]!==E||e[182]!==C||e[183]!==O||e[184]!==I||e[185]!==M?(B=n.jsxs(_,{children:[E,C,O,I,M,N]}),e[179]=_,e[180]=N,e[181]=E,e[182]=C,e[183]=O,e[184]=I,e[185]=M,e[186]=B):B=e[186];let G;return e[187]!==P||e[188]!==j||e[189]!==g||e[190]!==T||e[191]!==k||e[192]!==A||e[193]!==B?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,B]}),e[187]=P,e[188]=j,e[189]=g,e[190]=T,e[191]=k,e[192]=A,e[193]=B,e[194]=G):G=e[194],G}function Us(t){return t.type!=="connection"}function Gs(t){return t.type==="connection"}const We=new Hn(!1);function Js(){We.set(!0)}function Vs(){We.set(!1)}function Ws(){const t=R.c(2),e=V.useSyncExternalStore(We.subscribe,We.get);let s;return t[0]!==e?(s=[e,We.set],t[0]=e,t[1]=s):s=t[1],s}const Ys=300*1e3,Qs=2;function Xs(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Zs(t,e){return t.count>=Qs&&t.version!==null&&t.version!==e}function eo(){const t=R.c(43),e=W(),s=Gn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:no},t[0]=r):r=t[0];const o=Ye(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ue.appVersionCheck(),queryFn:to,refetchInterval:Ys,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:d}=He(a),[m,h]=V.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,b]=V.useState(v);d!==m&&(h(d),b(B=>Xs(B,i,"4.373.5")));const[p,l]=V.useState(null),f=s;let u;t[3]!==s||t[4]!==o?(u=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=u):u=t[5];const x=u,S="announcements.version.refresh";if(!Zs(c,p))return null;let y;t[6]!==e?(y=e("announcements.version.ariaLabel"),t[6]=e,t[7]=y):y=t[7];let w;t[8]!==e?(w=e("announcements.version.dismiss"),t[8]=e,t[9]=w):w=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const N="announcements.version.description";let j;t[14]!==e||t[15]!==N?(j=e(N),t[14]=e,t[15]=N,t[16]=j):j=t[16];let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(pt,{size:16}),t[17]=g):g=t[17];let T;t[18]!==c.version?(T=()=>l(c.version),t[18]=c.version,t[19]=T):T=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.373.5"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==S||t[23]!==e?(A=e(S),t[22]=S,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=ct(E),t[25]=E,t[26]=C):C=t[26];let O;t[27]!==C?(O=n.jsx(pt,{size:14,className:C}),t[27]=C,t[28]=O):O=t[28];let I;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==O?(I=n.jsxs(F,{size:"sm",disabled:f,onClick:x,children:[A,O]}),t[29]=x,t[30]=f,t[31]=A,t[32]=O,t[33]=I):I=t[33];let M;return t[34]!==T||t[35]!==k||t[36]!==I||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(M=n.jsx(Rt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:I}),t[34]=T,t[35]=k,t[36]=I,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=M):M=t[42],M}async function to(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function no(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function so(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const oo=Date.parse("2026-07-21T00:00:00Z"),kt=t=>so(Be.ptBrAnnouncementSeen(t));function io(){const t=R.c(35),e=W(),[s,r]=nn(),{data:o,isPending:a}=Ke.useSession(),i=o?.user,d=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<oo,v=sn()==="pt-BR",c=!a&&!!d&&h&&v&&s.language==="en"&&!kt(d).has(),[b,p]=V.useState(!1),[l,f]=V.useState(!1);!b&&!a&&(p(!0),c&&d&&(kt(d).mark(),r(ro),f(!0),dt("pt_br_auto_switch_shown")));let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=G=>{dt("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=u):u=t[0];const x=u;let S;t[1]!==r?(S=()=>{r(ao),x("switch-back")},t[1]=r,t[2]=S):S=t[2];const y=S;let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w=G=>!G&&x("dismiss"),t[3]=w):w=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let P;t[5]!==e?(P=e("announcements.ptBr.title"),t[5]=e,t[6]=P):P=t[6];let N;t[7]!==P?(N=n.jsx(Lt,{children:P}),t[7]=P,t[8]=N):N=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let g;t[11]!==j?(g=n.jsx(On,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(It,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=T):T=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let A;t[18]!==y||t[19]!==k?(A=n.jsx(F,{variant:"outline",onClick:y,children:k}),t[18]=y,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>x("ok"),t[21]=E):E=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let O;t[24]!==C?(O=n.jsx(F,{onClick:E,children:C}),t[24]=C,t[25]=O):O=t[25];let I;t[26]!==A||t[27]!==O?(I=n.jsxs(In,{children:[A,O]}),t[26]=A,t[27]=O,t[28]=I):I=t[28];let M;t[29]!==I||t[30]!==T?(M=n.jsxs($t,{className:"sm:max-w-md",children:[_,T,I]}),t[29]=I,t[30]=T,t[31]=M):M=t[31];let B;return t[32]!==l||t[33]!==M?(B=n.jsx(Dt,{open:l,onOpenChange:w,children:M}),t[32]=l,t[33]=M,t[34]=B):B=t[34],B}function ao(t){return{...t,language:"en"}}function ro(t){return{...t,language:"pt-BR"}}function lo(t){const e=on(t);return typeof e=="string"?e:void 0}function co(){return lo("experiment-pipeline-check"),null}function uo(t){const e=R.c(1),{activeOrg:s}=t;if(!s)return null;an(s.id,{name:s.name??void 0,slug:s.slug??void 0}),rn();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(co,{}),e[0]=r):r=e[0],r}function mo(t){const{prev:e,virtualMcpId:s,decopilotId:r,savedLayout:o,opts:a,autosendValue:i}=t,d={mainpanel:void 0};s?d.virtualmcpid=s:e.virtualmcpid&&(d.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(s??m)!==m;let c,b;return a?.panel?b=a.panel:o?(b=o.tab,o.sidepanel!==void 0&&(c=o.sidepanel),o.mainpanel!==void 0&&(d.mainpanel=o.mainpanel)):!v&&e.tabId&&!ln(e.tabId)&&(b=e.tabId),c!==void 0&&(d.sidepanel=c),a?.autosend&&(d.autosend=i),{tabId:b,search:d}}const Ht="studio:thread-layout:v4",fo=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,s,r=fo){const o=t.filter(([a])=>a!==e);for(o.push([e,Ut(s)]);o.length>r;)o.shift();return o}function gt(){try{const t=sessionStorage.getItem(Ht);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Gt(t){try{sessionStorage.setItem(Ht,JSON.stringify(t))}catch{}}function ho(t,e){t&&Gt(go(gt(),t,e))}function po(t){if(!t)return null;const e=gt().find(([s])=>s===t);return e?Ut(e[1]):null}function li(t){if(!t)return;const e=gt(),s=e.filter(([r])=>r!==t);s.length!==e.length&&Gt(s)}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 ci(t){const e=R.c(10);let s;e[0]!==t?(s=Jt(t),e[0]=t,e[1]=s):s=e[1];const r=He(s);let o;e[2]!==r.data?.prompts?(o=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=o):o=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]!==o||e[8]!==a?(i={isLoading:r.isLoading,prompts:o,tiles:a},e[6]=r.isLoading,e[7]=o,e[8]=a,e[9]=i):i=e[9],i}function yo(t){const e=R.c(31),{orgSlug:s,orgName:r,domain:o}=t,a=W();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const d=i,m=bo;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Tt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let v;e[3]!==a?(v=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=v):v=e[4];let c;e[5]!==v?(c=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[5]=v,e[6]=c):c=e[6];let b;e[7]!==o||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${a("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=r,e[9]=a,e[10]=b):b=e[10];let p;e[11]!==b?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[11]=b,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let u;e[18]!==d||e[19]!==f?(u=n.jsx(F,{onClick:d,children:f}),e[18]=d,e[19]=f,e[20]=u):u=e[20];let x;e[21]!==a?(x=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=x):x=e[22];let S;e[23]!==x?(S=n.jsx(F,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=S):S=e[24];let y;e[25]!==S||e[26]!==u?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[u,S]}),e[25]=S,e[26]=u,e[27]=y):y=e[27];let w;return e[28]!==y||e[29]!==l?(w=n.jsxs(me,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function bo(){window.location.href="/"}function xo(t){const e=R.c(27),{notice:s,orgSlug:r}=t,o=W();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(cn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==s.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let d;e[3]!==s.message?(d=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=d):d=e[4];let m;e[5]!==i||e[6]!==d?(m=n.jsxs("div",{className:"space-y-2",children:[i,d]}),e[5]=i,e[6]=d,e[7]=m):m=e[7];let h;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(h=s.ctaUrl&&s.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==o?(c=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=b):b=e[15];let p;e[16]!==o?(p=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:p})}),e[18]=p,e[19]=l):l=e[19];let f;e[20]!==l||e[21]!==h||e[22]!==b?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,b,l]}),e[20]=l,e[21]=h,e[22]=b,e[23]=f):f=e[23];let u;return e[24]!==f||e[25]!==m?(u=n.jsxs(me,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=u):u=e[26],u}function So(t){const e=R.c(8);let s;e[0]!==t?(s=Ue.orgNotice(t??""),e[0]=t,e[1]=s):s=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 o=!!t;let a;return e[4]!==s||e[5]!==r||e[6]!==o?(a={queryKey:s,queryFn:r,enabled:o,staleTime:6e4},e[4]=s,e[5]=r,e[6]=o,e[7]=a):a=e[7],He(a)}const wo="/settings/infra-billing";function vo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(wo)}function jo(t){const e=R.c(8),{org:s,children:r}=t,a=Zn(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==a?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:a,ui:null},e[0]=s.id,e[1]=s.name,e[2]=a,e[3]=i):i=e[3];const d=i;let m;return e[4]!==r||e[5]!==s||e[6]!==d?(m=n.jsx(yn,{org:s,project:d,children:r}),e[4]=r,e[5]=s,e[6]=d,e[7]=m):m=e[7],m}function ko(){const t=_t(),e=Un(),{org:s}=ft(),r=dn({strict:!1}),o=Ot(),{openPanel:a,closePanel:i}=En(),d=Wn(),m=Yn(),h=Qn(),v=Xn(),c=(f,u=!0)=>t({to:".",search:f,replace:u}),b=()=>c(f=>({...f,sidepanel:!0})),p=(f,u,x)=>{const S=!!m&&m===f;m&&!S&&ho(m,{tab:o,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:po(f),w=Pt(s.id).id,_=mo({prev:{virtualmcpid:d,tabId:o},virtualMcpId:u,decopilotId:w,savedLayout:y,opts:x,autosendValue:Vn});return v(f,()=>_.search,{virtualMcpId:u,view:{tabId:_.tabId}})};return{openSidePanel:b,setTaskId:p,createNewTask:async(f,u,x)=>{const S=crypto.randomUUID(),y=f??h;try{await e?.create({id:S,virtual_mcp_id:y,...u?{branch:u}:{}})}catch{}p(S,y,x)},openTab:a,closeTab:i}}const To=new Set(["/$org/","/$org/home"]);function No(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:_o},t[0]=e):e=t[0],Ct(e)}function _o(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&To.has(e)}function Ao(){const t=R.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=un(e)?.params.org,[o,a]=V.useState(!1),[i,d]=Ws(),m=mn(),h=No(),v=r??"";let c;t[1]!==v?(c=Jt(v),t[1]=v,t[2]=c):c=t[2];const b=!!r&&h;let p;t[3]!==c||t[4]!==b?(p={...c,enabled:b},t[3]=c,t[4]=b,t[5]=p):p=t[5],He(p);const{data:l}=Ke.useSession(),f=l?.user?.id;let u;t[6]!==r||t[7]!==f?(u=r&&f?fn(f,r):null,t[6]=r,t[7]=f,t[8]=u):u=t[8];const x=u;let S,y;t[9]!==m?(S=()=>{const L=q=>{if(vt(q)&&q.code==="KeyK"){q.preventDefault(),Js();return}if(q.key==="?"&&!Ms(q.target)){q.preventDefault(),a(!0);return}vt(q)&&q.code==="BracketLeft"&&m.history.canGoBack()&&(q.preventDefault(),m.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},y=[m],t[9]=m,t[10]=S,t[11]=y):(S=t[10],y=t[11]),V.useEffect(S,y);let w;t[12]!==r?(w=Ue.activeOrganization(r),t[12]=r,t[13]=w):w=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await Ke.organization.getFullOrganization({query:{organizationSlug:r}}).finally(Co),q=rt(L);return L&&!q&&localStorage.setItem(Be.lastOrgSlug(),r),f&&L&&hn(f,r,L),L},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=x?x.data:void 0,N=x?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==w||t[20]!==_?(j={queryKey:w,queryFn:_,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=w,t[20]=_,t[21]=j):j=t[21];const{data:g}=Nt(j),T=g?.id,k=g?.slug,{data:A}=es(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=So(k);let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O={select:Po},t[22]=O):O=t[22];const I=Ct(O),M=C?.severity==="block"&&!vo(I),B=T??"",G=k??"";let z;t[23]!==B||t[24]!==G?(z=Kn({connectionId:At,orgId:B,orgSlug:G}),t[23]=B,t[24]=G,t[25]=z):z=t[25];const Y=!!T&&!!k;let ne;if(t[26]!==z||t[27]!==Y?(ne={...z,enabled:Y},t[26]=z,t[27]=Y,t[28]=ne):ne=t[28],He(ne),(!g||rt(g)||E||M)&&Vs(),!g){let L;return t[29]!==r?(L=n.jsx(us,{orgSlug:r}),t[29]=r,t[30]=L):L=t[30],L}if(rt(g)){localStorage.getItem(Be.lastOrgSlug())===r&&localStorage.removeItem(Be.lastOrgSlug());let L;return t[31]!==g.name?(L=n.jsx(gn,{orgName:g.name}),t[31]=g.name,t[32]=L):L=t[32],L}if(M&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(xo,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=L):L=t[35],L}if(E){let L;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?(L=n.jsx(yo,{orgId:g.id,orgSlug:g.slug,orgName:g.name,domain:A.domain}),t[36]=g.id,t[37]=g.name,t[38]=g.slug,t[39]=A.domain,t[40]=L):L=t[40],L}const ee=g.logo??null;let Q;t[41]!==g||t[42]!==ee?(Q={...g,logo:ee},t[41]=g,t[42]=ee,t[43]=Q):Q=t[43];let K;t[44]!==g?(K=n.jsx(uo,{activeOrg:g}),t[44]=g,t[45]=K):K=t[45];let X;t[46]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(pn,{}),t[46]=X):X=t[46];let se;t[47]===Symbol.for("react.memo_cache_sentinel")?(se=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($s,{}),n.jsx(eo,{})]}),t[47]=se):se=t[47];let H;t[48]!==i||t[49]!==d?(H=i&&n.jsx(Hs,{open:i,onOpenChange:d}),t[48]=i,t[49]=d,t[50]=H):H=t[50];let U;t[51]!==o?(U=n.jsx(Fs,{open:o,onOpenChange:a}),t[51]=o,t[52]=U):U=t[52];let oe;t[53]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(io,{}),t[53]=oe):oe=t[53];let Z;return t[54]!==Q||t[55]!==K||t[56]!==H||t[57]!==U?(Z=n.jsxs(jo,{org:Q,children:[K,X,se,H,U,oe]}),t[54]=Q,t[55]=K,t[56]=H,t[57]=U,t[58]=Z):Z=t[58],Z}function Po(t){return t.location.pathname}function Co(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Eo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Jn,{children:n.jsx(Ao,{})}),t[0]=e):e=t[0],e}const di=Object.freeze(Object.defineProperty({__proto__:null,default:Eo,usePanelActions:ko},Symbol.toStringTag,{value:"Module"}));export{J as K,ms as L,ko as a,vt as b,vs as c,ci as d,di as e,li as f,zt as i,Js as o,ai as r,ri as s,So as u};
1
+ import{c as R,b as W,e as Ye,j as n,B as F,t as Ve,bP as me,R as Tt,a as Ke,y as Vt,D as Nt,K as Ue,bQ as Wt,bR as Yt,$ as Be,l as ct,aJ as Qt,p as ht,bS as Xt,r as V,a1 as Zt,aa as ie,d as _t,a0 as ft,z as At,m as He,q as dt,au as Pt,bT as en,aB as tn,aH as pt,x as nn,bU as sn,bV as on,bW as an,bX as rn,bY as ln,T as cn,u as dn,a3 as un,bZ as mn,b_ as fn,k as Ct,b$ as rt,c0 as gn,c1 as hn,O as pn,c2 as yn}from"./index-B9-heAAa.js";import{A as it}from"./avatar-Didv6efi.js";import{t as Et}from"./Globe04-BFA3LOH7.js";import{i as bn}from"./SearchLg-DgqRTz9C.js";import{ad as xn,ac as Sn,ae as te,r as wn,af as vn,n as yt,g as jn,f as kn,ag as Tn,e as Nn}from"./agent-icon-BRULiLDc.js";import{s as _n}from"./XClose-DS_Db3B_.js";import{D as An}from"./download-app-dialog-BUFOH47d.js";import{a as Pn,u as Cn}from"./use-project-scope-BC5vNotn.js";import{u as Ot,a as En}from"./use-panel-navigate-C1nn8JtC.js";import{i as ae}from"./CheckCircle-GeSGM969.js";import{i as bt}from"./Tool02-cweQ69Nx.js";import{i as lt}from"./Monitor01-DKEZpVnT.js";import{i as re}from"./Zap-XRJ8YEEc.js";import{c as It,d as Lt,b as $t,D as Dt,h as On,e as In}from"./dialog-BG4c8Ew3.js";import{i as Ln}from"./Share07-NUMfhSqd.js";import{s as xt}from"./Plus-CFFsuHFf.js";import{a as $n}from"./Settings02-DsaxolGj.js";import{b as le,a as Ge,f as Dn,e as Rn,c as Mn,C as Fn}from"./command-Dt5rZk11.js";import{I as zn}from"./integration-icon-B6dtorjO.js";import{P as qn}from"./project-icon-Ba4aI2hq.js";import{a as Bn,m as Kn}from"./use-mcp-client-QkBFbC3f.js";import{S as Hn,u as Un}from"./hooks-BP4OlUD4.js";import{u as Gn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Jn}from"./required-auth-layout-Cac00Ws4.js";import{A as Vn}from"./autosend-Bpehk8fy.js";import{u as Wn,a as Yn,b as Qn,c as Xn}from"./thread-route-MBCO8DTC.js";import{b as Zn}from"./use-organization-settings-CcUVu9tG.js";import{u as es}from"./use-org-sso-jTEc7oSr.js";function ts(t){const e=R.c(49),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let d;e[0]!==r||e[1]!==i?(d=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=d):d=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=k=>{Ve.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let v;e[7]!==d||e[8]!==m||e[9]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[7]=d,e[8]=m,e[9]=h,e[10]=v):v=e[10];const c=Ye(v),b=ns;let p;e[11]!==o||e[12]!==s?(p=o?n.jsx(it,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Et,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=s,e[13]=p):p=e[13];let l;e[14]!==s||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let u;e[19]!==a||e[20]!==i?(u=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=u):u=e[21];let x;e[22]!==u?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[22]=u,e[23]=x):x=e[23];let S;e[24]!==f||e[25]!==x?(S=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=S):S=e[26];let y;e[27]!==c?(y=()=>c.mutate(),e[27]=c,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(F,{onClick:y,disabled:c.isPending,children:w}),e[33]=c.isPending,e[34]=y,e[35]=w,e[36]=_):_=e[36];const P=c.isPending;let N;e[37]!==i?(N=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(F,{variant:"ghost",onClick:b,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==_||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=g):g=e[44];let T;return e[45]!==S||e[46]!==g||e[47]!==p?(T=n.jsxs(me,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function ns(){window.location.href="/"}function St(t){const e=R.c(25),{orgSlug:s,orgName:r,reason:o}=t,a=W(),i=ss,d=o==="not-found",m=d?bn:Tt;let h;e[0]!==d||e[1]!==a?(h=a(d?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=d,e[1]=a,e[2]=h):h=e[2];const v=h;let c;e[3]!==d||e[4]!==r||e[5]!==s||e[6]!==a?(c=d?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??s}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=d,e[4]=r,e[5]=s,e[6]=a,e[7]=c):c=e[7];const b=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==b?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=f):f=e[13];let u;e[14]!==l||e[15]!==f?(u=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=u):u=e[16];let x;e[17]!==a?(x=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=x):x=e[18];let S;e[19]!==x?(S=n.jsx(F,{onClick:i,children:x}),e[19]=x,e[20]=S):S=e[20];let y;return e[21]!==p||e[22]!==u||e[23]!==S?(y=n.jsxs(me,{children:[p,u,S]}),e[21]=p,e[22]=u,e[23]=S,e[24]=y):y=e[24],y}function ss(){window.location.href="/"}function os(t){const e=R.c(59),{invitationId:s,orgName:r,orgSlug:o,orgLogo:a}=t,i=W();let d;e[0]!==s?(d=async()=>{const I=await Ke.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=d):d=e[1];let m;e[2]!==o?(m=()=>{Vt(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let h;e[4]!==i?(h=I=>{Ve.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let v;e[6]!==d||e[7]!==m||e[8]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[6]=d,e[7]=m,e[8]=h,e[9]=v):v=e[9];const c=Ye(v);let b;e[10]!==s?(b=async()=>{const I=await Ke.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ve.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=I=>{Ve.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==b||e[16]!==p||e[17]!==l?(f={mutationFn:b,onSuccess:p,onError:l},e[15]=b,e[16]=p,e[17]=l,e[18]=f):f=e[18];const u=Ye(f),x=c.isPending||u.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(it,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(xn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=S):S=e[21];let y;e[22]!==r||e[23]!==i?(y=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=y):y=e[24];let w;e[25]!==y?(w=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[25]=y,e[26]=w):w=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let N;e[31]!==w||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[w,P]}),e[31]=w,e[32]=P,e[33]=N):N=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let g;e[36]!==c.isPending||e[37]!==i?(g=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=g):g=e[38];let T;e[39]!==x||e[40]!==j||e[41]!==g?(T=n.jsx(F,{onClick:j,disabled:x,children:g}),e[39]=x,e[40]=j,e[41]=g,e[42]=T):T=e[42];let k;e[43]!==u?(k=()=>u.mutate(),e[43]=u,e[44]=k):k=e[44];let A;e[45]!==u.isPending||e[46]!==i?(A=u.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=u.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==x||e[49]!==k||e[50]!==A?(E=n.jsx(F,{variant:"ghost",onClick:k,disabled:x,children:A}),e[48]=x,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==T||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,E]}),e[52]=T,e[53]=E,e[54]=C):C=e[54];let O;return e[55]!==N||e[56]!==C||e[57]!==S?(O=n.jsxs(me,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=O):O=e[58],O}function is(t){const e=R.c(23),{orgName:s,orgLogo:r}=t,o=W();let a;e[0]!==r||e[1]!==s?(a=r?n.jsx(it,{url:r,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Sn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=s,e[2]=a):a=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let d;e[5]!==i?(d=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=d):d=e[6];let m;e[7]!==s||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let v;e[12]!==d||e[13]!==h?(v=n.jsxs("div",{className:"space-y-2",children:[d,h]}),e[12]=d,e[13]=h,e[14]=v):v=e[14];let c;e[15]!==o?(c=o("common.requestPendingScreen.goHome"),e[15]=o,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(F,{variant:"ghost",onClick:as,children:c}),e[17]=c,e[18]=b):b=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==b?(p=n.jsxs(me,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function as(){window.location.href="/"}function rs(t){const e=R.c(45),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let d;e[0]!==r?(d=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await T.json();if(!T.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=d):d=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ve.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let v;e[5]!==d||e[6]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[5]=d,e[6]=h,e[7]=v):v=e[7];const c=Ye(v);let b;e[8]!==o||e[9]!==s?(b=o?n.jsx(it,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Et,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=b):b=e[10];let p;e[11]!==s||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let u;e[19]!==f?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=u):u=e[20];let x;e[21]!==l||e[22]!==u?(x=n.jsxs("div",{className:"space-y-2",children:[l,u]}),e[21]=l,e[22]=u,e[23]=x):x=e[23];let S;e[24]!==c?(S=()=>c.mutate(),e[24]=c,e[25]=S):S=e[25];let y;e[26]!==c.isPending||e[27]!==i?(y=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==S||e[31]!==y?(w=n.jsx(F,{onClick:S,disabled:c.isPending,children:y}),e[29]=c.isPending,e[30]=S,e[31]=y,e[32]=w):w=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(F,{variant:"ghost",onClick:ls,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==w||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,N]}),e[38]=w,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==x||e[42]!==j||e[43]!==b?(g=n.jsxs(me,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=R.c(7);let s;e[0]!==t?(s=Ue.orgAccessStatus(t),e[0]=t,e[1]=s):s=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 o;return e[4]!==s||e[5]!==r?(o={queryKey:s,queryFn:r,refetchOnWindowFocus:!1},e[4]=s,e[5]=r,e[6]=o):o=e[6],Nt(o)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Wt()?.org===t&&Yt();const s=localStorage.getItem(Be.lastOrgSlug())===t;if(s&&localStorage.removeItem(Be.lastOrgSlug()),s&&(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(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(St,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Rt(t){const e=R.c(42),{ariaLabel:s,dismissLabel:r,eyebrow:o,title:a,description:i,icon:d,children:m,footerLeading:h,actions:v,onDismiss:c,tone:b}=t,p=b===void 0?"neutral":b,l=h||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(_n,{size:14}),e[2]=u):u=e[2];let x;e[3]!==r||e[4]!==c?(x=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:u}),e[3]=r,e[4]=c,e[5]=x):x=e[5];const S=d&&"flex items-start gap-3",y=m&&"pb-3";let w;e[6]!==S||e[7]!==y?(w=ct("p-4 pr-11",S,y),e[6]=S,e[7]=y,e[8]=w):w=e[8];let _;e[9]!==d?(_=d&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:d}),e[9]=d,e[10]=_):_=e[10];let P;e[11]!==o?(P=o&&n.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=P):P=e[12];let N;e[13]!==a?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=N):N=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==P?(g=n.jsxs("div",{children:[P,N,j]}),e[17]=N,e[18]=j,e[19]=P,e[20]=g):g=e[20];let T;e[21]!==m?(T=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=T):T=e[22];let k;e[23]!==g||e[24]!==T?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,T]}),e[23]=g,e[24]=T,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==w||e[28]!==_?(A=n.jsxs("div",{className:w,children:[_,k]}),e[26]=k,e[27]=w,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==h||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:ct("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=h,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==s||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,E]}),e[35]=s,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ms={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 Mt(t){return`[data-tour="${ms[t]}"]`}const fs=[{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 gs(t){return fs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function hs(t,e){return gs(e).map(s=>({element:Mt(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const ps=Mt("switcher"),ys=30;function Ft(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function bs(t,e){return hs(t,e).filter(s=>typeof s.element=="string"&&Ft(s.element))}function xs(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:(s,{driver:r})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>r.destroy()),s.footerButtons.insertBefore(o,s.footerButtons.firstChild)},onDestroyed:()=>{Je=!1},steps:e}}let Je=!1;async function Ss(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function ws(t,e){if(Je)return;Je=!0;let s=0;const r=()=>{if(!Ft(ps)&&s++<ys){requestAnimationFrame(r);return}const o=bs(t,e);if(o.length===0){Je=!1;return}Ss().then(a=>{a(xs(t,o)).drive()}).catch(()=>{Je=!1})};r()}function vs(t){return t!=="off"}function ai(t){if(!t.hasSource)return[];const e=["site-editor"];return vs(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 ri(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const js=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:ht,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:te,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:lt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"native-app-linux-beta",date:"2026-08-20",eyebrow:"Now Available",title:"Studio for Linux is now in beta",bullets:[{icon:lt,title:"Native Linux desktop app",body:"Studio now ships as an AppImage for 64-bit x86 Linux, bringing the local desktop workflow to Linux."},{icon:ae,title:"Verified, no-root install",body:"The installer verifies the download, installs Studio to ~/.local/bin, and adds it to your application launcher without sudo."},{icon:re,title:"Beta today, broader support next",body:"We're validating more distributions and desktop environments. Arm builds are not available yet, and your feedback will shape general availability."}],cta:{label:"Install Studio",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases/tag/native-v4.242.0"},{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:re,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:te,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:Xt,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:lt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:te,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ae,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:re,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:te,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:ae,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:re,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:ae,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:te,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:re,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:te,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:ae,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:re,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:te,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:ae,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:re,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:te,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:bt,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:ae,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:ht,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:re,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:ae,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:te,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:bt,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:te,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:wn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],qt=js,ot="studio.release-feed.v1",ut=new Set;let de="",ue={},mt=!1;function ks(){if(mt)return de||"{}";try{return localStorage.getItem(ot)??"{}"}catch{return de||"{}"}}function Bt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=ks();return t!==de&&(de=t,ue=Bt(t)),ue}function Ts(t){ut.add(t);const e=s=>{if(!(s.key!==ot&&s.key!==null)){try{const r=localStorage.getItem(ot)??"{}",a={...Bt(r),...ue};ue=a,de=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{ut.delete(t),window.removeEventListener("storage",e)}}function Ns(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(ot,de),mt=!1}catch{mt=!0}ut.forEach(e=>e())}function _s(){const t=R.c(7),e=V.useSyncExternalStore(Ts,wt,wt);let s;t[0]!==e?(s=m=>!!e[m],t[0]=e,t[1]=s):s=t[1];const r=s,o=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 d;return t[4]!==r||t[5]!==i?(d={isSeen:r,markSeen:o,unseenCount:i},t[4]=r,t[5]=i,t[6]=d):d=t[6],d}function As(t){ue[t]||Ns({...ue,[t]:{seenAt:new Date().toISOString()}})}const Ps=720*60*60*1e3,Cs=10080*60*1e3;function Es(t){const[e,s,r]=t.split("-").map(Number);return!e||!s||!r?new Date(t).getTime():new Date(e,s-1,r).getTime()}function Os(t){const e=qt[0];if(!e)return null;const s=Es(e.date),r=t-s;return r<0||r>Ps?null:e}function Is(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 s=Is(t);return s===null?!1:e-s>=Cs}function $s(){const t=R.c(52),e=W(),s=Pn(),r=Zt(),o=Ot(),a=!!s,i=r===ie.home&&!s;let d;t[0]!==o||t[1]!==a?(d=a&&!!o&&zt(o),t[0]=o,t[1]=a,t[2]=d):d=t[2];const m=d,{data:h}=Ke.useSession(),{isSeen:v,markSeen:c}=_s(),[b,p]=V.useState(!1);let l,f,u;if(t[3]!==v||t[4]!==h?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{const O=Date.now();if(l=Os(O),!l){u=null;break e}if(!Ls(h?.user?.createdAt,O)){u=null;break e}f=v(l.id)}t[3]=v,t[4]=h?.user?.createdAt,t[5]=l,t[6]=f,t[7]=u}else l=t[5],f=t[6],u=t[7];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(f)return null;let x;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(x=()=>{c(l.id),ws(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=x):x=t[14];const S=x;let y;t[15]!==e?(y=e("announcements.release.ariaLabel"),t[15]=e,t[16]=y):y=t[16];let w;t[17]!==e?(w=e("announcements.release.dismiss"),t[17]=e,t[18]=w):w=t[18];const _=l.eyebrow,P=l.title;let N;t[19]!==l.id||t[20]!==c?(N=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=N):N=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let g;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==S?(g=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>c(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):l.cta.action==="start-tour"?n.jsx(F,{size:"sm",onClick:S,children:l.cta.label}):n.jsx(F,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=S,t[31]=g):g=t[31];let T;t[32]!==l.bullets?(T=l.bullets.map(Ds),t[32]=l.bullets,t[33]=T):T=t[33];let k;t[34]!==T?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:T}),t[34]=T,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=O=>{p(O),O||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==b||t[40]!==A?(E=n.jsx(An,{open:b,onOpenChange:A}),t[39]=b,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==g||t[45]!==k||t[46]!==E||t[47]!==y||t[48]!==w||t[49]!==N||t[50]!==j?(C=n.jsxs(Rt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,onDismiss:N,footerLeading:j,actions:g,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=g,t[45]=k,t[46]=E,t[47]=y,t[48]=w,t[49]=N,t[50]=j,t[51]=C):C=t[51],C}function Ds(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 Kt=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Kt?"⌘":"Ctrl",J={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"}},Rs=[{label:"General",shortcuts:[J.commandPalette,J.keyboardShortcuts,J.back,J.newTask,J.toggleDaemon]},{label:"Editor",shortcuts:[J.saveAndFormat]},{label:"Chat",shortcuts:[J.focusChatInput,J.togglePlanMode,J.sendMessage,J.newLine]},{label:"Questions",shortcuts:[J.selectOption]},{label:"Monitoring",shortcuts:[J.applyFilter]}];function vt(t){return Kt?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 Fs(t){const e=R.c(11),{open:s,onOpenChange:r}=t,o=W();let a;e[0]!==o?(a=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(It,{children:n.jsx(Lt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"flex flex-col gap-4",children:Rs.map(zs)}),e[4]=d):d=e[4];let m;e[5]!==i?(m=n.jsxs($t,{className:"sm:max-w-md",children:[i,d]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==s||e[9]!==m?(h=n.jsx(Dt,{open:s,onOpenChange:r,children:m}),e[7]=r,e[8]=s,e[9]=m,e[10]=h):h=e[10],h}function zs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(qs)})]},t.label)}function qs(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 Ks(t){const{org:e}=ft(),s=Bn({connectionId:At,orgId:e.id,orgSlug:e.slug}),{data:r}=He({queryKey:Ue.globalSearch(e.id,t,jt),enabled:!!s&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!s)return[];try{return(await s.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Hs(t){const e=R.c(195),{open:s,onOpenChange:r}=t,o=W(),a=_t(),{org:i}=ft(),{projects:d,hasProjects:m}=Cn(),[h,v]=V.useState(""),c=V.useDeferredValue(h),b=Ks(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(z,Y)=>{dt("command_palette_used",{kind:Y}),z(),l()},e[2]=l,e[3]=f):f=e[3];const u=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=z=>{if(z.type==="connection"){if(!z.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:z.slug}});return}if(z.type==="task"){a({to:ie.tasks,params:{org:i.slug,taskKey:z.key??void 0}});return}const Y=Pt(i.id).id;en(a,tn({org:i.slug,agentId:z.virtual_mcp_id??Y,superAgentId:Y}),{search:()=>({thread:z.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let y;e[8]!==h?(y=[h],e[8]=h,e[9]=y):y=e[9];const w=y;let _,P,N,j,g,T,k,A,E,C,O,I,M;if(e[10]!==l||e[11]!==u||e[12]!==m||e[13]!==b||e[14]!==a||e[15]!==r||e[16]!==s||e[17]!==S||e[18]!==i.slug||e[19]!==d||e[20]!==w||e[21]!==o||e[22]!==h){const z=b.filter(Gs),Y=b.filter(Us);let ne;e[36]!==i.slug?(ne={org:i.slug},e[36]=i.slug,e[37]=ne):ne=e[37];const D=ne;let ee;e[38]!==o?(ee=o("sidebar.navDestinations.home"),e[38]=o,e[39]=ee):ee=e[39];let Q;e[40]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(jn,{"aria-hidden":"true"}),e[40]=Q):Q=e[40];let K;e[41]!==D||e[42]!==ee?(K={key:"home",label:ee,icon:Q,to:ie.home,params:D},e[41]=D,e[42]=ee,e[43]=K):K=e[43];let X;e[44]!==o?(X=o("sidebar.navDestinations.reports"),e[44]=o,e[45]=X):X=e[45];let se;e[46]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(kn,{"aria-hidden":"true"}),e[46]=se):se=e[46];let H;e[47]!==D||e[48]!==X?(H={key:"reports",label:X,icon:se,to:ie.reports,params:D},e[47]=D,e[48]=X,e[49]=H):H=e[49];let U;e[50]!==o?(U=o("sidebar.navDestinations.tasks"),e[50]=o,e[51]=U):U=e[51];let oe;e[52]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(yt,{"aria-hidden":"true"}),e[52]=oe):oe=e[52];let Z;e[53]!==i.slug?(Z={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=Z):Z=e[54];let L;e[55]!==U||e[56]!==Z?(L={key:"tasks",label:U,icon:oe,to:ie.tasks,params:Z},e[55]=U,e[56]=Z,e[57]=L):L=e[57];let q;e[58]!==o?(q=o("sidebar.navDestinations.library"),e[58]=o,e[59]=q):q=e[59];let Qe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Ln,{"aria-hidden":"true"}),e[60]=Qe):Qe=e[60];let fe;e[61]!==D||e[62]!==q?(fe={key:"library",label:q,icon:Qe,to:ie.library,params:D},e[61]=D,e[62]=q,e[63]=fe):fe=e[63];let ge;e[64]!==o?(ge=o("sidebar.navDestinations.discover"),e[64]=o,e[65]=ge):ge=e[65];let Xe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(Tn,{"aria-hidden":"true"}),e[66]=Xe):Xe=e[66];let he;e[67]!==D||e[68]!==ge?(he={key:"discover",label:ge,icon:Xe,to:ie.discover,params:D},e[67]=D,e[68]=ge,e[69]=he):he=e[69];let Ze;e[70]!==K||e[71]!==H||e[72]!==L||e[73]!==fe||e[74]!==he?(Ze=[K,H,L,fe,he],e[70]=K,e[71]=H,e[72]=L,e[73]=fe,e[74]=he,e[75]=Ze):Ze=e[75];const at=Ze;P=Dn,j=s,e[76]!==l||e[77]!==r?(g=$=>$?r(!0):l(),e[76]=l,e[77]=r,e[78]=g):g=e[78],e[79]!==o?(T=o("commandPalette.title"),e[79]=o,e[80]=T):T=e[80],e[81]!==o?(k=o("commandPalette.description"),e[81]=o,e[82]=k):k=e[82];let pe;e[83]!==o?(pe=o("commandPalette.placeholder"),e[83]=o,e[84]=pe):pe=e[84];let ye;e[85]!==o?(ye=o("commandPalette.placeholder"),e[85]=o,e[86]=ye):ye=e[86],e[87]!==pe||e[88]!==ye||e[89]!==h?(A=n.jsx(Rn,{placeholder:pe,"aria-label":ye,value:h,onValueChange:v}),e[87]=pe,e[88]=ye,e[89]=h,e[90]=A):A=e[90],_=Mn;let be;e[91]!==o?(be=o("commandPalette.empty"),e[91]=o,e[92]=be):be=e[92],e[93]!==be?(E=n.jsx(Fn,{children:be}),e[93]=be,e[94]=E):E=e[94];let xe;e[95]!==o?(xe=o("commandPalette.goTo"),e[95]=o,e[96]=xe):xe=e[96];let Se;e[97]!==at||e[98]!==u||e[99]!==a?(Se=at.map($=>n.jsxs(le,{onSelect:()=>u(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[97]=at,e[98]=u,e[99]=a,e[100]=Se):Se=e[100],e[101]!==xe||e[102]!==Se?(C=n.jsx(Ge,{heading:xe,children:Se}),e[101]=xe,e[102]=Se,e[103]=C):C=e[103],e[104]!==u||e[105]!==m||e[106]!==a||e[107]!==i.slug||e[108]!==d||e[109]!==o?(O=m&&n.jsx(Ge,{heading:o("commandPalette.projects"),children:d.map($=>n.jsxs(le,{value:`project ${$.title}`,onSelect:()=>u(()=>a({to:ie.projects,params:{org:i.slug,agentId:$.id}}),"project"),children:[n.jsx(qn,{icon:$.icon,name:$.title,"aria-hidden":"true"}),n.jsx("span",{children:$.title})]},$.id))}),e[104]=u,e[105]=m,e[106]=a,e[107]=i.slug,e[108]=d,e[109]=o,e[110]=O):O=e[110];let we;e[111]!==o?(we=o("commandPalette.actions"),e[111]=o,e[112]=we):we=e[112];let ve;e[113]!==o?(ve=o("commandPalette.newProject"),e[113]=o,e[114]=ve):ve=e[114];let je;e[115]!==u||e[116]!==a||e[117]!==D?(je=()=>u(()=>a({to:ie.home,params:D}),"new_project"),e[115]=u,e[116]=a,e[117]=D,e[118]=je):je=e[118];let et;e[119]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(xt,{"aria-hidden":"true"}),e[119]=et):et=e[119];let ke;e[120]!==o?(ke=o("commandPalette.newProject"),e[120]=o,e[121]=ke):ke=e[121];let Te;e[122]!==ke?(Te=n.jsx("span",{children:ke}),e[122]=ke,e[123]=Te):Te=e[123];let Ne;e[124]!==ve||e[125]!==je||e[126]!==Te?(Ne=n.jsxs(le,{value:ve,onSelect:je,children:[et,Te]}),e[124]=ve,e[125]=je,e[126]=Te,e[127]=Ne):Ne=e[127];let _e;e[128]!==o?(_e=o("commandPalette.inviteTeammate"),e[128]=o,e[129]=_e):_e=e[129];let Ae;e[130]!==u||e[131]!==a||e[132]!==D?(Ae=()=>u(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[130]=u,e[131]=a,e[132]=D,e[133]=Ae):Ae=e[133];let tt;e[134]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(Nn,{"aria-hidden":"true"}),e[134]=tt):tt=e[134];let Pe;e[135]!==o?(Pe=o("commandPalette.inviteTeammate"),e[135]=o,e[136]=Pe):Pe=e[136];let Ce;e[137]!==Pe?(Ce=n.jsx("span",{children:Pe}),e[137]=Pe,e[138]=Ce):Ce=e[138];let Ee;e[139]!==_e||e[140]!==Ae||e[141]!==Ce?(Ee=n.jsxs(le,{value:_e,onSelect:Ae,children:[tt,Ce]}),e[139]=_e,e[140]=Ae,e[141]=Ce,e[142]=Ee):Ee=e[142];let Oe;e[143]!==o?(Oe=o("commandPalette.addConnection"),e[143]=o,e[144]=Oe):Oe=e[144];let Ie;e[145]!==u||e[146]!==a||e[147]!==D?(Ie=()=>u(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[145]=u,e[146]=a,e[147]=D,e[148]=Ie):Ie=e[148];let nt;e[149]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(xt,{"aria-hidden":"true"}),e[149]=nt):nt=e[149];let Le;e[150]!==o?(Le=o("commandPalette.addConnection"),e[150]=o,e[151]=Le):Le=e[151];let $e;e[152]!==Le?($e=n.jsx("span",{children:Le}),e[152]=Le,e[153]=$e):$e=e[153];let De;e[154]!==Oe||e[155]!==Ie||e[156]!==$e?(De=n.jsxs(le,{value:Oe,onSelect:Ie,children:[nt,$e]}),e[154]=Oe,e[155]=Ie,e[156]=$e,e[157]=De):De=e[157];let Re;e[158]!==o?(Re=o("commandPalette.settings"),e[158]=o,e[159]=Re):Re=e[159];let Me;e[160]!==u||e[161]!==a||e[162]!==D?(Me=()=>u(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[160]=u,e[161]=a,e[162]=D,e[163]=Me):Me=e[163];let st;e[164]===Symbol.for("react.memo_cache_sentinel")?(st=n.jsx($n,{"aria-hidden":"true"}),e[164]=st):st=e[164];let Fe;e[165]!==o?(Fe=o("commandPalette.settings"),e[165]=o,e[166]=Fe):Fe=e[166];let ze;e[167]!==Fe?(ze=n.jsx("span",{children:Fe}),e[167]=Fe,e[168]=ze):ze=e[168];let qe;e[169]!==Re||e[170]!==Me||e[171]!==ze?(qe=n.jsxs(le,{value:Re,onSelect:Me,children:[st,ze]}),e[169]=Re,e[170]=Me,e[171]=ze,e[172]=qe):qe=e[172],e[173]!==we||e[174]!==Ne||e[175]!==Ee||e[176]!==De||e[177]!==qe?(I=n.jsxs(Ge,{heading:we,children:[Ne,Ee,De,qe]}),e[173]=we,e[174]=Ne,e[175]=Ee,e[176]=De,e[177]=qe,e[178]=I):I=e[178],M=z.length>0&&n.jsx(Ge,{heading:o("commandPalette.connections"),children:z.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>u(()=>S($),"connection"),children:[n.jsx(zn,{icon:$.icon,name:$.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=Y.length>0&&n.jsx(Ge,{heading:o("commandPalette.results"),children:Y.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>u(()=>S($),$.type),children:[$.type==="thread"?n.jsx(vn,{"aria-hidden":"true"}):n.jsx(yt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title}),$.type==="task"&&$.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:$.key})]},`${$.type}:${$.id}`))}),e[10]=l,e[11]=u,e[12]=m,e[13]=b,e[14]=a,e[15]=r,e[16]=s,e[17]=S,e[18]=i.slug,e[19]=d,e[20]=w,e[21]=o,e[22]=h,e[23]=_,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=T,e[29]=k,e[30]=A,e[31]=E,e[32]=C,e[33]=O,e[34]=I,e[35]=M}else _=e[23],P=e[24],N=e[25],j=e[26],g=e[27],T=e[28],k=e[29],A=e[30],E=e[31],C=e[32],O=e[33],I=e[34],M=e[35];let B;e[179]!==_||e[180]!==N||e[181]!==E||e[182]!==C||e[183]!==O||e[184]!==I||e[185]!==M?(B=n.jsxs(_,{children:[E,C,O,I,M,N]}),e[179]=_,e[180]=N,e[181]=E,e[182]=C,e[183]=O,e[184]=I,e[185]=M,e[186]=B):B=e[186];let G;return e[187]!==P||e[188]!==j||e[189]!==g||e[190]!==T||e[191]!==k||e[192]!==A||e[193]!==B?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,B]}),e[187]=P,e[188]=j,e[189]=g,e[190]=T,e[191]=k,e[192]=A,e[193]=B,e[194]=G):G=e[194],G}function Us(t){return t.type!=="connection"}function Gs(t){return t.type==="connection"}const We=new Hn(!1);function Js(){We.set(!0)}function Vs(){We.set(!1)}function Ws(){const t=R.c(2),e=V.useSyncExternalStore(We.subscribe,We.get);let s;return t[0]!==e?(s=[e,We.set],t[0]=e,t[1]=s):s=t[1],s}const Ys=300*1e3,Qs=2;function Xs(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Zs(t,e){return t.count>=Qs&&t.version!==null&&t.version!==e}function eo(){const t=R.c(43),e=W(),s=Gn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:no},t[0]=r):r=t[0];const o=Ye(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ue.appVersionCheck(),queryFn:to,refetchInterval:Ys,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:d}=He(a),[m,h]=V.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,b]=V.useState(v);d!==m&&(h(d),b(B=>Xs(B,i,"4.373.6")));const[p,l]=V.useState(null),f=s;let u;t[3]!==s||t[4]!==o?(u=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=u):u=t[5];const x=u,S="announcements.version.refresh";if(!Zs(c,p))return null;let y;t[6]!==e?(y=e("announcements.version.ariaLabel"),t[6]=e,t[7]=y):y=t[7];let w;t[8]!==e?(w=e("announcements.version.dismiss"),t[8]=e,t[9]=w):w=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const N="announcements.version.description";let j;t[14]!==e||t[15]!==N?(j=e(N),t[14]=e,t[15]=N,t[16]=j):j=t[16];let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(pt,{size:16}),t[17]=g):g=t[17];let T;t[18]!==c.version?(T=()=>l(c.version),t[18]=c.version,t[19]=T):T=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.373.6"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==S||t[23]!==e?(A=e(S),t[22]=S,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=ct(E),t[25]=E,t[26]=C):C=t[26];let O;t[27]!==C?(O=n.jsx(pt,{size:14,className:C}),t[27]=C,t[28]=O):O=t[28];let I;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==O?(I=n.jsxs(F,{size:"sm",disabled:f,onClick:x,children:[A,O]}),t[29]=x,t[30]=f,t[31]=A,t[32]=O,t[33]=I):I=t[33];let M;return t[34]!==T||t[35]!==k||t[36]!==I||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(M=n.jsx(Rt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:I}),t[34]=T,t[35]=k,t[36]=I,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=M):M=t[42],M}async function to(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function no(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function so(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const oo=Date.parse("2026-07-21T00:00:00Z"),kt=t=>so(Be.ptBrAnnouncementSeen(t));function io(){const t=R.c(35),e=W(),[s,r]=nn(),{data:o,isPending:a}=Ke.useSession(),i=o?.user,d=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<oo,v=sn()==="pt-BR",c=!a&&!!d&&h&&v&&s.language==="en"&&!kt(d).has(),[b,p]=V.useState(!1),[l,f]=V.useState(!1);!b&&!a&&(p(!0),c&&d&&(kt(d).mark(),r(ro),f(!0),dt("pt_br_auto_switch_shown")));let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=G=>{dt("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=u):u=t[0];const x=u;let S;t[1]!==r?(S=()=>{r(ao),x("switch-back")},t[1]=r,t[2]=S):S=t[2];const y=S;let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w=G=>!G&&x("dismiss"),t[3]=w):w=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let P;t[5]!==e?(P=e("announcements.ptBr.title"),t[5]=e,t[6]=P):P=t[6];let N;t[7]!==P?(N=n.jsx(Lt,{children:P}),t[7]=P,t[8]=N):N=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let g;t[11]!==j?(g=n.jsx(On,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(It,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=T):T=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let A;t[18]!==y||t[19]!==k?(A=n.jsx(F,{variant:"outline",onClick:y,children:k}),t[18]=y,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>x("ok"),t[21]=E):E=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let O;t[24]!==C?(O=n.jsx(F,{onClick:E,children:C}),t[24]=C,t[25]=O):O=t[25];let I;t[26]!==A||t[27]!==O?(I=n.jsxs(In,{children:[A,O]}),t[26]=A,t[27]=O,t[28]=I):I=t[28];let M;t[29]!==I||t[30]!==T?(M=n.jsxs($t,{className:"sm:max-w-md",children:[_,T,I]}),t[29]=I,t[30]=T,t[31]=M):M=t[31];let B;return t[32]!==l||t[33]!==M?(B=n.jsx(Dt,{open:l,onOpenChange:w,children:M}),t[32]=l,t[33]=M,t[34]=B):B=t[34],B}function ao(t){return{...t,language:"en"}}function ro(t){return{...t,language:"pt-BR"}}function lo(t){const e=on(t);return typeof e=="string"?e:void 0}function co(){return lo("experiment-pipeline-check"),null}function uo(t){const e=R.c(1),{activeOrg:s}=t;if(!s)return null;an(s.id,{name:s.name??void 0,slug:s.slug??void 0}),rn();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(co,{}),e[0]=r):r=e[0],r}function mo(t){const{prev:e,virtualMcpId:s,decopilotId:r,savedLayout:o,opts:a,autosendValue:i}=t,d={mainpanel:void 0};s?d.virtualmcpid=s:e.virtualmcpid&&(d.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(s??m)!==m;let c,b;return a?.panel?b=a.panel:o?(b=o.tab,o.sidepanel!==void 0&&(c=o.sidepanel),o.mainpanel!==void 0&&(d.mainpanel=o.mainpanel)):!v&&e.tabId&&!ln(e.tabId)&&(b=e.tabId),c!==void 0&&(d.sidepanel=c),a?.autosend&&(d.autosend=i),{tabId:b,search:d}}const Ht="studio:thread-layout:v4",fo=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,s,r=fo){const o=t.filter(([a])=>a!==e);for(o.push([e,Ut(s)]);o.length>r;)o.shift();return o}function gt(){try{const t=sessionStorage.getItem(Ht);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Gt(t){try{sessionStorage.setItem(Ht,JSON.stringify(t))}catch{}}function ho(t,e){t&&Gt(go(gt(),t,e))}function po(t){if(!t)return null;const e=gt().find(([s])=>s===t);return e?Ut(e[1]):null}function li(t){if(!t)return;const e=gt(),s=e.filter(([r])=>r!==t);s.length!==e.length&&Gt(s)}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 ci(t){const e=R.c(10);let s;e[0]!==t?(s=Jt(t),e[0]=t,e[1]=s):s=e[1];const r=He(s);let o;e[2]!==r.data?.prompts?(o=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=o):o=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]!==o||e[8]!==a?(i={isLoading:r.isLoading,prompts:o,tiles:a},e[6]=r.isLoading,e[7]=o,e[8]=a,e[9]=i):i=e[9],i}function yo(t){const e=R.c(31),{orgSlug:s,orgName:r,domain:o}=t,a=W();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const d=i,m=bo;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Tt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let v;e[3]!==a?(v=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=v):v=e[4];let c;e[5]!==v?(c=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[5]=v,e[6]=c):c=e[6];let b;e[7]!==o||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${a("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=r,e[9]=a,e[10]=b):b=e[10];let p;e[11]!==b?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[11]=b,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let u;e[18]!==d||e[19]!==f?(u=n.jsx(F,{onClick:d,children:f}),e[18]=d,e[19]=f,e[20]=u):u=e[20];let x;e[21]!==a?(x=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=x):x=e[22];let S;e[23]!==x?(S=n.jsx(F,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=S):S=e[24];let y;e[25]!==S||e[26]!==u?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[u,S]}),e[25]=S,e[26]=u,e[27]=y):y=e[27];let w;return e[28]!==y||e[29]!==l?(w=n.jsxs(me,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function bo(){window.location.href="/"}function xo(t){const e=R.c(27),{notice:s,orgSlug:r}=t,o=W();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(cn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==s.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let d;e[3]!==s.message?(d=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=d):d=e[4];let m;e[5]!==i||e[6]!==d?(m=n.jsxs("div",{className:"space-y-2",children:[i,d]}),e[5]=i,e[6]=d,e[7]=m):m=e[7];let h;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(h=s.ctaUrl&&s.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==o?(c=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=b):b=e[15];let p;e[16]!==o?(p=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:p})}),e[18]=p,e[19]=l):l=e[19];let f;e[20]!==l||e[21]!==h||e[22]!==b?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,b,l]}),e[20]=l,e[21]=h,e[22]=b,e[23]=f):f=e[23];let u;return e[24]!==f||e[25]!==m?(u=n.jsxs(me,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=u):u=e[26],u}function So(t){const e=R.c(8);let s;e[0]!==t?(s=Ue.orgNotice(t??""),e[0]=t,e[1]=s):s=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 o=!!t;let a;return e[4]!==s||e[5]!==r||e[6]!==o?(a={queryKey:s,queryFn:r,enabled:o,staleTime:6e4},e[4]=s,e[5]=r,e[6]=o,e[7]=a):a=e[7],He(a)}const wo="/settings/infra-billing";function vo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(wo)}function jo(t){const e=R.c(8),{org:s,children:r}=t,a=Zn(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==a?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:a,ui:null},e[0]=s.id,e[1]=s.name,e[2]=a,e[3]=i):i=e[3];const d=i;let m;return e[4]!==r||e[5]!==s||e[6]!==d?(m=n.jsx(yn,{org:s,project:d,children:r}),e[4]=r,e[5]=s,e[6]=d,e[7]=m):m=e[7],m}function ko(){const t=_t(),e=Un(),{org:s}=ft(),r=dn({strict:!1}),o=Ot(),{openPanel:a,closePanel:i}=En(),d=Wn(),m=Yn(),h=Qn(),v=Xn(),c=(f,u=!0)=>t({to:".",search:f,replace:u}),b=()=>c(f=>({...f,sidepanel:!0})),p=(f,u,x)=>{const S=!!m&&m===f;m&&!S&&ho(m,{tab:o,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:po(f),w=Pt(s.id).id,_=mo({prev:{virtualmcpid:d,tabId:o},virtualMcpId:u,decopilotId:w,savedLayout:y,opts:x,autosendValue:Vn});return v(f,()=>_.search,{virtualMcpId:u,view:{tabId:_.tabId}})};return{openSidePanel:b,setTaskId:p,createNewTask:async(f,u,x)=>{const S=crypto.randomUUID(),y=f??h;try{await e?.create({id:S,virtual_mcp_id:y,...u?{branch:u}:{}})}catch{}p(S,y,x)},openTab:a,closeTab:i}}const To=new Set(["/$org/","/$org/home"]);function No(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:_o},t[0]=e):e=t[0],Ct(e)}function _o(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&To.has(e)}function Ao(){const t=R.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=un(e)?.params.org,[o,a]=V.useState(!1),[i,d]=Ws(),m=mn(),h=No(),v=r??"";let c;t[1]!==v?(c=Jt(v),t[1]=v,t[2]=c):c=t[2];const b=!!r&&h;let p;t[3]!==c||t[4]!==b?(p={...c,enabled:b},t[3]=c,t[4]=b,t[5]=p):p=t[5],He(p);const{data:l}=Ke.useSession(),f=l?.user?.id;let u;t[6]!==r||t[7]!==f?(u=r&&f?fn(f,r):null,t[6]=r,t[7]=f,t[8]=u):u=t[8];const x=u;let S,y;t[9]!==m?(S=()=>{const L=q=>{if(vt(q)&&q.code==="KeyK"){q.preventDefault(),Js();return}if(q.key==="?"&&!Ms(q.target)){q.preventDefault(),a(!0);return}vt(q)&&q.code==="BracketLeft"&&m.history.canGoBack()&&(q.preventDefault(),m.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},y=[m],t[9]=m,t[10]=S,t[11]=y):(S=t[10],y=t[11]),V.useEffect(S,y);let w;t[12]!==r?(w=Ue.activeOrganization(r),t[12]=r,t[13]=w):w=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await Ke.organization.getFullOrganization({query:{organizationSlug:r}}).finally(Co),q=rt(L);return L&&!q&&localStorage.setItem(Be.lastOrgSlug(),r),f&&L&&hn(f,r,L),L},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=x?x.data:void 0,N=x?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==w||t[20]!==_?(j={queryKey:w,queryFn:_,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=w,t[20]=_,t[21]=j):j=t[21];const{data:g}=Nt(j),T=g?.id,k=g?.slug,{data:A}=es(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=So(k);let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O={select:Po},t[22]=O):O=t[22];const I=Ct(O),M=C?.severity==="block"&&!vo(I),B=T??"",G=k??"";let z;t[23]!==B||t[24]!==G?(z=Kn({connectionId:At,orgId:B,orgSlug:G}),t[23]=B,t[24]=G,t[25]=z):z=t[25];const Y=!!T&&!!k;let ne;if(t[26]!==z||t[27]!==Y?(ne={...z,enabled:Y},t[26]=z,t[27]=Y,t[28]=ne):ne=t[28],He(ne),(!g||rt(g)||E||M)&&Vs(),!g){let L;return t[29]!==r?(L=n.jsx(us,{orgSlug:r}),t[29]=r,t[30]=L):L=t[30],L}if(rt(g)){localStorage.getItem(Be.lastOrgSlug())===r&&localStorage.removeItem(Be.lastOrgSlug());let L;return t[31]!==g.name?(L=n.jsx(gn,{orgName:g.name}),t[31]=g.name,t[32]=L):L=t[32],L}if(M&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(xo,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=L):L=t[35],L}if(E){let L;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?(L=n.jsx(yo,{orgId:g.id,orgSlug:g.slug,orgName:g.name,domain:A.domain}),t[36]=g.id,t[37]=g.name,t[38]=g.slug,t[39]=A.domain,t[40]=L):L=t[40],L}const ee=g.logo??null;let Q;t[41]!==g||t[42]!==ee?(Q={...g,logo:ee},t[41]=g,t[42]=ee,t[43]=Q):Q=t[43];let K;t[44]!==g?(K=n.jsx(uo,{activeOrg:g}),t[44]=g,t[45]=K):K=t[45];let X;t[46]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(pn,{}),t[46]=X):X=t[46];let se;t[47]===Symbol.for("react.memo_cache_sentinel")?(se=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($s,{}),n.jsx(eo,{})]}),t[47]=se):se=t[47];let H;t[48]!==i||t[49]!==d?(H=i&&n.jsx(Hs,{open:i,onOpenChange:d}),t[48]=i,t[49]=d,t[50]=H):H=t[50];let U;t[51]!==o?(U=n.jsx(Fs,{open:o,onOpenChange:a}),t[51]=o,t[52]=U):U=t[52];let oe;t[53]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(io,{}),t[53]=oe):oe=t[53];let Z;return t[54]!==Q||t[55]!==K||t[56]!==H||t[57]!==U?(Z=n.jsxs(jo,{org:Q,children:[K,X,se,H,U,oe]}),t[54]=Q,t[55]=K,t[56]=H,t[57]=U,t[58]=Z):Z=t[58],Z}function Po(t){return t.location.pathname}function Co(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Eo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Jn,{children:n.jsx(Ao,{})}),t[0]=e):e=t[0],e}const di=Object.freeze(Object.defineProperty({__proto__:null,default:Eo,usePanelActions:ko},Symbol.toStringTag,{value:"Module"}));export{J as K,ms as L,ko as a,vt as b,vs as c,ci as d,di as e,li as f,zt as i,Js as o,ai as r,ri as s,So as u};
@@ -1 +1 @@
1
- import{r as O,c as y,j as o,l as N,B as A,bd as P,aF as R}from"./index-LuQPyfHg.js";import{i as H}from"./LayoutLeft-ULL_7jIQ.js";import{u as V}from"./use-mobile-YjO30zbo.js";import{b as W,c as F,S as L,d as q,a as G}from"./sheet-B4Gi1sGY.js";import{b as $,T as z,a as B,c as E}from"./tooltip-SRIuIppn.js";const J="15rem",K="18rem",Q="4.5rem",k=O.createContext(null);function D(){const l=O.useContext(k);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ie(l){const e=y.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,d=s===void 0?!1:s,r=V(),[n,x]=O.useState(d),[f,g]=O.useState(!1),c=a!==void 0,b=c?a:n;let S;e[0]!==c||e[1]!==i?(S=C=>{c||x(C),i?.(C)},e[0]=c,e[1]=i,e[2]=S):S=e[2];const u=S;let w;e[3]!==r||e[4]!==b||e[5]!==u?(w=()=>{r?g(U):u(!b)},e[3]=r,e[4]=b,e[5]=u,e[6]=w):w=e[6];const j=w,m=b?"expanded":"collapsed";let p;e[7]!==r||e[8]!==b||e[9]!==f||e[10]!==u||e[11]!==m||e[12]!==j?(p={state:m,open:b,setOpen:u,isMobile:r,openMobile:f,setOpenMobile:g,toggleSidebar:j},e[7]=r,e[8]=b,e[9]=f,e[10]=u,e[11]=m,e[12]=j,e[13]=p):p=e[13];const v=p;let h;e[14]!==t?(h=o.jsx($,{delayDuration:0,children:t}),e[14]=t,e[15]=h):h=e[15];let _;return e[16]!==v||e[17]!==h?(_=o.jsx(k.Provider,{value:v,children:h}),e[16]=v,e[17]=h,e[18]=_):_=e[18],_}function U(l){return!l}function le(l){const e=y.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":J,"--sidebar-width-icon":Q,...i},e[5]=i,e[6]=d):d=e[6];const r=d;let n;e[7]!==s?(n=N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let x;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==n?(x=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=n,e[13]=x):x=e[13],x}function re(l){const e=y.c(36);let t,s,a,i,d;e[0]!==l?({side:i,variant:d,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5]);const r=i===void 0?"left":i,n=d===void 0?"sidebar":d,{isMobile:x,state:f,openMobile:g,setOpenMobile:c}=D();if(x){let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_={"--sidebar-width":K},e[6]=_):_=e[6];let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsxs(F,{className:"sr-only",children:[o.jsx(L,{children:"Sidebar"}),o.jsx(q,{children:"Displays the mobile sidebar."})]}),e[7]=C):C=e[7];let M;e[8]!==t?(M=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=M):M=e[9];let I;e[10]!==r||e[11]!==M?(I=o.jsxs(G,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:_,side:r,children:[C,M]}),e[10]=r,e[11]=M,e[12]=I):I=e[12];let T;return e[13]!==g||e[14]!==a||e[15]!==c||e[16]!==I?(T=o.jsx(W,{open:g,onOpenChange:c,...a,children:I}),e[13]=g,e[14]=a,e[15]=c,e[16]=I,e[17]=T):T=e[17],T}const b=f==="expanded",S=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let u;e[18]!==S?(u=N("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",S),e[18]=S,e[19]=u):u=e[19];const w=b?void 0:"icon",j=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let m;e[20]!==s||e[21]!==j?(m=N("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",j,s),e[20]=s,e[21]=j,e[22]=m):m=e[22];let p;e[23]!==t?(p=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=p):p=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==p?(v=o.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:p}),e[25]=a,e[26]=m,e[27]=p,e[28]=v):v=e[28];let h;return e[29]!==r||e[30]!==f||e[31]!==u||e[32]!==w||e[33]!==v||e[34]!==n?(h=o.jsx("div",{className:u,"data-state":f,"data-collapsible":w,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:v}),e[29]=r,e[30]=f,e[31]=u,e[32]=w,e[33]=v,e[34]=n,e[35]=h):h=e[35],h}function ne(l){const e=y.c(18);let t,s,a;e[0]!==l?({className:t,onClick:s,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:i}=D();let d;e[4]!==t?(d=N("size-7",t),e[4]=t,e[5]=d):d=e[5];let r;e[6]!==s||e[7]!==i?(r=b=>{s?.(b),i()},e[6]=s,e[7]=i,e[8]=r):r=e[8];let n,x;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(H,{}),x=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=n,e[10]=x):(n=e[9],x=e[10]);let f;e[11]!==a||e[12]!==d||e[13]!==r?(f=o.jsx(z,{asChild:!0,children:o.jsxs(A,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:r,...a,children:[n,x]})}),e[11]=a,e[12]=d,e[13]=r,e[14]=f):f=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsxs(B,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(X)})]}),e[15]=g):g=e[15];let c;return e[16]!==f?(c=o.jsx($,{delayDuration:300,children:o.jsxs(E,{children:[f,g]})}),e[16]=f,e[17]=c):c=e[17],c}function X(l){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:l},l)}function oe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function de(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ce(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ue(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function fe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const Y=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 classic:[&_svg]:opacity-60 classic:hover:[&_svg]:opacity-100 compact:[&_svg:not([class*='text-'])]:text-muted-foreground compact:hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 classic:group-data-[state=collapsed]/sidebar:w-full! classic:group-data-[state=collapsed]/sidebar:aspect-square! classic:group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! classic:group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm compact:group-data-[state=collapsed]/sidebar:size-8! compact:group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function pe(l){const e=y.c(28);let t,s,a,i,d,r,n;e[0]!==l?({asChild:a,isActive:i,variant:d,size:r,tooltip:n,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d,e[6]=r,e[7]=n):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5],r=e[6],n=e[7]);const x=a===void 0?!1:a,f=i===void 0?!1:i,g=d===void 0?"default":d,c=r===void 0?"default":r,b=x?P:"button",{isMobile:S}=D();let u;e[8]!==t||e[9]!==c||e[10]!==g?(u=N(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=u):u=e[11];let w;e[12]!==b||e[13]!==f||e[14]!==s||e[15]!==c||e[16]!==u?(w=o.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":f,className:u,...s}),e[12]=b,e[13]=f,e[14]=s,e[15]=c,e[16]=u,e[17]=w):w=e[17];const j=w;if(!n)return j;if(typeof n=="string"){let h;e[18]!==n?(h={children:n},e[18]=n,e[19]=h):h=e[19],n=h}let m;e[20]!==j?(m=o.jsx(z,{asChild:!0,children:j}),e[20]=j,e[21]=m):m=e[21];let p;e[22]!==S||e[23]!==n?(p=o.jsx(B,{side:"right",align:"center",hidden:S,...n}),e[22]=S,e[23]=n,e[24]=p):p=e[24];let v;return e[25]!==m||e[26]!==p?(v=o.jsxs(E,{children:[m,p]}),e[25]=m,e[26]=p,e[27]=v):v=e[27],v}export{ie as S,le as a,oe as b,pe as c,ue as d,fe as e,de as f,ce as g,re as h,ne as i,D as u};
1
+ import{r as O,c as y,j as o,l as N,B as A,bd as P,aF as R}from"./index-B9-heAAa.js";import{i as H}from"./LayoutLeft-DEnYqvHT.js";import{u as V}from"./use-mobile-z5LlRP9d.js";import{b as W,c as F,S as L,d as q,a as G}from"./sheet-BCMwxEJt.js";import{b as $,T as z,a as B,c as E}from"./tooltip-DB_mQQ5y.js";const J="15rem",K="18rem",Q="4.5rem",k=O.createContext(null);function D(){const l=O.useContext(k);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ie(l){const e=y.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,d=s===void 0?!1:s,r=V(),[n,x]=O.useState(d),[f,g]=O.useState(!1),c=a!==void 0,b=c?a:n;let S;e[0]!==c||e[1]!==i?(S=C=>{c||x(C),i?.(C)},e[0]=c,e[1]=i,e[2]=S):S=e[2];const u=S;let w;e[3]!==r||e[4]!==b||e[5]!==u?(w=()=>{r?g(U):u(!b)},e[3]=r,e[4]=b,e[5]=u,e[6]=w):w=e[6];const j=w,m=b?"expanded":"collapsed";let p;e[7]!==r||e[8]!==b||e[9]!==f||e[10]!==u||e[11]!==m||e[12]!==j?(p={state:m,open:b,setOpen:u,isMobile:r,openMobile:f,setOpenMobile:g,toggleSidebar:j},e[7]=r,e[8]=b,e[9]=f,e[10]=u,e[11]=m,e[12]=j,e[13]=p):p=e[13];const v=p;let h;e[14]!==t?(h=o.jsx($,{delayDuration:0,children:t}),e[14]=t,e[15]=h):h=e[15];let _;return e[16]!==v||e[17]!==h?(_=o.jsx(k.Provider,{value:v,children:h}),e[16]=v,e[17]=h,e[18]=_):_=e[18],_}function U(l){return!l}function le(l){const e=y.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":J,"--sidebar-width-icon":Q,...i},e[5]=i,e[6]=d):d=e[6];const r=d;let n;e[7]!==s?(n=N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let x;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==n?(x=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=n,e[13]=x):x=e[13],x}function re(l){const e=y.c(36);let t,s,a,i,d;e[0]!==l?({side:i,variant:d,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5]);const r=i===void 0?"left":i,n=d===void 0?"sidebar":d,{isMobile:x,state:f,openMobile:g,setOpenMobile:c}=D();if(x){let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_={"--sidebar-width":K},e[6]=_):_=e[6];let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsxs(F,{className:"sr-only",children:[o.jsx(L,{children:"Sidebar"}),o.jsx(q,{children:"Displays the mobile sidebar."})]}),e[7]=C):C=e[7];let M;e[8]!==t?(M=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=M):M=e[9];let I;e[10]!==r||e[11]!==M?(I=o.jsxs(G,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:_,side:r,children:[C,M]}),e[10]=r,e[11]=M,e[12]=I):I=e[12];let T;return e[13]!==g||e[14]!==a||e[15]!==c||e[16]!==I?(T=o.jsx(W,{open:g,onOpenChange:c,...a,children:I}),e[13]=g,e[14]=a,e[15]=c,e[16]=I,e[17]=T):T=e[17],T}const b=f==="expanded",S=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let u;e[18]!==S?(u=N("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",S),e[18]=S,e[19]=u):u=e[19];const w=b?void 0:"icon",j=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let m;e[20]!==s||e[21]!==j?(m=N("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",j,s),e[20]=s,e[21]=j,e[22]=m):m=e[22];let p;e[23]!==t?(p=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=p):p=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==p?(v=o.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:p}),e[25]=a,e[26]=m,e[27]=p,e[28]=v):v=e[28];let h;return e[29]!==r||e[30]!==f||e[31]!==u||e[32]!==w||e[33]!==v||e[34]!==n?(h=o.jsx("div",{className:u,"data-state":f,"data-collapsible":w,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:v}),e[29]=r,e[30]=f,e[31]=u,e[32]=w,e[33]=v,e[34]=n,e[35]=h):h=e[35],h}function ne(l){const e=y.c(18);let t,s,a;e[0]!==l?({className:t,onClick:s,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:i}=D();let d;e[4]!==t?(d=N("size-7",t),e[4]=t,e[5]=d):d=e[5];let r;e[6]!==s||e[7]!==i?(r=b=>{s?.(b),i()},e[6]=s,e[7]=i,e[8]=r):r=e[8];let n,x;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(H,{}),x=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=n,e[10]=x):(n=e[9],x=e[10]);let f;e[11]!==a||e[12]!==d||e[13]!==r?(f=o.jsx(z,{asChild:!0,children:o.jsxs(A,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:r,...a,children:[n,x]})}),e[11]=a,e[12]=d,e[13]=r,e[14]=f):f=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsxs(B,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(X)})]}),e[15]=g):g=e[15];let c;return e[16]!==f?(c=o.jsx($,{delayDuration:300,children:o.jsxs(E,{children:[f,g]})}),e[16]=f,e[17]=c):c=e[17],c}function X(l){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:l},l)}function oe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function de(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ce(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ue(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function fe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const Y=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 classic:[&_svg]:opacity-60 classic:hover:[&_svg]:opacity-100 compact:[&_svg:not([class*='text-'])]:text-muted-foreground compact:hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 classic:group-data-[state=collapsed]/sidebar:w-full! classic:group-data-[state=collapsed]/sidebar:aspect-square! classic:group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! classic:group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm compact:group-data-[state=collapsed]/sidebar:size-8! compact:group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function pe(l){const e=y.c(28);let t,s,a,i,d,r,n;e[0]!==l?({asChild:a,isActive:i,variant:d,size:r,tooltip:n,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d,e[6]=r,e[7]=n):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5],r=e[6],n=e[7]);const x=a===void 0?!1:a,f=i===void 0?!1:i,g=d===void 0?"default":d,c=r===void 0?"default":r,b=x?P:"button",{isMobile:S}=D();let u;e[8]!==t||e[9]!==c||e[10]!==g?(u=N(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=u):u=e[11];let w;e[12]!==b||e[13]!==f||e[14]!==s||e[15]!==c||e[16]!==u?(w=o.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":f,className:u,...s}),e[12]=b,e[13]=f,e[14]=s,e[15]=c,e[16]=u,e[17]=w):w=e[17];const j=w;if(!n)return j;if(typeof n=="string"){let h;e[18]!==n?(h={children:n},e[18]=n,e[19]=h):h=e[19],n=h}let m;e[20]!==j?(m=o.jsx(z,{asChild:!0,children:j}),e[20]=j,e[21]=m):m=e[21];let p;e[22]!==S||e[23]!==n?(p=o.jsx(B,{side:"right",align:"center",hidden:S,...n}),e[22]=S,e[23]=n,e[24]=p):p=e[24];let v;return e[25]!==m||e[26]!==p?(v=o.jsxs(E,{children:[m,p]}),e[25]=m,e[26]=p,e[27]=v):v=e[27],v}export{ie as S,le as a,oe as b,pe as c,ue as d,fe as e,de as f,ce as g,re as h,ne as i,D as u};
@@ -1 +1 @@
1
- import{c as E,j as s,r as K,aP as u,l as M,B as T}from"./index-LuQPyfHg.js";import{b as R,D as _,d as q,i as A}from"./dialog-HZ9qQm76.js";import{i as $}from"./X-Bg-qbBOB.js";import{i as G}from"./Zap-C63eteO6.js";import{M as H}from"./markdown-B7dRWvN8.js";import{F as J}from"./file-preview-C1g6pPFA.js";import{F as Q}from"./file-type-icon-BZYncmwg.js";import{i as V,c as W,n as X}from"./use-org-fs-OA7i6aZv.js";import{p as Y,b as c}from"./location-oTTXFrSF.js";import{p as Z}from"./skill-md-ChfVs4uF.js";function ee(n){const e=E.c(18),{skillPath:m,onClose:a,variant:t}=n,i=Y(m),{volume:r,dirPath:o}=i,F=V(),U=F(r??"",`${o}/SKILL.md`),d=W(U),D=X(r??"",o);let g;e[0]!==o?(g=c(o),e[0]=o,e[1]=g):g=e[1];const B=g;let j;e[2]!==d.data?(j=d.data?Z(d.data):null,e[2]=d.data,e[3]=j):j=e[3];const b=j,v=te;let N;e[4]===Symbol.for("react.memo_cache_sentinel")?(N=(l,h)=>v(l.path)?-1:v(h.path)?1:c(l.path).localeCompare(c(h.path)),e[4]=N):N=e[4];const L=(D.data??[]).filter(se).sort(N),[P,I]=K.useState(null),x=P===null?null:L.find(l=>l.path===P)??null,k=b?.name??B;let w;e[5]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:s.jsx(G,{size:18})}),e[5]=w):w=e[5];let f;e[6]!==k||e[7]!==t?(f=t==="dialog"?s.jsx(q,{className:"flex-1 truncate text-base font-medium text-foreground",children:k}):s.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:k}),e[6]=k,e[7]=t,e[8]=f):f=e[8];let p;e[9]!==a||e[10]!==t?(p=t==="dialog"?s.jsx(A,{asChild:!0,children:s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:s.jsx($,{size:16})})}):s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:a,children:s.jsx($,{size:16})}),e[9]=a,e[10]=t,e[11]=p):p=e[11];let y;e[12]!==f||e[13]!==p?(y=s.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[w,f,p]}),e[12]=f,e[13]=p,e[14]=y):y=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=C):C=e[15];const O="relative flex min-w-0 flex-1 flex-col overflow-y-auto",z=x?s.jsx(J,{file:{key:x.path,filename:c(x.path),size:x.size,downloadUrl:F(r??"",x.path)}}):d.isPending?s.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[s.jsx(u,{className:"h-4 w-1/3"}),s.jsx(u,{className:"h-3 w-full"}),s.jsx(u,{className:"h-3 w-5/6"}),s.jsx(u,{className:"h-3 w-2/3"})]}):d.isError||!b?s.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),s.jsx("p",{className:"text-base text-muted-foreground",children:b.description??"Claude Code skill"})]}),s.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:s.jsx(H,{id:`skill-preview-${m}`,text:b.body})})]});let S;return e[16]!==z?(S=s.jsx("div",{className:O,children:z}),e[16]=z,e[17]=S):S=e[17],s.jsxs(s.Fragment,{children:[y,s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[C,D.isPending?s.jsx(u,{className:"mx-2 h-4 w-24"}):L.map(l=>{const h=v(l.path)?x===null:P===l.path;return s.jsxs("button",{type:"button",onClick:()=>I(v(l.path)?null:l.path),className:M("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",h?"bg-background shadow-sm":"hover:bg-muted/60"),children:[s.jsx(Q,{filename:c(l.path),className:"h-6 w-5 shrink-0"}),s.jsx("span",{className:M("truncate text-sm",h?"text-foreground":"text-muted-foreground"),children:c(l.path)})]},l.path)})]}),S]})]})}function se(n){return n.kind==="file"}function te(n){return c(n)==="SKILL.md"}function fe(n){const e=E.c(8),{skillPath:m,onClose:a}=n;let t;e[0]!==a?(t=o=>{o||a()},e[0]=a,e[1]=t):t=e[1];let i;e[2]!==a||e[3]!==m?(i=s.jsx(R,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:s.jsx(ee,{skillPath:m,onClose:a,variant:"dialog"})}),e[2]=a,e[3]=m,e[4]=i):i=e[4];let r;return e[5]!==t||e[6]!==i?(r=s.jsx(_,{open:!0,onOpenChange:t,children:i}),e[5]=t,e[6]=i,e[7]=r):r=e[7],r}export{fe as S};
1
+ import{c as E,j as s,r as K,aP as u,l as M,B as T}from"./index-B9-heAAa.js";import{b as R,D as _,d as q,i as A}from"./dialog-BG4c8Ew3.js";import{i as $}from"./X-CTlWdd97.js";import{i as G}from"./Zap-XRJ8YEEc.js";import{M as H}from"./markdown-BF4hkzaL.js";import{F as J}from"./file-preview-C81z-6bM.js";import{F as Q}from"./file-type-icon-DpJWy5M2.js";import{i as V,c as W,n as X}from"./use-org-fs-CP-M8wtZ.js";import{p as Y,b as c}from"./location-oTTXFrSF.js";import{p as Z}from"./skill-md-ChfVs4uF.js";function ee(n){const e=E.c(18),{skillPath:m,onClose:a,variant:t}=n,i=Y(m),{volume:r,dirPath:o}=i,F=V(),U=F(r??"",`${o}/SKILL.md`),d=W(U),D=X(r??"",o);let g;e[0]!==o?(g=c(o),e[0]=o,e[1]=g):g=e[1];const B=g;let j;e[2]!==d.data?(j=d.data?Z(d.data):null,e[2]=d.data,e[3]=j):j=e[3];const b=j,v=te;let N;e[4]===Symbol.for("react.memo_cache_sentinel")?(N=(l,h)=>v(l.path)?-1:v(h.path)?1:c(l.path).localeCompare(c(h.path)),e[4]=N):N=e[4];const L=(D.data??[]).filter(se).sort(N),[P,I]=K.useState(null),x=P===null?null:L.find(l=>l.path===P)??null,k=b?.name??B;let w;e[5]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:s.jsx(G,{size:18})}),e[5]=w):w=e[5];let f;e[6]!==k||e[7]!==t?(f=t==="dialog"?s.jsx(q,{className:"flex-1 truncate text-base font-medium text-foreground",children:k}):s.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:k}),e[6]=k,e[7]=t,e[8]=f):f=e[8];let p;e[9]!==a||e[10]!==t?(p=t==="dialog"?s.jsx(A,{asChild:!0,children:s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:s.jsx($,{size:16})})}):s.jsx(T,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:a,children:s.jsx($,{size:16})}),e[9]=a,e[10]=t,e[11]=p):p=e[11];let y;e[12]!==f||e[13]!==p?(y=s.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[w,f,p]}),e[12]=f,e[13]=p,e[14]=y):y=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=C):C=e[15];const O="relative flex min-w-0 flex-1 flex-col overflow-y-auto",z=x?s.jsx(J,{file:{key:x.path,filename:c(x.path),size:x.size,downloadUrl:F(r??"",x.path)}}):d.isPending?s.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[s.jsx(u,{className:"h-4 w-1/3"}),s.jsx(u,{className:"h-3 w-full"}),s.jsx(u,{className:"h-3 w-5/6"}),s.jsx(u,{className:"h-3 w-2/3"})]}):d.isError||!b?s.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),s.jsx("p",{className:"text-base text-muted-foreground",children:b.description??"Claude Code skill"})]}),s.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:s.jsx(H,{id:`skill-preview-${m}`,text:b.body})})]});let S;return e[16]!==z?(S=s.jsx("div",{className:O,children:z}),e[16]=z,e[17]=S):S=e[17],s.jsxs(s.Fragment,{children:[y,s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[C,D.isPending?s.jsx(u,{className:"mx-2 h-4 w-24"}):L.map(l=>{const h=v(l.path)?x===null:P===l.path;return s.jsxs("button",{type:"button",onClick:()=>I(v(l.path)?null:l.path),className:M("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",h?"bg-background shadow-sm":"hover:bg-muted/60"),children:[s.jsx(Q,{filename:c(l.path),className:"h-6 w-5 shrink-0"}),s.jsx("span",{className:M("truncate text-sm",h?"text-foreground":"text-muted-foreground"),children:c(l.path)})]},l.path)})]}),S]})]})}function se(n){return n.kind==="file"}function te(n){return c(n)==="SKILL.md"}function fe(n){const e=E.c(8),{skillPath:m,onClose:a}=n;let t;e[0]!==a?(t=o=>{o||a()},e[0]=a,e[1]=t):t=e[1];let i;e[2]!==a||e[3]!==m?(i=s.jsx(R,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:s.jsx(ee,{skillPath:m,onClose:a,variant:"dialog"})}),e[2]=a,e[3]=m,e[4]=i):i=e[4];let r;return e[5]!==t||e[6]!==i?(r=s.jsx(_,{open:!0,onOpenChange:t,children:i}),e[5]=t,e[6]=i,e[7]=r):r=e[7],r}export{fe as S};
@@ -1 +1 @@
1
- import{Z as ae,b as te,a0 as se,o as ce,r as T,j as t,B as G,n as R,aP as me,T as de,t as D,aj as pe,c as ie,l as ue,I as ge,F as fe,H as he,G as xe,K as Q,eL as je}from"./index-LuQPyfHg.js";import{i as ke}from"./DotsVertical-CBmcX5ZQ.js";import{a as ve}from"./Package-CX9rDgp4.js";import{s as ye}from"./Trash01-CePc620H.js";import{i as Se}from"./Upload01-DX6JXeV7.js";import{i as le}from"./Zap-C63eteO6.js";import{S as be}from"./search-input-CBDtuFaQ.js";import{f as we,e as Ce,b as De,A as Ne,a as Pe,d as Ee,c as Ae,g as Te}from"./alert-dialog-MFqJ1LQJ.js";import{E as Z}from"./empty-state-BSFJHfgC.js";import{C as Me}from"./collection-tabs-BW0ALmEv.js";import{F as Ie}from"./folder-icon-DvyCwyeo.js";import{p as Oe,h as ze,q as Fe}from"./use-org-fs-OA7i6aZv.js";import{H as J,d as $e}from"./location-oTTXFrSF.js";import{S as Le}from"./skill-preview-CDRAH_WW.js";import{p as Re}from"./skill-md-ChfVs4uF.js";import"./SearchMd-DqAc-aF0.js";import"./badge-D82o8bXv.js";import"./Eye-NHkb_0Hv.js";import"./dialog-HZ9qQm76.js";import"./X-Bg-qbBOB.js";import"./markdown-B7dRWvN8.js";import"./Copy01-BXOyEXn_.js";import"./Download01-BqdbVKkx.js";import"./ZoomOut-B8Fl4ZUs.js";import"./org-file-open-context-CgoXVQJH.js";import"./use-mobile-YjO30zbo.js";import"./use-panel-navigate-lA5Vutgx.js";import"./thread-route-mS20Kc2d.js";import"./use-project-scope-BQji3uMT.js";import"./use-virtual-mcp-DNJANJ1O.js";import"./use-mcp-client-Bd-tc7BB.js";import"./auth-BuR8_3Rx.js";import"./github-repo-BknN0SVI.js";import"./file-preview-C1g6pPFA.js";import"./utils-DfrVSNtD.js";import"./Image01-DRwEr3Il.js";import"./editor-BeNEyFY1.js";import"./file-type-icon-BZYncmwg.js";const V=200,_e=new Set(["node_modules","__pycache__"]);function U(r){const[,...e]=r.webkitRelativePath.split("/");return e.length>0?e.join("/"):r.name}function Be(r){return U(r).split("/").every(e=>!e.startsWith(".")&&!_e.has(e))}function Ke(r){return r.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function He(r,e){const i=new Map;for(const l of r){const o=U(l).split("/");o.pop();const c=["skills",e,...o].join("/");i.set(c,[...i.get(c)??[],l])}return i}async function qe(r,e){const l=(await Promise.allSettled([...r].map(([o,c])=>e({dir:o,files:c})))).find(o=>o.status==="rejected");if(l)throw l.reason}function Qe(r,e){const i=Re(e),l=`skills/${r}`;return{id:`home/${l}`,name:i.name??r,description:i.description,source:"home",volume:J,path:l,sandboxPath:`org/${J}/${l}`}}const _="*";function B(r){return r.volume==="home"}function re(r,e){const i=r.indexOf(":");return i===-1?{label:e,glyph:le}:{label:r.slice(i+1),glyph:r.startsWith("repo:")?pe:ve}}function Ge(r){const e=ie.c(48),{entry:i,pending:l,onOpen:o,onDelete:c}=r,a=te(),{org:S}=se();let m;e[0]!==i.source||e[1]!==S.name?(m=re(i.source,S.name),e[0]=i.source,e[1]=S.name,e[2]=m):m=e[2];const{label:M,glyph:I}=m;let O;e[3]!==i?(O=B(i),e[3]=i,e[4]=O):O=e[4];const F=O,z=l?"opacity-60":"hover:bg-muted/50";let p;e[5]!==z?(p=ue("relative transition-colors group overflow-hidden flex flex-col h-full",z),e[5]=z,e[6]=p):p=e[6];let f;e[7]!==i.name||e[8]!==o||e[9]!==l?(f=!l&&t.jsx("button",{type:"button",onClick:o,className:"absolute inset-0 z-0","aria-label":i.name}),e[7]=i.name,e[8]=o,e[9]=l,e[10]=f):f=e[10];const b=F?"default":"system",N=!F;let w;e[11]!==I||e[12]!==b||e[13]!==N?(w=t.jsx(Ie,{glyph:I,tone:b,readOnly:N,className:"size-8 shrink-0"}),e[11]=I,e[12]=b,e[13]=N,e[14]=w):w=e[14];let h;e[15]!==c||e[16]!==a?(h=c&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(ge,{children:[t.jsx(fe,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ke,{size:16})})}),t.jsx(he,{align:"end",children:t.jsxs(xe,{variant:"destructive",onClick:K=>{K.stopPropagation(),c()},children:[t.jsx(ye,{size:16}),a("settings.skills.deleteButton")]})})]})}),e[15]=c,e[16]=a,e[17]=h):h=e[17];let x;e[18]!==w||e[19]!==h?(x=t.jsxs("div",{className:"flex items-start justify-between",children:[w,h]}),e[18]=w,e[19]=h,e[20]=x):x=e[20];let j;e[21]!==i.name?(j=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:i.name}),e[21]=i.name,e[22]=j):j=e[22];let C;e[23]!==i.description||e[24]!==a?(C=i.description||a("settings.skills.noDescription"),e[23]=i.description,e[24]=a,e[25]=C):C=e[25];let k;e[26]!==C?(k=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:C}),e[26]=C,e[27]=k):k=e[27];let d;e[28]!==j||e[29]!==k?(d=t.jsxs("div",{className:"flex flex-col gap-1",children:[j,k]}),e[28]=j,e[29]=k,e[30]=d):d=e[30];let v;e[31]!==x||e[32]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[x,d]}),e[31]=x,e[32]=d,e[33]=v):v=e[33];let u;e[34]!==M||e[35]!==l||e[36]!==a?(u=l?a("settings.skills.importing"):M,e[34]=M,e[35]=l,e[36]=a,e[37]=u):u=e[37];let y;e[38]!==u?(y=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:u})})}),e[38]=u,e[39]=y):y=e[39];let g;e[40]!==v||e[41]!==y?(g=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[v,y]}),e[40]=v,e[41]=y,e[42]=g):g=e[42];let P;return e[43]!==l||e[44]!==g||e[45]!==p||e[46]!==f?(P=t.jsxs(je,{"aria-busy":l,className:p,children:[f,g]}),e[43]=l,e[44]=g,e[45]=p,e[46]=f,e[47]=P):P=e[47],P}function ee(r){const e=ie.c(2),{children:i}=r;let l;return e[0]!==i?(l=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:i}),e[0]=i,e[1]=l):l=e[1],l}function Tt(){const r=ae(),e=te(),{org:i}=se(),l=Oe(),{remove:o,upload:c}=ze("home"),a=ce(),S=T.useRef(null),[m,M]=T.useState(""),[I,O]=T.useState(_),[F,z]=T.useState(!1),[p,f]=T.useState(null),[b,N]=T.useState(null),[w,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:Q.slashSkills(i.id)}),a.invalidateQueries({queryKey:Q.orgFsSkills(i.id)})},j=s=>a.setQueryData(Q.slashSkills(i.id),n=>s(n??[]));async function C(s){const n=[...s??[]];if(S.current&&(S.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){D.error(e("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",L=n.filter(Be),W=L.find(A=>U(A)==="SKILL.md");if(!W){D.error(e("settings.skills.importMissingSkillMd"));return}if(L.length>V){D.error(e("settings.skills.importTooManyFiles",{count:String(L.length),max:String(V)}));return}const $=Ke(q),X=`skills/${$}`;let Y=!1;z(!0);try{if(await Fe(i.slug,"home",X)){D.error(e("settings.skills.importSlugTaken",{slug:$}));return}Y=!0;const A=Qe($,await W.text());j(oe=>[A,...oe]),h(A.id),await qe(He(L,$),c.mutateAsync),D.success(e("settings.skills.importSuccess",{name:$}))}catch(A){Y&&await o.mutateAsync(X).catch(()=>{}),D.error(A instanceof Error?A.message:e("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=m.toLowerCase(),d=(l.data??[]).filter(s=>s.name.toLowerCase().includes(k)||(s.description??"").toLowerCase().includes(k)).sort((s,n)=>Number(B(n))-Number(B(s))||s.name.localeCompare(n.name)),v=new Set((l.data??[]).map(s=>s.source)),u=new Map;for(const s of d)u.set(s.source,(u.get(s.source)??0)+1);const y=[{id:_,label:e("settings.skills.filterAll"),count:d.length},...[...v].map(s=>({id:s,label:re(s,i.name).label,count:u.get(s)??0}))],g=v.has(I)?I:_,P=g===_?d:d.filter(s=>s.source===g),K=s=>f($e(s.volume,s.path)),ne=async()=>{if(!b)return;const{id:s,path:n}=b;N(null),j(E=>E.filter(q=>q.id!==s));try{await o.mutateAsync(n),D.success(e("settings.skills.deleteSuccess"))}catch(E){D.error(E instanceof Error?E.message:e("settings.skills.deleteError"))}finally{x()}},H=t.jsxs(G,{size:"sm",disabled:F,onClick:()=>S.current?.click(),children:[t.jsx(Se,{size:14}),e(F?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(R,{children:[t.jsx(R.Content,{children:t.jsx(R.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(R.Title,{actions:r&&H,children:e("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(be,{value:m,onChange:M,placeholder:e("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:s=>{s.key==="Escape"&&(M(""),s.target.blur())}}),!r&&H,t.jsx("input",{ref:S,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:s=>{C(s.target.files)}})]}),y.length>2&&t.jsx(Me,{placement:"page",tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(s,n)=>t.jsx(me,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(de,{size:48,className:"text-muted-foreground"}),title:e("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:e("settings.skills.errorDescription"),actions:t.jsx(G,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:e("settings.skills.retry")})})}):P.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:e(m?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:m?e("settings.skills.noResultsDescription",{search:m}):e("settings.skills.emptyDescription"),actions:!r&&!m&&H})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:P.map(s=>{const n=s.id===w;return t.jsx(Ge,{entry:s,pending:n,onOpen:()=>K(s),onDelete:B(s)&&!n?()=>N(s):void 0},s.id)})})})]})})}),p&&t.jsx(Le,{skillPath:p,onClose:()=>f(null)},p),t.jsx(we,{open:b!==null,onOpenChange:s=>!s&&N(null),children:t.jsxs(Ce,{children:[t.jsxs(De,{children:[t.jsx(Ne,{children:e("settings.skills.deleteDialogTitle")}),t.jsx(Pe,{children:e("settings.skills.deleteDialogDescription",{name:b?.name??""})})]}),t.jsxs(Ee,{children:[t.jsx(Ae,{children:e("settings.skills.cancel")}),t.jsx(Te,{onClick:ne,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:e("settings.skills.deleteButton")})]})]})})]})}export{Tt as default};
1
+ import{Z as ae,b as te,a0 as se,o as ce,r as T,j as t,B as G,n as R,aP as me,T as de,t as D,aj as pe,c as ie,l as ue,I as ge,F as fe,H as he,G as xe,K as Q,eL as je}from"./index-B9-heAAa.js";import{i as ke}from"./DotsVertical-CD4T7H6_.js";import{a as ve}from"./Package-BYLXGnrw.js";import{s as ye}from"./Trash01-Desmqajq.js";import{i as Se}from"./Upload01-DelvmgfV.js";import{i as le}from"./Zap-XRJ8YEEc.js";import{S as be}from"./search-input-Ck0252jm.js";import{f as we,e as Ce,b as De,A as Ne,a as Pe,d as Ee,c as Ae,g as Te}from"./alert-dialog-DqO-3R76.js";import{E as Z}from"./empty-state-BI6nLRJ9.js";import{C as Me}from"./collection-tabs-anNBFHFb.js";import{F as Ie}from"./folder-icon-Bm639N0Y.js";import{p as Oe,h as ze,q as Fe}from"./use-org-fs-CP-M8wtZ.js";import{H as J,d as $e}from"./location-oTTXFrSF.js";import{S as Le}from"./skill-preview-B9Fe89d7.js";import{p as Re}from"./skill-md-ChfVs4uF.js";import"./SearchMd-DRk1Er2c.js";import"./badge-BNCSp2s3.js";import"./Eye-CI6aKDnd.js";import"./dialog-BG4c8Ew3.js";import"./X-CTlWdd97.js";import"./markdown-BF4hkzaL.js";import"./Copy01-DqrZOvVi.js";import"./Download01-BRqjontI.js";import"./ZoomOut-DBByf2mh.js";import"./org-file-open-context-BJOB9JXS.js";import"./use-mobile-z5LlRP9d.js";import"./use-panel-navigate-C1nn8JtC.js";import"./thread-route-MBCO8DTC.js";import"./use-project-scope-BC5vNotn.js";import"./use-virtual-mcp-fKIjaLUZ.js";import"./use-mcp-client-QkBFbC3f.js";import"./auth-CXaWU5n-.js";import"./github-repo-BknN0SVI.js";import"./file-preview-C81z-6bM.js";import"./utils-DSkbGbRW.js";import"./Image01-B6W5URkI.js";import"./editor-D6niHdLA.js";import"./file-type-icon-DpJWy5M2.js";const V=200,_e=new Set(["node_modules","__pycache__"]);function U(r){const[,...e]=r.webkitRelativePath.split("/");return e.length>0?e.join("/"):r.name}function Be(r){return U(r).split("/").every(e=>!e.startsWith(".")&&!_e.has(e))}function Ke(r){return r.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function He(r,e){const i=new Map;for(const l of r){const o=U(l).split("/");o.pop();const c=["skills",e,...o].join("/");i.set(c,[...i.get(c)??[],l])}return i}async function qe(r,e){const l=(await Promise.allSettled([...r].map(([o,c])=>e({dir:o,files:c})))).find(o=>o.status==="rejected");if(l)throw l.reason}function Qe(r,e){const i=Re(e),l=`skills/${r}`;return{id:`home/${l}`,name:i.name??r,description:i.description,source:"home",volume:J,path:l,sandboxPath:`org/${J}/${l}`}}const _="*";function B(r){return r.volume==="home"}function re(r,e){const i=r.indexOf(":");return i===-1?{label:e,glyph:le}:{label:r.slice(i+1),glyph:r.startsWith("repo:")?pe:ve}}function Ge(r){const e=ie.c(48),{entry:i,pending:l,onOpen:o,onDelete:c}=r,a=te(),{org:S}=se();let m;e[0]!==i.source||e[1]!==S.name?(m=re(i.source,S.name),e[0]=i.source,e[1]=S.name,e[2]=m):m=e[2];const{label:M,glyph:I}=m;let O;e[3]!==i?(O=B(i),e[3]=i,e[4]=O):O=e[4];const F=O,z=l?"opacity-60":"hover:bg-muted/50";let p;e[5]!==z?(p=ue("relative transition-colors group overflow-hidden flex flex-col h-full",z),e[5]=z,e[6]=p):p=e[6];let f;e[7]!==i.name||e[8]!==o||e[9]!==l?(f=!l&&t.jsx("button",{type:"button",onClick:o,className:"absolute inset-0 z-0","aria-label":i.name}),e[7]=i.name,e[8]=o,e[9]=l,e[10]=f):f=e[10];const b=F?"default":"system",N=!F;let w;e[11]!==I||e[12]!==b||e[13]!==N?(w=t.jsx(Ie,{glyph:I,tone:b,readOnly:N,className:"size-8 shrink-0"}),e[11]=I,e[12]=b,e[13]=N,e[14]=w):w=e[14];let h;e[15]!==c||e[16]!==a?(h=c&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(ge,{children:[t.jsx(fe,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ke,{size:16})})}),t.jsx(he,{align:"end",children:t.jsxs(xe,{variant:"destructive",onClick:K=>{K.stopPropagation(),c()},children:[t.jsx(ye,{size:16}),a("settings.skills.deleteButton")]})})]})}),e[15]=c,e[16]=a,e[17]=h):h=e[17];let x;e[18]!==w||e[19]!==h?(x=t.jsxs("div",{className:"flex items-start justify-between",children:[w,h]}),e[18]=w,e[19]=h,e[20]=x):x=e[20];let j;e[21]!==i.name?(j=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:i.name}),e[21]=i.name,e[22]=j):j=e[22];let C;e[23]!==i.description||e[24]!==a?(C=i.description||a("settings.skills.noDescription"),e[23]=i.description,e[24]=a,e[25]=C):C=e[25];let k;e[26]!==C?(k=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:C}),e[26]=C,e[27]=k):k=e[27];let d;e[28]!==j||e[29]!==k?(d=t.jsxs("div",{className:"flex flex-col gap-1",children:[j,k]}),e[28]=j,e[29]=k,e[30]=d):d=e[30];let v;e[31]!==x||e[32]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[x,d]}),e[31]=x,e[32]=d,e[33]=v):v=e[33];let u;e[34]!==M||e[35]!==l||e[36]!==a?(u=l?a("settings.skills.importing"):M,e[34]=M,e[35]=l,e[36]=a,e[37]=u):u=e[37];let y;e[38]!==u?(y=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:u})})}),e[38]=u,e[39]=y):y=e[39];let g;e[40]!==v||e[41]!==y?(g=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[v,y]}),e[40]=v,e[41]=y,e[42]=g):g=e[42];let P;return e[43]!==l||e[44]!==g||e[45]!==p||e[46]!==f?(P=t.jsxs(je,{"aria-busy":l,className:p,children:[f,g]}),e[43]=l,e[44]=g,e[45]=p,e[46]=f,e[47]=P):P=e[47],P}function ee(r){const e=ie.c(2),{children:i}=r;let l;return e[0]!==i?(l=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:i}),e[0]=i,e[1]=l):l=e[1],l}function Tt(){const r=ae(),e=te(),{org:i}=se(),l=Oe(),{remove:o,upload:c}=ze("home"),a=ce(),S=T.useRef(null),[m,M]=T.useState(""),[I,O]=T.useState(_),[F,z]=T.useState(!1),[p,f]=T.useState(null),[b,N]=T.useState(null),[w,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:Q.slashSkills(i.id)}),a.invalidateQueries({queryKey:Q.orgFsSkills(i.id)})},j=s=>a.setQueryData(Q.slashSkills(i.id),n=>s(n??[]));async function C(s){const n=[...s??[]];if(S.current&&(S.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){D.error(e("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",L=n.filter(Be),W=L.find(A=>U(A)==="SKILL.md");if(!W){D.error(e("settings.skills.importMissingSkillMd"));return}if(L.length>V){D.error(e("settings.skills.importTooManyFiles",{count:String(L.length),max:String(V)}));return}const $=Ke(q),X=`skills/${$}`;let Y=!1;z(!0);try{if(await Fe(i.slug,"home",X)){D.error(e("settings.skills.importSlugTaken",{slug:$}));return}Y=!0;const A=Qe($,await W.text());j(oe=>[A,...oe]),h(A.id),await qe(He(L,$),c.mutateAsync),D.success(e("settings.skills.importSuccess",{name:$}))}catch(A){Y&&await o.mutateAsync(X).catch(()=>{}),D.error(A instanceof Error?A.message:e("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=m.toLowerCase(),d=(l.data??[]).filter(s=>s.name.toLowerCase().includes(k)||(s.description??"").toLowerCase().includes(k)).sort((s,n)=>Number(B(n))-Number(B(s))||s.name.localeCompare(n.name)),v=new Set((l.data??[]).map(s=>s.source)),u=new Map;for(const s of d)u.set(s.source,(u.get(s.source)??0)+1);const y=[{id:_,label:e("settings.skills.filterAll"),count:d.length},...[...v].map(s=>({id:s,label:re(s,i.name).label,count:u.get(s)??0}))],g=v.has(I)?I:_,P=g===_?d:d.filter(s=>s.source===g),K=s=>f($e(s.volume,s.path)),ne=async()=>{if(!b)return;const{id:s,path:n}=b;N(null),j(E=>E.filter(q=>q.id!==s));try{await o.mutateAsync(n),D.success(e("settings.skills.deleteSuccess"))}catch(E){D.error(E instanceof Error?E.message:e("settings.skills.deleteError"))}finally{x()}},H=t.jsxs(G,{size:"sm",disabled:F,onClick:()=>S.current?.click(),children:[t.jsx(Se,{size:14}),e(F?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(R,{children:[t.jsx(R.Content,{children:t.jsx(R.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(R.Title,{actions:r&&H,children:e("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(be,{value:m,onChange:M,placeholder:e("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:s=>{s.key==="Escape"&&(M(""),s.target.blur())}}),!r&&H,t.jsx("input",{ref:S,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:s=>{C(s.target.files)}})]}),y.length>2&&t.jsx(Me,{placement:"page",tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(s,n)=>t.jsx(me,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(de,{size:48,className:"text-muted-foreground"}),title:e("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:e("settings.skills.errorDescription"),actions:t.jsx(G,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:e("settings.skills.retry")})})}):P.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:e(m?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:m?e("settings.skills.noResultsDescription",{search:m}):e("settings.skills.emptyDescription"),actions:!r&&!m&&H})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:P.map(s=>{const n=s.id===w;return t.jsx(Ge,{entry:s,pending:n,onOpen:()=>K(s),onDelete:B(s)&&!n?()=>N(s):void 0},s.id)})})})]})})}),p&&t.jsx(Le,{skillPath:p,onClose:()=>f(null)},p),t.jsx(we,{open:b!==null,onOpenChange:s=>!s&&N(null),children:t.jsxs(Ce,{children:[t.jsxs(De,{children:[t.jsx(Ne,{children:e("settings.skills.deleteDialogTitle")}),t.jsx(Pe,{children:e("settings.skills.deleteDialogDescription",{name:b?.name??""})})]}),t.jsxs(Ee,{children:[t.jsx(Ae,{children:e("settings.skills.cancel")}),t.jsx(Te,{onClick:ne,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:e("settings.skills.deleteButton")})]})]})})]})}export{Tt as default};
@@ -1 +1 @@
1
- import{b as B,a0 as L,r as v,j as e,n as x,e_ as k,dW as E,dX as y,dY as a,fx as D,B as m,q as C,t as c,c as z}from"./index-LuQPyfHg.js";import{D as T}from"./domain-settings-BvNgL15z.js";import{f as O,e as R,b as q,A as F,d as M,c as U,g as $}from"./alert-dialog-MFqJ1LQJ.js";import{I as d}from"./input-9TmKngWX.js";import{S as H}from"./switch-PUAtlc1q.js";import{a as W,b as X,c as Y,d as G}from"./use-org-sso-DKeFIwB6.js";import{s as J}from"./Trash01-CePc620H.js";import{R as K}from"./require-capability-BmfInhOP.js";import"./badge-D82o8bXv.js";import"./select-CE4utxRu.js";import"./index-Zd0dTvge.js";import"./ChevronUp-BipIqZKN.js";import"./access-gate-Cy6tml22.js";import"./capability-load-error-QZCwPJn0.js";function Q(){const s=B(),{org:o}=L(),{data:f,isLoading:I}=W(o.id,o.slug),h=X(o.id,o.slug),S=Y(o.id,o.slug),b=G(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[P,j]=v.useState(!1),u=f?.configured&&f.config,n=f?.config,_=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},N=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!u&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(u?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Container,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),I?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!g&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(H,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(J,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:_,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&u?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:N,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:P,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(q,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(M,{children:[e.jsx(U,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx($,{onClick:w,disabled:S.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function ue(){const s=z.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(K,{capability:"org:manage",area:"security",children:e.jsx(Q,{})}),s[0]=o):o=s[0],o}export{ue as default};
1
+ import{b as B,a0 as L,r as v,j as e,n as x,e_ as k,dW as E,dX as y,dY as a,fx as D,B as m,q as C,t as c,c as z}from"./index-B9-heAAa.js";import{D as T}from"./domain-settings-B5xKTZUy.js";import{f as O,e as R,b as q,A as F,d as M,c as U,g as $}from"./alert-dialog-DqO-3R76.js";import{I as d}from"./input-D7UnEeXl.js";import{S as H}from"./switch-B7r0dQcL.js";import{a as W,b as X,c as Y,d as G}from"./use-org-sso-jTEc7oSr.js";import{s as J}from"./Trash01-Desmqajq.js";import{R as K}from"./require-capability-DhJhDP-L.js";import"./badge-BNCSp2s3.js";import"./select-CGIEs0gc.js";import"./index-CcHKaTn6.js";import"./ChevronUp-D3WR1M0A.js";import"./access-gate-BPsOGNar.js";import"./capability-load-error-B0iwFf7_.js";function Q(){const s=B(),{org:o}=L(),{data:f,isLoading:I}=W(o.id,o.slug),h=X(o.id,o.slug),S=Y(o.id,o.slug),b=G(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[P,j]=v.useState(!1),u=f?.configured&&f.config,n=f?.config,_=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},N=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!u&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(u?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Container,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),I?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!g&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(H,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(J,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:_,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&u?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:N,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:P,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(q,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(M,{children:[e.jsx(U,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx($,{onClick:w,disabled:S.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function ue(){const s=z.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(K,{capability:"org:manage",area:"security",children:e.jsx(Q,{})}),s[0]=o):o=s[0],o}export{ue as default};
@@ -0,0 +1 @@
1
+ import{c as J,b as ee,j as i,n as se,r as V,e_ as pe,aP as xe,E as Se,a0 as he,o as ye,W as ne,dY as X,B as Z,d as je,f as ve,an as be,q as ce,K as Ce,dX as oe,dW as le,e as _e,t as de}from"./index-B9-heAAa.js";import{i as Re}from"./AlertCircle-D3eYSD-F.js";import{s as ke}from"./Plus-CFFsuHFf.js";import{s as Ne}from"./Trash01-Desmqajq.js";import{I as ae}from"./input-D7UnEeXl.js";import{S as me}from"./switch-B7r0dQcL.js";import{A as fe}from"./avatar-Didv6efi.js";import{P as Pe,a as Te,b as we}from"./popover-DM5IZa3t.js";import{b as ue}from"./use-connection-CxUZdVtx.js";import{u as Ae}from"./use-registry-connections-D949LAVQ.js";import{f as ze,m as Ee}from"./use-organization-settings-CcUVu9tG.js";import{R as Me}from"./require-capability-DhJhDP-L.js";import"./User01-CbDoD5mb.js";import"./use-mcp-client-QkBFbC3f.js";import"./auth-CXaWU5n-.js";import"./schema-6mN0bvm3.js";import"./task-board-CiWJ5lUh.js";import"./access-gate-BPsOGNar.js";import"./capability-load-error-B0iwFf7_.js";function $e(t){const e=J.c(6),{error:l}=t,c=ee();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(Re,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function Fe(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=ee(),o=ue(),[r,d]=V.useState(""),[a,p]=V.useState(""),[v,A]=V.useState("");let S;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==v||e[4]!==a?(S=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:v||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=v,e[4]=a,e[5]=S):S=e[5];let b;e[6]!==c||e[7]!==s?(b=j=>{ce("store_private_registry_added",{connection_id:j}),de.success(s("settings.orgStore.privateRegistryAdded")),c(j)},e[6]=c,e[7]=s,e[8]=b):b=e[8];let f;e[9]!==s?(f=j=>{de.error(s("settings.orgStore.failedAddRegistry",{error:j.message}))},e[9]=s,e[10]=f):f=e[10];let C;e[11]!==S||e[12]!==b||e[13]!==f?(C={mutationFn:S,onSuccess:b,onError:f},e[11]=S,e[12]=b,e[13]=f,e[14]=C):C=e[14];const{mutate:x,isPending:m}=_e(C);let u;e[15]!==s?(u=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=u):u=e[16];let h;e[17]!==s?(h=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=h):h=e[18];let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y=j=>d(j.target.value),e[19]=y):y=e[19];let g;e[20]!==r||e[21]!==h?(g=i.jsx(ae,{placeholder:h,value:r,onChange:y,className:"w-[280px]"}),e[20]=r,e[21]=h,e[22]=g):g=e[22];let _;e[23]!==u||e[24]!==g?(_=i.jsx(X,{title:u,action:g}),e[23]=u,e[24]=g,e[25]=_):_=e[25];let k;e[26]!==s?(k=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=k):k=e[27];let $;e[28]!==s?($=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=$):$=e[29];let B;e[30]===Symbol.for("react.memo_cache_sentinel")?(B=j=>p(j.target.value),e[30]=B):B=e[30];let Y;e[31]!==$||e[32]!==a?(Y=i.jsx(ae,{placeholder:$,value:a,onChange:B,className:"w-[280px]"}),e[31]=$,e[32]=a,e[33]=Y):Y=e[33];let q;e[34]!==k||e[35]!==Y?(q=i.jsx(X,{title:k,action:Y}),e[34]=k,e[35]=Y,e[36]=q):q=e[36];let O;e[37]!==s?(O=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=O):O=e[38];let z;e[39]!==s?(z=s("settings.orgStore.optional"),e[39]=s,e[40]=z):z=e[40];let R;e[41]!==s?(R=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=R):R=e[42];let U;e[43]===Symbol.for("react.memo_cache_sentinel")?(U=j=>A(j.target.value),e[43]=U):U=e[43];let F;e[44]!==R||e[45]!==v?(F=i.jsx(ae,{type:"password",placeholder:R,value:v,onChange:U,className:"w-[280px]"}),e[44]=R,e[45]=v,e[46]=F):F=e[46];let E;e[47]!==O||e[48]!==z||e[49]!==F?(E=i.jsx(X,{title:O,description:z,action:F}),e[47]=O,e[48]=z,e[49]=F,e[50]=E):E=e[50];let I;e[51]!==s?(I=s("settings.orgStore.cancel"),e[51]=s,e[52]=I):I=e[52];let N;e[53]!==m||e[54]!==l||e[55]!==I?(N=i.jsx(Z,{variant:"ghost",size:"sm",onClick:l,disabled:m,children:I}),e[53]=m,e[54]=l,e[55]=I,e[56]=N):N=e[56];let D;e[57]!==x?(D=()=>x(),e[57]=x,e[58]=D):D=e[58];const L=!a||m;let P;e[59]!==m||e[60]!==s?(P=s(m?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=m,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==D||e[63]!==L||e[64]!==P?(T=i.jsx(Z,{size:"sm",onClick:D,disabled:L,children:P}),e[62]=D,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==N||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[N,T]}),e[66]=N,e[67]=T,e[68]=w):w=e[68];let M;return e[69]!==q||e[70]!==E||e[71]!==w||e[72]!==_?(M=i.jsxs(oe,{children:[_,q,E,w]}),e[69]=q,e[70]=E,e[71]=w,e[72]=_,e[73]=M):M=e[73],M}function ie(t){const e=J.c(32),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:d,href:a,disabled:p}=t,v=ee(),A=je();let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S={from:"/shell/$org"},e[0]=S):S=e[0];const{org:b}=ve(S);let f;e[1]!==p||e[2]!==o||e[3]!==a||e[4]!==A||e[5]!==r||e[6]!==b?(f=()=>{a?A({to:a,params:{org:b}}):p||r(!o)},e[1]=p,e[2]=o,e[3]=a,e[4]=A,e[5]=r,e[6]=b,e[7]=f):f=e[7];const C=f;let x;e[8]!==s||e[9]!==l?(x=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(fe,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[8]=s,e[9]=l,e[10]=x):x=e[10];let m;e[11]!==d||e[12]!==v?(m=d&&i.jsxs(Pe,{children:[i.jsx(Te,{asChild:!0,children:i.jsx(Z,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:De,children:i.jsx(Ne,{size:14})})}),i.jsx(we,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:v("settings.orgStore.removeRegistry")}),i.jsx(Z,{variant:"destructive",size:"xs",onClick:k=>{k.stopPropagation(),d()},children:v("settings.orgStore.remove")})]})})]}),e[11]=d,e[12]=v,e[13]=m):m=e[13];let u;e[14]!==r?(u=k=>r(k),e[14]=r,e[15]=u):u=e[15];let h;e[16]!==p||e[17]!==o||e[18]!==u?(h=i.jsx(me,{checked:o,disabled:p,onClick:Ie,onCheckedChange:u}),e[16]=p,e[17]=o,e[18]=u,e[19]=h):h=e[19];let y;e[20]!==a?(y=a&&i.jsx(be,{size:14,className:"text-muted-foreground"}),e[20]=a,e[21]=y):y=e[21];let g;e[22]!==m||e[23]!==h||e[24]!==y?(g=i.jsxs("div",{className:"flex items-center gap-2",children:[m,h,y]}),e[22]=m,e[23]=h,e[24]=y,e[25]=g):g=e[25];let _;return e[26]!==c||e[27]!==C||e[28]!==l||e[29]!==x||e[30]!==g?(_=i.jsx(X,{title:l,description:c,onClick:C,icon:x,action:g}),e[26]=c,e[27]=C,e[28]=l,e[29]=x,e[30]=g,e[31]=_):_=e[31],_}function Ie(t){return t.stopPropagation()}function De(t){return t.stopPropagation()}function Le(){const t=J.c(80),e=ee(),{org:l}=he(),c=Ae(),s=ue(),o=ze(),{mutateAsync:r,isPending:d}=Ee(),a=ye(),[p,v]=V.useState(!1);let A,S,b,f,C,x;if(t[0]!==s||t[1]!==d||t[2]!==l.id||t[3]!==a||t[4]!==o||t[5]!==c||t[6]!==p||t[7]!==e||t[8]!==r){const y=ne.REGISTRY(l.id),g=n=>{if(!o)return n===y;const K=o.registries[n];return K?K.enabled:n===y},_=ne.COMMUNITY_REGISTRY(l.id),k=c.find(n=>n.id===y),$=c.find(n=>n.id===_||n.id==="community-registry"),B=$?.id??_,Y=ne.SELF(l.id),q=new Set([y,_,"community-registry",Y]),O=c.filter(n=>!q.has(n.id));let z;t[15]!==o||t[16]!==r?(z=async(n,K)=>{ce("store_registry_toggled",{connection_id:n,enabled:K});const ge=o??{registries:{},blockedMcps:[]};await r({...ge,registries:{...ge.registries,[n]:{enabled:K}}})},t[15]=o,t[16]=r,t[17]=z):z=t[17];const R=z;let U;t[18]!==s||t[19]!==l.id||t[20]!==a?(U=async n=>{ce("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),a.invalidateQueries({queryKey:Ce.organizationSettings(l.id)})},t[18]=s,t[19]=l.id,t[20]=a,t[21]=U):U=t[21];const F=U;let E;t[22]!==o||t[23]!==r?(E=async n=>{v(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[22]=o,t[23]=r,t[24]=E):E=t[24];const I=E;let N;t[25]!==e?(N=e("settings.orgStore.decoStoreSection"),t[25]=e,t[26]=N):N=t[26];const D=k?i.jsx(ie,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:k.icon,enabled:g(y),onToggle:n=>R(y,n),disabled:d}):i.jsx(X,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let L;t[27]!==D?(L=i.jsx(oe,{children:D}),t[27]=D,t[28]=L):L=t[28],t[29]!==N||t[30]!==L?(C=i.jsx(le,{title:N,children:L}),t[29]=N,t[30]=L,t[31]=C):C=t[31];let P;t[32]!==e?(P=e("settings.orgStore.privateRegistriesSection"),t[32]=e,t[33]=P):P=t[33];let T;t[34]!==p||t[35]!==e?(T=p?void 0:i.jsxs(Z,{variant:"outline",size:"sm",onClick:()=>v(!0),children:[i.jsx(ke,{size:14}),e("settings.orgStore.addRegistry")]}),t[34]=p,t[35]=e,t[36]=T):T=t[36];let w;t[37]!==I||t[38]!==p?(w=p&&i.jsx(Fe,{onCancel:()=>v(!1),onSuccess:I}),t[37]=I,t[38]=p,t[39]=w):w=t[39];let M;t[40]!==e?(M=e("settings.orgStore.privateRegistry"),t[40]=e,t[41]=M):M=t[41];let j;t[42]!==e?(j=e("settings.orgStore.privateRegistryDescription"),t[42]=e,t[43]=j):j=t[43];let W;t[44]!==g?(W=g("self"),t[44]=g,t[45]=W):W=t[45];let G;t[46]!==R?(G=n=>R("self",n),t[46]=R,t[47]=G):G=t[47];let Q;t[48]!==M||t[49]!==j||t[50]!==W||t[51]!==G?(Q=i.jsx(ie,{name:M,description:j,enabled:W,onToggle:G,href:"/$org/settings/store/registry"}),t[48]=M,t[49]=j,t[50]=W,t[51]=G,t[52]=Q):Q=t[52];let te;t[53]!==F||t[54]!==R||t[55]!==g||t[56]!==d||t[57]!==e?(te=n=>i.jsx(ie,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:g(n.id),onToggle:K=>R(n.id,K),onDelete:()=>F(n.id),disabled:d},n.id),t[53]=F,t[54]=R,t[55]=g,t[56]=d,t[57]=e,t[58]=te):te=t[58];const re=O.map(te);let H;t[59]!==Q||t[60]!==re?(H=i.jsxs(oe,{children:[Q,re]}),t[59]=Q,t[60]=re,t[61]=H):H=t[61],t[62]!==P||t[63]!==T||t[64]!==w||t[65]!==H?(x=i.jsxs(le,{title:P,actions:T,children:[w,H]}),t[62]=P,t[63]=T,t[64]=w,t[65]=H,t[66]=x):x=t[66],S=le,t[67]!==e?(f=e("settings.orgStore.communitySection"),t[67]=e,t[68]=f):f=t[68],A=oe,b=$?i.jsx(ie,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:$.icon,enabled:g(B),onToggle:n=>R(B,n),disabled:d}):i.jsx(X,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(fe,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(me,{checked:!1,disabled:!0,onCheckedChange:Ke})}),t[0]=s,t[1]=d,t[2]=l.id,t[3]=a,t[4]=o,t[5]=c,t[6]=p,t[7]=e,t[8]=r,t[9]=A,t[10]=S,t[11]=b,t[12]=f,t[13]=C,t[14]=x}else A=t[9],S=t[10],b=t[11],f=t[12],C=t[13],x=t[14];let m;t[69]!==A||t[70]!==b?(m=i.jsx(A,{children:b}),t[69]=A,t[70]=b,t[71]=m):m=t[71];let u;t[72]!==S||t[73]!==f||t[74]!==m?(u=i.jsx(S,{title:f,children:m}),t[72]=S,t[73]=f,t[74]=m,t[75]=u):u=t[75];let h;return t[76]!==C||t[77]!==x||t[78]!==u?(h=i.jsxs(i.Fragment,{children:[C,x,u]}),t[76]=C,t[77]=x,t[78]=u,t[79]=h):h=t[79],h}function Ke(){}function Ue(){const t=J.c(13),e=ee();let l;t[0]!==e?(l=p=>{const{error:v}=p;return i.jsx($e,{error:v??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(xe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(se.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(Le,{}),t[7]=r):r=t[7];let d;t[8]!==o?(d=i.jsx(V.Suspense,{fallback:c,children:i.jsx(se,{children:i.jsx(se.Content,{children:i.jsx(se.Container,{children:i.jsxs(pe,{children:[o,r]})})})})}),t[8]=o,t[9]=d):d=t[9];let a;return t[10]!==l||t[11]!==d?(a=i.jsx(Se,{fallback:l,children:d}),t[10]=l,t[11]=d,t[12]=a):a=t[12],a}function lt(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Me,{capability:"registry:manage",area:"the store",children:i.jsx(Ue,{})}),t[0]=e):e=t[0],e}export{lt as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-B6_xJXmc.js","assets/index-B9-heAAa.js","assets/index-BOHOyAF8.css","assets/Tool02-cweQ69Nx.js","assets/CheckCircle-GeSGM969.js","assets/Settings02-DsaxolGj.js","assets/use-mcp-client-QkBFbC3f.js","assets/auth-CXaWU5n-.js","assets/useInfiniteQuery-BQbzbaMU.js","assets/infiniteQueryObserver-Dj9z-_Ba.js","assets/badge-BNCSp2s3.js","assets/input-D7UnEeXl.js","assets/table-DgtBm1fC.js","assets/toggle-group-DG19r_KQ.js","assets/use-view-mode-DxPHENE7.js","assets/use-mobile-z5LlRP9d.js","assets/DotsVertical-CD4T7H6_.js","assets/Globe01-DF7y1beg.js","assets/SearchMd-DRk1Er2c.js","assets/dialog-BG4c8Ew3.js","assets/X-CTlWdd97.js","assets/AlertCircle-D3eYSD-F.js","assets/Download01-BRqjontI.js","assets/Upload01-DelvmgfV.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-DqO-3R76.js","assets/Trash01-Desmqajq.js","assets/label-BO4yFijb.js","assets/select-CGIEs0gc.js","assets/index-CcHKaTn6.js","assets/ChevronUp-D3WR1M0A.js","assets/switch-B7r0dQcL.js","assets/textarea-B4b4OfxE.js","assets/ArrowLeft-pKUucwnA.js","assets/ArrowRight-dpr4pl9N.js","assets/Link01-DVDPoM5q.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-CEMIbeLG.js","assets/Eye-CI6aKDnd.js","assets/LinkExternal01-DpqcCYOT.js","assets/XCircle-D6WY1ym8.js","assets/use-infinite-scroll-DWMzEhh9.js","assets/use-copy-n0GWSVkA.js","assets/Copy01-DqrZOvVi.js","assets/Key01-BB4eK9Eq.js","assets/Plus-CFFsuHFf.js","assets/tooltip-DB_mQQ5y.js","assets/mcp-oauth-DzKWzujJ.js","assets/Play-DJHXfM-U.js"])))=>i.map(i=>d[i]);
2
+ import{c as n,d as c,f as m,j as t,h as f,r as l,aJ as p}from"./index-B9-heAAa.js";import{R as u}from"./require-capability-DhJhDP-L.js";import"./access-gate-BPsOGNar.js";import"./capability-load-error-B0iwFf7_.js";const g=l.lazy(()=>p(()=>import("./registry-layout-B6_xJXmc.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])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};