decocms 4.374.1 → 4.375.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/dist/client/assets/{AlertCircle-CvB24fpQ.js → AlertCircle-CqW1GFxy.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CC-VldiG.js → AreaChart-DYNRbtHa.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CuPXwhY9.js → ArrowLeft-BGvcqKye.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-DaeNVQjU.js → ArrowRight-CfSh04kd.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-CMB2_B55.js → ArrowUp-DIK810PT.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-fcGDW8tl.js → CartesianChart-CsHrela1.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-L9rxLy8_.js → CheckCircle-eFuhjKFT.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-Dy-cXbOz.js → ChevronUp-QcSQ5rVq.js} +1 -1
  9. package/dist/client/assets/{Copy01-KomJ49aq.js → Copy01-BsZDIS3z.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-DNXTqT2E.js → CreditCard01-yw_JaYDH.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-CycZdUV6.js → DotsVertical-DCTIN1zx.js} +1 -1
  12. package/dist/client/assets/{Download01-CK_3UsO1.js → Download01-B4Q5hpED.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-C_8xGdFw.js → ErrorBarContext-CTDVFTli.js} +1 -1
  14. package/dist/client/assets/{Eye-KAte8whD.js → Eye-C46dzrHd.js} +1 -1
  15. package/dist/client/assets/{Globe01-BmMm30Hp.js → Globe01-DlhUCcjG.js} +1 -1
  16. package/dist/client/assets/{Globe04-D2pxwWDa.js → Globe04-ClHubtty.js} +1 -1
  17. package/dist/client/assets/{Image01-BHoZzJSj.js → Image01-DVR_EyJG.js} +1 -1
  18. package/dist/client/assets/{Key01-BiLmhCHZ.js → Key01-muV6twoN.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-Dk8cMo-H.js → LayoutLeft-xdqdW3pr.js} +1 -1
  20. package/dist/client/assets/{Line-QF9kobp-.js → Line-hpj-dLud.js} +1 -1
  21. package/dist/client/assets/{Link01-BSX_7wIu.js → Link01-BbJKwlY6.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-COMF34Up.js → LinkExternal01-FZW_JKrN.js} +1 -1
  23. package/dist/client/assets/{Monitor01-C25vfwGa.js → Monitor01-CN-5WdRa.js} +1 -1
  24. package/dist/client/assets/{Package-BCflABQ6.js → Package-CkvAk6JQ.js} +1 -1
  25. package/dist/client/assets/{Palette-By8W7B7e.js → Palette-D8vRagJV.js} +1 -1
  26. package/dist/client/assets/{Play-C6orNG1z.js → Play-P0YcNy8v.js} +1 -1
  27. package/dist/client/assets/{Plus-BuCQnPNG.js → Plus-DcpbfgdJ.js} +1 -1
  28. package/dist/client/assets/{SearchLg-VMEsA-e7.js → SearchLg-7L27EznQ.js} +1 -1
  29. package/dist/client/assets/{SearchMd-DnahVlUn.js → SearchMd-XFzJrarE.js} +1 -1
  30. package/dist/client/assets/{Sector-CzI1MlO5.js → Sector-CLGxXMU7.js} +1 -1
  31. package/dist/client/assets/{Settings02-BZd-qcWS.js → Settings02-CncEwCCz.js} +1 -1
  32. package/dist/client/assets/{Share07-tpVfUX9-.js → Share07-CxrO44KP.js} +1 -1
  33. package/dist/client/assets/{Stars01-BcbLgM7d.js → Stars01-DyW-G6OS.js} +1 -1
  34. package/dist/client/assets/{Sun-C6ausIaw.js → Sun-xECmqRY7.js} +1 -1
  35. package/dist/client/assets/{Tool01-BlcXvpRH.js → Tool01-dwGgKodr.js} +1 -1
  36. package/dist/client/assets/{Tool02-BcSzj1eN.js → Tool02-CbeJXNE6.js} +1 -1
  37. package/dist/client/assets/{Trash01-Bt7knSgw.js → Trash01-Cs1900Vx.js} +1 -1
  38. package/dist/client/assets/{TrendUp01-kAJZHj1O.js → TrendUp01-BfIYShuZ.js} +1 -1
  39. package/dist/client/assets/{Upload01-CgS71RUS.js → Upload01-odxUyqlC.js} +1 -1
  40. package/dist/client/assets/{User01-DKY_ILGI.js → User01-C-kfOI2V.js} +1 -1
  41. package/dist/client/assets/{UserSquare-DU12tvTU.js → UserSquare-CBd8Lm1t.js} +1 -1
  42. package/dist/client/assets/{Users01-COWDl5zV.js → Users01-DW5XXBNa.js} +1 -1
  43. package/dist/client/assets/{X-DcceC-EQ.js → X-DgI4yqfX.js} +1 -1
  44. package/dist/client/assets/{XCircle-BirmII4v.js → XCircle-ChzUwnd9.js} +1 -1
  45. package/dist/client/assets/{XClose-CZo1KF0t.js → XClose-Cu0FBQhr.js} +1 -1
  46. package/dist/client/assets/{Zap-CIXkomUE.js → Zap-BkWm3G14.js} +1 -1
  47. package/dist/client/assets/{ZoomOut-CvMfmw42.js → ZoomOut-BYNmIOoy.js} +1 -1
  48. package/dist/client/assets/{access-gate-BkpH0rYV.js → access-gate-DrhvBokN.js} +1 -1
  49. package/dist/client/assets/{add-connection-dialog-DDFaH4NS.js → add-connection-dialog-BNKRqesq.js} +1 -1
  50. package/dist/client/assets/{agent-analytics-DI585OA2.js → agent-analytics-DhJQZGBL.js} +1 -1
  51. package/dist/client/assets/agent-app-CwhHpeQZ.js +1 -0
  52. package/dist/client/assets/agent-assets-BG71p0Uk.js +1 -0
  53. package/dist/client/assets/{agent-automation-CoXN7oT_.js → agent-automation-CDChcSyV.js} +1 -1
  54. package/dist/client/assets/{agent-automations-Dh2ldvlj.js → agent-automations-Ds_gyptW.js} +1 -1
  55. package/dist/client/assets/{agent-connect-sources-p5uTnj09.js → agent-connect-sources-BQVAyJ4p.js} +1 -1
  56. package/dist/client/assets/agent-deck-w5dW0RRF.js +1 -0
  57. package/dist/client/assets/{agent-e2e-CgjMtxKa.js → agent-e2e-Waa8S4qH.js} +1 -1
  58. package/dist/client/assets/{agent-experiments-Z90gGdDa.js → agent-experiments-DocmKFCq.js} +1 -1
  59. package/dist/client/assets/agent-file-BNrxE2XH.js +1 -0
  60. package/dist/client/assets/{agent-git-8ujBeOTw.js → agent-git-CcB_AU8a.js} +2 -2
  61. package/dist/client/assets/{agent-hosting-Bzvqx7RN.js → agent-hosting-DqC3jsqS.js} +1 -1
  62. package/dist/client/assets/{agent-icon-Bbnm30MH.js → agent-icon-DZmc5CaF.js} +1 -1
  63. package/dist/client/assets/agent-library-file-CcAfTvZD.js +1 -0
  64. package/dist/client/assets/{agent-monitor-pcRQgKqs.js → agent-monitor-j0thXn_z.js} +1 -1
  65. package/dist/client/assets/{agent-overview-wBMo3ArI.js → agent-overview-Se96_nVw.js} +1 -1
  66. package/dist/client/assets/agent-settings-BUJ9WCtJ.js +1 -0
  67. package/dist/client/assets/{agent-site-editor-B_7293-6.js → agent-site-editor-BUv5taoc.js} +1 -1
  68. package/dist/client/assets/agent-site-editor-code-UGzk7VE6.js +2 -0
  69. package/dist/client/assets/agent-site-editor-content-BT2waE8I.js +2 -0
  70. package/dist/client/assets/{agent-site-editor-preview-BoUgjuFc.js → agent-site-editor-preview-BYZPX7tr.js} +3 -3
  71. package/dist/client/assets/agent-view-CljCxEEY.js +1 -0
  72. package/dist/client/assets/{agent-view-guard-CE-w87FC.js → agent-view-guard-B-yMTUz4.js} +1 -1
  73. package/dist/client/assets/{agents-list-DYu2megT.js → agents-list--UPC2z-V.js} +1 -1
  74. package/dist/client/assets/{ai-providers-C4xd0vpP.js → ai-providers-DoD-WkyR.js} +2 -2
  75. package/dist/client/assets/{alert-JJIsthFC.js → alert-BiRypa2I.js} +1 -1
  76. package/dist/client/assets/{alert-dialog-DQ7VA4it.js → alert-dialog-BYQAyeOC.js} +1 -1
  77. package/dist/client/assets/{api-keys-Da7XeDcP.js → api-keys-CFH8WzHp.js} +1 -1
  78. package/dist/client/assets/api-keys-Vr2mIxG4.js +1 -0
  79. package/dist/client/assets/app-editor-D_IiCvgl.js +1 -0
  80. package/dist/client/assets/{asset-utils-Ckrgql68.js → asset-utils-Db2ZBQHY.js} +1 -1
  81. package/dist/client/assets/{auth-BAIe_T8g.js → auth-BCpLT4L2.js} +1 -1
  82. package/dist/client/assets/{auth-catchall-C3HcGo7O.js → auth-catchall-CSzayJNY.js} +1 -1
  83. package/dist/client/assets/{auth-entry-CXeBQuWy.js → auth-entry-Bf9MzjUn.js} +1 -1
  84. package/dist/client/assets/{auth-split-layout-BLHoHl9d.js → auth-split-layout-B1xn3sDE.js} +1 -1
  85. package/dist/client/assets/{authenticate-and-persist-oauth-B_2a5Vfr.js → authenticate-and-persist-oauth-DVNhuSYI.js} +1 -1
  86. package/dist/client/assets/{automation-list-row-zcGZ57kC.js → automation-list-row-CfW-tzTh.js} +1 -1
  87. package/dist/client/assets/{automation-runs-CO5cfbAL.js → automation-runs-CI1zLVwE.js} +1 -1
  88. package/dist/client/assets/automations-DRLDJWNL.js +1 -0
  89. package/dist/client/assets/{autosend-DrbiZ7KD.js → autosend-U0G_KEv2.js} +1 -1
  90. package/dist/client/assets/{avatar-DAAVe66-.js → avatar-DxbODU4C.js} +1 -1
  91. package/dist/client/assets/{badge-Cxdo9MSD.js → badge-D6ygNqO6.js} +1 -1
  92. package/dist/client/assets/{block-document-BmtOSR_U.js → block-document-BezbnyKl.js} +3 -3
  93. package/dist/client/assets/{blocks-preview-workspace-context-B9WGUHQW.js → blocks-preview-workspace-context-CTo5jpQ8.js} +1 -1
  94. package/dist/client/assets/{breadcrumb-Cl92-rSB.js → breadcrumb-DWcfFz9-.js} +1 -1
  95. package/dist/client/assets/{buckets-IfbnGi1h.js → buckets-CYMWAXId.js} +1 -1
  96. package/dist/client/assets/{build-improve-prompt-doc-BjB8yBFt.js → build-improve-prompt-doc-C7lr6nl8.js} +1 -1
  97. package/dist/client/assets/{bulk-category-panel-BCXzorgr.js → bulk-category-panel-Bj1SJBXK.js} +1 -1
  98. package/dist/client/assets/{calendar-D29VArmq.js → calendar-PQ1Ftg13.js} +1 -1
  99. package/dist/client/assets/{capability-load-error-BML32Rgk.js → capability-load-error-CvIv1gsN.js} +1 -1
  100. package/dist/client/assets/category-editor-DliRWtls.js +1 -0
  101. package/dist/client/assets/{chart-DPH16IOZ.js → chart-Dr36_7b5.js} +1 -1
  102. package/dist/client/assets/{chat-context-BSf3NsZt.js → chat-context-BkliO4re.js} +5 -5
  103. package/dist/client/assets/{chat-draft-CYnWSaLo.js → chat-draft-CiN5fXJU.js} +1 -1
  104. package/dist/client/assets/{checkbox-Dabg6CvC.js → checkbox-Cklt31AJ.js} +1 -1
  105. package/dist/client/assets/{choose-editor-Cp-nak_V.js → choose-editor-DGrCIRT5.js} +1 -1
  106. package/dist/client/assets/{cli-auth-success-Cn8-SffB.js → cli-auth-success-BHmPrydv.js} +1 -1
  107. package/dist/client/assets/{client-icons-I35gtKUf.js → client-icons-CS1fp_mb.js} +1 -1
  108. package/dist/client/assets/{collapsible-Cc5z9cdY.js → collapsible-DnZ_wlS4.js} +1 -1
  109. package/dist/client/assets/{collection-detail-DjBn5zYW.js → collection-detail-DwkABCiq.js} +1 -1
  110. package/dist/client/assets/{collection-display-button-BMj7QQEq.js → collection-display-button-CODidBR9.js} +1 -1
  111. package/dist/client/assets/{collection-search-ACimtR3t.js → collection-search-2f8pAB4Y.js} +1 -1
  112. package/dist/client/assets/{collection-table-wrapper-D6uxp16B.js → collection-table-wrapper-D2XJ_BvC.js} +1 -1
  113. package/dist/client/assets/{collection-tabs-wZHzLlos.js → collection-tabs-CYx5-BiK.js} +1 -1
  114. package/dist/client/assets/{combobox-CFiHpYi-.js → combobox-BxJAO8U7.js} +1 -1
  115. package/dist/client/assets/{command-uelHA4Qc.js → command-s8BJjz1Z.js} +1 -1
  116. package/dist/client/assets/{companion-mcps-section-CElJkf6T.js → companion-mcps-section-idD3Wjuq.js} +1 -1
  117. package/dist/client/assets/{connect-C1wR3kQS.js → connect-YaAoKXfV.js} +2 -2
  118. package/dist/client/assets/{connect-layout-CEjyLlsQ.js → connect-layout-B5NqOhZR.js} +1 -1
  119. package/dist/client/assets/{connection-card-z-DTL8a8.js → connection-card-CyoPC3yi.js} +1 -1
  120. package/dist/client/assets/{connection-detail-DTW_zDz8.js → connection-detail-DUSw9X3H.js} +1 -1
  121. package/dist/client/assets/{connection-form-helpers-w89tRjJb.js → connection-form-helpers-BKito2Bz.js} +1 -1
  122. package/dist/client/assets/{connection-CCOtyiTz.js → connection-ju8s9npF.js} +1 -1
  123. package/dist/client/assets/{connections-BCg7O22V.js → connections-B9YPH6e_.js} +1 -1
  124. package/dist/client/assets/{create-organization-dialog-DgZgs9aG.js → create-organization-dialog-Bd1vOpVb.js} +1 -1
  125. package/dist/client/assets/{decofile-api-BCvZWky6.js → decofile-api-tER_PaB4.js} +1 -1
  126. package/dist/client/assets/{decopilot-JzsJWa1H.js → decopilot-f7DFX3Qm.js} +2 -2
  127. package/dist/client/assets/{dialog-BVRmgEZZ.js → dialog-CfR9zhfQ.js} +1 -1
  128. package/dist/client/assets/{discover-CPUegLX9.js → discover-BuXt2vx3.js} +1 -1
  129. package/dist/client/assets/{domain-settings-BL6MiMeP.js → domain-settings-CqFWBtGR.js} +1 -1
  130. package/dist/client/assets/{download-app-dialog-BSQlf9Pn.js → download-app-dialog-BP-_J1f-.js} +1 -1
  131. package/dist/client/assets/{drawer-BwM5wPz_.js → drawer-BiF0PtML.js} +1 -1
  132. package/dist/client/assets/{editor-B9nqdqUb.js → editor-DUpmzLo7.js} +1 -1
  133. package/dist/client/assets/{empty-state-CUy_IWGW.js → empty-state-9hlMmNlC.js} +1 -1
  134. package/dist/client/assets/{empty-state-CyI2CaLY.js → empty-state-D6UqEEY-.js} +1 -1
  135. package/dist/client/assets/{extract-connection-data-BYtH8M2u.js → extract-connection-data-DgcpMlth.js} +1 -1
  136. package/dist/client/assets/{feature-gate-Cf4hZv0B.js → feature-gate-D5GuzQQe.js} +1 -1
  137. package/dist/client/assets/{feature-paywall-BSg5h6Wb.js → feature-paywall-BikFTLog.js} +1 -1
  138. package/dist/client/assets/{file-explorer-BaQZtdi0.js → file-explorer-CQocIpVZ.js} +1 -1
  139. package/dist/client/assets/{file-preview-C3-dWXmK.js → file-preview-DNlbJHv7.js} +1 -1
  140. package/dist/client/assets/{file-share-button-BuCRyD4f.js → file-share-button-CO47V7vg.js} +1 -1
  141. package/dist/client/assets/{file-type-icon-Dg8sADAf.js → file-type-icon-Dv-tVjqp.js} +1 -1
  142. package/dist/client/assets/{folder-icon-DA4ZaB45.js → folder-icon-186o_xBL.js} +1 -1
  143. package/dist/client/assets/{form-DwCt2SR2.js → form-DHJlhF9m.js} +1 -1
  144. package/dist/client/assets/{gateway-client-D0oBW_qu.js → gateway-client-4Nr9Lszn.js} +1 -1
  145. package/dist/client/assets/{general-B9q-xe3O.js → general-BCtaDRKE.js} +1 -1
  146. package/dist/client/assets/{github-icon-C0b5ErP6.js → github-icon-B7rNxQCT.js} +1 -1
  147. package/dist/client/assets/{home-Dd28TK1r.js → home-Dskdg6sU.js} +1 -1
  148. package/dist/client/assets/{hooks-D0h9yhqP.js → hooks-BB3WxPkJ.js} +2 -2
  149. package/dist/client/assets/{hooks-DZN1ZKP-.js → hooks-Vq5fn_Sg.js} +1 -1
  150. package/dist/client/assets/{icon-button-DU-Ln0Ge.js → icon-button-C0MdJ7W1.js} +1 -1
  151. package/dist/client/assets/{index-BfTKB7dV.js → index-BCtojorK.js} +1 -1
  152. package/dist/client/assets/{index-CB_d_Ww9.js → index-BDzkh4SF.js} +1 -1
  153. package/dist/client/assets/{index-BK4gf4on.js → index-BNnRrN_z.js} +1 -1
  154. package/dist/client/assets/{index--5vhPfMl.js → index-BNtnQdj2.js} +1 -1
  155. package/dist/client/assets/{index-B4Sw3hof.js → index-BxPwUex4.js} +1 -1
  156. package/dist/client/assets/index-C-9eP1YM.js +1 -0
  157. package/dist/client/assets/{index-BNah-P_g.css → index-CCCwF5vG.css} +1 -1
  158. package/dist/client/assets/{index-CjolVbvM.js → index-CMgSStc4.js} +1 -1
  159. package/dist/client/assets/{index-0kHkZucW.js → index-Ci8I2ZAh.js} +1 -1
  160. package/dist/client/assets/{index-ChGB7Srd.js → index-CnX1wVk0.js} +1 -1
  161. package/dist/client/assets/{index-B4_5ne-m.js → index-DQZBt6Fl.js} +54 -54
  162. package/dist/client/assets/{index-IS0010-i.js → index-Dxn1KDpE.js} +1 -1
  163. package/dist/client/assets/{index-AOu8Y3dB.js → index-X9VHKMKa.js} +1 -1
  164. package/dist/client/assets/{index-BfbICK5t.js → index-aeXfMtPI.js} +1 -1
  165. package/dist/client/assets/{index-redirect-BeZh12s-.js → index-redirect-2ysrmYvb.js} +1 -1
  166. package/dist/client/assets/{index-D_t5RQk4.js → index-waKafOzk.js} +1 -1
  167. package/dist/client/assets/{infiniteQueryObserver-CzIaF1BV.js → infiniteQueryObserver-DGwzP6OU.js} +1 -1
  168. package/dist/client/assets/{infra-billing-DMsr0Q0z.js → infra-billing-8H9IQAku.js} +1 -1
  169. package/dist/client/assets/{input-DmFaWWaQ.js → input-Clcfr53P.js} +1 -1
  170. package/dist/client/assets/{input-D7rTqiZA.js → input-Tjg4Yj6g.js} +2 -2
  171. package/dist/client/assets/{input-DhQYTu0H.js → input-rh1Mv0Wr.js} +1 -1
  172. package/dist/client/assets/{integration-icon-CT7gtNMF.js → integration-icon-Dz7H1-MQ.js} +1 -1
  173. package/dist/client/assets/{label-C5dVgFkO.js → label-BNGvxM6S.js} +1 -1
  174. package/dist/client/assets/{last-preview-page-BbdRTqMd.js → last-preview-page-AQeXjWi9.js} +1 -1
  175. package/dist/client/assets/{layout-CXaobmoR.js → layout-X2JiO2W9.js} +1 -1
  176. package/dist/client/assets/{legacy-agents-deep-B2dKvF3G.js → legacy-agents-deep-vurFyg9D.js} +1 -1
  177. package/dist/client/assets/{legacy-main-redirect-psdr3_pB.js → legacy-main-redirect-Bbkf2fqL.js} +1 -1
  178. package/dist/client/assets/library-BGrUeG8I.js +161 -0
  179. package/dist/client/assets/{login-D0perYnq.js → login-Ks2wHpj_.js} +1 -1
  180. package/dist/client/assets/{markdown-CdMnKnHM.js → markdown-j472BGQe.js} +1 -1
  181. package/dist/client/assets/{mcp-app-renderer-kud7EQ1E.js → mcp-app-renderer-CSEPd7DC.js} +2 -2
  182. package/dist/client/assets/{mcp-oauth-Bqx9uZfn.js → mcp-oauth-8WwU56fl.js} +1 -1
  183. package/dist/client/assets/{members-BWNEw7IY.js → members-DXX-_l1x.js} +1 -1
  184. package/dist/client/assets/{message-templates-CwYx_hD_.js → message-templates-BszS8o8W.js} +1 -1
  185. package/dist/client/assets/{mini-report-page-i9lqZoyF.js → mini-report-page-IeosqtjA.js} +1 -1
  186. package/dist/client/assets/{mock-board-DDxAYcbL.js → mock-board-DrA4dW9Q.js} +7 -7
  187. package/dist/client/assets/{monaco-editor-BM2SBH_J.js → monaco-editor-B4FcjfHJ.js} +1 -1
  188. package/dist/client/assets/{monitoring-stats-row-BAfuoPc4.js → monitoring-stats-row-ClsmEIaD.js} +1 -1
  189. package/dist/client/assets/{multi-select-Cma9DT-0.js → multi-select-DjG7jWJv.js} +1 -1
  190. package/dist/client/assets/{mustache-DCrtQrVG.js → mustache-B7tW8rKl.js} +1 -1
  191. package/dist/client/assets/{oauth-callback-Bjj2LnDu.js → oauth-callback-CuG-N4Ag.js} +1 -1
  192. package/dist/client/assets/{oauth-callback-ai-provider-iJcxShkv.js → oauth-callback-ai-provider-BQiU_dV5.js} +1 -1
  193. package/dist/client/assets/{onboarding-DdPHiaTb.js → onboarding-oOptdWYC.js} +1 -1
  194. package/dist/client/assets/{optimistic-project-sidebar-views-DbUoja1k.js → optimistic-project-sidebar-views-0eAIAyQZ.js} +1 -1
  195. package/dist/client/assets/org-file-open-context-CV0BvKfM.js +1 -0
  196. package/dist/client/assets/{organization-choice-DSZdyMNl.js → organization-choice-DzIjaq6z.js} +1 -1
  197. package/dist/client/assets/{orgs-EQ3dRKq1.js → orgs-Uh-4y791.js} +1 -1
  198. package/dist/client/assets/{page-seo-form-BgfALyeP.js → page-seo-form-0XF8k2QH.js} +1 -1
  199. package/dist/client/assets/{pair-mgqlVrg4.js → pair-oDAsulNf.js} +7 -7
  200. package/dist/client/assets/{plan-ladder-DFDsraie.js → plan-ladder-DWqjM2H6.js} +1 -1
  201. package/dist/client/assets/{popover-BREpugAm.js → popover-hNLbYWT0.js} +1 -1
  202. package/dist/client/assets/{post-calendar-CnbsL0eo.js → post-calendar-DzuJkfRI.js} +1 -1
  203. package/dist/client/assets/{post-editor-9KdgWdvu.js → post-editor-C1Tx2rOv.js} +1 -1
  204. package/dist/client/assets/{preview-content-BZq0WigR.js → preview-content-DMGh32pv.js} +1 -1
  205. package/dist/client/assets/{preview-dialog-h7LoP6ZX.js → preview-dialog-BGQQrh8x.js} +1 -1
  206. package/dist/client/assets/{primitives-zMFwX0Jx.js → primitives-BFH7BLqO.js} +1 -1
  207. package/dist/client/assets/{profile-CstkdBJB.js → profile-Buekam-F.js} +1 -1
  208. package/dist/client/assets/{project-app-view-BUXGEIxz.js → project-app-view-vdLc6iv3.js} +1 -1
  209. package/dist/client/assets/{project-feed-B2rjMsm6.js → project-feed-DoakvNjk.js} +1 -1
  210. package/dist/client/assets/{project-icon-BuXyfXr6.js → project-icon-DCwjX34f.js} +1 -1
  211. package/dist/client/assets/project-reports-ClF5O16Z.js +1 -0
  212. package/dist/client/assets/project-tasks-6eulHBR4.js +1 -0
  213. package/dist/client/assets/{prompts-C8Tw6ift.js → prompts-CPY17-ZY.js} +1 -1
  214. package/dist/client/assets/record-editor-CRgsUtua.js +1 -0
  215. package/dist/client/assets/{redirect-editor-fDaBjJbA.js → redirect-editor-eNlr_Mfk.js} +1 -1
  216. package/dist/client/assets/registry-AgS1bUyh.js +2 -0
  217. package/dist/client/assets/{registry-layout-CBmayW3a.js → registry-layout-DryRe-Z-.js} +1 -1
  218. package/dist/client/assets/reports-C6IYfeap.js +1 -0
  219. package/dist/client/assets/{reports-D3ZxTpvh.js → reports-D1FePU5c.js} +1 -1
  220. package/dist/client/assets/{reports-onboarding-C-jYNNpv.js → reports-onboarding-_i1HBu7w.js} +1 -1
  221. package/dist/client/assets/{reports-tab-ClSQGtJf.js → reports-tab-Dl6Dk6u1.js} +2 -2
  222. package/dist/client/assets/{repositories-VKk9R6NV.js → repositories-CIXZv6vt.js} +1 -1
  223. package/dist/client/assets/{repository-import-picker-Bxit3rwH.js → repository-import-picker-Cm_I6qX6.js} +1 -1
  224. package/dist/client/assets/{repository-picker-Dtn2F8yh.js → repository-picker-BE31MYd2.js} +1 -1
  225. package/dist/client/assets/{require-capability-DNPqpx0A.js → require-capability-DpBsO_NN.js} +1 -1
  226. package/dist/client/assets/{required-auth-layout-DbcZh8KB.js → required-auth-layout-CLogPoNu.js} +1 -1
  227. package/dist/client/assets/{reset-password-H5cLuWq1.js → reset-password-BtrZlUmp.js} +1 -1
  228. package/dist/client/assets/{resizable-Dw8LR1j8.js → resizable-DW-7DjHg.js} +1 -1
  229. package/dist/client/assets/{review-settings-CQBykdsR.js → review-settings-CvxnEwkr.js} +1 -1
  230. package/dist/client/assets/{rich-text-link-control-XbfHUQMq.js → rich-text-link-control-C4o-c0sL.js} +1 -1
  231. package/dist/client/assets/{roles-CoipftcE.js → roles-DfAkE-T7.js} +1 -1
  232. package/dist/client/assets/route-BUOzO2CZ.js +1 -0
  233. package/dist/client/assets/{route-COHKdv7H.js → route-DkpbXtY4.js} +1 -1
  234. package/dist/client/assets/route-page-header-ddubqYbl.js +1 -0
  235. package/dist/client/assets/{route-BKi-EnKl.js → route-x1w0_XOS.js} +1 -1
  236. package/dist/client/assets/runnable-block-editor-D7DBqRPo.js +16 -0
  237. package/dist/client/assets/{sandbox-lifecycle-context-HIhyPh-5.js → sandbox-lifecycle-context-H5kbI9ib.js} +1 -1
  238. package/dist/client/assets/{schema-iizf-P2g.js → schema-D9hq6-Ko.js} +1 -1
  239. package/dist/client/assets/{scroll-area-BcoH4ReJ.js → scroll-area-COAhNkSc.js} +1 -1
  240. package/dist/client/assets/{search-input-CmWlEMU8.js → search-input-eDRvpCEQ.js} +1 -1
  241. package/dist/client/assets/{search-toggle-4qgH_UjE.js → search-toggle-ukQDdkrg.js} +1 -1
  242. package/dist/client/assets/{secrets-Bi8Smqwe.js → secrets-DzQr3bGF.js} +1 -1
  243. package/dist/client/assets/sections-editor-H_6KGCpg.js +2 -0
  244. package/dist/client/assets/{select--0Nrx9pz.js → select-DKZw7VY5.js} +1 -1
  245. package/dist/client/assets/{select-model-BKF1kjR-.js → select-model-kV4UP8Pg.js} +1 -1
  246. package/dist/client/assets/seo-editor-B16rwVRf.js +1 -0
  247. package/dist/client/assets/{separator-CMAG9KMM.js → separator-BVE7Budu.js} +1 -1
  248. package/dist/client/assets/{settings-tab-BrwOMHxn.js → settings-tab-BtAzz40R.js} +1 -1
  249. package/dist/client/assets/{sheet-KfyT4iJh.js → sheet-DuM7cckc.js} +1 -1
  250. package/dist/client/assets/{shell-layout-C7iq_ybu.js → shell-layout-D6lfQGd1.js} +1 -1
  251. package/dist/client/assets/{sidebar-Ce0KwGyJ.js → sidebar-scwXsjFh.js} +1 -1
  252. package/dist/client/assets/{skill-preview-DaiAGQ8W.js → skill-preview-DN9PhO9W.js} +1 -1
  253. package/dist/client/assets/{skills-BfYJXdvY.js → skills-7D59_aEr.js} +1 -1
  254. package/dist/client/assets/{sso-j34bPfk7.js → sso-DXKGvN7S.js} +1 -1
  255. package/dist/client/assets/{store-DjXldX1F.js → store-2S5Y_Sm_.js} +1 -1
  256. package/dist/client/assets/store-registry-BkpvGjQw.js +2 -0
  257. package/dist/client/assets/{switch-uCmnTmA3.js → switch-UqleIRW2.js} +1 -1
  258. package/dist/client/assets/{synced-repos-C07oiVeE.js → synced-repos-I3mzZrDI.js} +1 -1
  259. package/dist/client/assets/{table-Cx5xJBa9.js → table-DY3yh4UN.js} +1 -1
  260. package/dist/client/assets/{tabs-CMPX7aLH.js → tabs-CWunSDaT.js} +1 -1
  261. package/dist/client/assets/{task-board-CwfOEd0p.js → task-board-CU3xz_UX.js} +1 -1
  262. package/dist/client/assets/{task-route-C0NB5FI3.js → task-route-5uvHoI6U.js} +1 -1
  263. package/dist/client/assets/{task-status-CunX_b1I.js → task-status-CbgGINwj.js} +1 -1
  264. package/dist/client/assets/{taskboard-analytics-BVZIpmtK.js → taskboard-analytics-BWpTxoly.js} +1 -1
  265. package/dist/client/assets/{tasks-CKy3IGSO.js → tasks-DEJodw4w.js} +2 -2
  266. package/dist/client/assets/tasks-cQIvs8Qh.js +1 -0
  267. package/dist/client/assets/{textarea-CNloF_6k.js → textarea-D07XC_67.js} +1 -1
  268. package/dist/client/assets/{thread-button-0wpTVhK0.js → thread-button-BQ25_n_A.js} +1 -1
  269. package/dist/client/assets/{thread-intent-BcdlSG8J.js → thread-intent-CPB41f6a.js} +1 -1
  270. package/dist/client/assets/{thread-route-D5lCt0bb.js → thread-route-CDYfrzkB.js} +1 -1
  271. package/dist/client/assets/{thread-route-Bq7TohAn.js → thread-route-DJwg4XWL.js} +1 -1
  272. package/dist/client/assets/{thread-sheet-body-CZ7U6WOP.js → thread-sheet-body-PhMLKGpO.js} +1 -1
  273. package/dist/client/assets/{toggle-group-BPpZ90Kk.js → toggle-group-CRsJ0kJ-.js} +1 -1
  274. package/dist/client/assets/{toolbar-icon-button-Da8s1pOb.js → toolbar-icon-button-CLaEn_t2.js} +1 -1
  275. package/dist/client/assets/{tooltip-Ch_anXXw.js → tooltip-BdIw7qeF.js} +1 -1
  276. package/dist/client/assets/{track-B2ai-lhp.js → track-D7Zl0Ub2.js} +1 -1
  277. package/dist/client/assets/{types-DAtj8pL_.js → types-BFditkVL.js} +1 -1
  278. package/dist/client/assets/{usage-stats-DECzmKdw.js → usage-stats-CydE9W4n.js} +1 -1
  279. package/dist/client/assets/{use-ai-providers-BLQu9X4b.js → use-ai-providers-Jte2cXEd.js} +1 -1
  280. package/dist/client/assets/{use-automations-DGQLDHfM.js → use-automations-DMglF-Hp.js} +1 -1
  281. package/dist/client/assets/{use-autosave-D2GJMvju.js → use-autosave-BK4aenoc.js} +1 -1
  282. package/dist/client/assets/{use-connect-companion-TpX59d2A.js → use-connect-companion-CWVubK_K.js} +1 -1
  283. package/dist/client/assets/{use-connection-DEkZ7Z3y.js → use-connection-CLDZmFlP.js} +1 -1
  284. package/dist/client/assets/{use-copy-BdX2_tpS.js → use-copy-BwelGe7h.js} +1 -1
  285. package/dist/client/assets/{use-create-virtual-mcp-B22agNFs.js → use-create-virtual-mcp-C0nekJmJ.js} +1 -1
  286. package/dist/client/assets/{use-date-fns-locale-DdFVZp6l.js → use-date-fns-locale-9ht16XX5.js} +1 -1
  287. package/dist/client/assets/{use-debounced-autosave-g0CT53cz.js → use-debounced-autosave-CxvwYE3R.js} +1 -1
  288. package/dist/client/assets/{use-debounced-value-CPADjlu8.js → use-debounced-value-DTrA4F64.js} +1 -1
  289. package/dist/client/assets/{use-deco-credits-0LI1tSh2.js → use-deco-credits-toD66YNU.js} +1 -1
  290. package/dist/client/assets/{use-decopilot-events-CztvGxbe.js → use-decopilot-events-Cr8-gyRq.js} +1 -1
  291. package/dist/client/assets/{use-delete-connection-BrxuwVV0.js → use-delete-connection-pojdnt_G.js} +1 -1
  292. package/dist/client/assets/{use-deployment-admin-BW07NJZx.js → use-deployment-admin-BtzBlxtt.js} +1 -1
  293. package/dist/client/assets/{use-entitlements-Cpg4O4cU.js → use-entitlements-Dd8GRYfR.js} +1 -1
  294. package/dist/client/assets/{use-fast-preview-draft-url-BS4vDkY8.js → use-fast-preview-draft-url-6t7oVPGL.js} +1 -1
  295. package/dist/client/assets/{use-file-configs-T83FDKTN.js → use-file-configs-DEt6cPMd.js} +1 -1
  296. package/dist/client/assets/{use-in-settings-CCWZ9EQU.js → use-in-settings-CpoJAiS9.js} +1 -1
  297. package/dist/client/assets/{use-infinite-scroll-CQVHxZ2X.js → use-infinite-scroll-BxfFw7w5.js} +1 -1
  298. package/dist/client/assets/{use-join-requests-BM1WOs-R.js → use-join-requests-CIDw0OFM.js} +1 -1
  299. package/dist/client/assets/{use-main-panel-tabs-BGkjNCY6.js → use-main-panel-tabs-D1QVss-2.js} +1 -1
  300. package/dist/client/assets/{use-mcp-auth-status-DPrXZk0m.js → use-mcp-auth-status-Cg-aCR2N.js} +1 -1
  301. package/dist/client/assets/{use-mcp-client-Di29uH1Z.js → use-mcp-client-CuZ_CH4K.js} +1 -1
  302. package/dist/client/assets/{use-mcp-prompts-pRQvLesG.js → use-mcp-prompts-SnT9jAGG.js} +1 -1
  303. package/dist/client/assets/{use-mcp-tools-BTMKYjmq.js → use-mcp-tools-DjSYGU3r.js} +1 -1
  304. package/dist/client/assets/{use-members-2-cC5S8b.js → use-members-DTIbBdqQ.js} +1 -1
  305. package/dist/client/assets/{use-mobile-Br1FbuT5.js → use-mobile-BwXePCI-.js} +1 -1
  306. package/dist/client/assets/{use-navigate-to-agent-BIB5Nkxx.js → use-navigate-to-agent-DIxyyobE.js} +1 -1
  307. package/dist/client/assets/{use-open-billing-url-DwCvmaT1.js → use-open-billing-url-CnWEYZe0.js} +1 -1
  308. package/dist/client/assets/{use-org-auth-client-BQN7hmW6.js → use-org-auth-client-D-YRClZm.js} +1 -1
  309. package/dist/client/assets/{use-org-fs-up6Ae3F-.js → use-org-fs-6rzJUZWB.js} +1 -1
  310. package/dist/client/assets/{use-org-repo-syncs-B1-u1Sww.js → use-org-repo-syncs-BPvYovov.js} +1 -1
  311. package/dist/client/assets/{use-org-sso-CSb7uzWR.js → use-org-sso-EA4En7Bf.js} +1 -1
  312. package/dist/client/assets/{use-organization-roles-DP4t5Npf.js → use-organization-roles-DjL7Q_JO.js} +1 -1
  313. package/dist/client/assets/{use-organization-settings-B7QbhgeU.js → use-organization-settings-rcECAo5J.js} +1 -1
  314. package/dist/client/assets/{use-panel-navigate-7owLLl5-.js → use-panel-navigate-CCrHg3rQ.js} +1 -1
  315. package/dist/client/assets/{use-project-native-view-presence-C6Z-dNAC.js → use-project-native-view-presence-D_C9jbvc.js} +1 -1
  316. package/dist/client/assets/{use-project-scope-D7MgPnbk.js → use-project-scope-ChdEK9JU.js} +1 -1
  317. package/dist/client/assets/{use-registry-connections-CvrvQHoJ.js → use-registry-connections-C8ZRYmvy.js} +1 -1
  318. package/dist/client/assets/{use-releases-DYrm3R-D.js → use-releases-B2PktYSE.js} +1 -1
  319. package/dist/client/assets/{use-reports-diagnostic-B0GD9uDf.js → use-reports-diagnostic-Ffc8G8Yb.js} +1 -1
  320. package/dist/client/assets/{use-route-default-main--vHXCkHM.js → use-route-default-main-DTBEGWiB.js} +1 -1
  321. package/dist/client/assets/{use-secrets-DwITZFB8.js → use-secrets-C2UFcx4t.js} +1 -1
  322. package/dist/client/assets/use-section-preview-base-D8AdMeK_.js +1 -0
  323. package/dist/client/assets/{use-session-runtime-B1xdg1Mc.js → use-session-runtime-Kk87TZ4U.js} +1 -1
  324. package/dist/client/assets/{use-tags-DXxTmE03.js → use-tags-BZaCfmft.js} +1 -1
  325. package/dist/client/assets/{use-task-board-analytics-5o37lq8z.js → use-task-board-analytics-Dbi3TI9y.js} +1 -1
  326. package/dist/client/assets/{use-task-metadata-xMti_d98.js → use-task-metadata-DptBPkcd.js} +1 -1
  327. package/dist/client/assets/{use-thread-outputs-BwzUBEaq.js → use-thread-outputs-DE9doz4g.js} +1 -1
  328. package/dist/client/assets/{use-view-mode-DB3Sv4EV.js → use-view-mode-CavAJ0r0.js} +1 -1
  329. package/dist/client/assets/{use-virtual-mcp-CdMkF3Nz.js → use-virtual-mcp-4T8Uqtz2.js} +1 -1
  330. package/dist/client/assets/useInfiniteQuery-Ds6mCrD2.js +1 -0
  331. package/dist/client/assets/{useQueries-B3o1rvWe.js → useQueries-D3RKoZYz.js} +1 -1
  332. package/dist/client/assets/useSuspenseInfiniteQuery-M0UgyPh7.js +1 -0
  333. package/dist/client/assets/{users-DBFRWsia.js → users-WBHQMz8R.js} +1 -1
  334. package/dist/client/assets/{utils-gTOau_mh.js → utils-CyaFhLFV.js} +1 -1
  335. package/dist/client/assets/{variant-calendar-DOxG9iwM.js → variant-calendar-DAIHFkeQ.js} +1 -1
  336. package/dist/client/assets/{variant-matcher-override-DPq8EH6t.js → variant-matcher-override-Dyv3s-dG.js} +1 -1
  337. package/dist/client/assets/{view-mode-toggle-DYECPSMs.js → view-mode-toggle-DEbfOadi.js} +1 -1
  338. package/dist/client/assets/{virtual-mcp-AqKeX5w8.js → virtual-mcp-DXgT3asw.js} +1 -1
  339. package/dist/client/index.html +2 -2
  340. package/dist/server/cli.js +1 -1
  341. package/dist/server/server.js +1 -1
  342. package/package.json +1 -1
  343. package/dist/client/assets/agent-app-Dd4FMRFP.js +0 -1
  344. package/dist/client/assets/agent-assets-ihYul22E.js +0 -1
  345. package/dist/client/assets/agent-deck-BWPlKksS.js +0 -1
  346. package/dist/client/assets/agent-file-BKO35b36.js +0 -1
  347. package/dist/client/assets/agent-library-file-B3_-CXIA.js +0 -1
  348. package/dist/client/assets/agent-settings-BxZaeWUx.js +0 -1
  349. package/dist/client/assets/agent-site-editor-code-B-pWeSRV.js +0 -2
  350. package/dist/client/assets/agent-site-editor-content-BGJ14_Az.js +0 -2
  351. package/dist/client/assets/agent-view-DDrzopEk.js +0 -1
  352. package/dist/client/assets/api-keys-DEkuX1eT.js +0 -1
  353. package/dist/client/assets/app-editor-ChfXMKUs.js +0 -1
  354. package/dist/client/assets/automations-BQHaweWF.js +0 -1
  355. package/dist/client/assets/category-editor-BTonT0GY.js +0 -1
  356. package/dist/client/assets/index-DbfxHNth.js +0 -1
  357. package/dist/client/assets/library-CHpieazL.js +0 -161
  358. package/dist/client/assets/org-file-open-context-DNcgI0Uf.js +0 -1
  359. package/dist/client/assets/project-reports-BCqm5aO0.js +0 -1
  360. package/dist/client/assets/project-tasks-Bka5utN5.js +0 -1
  361. package/dist/client/assets/record-editor-BpAD-e4x.js +0 -1
  362. package/dist/client/assets/registry-CtLO9kjB.js +0 -2
  363. package/dist/client/assets/reports-D2RKwYmT.js +0 -1
  364. package/dist/client/assets/route-C9H7VfVw.js +0 -1
  365. package/dist/client/assets/route-page-header-KctxVQ_e.js +0 -1
  366. package/dist/client/assets/runnable-block-editor-BzVWSPHL.js +0 -16
  367. package/dist/client/assets/sections-editor-Bo5eUKAB.js +0 -2
  368. package/dist/client/assets/seo-editor-D9L3VA5c.js +0 -1
  369. package/dist/client/assets/store-registry-RTogK1X0.js +0 -2
  370. package/dist/client/assets/tasks-DF_oVYA4.js +0 -1
  371. package/dist/client/assets/use-section-preview-base-BFHyMpzJ.js +0 -1
  372. package/dist/client/assets/useInfiniteQuery-DvCOEAKG.js +0 -1
  373. package/dist/client/assets/useSuspenseInfiniteQuery-DMqlAGdI.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-B4_5ne-m.js";import{i as k}from"./X-DcceC-EQ.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,bh as N,bg as y,as as S,bi as v,bj as $,bm as C,bl as w}from"./index-DQZBt6Fl.js";import{i as k}from"./X-DgI4yqfX.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-B4_5ne-m.js";import{A as it}from"./avatar-DAAVe66-.js";import{t as Et}from"./Globe04-D2pxwWDa.js";import{i as bn}from"./SearchLg-VMEsA-e7.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-Bbnm30MH.js";import{s as _n}from"./XClose-CZo1KF0t.js";import{D as An}from"./download-app-dialog-BSQlf9Pn.js";import{a as Pn,u as Cn}from"./use-project-scope-D7MgPnbk.js";import{u as Ot,a as En}from"./use-panel-navigate-7owLLl5-.js";import{i as ae}from"./CheckCircle-L9rxLy8_.js";import{i as bt}from"./Tool02-BcSzj1eN.js";import{i as lt}from"./Monitor01-C25vfwGa.js";import{i as re}from"./Zap-CIXkomUE.js";import{c as It,d as Lt,b as $t,D as Dt,h as On,e as In}from"./dialog-BVRmgEZZ.js";import{i as Ln}from"./Share07-tpVfUX9-.js";import{s as xt}from"./Plus-BuCQnPNG.js";import{a as $n}from"./Settings02-BZd-qcWS.js";import{b as le,a as Ge,f as Dn,e as Rn,c as Mn,C as Fn}from"./command-uelHA4Qc.js";import{I as zn}from"./integration-icon-CT7gtNMF.js";import{P as qn}from"./project-icon-BuXyfXr6.js";import{a as Bn,m as Kn}from"./use-mcp-client-Di29uH1Z.js";import{S as Hn,u as Un}from"./hooks-DZN1ZKP-.js";import{u as Gn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Jn}from"./required-auth-layout-DbcZh8KB.js";import{A as Vn}from"./autosend-DrbiZ7KD.js";import{u as Wn,a as Yn,b as Qn,c as Xn}from"./thread-route-D5lCt0bb.js";import{b as Zn}from"./use-organization-settings-B7QbhgeU.js";import{u as es}from"./use-org-sso-CSb7uzWR.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.374.1")));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.374.1"}),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,bQ as me,R as Tt,a as Ke,y as Vt,D as Nt,K as Ue,bR as Wt,bS as Yt,$ as Be,l as ct,aJ as Qt,p as ht,bT 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,bU as en,aB as tn,aH as pt,x as nn,bV as sn,bW as on,bX as an,bY as rn,bZ as ln,T as cn,u as dn,a3 as un,b_ as mn,b$ as fn,k as Ct,c0 as rt,c1 as gn,c2 as hn,O as pn,c3 as yn}from"./index-DQZBt6Fl.js";import{A as it}from"./avatar-DxbODU4C.js";import{t as Et}from"./Globe04-ClHubtty.js";import{i as bn}from"./SearchLg-7L27EznQ.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-DZmc5CaF.js";import{s as _n}from"./XClose-Cu0FBQhr.js";import{D as An}from"./download-app-dialog-BP-_J1f-.js";import{a as Pn,u as Cn}from"./use-project-scope-ChdEK9JU.js";import{u as Ot,a as En}from"./use-panel-navigate-CCrHg3rQ.js";import{i as ae}from"./CheckCircle-eFuhjKFT.js";import{i as bt}from"./Tool02-CbeJXNE6.js";import{i as lt}from"./Monitor01-CN-5WdRa.js";import{i as re}from"./Zap-BkWm3G14.js";import{c as It,d as Lt,b as $t,D as Dt,h as On,e as In}from"./dialog-CfR9zhfQ.js";import{i as Ln}from"./Share07-CxrO44KP.js";import{s as xt}from"./Plus-DcpbfgdJ.js";import{a as $n}from"./Settings02-CncEwCCz.js";import{b as le,a as Ge,f as Dn,e as Rn,c as Mn,C as Fn}from"./command-s8BJjz1Z.js";import{I as zn}from"./integration-icon-Dz7H1-MQ.js";import{P as qn}from"./project-icon-DCwjX34f.js";import{a as Bn,m as Kn}from"./use-mcp-client-CuZ_CH4K.js";import{S as Hn,u as Un}from"./hooks-Vq5fn_Sg.js";import{u as Gn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Jn}from"./required-auth-layout-CLogPoNu.js";import{A as Vn}from"./autosend-U0G_KEv2.js";import{u as Wn,a as Yn,b as Qn,c as Xn}from"./thread-route-CDYfrzkB.js";import{b as Zn}from"./use-organization-settings-rcECAo5J.js";import{u as es}from"./use-org-sso-EA4En7Bf.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.375.0")));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.375.0"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==S||t[23]!==e?(A=e(S),t[22]=S,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=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-B4_5ne-m.js";import{i as H}from"./LayoutLeft-Dk8cMo-H.js";import{u as V}from"./use-mobile-Br1FbuT5.js";import{b as W,c as F,S as L,d as q,a as G}from"./sheet-KfyT4iJh.js";import{b as $,T as z,a as B,c as E}from"./tooltip-Ch_anXXw.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,be as P,aF as R}from"./index-DQZBt6Fl.js";import{i as H}from"./LayoutLeft-xdqdW3pr.js";import{u as V}from"./use-mobile-BwXePCI-.js";import{b as W,c as F,S as L,d as q,a as G}from"./sheet-DuM7cckc.js";import{b as $,T as z,a as B,c as E}from"./tooltip-BdIw7qeF.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-B4_5ne-m.js";import{b as R,D as _,d as q,i as A}from"./dialog-BVRmgEZZ.js";import{i as $}from"./X-DcceC-EQ.js";import{i as G}from"./Zap-CIXkomUE.js";import{M as H}from"./markdown-CdMnKnHM.js";import{F as J}from"./file-preview-C3-dWXmK.js";import{F as Q}from"./file-type-icon-Dg8sADAf.js";import{i as V,c as W,n as X}from"./use-org-fs-up6Ae3F-.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-DQZBt6Fl.js";import{b as R,D as _,d as q,i as A}from"./dialog-CfR9zhfQ.js";import{i as $}from"./X-DgI4yqfX.js";import{i as G}from"./Zap-BkWm3G14.js";import{M as H}from"./markdown-j472BGQe.js";import{F as J}from"./file-preview-DNlbJHv7.js";import{F as Q}from"./file-type-icon-Dv-tVjqp.js";import{i as V,c as W,n as X}from"./use-org-fs-6rzJUZWB.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-B4_5ne-m.js";import{i as ke}from"./DotsVertical-CycZdUV6.js";import{a as ve}from"./Package-BCflABQ6.js";import{s as ye}from"./Trash01-Bt7knSgw.js";import{i as Se}from"./Upload01-CgS71RUS.js";import{i as le}from"./Zap-CIXkomUE.js";import{S as be}from"./search-input-CmWlEMU8.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-DQ7VA4it.js";import{E as Z}from"./empty-state-CUy_IWGW.js";import{C as Me}from"./collection-tabs-wZHzLlos.js";import{F as Ie}from"./folder-icon-DA4ZaB45.js";import{p as Oe,h as ze,q as Fe}from"./use-org-fs-up6Ae3F-.js";import{H as J,d as $e}from"./location-oTTXFrSF.js";import{S as Le}from"./skill-preview-DaiAGQ8W.js";import{p as Re}from"./skill-md-ChfVs4uF.js";import"./SearchMd-DnahVlUn.js";import"./badge-Cxdo9MSD.js";import"./Eye-KAte8whD.js";import"./dialog-BVRmgEZZ.js";import"./X-DcceC-EQ.js";import"./markdown-CdMnKnHM.js";import"./Copy01-KomJ49aq.js";import"./Download01-CK_3UsO1.js";import"./ZoomOut-CvMfmw42.js";import"./org-file-open-context-DNcgI0Uf.js";import"./use-mobile-Br1FbuT5.js";import"./use-panel-navigate-7owLLl5-.js";import"./thread-route-D5lCt0bb.js";import"./use-project-scope-D7MgPnbk.js";import"./use-virtual-mcp-CdMkF3Nz.js";import"./use-mcp-client-Di29uH1Z.js";import"./auth-BAIe_T8g.js";import"./github-repo-BknN0SVI.js";import"./file-preview-C3-dWXmK.js";import"./utils-gTOau_mh.js";import"./Image01-BHoZzJSj.js";import"./editor-B9nqdqUb.js";import"./file-type-icon-Dg8sADAf.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 L,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,eM as je}from"./index-DQZBt6Fl.js";import{i as ke}from"./DotsVertical-DCTIN1zx.js";import{a as ve}from"./Package-CkvAk6JQ.js";import{s as ye}from"./Trash01-Cs1900Vx.js";import{i as Se}from"./Upload01-odxUyqlC.js";import{i as le}from"./Zap-BkWm3G14.js";import{S as be}from"./search-input-eDRvpCEQ.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-BYQAyeOC.js";import{E as Z}from"./empty-state-9hlMmNlC.js";import{C as Me}from"./collection-tabs-CYx5-BiK.js";import{F as Ie}from"./folder-icon-186o_xBL.js";import{p as Oe,h as ze,q as Fe}from"./use-org-fs-6rzJUZWB.js";import{H as J,d as $e}from"./location-oTTXFrSF.js";import{S as Re}from"./skill-preview-DN9PhO9W.js";import{p as Le}from"./skill-md-ChfVs4uF.js";import"./SearchMd-XFzJrarE.js";import"./badge-D6ygNqO6.js";import"./Eye-C46dzrHd.js";import"./dialog-CfR9zhfQ.js";import"./X-DgI4yqfX.js";import"./markdown-j472BGQe.js";import"./Copy01-BsZDIS3z.js";import"./Download01-B4Q5hpED.js";import"./ZoomOut-BYNmIOoy.js";import"./org-file-open-context-CV0BvKfM.js";import"./use-mobile-BwXePCI-.js";import"./use-panel-navigate-CCrHg3rQ.js";import"./thread-route-CDYfrzkB.js";import"./use-project-scope-ChdEK9JU.js";import"./use-virtual-mcp-4T8Uqtz2.js";import"./use-mcp-client-CuZ_CH4K.js";import"./auth-BCpLT4L2.js";import"./github-repo-BknN0SVI.js";import"./file-preview-DNlbJHv7.js";import"./utils-CyaFhLFV.js";import"./Image01-DVR_EyJG.js";import"./editor-DUpmzLo7.js";import"./file-type-icon-Dv-tVjqp.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=Le(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]??"",R=n.filter(Be),W=R.find(A=>U(A)==="SKILL.md");if(!W){D.error(e("settings.skills.importMissingSkillMd"));return}if(R.length>V){D.error(e("settings.skills.importTooManyFiles",{count:String(R.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(R,$),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(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.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(Re,{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-B4_5ne-m.js";import{D as T}from"./domain-settings-BL6MiMeP.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-DQ7VA4it.js";import{I as d}from"./input-DhQYTu0H.js";import{S as H}from"./switch-uCmnTmA3.js";import{a as W,b as X,c as Y,d as G}from"./use-org-sso-CSb7uzWR.js";import{s as J}from"./Trash01-Bt7knSgw.js";import{R as K}from"./require-capability-DNPqpx0A.js";import"./badge-Cxdo9MSD.js";import"./select--0Nrx9pz.js";import"./index-BK4gf4on.js";import"./ChevronUp-Dy-cXbOz.js";import"./access-gate-BkpH0rYV.js";import"./capability-load-error-BML32Rgk.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,dX as y,dY as E,dZ as a,fy as D,B as m,q as C,t as c,c as z}from"./index-DQZBt6Fl.js";import{D as T}from"./domain-settings-CqFWBtGR.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-BYQAyeOC.js";import{I as d}from"./input-rh1Mv0Wr.js";import{S as H}from"./switch-UqleIRW2.js";import{a as X,b as Y,c as Z,d as G}from"./use-org-sso-EA4En7Bf.js";import{s as J}from"./Trash01-Cs1900Vx.js";import{R as K}from"./require-capability-DpBsO_NN.js";import"./badge-D6ygNqO6.js";import"./select-DKZw7VY5.js";import"./index-BNnRrN_z.js";import"./ChevronUp-QcSQ5rVq.js";import"./access-gate-DrhvBokN.js";import"./capability-load-error-CvIv1gsN.js";function Q(){const s=B(),{org:o}=L(),{data:f,isLoading:I}=X(o.id,o.slug),h=Y(o.id,o.slug),S=Z(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=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!u&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(u?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.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(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(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:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&u?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:P,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(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};