decocms 4.373.2 → 4.373.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. package/dist/client/assets/{AlertCircle-D0XfIdP3.js → AlertCircle-NKpIdBKl.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BahcMnDC.js → AreaChart-Bm-WOd7b.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-COesgQ7q.js → ArrowLeft-BKx_QTJr.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-CnMpegh6.js → ArrowRight-8mLQGGMI.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-17ZWJBkC.js → ArrowUp-BgjnqmUz.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-DqSaDs52.js → CartesianChart-CyfhriNO.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-GwUJIVVh.js → CheckCircle-DBlA9wkb.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-CodzCI7T.js → ChevronUp-BAQXOf5D.js} +1 -1
  9. package/dist/client/assets/{Copy01-CrFZhFXo.js → Copy01-wurPIobv.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-DDojC3kk.js → CreditCard01-DjPXzBq6.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-DMzYFBsd.js → DotsVertical-Bx5qjzcz.js} +1 -1
  12. package/dist/client/assets/{Download01-B93GUT2-.js → Download01-BWFtS53v.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-BUk8y7Bj.js → ErrorBarContext-DQtaxwUD.js} +1 -1
  14. package/dist/client/assets/{Eye-Bxxku7SE.js → Eye-BD0ZbSdl.js} +1 -1
  15. package/dist/client/assets/{Globe01-DjdW3vEO.js → Globe01-0DpEacUx.js} +1 -1
  16. package/dist/client/assets/{Globe04-1G-_QSZW.js → Globe04-D59f7pGB.js} +1 -1
  17. package/dist/client/assets/{Image01-DPvj49a-.js → Image01-BUYhMNkS.js} +1 -1
  18. package/dist/client/assets/{Key01-O_Ykzy8v.js → Key01-BvLdmCTc.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-Cr5_A1QG.js → LayoutLeft-CyJFqp-6.js} +1 -1
  20. package/dist/client/assets/{Line-aFR7lShe.js → Line-BeN-bY3Y.js} +1 -1
  21. package/dist/client/assets/{Link01-D8T6mRIR.js → Link01-qIayyFAq.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-CWPNoGQ_.js → LinkExternal01-hkxOMKQE.js} +1 -1
  23. package/dist/client/assets/{Monitor01-CQaKbr3c.js → Monitor01-DyfIXCt5.js} +1 -1
  24. package/dist/client/assets/{Package-Cd3aVeK8.js → Package-EQg-wMAD.js} +1 -1
  25. package/dist/client/assets/{Palette-HRmzWYeK.js → Palette-DI15yG1R.js} +1 -1
  26. package/dist/client/assets/{Play-CaxaoMwA.js → Play-Cg9yqLoQ.js} +1 -1
  27. package/dist/client/assets/{Plus-BjOenFFb.js → Plus-BKjrQCsd.js} +1 -1
  28. package/dist/client/assets/{SearchLg-CT-Vntfj.js → SearchLg-RqwylEUM.js} +1 -1
  29. package/dist/client/assets/{SearchMd-C6gkQ2l2.js → SearchMd-I-u-Ppkp.js} +1 -1
  30. package/dist/client/assets/{Sector-B-fHBulW.js → Sector-C46Vk0wT.js} +1 -1
  31. package/dist/client/assets/{Settings02-DH86cX_B.js → Settings02-DJVGKnwW.js} +1 -1
  32. package/dist/client/assets/{Share07-Bw4Wicv2.js → Share07-adzWfg3s.js} +1 -1
  33. package/dist/client/assets/{Stars01-B1kYoDFp.js → Stars01-BEbgNJbY.js} +1 -1
  34. package/dist/client/assets/{Sun-kycCorOO.js → Sun-YVYc7YRc.js} +1 -1
  35. package/dist/client/assets/{Tool01-iak9ZtFE.js → Tool01-DDTjazFm.js} +1 -1
  36. package/dist/client/assets/{Tool02-CFu103hl.js → Tool02-BLokvBBs.js} +1 -1
  37. package/dist/client/assets/{Trash01-CpN6r-a0.js → Trash01-VGFb49EH.js} +1 -1
  38. package/dist/client/assets/{TrendUp01-DlYmFZ7k.js → TrendUp01-BPu5TWOk.js} +1 -1
  39. package/dist/client/assets/{Upload01-DkDsqCWe.js → Upload01-Cv7tN2NN.js} +1 -1
  40. package/dist/client/assets/{User01-CmNzW4kH.js → User01-BI5R-4Xj.js} +1 -1
  41. package/dist/client/assets/{UserSquare-1_FC93GE.js → UserSquare-C_kKkH0n.js} +1 -1
  42. package/dist/client/assets/{Users01-CVhfgklM.js → Users01-DVg45Kv0.js} +1 -1
  43. package/dist/client/assets/{X-DTaqHNcB.js → X-CvjnZl5e.js} +1 -1
  44. package/dist/client/assets/{XCircle-BR8ZZHlj.js → XCircle-CB3Q-O1t.js} +1 -1
  45. package/dist/client/assets/{XClose-VLid_ZSM.js → XClose-l9OyLGUl.js} +1 -1
  46. package/dist/client/assets/{Zap-D3d1wpzw.js → Zap-UqD0_RZa.js} +1 -1
  47. package/dist/client/assets/{ZoomOut-B3S7N50e.js → ZoomOut-Cq1zMqoM.js} +1 -1
  48. package/dist/client/assets/{access-gate-DAO7tJ5A.js → access-gate-eZrCTx42.js} +1 -1
  49. package/dist/client/assets/{add-connection-dialog-CaHZ3eeK.js → add-connection-dialog-CCnr4x54.js} +1 -1
  50. package/dist/client/assets/{agent-analytics-CzbWclRj.js → agent-analytics-BHAmS_Vv.js} +1 -1
  51. package/dist/client/assets/agent-app-0Lj8xuLI.js +1 -0
  52. package/dist/client/assets/{agent-assets-Dfpjbzyj.js → agent-assets-Dl566Cx2.js} +1 -1
  53. package/dist/client/assets/{agent-automation-C8r5_lAR.js → agent-automation-ZRwCzRyz.js} +1 -1
  54. package/dist/client/assets/{agent-automations-BSaV8k3Y.js → agent-automations-CcGv--oW.js} +1 -1
  55. package/dist/client/assets/{agent-connect-sources-AkHuiIU0.js → agent-connect-sources-DOCL0L4U.js} +1 -1
  56. package/dist/client/assets/agent-deck-EC_2q0-4.js +1 -0
  57. package/dist/client/assets/{agent-e2e-CjCqLXH1.js → agent-e2e-BheTu3sG.js} +1 -1
  58. package/dist/client/assets/{agent-experiments-4inK9Pvj.js → agent-experiments-DySEMnSa.js} +1 -1
  59. package/dist/client/assets/agent-file-CDMSSq77.js +1 -0
  60. package/dist/client/assets/{agent-git-BZmL1C91.js → agent-git-CGVI6Aq_.js} +1 -1
  61. package/dist/client/assets/{agent-hosting-CP9gImki.js → agent-hosting-CuK5vWln.js} +1 -1
  62. package/dist/client/assets/{agent-icon-D5Ih-I28.js → agent-icon-Du4foZ5w.js} +1 -1
  63. package/dist/client/assets/agent-library-file-CVu7KBHy.js +1 -0
  64. package/dist/client/assets/{agent-monitor-D7bE1AUL.js → agent-monitor-GtldlQaQ.js} +1 -1
  65. package/dist/client/assets/{agent-overview-C5zU0xJO.js → agent-overview-CV_KF9Yq.js} +1 -1
  66. package/dist/client/assets/agent-settings-S0BObv95.js +1 -0
  67. package/dist/client/assets/{agent-site-editor-BRzwUORk.js → agent-site-editor-DwI3mXwZ.js} +1 -1
  68. package/dist/client/assets/agent-site-editor-code-DHn9ldlr.js +2 -0
  69. package/dist/client/assets/{agent-site-editor-content-Da0JfE-w.js → agent-site-editor-content-B-s4vnUX.js} +2 -2
  70. package/dist/client/assets/{agent-site-editor-preview-DqMQfEJz.js → agent-site-editor-preview-BUdForMN.js} +3 -3
  71. package/dist/client/assets/agent-view-CMVA1gTC.js +1 -0
  72. package/dist/client/assets/{agent-view-guard-CmXIeKCe.js → agent-view-guard-O3WyIY56.js} +1 -1
  73. package/dist/client/assets/{agents-list-wHHXJTl8.js → agents-list-Bb_RX3Ji.js} +1 -1
  74. package/dist/client/assets/{ai-providers-COexxMGY.js → ai-providers-DDzOPCjm.js} +1 -1
  75. package/dist/client/assets/{alert-C_EPjsLF.js → alert-CXDlDd5b.js} +1 -1
  76. package/dist/client/assets/{alert-dialog-D6rlFoy0.js → alert-dialog-D2J-kRAV.js} +1 -1
  77. package/dist/client/assets/api-keys-CKnoL6XY.js +1 -0
  78. package/dist/client/assets/{api-keys-o45lgGkw.js → api-keys-DOy--osE.js} +1 -1
  79. package/dist/client/assets/app-editor-BHGu8CuE.js +1 -0
  80. package/dist/client/assets/{asset-utils-BG24FUsq.js → asset-utils-Bl8mgxfa.js} +1 -1
  81. package/dist/client/assets/{auth-B_QE3yd2.js → auth-DoQ4Nalq.js} +1 -1
  82. package/dist/client/assets/{auth-catchall-BM8U6OhG.js → auth-catchall-D5w-ZyXF.js} +1 -1
  83. package/dist/client/assets/{auth-entry-CdieewWf.js → auth-entry-DBl5DaPH.js} +1 -1
  84. package/dist/client/assets/{auth-split-layout-rKTEf0Lh.js → auth-split-layout-BgPxcBcB.js} +1 -1
  85. package/dist/client/assets/{authenticate-and-persist-oauth-Cm242zr2.js → authenticate-and-persist-oauth-CMWIzBXQ.js} +1 -1
  86. package/dist/client/assets/{automation-list-row-DDeJYMHS.js → automation-list-row-CdHBSjU2.js} +1 -1
  87. package/dist/client/assets/{automation-runs-BGXJk3-4.js → automation-runs-DkQGSYfz.js} +1 -1
  88. package/dist/client/assets/{automations-BhhOtnrs.js → automations-rIGMTqYL.js} +1 -1
  89. package/dist/client/assets/{autosend-DtYV6o0l.js → autosend-Bln98kNi.js} +1 -1
  90. package/dist/client/assets/{avatar-Dwn9Bjsb.js → avatar-1Yn634Bu.js} +1 -1
  91. package/dist/client/assets/{badge-BSirYRuD.js → badge-BMrNoDQF.js} +1 -1
  92. package/dist/client/assets/{block-document-DjxI0Nln.js → block-document-B0bO5MdC.js} +1 -1
  93. package/dist/client/assets/{blocks-preview-workspace-context-BwjlsTrq.js → blocks-preview-workspace-context-okcOywiO.js} +1 -1
  94. package/dist/client/assets/{breadcrumb-BpbnoaV3.js → breadcrumb-CzmrQK1U.js} +1 -1
  95. package/dist/client/assets/{buckets-DdptE4Pj.js → buckets-D85bhcTG.js} +1 -1
  96. package/dist/client/assets/{build-improve-prompt-doc-CIkgt5Ml.js → build-improve-prompt-doc-Jx4Nw8lc.js} +1 -1
  97. package/dist/client/assets/{bulk-category-panel-BUvAK76e.js → bulk-category-panel-Cpa3qfBq.js} +1 -1
  98. package/dist/client/assets/{calendar-Bhg3W8Dv.js → calendar-CDf47KON.js} +1 -1
  99. package/dist/client/assets/{capability-load-error-l-yxDu1W.js → capability-load-error-CG1OQua7.js} +1 -1
  100. package/dist/client/assets/category-editor-BzcQSv3B.js +1 -0
  101. package/dist/client/assets/{chart-B7hxFGKr.js → chart-Bcix-phJ.js} +1 -1
  102. package/dist/client/assets/{chat-context-CVZ1rNGo.js → chat-context-WkB72QDr.js} +1 -1
  103. package/dist/client/assets/{chat-draft-UIE-uNFd.js → chat-draft-anvjkrXf.js} +1 -1
  104. package/dist/client/assets/{checkbox-VSstjUSb.js → checkbox-Yo-_CoUr.js} +1 -1
  105. package/dist/client/assets/{choose-editor-DD3-fBUp.js → choose-editor-j32E7S6T.js} +1 -1
  106. package/dist/client/assets/{cli-auth-success-LIJhoLzG.js → cli-auth-success-Bz3RxiUp.js} +1 -1
  107. package/dist/client/assets/{client-icons-D8SzN11F.js → client-icons-BL2yc5kE.js} +1 -1
  108. package/dist/client/assets/{collapsible-BX137q_-.js → collapsible-Cz7g8j4s.js} +1 -1
  109. package/dist/client/assets/{collection-detail-Brbyx-hM.js → collection-detail-ChcpgbQd.js} +1 -1
  110. package/dist/client/assets/{collection-display-button-LAyYKy93.js → collection-display-button-Cqq95Rk5.js} +1 -1
  111. package/dist/client/assets/{collection-search-Dvf73igt.js → collection-search-DFM5AYUG.js} +1 -1
  112. package/dist/client/assets/{collection-table-wrapper-_ZnQA9Nx.js → collection-table-wrapper-DxZT2IDQ.js} +1 -1
  113. package/dist/client/assets/{collection-tabs-BW0egx-_.js → collection-tabs-CU5BwvHd.js} +1 -1
  114. package/dist/client/assets/{combobox-D6GclaQ-.js → combobox-5QbF4j2b.js} +1 -1
  115. package/dist/client/assets/{command-Dsz0XoYc.js → command-CY_32gBM.js} +1 -1
  116. package/dist/client/assets/{companion-mcps-section-D7ntAaGF.js → companion-mcps-section-C5Ce-Ae8.js} +1 -1
  117. package/dist/client/assets/{connect-ChX83wmI.js → connect-VHpAEDVp.js} +1 -1
  118. package/dist/client/assets/{connect-layout-SP9zSVi3.js → connect-layout-DosY7Ren.js} +1 -1
  119. package/dist/client/assets/{connection-2MR1zroe.js → connection-BtAmcsWV.js} +1 -1
  120. package/dist/client/assets/{connection-card-B5yTdNvS.js → connection-card-DNLyrdBM.js} +1 -1
  121. package/dist/client/assets/{connection-detail-DKOxQWbq.js → connection-detail-ByWc2VaQ.js} +1 -1
  122. package/dist/client/assets/{connection-form-helpers-PrMbwr2L.js → connection-form-helpers-pqXyLS21.js} +1 -1
  123. package/dist/client/assets/{connections-lQVX-uGO.js → connections-BLrf_knq.js} +1 -1
  124. package/dist/client/assets/{create-organization-dialog-Ccojws8S.js → create-organization-dialog-DqGp97lF.js} +1 -1
  125. package/dist/client/assets/{decofile-api-DygXY02K.js → decofile-api-C6MVAHgF.js} +1 -1
  126. package/dist/client/assets/{decopilot-rj_BJ_Z1.js → decopilot-C2LtkKnC.js} +1 -1
  127. package/dist/client/assets/{dialog-BKhaq-Xf.js → dialog-uPTcsM6n.js} +1 -1
  128. package/dist/client/assets/{discover-C_imFiZx.js → discover-D15TnXT7.js} +1 -1
  129. package/dist/client/assets/{domain-settings-CUKpZjNV.js → domain-settings-C4iSYJi_.js} +1 -1
  130. package/dist/client/assets/{download-app-dialog-wNu8nmu1.js → download-app-dialog-CSAHR0v5.js} +1 -1
  131. package/dist/client/assets/{drawer-CCmZWflK.js → drawer-CJhbJSjB.js} +1 -1
  132. package/dist/client/assets/{editor-DMij_Pa1.js → editor-DhWDdB15.js} +1 -1
  133. package/dist/client/assets/{empty-state-BDpfsfUL.js → empty-state-CvynDoal.js} +1 -1
  134. package/dist/client/assets/{empty-state-DiRnF-wA.js → empty-state-DATmbbqz.js} +1 -1
  135. package/dist/client/assets/{extract-connection-data-Bdk8iF2q.js → extract-connection-data-C-_k_HrX.js} +1 -1
  136. package/dist/client/assets/{feature-gate-KPNWzkBp.js → feature-gate-NGY-PlEE.js} +1 -1
  137. package/dist/client/assets/{feature-paywall-B3_no1lb.js → feature-paywall-C-R3YJVm.js} +1 -1
  138. package/dist/client/assets/{file-explorer-oIhs2jyB.js → file-explorer-CBVvygyV.js} +1 -1
  139. package/dist/client/assets/{file-preview-BFDgPeRr.js → file-preview-BQWchARE.js} +1 -1
  140. package/dist/client/assets/{file-share-button-7xy_ju8b.js → file-share-button-D6ndnz7e.js} +1 -1
  141. package/dist/client/assets/{file-type-icon-Co9lETmZ.js → file-type-icon-x1wD28_F.js} +1 -1
  142. package/dist/client/assets/{folder-icon-CPH1Bszw.js → folder-icon-BsGi9z8O.js} +1 -1
  143. package/dist/client/assets/{form-CxKBX2E3.js → form-CzXfgfFr.js} +1 -1
  144. package/dist/client/assets/{gateway-client-B8HHtBA6.js → gateway-client-_lcPratN.js} +1 -1
  145. package/dist/client/assets/{general-BXQ_6idC.js → general-CLxa6dw_.js} +1 -1
  146. package/dist/client/assets/{github-icon-DSeg1rga.js → github-icon-DD7YJLb0.js} +1 -1
  147. package/dist/client/assets/{home-FAOklPf6.js → home-Cc_gG_k0.js} +1 -1
  148. package/dist/client/assets/{hooks-CFjlhRX0.js → hooks-BDNT0Adb.js} +1 -1
  149. package/dist/client/assets/{hooks-BFlZlUD7.js → hooks-DdW3hvoh.js} +1 -1
  150. package/dist/client/assets/{icon-button-_3vMPXZp.js → icon-button-B9TVjSua.js} +1 -1
  151. package/dist/client/assets/{index-B3clFfYi.js → index--5W-89Xn.js} +1 -1
  152. package/dist/client/assets/{index-Coo4IGyG.js → index-Bb2NSQTG.js} +1 -1
  153. package/dist/client/assets/{index-BwwpOrcS.js → index-C5oMfVw1.js} +1 -1
  154. package/dist/client/assets/{index-CV2G6XgT.js → index-CQcZAkPo.js} +1 -1
  155. package/dist/client/assets/{index-DZmKVVGY.js → index-CdCeTCag.js} +1 -1
  156. package/dist/client/assets/{index-CC7J7MsT.js → index-DXBmCj7V.js} +2 -2
  157. package/dist/client/assets/{index-BrLZxE6-.js → index-DlTwltzZ.js} +1 -1
  158. package/dist/client/assets/{index-DoCuIH7r.js → index-DuEn4YkZ.js} +1 -1
  159. package/dist/client/assets/{index-Ci8CqfCi.js → index-Dud89Ecl.js} +1 -1
  160. package/dist/client/assets/{index-zFkCX32V.js → index-Oih4fNwt.js} +1 -1
  161. package/dist/client/assets/{index-D2HOssRq.js → index-U6uQHeCm.js} +1 -1
  162. package/dist/client/assets/{index-BcfYNZk_.js → index-VAuix8Ds.js} +1 -1
  163. package/dist/client/assets/{index-WfTG300W.js → index-VD5I0PAu.js} +1 -1
  164. package/dist/client/assets/{index-CxsDd08k.js → index-_1eIUhNB.js} +1 -1
  165. package/dist/client/assets/{index-redirect-BV59ZcWQ.js → index-redirect-BhYkN3DP.js} +1 -1
  166. package/dist/client/assets/{infiniteQueryObserver-CKT-6XMq.js → infiniteQueryObserver-DhQG5Ba-.js} +1 -1
  167. package/dist/client/assets/{infra-billing-RcXbwjta.js → infra-billing-CIY_y-NM.js} +1 -1
  168. package/dist/client/assets/{input-DSV_9cOM.js → input-CA3NO5_t.js} +1 -1
  169. package/dist/client/assets/{input-QKe7l082.js → input-Cl33QWb6.js} +1 -1
  170. package/dist/client/assets/{input-X38P96BY.js → input-DJ90IYpm.js} +1 -1
  171. package/dist/client/assets/{integration-icon-BARnXRTY.js → integration-icon-CAyUCGPQ.js} +1 -1
  172. package/dist/client/assets/{label-YKssz_GS.js → label-C_cX51We.js} +1 -1
  173. package/dist/client/assets/{last-preview-page-D5EFEwR4.js → last-preview-page-DolafzDL.js} +1 -1
  174. package/dist/client/assets/{layout-UcqeKFE9.js → layout-BDvTf5Y1.js} +1 -1
  175. package/dist/client/assets/{legacy-agents-deep-BYo-BuCs.js → legacy-agents-deep-CovYAG5o.js} +1 -1
  176. package/dist/client/assets/{legacy-main-redirect-NyVTUirL.js → legacy-main-redirect-DakI8WgO.js} +1 -1
  177. package/dist/client/assets/{library-FX2TKWir.js → library-CQOC6rOe.js} +1 -1
  178. package/dist/client/assets/{login-gigmbDXu.js → login-CzeMsg8T.js} +1 -1
  179. package/dist/client/assets/{markdown-tOSThun8.js → markdown-CqOP0_5N.js} +1 -1
  180. package/dist/client/assets/{mcp-app-renderer-c3JU3ROq.js → mcp-app-renderer-BrIoKm0G.js} +1 -1
  181. package/dist/client/assets/{mcp-oauth-Cr_ZflCp.js → mcp-oauth-ZZeDQKuh.js} +1 -1
  182. package/dist/client/assets/{members-Cd4baVfz.js → members-8jDg9Gt8.js} +1 -1
  183. package/dist/client/assets/{message-templates-Pr7m4Pgn.js → message-templates-D5TTMXdz.js} +1 -1
  184. package/dist/client/assets/{mini-report-page-0G8UQBMn.js → mini-report-page-VIPIzU0p.js} +1 -1
  185. package/dist/client/assets/{mock-board-Dw3AKqte.js → mock-board-DNOBo32D.js} +3 -3
  186. package/dist/client/assets/{monaco-editor-BhkNNN8A.js → monaco-editor-D3gyKeW5.js} +1 -1
  187. package/dist/client/assets/{monitoring-stats-row-D3wuHD5K.js → monitoring-stats-row-B2mHnjHP.js} +1 -1
  188. package/dist/client/assets/{multi-select-Bw9uE0vh.js → multi-select-DWjNtzij.js} +1 -1
  189. package/dist/client/assets/{mustache-BMe4E-3i.js → mustache-ChbLhy-e.js} +1 -1
  190. package/dist/client/assets/{oauth-callback-Ckn9o5ws.js → oauth-callback-PixJQkgi.js} +1 -1
  191. package/dist/client/assets/{oauth-callback-ai-provider-B7dYzzRe.js → oauth-callback-ai-provider-Bo-B7c2F.js} +1 -1
  192. package/dist/client/assets/{onboarding-BtLLloCy.js → onboarding-Ci-02n6u.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-8yO8-q3h.js → optimistic-project-sidebar-views-DXHATWeY.js} +1 -1
  194. package/dist/client/assets/{org-file-open-context-k2zY7W2A.js → org-file-open-context-B3uxBbrN.js} +1 -1
  195. package/dist/client/assets/{organization-choice-oi5kPDHh.js → organization-choice-DTNV4OA3.js} +1 -1
  196. package/dist/client/assets/{orgs-C8VfgzyW.js → orgs-T1j1ZJVH.js} +1 -1
  197. package/dist/client/assets/{page-seo-form-D-yemID7.js → page-seo-form-CEP8eX1I.js} +1 -1
  198. package/dist/client/assets/{pair-CbUh0olY.js → pair-BFIjmC4W.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-DR8Snnfh.js → plan-ladder-BGfca4Fl.js} +1 -1
  200. package/dist/client/assets/{popover-tYq49O5I.js → popover-B1-bCr3Y.js} +1 -1
  201. package/dist/client/assets/{post-calendar-n3g3NXQN.js → post-calendar-BJNEmWBL.js} +1 -1
  202. package/dist/client/assets/{post-editor-BCki1XwL.js → post-editor-CXDWBybn.js} +1 -1
  203. package/dist/client/assets/{preview-content-BEe_g5h_.js → preview-content-BJxZz0wL.js} +1 -1
  204. package/dist/client/assets/{preview-dialog-B88KWjD7.js → preview-dialog-tXexYYvy.js} +1 -1
  205. package/dist/client/assets/{primitives-DvNXO9ko.js → primitives-CVINQDcd.js} +1 -1
  206. package/dist/client/assets/{profile-Dn8W-1_J.js → profile-BDVO0CZL.js} +1 -1
  207. package/dist/client/assets/{project-app-view-CHIgEuQJ.js → project-app-view-D5WewSj0.js} +1 -1
  208. package/dist/client/assets/{project-feed-BeVLcst-.js → project-feed-BJK1cP5l.js} +1 -1
  209. package/dist/client/assets/{project-icon-BuTPt9Ec.js → project-icon-I77gr-pK.js} +1 -1
  210. package/dist/client/assets/project-reports-C-M11Ewx.js +1 -0
  211. package/dist/client/assets/project-tasks-DTM5l8Na.js +1 -0
  212. package/dist/client/assets/{prompts-BrLG0HnD.js → prompts-CMF-VFXI.js} +1 -1
  213. package/dist/client/assets/record-editor-D668-cnv.js +1 -0
  214. package/dist/client/assets/{redirect-editor-DQh1NXo4.js → redirect-editor-DIpeG6wi.js} +1 -1
  215. package/dist/client/assets/registry-BL1mut8w.js +2 -0
  216. package/dist/client/assets/{registry-layout-tLc7-FpU.js → registry-layout-BmUtYGzz.js} +1 -1
  217. package/dist/client/assets/{reports-Bgxd82xF.js → reports-B5M0xDyn.js} +1 -1
  218. package/dist/client/assets/reports-DZF0Eu6T.js +1 -0
  219. package/dist/client/assets/{reports-onboarding-BORIliYh.js → reports-onboarding-pRaIN0gW.js} +1 -1
  220. package/dist/client/assets/{reports-tab-3yvhtU-e.js → reports-tab-b87PNkNv.js} +2 -2
  221. package/dist/client/assets/{repositories-DnQQ93Vy.js → repositories-J4P1iWK3.js} +1 -1
  222. package/dist/client/assets/{repository-import-picker-B1zE1wEx.js → repository-import-picker-CxfUH2IT.js} +1 -1
  223. package/dist/client/assets/{repository-picker-DMUsWfjy.js → repository-picker-C84r9pEi.js} +1 -1
  224. package/dist/client/assets/{require-capability-B9l2cjC7.js → require-capability-nXjtpUGm.js} +1 -1
  225. package/dist/client/assets/{required-auth-layout-qQ6V67AS.js → required-auth-layout-D6L2B3lC.js} +1 -1
  226. package/dist/client/assets/{reset-password-CzGwWM54.js → reset-password-CnmRONVL.js} +1 -1
  227. package/dist/client/assets/{resizable-c-JEmBrU.js → resizable-DGvuTNz4.js} +1 -1
  228. package/dist/client/assets/{review-settings-CBDmCs9f.js → review-settings-0gzJBFQk.js} +1 -1
  229. package/dist/client/assets/{rich-text-link-control-B4QybUls.js → rich-text-link-control-D1jkHV9n.js} +1 -1
  230. package/dist/client/assets/{roles-9Q5Zr1_l.js → roles-D0xiAKmZ.js} +1 -1
  231. package/dist/client/assets/{route-D9feMXoH.js → route-BXepAEc1.js} +1 -1
  232. package/dist/client/assets/{route-Cyp-PzpR.js → route-CRwg4ev7.js} +1 -1
  233. package/dist/client/assets/{route-DrZOVBG5.js → route-D4AIZCoB.js} +1 -1
  234. package/dist/client/assets/{route-page-header-BzWw0nja.js → route-page-header-DPnz1U8f.js} +1 -1
  235. package/dist/client/assets/{runnable-block-editor-nQ69L6jb.js → runnable-block-editor-DPGvOiWb.js} +1 -1
  236. package/dist/client/assets/{sandbox-lifecycle-context-DLKr6QBG.js → sandbox-lifecycle-context-BrifGyM7.js} +1 -1
  237. package/dist/client/assets/{schema-CStbpjQf.js → schema-CQ48zDTU.js} +1 -1
  238. package/dist/client/assets/{scroll-area-BLDUQh9N.js → scroll-area-SUblEurA.js} +1 -1
  239. package/dist/client/assets/{search-input-MlNEh696.js → search-input-DN1HxMQM.js} +1 -1
  240. package/dist/client/assets/{search-toggle-SUy-5Oe0.js → search-toggle-0BP5lkY1.js} +1 -1
  241. package/dist/client/assets/{secrets-CEw0kB_t.js → secrets-BaKuwycc.js} +1 -1
  242. package/dist/client/assets/{sections-editor-l8Cc724N.js → sections-editor-AVazcTA0.js} +1 -1
  243. package/dist/client/assets/{select-C_C7jdl-.js → select-DOrOm388.js} +1 -1
  244. package/dist/client/assets/{select-model-FW_XGeEU.js → select-model-BYr7h8L7.js} +1 -1
  245. package/dist/client/assets/{seo-editor-BhZJvD6-.js → seo-editor-Byp247PA.js} +1 -1
  246. package/dist/client/assets/{separator-D-DaNCb-.js → separator-CId9iV2J.js} +1 -1
  247. package/dist/client/assets/{settings-tab-DhuuexRq.js → settings-tab-BG8Rq5w6.js} +1 -1
  248. package/dist/client/assets/{sheet-B5ncClVO.js → sheet-DlPfrw9X.js} +1 -1
  249. package/dist/client/assets/{shell-layout-p-WJ7uxl.js → shell-layout-BDka9RLc.js} +1 -1
  250. package/dist/client/assets/{sidebar-BlfpAzXY.js → sidebar-6rO43IUN.js} +1 -1
  251. package/dist/client/assets/{skill-preview-CeIBKDR2.js → skill-preview-Co5VzFcl.js} +1 -1
  252. package/dist/client/assets/{skills-Cpf0zAbB.js → skills-BjII2RGG.js} +1 -1
  253. package/dist/client/assets/{sso-CYe8kGWS.js → sso-DisHvnNZ.js} +1 -1
  254. package/dist/client/assets/{store-DDl3lPqK.js → store-CFvcGu_A.js} +1 -1
  255. package/dist/client/assets/store-registry-ap1IeTES.js +2 -0
  256. package/dist/client/assets/{switch-C_FmZ5Us.js → switch-BV-MyRQN.js} +1 -1
  257. package/dist/client/assets/{synced-repos-DHbM7OOb.js → synced-repos-DQ8WQsrQ.js} +1 -1
  258. package/dist/client/assets/{table-mH2G1tkg.js → table-zCmjz1mf.js} +1 -1
  259. package/dist/client/assets/{tabs-jjUOgDeE.js → tabs-tFCunu6d.js} +1 -1
  260. package/dist/client/assets/{task-board-BtEMyO1f.js → task-board-D3lC_1Th.js} +1 -1
  261. package/dist/client/assets/{task-route-BaALoopn.js → task-route-Bcy3o1uq.js} +1 -1
  262. package/dist/client/assets/{task-status-CCMsckzm.js → task-status-DZ2zcnv8.js} +1 -1
  263. package/dist/client/assets/{taskboard-analytics-CzQSxt8I.js → taskboard-analytics-DN3ZXOV0.js} +1 -1
  264. package/dist/client/assets/tasks-C6FPIHKX.js +1 -0
  265. package/dist/client/assets/{tasks-K4e2STZ0.js → tasks-fYEHHw5V.js} +1 -1
  266. package/dist/client/assets/{textarea-B7wqTmSc.js → textarea-D-6K9r19.js} +1 -1
  267. package/dist/client/assets/{thread-button-B9U3gqvP.js → thread-button-DD23ms1j.js} +1 -1
  268. package/dist/client/assets/{thread-intent-DZx7N_NL.js → thread-intent-vrMbWjYP.js} +1 -1
  269. package/dist/client/assets/{thread-route-B3hhxYHj.js → thread-route-BSTJ2qPY.js} +1 -1
  270. package/dist/client/assets/{thread-route-DnE31jZ2.js → thread-route-QtII8A2p.js} +1 -1
  271. package/dist/client/assets/{thread-sheet-body-D_py0jIP.js → thread-sheet-body-KQlmfRxf.js} +1 -1
  272. package/dist/client/assets/{toggle-group-C-J6fFSZ.js → toggle-group-XcXQjaHX.js} +1 -1
  273. package/dist/client/assets/{toolbar-icon-button-DQAUOhdv.js → toolbar-icon-button-BIBFTsar.js} +1 -1
  274. package/dist/client/assets/{tooltip-DSCGYdw1.js → tooltip-rAdo_tRS.js} +1 -1
  275. package/dist/client/assets/{track-BWEjISsx.js → track-DmnUsSfo.js} +1 -1
  276. package/dist/client/assets/{types-BQYrCHfb.js → types-CzTQ99AX.js} +1 -1
  277. package/dist/client/assets/{usage-stats-CH100JwP.js → usage-stats-CYrj10jy.js} +1 -1
  278. package/dist/client/assets/{use-ai-providers-DPIPADTm.js → use-ai-providers-BwceVIHL.js} +1 -1
  279. package/dist/client/assets/{use-automations-Cm_whz3Q.js → use-automations-LlaDJlNA.js} +1 -1
  280. package/dist/client/assets/{use-autosave-C09DCahC.js → use-autosave-DVR2xqFT.js} +1 -1
  281. package/dist/client/assets/{use-connect-companion-D45RJA2C.js → use-connect-companion-C-xpH0dL.js} +1 -1
  282. package/dist/client/assets/{use-connection-DAR6kA6F.js → use-connection-BN3cT5kd.js} +1 -1
  283. package/dist/client/assets/{use-copy-CLZ5Gmjm.js → use-copy-Dcx9tDN2.js} +1 -1
  284. package/dist/client/assets/{use-create-virtual-mcp-DlDbTDWh.js → use-create-virtual-mcp-9-NMNx3_.js} +1 -1
  285. package/dist/client/assets/{use-date-fns-locale-4a1GuGUG.js → use-date-fns-locale-CDbheytD.js} +1 -1
  286. package/dist/client/assets/{use-debounced-autosave-s6ooboiq.js → use-debounced-autosave-DvQCb6wJ.js} +1 -1
  287. package/dist/client/assets/{use-debounced-value-C7PP6GCc.js → use-debounced-value-CfEN0fzg.js} +1 -1
  288. package/dist/client/assets/{use-deco-credits-C78gqYYg.js → use-deco-credits-6yJRZ2JQ.js} +1 -1
  289. package/dist/client/assets/{use-decopilot-events-DDN9tgML.js → use-decopilot-events-R9ZDtZrh.js} +1 -1
  290. package/dist/client/assets/{use-delete-connection-DT4K_5dd.js → use-delete-connection-BodmL1FQ.js} +1 -1
  291. package/dist/client/assets/{use-deployment-admin-mukdSbJI.js → use-deployment-admin-C884vS-k.js} +1 -1
  292. package/dist/client/assets/{use-entitlements-CsT7-WMV.js → use-entitlements-Dx7XqEcC.js} +1 -1
  293. package/dist/client/assets/{use-fast-preview-draft-url-BofBOVEy.js → use-fast-preview-draft-url-CAOVYx78.js} +1 -1
  294. package/dist/client/assets/{use-file-configs-DT6Slpub.js → use-file-configs-BJjPt2Ut.js} +1 -1
  295. package/dist/client/assets/{use-in-settings-BuwNY17C.js → use-in-settings-Bx-OzfKC.js} +1 -1
  296. package/dist/client/assets/{use-infinite-scroll-BEJH1fno.js → use-infinite-scroll-CWWIqkZ2.js} +1 -1
  297. package/dist/client/assets/{use-join-requests-CRlXrVsN.js → use-join-requests-gm28lnmh.js} +1 -1
  298. package/dist/client/assets/{use-main-panel-tabs-CHXW72tt.js → use-main-panel-tabs-Dcfn9hBK.js} +1 -1
  299. package/dist/client/assets/{use-mcp-auth-status-BUHt6LYh.js → use-mcp-auth-status-CwUBv4Hm.js} +1 -1
  300. package/dist/client/assets/{use-mcp-client-jmamuSRM.js → use-mcp-client-BtmoWWkf.js} +1 -1
  301. package/dist/client/assets/{use-mcp-prompts-Cb12ACl6.js → use-mcp-prompts-BkeLGKHx.js} +1 -1
  302. package/dist/client/assets/{use-mcp-tools-U5kwqIN7.js → use-mcp-tools-B84418Zt.js} +1 -1
  303. package/dist/client/assets/{use-members-CZk_logh.js → use-members-DOLKWeYn.js} +1 -1
  304. package/dist/client/assets/{use-mobile-X_9uHXB5.js → use-mobile-CRuuooNM.js} +1 -1
  305. package/dist/client/assets/{use-navigate-to-agent-XZHI0vTx.js → use-navigate-to-agent-DIpRW39A.js} +1 -1
  306. package/dist/client/assets/{use-open-billing-url-BygdFnSn.js → use-open-billing-url-C5SPvsb8.js} +1 -1
  307. package/dist/client/assets/{use-org-auth-client-6spdYft8.js → use-org-auth-client-TdQ8MWNM.js} +1 -1
  308. package/dist/client/assets/{use-org-fs-C4AEj3YR.js → use-org-fs-DnKhdb5t.js} +1 -1
  309. package/dist/client/assets/{use-org-repo-syncs-D5-YS2q1.js → use-org-repo-syncs-DJd41R4N.js} +1 -1
  310. package/dist/client/assets/{use-org-sso-CbtWg6df.js → use-org-sso-D6hDWGLC.js} +1 -1
  311. package/dist/client/assets/{use-organization-roles-B2NYy6qP.js → use-organization-roles-BXwewduE.js} +1 -1
  312. package/dist/client/assets/{use-organization-settings-DiOLzOn-.js → use-organization-settings-yjdHHrMs.js} +1 -1
  313. package/dist/client/assets/{use-panel-navigate-YnjVvVnu.js → use-panel-navigate-DEBeb2CL.js} +1 -1
  314. package/dist/client/assets/{use-project-native-view-presence-S2GuqygD.js → use-project-native-view-presence-CHdUtv7D.js} +1 -1
  315. package/dist/client/assets/{use-project-scope-azWGklpf.js → use-project-scope-DHl6lLqa.js} +1 -1
  316. package/dist/client/assets/{use-registry-connections-Dr6Tl0jy.js → use-registry-connections-B13lXSQz.js} +1 -1
  317. package/dist/client/assets/{use-releases-sRilJRv7.js → use-releases-CASa78Vi.js} +1 -1
  318. package/dist/client/assets/{use-reports-diagnostic-b56ze7yP.js → use-reports-diagnostic-jdgV6F3e.js} +1 -1
  319. package/dist/client/assets/{use-route-default-main-DAXdKSA3.js → use-route-default-main-DSxGO_aw.js} +1 -1
  320. package/dist/client/assets/{use-secrets-BD25jCAi.js → use-secrets-B-9J9EkQ.js} +1 -1
  321. package/dist/client/assets/{use-section-preview-base-CfKeOl7s.js → use-section-preview-base-Di3xgtD1.js} +1 -1
  322. package/dist/client/assets/{use-session-runtime-D8PgcjtK.js → use-session-runtime-Dc42TY0X.js} +1 -1
  323. package/dist/client/assets/{use-tags-DMzy8m-k.js → use-tags-CCJJRf2p.js} +1 -1
  324. package/dist/client/assets/{use-task-board-analytics-BXM0SDto.js → use-task-board-analytics-CK3_uAaU.js} +1 -1
  325. package/dist/client/assets/{use-task-metadata-IzJB5PVG.js → use-task-metadata-jNANkRmK.js} +1 -1
  326. package/dist/client/assets/{use-thread-outputs-BhhE_Gkc.js → use-thread-outputs-BoiojEnU.js} +1 -1
  327. package/dist/client/assets/{use-view-mode-CUHkIbeG.js → use-view-mode-D8IEchi6.js} +1 -1
  328. package/dist/client/assets/{use-virtual-mcp-Bt7oX0ej.js → use-virtual-mcp-2UFz9K4W.js} +1 -1
  329. package/dist/client/assets/useInfiniteQuery-Bvk6obSJ.js +1 -0
  330. package/dist/client/assets/{useQueries-D7ondynP.js → useQueries-thkmee8L.js} +1 -1
  331. package/dist/client/assets/useSuspenseInfiniteQuery-7JvmV8My.js +1 -0
  332. package/dist/client/assets/{users-CP4Dfulp.js → users-BGtd_KGY.js} +1 -1
  333. package/dist/client/assets/{utils-CcX7wgow.js → utils-1s66UjII.js} +1 -1
  334. package/dist/client/assets/{variant-calendar-BYxVe-PM.js → variant-calendar-Dg9C2UkW.js} +1 -1
  335. package/dist/client/assets/{variant-matcher-override-CgX58Kkx.js → variant-matcher-override-DquKUvoE.js} +1 -1
  336. package/dist/client/assets/{view-mode-toggle-CRnJAx40.js → view-mode-toggle-CJQ43vUA.js} +1 -1
  337. package/dist/client/assets/{virtual-mcp-BWl8nlWy.js → virtual-mcp-Be7V69gW.js} +1 -1
  338. package/dist/client/index.html +1 -1
  339. package/dist/server/cli.js +597 -597
  340. package/dist/server/server.js +392 -392
  341. package/package.json +1 -1
  342. package/dist/client/assets/agent-app-DqzssWfL.js +0 -1
  343. package/dist/client/assets/agent-deck-BQOqb5JA.js +0 -1
  344. package/dist/client/assets/agent-file-CN4CJx4b.js +0 -1
  345. package/dist/client/assets/agent-library-file-CMtJlgeS.js +0 -1
  346. package/dist/client/assets/agent-settings-G7qQl7Yj.js +0 -1
  347. package/dist/client/assets/agent-site-editor-code-BV4iQvoi.js +0 -2
  348. package/dist/client/assets/agent-view-BinIwia6.js +0 -1
  349. package/dist/client/assets/api-keys-CN-jy2XH.js +0 -1
  350. package/dist/client/assets/app-editor-BPKOcfIg.js +0 -1
  351. package/dist/client/assets/category-editor-Crlp5xLx.js +0 -1
  352. package/dist/client/assets/project-reports-EFWj1j4Z.js +0 -1
  353. package/dist/client/assets/project-tasks-DGYfz1Ev.js +0 -1
  354. package/dist/client/assets/record-editor-AST5wQoO.js +0 -1
  355. package/dist/client/assets/registry-FGkay0Wa.js +0 -2
  356. package/dist/client/assets/reports-CqtPOzss.js +0 -1
  357. package/dist/client/assets/store-registry-DUH5xq3l.js +0 -2
  358. package/dist/client/assets/tasks-CI20rxb_.js +0 -1
  359. package/dist/client/assets/useInfiniteQuery-zZoTJbYm.js +0 -1
  360. package/dist/client/assets/useSuspenseInfiniteQuery-BvOl5Id0.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-CC7J7MsT.js";import{i as k}from"./X-DTaqHNcB.js";function E(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(y,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function z(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(w,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function O(o){const e=n.c(20);let t,s,a,l,c;e[0]!==o?({className:s,children:t,side:l,hideCloseButton:c,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=c):(t=e[1],s=e[2],a=e[3],l=e[4],c=e[5]);const p=l===void 0?"right":l,h=c===void 0?!1:c;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(R,{}),e[6]=m):m=e[6];const x=p==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",b=p==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",g=p==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",j=p==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[7]!==s||e[8]!==x||e[9]!==b||e[10]!==g||e[11]!==j?(r=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",x,b,g,j,s),e[7]=s,e[8]=x,e[9]=b,e[10]=g,e[11]=j,e[12]=r):r=e[12];let d;e[13]!==h?(d=!h&&i.jsxs(C,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 classic:rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none compact:rounded-lg",children:[i.jsx(k,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=h,e[14]=d):d=e[14];let u;return e[15]!==t||e[16]!==a||e[17]!==r||e[18]!==d?(u=i.jsxs(z,{children:[m,i.jsxs(S,{"data-slot":"sheet-content",className:r,...a,children:[t,d]})]}),e[15]=t,e[16]=a,e[17]=r,e[18]=d,e[19]=u):u=e[19],u}function P(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(N,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(v,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{T as S,O as a,E as b,P as c,_ as d};
1
+ import{c as n,l as f,j as i,bg as N,bf as y,as as S,bh as v,bi as $,bl as C,bk as w}from"./index-DXBmCj7V.js";import{i as k}from"./X-CvjnZl5e.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-CC7J7MsT.js";import{A as it}from"./avatar-Dwn9Bjsb.js";import{t as Et}from"./Globe04-1G-_QSZW.js";import{i as bn}from"./SearchLg-CT-Vntfj.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-D5Ih-I28.js";import{s as _n}from"./XClose-VLid_ZSM.js";import{D as An}from"./download-app-dialog-wNu8nmu1.js";import{a as Pn,u as Cn}from"./use-project-scope-azWGklpf.js";import{u as Ot,a as En}from"./use-panel-navigate-YnjVvVnu.js";import{i as ae}from"./CheckCircle-GwUJIVVh.js";import{i as bt}from"./Tool02-CFu103hl.js";import{i as lt}from"./Monitor01-CQaKbr3c.js";import{i as re}from"./Zap-D3d1wpzw.js";import{c as It,d as Lt,b as $t,D as Dt,h as On,e as In}from"./dialog-BKhaq-Xf.js";import{i as Ln}from"./Share07-Bw4Wicv2.js";import{s as xt}from"./Plus-BjOenFFb.js";import{a as $n}from"./Settings02-DH86cX_B.js";import{b as le,a as Ge,f as Dn,e as Rn,c as Mn,C as Fn}from"./command-Dsz0XoYc.js";import{I as zn}from"./integration-icon-BARnXRTY.js";import{P as qn}from"./project-icon-BuTPt9Ec.js";import{a as Bn,m as Kn}from"./use-mcp-client-jmamuSRM.js";import{S as Hn,u as Un}from"./hooks-BFlZlUD7.js";import{u as Gn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Jn}from"./required-auth-layout-qQ6V67AS.js";import{A as Vn}from"./autosend-DtYV6o0l.js";import{u as Wn,a as Yn,b as Qn,c as Xn}from"./thread-route-DnE31jZ2.js";import{b as Zn}from"./use-organization-settings-DiOLzOn-.js";import{u as es}from"./use-org-sso-CbtWg6df.js";function ts(t){const e=R.c(49),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let d;e[0]!==r||e[1]!==i?(d=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=d):d=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=k=>{Ve.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let v;e[7]!==d||e[8]!==m||e[9]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[7]=d,e[8]=m,e[9]=h,e[10]=v):v=e[10];const c=Ye(v),b=ns;let p;e[11]!==o||e[12]!==s?(p=o?n.jsx(it,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Et,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=s,e[13]=p):p=e[13];let l;e[14]!==s||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let u;e[19]!==a||e[20]!==i?(u=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=u):u=e[21];let x;e[22]!==u?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[22]=u,e[23]=x):x=e[23];let S;e[24]!==f||e[25]!==x?(S=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=S):S=e[26];let y;e[27]!==c?(y=()=>c.mutate(),e[27]=c,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(F,{onClick:y,disabled:c.isPending,children:w}),e[33]=c.isPending,e[34]=y,e[35]=w,e[36]=_):_=e[36];const P=c.isPending;let N;e[37]!==i?(N=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(F,{variant:"ghost",onClick:b,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==_||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=g):g=e[44];let T;return e[45]!==S||e[46]!==g||e[47]!==p?(T=n.jsxs(me,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function ns(){window.location.href="/"}function St(t){const e=R.c(25),{orgSlug:s,orgName:r,reason:o}=t,a=W(),i=ss,d=o==="not-found",m=d?bn:Tt;let h;e[0]!==d||e[1]!==a?(h=a(d?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=d,e[1]=a,e[2]=h):h=e[2];const v=h;let c;e[3]!==d||e[4]!==r||e[5]!==s||e[6]!==a?(c=d?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??s}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=d,e[4]=r,e[5]=s,e[6]=a,e[7]=c):c=e[7];const b=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==b?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=f):f=e[13];let u;e[14]!==l||e[15]!==f?(u=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=u):u=e[16];let x;e[17]!==a?(x=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=x):x=e[18];let S;e[19]!==x?(S=n.jsx(F,{onClick:i,children:x}),e[19]=x,e[20]=S):S=e[20];let y;return e[21]!==p||e[22]!==u||e[23]!==S?(y=n.jsxs(me,{children:[p,u,S]}),e[21]=p,e[22]=u,e[23]=S,e[24]=y):y=e[24],y}function ss(){window.location.href="/"}function os(t){const e=R.c(59),{invitationId:s,orgName:r,orgSlug:o,orgLogo:a}=t,i=W();let d;e[0]!==s?(d=async()=>{const I=await Ke.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=d):d=e[1];let m;e[2]!==o?(m=()=>{Vt(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let h;e[4]!==i?(h=I=>{Ve.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let v;e[6]!==d||e[7]!==m||e[8]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[6]=d,e[7]=m,e[8]=h,e[9]=v):v=e[9];const c=Ye(v);let b;e[10]!==s?(b=async()=>{const I=await Ke.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ve.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=I=>{Ve.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==b||e[16]!==p||e[17]!==l?(f={mutationFn:b,onSuccess:p,onError:l},e[15]=b,e[16]=p,e[17]=l,e[18]=f):f=e[18];const u=Ye(f),x=c.isPending||u.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(it,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(xn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=S):S=e[21];let y;e[22]!==r||e[23]!==i?(y=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=y):y=e[24];let w;e[25]!==y?(w=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[25]=y,e[26]=w):w=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let N;e[31]!==w||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[w,P]}),e[31]=w,e[32]=P,e[33]=N):N=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let g;e[36]!==c.isPending||e[37]!==i?(g=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=g):g=e[38];let T;e[39]!==x||e[40]!==j||e[41]!==g?(T=n.jsx(F,{onClick:j,disabled:x,children:g}),e[39]=x,e[40]=j,e[41]=g,e[42]=T):T=e[42];let k;e[43]!==u?(k=()=>u.mutate(),e[43]=u,e[44]=k):k=e[44];let A;e[45]!==u.isPending||e[46]!==i?(A=u.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=u.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==x||e[49]!==k||e[50]!==A?(E=n.jsx(F,{variant:"ghost",onClick:k,disabled:x,children:A}),e[48]=x,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==T||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,E]}),e[52]=T,e[53]=E,e[54]=C):C=e[54];let O;return e[55]!==N||e[56]!==C||e[57]!==S?(O=n.jsxs(me,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=O):O=e[58],O}function is(t){const e=R.c(23),{orgName:s,orgLogo:r}=t,o=W();let a;e[0]!==r||e[1]!==s?(a=r?n.jsx(it,{url:r,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Sn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=s,e[2]=a):a=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let d;e[5]!==i?(d=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=d):d=e[6];let m;e[7]!==s||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let v;e[12]!==d||e[13]!==h?(v=n.jsxs("div",{className:"space-y-2",children:[d,h]}),e[12]=d,e[13]=h,e[14]=v):v=e[14];let c;e[15]!==o?(c=o("common.requestPendingScreen.goHome"),e[15]=o,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(F,{variant:"ghost",onClick:as,children:c}),e[17]=c,e[18]=b):b=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==b?(p=n.jsxs(me,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function as(){window.location.href="/"}function rs(t){const e=R.c(45),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let d;e[0]!==r?(d=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await T.json();if(!T.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=d):d=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ve.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let v;e[5]!==d||e[6]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[5]=d,e[6]=h,e[7]=v):v=e[7];const c=Ye(v);let b;e[8]!==o||e[9]!==s?(b=o?n.jsx(it,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Et,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=b):b=e[10];let p;e[11]!==s||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let u;e[19]!==f?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=u):u=e[20];let x;e[21]!==l||e[22]!==u?(x=n.jsxs("div",{className:"space-y-2",children:[l,u]}),e[21]=l,e[22]=u,e[23]=x):x=e[23];let S;e[24]!==c?(S=()=>c.mutate(),e[24]=c,e[25]=S):S=e[25];let y;e[26]!==c.isPending||e[27]!==i?(y=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==S||e[31]!==y?(w=n.jsx(F,{onClick:S,disabled:c.isPending,children:y}),e[29]=c.isPending,e[30]=S,e[31]=y,e[32]=w):w=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(F,{variant:"ghost",onClick:ls,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==w||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,N]}),e[38]=w,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==x||e[42]!==j||e[43]!==b?(g=n.jsxs(me,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=R.c(7);let s;e[0]!==t?(s=Ue.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let o;return e[4]!==s||e[5]!==r?(o={queryKey:s,queryFn:r,refetchOnWindowFocus:!1},e[4]=s,e[5]=r,e[6]=o):o=e[6],Nt(o)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Wt()?.org===t&&Yt();const s=localStorage.getItem(Be.lastOrgSlug())===t;if(s&&localStorage.removeItem(Be.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(St,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Rt(t){const e=R.c(42),{ariaLabel:s,dismissLabel:r,eyebrow:o,title:a,description:i,icon:d,children:m,footerLeading:h,actions:v,onDismiss:c,tone:b}=t,p=b===void 0?"neutral":b,l=h||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(_n,{size:14}),e[2]=u):u=e[2];let x;e[3]!==r||e[4]!==c?(x=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:u}),e[3]=r,e[4]=c,e[5]=x):x=e[5];const S=d&&"flex items-start gap-3",y=m&&"pb-3";let w;e[6]!==S||e[7]!==y?(w=ct("p-4 pr-11",S,y),e[6]=S,e[7]=y,e[8]=w):w=e[8];let _;e[9]!==d?(_=d&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:d}),e[9]=d,e[10]=_):_=e[10];let P;e[11]!==o?(P=o&&n.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=P):P=e[12];let N;e[13]!==a?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=N):N=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==P?(g=n.jsxs("div",{children:[P,N,j]}),e[17]=N,e[18]=j,e[19]=P,e[20]=g):g=e[20];let T;e[21]!==m?(T=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=T):T=e[22];let k;e[23]!==g||e[24]!==T?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,T]}),e[23]=g,e[24]=T,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==w||e[28]!==_?(A=n.jsxs("div",{className:w,children:[_,k]}),e[26]=k,e[27]=w,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==h||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:ct("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=h,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==s||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,E]}),e[35]=s,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ms={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Mt(t){return`[data-tour="${ms[t]}"]`}const fs=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function gs(t){return fs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function hs(t,e){return gs(e).map(s=>({element:Mt(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const ps=Mt("switcher"),ys=30;function Ft(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function bs(t,e){return hs(t,e).filter(s=>typeof s.element=="string"&&Ft(s.element))}function xs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:r})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>r.destroy()),s.footerButtons.insertBefore(o,s.footerButtons.firstChild)},onDestroyed:()=>{Je=!1},steps:e}}let Je=!1;async function Ss(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function ws(t,e){if(Je)return;Je=!0;let s=0;const r=()=>{if(!Ft(ps)&&s++<ys){requestAnimationFrame(r);return}const o=bs(t,e);if(o.length===0){Je=!1;return}Ss().then(a=>{a(xs(t,o)).drive()}).catch(()=>{Je=!1})};r()}function vs(t){return t!=="off"}function ai(t){if(!t.hasSource)return[];const e=["site-editor"];return vs(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ri(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const js=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:ht,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:te,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:lt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"native-app-linux-beta",date:"2026-08-20",eyebrow:"Now Available",title:"Studio for Linux is now in beta",bullets:[{icon:lt,title:"Native Linux desktop app",body:"Studio now ships as an AppImage for 64-bit x86 Linux, bringing the local desktop workflow to Linux."},{icon:ae,title:"Verified, no-root install",body:"The installer verifies the download, installs Studio to ~/.local/bin, and adds it to your application launcher without sudo."},{icon:re,title:"Beta today, broader support next",body:"We're validating more distributions and desktop environments. Arm builds are not available yet, and your feedback will shape general availability."}],cta:{label:"Install Studio",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases/tag/native-v4.242.0"},{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:re,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:te,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:Xt,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:lt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:te,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ae,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:re,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:te,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ae,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:re,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ae,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:te,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:re,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:te,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ae,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:te,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ae,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:te,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:bt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ae,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ht,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:re,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ae,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:te,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:bt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:te,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:wn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],qt=js,ot="studio.release-feed.v1",ut=new Set;let de="",ue={},mt=!1;function ks(){if(mt)return de||"{}";try{return localStorage.getItem(ot)??"{}"}catch{return de||"{}"}}function Bt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=ks();return t!==de&&(de=t,ue=Bt(t)),ue}function Ts(t){ut.add(t);const e=s=>{if(!(s.key!==ot&&s.key!==null)){try{const r=localStorage.getItem(ot)??"{}",a={...Bt(r),...ue};ue=a,de=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{ut.delete(t),window.removeEventListener("storage",e)}}function Ns(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(ot,de),mt=!1}catch{mt=!0}ut.forEach(e=>e())}function _s(){const t=R.c(7),e=V.useSyncExternalStore(Ts,wt,wt);let s;t[0]!==e?(s=m=>!!e[m],t[0]=e,t[1]=s):s=t[1];const r=s,o=As;let a;t[2]!==e?(a=qt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let d;return t[4]!==r||t[5]!==i?(d={isSeen:r,markSeen:o,unseenCount:i},t[4]=r,t[5]=i,t[6]=d):d=t[6],d}function As(t){ue[t]||Ns({...ue,[t]:{seenAt:new Date().toISOString()}})}const Ps=720*60*60*1e3,Cs=10080*60*1e3;function Es(t){const[e,s,r]=t.split("-").map(Number);return!e||!s||!r?new Date(t).getTime():new Date(e,s-1,r).getTime()}function Os(t){const e=qt[0];if(!e)return null;const s=Es(e.date),r=t-s;return r<0||r>Ps?null:e}function Is(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ls(t,e){const s=Is(t);return s===null?!1:e-s>=Cs}function $s(){const t=R.c(52),e=W(),s=Pn(),r=Zt(),o=Ot(),a=!!s,i=r===ie.home&&!s;let d;t[0]!==o||t[1]!==a?(d=a&&!!o&&zt(o),t[0]=o,t[1]=a,t[2]=d):d=t[2];const m=d,{data:h}=Ke.useSession(),{isSeen:v,markSeen:c}=_s(),[b,p]=V.useState(!1);let l,f,u;if(t[3]!==v||t[4]!==h?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{const O=Date.now();if(l=Os(O),!l){u=null;break e}if(!Ls(h?.user?.createdAt,O)){u=null;break e}f=v(l.id)}t[3]=v,t[4]=h?.user?.createdAt,t[5]=l,t[6]=f,t[7]=u}else l=t[5],f=t[6],u=t[7];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(f)return null;let x;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(x=()=>{c(l.id),ws(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=x):x=t[14];const S=x;let y;t[15]!==e?(y=e("announcements.release.ariaLabel"),t[15]=e,t[16]=y):y=t[16];let w;t[17]!==e?(w=e("announcements.release.dismiss"),t[17]=e,t[18]=w):w=t[18];const _=l.eyebrow,P=l.title;let N;t[19]!==l.id||t[20]!==c?(N=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=N):N=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let g;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==S?(g=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>c(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):l.cta.action==="start-tour"?n.jsx(F,{size:"sm",onClick:S,children:l.cta.label}):n.jsx(F,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=S,t[31]=g):g=t[31];let T;t[32]!==l.bullets?(T=l.bullets.map(Ds),t[32]=l.bullets,t[33]=T):T=t[33];let k;t[34]!==T?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:T}),t[34]=T,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=O=>{p(O),O||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==b||t[40]!==A?(E=n.jsx(An,{open:b,onOpenChange:A}),t[39]=b,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==g||t[45]!==k||t[46]!==E||t[47]!==y||t[48]!==w||t[49]!==N||t[50]!==j?(C=n.jsxs(Rt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,onDismiss:N,footerLeading:j,actions:g,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=g,t[45]=k,t[46]=E,t[47]=y,t[48]=w,t[49]=N,t[50]=j,t[51]=C):C=t[51],C}function Ds(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Kt=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Kt?"⌘":"Ctrl",J={commandPalette:{keys:[ce,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[ce,"["],description:"Back to previous"},focusChatInput:{keys:[ce,"L"],description:"Focus chat input"},saveAndFormat:{keys:[ce,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[ce,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[ce,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",ce,"S"],description:"New task"},toggleDaemon:{keys:[ce,"D"],description:"Toggle daemon logs"}},Rs=[{label:"General",shortcuts:[J.commandPalette,J.keyboardShortcuts,J.back,J.newTask,J.toggleDaemon]},{label:"Editor",shortcuts:[J.saveAndFormat]},{label:"Chat",shortcuts:[J.focusChatInput,J.togglePlanMode,J.sendMessage,J.newLine]},{label:"Questions",shortcuts:[J.selectOption]},{label:"Monitoring",shortcuts:[J.applyFilter]}];function vt(t){return Kt?t.metaKey:t.ctrlKey}function Ms(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function Fs(t){const e=R.c(11),{open:s,onOpenChange:r}=t,o=W();let a;e[0]!==o?(a=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(It,{children:n.jsx(Lt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"flex flex-col gap-4",children:Rs.map(zs)}),e[4]=d):d=e[4];let m;e[5]!==i?(m=n.jsxs($t,{className:"sm:max-w-md",children:[i,d]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==s||e[9]!==m?(h=n.jsx(Dt,{open:s,onOpenChange:r,children:m}),e[7]=r,e[8]=s,e[9]=m,e[10]=h):h=e[10],h}function zs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(qs)})]},t.label)}function qs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Bs)})]},t.description)}function Bs(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const jt=8;function Ks(t){const{org:e}=ft(),s=Bn({connectionId:At,orgId:e.id,orgSlug:e.slug}),{data:r}=He({queryKey:Ue.globalSearch(e.id,t,jt),enabled:!!s&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!s)return[];try{return(await s.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Hs(t){const e=R.c(195),{open:s,onOpenChange:r}=t,o=W(),a=_t(),{org:i}=ft(),{projects:d,hasProjects:m}=Cn(),[h,v]=V.useState(""),c=V.useDeferredValue(h),b=Ks(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(z,Y)=>{dt("command_palette_used",{kind:Y}),z(),l()},e[2]=l,e[3]=f):f=e[3];const u=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=z=>{if(z.type==="connection"){if(!z.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:z.slug}});return}if(z.type==="task"){a({to:ie.tasks,params:{org:i.slug,taskKey:z.key??void 0}});return}const Y=Pt(i.id).id;en(a,tn({org:i.slug,agentId:z.virtual_mcp_id??Y,superAgentId:Y}),{search:()=>({thread:z.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let y;e[8]!==h?(y=[h],e[8]=h,e[9]=y):y=e[9];const w=y;let _,P,N,j,g,T,k,A,E,C,O,I,M;if(e[10]!==l||e[11]!==u||e[12]!==m||e[13]!==b||e[14]!==a||e[15]!==r||e[16]!==s||e[17]!==S||e[18]!==i.slug||e[19]!==d||e[20]!==w||e[21]!==o||e[22]!==h){const z=b.filter(Gs),Y=b.filter(Us);let ne;e[36]!==i.slug?(ne={org:i.slug},e[36]=i.slug,e[37]=ne):ne=e[37];const D=ne;let ee;e[38]!==o?(ee=o("sidebar.navDestinations.home"),e[38]=o,e[39]=ee):ee=e[39];let Q;e[40]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(jn,{"aria-hidden":"true"}),e[40]=Q):Q=e[40];let K;e[41]!==D||e[42]!==ee?(K={key:"home",label:ee,icon:Q,to:ie.home,params:D},e[41]=D,e[42]=ee,e[43]=K):K=e[43];let X;e[44]!==o?(X=o("sidebar.navDestinations.reports"),e[44]=o,e[45]=X):X=e[45];let se;e[46]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(kn,{"aria-hidden":"true"}),e[46]=se):se=e[46];let H;e[47]!==D||e[48]!==X?(H={key:"reports",label:X,icon:se,to:ie.reports,params:D},e[47]=D,e[48]=X,e[49]=H):H=e[49];let U;e[50]!==o?(U=o("sidebar.navDestinations.tasks"),e[50]=o,e[51]=U):U=e[51];let oe;e[52]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(yt,{"aria-hidden":"true"}),e[52]=oe):oe=e[52];let Z;e[53]!==i.slug?(Z={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=Z):Z=e[54];let L;e[55]!==U||e[56]!==Z?(L={key:"tasks",label:U,icon:oe,to:ie.tasks,params:Z},e[55]=U,e[56]=Z,e[57]=L):L=e[57];let q;e[58]!==o?(q=o("sidebar.navDestinations.library"),e[58]=o,e[59]=q):q=e[59];let Qe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Ln,{"aria-hidden":"true"}),e[60]=Qe):Qe=e[60];let fe;e[61]!==D||e[62]!==q?(fe={key:"library",label:q,icon:Qe,to:ie.library,params:D},e[61]=D,e[62]=q,e[63]=fe):fe=e[63];let ge;e[64]!==o?(ge=o("sidebar.navDestinations.discover"),e[64]=o,e[65]=ge):ge=e[65];let Xe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(Tn,{"aria-hidden":"true"}),e[66]=Xe):Xe=e[66];let he;e[67]!==D||e[68]!==ge?(he={key:"discover",label:ge,icon:Xe,to:ie.discover,params:D},e[67]=D,e[68]=ge,e[69]=he):he=e[69];let Ze;e[70]!==K||e[71]!==H||e[72]!==L||e[73]!==fe||e[74]!==he?(Ze=[K,H,L,fe,he],e[70]=K,e[71]=H,e[72]=L,e[73]=fe,e[74]=he,e[75]=Ze):Ze=e[75];const at=Ze;P=Dn,j=s,e[76]!==l||e[77]!==r?(g=$=>$?r(!0):l(),e[76]=l,e[77]=r,e[78]=g):g=e[78],e[79]!==o?(T=o("commandPalette.title"),e[79]=o,e[80]=T):T=e[80],e[81]!==o?(k=o("commandPalette.description"),e[81]=o,e[82]=k):k=e[82];let pe;e[83]!==o?(pe=o("commandPalette.placeholder"),e[83]=o,e[84]=pe):pe=e[84];let ye;e[85]!==o?(ye=o("commandPalette.placeholder"),e[85]=o,e[86]=ye):ye=e[86],e[87]!==pe||e[88]!==ye||e[89]!==h?(A=n.jsx(Rn,{placeholder:pe,"aria-label":ye,value:h,onValueChange:v}),e[87]=pe,e[88]=ye,e[89]=h,e[90]=A):A=e[90],_=Mn;let be;e[91]!==o?(be=o("commandPalette.empty"),e[91]=o,e[92]=be):be=e[92],e[93]!==be?(E=n.jsx(Fn,{children:be}),e[93]=be,e[94]=E):E=e[94];let xe;e[95]!==o?(xe=o("commandPalette.goTo"),e[95]=o,e[96]=xe):xe=e[96];let Se;e[97]!==at||e[98]!==u||e[99]!==a?(Se=at.map($=>n.jsxs(le,{onSelect:()=>u(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[97]=at,e[98]=u,e[99]=a,e[100]=Se):Se=e[100],e[101]!==xe||e[102]!==Se?(C=n.jsx(Ge,{heading:xe,children:Se}),e[101]=xe,e[102]=Se,e[103]=C):C=e[103],e[104]!==u||e[105]!==m||e[106]!==a||e[107]!==i.slug||e[108]!==d||e[109]!==o?(O=m&&n.jsx(Ge,{heading:o("commandPalette.projects"),children:d.map($=>n.jsxs(le,{value:`project ${$.title}`,onSelect:()=>u(()=>a({to:ie.projects,params:{org:i.slug,agentId:$.id}}),"project"),children:[n.jsx(qn,{icon:$.icon,name:$.title,"aria-hidden":"true"}),n.jsx("span",{children:$.title})]},$.id))}),e[104]=u,e[105]=m,e[106]=a,e[107]=i.slug,e[108]=d,e[109]=o,e[110]=O):O=e[110];let we;e[111]!==o?(we=o("commandPalette.actions"),e[111]=o,e[112]=we):we=e[112];let ve;e[113]!==o?(ve=o("commandPalette.newProject"),e[113]=o,e[114]=ve):ve=e[114];let je;e[115]!==u||e[116]!==a||e[117]!==D?(je=()=>u(()=>a({to:ie.home,params:D}),"new_project"),e[115]=u,e[116]=a,e[117]=D,e[118]=je):je=e[118];let et;e[119]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(xt,{"aria-hidden":"true"}),e[119]=et):et=e[119];let ke;e[120]!==o?(ke=o("commandPalette.newProject"),e[120]=o,e[121]=ke):ke=e[121];let Te;e[122]!==ke?(Te=n.jsx("span",{children:ke}),e[122]=ke,e[123]=Te):Te=e[123];let Ne;e[124]!==ve||e[125]!==je||e[126]!==Te?(Ne=n.jsxs(le,{value:ve,onSelect:je,children:[et,Te]}),e[124]=ve,e[125]=je,e[126]=Te,e[127]=Ne):Ne=e[127];let _e;e[128]!==o?(_e=o("commandPalette.inviteTeammate"),e[128]=o,e[129]=_e):_e=e[129];let Ae;e[130]!==u||e[131]!==a||e[132]!==D?(Ae=()=>u(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[130]=u,e[131]=a,e[132]=D,e[133]=Ae):Ae=e[133];let tt;e[134]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(Nn,{"aria-hidden":"true"}),e[134]=tt):tt=e[134];let Pe;e[135]!==o?(Pe=o("commandPalette.inviteTeammate"),e[135]=o,e[136]=Pe):Pe=e[136];let Ce;e[137]!==Pe?(Ce=n.jsx("span",{children:Pe}),e[137]=Pe,e[138]=Ce):Ce=e[138];let Ee;e[139]!==_e||e[140]!==Ae||e[141]!==Ce?(Ee=n.jsxs(le,{value:_e,onSelect:Ae,children:[tt,Ce]}),e[139]=_e,e[140]=Ae,e[141]=Ce,e[142]=Ee):Ee=e[142];let Oe;e[143]!==o?(Oe=o("commandPalette.addConnection"),e[143]=o,e[144]=Oe):Oe=e[144];let Ie;e[145]!==u||e[146]!==a||e[147]!==D?(Ie=()=>u(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[145]=u,e[146]=a,e[147]=D,e[148]=Ie):Ie=e[148];let nt;e[149]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(xt,{"aria-hidden":"true"}),e[149]=nt):nt=e[149];let Le;e[150]!==o?(Le=o("commandPalette.addConnection"),e[150]=o,e[151]=Le):Le=e[151];let $e;e[152]!==Le?($e=n.jsx("span",{children:Le}),e[152]=Le,e[153]=$e):$e=e[153];let De;e[154]!==Oe||e[155]!==Ie||e[156]!==$e?(De=n.jsxs(le,{value:Oe,onSelect:Ie,children:[nt,$e]}),e[154]=Oe,e[155]=Ie,e[156]=$e,e[157]=De):De=e[157];let Re;e[158]!==o?(Re=o("commandPalette.settings"),e[158]=o,e[159]=Re):Re=e[159];let Me;e[160]!==u||e[161]!==a||e[162]!==D?(Me=()=>u(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[160]=u,e[161]=a,e[162]=D,e[163]=Me):Me=e[163];let st;e[164]===Symbol.for("react.memo_cache_sentinel")?(st=n.jsx($n,{"aria-hidden":"true"}),e[164]=st):st=e[164];let Fe;e[165]!==o?(Fe=o("commandPalette.settings"),e[165]=o,e[166]=Fe):Fe=e[166];let ze;e[167]!==Fe?(ze=n.jsx("span",{children:Fe}),e[167]=Fe,e[168]=ze):ze=e[168];let qe;e[169]!==Re||e[170]!==Me||e[171]!==ze?(qe=n.jsxs(le,{value:Re,onSelect:Me,children:[st,ze]}),e[169]=Re,e[170]=Me,e[171]=ze,e[172]=qe):qe=e[172],e[173]!==we||e[174]!==Ne||e[175]!==Ee||e[176]!==De||e[177]!==qe?(I=n.jsxs(Ge,{heading:we,children:[Ne,Ee,De,qe]}),e[173]=we,e[174]=Ne,e[175]=Ee,e[176]=De,e[177]=qe,e[178]=I):I=e[178],M=z.length>0&&n.jsx(Ge,{heading:o("commandPalette.connections"),children:z.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>u(()=>S($),"connection"),children:[n.jsx(zn,{icon:$.icon,name:$.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=Y.length>0&&n.jsx(Ge,{heading:o("commandPalette.results"),children:Y.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>u(()=>S($),$.type),children:[$.type==="thread"?n.jsx(vn,{"aria-hidden":"true"}):n.jsx(yt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title}),$.type==="task"&&$.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:$.key})]},`${$.type}:${$.id}`))}),e[10]=l,e[11]=u,e[12]=m,e[13]=b,e[14]=a,e[15]=r,e[16]=s,e[17]=S,e[18]=i.slug,e[19]=d,e[20]=w,e[21]=o,e[22]=h,e[23]=_,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=T,e[29]=k,e[30]=A,e[31]=E,e[32]=C,e[33]=O,e[34]=I,e[35]=M}else _=e[23],P=e[24],N=e[25],j=e[26],g=e[27],T=e[28],k=e[29],A=e[30],E=e[31],C=e[32],O=e[33],I=e[34],M=e[35];let B;e[179]!==_||e[180]!==N||e[181]!==E||e[182]!==C||e[183]!==O||e[184]!==I||e[185]!==M?(B=n.jsxs(_,{children:[E,C,O,I,M,N]}),e[179]=_,e[180]=N,e[181]=E,e[182]=C,e[183]=O,e[184]=I,e[185]=M,e[186]=B):B=e[186];let G;return e[187]!==P||e[188]!==j||e[189]!==g||e[190]!==T||e[191]!==k||e[192]!==A||e[193]!==B?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,B]}),e[187]=P,e[188]=j,e[189]=g,e[190]=T,e[191]=k,e[192]=A,e[193]=B,e[194]=G):G=e[194],G}function Us(t){return t.type!=="connection"}function Gs(t){return t.type==="connection"}const We=new Hn(!1);function Js(){We.set(!0)}function Vs(){We.set(!1)}function Ws(){const t=R.c(2),e=V.useSyncExternalStore(We.subscribe,We.get);let s;return t[0]!==e?(s=[e,We.set],t[0]=e,t[1]=s):s=t[1],s}const Ys=300*1e3,Qs=2;function Xs(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Zs(t,e){return t.count>=Qs&&t.version!==null&&t.version!==e}function eo(){const t=R.c(43),e=W(),s=Gn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:no},t[0]=r):r=t[0];const o=Ye(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ue.appVersionCheck(),queryFn:to,refetchInterval:Ys,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:d}=He(a),[m,h]=V.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,b]=V.useState(v);d!==m&&(h(d),b(B=>Xs(B,i,"4.373.2")));const[p,l]=V.useState(null),f=s;let u;t[3]!==s||t[4]!==o?(u=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=u):u=t[5];const x=u,S="announcements.version.refresh";if(!Zs(c,p))return null;let y;t[6]!==e?(y=e("announcements.version.ariaLabel"),t[6]=e,t[7]=y):y=t[7];let w;t[8]!==e?(w=e("announcements.version.dismiss"),t[8]=e,t[9]=w):w=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const N="announcements.version.description";let j;t[14]!==e||t[15]!==N?(j=e(N),t[14]=e,t[15]=N,t[16]=j):j=t[16];let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(pt,{size:16}),t[17]=g):g=t[17];let T;t[18]!==c.version?(T=()=>l(c.version),t[18]=c.version,t[19]=T):T=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.373.2"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==S||t[23]!==e?(A=e(S),t[22]=S,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=ct(E),t[25]=E,t[26]=C):C=t[26];let O;t[27]!==C?(O=n.jsx(pt,{size:14,className:C}),t[27]=C,t[28]=O):O=t[28];let I;t[29]!==x||t[30]!==f||t[31]!==A||t[32]!==O?(I=n.jsxs(F,{size:"sm",disabled:f,onClick:x,children:[A,O]}),t[29]=x,t[30]=f,t[31]=A,t[32]=O,t[33]=I):I=t[33];let M;return t[34]!==T||t[35]!==k||t[36]!==I||t[37]!==y||t[38]!==w||t[39]!==_||t[40]!==P||t[41]!==j?(M=n.jsx(Rt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,description:j,icon:g,tone:"system",onDismiss:T,footerLeading:k,actions:I}),t[34]=T,t[35]=k,t[36]=I,t[37]=y,t[38]=w,t[39]=_,t[40]=P,t[41]=j,t[42]=M):M=t[42],M}async function to(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function no(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function so(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const oo=Date.parse("2026-07-21T00:00:00Z"),kt=t=>so(Be.ptBrAnnouncementSeen(t));function io(){const t=R.c(35),e=W(),[s,r]=nn(),{data:o,isPending:a}=Ke.useSession(),i=o?.user,d=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<oo,v=sn()==="pt-BR",c=!a&&!!d&&h&&v&&s.language==="en"&&!kt(d).has(),[b,p]=V.useState(!1),[l,f]=V.useState(!1);!b&&!a&&(p(!0),c&&d&&(kt(d).mark(),r(ro),f(!0),dt("pt_br_auto_switch_shown")));let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=G=>{dt("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=u):u=t[0];const x=u;let S;t[1]!==r?(S=()=>{r(ao),x("switch-back")},t[1]=r,t[2]=S):S=t[2];const y=S;let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w=G=>!G&&x("dismiss"),t[3]=w):w=t[3];let _;t[4]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=_):_=t[4];let P;t[5]!==e?(P=e("announcements.ptBr.title"),t[5]=e,t[6]=P):P=t[6];let N;t[7]!==P?(N=n.jsx(Lt,{children:P}),t[7]=P,t[8]=N):N=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let g;t[11]!==j?(g=n.jsx(On,{children:j}),t[11]=j,t[12]=g):g=t[12];let T;t[13]!==N||t[14]!==g?(T=n.jsxs(It,{children:[N,g]}),t[13]=N,t[14]=g,t[15]=T):T=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let A;t[18]!==y||t[19]!==k?(A=n.jsx(F,{variant:"outline",onClick:y,children:k}),t[18]=y,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>x("ok"),t[21]=E):E=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let O;t[24]!==C?(O=n.jsx(F,{onClick:E,children:C}),t[24]=C,t[25]=O):O=t[25];let I;t[26]!==A||t[27]!==O?(I=n.jsxs(In,{children:[A,O]}),t[26]=A,t[27]=O,t[28]=I):I=t[28];let M;t[29]!==I||t[30]!==T?(M=n.jsxs($t,{className:"sm:max-w-md",children:[_,T,I]}),t[29]=I,t[30]=T,t[31]=M):M=t[31];let B;return t[32]!==l||t[33]!==M?(B=n.jsx(Dt,{open:l,onOpenChange:w,children:M}),t[32]=l,t[33]=M,t[34]=B):B=t[34],B}function ao(t){return{...t,language:"en"}}function ro(t){return{...t,language:"pt-BR"}}function lo(t){const e=on(t);return typeof e=="string"?e:void 0}function co(){return lo("experiment-pipeline-check"),null}function uo(t){const e=R.c(1),{activeOrg:s}=t;if(!s)return null;an(s.id,{name:s.name??void 0,slug:s.slug??void 0}),rn();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(co,{}),e[0]=r):r=e[0],r}function mo(t){const{prev:e,virtualMcpId:s,decopilotId:r,savedLayout:o,opts:a,autosendValue:i}=t,d={mainpanel:void 0};s?d.virtualmcpid=s:e.virtualmcpid&&(d.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(s??m)!==m;let c,b;return a?.panel?b=a.panel:o?(b=o.tab,o.sidepanel!==void 0&&(c=o.sidepanel),o.mainpanel!==void 0&&(d.mainpanel=o.mainpanel)):!v&&e.tabId&&!ln(e.tabId)&&(b=e.tabId),c!==void 0&&(d.sidepanel=c),a?.autosend&&(d.autosend=i),{tabId:b,search:d}}const Ht="studio:thread-layout:v4",fo=50;function Ut(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function go(t,e,s,r=fo){const o=t.filter(([a])=>a!==e);for(o.push([e,Ut(s)]);o.length>r;)o.shift();return o}function gt(){try{const t=sessionStorage.getItem(Ht);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function Gt(t){try{sessionStorage.setItem(Ht,JSON.stringify(t))}catch{}}function ho(t,e){t&&Gt(go(gt(),t,e))}function po(t){if(!t)return null;const e=gt().find(([s])=>s===t);return e?Ut(e[1]):null}function li(t){if(!t)return;const e=gt(),s=e.filter(([r])=>r!==t);s.length!==e.length&&Gt(s)}function Jt(t){return{queryKey:Ue.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function ci(t){const e=R.c(10);let s;e[0]!==t?(s=Jt(t),e[0]=t,e[1]=s):s=e[1];const r=He(s);let o;e[2]!==r.data?.prompts?(o=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=o):o=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==o||e[8]!==a?(i={isLoading:r.isLoading,prompts:o,tiles:a},e[6]=r.isLoading,e[7]=o,e[8]=a,e[9]=i):i=e[9],i}function yo(t){const e=R.c(31),{orgSlug:s,orgName:r,domain:o}=t,a=W();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const d=i,m=bo;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Tt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let v;e[3]!==a?(v=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=v):v=e[4];let c;e[5]!==v?(c=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[5]=v,e[6]=c):c=e[6];let b;e[7]!==o||e[8]!==r||e[9]!==a?(b=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${a("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=r,e[9]=a,e[10]=b):b=e[10];let p;e[11]!==b?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[11]=b,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let u;e[18]!==d||e[19]!==f?(u=n.jsx(F,{onClick:d,children:f}),e[18]=d,e[19]=f,e[20]=u):u=e[20];let x;e[21]!==a?(x=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=x):x=e[22];let S;e[23]!==x?(S=n.jsx(F,{variant:"ghost",onClick:m,children:x}),e[23]=x,e[24]=S):S=e[24];let y;e[25]!==S||e[26]!==u?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[u,S]}),e[25]=S,e[26]=u,e[27]=y):y=e[27];let w;return e[28]!==y||e[29]!==l?(w=n.jsxs(me,{children:[h,l,y]}),e[28]=y,e[29]=l,e[30]=w):w=e[30],w}function bo(){window.location.href="/"}function xo(t){const e=R.c(27),{notice:s,orgSlug:r}=t,o=W();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(cn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==s.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let d;e[3]!==s.message?(d=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=d):d=e[4];let m;e[5]!==i||e[6]!==d?(m=n.jsxs("div",{className:"space-y-2",children:[i,d]}),e[5]=i,e[6]=d,e[7]=m):m=e[7];let h;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(h=s.ctaUrl&&s.ctaLabel?n.jsx(F,{asChild:!0,children:n.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=h):h=e[10];const v=`/${encodeURIComponent(r)}/settings/infra-billing`;let c;e[11]!==o?(c=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=c):c=e[12];let b;e[13]!==v||e[14]!==c?(b=n.jsx(F,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=b):b=e[15];let p;e[16]!==o?(p=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=p):p=e[17];let l;e[18]!==p?(l=n.jsx(F,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:p})}),e[18]=p,e[19]=l):l=e[19];let f;e[20]!==l||e[21]!==h||e[22]!==b?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,b,l]}),e[20]=l,e[21]=h,e[22]=b,e[23]=f):f=e[23];let u;return e[24]!==f||e[25]!==m?(u=n.jsxs(me,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=u):u=e[26],u}function So(t){const e=R.c(8);let s;e[0]!==t?(s=Ue.orgNotice(t??""),e[0]=t,e[1]=s):s=e[1];let r;e[2]!==t?(r=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=r):r=e[3];const o=!!t;let a;return e[4]!==s||e[5]!==r||e[6]!==o?(a={queryKey:s,queryFn:r,enabled:o,staleTime:6e4},e[4]=s,e[5]=r,e[6]=o,e[7]=a):a=e[7],He(a)}const wo="/settings/infra-billing";function vo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(wo)}function jo(t){const e=R.c(8),{org:s,children:r}=t,a=Zn(s.id,s.slug)?.enabled_plugins??null;let i;e[0]!==s.id||e[1]!==s.name||e[2]!==a?(i={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:a,ui:null},e[0]=s.id,e[1]=s.name,e[2]=a,e[3]=i):i=e[3];const d=i;let m;return e[4]!==r||e[5]!==s||e[6]!==d?(m=n.jsx(yn,{org:s,project:d,children:r}),e[4]=r,e[5]=s,e[6]=d,e[7]=m):m=e[7],m}function ko(){const t=_t(),e=Un(),{org:s}=ft(),r=dn({strict:!1}),o=Ot(),{openPanel:a,closePanel:i}=En(),d=Wn(),m=Yn(),h=Qn(),v=Xn(),c=(f,u=!0)=>t({to:".",search:f,replace:u}),b=()=>c(f=>({...f,sidepanel:!0})),p=(f,u,x)=>{const S=!!m&&m===f;m&&!S&&ho(m,{tab:o,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const y=S?null:po(f),w=Pt(s.id).id,_=mo({prev:{virtualmcpid:d,tabId:o},virtualMcpId:u,decopilotId:w,savedLayout:y,opts:x,autosendValue:Vn});return v(f,()=>_.search,{virtualMcpId:u,view:{tabId:_.tabId}})};return{openSidePanel:b,setTaskId:p,createNewTask:async(f,u,x)=>{const S=crypto.randomUUID(),y=f??h;try{await e?.create({id:S,virtual_mcp_id:y,...u?{branch:u}:{}})}catch{}p(S,y,x)},openTab:a,closeTab:i}}const To=new Set(["/$org/","/$org/home"]);function No(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:_o},t[0]=e):e=t[0],Ct(e)}function _o(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&To.has(e)}function Ao(){const t=R.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=un(e)?.params.org,[o,a]=V.useState(!1),[i,d]=Ws(),m=mn(),h=No(),v=r??"";let c;t[1]!==v?(c=Jt(v),t[1]=v,t[2]=c):c=t[2];const b=!!r&&h;let p;t[3]!==c||t[4]!==b?(p={...c,enabled:b},t[3]=c,t[4]=b,t[5]=p):p=t[5],He(p);const{data:l}=Ke.useSession(),f=l?.user?.id;let u;t[6]!==r||t[7]!==f?(u=r&&f?fn(f,r):null,t[6]=r,t[7]=f,t[8]=u):u=t[8];const x=u;let S,y;t[9]!==m?(S=()=>{const L=q=>{if(vt(q)&&q.code==="KeyK"){q.preventDefault(),Js();return}if(q.key==="?"&&!Ms(q.target)){q.preventDefault(),a(!0);return}vt(q)&&q.code==="BracketLeft"&&m.history.canGoBack()&&(q.preventDefault(),m.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},y=[m],t[9]=m,t[10]=S,t[11]=y):(S=t[10],y=t[11]),V.useEffect(S,y);let w;t[12]!==r?(w=Ue.activeOrganization(r),t[12]=r,t[13]=w):w=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:L}=await Ke.organization.getFullOrganization({query:{organizationSlug:r}}).finally(Co),q=rt(L);return L&&!q&&localStorage.setItem(Be.lastOrgSlug(),r),f&&L&&hn(f,r,L),L},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=x?x.data:void 0,N=x?.updatedAt;let j;t[17]!==P||t[18]!==N||t[19]!==w||t[20]!==_?(j={queryKey:w,queryFn:_,initialData:P,initialDataUpdatedAt:N,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=N,t[19]=w,t[20]=_,t[21]=j):j=t[21];const{data:g}=Nt(j),T=g?.id,k=g?.slug,{data:A}=es(T,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=So(k);let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O={select:Po},t[22]=O):O=t[22];const I=Ct(O),M=C?.severity==="block"&&!vo(I),B=T??"",G=k??"";let z;t[23]!==B||t[24]!==G?(z=Kn({connectionId:At,orgId:B,orgSlug:G}),t[23]=B,t[24]=G,t[25]=z):z=t[25];const Y=!!T&&!!k;let ne;if(t[26]!==z||t[27]!==Y?(ne={...z,enabled:Y},t[26]=z,t[27]=Y,t[28]=ne):ne=t[28],He(ne),(!g||rt(g)||E||M)&&Vs(),!g){let L;return t[29]!==r?(L=n.jsx(us,{orgSlug:r}),t[29]=r,t[30]=L):L=t[30],L}if(rt(g)){localStorage.getItem(Be.lastOrgSlug())===r&&localStorage.removeItem(Be.lastOrgSlug());let L;return t[31]!==g.name?(L=n.jsx(gn,{orgName:g.name}),t[31]=g.name,t[32]=L):L=t[32],L}if(M&&C){let L;return t[33]!==g.slug||t[34]!==C?(L=n.jsx(xo,{notice:C,orgSlug:g.slug}),t[33]=g.slug,t[34]=C,t[35]=L):L=t[35],L}if(E){let L;return t[36]!==g.id||t[37]!==g.name||t[38]!==g.slug||t[39]!==A.domain?(L=n.jsx(yo,{orgId:g.id,orgSlug:g.slug,orgName:g.name,domain:A.domain}),t[36]=g.id,t[37]=g.name,t[38]=g.slug,t[39]=A.domain,t[40]=L):L=t[40],L}const ee=g.logo??null;let Q;t[41]!==g||t[42]!==ee?(Q={...g,logo:ee},t[41]=g,t[42]=ee,t[43]=Q):Q=t[43];let K;t[44]!==g?(K=n.jsx(uo,{activeOrg:g}),t[44]=g,t[45]=K):K=t[45];let X;t[46]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(pn,{}),t[46]=X):X=t[46];let se;t[47]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx($s,{}),n.jsx(eo,{})]}),t[47]=se):se=t[47];let H;t[48]!==i||t[49]!==d?(H=i&&n.jsx(Hs,{open:i,onOpenChange:d}),t[48]=i,t[49]=d,t[50]=H):H=t[50];let U;t[51]!==o?(U=n.jsx(Fs,{open:o,onOpenChange:a}),t[51]=o,t[52]=U):U=t[52];let oe;t[53]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(io,{}),t[53]=oe):oe=t[53];let Z;return t[54]!==Q||t[55]!==K||t[56]!==H||t[57]!==U?(Z=n.jsxs(jo,{org:Q,children:[K,X,se,H,U,oe]}),t[54]=Q,t[55]=K,t[56]=H,t[57]=U,t[58]=Z):Z=t[58],Z}function Po(t){return t.location.pathname}function Co(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Eo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Jn,{children:n.jsx(Ao,{})}),t[0]=e):e=t[0],e}const di=Object.freeze(Object.defineProperty({__proto__:null,default:Eo,usePanelActions:ko},Symbol.toStringTag,{value:"Module"}));export{J as K,ms as L,ko as a,vt as b,vs as c,ci as d,di as e,li as f,zt as i,Js as o,ai as r,ri as s,So as u};
1
+ import{c as R,b as W,e as Ye,j as n,B as F,t as Ve,bP as me,R as Tt,a as Ke,y as Vt,D as Nt,K as Ue,bQ as Wt,bR as Yt,$ as Be,l as ct,aJ as Qt,p as ht,bS as Xt,r as V,a1 as Zt,aa as ie,d as _t,a0 as ft,z as At,m as He,q as dt,au as Pt,bT as en,aB as tn,aH as pt,x as nn,bU as sn,bV as on,bW as an,bX as rn,bY as ln,T as cn,u as dn,a3 as un,bZ as mn,b_ as fn,k as Ct,b$ as rt,c0 as gn,c1 as hn,O as pn,c2 as yn}from"./index-DXBmCj7V.js";import{A as it}from"./avatar-1Yn634Bu.js";import{t as Et}from"./Globe04-D59f7pGB.js";import{i as bn}from"./SearchLg-RqwylEUM.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-Du4foZ5w.js";import{s as _n}from"./XClose-l9OyLGUl.js";import{D as An}from"./download-app-dialog-CSAHR0v5.js";import{a as Pn,u as Cn}from"./use-project-scope-DHl6lLqa.js";import{u as Ot,a as En}from"./use-panel-navigate-DEBeb2CL.js";import{i as ae}from"./CheckCircle-DBlA9wkb.js";import{i as bt}from"./Tool02-BLokvBBs.js";import{i as lt}from"./Monitor01-DyfIXCt5.js";import{i as re}from"./Zap-UqD0_RZa.js";import{c as It,d as Lt,b as $t,D as Dt,h as On,e as In}from"./dialog-uPTcsM6n.js";import{i as Ln}from"./Share07-adzWfg3s.js";import{s as xt}from"./Plus-BKjrQCsd.js";import{a as $n}from"./Settings02-DJVGKnwW.js";import{b as le,a as Ge,f as Dn,e as Rn,c as Mn,C as Fn}from"./command-CY_32gBM.js";import{I as zn}from"./integration-icon-CAyUCGPQ.js";import{P as qn}from"./project-icon-I77gr-pK.js";import{a as Bn,m as Kn}from"./use-mcp-client-BtmoWWkf.js";import{S as Hn,u as Un}from"./hooks-DdW3hvoh.js";import{u as Gn}from"./use-is-desktop-app-BNujXJc_.js";import{R as Jn}from"./required-auth-layout-D6L2B3lC.js";import{A as Vn}from"./autosend-Bln98kNi.js";import{u as Wn,a as Yn,b as Qn,c as Xn}from"./thread-route-QtII8A2p.js";import{b as Zn}from"./use-organization-settings-yjdHHrMs.js";import{u as es}from"./use-org-sso-D6hDWGLC.js";function ts(t){const e=R.c(49),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let d;e[0]!==r||e[1]!==i?(d=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=d):d=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=k=>{Ve.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let v;e[7]!==d||e[8]!==m||e[9]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[7]=d,e[8]=m,e[9]=h,e[10]=v):v=e[10];const c=Ye(v),b=ns;let p;e[11]!==o||e[12]!==s?(p=o?n.jsx(it,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Et,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=s,e[13]=p):p=e[13];let l;e[14]!==s||e[15]!==i?(l=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==l?(f=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[17]=l,e[18]=f):f=e[18];let u;e[19]!==a||e[20]!==i?(u=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=u):u=e[21];let x;e[22]!==u?(x=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[22]=u,e[23]=x):x=e[23];let S;e[24]!==f||e[25]!==x?(S=n.jsxs("div",{className:"space-y-2",children:[f,x]}),e[24]=f,e[25]=x,e[26]=S):S=e[26];let y;e[27]!==c?(y=()=>c.mutate(),e[27]=c,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(w=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=w):w=e[32];let _;e[33]!==c.isPending||e[34]!==y||e[35]!==w?(_=n.jsx(F,{onClick:y,disabled:c.isPending,children:w}),e[33]=c.isPending,e[34]=y,e[35]=w,e[36]=_):_=e[36];const P=c.isPending;let N;e[37]!==i?(N=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=N):N=e[38];let j;e[39]!==c.isPending||e[40]!==N?(j=n.jsx(F,{variant:"ghost",onClick:b,disabled:P,children:N}),e[39]=c.isPending,e[40]=N,e[41]=j):j=e[41];let g;e[42]!==_||e[43]!==j?(g=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=g):g=e[44];let T;return e[45]!==S||e[46]!==g||e[47]!==p?(T=n.jsxs(me,{children:[p,S,g]}),e[45]=S,e[46]=g,e[47]=p,e[48]=T):T=e[48],T}function ns(){window.location.href="/"}function St(t){const e=R.c(25),{orgSlug:s,orgName:r,reason:o}=t,a=W(),i=ss,d=o==="not-found",m=d?bn:Tt;let h;e[0]!==d||e[1]!==a?(h=a(d?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=d,e[1]=a,e[2]=h):h=e[2];const v=h;let c;e[3]!==d||e[4]!==r||e[5]!==s||e[6]!==a?(c=d?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??s}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=d,e[4]=r,e[5]=s,e[6]=a,e[7]=c):c=e[7];const b=c;let p;e[8]!==m?(p=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=p):p=e[9];let l;e[10]!==v?(l=n.jsx("h3",{className:"text-lg font-medium",children:v}),e[10]=v,e[11]=l):l=e[11];let f;e[12]!==b?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=f):f=e[13];let u;e[14]!==l||e[15]!==f?(u=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=u):u=e[16];let x;e[17]!==a?(x=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=x):x=e[18];let S;e[19]!==x?(S=n.jsx(F,{onClick:i,children:x}),e[19]=x,e[20]=S):S=e[20];let y;return e[21]!==p||e[22]!==u||e[23]!==S?(y=n.jsxs(me,{children:[p,u,S]}),e[21]=p,e[22]=u,e[23]=S,e[24]=y):y=e[24],y}function ss(){window.location.href="/"}function os(t){const e=R.c(59),{invitationId:s,orgName:r,orgSlug:o,orgLogo:a}=t,i=W();let d;e[0]!==s?(d=async()=>{const I=await Ke.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=d):d=e[1];let m;e[2]!==o?(m=()=>{Vt(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let h;e[4]!==i?(h=I=>{Ve.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let v;e[6]!==d||e[7]!==m||e[8]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[6]=d,e[7]=m,e[8]=h,e[9]=v):v=e[9];const c=Ye(v);let b;e[10]!==s?(b=async()=>{const I=await Ke.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=b):b=e[11];let p,l;e[12]!==i?(p=()=>{Ve.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=I=>{Ve.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==b||e[16]!==p||e[17]!==l?(f={mutationFn:b,onSuccess:p,onError:l},e[15]=b,e[16]=p,e[17]=l,e[18]=f):f=e[18];const u=Ye(f),x=c.isPending||u.isPending;let S;e[19]!==a||e[20]!==r?(S=a?n.jsx(it,{url:a,fallback:r.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(xn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=S):S=e[21];let y;e[22]!==r||e[23]!==i?(y=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=y):y=e[24];let w;e[25]!==y?(w=n.jsx("h3",{className:"text-lg font-medium",children:y}),e[25]=y,e[26]=w):w=e[26];let _;e[27]!==i?(_=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=_):_=e[28];let P;e[29]!==_?(P=n.jsx("p",{className:"text-sm text-muted-foreground",children:_}),e[29]=_,e[30]=P):P=e[30];let N;e[31]!==w||e[32]!==P?(N=n.jsxs("div",{className:"space-y-2",children:[w,P]}),e[31]=w,e[32]=P,e[33]=N):N=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let g;e[36]!==c.isPending||e[37]!==i?(g=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=g):g=e[38];let T;e[39]!==x||e[40]!==j||e[41]!==g?(T=n.jsx(F,{onClick:j,disabled:x,children:g}),e[39]=x,e[40]=j,e[41]=g,e[42]=T):T=e[42];let k;e[43]!==u?(k=()=>u.mutate(),e[43]=u,e[44]=k):k=e[44];let A;e[45]!==u.isPending||e[46]!==i?(A=u.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=u.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==x||e[49]!==k||e[50]!==A?(E=n.jsx(F,{variant:"ghost",onClick:k,disabled:x,children:A}),e[48]=x,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==T||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[T,E]}),e[52]=T,e[53]=E,e[54]=C):C=e[54];let O;return e[55]!==N||e[56]!==C||e[57]!==S?(O=n.jsxs(me,{children:[S,N,C]}),e[55]=N,e[56]=C,e[57]=S,e[58]=O):O=e[58],O}function is(t){const e=R.c(23),{orgName:s,orgLogo:r}=t,o=W();let a;e[0]!==r||e[1]!==s?(a=r?n.jsx(it,{url:r,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Sn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=s,e[2]=a):a=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let d;e[5]!==i?(d=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=d):d=e[6];let m;e[7]!==s||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let v;e[12]!==d||e[13]!==h?(v=n.jsxs("div",{className:"space-y-2",children:[d,h]}),e[12]=d,e[13]=h,e[14]=v):v=e[14];let c;e[15]!==o?(c=o("common.requestPendingScreen.goHome"),e[15]=o,e[16]=c):c=e[16];let b;e[17]!==c?(b=n.jsx(F,{variant:"ghost",onClick:as,children:c}),e[17]=c,e[18]=b):b=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==b?(p=n.jsxs(me,{children:[a,v,b]}),e[19]=a,e[20]=v,e[21]=b,e[22]=p):p=e[22],p}function as(){window.location.href="/"}function rs(t){const e=R.c(45),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let d;e[0]!==r?(d=async()=>{const T=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await T.json();if(!T.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=d):d=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=T=>{Ve.error(T instanceof Error?T.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let v;e[5]!==d||e[6]!==h?(v={mutationFn:d,onSuccess:m,onError:h},e[5]=d,e[6]=h,e[7]=v):v=e[7];const c=Ye(v);let b;e[8]!==o||e[9]!==s?(b=o?n.jsx(it,{url:o,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(Et,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=b):b=e[10];let p;e[11]!==s||e[12]!==i?(p=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=p):p=e[13];let l;e[14]!==p?(l=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let u;e[19]!==f?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=u):u=e[20];let x;e[21]!==l||e[22]!==u?(x=n.jsxs("div",{className:"space-y-2",children:[l,u]}),e[21]=l,e[22]=u,e[23]=x):x=e[23];let S;e[24]!==c?(S=()=>c.mutate(),e[24]=c,e[25]=S):S=e[25];let y;e[26]!==c.isPending||e[27]!==i?(y=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=y):y=e[28];let w;e[29]!==c.isPending||e[30]!==S||e[31]!==y?(w=n.jsx(F,{onClick:S,disabled:c.isPending,children:y}),e[29]=c.isPending,e[30]=S,e[31]=y,e[32]=w):w=e[32];const _=c.isPending;let P;e[33]!==i?(P=i("common.requestToJoinScreen.goToHome"),e[33]=i,e[34]=P):P=e[34];let N;e[35]!==c.isPending||e[36]!==P?(N=n.jsx(F,{variant:"ghost",onClick:ls,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=N):N=e[37];let j;e[38]!==w||e[39]!==N?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,N]}),e[38]=w,e[39]=N,e[40]=j):j=e[40];let g;return e[41]!==x||e[42]!==j||e[43]!==b?(g=n.jsxs(me,{children:[b,x,j]}),e[41]=x,e[42]=j,e[43]=b,e[44]=g):g=e[44],g}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=R.c(7);let s;e[0]!==t?(s=Ue.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let o;return e[4]!==s||e[5]!==r?(o={queryKey:s,queryFn:r,refetchOnWindowFocus:!1},e[4]=s,e[5]=r,e[6]=o):o=e[6],Nt(o)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Wt()?.org===t&&Yt();const s=localStorage.getItem(Be.lastOrgSlug())===t;if(s&&localStorage.removeItem(Be.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(St,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Rt(t){const e=R.c(42),{ariaLabel:s,dismissLabel:r,eyebrow:o,title:a,description:i,icon:d,children:m,footerLeading:h,actions:v,onDismiss:c,tone:b}=t,p=b===void 0?"neutral":b,l=h||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(_n,{size:14}),e[2]=u):u=e[2];let x;e[3]!==r||e[4]!==c?(x=n.jsx(F,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:u}),e[3]=r,e[4]=c,e[5]=x):x=e[5];const S=d&&"flex items-start gap-3",y=m&&"pb-3";let w;e[6]!==S||e[7]!==y?(w=ct("p-4 pr-11",S,y),e[6]=S,e[7]=y,e[8]=w):w=e[8];let _;e[9]!==d?(_=d&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:d}),e[9]=d,e[10]=_):_=e[10];let P;e[11]!==o?(P=o&&n.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=P):P=e[12];let N;e[13]!==a?(N=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=N):N=e[14];let j;e[15]!==i?(j=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==P?(g=n.jsxs("div",{children:[P,N,j]}),e[17]=N,e[18]=j,e[19]=P,e[20]=g):g=e[20];let T;e[21]!==m?(T=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=T):T=e[22];let k;e[23]!==g||e[24]!==T?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[g,T]}),e[23]=g,e[24]=T,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==w||e[28]!==_?(A=n.jsxs("div",{className:w,children:[_,k]}),e[26]=k,e[27]=w,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==h||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:ct("flex items-center justify-between gap-3 px-4 py-2.5",p==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=h,e[32]=l,e[33]=p,e[34]=E):E=e[34];let C;return e[35]!==s||e[36]!==A||e[37]!==E||e[38]!==f||e[39]!==x||e[40]!==p?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":p,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,x,A,E]}),e[35]=s,e[36]=A,e[37]=E,e[38]=f,e[39]=x,e[40]=p,e[41]=C):C=e[41],C}const ms={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Mt(t){return`[data-tour="${ms[t]}"]`}const fs=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function gs(t){return fs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function hs(t,e){return gs(e).map(s=>({element:Mt(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const ps=Mt("switcher"),ys=30;function Ft(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function bs(t,e){return hs(t,e).filter(s=>typeof s.element=="string"&&Ft(s.element))}function xs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:r})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>r.destroy()),s.footerButtons.insertBefore(o,s.footerButtons.firstChild)},onDestroyed:()=>{Je=!1},steps:e}}let Je=!1;async function Ss(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function ws(t,e){if(Je)return;Je=!0;let s=0;const r=()=>{if(!Ft(ps)&&s++<ys){requestAnimationFrame(r);return}const o=bs(t,e);if(o.length===0){Je=!1;return}Ss().then(a=>{a(xs(t,o)).drive()}).catch(()=>{Je=!1})};r()}function vs(t){return t!=="off"}function ai(t){if(!t.hasSource)return[];const e=["site-editor"];return vs(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ri(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const js=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:ht,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:te,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:lt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"native-app-linux-beta",date:"2026-08-20",eyebrow:"Now Available",title:"Studio for Linux is now in beta",bullets:[{icon:lt,title:"Native Linux desktop app",body:"Studio now ships as an AppImage for 64-bit x86 Linux, bringing the local desktop workflow to Linux."},{icon:ae,title:"Verified, no-root install",body:"The installer verifies the download, installs Studio to ~/.local/bin, and adds it to your application launcher without sudo."},{icon:re,title:"Beta today, broader support next",body:"We're validating more distributions and desktop environments. Arm builds are not available yet, and your feedback will shape general availability."}],cta:{label:"Install Studio",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases/tag/native-v4.242.0"},{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:re,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:te,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:Xt,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:lt,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:te,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ae,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:re,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:te,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ae,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:re,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ae,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:te,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:re,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:te,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ae,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:te,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ae,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:re,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:te,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:bt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ae,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ht,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:re,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ae,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:te,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:bt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:te,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:wn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],qt=js,ot="studio.release-feed.v1",ut=new Set;let de="",ue={},mt=!1;function ks(){if(mt)return de||"{}";try{return localStorage.getItem(ot)??"{}"}catch{return de||"{}"}}function Bt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=ks();return t!==de&&(de=t,ue=Bt(t)),ue}function Ts(t){ut.add(t);const e=s=>{if(!(s.key!==ot&&s.key!==null)){try{const r=localStorage.getItem(ot)??"{}",a={...Bt(r),...ue};ue=a,de=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{ut.delete(t),window.removeEventListener("storage",e)}}function Ns(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(ot,de),mt=!1}catch{mt=!0}ut.forEach(e=>e())}function _s(){const t=R.c(7),e=V.useSyncExternalStore(Ts,wt,wt);let s;t[0]!==e?(s=m=>!!e[m],t[0]=e,t[1]=s):s=t[1];const r=s,o=As;let a;t[2]!==e?(a=qt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let d;return t[4]!==r||t[5]!==i?(d={isSeen:r,markSeen:o,unseenCount:i},t[4]=r,t[5]=i,t[6]=d):d=t[6],d}function As(t){ue[t]||Ns({...ue,[t]:{seenAt:new Date().toISOString()}})}const Ps=720*60*60*1e3,Cs=10080*60*1e3;function Es(t){const[e,s,r]=t.split("-").map(Number);return!e||!s||!r?new Date(t).getTime():new Date(e,s-1,r).getTime()}function Os(t){const e=qt[0];if(!e)return null;const s=Es(e.date),r=t-s;return r<0||r>Ps?null:e}function Is(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ls(t,e){const s=Is(t);return s===null?!1:e-s>=Cs}function $s(){const t=R.c(52),e=W(),s=Pn(),r=Zt(),o=Ot(),a=!!s,i=r===ie.home&&!s;let d;t[0]!==o||t[1]!==a?(d=a&&!!o&&zt(o),t[0]=o,t[1]=a,t[2]=d):d=t[2];const m=d,{data:h}=Ke.useSession(),{isSeen:v,markSeen:c}=_s(),[b,p]=V.useState(!1);let l,f,u;if(t[3]!==v||t[4]!==h?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{const O=Date.now();if(l=Os(O),!l){u=null;break e}if(!Ls(h?.user?.createdAt,O)){u=null;break e}f=v(l.id)}t[3]=v,t[4]=h?.user?.createdAt,t[5]=l,t[6]=f,t[7]=u}else l=t[5],f=t[6],u=t[7];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(f)return null;let x;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(x=()=>{c(l.id),ws(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[8]=l.id,t[9]=a,t[10]=c,t[11]=i,t[12]=m,t[13]=e,t[14]=x):x=t[14];const S=x;let y;t[15]!==e?(y=e("announcements.release.ariaLabel"),t[15]=e,t[16]=y):y=t[16];let w;t[17]!==e?(w=e("announcements.release.dismiss"),t[17]=e,t[18]=w):w=t[18];const _=l.eyebrow,P=l.title;let N;t[19]!==l.id||t[20]!==c?(N=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=N):N=t[21];let j;t[22]!==l.id||t[23]!==l.learnMoreHref||t[24]!==c||t[25]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>c(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[22]=l.id,t[23]=l.learnMoreHref,t[24]=c,t[25]=e,t[26]=j):j=t[26];let g;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==S?(g=l.cta?"href"in l.cta?n.jsx(F,{asChild:!0,size:"sm",onClick:()=>c(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):l.cta.action==="start-tour"?n.jsx(F,{size:"sm",onClick:S,children:l.cta.label}):n.jsx(F,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=S,t[31]=g):g=t[31];let T;t[32]!==l.bullets?(T=l.bullets.map(Ds),t[32]=l.bullets,t[33]=T):T=t[33];let k;t[34]!==T?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:T}),t[34]=T,t[35]=k):k=t[35];let A;t[36]!==l.id||t[37]!==c?(A=O=>{p(O),O||c(l.id)},t[36]=l.id,t[37]=c,t[38]=A):A=t[38];let E;t[39]!==b||t[40]!==A?(E=n.jsx(An,{open:b,onOpenChange:A}),t[39]=b,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==g||t[45]!==k||t[46]!==E||t[47]!==y||t[48]!==w||t[49]!==N||t[50]!==j?(C=n.jsxs(Rt,{ariaLabel:y,dismissLabel:w,eyebrow:_,title:P,onDismiss:N,footerLeading:j,actions:g,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=g,t[45]=k,t[46]=E,t[47]=y,t[48]=w,t[49]=N,t[50]=j,t[51]=C):C=t[51],C}function Ds(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Kt=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),ce=Kt?"⌘":"Ctrl",J={commandPalette:{keys:[ce,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[ce,"["],description:"Back to previous"},focusChatInput:{keys:[ce,"L"],description:"Focus chat input"},saveAndFormat:{keys:[ce,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[ce,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[ce,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",ce,"S"],description:"New task"},toggleDaemon:{keys:[ce,"D"],description:"Toggle daemon logs"}},Rs=[{label:"General",shortcuts:[J.commandPalette,J.keyboardShortcuts,J.back,J.newTask,J.toggleDaemon]},{label:"Editor",shortcuts:[J.saveAndFormat]},{label:"Chat",shortcuts:[J.focusChatInput,J.togglePlanMode,J.sendMessage,J.newLine]},{label:"Questions",shortcuts:[J.selectOption]},{label:"Monitoring",shortcuts:[J.applyFilter]}];function vt(t){return Kt?t.metaKey:t.ctrlKey}function Ms(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function Fs(t){const e=R.c(11),{open:s,onOpenChange:r}=t,o=W();let a;e[0]!==o?(a=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(It,{children:n.jsx(Lt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("div",{className:"flex flex-col gap-4",children:Rs.map(zs)}),e[4]=d):d=e[4];let m;e[5]!==i?(m=n.jsxs($t,{className:"sm:max-w-md",children:[i,d]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==s||e[9]!==m?(h=n.jsx(Dt,{open:s,onOpenChange:r,children:m}),e[7]=r,e[8]=s,e[9]=m,e[10]=h):h=e[10],h}function zs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(qs)})]},t.label)}function qs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Bs)})]},t.description)}function Bs(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const jt=8;function Ks(t){const{org:e}=ft(),s=Bn({connectionId:At,orgId:e.id,orgSlug:e.slug}),{data:r}=He({queryKey:Ue.globalSearch(e.id,t,jt),enabled:!!s&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!s)return[];try{return(await s.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Hs(t){const e=R.c(195),{open:s,onOpenChange:r}=t,o=W(),a=_t(),{org:i}=ft(),{projects:d,hasProjects:m}=Cn(),[h,v]=V.useState(""),c=V.useDeferredValue(h),b=Ks(c);let p;e[0]!==r?(p=()=>{r(!1),v("")},e[0]=r,e[1]=p):p=e[1];const l=p;let f;e[2]!==l?(f=(z,Y)=>{dt("command_palette_used",{kind:Y}),z(),l()},e[2]=l,e[3]=f):f=e[3];const u=f;let x;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(x=z=>{if(z.type==="connection"){if(!z.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:z.slug}});return}if(z.type==="task"){a({to:ie.tasks,params:{org:i.slug,taskKey:z.key??void 0}});return}const Y=Pt(i.id).id;en(a,tn({org:i.slug,agentId:z.virtual_mcp_id??Y,superAgentId:Y}),{search:()=>({thread:z.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let y;e[8]!==h?(y=[h],e[8]=h,e[9]=y):y=e[9];const w=y;let _,P,N,j,g,T,k,A,E,C,O,I,M;if(e[10]!==l||e[11]!==u||e[12]!==m||e[13]!==b||e[14]!==a||e[15]!==r||e[16]!==s||e[17]!==S||e[18]!==i.slug||e[19]!==d||e[20]!==w||e[21]!==o||e[22]!==h){const z=b.filter(Gs),Y=b.filter(Us);let ne;e[36]!==i.slug?(ne={org:i.slug},e[36]=i.slug,e[37]=ne):ne=e[37];const D=ne;let ee;e[38]!==o?(ee=o("sidebar.navDestinations.home"),e[38]=o,e[39]=ee):ee=e[39];let Q;e[40]===Symbol.for("react.memo_cache_sentinel")?(Q=n.jsx(jn,{"aria-hidden":"true"}),e[40]=Q):Q=e[40];let K;e[41]!==D||e[42]!==ee?(K={key:"home",label:ee,icon:Q,to:ie.home,params:D},e[41]=D,e[42]=ee,e[43]=K):K=e[43];let X;e[44]!==o?(X=o("sidebar.navDestinations.reports"),e[44]=o,e[45]=X):X=e[45];let se;e[46]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(kn,{"aria-hidden":"true"}),e[46]=se):se=e[46];let H;e[47]!==D||e[48]!==X?(H={key:"reports",label:X,icon:se,to:ie.reports,params:D},e[47]=D,e[48]=X,e[49]=H):H=e[49];let U;e[50]!==o?(U=o("sidebar.navDestinations.tasks"),e[50]=o,e[51]=U):U=e[51];let oe;e[52]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsx(yt,{"aria-hidden":"true"}),e[52]=oe):oe=e[52];let Z;e[53]!==i.slug?(Z={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=Z):Z=e[54];let L;e[55]!==U||e[56]!==Z?(L={key:"tasks",label:U,icon:oe,to:ie.tasks,params:Z},e[55]=U,e[56]=Z,e[57]=L):L=e[57];let q;e[58]!==o?(q=o("sidebar.navDestinations.library"),e[58]=o,e[59]=q):q=e[59];let Qe;e[60]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(Ln,{"aria-hidden":"true"}),e[60]=Qe):Qe=e[60];let fe;e[61]!==D||e[62]!==q?(fe={key:"library",label:q,icon:Qe,to:ie.library,params:D},e[61]=D,e[62]=q,e[63]=fe):fe=e[63];let ge;e[64]!==o?(ge=o("sidebar.navDestinations.discover"),e[64]=o,e[65]=ge):ge=e[65];let Xe;e[66]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(Tn,{"aria-hidden":"true"}),e[66]=Xe):Xe=e[66];let he;e[67]!==D||e[68]!==ge?(he={key:"discover",label:ge,icon:Xe,to:ie.discover,params:D},e[67]=D,e[68]=ge,e[69]=he):he=e[69];let Ze;e[70]!==K||e[71]!==H||e[72]!==L||e[73]!==fe||e[74]!==he?(Ze=[K,H,L,fe,he],e[70]=K,e[71]=H,e[72]=L,e[73]=fe,e[74]=he,e[75]=Ze):Ze=e[75];const at=Ze;P=Dn,j=s,e[76]!==l||e[77]!==r?(g=$=>$?r(!0):l(),e[76]=l,e[77]=r,e[78]=g):g=e[78],e[79]!==o?(T=o("commandPalette.title"),e[79]=o,e[80]=T):T=e[80],e[81]!==o?(k=o("commandPalette.description"),e[81]=o,e[82]=k):k=e[82];let pe;e[83]!==o?(pe=o("commandPalette.placeholder"),e[83]=o,e[84]=pe):pe=e[84];let ye;e[85]!==o?(ye=o("commandPalette.placeholder"),e[85]=o,e[86]=ye):ye=e[86],e[87]!==pe||e[88]!==ye||e[89]!==h?(A=n.jsx(Rn,{placeholder:pe,"aria-label":ye,value:h,onValueChange:v}),e[87]=pe,e[88]=ye,e[89]=h,e[90]=A):A=e[90],_=Mn;let be;e[91]!==o?(be=o("commandPalette.empty"),e[91]=o,e[92]=be):be=e[92],e[93]!==be?(E=n.jsx(Fn,{children:be}),e[93]=be,e[94]=E):E=e[94];let xe;e[95]!==o?(xe=o("commandPalette.goTo"),e[95]=o,e[96]=xe):xe=e[96];let Se;e[97]!==at||e[98]!==u||e[99]!==a?(Se=at.map($=>n.jsxs(le,{onSelect:()=>u(()=>a({to:$.to,params:$.params}),"destination"),children:[$.icon,n.jsx("span",{children:$.label})]},$.key)),e[97]=at,e[98]=u,e[99]=a,e[100]=Se):Se=e[100],e[101]!==xe||e[102]!==Se?(C=n.jsx(Ge,{heading:xe,children:Se}),e[101]=xe,e[102]=Se,e[103]=C):C=e[103],e[104]!==u||e[105]!==m||e[106]!==a||e[107]!==i.slug||e[108]!==d||e[109]!==o?(O=m&&n.jsx(Ge,{heading:o("commandPalette.projects"),children:d.map($=>n.jsxs(le,{value:`project ${$.title}`,onSelect:()=>u(()=>a({to:ie.projects,params:{org:i.slug,agentId:$.id}}),"project"),children:[n.jsx(qn,{icon:$.icon,name:$.title,"aria-hidden":"true"}),n.jsx("span",{children:$.title})]},$.id))}),e[104]=u,e[105]=m,e[106]=a,e[107]=i.slug,e[108]=d,e[109]=o,e[110]=O):O=e[110];let we;e[111]!==o?(we=o("commandPalette.actions"),e[111]=o,e[112]=we):we=e[112];let ve;e[113]!==o?(ve=o("commandPalette.newProject"),e[113]=o,e[114]=ve):ve=e[114];let je;e[115]!==u||e[116]!==a||e[117]!==D?(je=()=>u(()=>a({to:ie.home,params:D}),"new_project"),e[115]=u,e[116]=a,e[117]=D,e[118]=je):je=e[118];let et;e[119]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(xt,{"aria-hidden":"true"}),e[119]=et):et=e[119];let ke;e[120]!==o?(ke=o("commandPalette.newProject"),e[120]=o,e[121]=ke):ke=e[121];let Te;e[122]!==ke?(Te=n.jsx("span",{children:ke}),e[122]=ke,e[123]=Te):Te=e[123];let Ne;e[124]!==ve||e[125]!==je||e[126]!==Te?(Ne=n.jsxs(le,{value:ve,onSelect:je,children:[et,Te]}),e[124]=ve,e[125]=je,e[126]=Te,e[127]=Ne):Ne=e[127];let _e;e[128]!==o?(_e=o("commandPalette.inviteTeammate"),e[128]=o,e[129]=_e):_e=e[129];let Ae;e[130]!==u||e[131]!==a||e[132]!==D?(Ae=()=>u(()=>a({to:"/$org/settings/members",params:D}),"invite"),e[130]=u,e[131]=a,e[132]=D,e[133]=Ae):Ae=e[133];let tt;e[134]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(Nn,{"aria-hidden":"true"}),e[134]=tt):tt=e[134];let Pe;e[135]!==o?(Pe=o("commandPalette.inviteTeammate"),e[135]=o,e[136]=Pe):Pe=e[136];let Ce;e[137]!==Pe?(Ce=n.jsx("span",{children:Pe}),e[137]=Pe,e[138]=Ce):Ce=e[138];let Ee;e[139]!==_e||e[140]!==Ae||e[141]!==Ce?(Ee=n.jsxs(le,{value:_e,onSelect:Ae,children:[tt,Ce]}),e[139]=_e,e[140]=Ae,e[141]=Ce,e[142]=Ee):Ee=e[142];let Oe;e[143]!==o?(Oe=o("commandPalette.addConnection"),e[143]=o,e[144]=Oe):Oe=e[144];let Ie;e[145]!==u||e[146]!==a||e[147]!==D?(Ie=()=>u(()=>a({to:"/$org/settings/connections",params:D,search:{tab:"all"}}),"add_connection"),e[145]=u,e[146]=a,e[147]=D,e[148]=Ie):Ie=e[148];let nt;e[149]===Symbol.for("react.memo_cache_sentinel")?(nt=n.jsx(xt,{"aria-hidden":"true"}),e[149]=nt):nt=e[149];let Le;e[150]!==o?(Le=o("commandPalette.addConnection"),e[150]=o,e[151]=Le):Le=e[151];let $e;e[152]!==Le?($e=n.jsx("span",{children:Le}),e[152]=Le,e[153]=$e):$e=e[153];let De;e[154]!==Oe||e[155]!==Ie||e[156]!==$e?(De=n.jsxs(le,{value:Oe,onSelect:Ie,children:[nt,$e]}),e[154]=Oe,e[155]=Ie,e[156]=$e,e[157]=De):De=e[157];let Re;e[158]!==o?(Re=o("commandPalette.settings"),e[158]=o,e[159]=Re):Re=e[159];let Me;e[160]!==u||e[161]!==a||e[162]!==D?(Me=()=>u(()=>a({to:"/$org/settings/general",params:D}),"settings"),e[160]=u,e[161]=a,e[162]=D,e[163]=Me):Me=e[163];let st;e[164]===Symbol.for("react.memo_cache_sentinel")?(st=n.jsx($n,{"aria-hidden":"true"}),e[164]=st):st=e[164];let Fe;e[165]!==o?(Fe=o("commandPalette.settings"),e[165]=o,e[166]=Fe):Fe=e[166];let ze;e[167]!==Fe?(ze=n.jsx("span",{children:Fe}),e[167]=Fe,e[168]=ze):ze=e[168];let qe;e[169]!==Re||e[170]!==Me||e[171]!==ze?(qe=n.jsxs(le,{value:Re,onSelect:Me,children:[st,ze]}),e[169]=Re,e[170]=Me,e[171]=ze,e[172]=qe):qe=e[172],e[173]!==we||e[174]!==Ne||e[175]!==Ee||e[176]!==De||e[177]!==qe?(I=n.jsxs(Ge,{heading:we,children:[Ne,Ee,De,qe]}),e[173]=we,e[174]=Ne,e[175]=Ee,e[176]=De,e[177]=qe,e[178]=I):I=e[178],M=z.length>0&&n.jsx(Ge,{heading:o("commandPalette.connections"),children:z.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>u(()=>S($),"connection"),children:[n.jsx(zn,{icon:$.icon,name:$.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title})]},`connection:${$.id}`))}),N=Y.length>0&&n.jsx(Ge,{heading:o("commandPalette.results"),children:Y.map($=>n.jsxs(le,{value:`${$.title} ${$.id}`,keywords:w,onSelect:()=>u(()=>S($),$.type),children:[$.type==="thread"?n.jsx(vn,{"aria-hidden":"true"}):n.jsx(yt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:$.title}),$.type==="task"&&$.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:$.key})]},`${$.type}:${$.id}`))}),e[10]=l,e[11]=u,e[12]=m,e[13]=b,e[14]=a,e[15]=r,e[16]=s,e[17]=S,e[18]=i.slug,e[19]=d,e[20]=w,e[21]=o,e[22]=h,e[23]=_,e[24]=P,e[25]=N,e[26]=j,e[27]=g,e[28]=T,e[29]=k,e[30]=A,e[31]=E,e[32]=C,e[33]=O,e[34]=I,e[35]=M}else _=e[23],P=e[24],N=e[25],j=e[26],g=e[27],T=e[28],k=e[29],A=e[30],E=e[31],C=e[32],O=e[33],I=e[34],M=e[35];let B;e[179]!==_||e[180]!==N||e[181]!==E||e[182]!==C||e[183]!==O||e[184]!==I||e[185]!==M?(B=n.jsxs(_,{children:[E,C,O,I,M,N]}),e[179]=_,e[180]=N,e[181]=E,e[182]=C,e[183]=O,e[184]=I,e[185]=M,e[186]=B):B=e[186];let G;return e[187]!==P||e[188]!==j||e[189]!==g||e[190]!==T||e[191]!==k||e[192]!==A||e[193]!==B?(G=n.jsxs(P,{open:j,onOpenChange:g,title:T,description:k,children:[A,B]}),e[187]=P,e[188]=j,e[189]=g,e[190]=T,e[191]=k,e[192]=A,e[193]=B,e[194]=G):G=e[194],G}function Us(t){return t.type!=="connection"}function Gs(t){return t.type==="connection"}const We=new Hn(!1);function Js(){We.set(!0)}function Vs(){We.set(!1)}function Ws(){const t=R.c(2),e=V.useSyncExternalStore(We.subscribe,We.get);let s;return t[0]!==e?(s=[e,We.set],t[0]=e,t[1]=s):s=t[1],s}const Ys=300*1e3,Qs=2;function Xs(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Zs(t,e){return t.count>=Qs&&t.version!==null&&t.version!==e}function eo(){const t=R.c(43),e=W(),s=Gn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:no},t[0]=r):r=t[0];const o=Ye(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ue.appVersionCheck(),queryFn:to,refetchInterval:Ys,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:d}=He(a),[m,h]=V.useState(0);let v;t[2]===Symbol.for("react.memo_cache_sentinel")?(v={version:null,count:0},t[2]=v):v=t[2];const[c,b]=V.useState(v);d!==m&&(h(d),b(B=>Xs(B,i,"4.373.3")));const[p,l]=V.useState(null),f=s;let u;t[3]!==s||t[4]!==o?(u=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=u):u=t[5];const x=u,S="announcements.version.refresh";if(!Zs(c,p))return null;let y;t[6]!==e?(y=e("announcements.version.ariaLabel"),t[6]=e,t[7]=y):y=t[7];let w;t[8]!==e?(w=e("announcements.version.dismiss"),t[8]=e,t[9]=w):w=t[9];let _;t[10]!==e?(_=e("announcements.version.eyebrow"),t[10]=e,t[11]=_):_=t[11];let P;t[12]!==e?(P=e("announcements.version.title"),t[12]=e,t[13]=P):P=t[13];const N="announcements.version.description";let j;t[14]!==e||t[15]!==N?(j=e(N),t[14]=e,t[15]=N,t[16]=j):j=t[16];let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(pt,{size:16}),t[17]=g):g=t[17];let T;t[18]!==c.version?(T=()=>l(c.version),t[18]=c.version,t[19]=T):T=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.373.3"}),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-CC7J7MsT.js";import{i as H}from"./LayoutLeft-Cr5_A1QG.js";import{u as V}from"./use-mobile-X_9uHXB5.js";import{b as W,c as F,S as L,d as q,a as G}from"./sheet-B5ncClVO.js";import{b as $,T as z,a as B,c as E}from"./tooltip-DSCGYdw1.js";const J="15rem",K="18rem",Q="4.5rem",k=O.createContext(null);function D(){const l=O.useContext(k);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function ie(l){const e=y.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,d=s===void 0?!1:s,r=V(),[n,x]=O.useState(d),[f,g]=O.useState(!1),c=a!==void 0,b=c?a:n;let S;e[0]!==c||e[1]!==i?(S=C=>{c||x(C),i?.(C)},e[0]=c,e[1]=i,e[2]=S):S=e[2];const u=S;let w;e[3]!==r||e[4]!==b||e[5]!==u?(w=()=>{r?g(U):u(!b)},e[3]=r,e[4]=b,e[5]=u,e[6]=w):w=e[6];const j=w,m=b?"expanded":"collapsed";let p;e[7]!==r||e[8]!==b||e[9]!==f||e[10]!==u||e[11]!==m||e[12]!==j?(p={state:m,open:b,setOpen:u,isMobile:r,openMobile:f,setOpenMobile:g,toggleSidebar:j},e[7]=r,e[8]=b,e[9]=f,e[10]=u,e[11]=m,e[12]=j,e[13]=p):p=e[13];const v=p;let h;e[14]!==t?(h=o.jsx($,{delayDuration:0,children:t}),e[14]=t,e[15]=h):h=e[15];let _;return e[16]!==v||e[17]!==h?(_=o.jsx(k.Provider,{value:v,children:h}),e[16]=v,e[17]=h,e[18]=_):_=e[18],_}function U(l){return!l}function le(l){const e=y.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":J,"--sidebar-width-icon":Q,...i},e[5]=i,e[6]=d):d=e[6];const r=d;let n;e[7]!==s?(n=N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let x;return e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==n?(x=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...a,children:t}),e[9]=t,e[10]=a,e[11]=r,e[12]=n,e[13]=x):x=e[13],x}function re(l){const e=y.c(36);let t,s,a,i,d;e[0]!==l?({side:i,variant:d,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5]);const r=i===void 0?"left":i,n=d===void 0?"sidebar":d,{isMobile:x,state:f,openMobile:g,setOpenMobile:c}=D();if(x){let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_={"--sidebar-width":K},e[6]=_):_=e[6];let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsxs(F,{className:"sr-only",children:[o.jsx(L,{children:"Sidebar"}),o.jsx(q,{children:"Displays the mobile sidebar."})]}),e[7]=C):C=e[7];let M;e[8]!==t?(M=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=M):M=e[9];let I;e[10]!==r||e[11]!==M?(I=o.jsxs(G,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:_,side:r,children:[C,M]}),e[10]=r,e[11]=M,e[12]=I):I=e[12];let T;return e[13]!==g||e[14]!==a||e[15]!==c||e[16]!==I?(T=o.jsx(W,{open:g,onOpenChange:c,...a,children:I}),e[13]=g,e[14]=a,e[15]=c,e[16]=I,e[17]=T):T=e[17],T}const b=f==="expanded",S=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let u;e[18]!==S?(u=N("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",S),e[18]=S,e[19]=u):u=e[19];const w=b?void 0:"icon",j=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let m;e[20]!==s||e[21]!==j?(m=N("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",j,s),e[20]=s,e[21]=j,e[22]=m):m=e[22];let p;e[23]!==t?(p=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=p):p=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==p?(v=o.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:p}),e[25]=a,e[26]=m,e[27]=p,e[28]=v):v=e[28];let h;return e[29]!==r||e[30]!==f||e[31]!==u||e[32]!==w||e[33]!==v||e[34]!==n?(h=o.jsx("div",{className:u,"data-state":f,"data-collapsible":w,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:v}),e[29]=r,e[30]=f,e[31]=u,e[32]=w,e[33]=v,e[34]=n,e[35]=h):h=e[35],h}function ne(l){const e=y.c(18);let t,s,a;e[0]!==l?({className:t,onClick:s,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:i}=D();let d;e[4]!==t?(d=N("size-7",t),e[4]=t,e[5]=d):d=e[5];let r;e[6]!==s||e[7]!==i?(r=b=>{s?.(b),i()},e[6]=s,e[7]=i,e[8]=r):r=e[8];let n,x;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(H,{}),x=o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=n,e[10]=x):(n=e[9],x=e[10]);let f;e[11]!==a||e[12]!==d||e[13]!==r?(f=o.jsx(z,{asChild:!0,children:o.jsxs(A,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:r,...a,children:[n,x]})}),e[11]=a,e[12]=d,e[13]=r,e[14]=f):f=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsxs(B,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",o.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(X)})]}),e[15]=g):g=e[15];let c;return e[16]!==f?(c=o.jsx($,{delayDuration:300,children:o.jsxs(E,{children:[f,g]})}),e[16]=f,e[17]=c):c=e[17],c}function X(l){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:l},l)}function oe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function de(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ce(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ue(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function fe(l){const e=y.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=N("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const Y=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 classic:[&_svg]:opacity-60 classic:hover:[&_svg]:opacity-100 compact:[&_svg:not([class*='text-'])]:text-muted-foreground compact:hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 classic:group-data-[state=collapsed]/sidebar:w-full! classic:group-data-[state=collapsed]/sidebar:aspect-square! classic:group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! classic:group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm compact:group-data-[state=collapsed]/sidebar:size-8! compact:group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function pe(l){const e=y.c(28);let t,s,a,i,d,r,n;e[0]!==l?({asChild:a,isActive:i,variant:d,size:r,tooltip:n,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d,e[6]=r,e[7]=n):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5],r=e[6],n=e[7]);const x=a===void 0?!1:a,f=i===void 0?!1:i,g=d===void 0?"default":d,c=r===void 0?"default":r,b=x?P:"button",{isMobile:S}=D();let u;e[8]!==t||e[9]!==c||e[10]!==g?(u=N(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=u):u=e[11];let w;e[12]!==b||e[13]!==f||e[14]!==s||e[15]!==c||e[16]!==u?(w=o.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":f,className:u,...s}),e[12]=b,e[13]=f,e[14]=s,e[15]=c,e[16]=u,e[17]=w):w=e[17];const j=w;if(!n)return j;if(typeof n=="string"){let h;e[18]!==n?(h={children:n},e[18]=n,e[19]=h):h=e[19],n=h}let m;e[20]!==j?(m=o.jsx(z,{asChild:!0,children:j}),e[20]=j,e[21]=m):m=e[21];let p;e[22]!==S||e[23]!==n?(p=o.jsx(B,{side:"right",align:"center",hidden:S,...n}),e[22]=S,e[23]=n,e[24]=p):p=e[24];let v;return e[25]!==m||e[26]!==p?(v=o.jsxs(E,{children:[m,p]}),e[25]=m,e[26]=p,e[27]=v):v=e[27],v}export{ie as S,le as a,oe as b,pe as c,ue as d,fe as e,de as f,ce as g,re as h,ne as i,D as u};
1
+ import{r as O,c as y,j as o,l as N,B as A,bd as P,aF as R}from"./index-DXBmCj7V.js";import{i as H}from"./LayoutLeft-CyJFqp-6.js";import{u as V}from"./use-mobile-CRuuooNM.js";import{b as W,c as F,S as L,d as q,a as G}from"./sheet-DlPfrw9X.js";import{b as $,T as z,a as B,c as E}from"./tooltip-rAdo_tRS.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-CC7J7MsT.js";import{b as R,D as _,d as q,i as A}from"./dialog-BKhaq-Xf.js";import{i as $}from"./X-DTaqHNcB.js";import{i as G}from"./Zap-D3d1wpzw.js";import{M as H}from"./markdown-tOSThun8.js";import{F as J}from"./file-preview-BFDgPeRr.js";import{F as Q}from"./file-type-icon-Co9lETmZ.js";import{i as V,c as W,n as X}from"./use-org-fs-C4AEj3YR.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-DXBmCj7V.js";import{b as R,D as _,d as q,i as A}from"./dialog-uPTcsM6n.js";import{i as $}from"./X-CvjnZl5e.js";import{i as G}from"./Zap-UqD0_RZa.js";import{M as H}from"./markdown-CqOP0_5N.js";import{F as J}from"./file-preview-BQWchARE.js";import{F as Q}from"./file-type-icon-x1wD28_F.js";import{i as V,c as W,n as X}from"./use-org-fs-DnKhdb5t.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-CC7J7MsT.js";import{i as ke}from"./DotsVertical-DMzYFBsd.js";import{a as ve}from"./Package-Cd3aVeK8.js";import{s as ye}from"./Trash01-CpN6r-a0.js";import{i as Se}from"./Upload01-DkDsqCWe.js";import{i as le}from"./Zap-D3d1wpzw.js";import{S as be}from"./search-input-MlNEh696.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-D6rlFoy0.js";import{E as Z}from"./empty-state-DiRnF-wA.js";import{C as Me}from"./collection-tabs-BW0egx-_.js";import{F as Ie}from"./folder-icon-CPH1Bszw.js";import{p as Oe,h as ze,q as Fe}from"./use-org-fs-C4AEj3YR.js";import{H as J,d as $e}from"./location-oTTXFrSF.js";import{S as Le}from"./skill-preview-CeIBKDR2.js";import{p as Re}from"./skill-md-ChfVs4uF.js";import"./SearchMd-C6gkQ2l2.js";import"./badge-BSirYRuD.js";import"./Eye-Bxxku7SE.js";import"./dialog-BKhaq-Xf.js";import"./X-DTaqHNcB.js";import"./markdown-tOSThun8.js";import"./Copy01-CrFZhFXo.js";import"./Download01-B93GUT2-.js";import"./ZoomOut-B3S7N50e.js";import"./org-file-open-context-k2zY7W2A.js";import"./use-mobile-X_9uHXB5.js";import"./use-panel-navigate-YnjVvVnu.js";import"./thread-route-DnE31jZ2.js";import"./use-project-scope-azWGklpf.js";import"./use-virtual-mcp-Bt7oX0ej.js";import"./use-mcp-client-jmamuSRM.js";import"./auth-B_QE3yd2.js";import"./github-repo-BknN0SVI.js";import"./file-preview-BFDgPeRr.js";import"./utils-CcX7wgow.js";import"./Image01-DPvj49a-.js";import"./editor-DMij_Pa1.js";import"./file-type-icon-Co9lETmZ.js";const V=200,_e=new Set(["node_modules","__pycache__"]);function U(r){const[,...e]=r.webkitRelativePath.split("/");return e.length>0?e.join("/"):r.name}function Be(r){return U(r).split("/").every(e=>!e.startsWith(".")&&!_e.has(e))}function Ke(r){return r.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function He(r,e){const i=new Map;for(const l of r){const o=U(l).split("/");o.pop();const c=["skills",e,...o].join("/");i.set(c,[...i.get(c)??[],l])}return i}async function qe(r,e){const l=(await Promise.allSettled([...r].map(([o,c])=>e({dir:o,files:c})))).find(o=>o.status==="rejected");if(l)throw l.reason}function Qe(r,e){const i=Re(e),l=`skills/${r}`;return{id:`home/${l}`,name:i.name??r,description:i.description,source:"home",volume:J,path:l,sandboxPath:`org/${J}/${l}`}}const _="*";function B(r){return r.volume==="home"}function re(r,e){const i=r.indexOf(":");return i===-1?{label:e,glyph:le}:{label:r.slice(i+1),glyph:r.startsWith("repo:")?pe:ve}}function Ge(r){const e=ie.c(48),{entry:i,pending:l,onOpen:o,onDelete:c}=r,a=te(),{org:S}=se();let m;e[0]!==i.source||e[1]!==S.name?(m=re(i.source,S.name),e[0]=i.source,e[1]=S.name,e[2]=m):m=e[2];const{label:M,glyph:I}=m;let O;e[3]!==i?(O=B(i),e[3]=i,e[4]=O):O=e[4];const F=O,z=l?"opacity-60":"hover:bg-muted/50";let p;e[5]!==z?(p=ue("relative transition-colors group overflow-hidden flex flex-col h-full",z),e[5]=z,e[6]=p):p=e[6];let f;e[7]!==i.name||e[8]!==o||e[9]!==l?(f=!l&&t.jsx("button",{type:"button",onClick:o,className:"absolute inset-0 z-0","aria-label":i.name}),e[7]=i.name,e[8]=o,e[9]=l,e[10]=f):f=e[10];const b=F?"default":"system",N=!F;let w;e[11]!==I||e[12]!==b||e[13]!==N?(w=t.jsx(Ie,{glyph:I,tone:b,readOnly:N,className:"size-8 shrink-0"}),e[11]=I,e[12]=b,e[13]=N,e[14]=w):w=e[14];let h;e[15]!==c||e[16]!==a?(h=c&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(ge,{children:[t.jsx(fe,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ke,{size:16})})}),t.jsx(he,{align:"end",children:t.jsxs(xe,{variant:"destructive",onClick:K=>{K.stopPropagation(),c()},children:[t.jsx(ye,{size:16}),a("settings.skills.deleteButton")]})})]})}),e[15]=c,e[16]=a,e[17]=h):h=e[17];let x;e[18]!==w||e[19]!==h?(x=t.jsxs("div",{className:"flex items-start justify-between",children:[w,h]}),e[18]=w,e[19]=h,e[20]=x):x=e[20];let j;e[21]!==i.name?(j=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:i.name}),e[21]=i.name,e[22]=j):j=e[22];let C;e[23]!==i.description||e[24]!==a?(C=i.description||a("settings.skills.noDescription"),e[23]=i.description,e[24]=a,e[25]=C):C=e[25];let k;e[26]!==C?(k=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:C}),e[26]=C,e[27]=k):k=e[27];let d;e[28]!==j||e[29]!==k?(d=t.jsxs("div",{className:"flex flex-col gap-1",children:[j,k]}),e[28]=j,e[29]=k,e[30]=d):d=e[30];let v;e[31]!==x||e[32]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[x,d]}),e[31]=x,e[32]=d,e[33]=v):v=e[33];let u;e[34]!==M||e[35]!==l||e[36]!==a?(u=l?a("settings.skills.importing"):M,e[34]=M,e[35]=l,e[36]=a,e[37]=u):u=e[37];let y;e[38]!==u?(y=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:u})})}),e[38]=u,e[39]=y):y=e[39];let g;e[40]!==v||e[41]!==y?(g=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[v,y]}),e[40]=v,e[41]=y,e[42]=g):g=e[42];let P;return e[43]!==l||e[44]!==g||e[45]!==p||e[46]!==f?(P=t.jsxs(je,{"aria-busy":l,className:p,children:[f,g]}),e[43]=l,e[44]=g,e[45]=p,e[46]=f,e[47]=P):P=e[47],P}function ee(r){const e=ie.c(2),{children:i}=r;let l;return e[0]!==i?(l=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:i}),e[0]=i,e[1]=l):l=e[1],l}function Tt(){const r=ae(),e=te(),{org:i}=se(),l=Oe(),{remove:o,upload:c}=ze("home"),a=ce(),S=T.useRef(null),[m,M]=T.useState(""),[I,O]=T.useState(_),[F,z]=T.useState(!1),[p,f]=T.useState(null),[b,N]=T.useState(null),[w,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:Q.slashSkills(i.id)}),a.invalidateQueries({queryKey:Q.orgFsSkills(i.id)})},j=s=>a.setQueryData(Q.slashSkills(i.id),n=>s(n??[]));async function C(s){const n=[...s??[]];if(S.current&&(S.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){D.error(e("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",L=n.filter(Be),W=L.find(A=>U(A)==="SKILL.md");if(!W){D.error(e("settings.skills.importMissingSkillMd"));return}if(L.length>V){D.error(e("settings.skills.importTooManyFiles",{count:String(L.length),max:String(V)}));return}const $=Ke(q),X=`skills/${$}`;let Y=!1;z(!0);try{if(await Fe(i.slug,"home",X)){D.error(e("settings.skills.importSlugTaken",{slug:$}));return}Y=!0;const A=Qe($,await W.text());j(oe=>[A,...oe]),h(A.id),await qe(He(L,$),c.mutateAsync),D.success(e("settings.skills.importSuccess",{name:$}))}catch(A){Y&&await o.mutateAsync(X).catch(()=>{}),D.error(A instanceof Error?A.message:e("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=m.toLowerCase(),d=(l.data??[]).filter(s=>s.name.toLowerCase().includes(k)||(s.description??"").toLowerCase().includes(k)).sort((s,n)=>Number(B(n))-Number(B(s))||s.name.localeCompare(n.name)),v=new Set((l.data??[]).map(s=>s.source)),u=new Map;for(const s of d)u.set(s.source,(u.get(s.source)??0)+1);const y=[{id:_,label:e("settings.skills.filterAll"),count:d.length},...[...v].map(s=>({id:s,label:re(s,i.name).label,count:u.get(s)??0}))],g=v.has(I)?I:_,P=g===_?d:d.filter(s=>s.source===g),K=s=>f($e(s.volume,s.path)),ne=async()=>{if(!b)return;const{id:s,path:n}=b;N(null),j(E=>E.filter(q=>q.id!==s));try{await o.mutateAsync(n),D.success(e("settings.skills.deleteSuccess"))}catch(E){D.error(E instanceof Error?E.message:e("settings.skills.deleteError"))}finally{x()}},H=t.jsxs(G,{size:"sm",disabled:F,onClick:()=>S.current?.click(),children:[t.jsx(Se,{size:14}),e(F?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(R,{children:[t.jsx(R.Content,{children:t.jsx(R.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(R.Title,{actions:r&&H,children:e("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(be,{value:m,onChange:M,placeholder:e("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:s=>{s.key==="Escape"&&(M(""),s.target.blur())}}),!r&&H,t.jsx("input",{ref:S,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:s=>{C(s.target.files)}})]}),y.length>2&&t.jsx(Me,{placement:"page",tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(s,n)=>t.jsx(me,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(de,{size:48,className:"text-muted-foreground"}),title:e("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:e("settings.skills.errorDescription"),actions:t.jsx(G,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:e("settings.skills.retry")})})}):P.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:e(m?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:m?e("settings.skills.noResultsDescription",{search:m}):e("settings.skills.emptyDescription"),actions:!r&&!m&&H})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:P.map(s=>{const n=s.id===w;return t.jsx(Ge,{entry:s,pending:n,onOpen:()=>K(s),onDelete:B(s)&&!n?()=>N(s):void 0},s.id)})})})]})})}),p&&t.jsx(Le,{skillPath:p,onClose:()=>f(null)},p),t.jsx(we,{open:b!==null,onOpenChange:s=>!s&&N(null),children:t.jsxs(Ce,{children:[t.jsxs(De,{children:[t.jsx(Ne,{children:e("settings.skills.deleteDialogTitle")}),t.jsx(Pe,{children:e("settings.skills.deleteDialogDescription",{name:b?.name??""})})]}),t.jsxs(Ee,{children:[t.jsx(Ae,{children:e("settings.skills.cancel")}),t.jsx(Te,{onClick:ne,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:e("settings.skills.deleteButton")})]})]})})]})}export{Tt as default};
1
+ import{Z as ae,b as te,a0 as se,o as ce,r as T,j as t,B as G,n as R,aP as me,T as de,t as D,aj as pe,c as ie,l as ue,I as ge,F as fe,H as he,G as xe,K as Q,eL as je}from"./index-DXBmCj7V.js";import{i as ke}from"./DotsVertical-Bx5qjzcz.js";import{a as ve}from"./Package-EQg-wMAD.js";import{s as ye}from"./Trash01-VGFb49EH.js";import{i as Se}from"./Upload01-Cv7tN2NN.js";import{i as le}from"./Zap-UqD0_RZa.js";import{S as be}from"./search-input-DN1HxMQM.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-D2J-kRAV.js";import{E as Z}from"./empty-state-DATmbbqz.js";import{C as Me}from"./collection-tabs-CU5BwvHd.js";import{F as Ie}from"./folder-icon-BsGi9z8O.js";import{p as Oe,h as ze,q as Fe}from"./use-org-fs-DnKhdb5t.js";import{H as J,d as $e}from"./location-oTTXFrSF.js";import{S as Le}from"./skill-preview-Co5VzFcl.js";import{p as Re}from"./skill-md-ChfVs4uF.js";import"./SearchMd-I-u-Ppkp.js";import"./badge-BMrNoDQF.js";import"./Eye-BD0ZbSdl.js";import"./dialog-uPTcsM6n.js";import"./X-CvjnZl5e.js";import"./markdown-CqOP0_5N.js";import"./Copy01-wurPIobv.js";import"./Download01-BWFtS53v.js";import"./ZoomOut-Cq1zMqoM.js";import"./org-file-open-context-B3uxBbrN.js";import"./use-mobile-CRuuooNM.js";import"./use-panel-navigate-DEBeb2CL.js";import"./thread-route-QtII8A2p.js";import"./use-project-scope-DHl6lLqa.js";import"./use-virtual-mcp-2UFz9K4W.js";import"./use-mcp-client-BtmoWWkf.js";import"./auth-DoQ4Nalq.js";import"./github-repo-BknN0SVI.js";import"./file-preview-BQWchARE.js";import"./utils-1s66UjII.js";import"./Image01-BUYhMNkS.js";import"./editor-DhWDdB15.js";import"./file-type-icon-x1wD28_F.js";const V=200,_e=new Set(["node_modules","__pycache__"]);function U(r){const[,...e]=r.webkitRelativePath.split("/");return e.length>0?e.join("/"):r.name}function Be(r){return U(r).split("/").every(e=>!e.startsWith(".")&&!_e.has(e))}function Ke(r){return r.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function He(r,e){const i=new Map;for(const l of r){const o=U(l).split("/");o.pop();const c=["skills",e,...o].join("/");i.set(c,[...i.get(c)??[],l])}return i}async function qe(r,e){const l=(await Promise.allSettled([...r].map(([o,c])=>e({dir:o,files:c})))).find(o=>o.status==="rejected");if(l)throw l.reason}function Qe(r,e){const i=Re(e),l=`skills/${r}`;return{id:`home/${l}`,name:i.name??r,description:i.description,source:"home",volume:J,path:l,sandboxPath:`org/${J}/${l}`}}const _="*";function B(r){return r.volume==="home"}function re(r,e){const i=r.indexOf(":");return i===-1?{label:e,glyph:le}:{label:r.slice(i+1),glyph:r.startsWith("repo:")?pe:ve}}function Ge(r){const e=ie.c(48),{entry:i,pending:l,onOpen:o,onDelete:c}=r,a=te(),{org:S}=se();let m;e[0]!==i.source||e[1]!==S.name?(m=re(i.source,S.name),e[0]=i.source,e[1]=S.name,e[2]=m):m=e[2];const{label:M,glyph:I}=m;let O;e[3]!==i?(O=B(i),e[3]=i,e[4]=O):O=e[4];const F=O,z=l?"opacity-60":"hover:bg-muted/50";let p;e[5]!==z?(p=ue("relative transition-colors group overflow-hidden flex flex-col h-full",z),e[5]=z,e[6]=p):p=e[6];let f;e[7]!==i.name||e[8]!==o||e[9]!==l?(f=!l&&t.jsx("button",{type:"button",onClick:o,className:"absolute inset-0 z-0","aria-label":i.name}),e[7]=i.name,e[8]=o,e[9]=l,e[10]=f):f=e[10];const b=F?"default":"system",N=!F;let w;e[11]!==I||e[12]!==b||e[13]!==N?(w=t.jsx(Ie,{glyph:I,tone:b,readOnly:N,className:"size-8 shrink-0"}),e[11]=I,e[12]=b,e[13]=N,e[14]=w):w=e[14];let h;e[15]!==c||e[16]!==a?(h=c&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(ge,{children:[t.jsx(fe,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ke,{size:16})})}),t.jsx(he,{align:"end",children:t.jsxs(xe,{variant:"destructive",onClick:K=>{K.stopPropagation(),c()},children:[t.jsx(ye,{size:16}),a("settings.skills.deleteButton")]})})]})}),e[15]=c,e[16]=a,e[17]=h):h=e[17];let x;e[18]!==w||e[19]!==h?(x=t.jsxs("div",{className:"flex items-start justify-between",children:[w,h]}),e[18]=w,e[19]=h,e[20]=x):x=e[20];let j;e[21]!==i.name?(j=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:i.name}),e[21]=i.name,e[22]=j):j=e[22];let C;e[23]!==i.description||e[24]!==a?(C=i.description||a("settings.skills.noDescription"),e[23]=i.description,e[24]=a,e[25]=C):C=e[25];let k;e[26]!==C?(k=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:C}),e[26]=C,e[27]=k):k=e[27];let d;e[28]!==j||e[29]!==k?(d=t.jsxs("div",{className:"flex flex-col gap-1",children:[j,k]}),e[28]=j,e[29]=k,e[30]=d):d=e[30];let v;e[31]!==x||e[32]!==d?(v=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[x,d]}),e[31]=x,e[32]=d,e[33]=v):v=e[33];let u;e[34]!==M||e[35]!==l||e[36]!==a?(u=l?a("settings.skills.importing"):M,e[34]=M,e[35]=l,e[36]=a,e[37]=u):u=e[37];let y;e[38]!==u?(y=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:u})})}),e[38]=u,e[39]=y):y=e[39];let g;e[40]!==v||e[41]!==y?(g=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[v,y]}),e[40]=v,e[41]=y,e[42]=g):g=e[42];let P;return e[43]!==l||e[44]!==g||e[45]!==p||e[46]!==f?(P=t.jsxs(je,{"aria-busy":l,className:p,children:[f,g]}),e[43]=l,e[44]=g,e[45]=p,e[46]=f,e[47]=P):P=e[47],P}function ee(r){const e=ie.c(2),{children:i}=r;let l;return e[0]!==i?(l=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:i}),e[0]=i,e[1]=l):l=e[1],l}function Tt(){const r=ae(),e=te(),{org:i}=se(),l=Oe(),{remove:o,upload:c}=ze("home"),a=ce(),S=T.useRef(null),[m,M]=T.useState(""),[I,O]=T.useState(_),[F,z]=T.useState(!1),[p,f]=T.useState(null),[b,N]=T.useState(null),[w,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:Q.slashSkills(i.id)}),a.invalidateQueries({queryKey:Q.orgFsSkills(i.id)})},j=s=>a.setQueryData(Q.slashSkills(i.id),n=>s(n??[]));async function C(s){const n=[...s??[]];if(S.current&&(S.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){D.error(e("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",L=n.filter(Be),W=L.find(A=>U(A)==="SKILL.md");if(!W){D.error(e("settings.skills.importMissingSkillMd"));return}if(L.length>V){D.error(e("settings.skills.importTooManyFiles",{count:String(L.length),max:String(V)}));return}const $=Ke(q),X=`skills/${$}`;let Y=!1;z(!0);try{if(await Fe(i.slug,"home",X)){D.error(e("settings.skills.importSlugTaken",{slug:$}));return}Y=!0;const A=Qe($,await W.text());j(oe=>[A,...oe]),h(A.id),await qe(He(L,$),c.mutateAsync),D.success(e("settings.skills.importSuccess",{name:$}))}catch(A){Y&&await o.mutateAsync(X).catch(()=>{}),D.error(A instanceof Error?A.message:e("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=m.toLowerCase(),d=(l.data??[]).filter(s=>s.name.toLowerCase().includes(k)||(s.description??"").toLowerCase().includes(k)).sort((s,n)=>Number(B(n))-Number(B(s))||s.name.localeCompare(n.name)),v=new Set((l.data??[]).map(s=>s.source)),u=new Map;for(const s of d)u.set(s.source,(u.get(s.source)??0)+1);const y=[{id:_,label:e("settings.skills.filterAll"),count:d.length},...[...v].map(s=>({id:s,label:re(s,i.name).label,count:u.get(s)??0}))],g=v.has(I)?I:_,P=g===_?d:d.filter(s=>s.source===g),K=s=>f($e(s.volume,s.path)),ne=async()=>{if(!b)return;const{id:s,path:n}=b;N(null),j(E=>E.filter(q=>q.id!==s));try{await o.mutateAsync(n),D.success(e("settings.skills.deleteSuccess"))}catch(E){D.error(E instanceof Error?E.message:e("settings.skills.deleteError"))}finally{x()}},H=t.jsxs(G,{size:"sm",disabled:F,onClick:()=>S.current?.click(),children:[t.jsx(Se,{size:14}),e(F?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(R,{children:[t.jsx(R.Content,{children:t.jsx(R.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(R.Title,{actions:r&&H,children:e("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(be,{value:m,onChange:M,placeholder:e("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:s=>{s.key==="Escape"&&(M(""),s.target.blur())}}),!r&&H,t.jsx("input",{ref:S,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:s=>{C(s.target.files)}})]}),y.length>2&&t.jsx(Me,{placement:"page",tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(s,n)=>t.jsx(me,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(de,{size:48,className:"text-muted-foreground"}),title:e("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:e("settings.skills.errorDescription"),actions:t.jsx(G,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:e("settings.skills.retry")})})}):P.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(Z,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:e(m?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:m?e("settings.skills.noResultsDescription",{search:m}):e("settings.skills.emptyDescription"),actions:!r&&!m&&H})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:P.map(s=>{const n=s.id===w;return t.jsx(Ge,{entry:s,pending:n,onOpen:()=>K(s),onDelete:B(s)&&!n?()=>N(s):void 0},s.id)})})})]})})}),p&&t.jsx(Le,{skillPath:p,onClose:()=>f(null)},p),t.jsx(we,{open:b!==null,onOpenChange:s=>!s&&N(null),children:t.jsxs(Ce,{children:[t.jsxs(De,{children:[t.jsx(Ne,{children:e("settings.skills.deleteDialogTitle")}),t.jsx(Pe,{children:e("settings.skills.deleteDialogDescription",{name:b?.name??""})})]}),t.jsxs(Ee,{children:[t.jsx(Ae,{children:e("settings.skills.cancel")}),t.jsx(Te,{onClick:ne,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:e("settings.skills.deleteButton")})]})]})})]})}export{Tt as default};
@@ -1 +1 @@
1
- import{b as B,a0 as L,r as v,j as e,n as x,e_ as k,dW as E,dX as y,dY as a,fx as D,B as m,q as C,t as c,c as z}from"./index-CC7J7MsT.js";import{D as T}from"./domain-settings-CUKpZjNV.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-D6rlFoy0.js";import{I as d}from"./input-DSV_9cOM.js";import{S as H}from"./switch-C_FmZ5Us.js";import{a as W,b as X,c as Y,d as G}from"./use-org-sso-CbtWg6df.js";import{s as J}from"./Trash01-CpN6r-a0.js";import{R as K}from"./require-capability-B9l2cjC7.js";import"./badge-BSirYRuD.js";import"./select-C_C7jdl-.js";import"./index-D2HOssRq.js";import"./ChevronUp-CodzCI7T.js";import"./access-gate-DAO7tJ5A.js";import"./capability-load-error-l-yxDu1W.js";function Q(){const s=B(),{org:o}=L(),{data:f,isLoading:I}=W(o.id,o.slug),h=X(o.id,o.slug),S=Y(o.id,o.slug),b=G(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[P,j]=v.useState(!1),u=f?.configured&&f.config,n=f?.config,_=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},N=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!u&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(u?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Container,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),I?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!g&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(H,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(J,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:_,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(E,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(y,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&u?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:N,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:P,onOpenChange:j,children:e.jsxs(R,{children:[e.jsx(q,{children:e.jsx(F,{children:s("settings.orgSso.removeConfirmation")})}),e.jsxs(M,{children:[e.jsx(U,{disabled:S.isPending,children:s("settings.orgSso.cancelButton")}),e.jsx($,{onClick:w,disabled:S.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.orgSso.removeButton")})]})]})})]})}function ue(){const s=z.c(1);let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(K,{capability:"org:manage",area:"security",children:e.jsx(Q,{})}),s[0]=o):o=s[0],o}export{ue as default};
1
+ import{b as B,a0 as L,r as v,j as e,n as x,e_ as k,dW as E,dX as y,dY as a,fx as D,B as m,q as C,t as c,c as z}from"./index-DXBmCj7V.js";import{D as T}from"./domain-settings-C4iSYJi_.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-D2J-kRAV.js";import{I as d}from"./input-CA3NO5_t.js";import{S as H}from"./switch-BV-MyRQN.js";import{a as W,b as X,c as Y,d as G}from"./use-org-sso-D6hDWGLC.js";import{s as J}from"./Trash01-VGFb49EH.js";import{R as K}from"./require-capability-nXjtpUGm.js";import"./badge-BMrNoDQF.js";import"./select-DOrOm388.js";import"./index-U6uQHeCm.js";import"./ChevronUp-BAQXOf5D.js";import"./access-gate-eZrCTx42.js";import"./capability-load-error-CG1OQua7.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};