decocms 4.331.2 → 4.332.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/dist/client/assets/{AlertCircle-BeqK9vLj.js → AlertCircle-CcAlDHxT.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CsMYZQn7.js → AreaChart-DkvNuRK1.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CN1hBjtr.js → ArrowLeft-CBRib5oZ.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-BjhAjJq1.js → ArrowUp-b1JRDhqR.js} +1 -1
  5. package/dist/client/assets/{Check-DjbhZve0.js → Check-BOh2qtCs.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-git3rlqu.js → CheckCircle-1Wy1Kyko.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-3dlQWzgE.js → ChevronRight-BLiW1RUx.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-BOzPuKrx.js → ChevronSelectorVertical-CDMOBxFN.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-D3F3YlZD.js → ChevronUp-CwfcWs9O.js} +1 -1
  10. package/dist/client/assets/{Copy01-BsaQgoj1.js → Copy01--ax_nnhW.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-C_6AxVf0.js → CreditCard01-DBPEyzuf.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-CbPW2qju.js → DotsVertical-CkK-4N7h.js} +1 -1
  13. package/dist/client/assets/{Download01-BulEednD.js → Download01-DQWtoLHA.js} +1 -1
  14. package/dist/client/assets/{ErrorBarContext-D9dK_YZc.js → ErrorBarContext-DLfiIR9O.js} +1 -1
  15. package/dist/client/assets/{Eye-CfTm4nPD.js → Eye-B6lj7d-i.js} +1 -1
  16. package/dist/client/assets/{GitBranch01-8cxvPvq5.js → GitBranch01-GrIssZHW.js} +1 -1
  17. package/dist/client/assets/{Globe01-DUeSgj8X.js → Globe01-B-qpuGwi.js} +1 -1
  18. package/dist/client/assets/{HardDrive-DjCXqX6t.js → HardDrive-g_BIDWnI.js} +1 -1
  19. package/dist/client/assets/{Image01-DwrWIWvg.js → Image01-DKRwZeP2.js} +1 -1
  20. package/dist/client/assets/{Key01-cfBryPvV.js → Key01-DQvcLjdj.js} +1 -1
  21. package/dist/client/assets/{Link01-B7wdC4b4.js → Link01-DuYyfGVc.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-BZdQAjTA.js → LinkExternal01-RTDYS3O8.js} +1 -1
  23. package/dist/client/assets/{Monitor01-BL14QWXf.js → Monitor01-NLTQV3mi.js} +1 -1
  24. package/dist/client/assets/{Package-DX-ASn28.js → Package-AZELZq3n.js} +1 -1
  25. package/dist/client/assets/{Palette-BXVUWnOJ.js → Palette-Duueyldw.js} +1 -1
  26. package/dist/client/assets/{Play-UUaLLIEu.js → Play-BGaUSzkB.js} +1 -1
  27. package/dist/client/assets/{Plus-CpqsIXI9.js → Plus-LT3el5FU.js} +1 -1
  28. package/dist/client/assets/{SearchMd-BVPcVzid.js → SearchMd-DV8_dnjD.js} +1 -1
  29. package/dist/client/assets/{Sector-CNrTPP8O.js → Sector-YJamUnRa.js} +1 -1
  30. package/dist/client/assets/{Settings02-kQ_iz7Na.js → Settings02-GjXtNhFT.js} +1 -1
  31. package/dist/client/assets/{Share07-qJyiNf2L.js → Share07-DSuiNWdu.js} +1 -1
  32. package/dist/client/assets/{Shield01-BVa09cGH.js → Shield01-Bv-anVOu.js} +1 -1
  33. package/dist/client/assets/{Stars01-CVaT1-mP.js → Stars01-BihpuRgD.js} +1 -1
  34. package/dist/client/assets/{Sun-ClDHYwC4.js → Sun-BJJRiwwF.js} +1 -1
  35. package/dist/client/assets/{Tool01-DDfwzv0E.js → Tool01-DiUGHWj9.js} +1 -1
  36. package/dist/client/assets/{Tool02-mjTC5cbv.js → Tool02-De1rnyMG.js} +1 -1
  37. package/dist/client/assets/{Trash01-DQ7by04L.js → Trash01-BZiK__nW.js} +1 -1
  38. package/dist/client/assets/{TrendUp01-DD4S_VSX.js → TrendUp01-CqKYLVSR.js} +1 -1
  39. package/dist/client/assets/{Upload01-BXzxyyOQ.js → Upload01-BSDuLalV.js} +1 -1
  40. package/dist/client/assets/{User01-6qHgTIdo.js → User01-CPl0zwqG.js} +1 -1
  41. package/dist/client/assets/{UserSquare-1qJS6xRb.js → UserSquare-CWAbKe66.js} +1 -1
  42. package/dist/client/assets/{Users01-C8gkmUtm.js → Users01-39DdjMzi.js} +1 -1
  43. package/dist/client/assets/{Users03-B0YfD5hY.js → Users03-DaEapsw3.js} +1 -1
  44. package/dist/client/assets/{XCircle-BcMeYIi2.js → XCircle-LVNBdwoC.js} +1 -1
  45. package/dist/client/assets/{XClose-DVUXrLHk.js → XClose-C_b21wY7.js} +1 -1
  46. package/dist/client/assets/{Zap-ClD9aw0I.js → Zap-C6bIZXXW.js} +1 -1
  47. package/dist/client/assets/{ZoomOut-C-dp4U-B.js → ZoomOut-BXMFKhb2.js} +1 -1
  48. package/dist/client/assets/{access-gate-CsSFWw4h.js → access-gate-mndX2Tef.js} +1 -1
  49. package/dist/client/assets/{agent-icon-DN8AgOdx.js → agent-icon-DJOkIjBQ.js} +1 -1
  50. package/dist/client/assets/agents-list-l73MIJt5.js +1 -0
  51. package/dist/client/assets/ai-providers-D2f5_5pg.js +1 -0
  52. package/dist/client/assets/{alert-DpsVltMr.js → alert-C_mgigaO.js} +1 -1
  53. package/dist/client/assets/{alert-dialog-CusoR2MF.js → alert-dialog-BLvR_jy7.js} +1 -1
  54. package/dist/client/assets/{analytics-tab-HkIuUgFN.js → analytics-tab-C0PBXeXq.js} +1 -1
  55. package/dist/client/assets/api-keys-BURu-dSN.js +1 -0
  56. package/dist/client/assets/{api-keys--ufsDW4o.js → api-keys-DRWGSysS.js} +1 -1
  57. package/dist/client/assets/app-editor-DM9HppWu.js +1 -0
  58. package/dist/client/assets/{auth-DbQBRQ4Z.js → auth-DK_CtSyx.js} +1 -1
  59. package/dist/client/assets/{auth-catchall-CF8DsHxc.js → auth-catchall-DWX78qN3.js} +1 -1
  60. package/dist/client/assets/{auth-entry-BBbQbX1N.js → auth-entry-BqIDl20L.js} +1 -1
  61. package/dist/client/assets/{auth-split-layout-Flrtx9xK.js → auth-split-layout-GituvUXw.js} +1 -1
  62. package/dist/client/assets/{authenticate-and-persist-oauth-Bgm1wW1L.js → authenticate-and-persist-oauth-DYCbKIM-.js} +1 -1
  63. package/dist/client/assets/{automation-list-row-D4FZWyMU.js → automation-list-row-w6Rpa2Nq.js} +1 -1
  64. package/dist/client/assets/{automation-runs-Z276Tdfx.js → automation-runs--aJ2zjEt.js} +1 -1
  65. package/dist/client/assets/{automations-CgvUL0Wl.js → automations-BGdYiVZK.js} +1 -1
  66. package/dist/client/assets/autosend-DngT-JPe.js +1 -0
  67. package/dist/client/assets/{avatar-D27fcx4E.js → avatar-DWL78bAC.js} +1 -1
  68. package/dist/client/assets/{badge-BcnJOpMB.js → badge-rP2HXHvQ.js} +1 -1
  69. package/dist/client/assets/{block-document-W_9nY7DW.js → block-document-CdC-8Nqm.js} +1 -1
  70. package/dist/client/assets/{breadcrumb-CqVV0Zcy.js → breadcrumb-DSiUGqaa.js} +1 -1
  71. package/dist/client/assets/{buckets-Cxf0uPjr.js → buckets-DAFe4fwM.js} +1 -1
  72. package/dist/client/assets/{bulk-category-panel-Ti7hVFO0.js → bulk-category-panel-VaGgRGmv.js} +1 -1
  73. package/dist/client/assets/{capability-load-error-56aZftmi.js → capability-load-error-SOiMQgxC.js} +1 -1
  74. package/dist/client/assets/{cards-vocTSBsd.js → cards-jT2ChCI_.js} +1 -1
  75. package/dist/client/assets/category-editor-8d1nFoSF.js +1 -0
  76. package/dist/client/assets/{cdn-tab-COaAZAZ-.js → cdn-tab-BFO0vpkx.js} +1 -1
  77. package/dist/client/assets/{chart-CIkrG501.js → chart-RC_jGyDx.js} +1 -1
  78. package/dist/client/assets/{chat-context-aTj9Qvdp.js → chat-context-BMM_Trtm.js} +6 -6
  79. package/dist/client/assets/{checkbox-OhwqzmfR.js → checkbox-DOZpGl_s.js} +1 -1
  80. package/dist/client/assets/{choose-editor-Bcb2EhmD.js → choose-editor-DjqY3Yj2.js} +1 -1
  81. package/dist/client/assets/{cli-auth-success-CKXXh2rf.js → cli-auth-success-B5Va4N5b.js} +1 -1
  82. package/dist/client/assets/{client-icons-Bp4gZmgX.js → client-icons-Da8-a_nF.js} +1 -1
  83. package/dist/client/assets/collection-detail-CQoq1j3U.js +1 -0
  84. package/dist/client/assets/{collection-display-button-181XCBV1.js → collection-display-button-CGup3wY3.js} +1 -1
  85. package/dist/client/assets/{collection-search-CQ7b80uM.js → collection-search-WDRBv6DM.js} +1 -1
  86. package/dist/client/assets/{collection-table-wrapper-CXCbeysI.js → collection-table-wrapper-CNQ7npQ3.js} +1 -1
  87. package/dist/client/assets/{collection-tabs-By6Tb-WH.js → collection-tabs-CKA8yzTn.js} +1 -1
  88. package/dist/client/assets/{command-Ckd7DXZH.js → command-D-wgHg-s.js} +1 -1
  89. package/dist/client/assets/{commerce-onboarding-rFlOBO_a.js → commerce-onboarding-CCJFNgSX.js} +1 -1
  90. package/dist/client/assets/{connect-Ci7mBsZ7.js → connect-CnZpmncK.js} +1 -1
  91. package/dist/client/assets/{connect-layout-QTFyeU1i.js → connect-layout-U7eqdyz6.js} +1 -1
  92. package/dist/client/assets/{connection-BX5mPQpz.js → connection-DYL8-kZO.js} +1 -1
  93. package/dist/client/assets/{connection-card-BPioxrIv.js → connection-card-CeSWh7ea.js} +1 -1
  94. package/dist/client/assets/{connection-detail-RraPOmdC.js → connection-detail-DBOPWa5f.js} +1 -1
  95. package/dist/client/assets/{connection-form-helpers-_LjGMZdA.js → connection-form-helpers-CQiln3KM.js} +1 -1
  96. package/dist/client/assets/{connections-Dl5MnCHC.js → connections-B28Q63ZV.js} +1 -1
  97. package/dist/client/assets/{constants-DNuUCxmW.js → constants-DNw8DKoD.js} +1 -1
  98. package/dist/client/assets/{create-organization-dialog-CQedtadz.js → create-organization-dialog-DnupToI4.js} +1 -1
  99. package/dist/client/assets/{decopilot-sse-pool-gYBZKhpd.js → decopilot-sse-pool-ClPdQqCu.js} +1 -1
  100. package/dist/client/assets/{dialog-Bd599x3P.js → dialog-DoQpUhQk.js} +1 -1
  101. package/dist/client/assets/{domain-settings-CaN1_d2e.js → domain-settings-bjaSaj37.js} +1 -1
  102. package/dist/client/assets/{drawer-BKomctGS.js → drawer-BtqEUbEL.js} +1 -1
  103. package/dist/client/assets/{dropdown-menu-CY5iTV-e.js → dropdown-menu-B8sYwH8j.js} +1 -1
  104. package/dist/client/assets/e2e-tab-DRK-vTDW.js +1 -0
  105. package/dist/client/assets/{editor-CA29izQ6.js → editor-BFFR5KPF.js} +1 -1
  106. package/dist/client/assets/{empty-state-CkBTnzIe.js → empty-state-CqoRO5sD.js} +1 -1
  107. package/dist/client/assets/{empty-state-8UJLsM1P.js → empty-state-Dh4EtE45.js} +1 -1
  108. package/dist/client/assets/{extract-connection-data-CVbr2Fgo.js → extract-connection-data-CZtHDBYk.js} +1 -1
  109. package/dist/client/assets/file-explorer-C3x0n0lJ.js +2 -0
  110. package/dist/client/assets/{file-type-icon-DcpGkosI.js → file-type-icon-B3j8PQKI.js} +1 -1
  111. package/dist/client/assets/{folder-icon-BUlfJvCw.js → folder-icon-DooLs5a3.js} +1 -1
  112. package/dist/client/assets/{form-DUbigyul.js → form-BTCHXAgL.js} +1 -1
  113. package/dist/client/assets/{general-DrPYZgnl.js → general-BbLrLuZQ.js} +1 -1
  114. package/dist/client/assets/github-icon-DXKadg2Q.js +1 -0
  115. package/dist/client/assets/github-repo-picker-BqTN8DnU.js +1 -0
  116. package/dist/client/assets/{hooks-xH3j9z4h.js → hooks-DTjfuLcJ.js} +5 -5
  117. package/dist/client/assets/{hosting-tab-DGV7JupH.js → hosting-tab-CVjtmdUW.js} +1 -1
  118. package/dist/client/assets/{index--e6gVzRr.js → index-B6OgmpEo.js} +1 -1
  119. package/dist/client/assets/{index-BLrvJdPf.js → index-Bf-IOcBr.js} +1 -1
  120. package/dist/client/assets/index-Bj1-n2mq.css +1 -0
  121. package/dist/client/assets/{index-N1d6ct61.js → index-BuXlsKTY.js} +1 -1
  122. package/dist/client/assets/index-CHejDNWz.js +1 -0
  123. package/dist/client/assets/{index-DaYo5gUO.js → index-CJHmGzO2.js} +1 -1
  124. package/dist/client/assets/{index-Cy0AzIGX.js → index-D0_dWST3.js} +47 -47
  125. package/dist/client/assets/{index-Ceii15GN.js → index-DdTzYiuN.js} +7 -7
  126. package/dist/client/assets/index-DoehwvzJ.js +1 -0
  127. package/dist/client/assets/{index-C_VkTp_2.js → index-Doh7G4Au.js} +2 -2
  128. package/dist/client/assets/{index-B35rA57u.js → index-Dr6YdXay.js} +1 -1
  129. package/dist/client/assets/{index-redirect-CZn5wIYB.js → index-redirect-CCx-xFU3.js} +1 -1
  130. package/dist/client/assets/{infra-billing-c-RgpShK.js → infra-billing-CWqXG0KC.js} +1 -1
  131. package/dist/client/assets/{input-DbojEF15.js → input-BuBQraFS.js} +1 -1
  132. package/dist/client/assets/{integration-icon-Bj6aC4Ym.js → integration-icon-D66aCztV.js} +1 -1
  133. package/dist/client/assets/{invite-member-dialog-DczR9Nn3.js → invite-member-dialog-AoJYlgnm.js} +1 -1
  134. package/dist/client/assets/{label-CF4jhvOs.js → label-B_3RnZBS.js} +1 -1
  135. package/dist/client/assets/{layout-CjtROQqq.js → layout-CWKLhH9Z.js} +1 -1
  136. package/dist/client/assets/{login-BwJ6JF-9.js → login-QvHgismq.js} +1 -1
  137. package/dist/client/assets/{markdown-3zqu2ODi.js → markdown-_E8A64Me.js} +1 -1
  138. package/dist/client/assets/{mcp-oauth-DQrt-mrP.js → mcp-oauth-Bm8kpZGX.js} +1 -1
  139. package/dist/client/assets/{members-BXWT9wMX.js → members-fSZ71vy3.js} +1 -1
  140. package/dist/client/assets/{monaco-editor-DyETaTcg.js → monaco-editor-CTc8w11G.js} +1 -1
  141. package/dist/client/assets/{monitoring-stats-row-DHyFgX57.js → monitoring-stats-row-GQg7cyAi.js} +1 -1
  142. package/dist/client/assets/{multi-select-lJlTnI2g.js → multi-select-D36Iviet.js} +1 -1
  143. package/dist/client/assets/{oauth-callback-Bzv4nZA1.js → oauth-callback-C_5dplGc.js} +1 -1
  144. package/dist/client/assets/{oauth-callback-ai-provider-Ca2sy-AQ.js → oauth-callback-ai-provider-km-vvGlU.js} +1 -1
  145. package/dist/client/assets/{onboarding-CCkvjEDc.js → onboarding-B6E_2Kb5.js} +1 -1
  146. package/dist/client/assets/org-layout-DtoCRnfd.js +1 -0
  147. package/dist/client/assets/{organization-choice-DOdB9L3a.js → organization-choice--VidzXCz.js} +1 -1
  148. package/dist/client/assets/{orgs-Bs84vGFX.js → orgs-uAc0k8JT.js} +1 -1
  149. package/dist/client/assets/{page-seo-form-CWW9LJ4P.js → page-seo-form-Dz19JJg8.js} +1 -1
  150. package/dist/client/assets/{popover-AiANmij8.js → popover-CXXSzr6f.js} +1 -1
  151. package/dist/client/assets/post-calendar-C8gZL_Bm.js +1 -0
  152. package/dist/client/assets/post-editor-Bx2U2IuI.js +1 -0
  153. package/dist/client/assets/{primitives-CTzNLGKe.js → primitives-CZT6TfuD.js} +1 -1
  154. package/dist/client/assets/{profile-CPCLlrTW.js → profile-BERbyRhB.js} +1 -1
  155. package/dist/client/assets/project-app-view-CnBazBdk.js +1 -0
  156. package/dist/client/assets/{project-icon-CWAsum16.js → project-icon-oi-ak9w3.js} +1 -1
  157. package/dist/client/assets/{prompts-DgXbCEaV.js → prompts-DZdjgFh9.js} +1 -1
  158. package/dist/client/assets/record-editor-C4WVTEV8.js +1 -0
  159. package/dist/client/assets/redirect-editor-By-FqFw6.js +1 -0
  160. package/dist/client/assets/registry-BKVP_676.js +2 -0
  161. package/dist/client/assets/{registry-layout-EMoCkiKV.js → registry-layout-8lwrRsZL.js} +1 -1
  162. package/dist/client/assets/{reports-C8jeAjE8.js → reports-CCV-IwtG.js} +1 -1
  163. package/dist/client/assets/{require-capability-B8ZhyEcB.js → require-capability-B4GofvZa.js} +1 -1
  164. package/dist/client/assets/{required-auth-layout-CUYqsQrd.js → required-auth-layout-Z0mb0rsH.js} +1 -1
  165. package/dist/client/assets/{reset-password-CIh748_v.js → reset-password-Bfz86ciI.js} +1 -1
  166. package/dist/client/assets/{review-settings-Uyv6Wj6T.js → review-settings-BAAU4r_3.js} +1 -1
  167. package/dist/client/assets/{roles-DgP0QZfB.js → roles-Btd-mGJP.js} +1 -1
  168. package/dist/client/assets/{schema-EMzeKiD8.js → schema-AQrGvUyQ.js} +1 -1
  169. package/dist/client/assets/{scroll-area-DksmVOA3.js → scroll-area-BuO1ZJDf.js} +1 -1
  170. package/dist/client/assets/{search-input-BT4wQO0L.js → search-input-ypH6KttZ.js} +1 -1
  171. package/dist/client/assets/{secrets-BZLbpf_f.js → secrets-CwJ0rwiq.js} +1 -1
  172. package/dist/client/assets/{sections-editor-CrEO3muv.js → sections-editor-CKTQxV4K.js} +2 -2
  173. package/dist/client/assets/{select-p3YkP5QY.js → select-DftR8cpe.js} +1 -1
  174. package/dist/client/assets/{select-model-CqA2Sywa.js → select-model-DgevJDGn.js} +1 -1
  175. package/dist/client/assets/{self-tool-result-CorOxwzp.js → self-tool-result-7WH0OV5f.js} +1 -1
  176. package/dist/client/assets/seo-editor-CEb0Cx-0.js +1 -0
  177. package/dist/client/assets/settings-layout-AQp0d1Xv.js +1 -0
  178. package/dist/client/assets/settings-sidebar-CvB-Wtfy.js +1 -0
  179. package/dist/client/assets/{shell-controls-CRkW_fMZ.js → shell-controls-DaTwgwti.js} +1 -1
  180. package/dist/client/assets/shell-layout-BaXII7TS.js +1 -0
  181. package/dist/client/assets/{skill-preview-Cne1vIDc.js → skill-preview-B86RBNtf.js} +1 -1
  182. package/dist/client/assets/{skills-MlRO4FY9.js → skills-Clb4aYR2.js} +1 -1
  183. package/dist/client/assets/source-system-tabs-CnEGUb4r.js +1 -0
  184. package/dist/client/assets/{sso-Cq5qt9ar.js → sso-Bso7pxAM.js} +1 -1
  185. package/dist/client/assets/{store-CAwa736B.js → store-CVQmkVrL.js} +1 -1
  186. package/dist/client/assets/store-registry-DxRvejlh.js +2 -0
  187. package/dist/client/assets/{switch-BB4k41J_.js → switch-DIfWoi0D.js} +1 -1
  188. package/dist/client/assets/synced-repos-Cmuj3gD8.js +1 -0
  189. package/dist/client/assets/{table-CLlz1eE0.js → table-BszXVDRV.js} +1 -1
  190. package/dist/client/assets/{tabs-BfSNDViV.js → tabs-BkCt_fni.js} +1 -1
  191. package/dist/client/assets/{task-board-DC-z7Ntm.js → task-board-B3ijxtiS.js} +1 -1
  192. package/dist/client/assets/task-route-DZ3211tw.js +1 -0
  193. package/dist/client/assets/{tasks-D_DOTfom.js → tasks-CNV0RsaE.js} +1 -1
  194. package/dist/client/assets/{textarea-30WcclEI.js → textarea-CDAAH2II.js} +1 -1
  195. package/dist/client/assets/{thread-intent-BytT8JCA.js → thread-intent-XAFlLESo.js} +1 -1
  196. package/dist/client/assets/thread-route-BAzEeeVY.js +1 -0
  197. package/dist/client/assets/{toggle-group-DQbxaZEL.js → toggle-group-CZM_Vgkq.js} +1 -1
  198. package/dist/client/assets/{toolbar-BRcXBknP.js → toolbar-Dgnz7aTT.js} +1 -1
  199. package/dist/client/assets/{toolbar-icon-button-UaK_jMZb.js → toolbar-icon-button-DU5WReEq.js} +1 -1
  200. package/dist/client/assets/{track-CeG-qWML.js → track-C2czv-3g.js} +1 -1
  201. package/dist/client/assets/{types-ym8B3p9C.js → types-CgVoxjxU.js} +1 -1
  202. package/dist/client/assets/{use-ai-providers-BJrECpw9.js → use-ai-providers-CG5KR2Az.js} +1 -1
  203. package/dist/client/assets/{use-automations-DoveMeCT.js → use-automations-BsmW_Deg.js} +1 -1
  204. package/dist/client/assets/{use-autosave-CWZtBcLH.js → use-autosave-DCr7ZuPT.js} +1 -1
  205. package/dist/client/assets/{use-connection-B8SWnPTA.js → use-connection-BgWJMAdh.js} +1 -1
  206. package/dist/client/assets/{use-copy-DOX31Nmc.js → use-copy-C-vkg8F8.js} +1 -1
  207. package/dist/client/assets/{use-create-virtual-mcp-BqIi8-0x.js → use-create-virtual-mcp-DXjcGp84.js} +1 -1
  208. package/dist/client/assets/{use-debounced-autosave-XulojnGJ.js → use-debounced-autosave-B7ee5ipT.js} +1 -1
  209. package/dist/client/assets/{use-debounced-value-DkmKNtWo.js → use-debounced-value-kyYvhlyP.js} +1 -1
  210. package/dist/client/assets/{use-decopilot-events-DKW4RKRT.js → use-decopilot-events-BXD_vTCV.js} +1 -1
  211. package/dist/client/assets/{use-delete-connection-C4awezeC.js → use-delete-connection-DZaA6mnA.js} +1 -1
  212. package/dist/client/assets/{use-deployment-admin-CYkhXHRz.js → use-deployment-admin-SB6JuMVz.js} +1 -1
  213. package/dist/client/assets/{use-destination-route--qpdvTj3.js → use-destination-route-DlaAN8OO.js} +1 -1
  214. package/dist/client/assets/{use-file-configs-DlNRjVwb.js → use-file-configs-DV8c9zrC.js} +1 -1
  215. package/dist/client/assets/{use-infinite-scroll-BDctOfTY.js → use-infinite-scroll-CXVkqkiB.js} +1 -1
  216. package/dist/client/assets/{use-join-requests-BGh-sfMY.js → use-join-requests-CUA_IRQO.js} +1 -1
  217. package/dist/client/assets/{use-mcp-auth-status-BXbMXkbX.js → use-mcp-auth-status-CHEwRN2v.js} +1 -1
  218. package/dist/client/assets/{use-mcp-client-B897_7pp.js → use-mcp-client-Cn4vec5I.js} +1 -1
  219. package/dist/client/assets/{use-mcp-prompts-DnQVH29L.js → use-mcp-prompts-Crk_TQSh.js} +1 -1
  220. package/dist/client/assets/{use-members-D765rESt.js → use-members-BlLTvKUf.js} +1 -1
  221. package/dist/client/assets/use-navigate-to-agent-CROW96Zk.js +5 -0
  222. package/dist/client/assets/{use-org-auth-client-BsnXbSrQ.js → use-org-auth-client-CoSp7grP.js} +1 -1
  223. package/dist/client/assets/use-org-notice-Bfk2ihUD.js +1 -0
  224. package/dist/client/assets/{use-org-sso-aeP8x90Q.js → use-org-sso-CX3mIpHZ.js} +1 -1
  225. package/dist/client/assets/{use-organization-roles-bDIwKlrS.js → use-organization-roles-DpnQ7xSn.js} +1 -1
  226. package/dist/client/assets/{use-organization-settings--lk0xig1.js → use-organization-settings-Dpmuc2UP.js} +1 -1
  227. package/dist/client/assets/{use-panel-navigate-B2q5dGNh.js → use-panel-navigate-Buj04wle.js} +1 -1
  228. package/dist/client/assets/{use-registry-connections-DbU4jZw7.js → use-registry-connections-DL7zjMIX.js} +1 -1
  229. package/dist/client/assets/{use-secrets-DrYqXQyo.js → use-secrets-FG_RQBPC.js} +1 -1
  230. package/dist/client/assets/{use-section-preview-base-Dmgpg5wN.js → use-section-preview-base-Fl92gLiF.js} +1 -1
  231. package/dist/client/assets/{use-status-sounds-ZhLe50N2.js → use-status-sounds-KGmAdFd0.js} +1 -1
  232. package/dist/client/assets/{use-tags-DGfqaFuE.js → use-tags-D1J-lA2c.js} +1 -1
  233. package/dist/client/assets/{use-view-mode-Bsn87cCu.js → use-view-mode-C1sMKwtE.js} +1 -1
  234. package/dist/client/assets/{use-virtual-mcp-Bo6cr0ng.js → use-virtual-mcp-AWphiY2p.js} +1 -1
  235. package/dist/client/assets/useInfiniteQuery-Cb2mhnE0.js +1 -0
  236. package/dist/client/assets/useSuspenseInfiniteQuery-Czq7x-jF.js +1 -0
  237. package/dist/client/assets/{users-B2mvNtKc.js → users-DcaltFqt.js} +1 -1
  238. package/dist/client/assets/variant-calendar-Bo-tcboo.js +1 -0
  239. package/dist/client/assets/{view-mode-toggle-B8rG-Kcn.js → view-mode-toggle-BoFbaANg.js} +1 -1
  240. package/dist/client/index.html +2 -2
  241. package/dist/server/cli.js +527 -517
  242. package/dist/server/migrate.js +195 -185
  243. package/dist/server/server.js +161 -161
  244. package/package.json +1 -1
  245. package/dist/client/assets/agents-list-CnbNxW7u.js +0 -1
  246. package/dist/client/assets/ai-providers-B-dmbWxQ.js +0 -1
  247. package/dist/client/assets/api-keys-Dq44XdXC.js +0 -1
  248. package/dist/client/assets/app-editor-DEHSgOZI.js +0 -1
  249. package/dist/client/assets/category-editor-ChGqUqZN.js +0 -1
  250. package/dist/client/assets/collection-detail-D5K8HWMy.js +0 -1
  251. package/dist/client/assets/e2e-tab-DqrWTyik.js +0 -1
  252. package/dist/client/assets/file-explorer-BUa8qiyh.js +0 -2
  253. package/dist/client/assets/github-repo-picker-DUwxSg4W.js +0 -1
  254. package/dist/client/assets/index-BOtdAgVM.js +0 -1
  255. package/dist/client/assets/index-BP-qj0LS.css +0 -1
  256. package/dist/client/assets/index-C8gxhtiZ.js +0 -1
  257. package/dist/client/assets/org-layout-DsfH2Fjq.js +0 -1
  258. package/dist/client/assets/post-calendar-BOZODqDm.js +0 -1
  259. package/dist/client/assets/post-editor-SEddXe0k.js +0 -1
  260. package/dist/client/assets/project-app-view-CxUWETfA.js +0 -1
  261. package/dist/client/assets/record-editor-D99Fs_el.js +0 -1
  262. package/dist/client/assets/redirect-editor-CNP-1CMW.js +0 -1
  263. package/dist/client/assets/registry-B3dnNI2W.js +0 -2
  264. package/dist/client/assets/seo-editor-CIU9FQBY.js +0 -1
  265. package/dist/client/assets/settings-layout-BHq4U_SH.js +0 -1
  266. package/dist/client/assets/settings-sidebar-f3bEtSkJ.js +0 -1
  267. package/dist/client/assets/shell-layout-DpsynfYk.js +0 -1
  268. package/dist/client/assets/store-registry-DrbOstlv.js +0 -2
  269. package/dist/client/assets/synced-repos-XaXN9mFS.js +0 -1
  270. package/dist/client/assets/task-route-CmOuMnfg.js +0 -1
  271. package/dist/client/assets/thread-route-D5wRx4Mj.js +0 -1
  272. package/dist/client/assets/use-navigate-to-agent-mgrnOdkU.js +0 -5
  273. package/dist/client/assets/useInfiniteQuery-CQmA1tEO.js +0 -1
  274. package/dist/client/assets/useSuspenseInfiniteQuery-DhFZhKH3.js +0 -1
  275. package/dist/client/assets/variant-calendar-Bv0Z3FIl.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as $,b as W,e as qe,j as n,B as M,t as Fe,cO as me,z as pt,a as Re,w as Mt,x as yt,K as Ke,cP as Ft,cQ as zt,M as $e,l as et,bl as qt,r as V,d as bt,G as ot,m as Be,o as tt,b7 as at,v as Bt,cR as Kt,cS as Ht,cT as Ut,cU as Gt,cV as Jt,C as Vt,u as Wt,Z as Yt,c9 as Qt,cW as Xt,k as xt,cX as Xe,cY as Zt,cZ as en,O as tn,c_ as nn}from"./index-DdTzYiuN.js";import{A as Qe}from"./avatar-DWL78bAC.js";import{t as St,b as rt}from"./Users03-DaEapsw3.js";import{d as sn}from"./TrendUp01-CqKYLVSR.js";import{b4 as on,ay as an,b1 as te,b5 as rn,n as ln,b6 as cn,f as lt,h as dn,g as un,b7 as mn,d as fn}from"./agent-icon-DJOkIjBQ.js";import{s as gn}from"./XClose-C_b21wY7.js";import{D as hn,u as pn,c as yn,d as bn,b as xn}from"./thread-route-BAzEeeVY.js";import{l as wt,a as Sn,u as wn,P as vn}from"./project-icon-oi-ak9w3.js";import{u as jn,D as ne}from"./use-destination-route-DlaAN8OO.js";import{i as kn}from"./source-system-tabs-CnEGUb4r.js";import{u as vt,a as Tn}from"./use-panel-navigate-Buj04wle.js";import{i as ie}from"./CheckCircle-1Wy1Kyko.js";import{i as ct}from"./Tool02-De1rnyMG.js";import{i as Ze}from"./Monitor01-NLTQV3mi.js";import{i as ae}from"./Zap-C6bIZXXW.js";import{c as jt,d as kt,b as Tt,D as Nt,h as Nn,e as _n}from"./dialog-DoQpUhQk.js";import{i as An}from"./Share07-DSuiNWdu.js";import{s as dt}from"./Plus-LT3el5FU.js";import{a as Pn}from"./Settings02-GjXtNhFT.js";import{d as ce,e as We,a as Cn,c as En,b as On,f as In}from"./command-D-wgHg-s.js";import{e as Ln,m as Dn}from"./use-mcp-client-Cn4vec5I.js";import{S as _t,a as $n}from"./constants-DNw8DKoD.js";import{S as Rn,a as Mn}from"./hooks-DTjfuLcJ.js";import{u as Fn}from"./use-is-desktop-app-BNujXJc_.js";import{R as zn}from"./required-auth-layout-Z0mb0rsH.js";import{A as qn}from"./autosend-DngT-JPe.js";import{f as Bn}from"./use-organization-settings-Dpmuc2UP.js";import{u as Kn}from"./use-org-sso-CX3mIpHZ.js";import{u as Hn}from"./use-org-notice-Bfk2ihUD.js";function Un(t){const e=$.c(49),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let u;e[0]!==r||e[1]!==i?(u=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),A=await k.json();if(!k.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=r,e[1]=i,e[2]=u):u=e[2];let m;e[3]!==r?(m=k=>{window.location.href=`/${k.slug??r}`},e[3]=r,e[4]=m):m=e[4];let y;e[5]!==i?(y=k=>{Fe.error(k instanceof Error?k.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=y):y=e[6];let v;e[7]!==u||e[8]!==m||e[9]!==y?(v={mutationFn:u,onSuccess:m,onError:y},e[7]=u,e[8]=m,e[9]=y,e[10]=v):v=e[10];const c=qe(v),x=Gn;let p;e[11]!==o||e[12]!==s?(p=o?n.jsx(Qe,{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(St,{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 d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let S;e[22]!==d?(S=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=S):S=e[23];let w;e[24]!==f||e[25]!==S?(w=n.jsxs("div",{className:"space-y-2",children:[f,S]}),e[24]=f,e[25]=S,e[26]=w):w=e[26];let b;e[27]!==c?(b=()=>c.mutate(),e[27]=c,e[28]=b):b=e[28];let g;e[29]!==c.isPending||e[30]!==s||e[31]!==i?(g=c.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=i,e[32]=g):g=e[32];let _;e[33]!==c.isPending||e[34]!==b||e[35]!==g?(_=n.jsx(M,{onClick:b,disabled:c.isPending,children:g}),e[33]=c.isPending,e[34]=b,e[35]=g,e[36]=_):_=e[36];const P=c.isPending;let T;e[37]!==i?(T=i("common.autoDomainJoinScreen.goHome"),e[37]=i,e[38]=T):T=e[38];let j;e[39]!==c.isPending||e[40]!==T?(j=n.jsx(M,{variant:"ghost",onClick:x,disabled:P,children:T}),e[39]=c.isPending,e[40]=T,e[41]=j):j=e[41];let h;e[42]!==_||e[43]!==j?(h=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,j]}),e[42]=_,e[43]=j,e[44]=h):h=e[44];let N;return e[45]!==w||e[46]!==h||e[47]!==p?(N=n.jsxs(me,{children:[p,w,h]}),e[45]=w,e[46]=h,e[47]=p,e[48]=N):N=e[48],N}function Gn(){window.location.href="/"}function ut(t){const e=$.c(25),{orgSlug:s,orgName:r,reason:o}=t,a=W(),i=Jn,u=o==="not-found",m=u?sn:pt;let y;e[0]!==u||e[1]!==a?(y=a(u?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=u,e[1]=a,e[2]=y):y=e[2];const v=y;let c;e[3]!==u||e[4]!==r||e[5]!==s||e[6]!==a?(c=u?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]=u,e[4]=r,e[5]=s,e[6]=a,e[7]=c):c=e[7];const x=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]!==x?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[12]=x,e[13]=f):f=e[13];let d;e[14]!==l||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[l,f]}),e[14]=l,e[15]=f,e[16]=d):d=e[16];let S;e[17]!==a?(S=a("common.noAccessScreen.goToHome"),e[17]=a,e[18]=S):S=e[18];let w;e[19]!==S?(w=n.jsx(M,{onClick:i,children:S}),e[19]=S,e[20]=w):w=e[20];let b;return e[21]!==p||e[22]!==d||e[23]!==w?(b=n.jsxs(me,{children:[p,d,w]}),e[21]=p,e[22]=d,e[23]=w,e[24]=b):b=e[24],b}function Jn(){window.location.href="/"}function Vn(t){const e=$.c(59),{invitationId:s,orgName:r,orgSlug:o,orgLogo:a}=t,i=W();let u;e[0]!==s?(u=async()=>{const L=await Re.organization.acceptInvitation({invitationId:s});if(L.error)throw new Error(L.error.message);return L.data},e[0]=s,e[1]=u):u=e[1];let m;e[2]!==o?(m=()=>{Mt(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let y;e[4]!==i?(y=L=>{Fe.error(L instanceof Error?L.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=y):y=e[5];let v;e[6]!==u||e[7]!==m||e[8]!==y?(v={mutationFn:u,onSuccess:m,onError:y},e[6]=u,e[7]=m,e[8]=y,e[9]=v):v=e[9];const c=qe(v);let x;e[10]!==s?(x=async()=>{const L=await Re.organization.rejectInvitation({invitationId:s});if(L.error)throw new Error(L.error.message);return L.data},e[10]=s,e[11]=x):x=e[11];let p,l;e[12]!==i?(p=()=>{Fe.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},l=L=>{Fe.error(L instanceof Error?L.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=p,e[14]=l):(p=e[13],l=e[14]);let f;e[15]!==x||e[16]!==p||e[17]!==l?(f={mutationFn:x,onSuccess:p,onError:l},e[15]=x,e[16]=p,e[17]=l,e[18]=f):f=e[18];const d=qe(f),S=c.isPending||d.isPending;let w;e[19]!==a||e[20]!==r?(w=a?n.jsx(Qe,{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(on,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=w):w=e[21];let b;e[22]!==r||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=b):b=e[24];let g;e[25]!==b?(g=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=g):g=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 T;e[31]!==g||e[32]!==P?(T=n.jsxs("div",{className:"space-y-2",children:[g,P]}),e[31]=g,e[32]=P,e[33]=T):T=e[33];let j;e[34]!==c?(j=()=>c.mutate(),e[34]=c,e[35]=j):j=e[35];let h;e[36]!==c.isPending||e[37]!==i?(h=c.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=i,e[38]=h):h=e[38];let N;e[39]!==S||e[40]!==j||e[41]!==h?(N=n.jsx(M,{onClick:j,disabled:S,children:h}),e[39]=S,e[40]=j,e[41]=h,e[42]=N):N=e[42];let k;e[43]!==d?(k=()=>d.mutate(),e[43]=d,e[44]=k):k=e[44];let A;e[45]!==d.isPending||e[46]!==i?(A=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=A):A=e[47];let E;e[48]!==S||e[49]!==k||e[50]!==A?(E=n.jsx(M,{variant:"ghost",onClick:k,disabled:S,children:A}),e[48]=S,e[49]=k,e[50]=A,e[51]=E):E=e[51];let C;e[52]!==N||e[53]!==E?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,E]}),e[52]=N,e[53]=E,e[54]=C):C=e[54];let O;return e[55]!==T||e[56]!==C||e[57]!==w?(O=n.jsxs(me,{children:[w,T,C]}),e[55]=T,e[56]=C,e[57]=w,e[58]=O):O=e[58],O}function Wn(t){const e=$.c(23),{orgName:s,orgLogo:r}=t,o=W();let a;e[0]!==r||e[1]!==s?(a=r?n.jsx(Qe,{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(an,{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 u;e[5]!==i?(u=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=u):u=e[6];let m;e[7]!==s||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=o,e[9]=m):m=e[9];let y;e[10]!==m?(y=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=y):y=e[11];let v;e[12]!==u||e[13]!==y?(v=n.jsxs("div",{className:"space-y-2",children:[u,y]}),e[12]=u,e[13]=y,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 x;e[17]!==c?(x=n.jsx(M,{variant:"ghost",onClick:Yn,children:c}),e[17]=c,e[18]=x):x=e[18];let p;return e[19]!==a||e[20]!==v||e[21]!==x?(p=n.jsxs(me,{children:[a,v,x]}),e[19]=a,e[20]=v,e[21]=x,e[22]=p):p=e[22],p}function Yn(){window.location.href="/"}function Qn(t){const e=$.c(45),{orgName:s,orgSlug:r,orgLogo:o,domain:a}=t,i=W();let u;e[0]!==r?(u=async()=>{const N=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),k=await N.json();if(!N.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=r,e[1]=u):u=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=Zn,e[2]=m):m=e[2];let y;e[3]!==i?(y=N=>{Fe.error(N instanceof Error?N.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=y):y=e[4];let v;e[5]!==u||e[6]!==y?(v={mutationFn:u,onSuccess:m,onError:y},e[5]=u,e[6]=y,e[7]=v):v=e[7];const c=qe(v);let x;e[8]!==o||e[9]!==s?(x=o?n.jsx(Qe,{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(St,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=s,e[10]=x):x=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 d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let S;e[21]!==l||e[22]!==d?(S=n.jsxs("div",{className:"space-y-2",children:[l,d]}),e[21]=l,e[22]=d,e[23]=S):S=e[23];let w;e[24]!==c?(w=()=>c.mutate(),e[24]=c,e[25]=w):w=e[25];let b;e[26]!==c.isPending||e[27]!==i?(b=c.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=i,e[28]=b):b=e[28];let g;e[29]!==c.isPending||e[30]!==w||e[31]!==b?(g=n.jsx(M,{onClick:w,disabled:c.isPending,children:b}),e[29]=c.isPending,e[30]=w,e[31]=b,e[32]=g):g=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 T;e[35]!==c.isPending||e[36]!==P?(T=n.jsx(M,{variant:"ghost",onClick:Xn,disabled:_,children:P}),e[35]=c.isPending,e[36]=P,e[37]=T):T=e[37];let j;e[38]!==g||e[39]!==T?(j=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,T]}),e[38]=g,e[39]=T,e[40]=j):j=e[40];let h;return e[41]!==S||e[42]!==j||e[43]!==x?(h=n.jsxs(me,{children:[x,S,j]}),e[41]=S,e[42]=j,e[43]=x,e[44]=h):h=e[44],h}function Xn(){window.location.href="/"}function Zn(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function es(t){const e=$.c(7);let s;e[0]!==t?(s=Ke.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],yt(o)}function ts({orgSlug:t}){const{data:e}=es(t);if(e.status!=="member"){Ft()?.org===t&&zt();const s=localStorage.getItem($e.lastOrgSlug())===t;if(s&&localStorage.removeItem($e.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(ut,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(Vn,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Un,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Qn,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Wn,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(ut,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function At(t){const e=$.c(42),{ariaLabel:s,dismissLabel:r,eyebrow:o,title:a,description:i,icon:u,children:m,footerLeading:y,actions:v,onDismiss:c,tone:x}=t,p=x===void 0?"neutral":x,l=y||v;let f;e[0]!==p?(f=p==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=p,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(gn,{size:14}),e[2]=d):d=e[2];let S;e[3]!==r||e[4]!==c?(S=n.jsx(M,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:d}),e[3]=r,e[4]=c,e[5]=S):S=e[5];const w=u&&"flex items-start gap-3",b=m&&"pb-3";let g;e[6]!==w||e[7]!==b?(g=et("p-4 pr-11",w,b),e[6]=w,e[7]=b,e[8]=g):g=e[8];let _;e[9]!==u?(_=u&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:u}),e[9]=u,e[10]=_):_=e[10];let P;e[11]!==o?(P=o&&n.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=P):P=e[12];let T;e[13]!==a?(T=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=T):T=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 h;e[17]!==T||e[18]!==j||e[19]!==P?(h=n.jsxs("div",{children:[P,T,j]}),e[17]=T,e[18]=j,e[19]=P,e[20]=h):h=e[20];let N;e[21]!==m?(N=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let k;e[23]!==h||e[24]!==N?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[h,N]}),e[23]=h,e[24]=N,e[25]=k):k=e[25];let A;e[26]!==k||e[27]!==g||e[28]!==_?(A=n.jsxs("div",{className:g,children:[_,k]}),e[26]=k,e[27]=g,e[28]=_,e[29]=A):A=e[29];let E;e[30]!==v||e[31]!==y||e[32]!==l||e[33]!==p?(E=l&&n.jsxs("div",{className:et("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:y}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:v})]}),e[30]=v,e[31]=y,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]!==S||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,S,A,E]}),e[35]=s,e[36]=A,e[37]=E,e[38]=f,e[39]=S,e[40]=p,e[41]=C):C=e[41],C}const ns=[{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 ss(t){return ns.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function os(t,e){return ss(e).map(s=>({element:wt(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const is=wt("switcher"),as=30;function Pt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function rs(t,e){return os(t,e).filter(s=>typeof s.element=="string"&&Pt(s.element))}function ls(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:()=>{Me=!1},steps:e}}let Me=!1;async function cs(){return(await qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function ds(t,e){if(Me)return;Me=!0;let s=0;const r=()=>{if(!Pt(is)&&s++<as){requestAnimationFrame(r);return}const o=rs(t,e);if(o.length===0){Me=!1;return}cs().then(a=>{a(ls(t,o)).drive()}).catch(()=>{Me=!1})};r()}const us=[{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:rt,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:Ze,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:Ze,title:"Native Linux desktop app",body:"Studio now ships as an AppImage for 64-bit x86 Linux, bringing the local desktop workflow to Linux."},{icon:ie,title:"Verified, no-root install",body:"The installer verifies the download, installs Studio to ~/.local/bin, and adds it to your application launcher without sudo."},{icon:ae,title:"Beta today, broader support next",body:"We're validating more distributions and desktop environments. Arm builds are not available yet, and your feedback will shape general availability."}],cta:{label:"Install Studio",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases/tag/native-v4.242.0"},{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:ae,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:te,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:rn,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:Ze,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:ie,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:ae,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon: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:ie,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:ae,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ie,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon: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:ae,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon: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:ie,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:ae,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon: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:ie,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:ae,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon: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:ct,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ie,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:rt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:ae,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ie,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon: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:ct,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:ln,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Ct=us,Ye="studio.release-feed.v1",nt=new Set;let de="",ue={},st=!1;function ms(){if(st)return de||"{}";try{return localStorage.getItem(Ye)??"{}"}catch{return de||"{}"}}function Et(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function mt(){const t=ms();return t!==de&&(de=t,ue=Et(t)),ue}function fs(t){nt.add(t);const e=s=>{if(!(s.key!==Ye&&s.key!==null)){try{const r=localStorage.getItem(Ye)??"{}",a={...Et(r),...ue};ue=a,de=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{nt.delete(t),window.removeEventListener("storage",e)}}function gs(t){ue=t,de=JSON.stringify(t);try{localStorage.setItem(Ye,de),st=!1}catch{st=!0}nt.forEach(e=>e())}function hs(){const t=$.c(7),e=V.useSyncExternalStore(fs,mt,mt);let s;t[0]!==e?(s=m=>!!e[m],t[0]=e,t[1]=s):s=t[1];const r=s,o=ps;let a;t[2]!==e?(a=Ct.reduce((m,y)=>e[y.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let u;return t[4]!==r||t[5]!==i?(u={isSeen:r,markSeen:o,unseenCount:i},t[4]=r,t[5]=i,t[6]=u):u=t[6],u}function ps(t){ue[t]||gs({...ue,[t]:{seenAt:new Date().toISOString()}})}const ys=720*60*60*1e3,bs=10080*60*1e3;function xs(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 Ss(t){const e=Ct[0];if(!e)return null;const s=xs(e.date),r=t-s;return r<0||r>ys?null:e}function ws(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 vs(t,e){const s=ws(t);return s===null?!1:e-s>=bs}function js(){const t=$.c(52),e=W(),s=Sn(),r=jn(),o=vt(),a=!!s,i=r===ne.home&&!s;let u;t[0]!==o||t[1]!==a?(u=a&&!!o&&kn(o),t[0]=o,t[1]=a,t[2]=u):u=t[2];const m=u,{data:y}=Re.useSession(),{isSeen:v,markSeen:c}=hs(),[x,p]=V.useState(!1);let l,f,d;if(t[3]!==v||t[4]!==y?.user?.createdAt){d=Symbol.for("react.early_return_sentinel");e:{const O=Date.now();if(l=Ss(O),!l){d=null;break e}if(!vs(y?.user?.createdAt,O)){d=null;break e}f=v(l.id)}t[3]=v,t[4]=y?.user?.createdAt,t[5]=l,t[6]=f,t[7]=d}else l=t[5],f=t[6],d=t[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;if(f)return null;let S;t[8]!==l.id||t[9]!==a||t[10]!==c||t[11]!==i||t[12]!==m||t[13]!==e?(S=()=>{c(l.id),ds(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]=S):S=t[14];const w=S;let b;t[15]!==e?(b=e("announcements.release.ariaLabel"),t[15]=e,t[16]=b):b=t[16];let g;t[17]!==e?(g=e("announcements.release.dismiss"),t[17]=e,t[18]=g):g=t[18];const _=l.eyebrow,P=l.title;let T;t[19]!==l.id||t[20]!==c?(T=()=>c(l.id),t[19]=l.id,t[20]=c,t[21]=T):T=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 h;t[27]!==l.cta||t[28]!==l.id||t[29]!==c||t[30]!==w?(h=l.cta?"href"in l.cta?n.jsx(M,{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(M,{size:"sm",onClick:w,children:l.cta.label}):n.jsx(M,{size:"sm",onClick:()=>p(!0),children:l.cta.label}):null,t[27]=l.cta,t[28]=l.id,t[29]=c,t[30]=w,t[31]=h):h=t[31];let N;t[32]!==l.bullets?(N=l.bullets.map(ks),t[32]=l.bullets,t[33]=N):N=t[33];let k;t[34]!==N?(k=n.jsx("ul",{className:"flex flex-col gap-3",children:N}),t[34]=N,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]!==x||t[40]!==A?(E=n.jsx(hn,{open:x,onOpenChange:A}),t[39]=x,t[40]=A,t[41]=E):E=t[41];let C;return t[42]!==l.eyebrow||t[43]!==l.title||t[44]!==h||t[45]!==k||t[46]!==E||t[47]!==b||t[48]!==g||t[49]!==T||t[50]!==j?(C=n.jsxs(At,{ariaLabel:b,dismissLabel:g,eyebrow:_,title:P,onDismiss:T,footerLeading:j,actions:h,children:[k,E]}),t[42]=l.eyebrow,t[43]=l.title,t[44]=h,t[45]=k,t[46]=E,t[47]=b,t[48]=g,t[49]=T,t[50]=j,t[51]=C):C=t[51],C}function ks(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 Ot=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),re=Ot?"⌘":"Ctrl",J={commandPalette:{keys:[re,"K"],description:"Command palette"},keyboardShortcuts:{keys:["?"],description:"Keyboard shortcuts"},back:{keys:[re,"["],description:"Back to previous"},focusChatInput:{keys:[re,"L"],description:"Focus chat input"},saveAndFormat:{keys:[re,"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:[re,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[re,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",re,"S"],description:"New task"},toggleDaemon:{keys:[re,"D"],description:"Toggle daemon logs"}},Ts=[{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 ft(t){return Ot?t.metaKey:t.ctrlKey}function Ns(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName;return e==="INPUT"||e==="TEXTAREA"||e==="SELECT"}function _s(t){const e=$.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(jt,{children:n.jsx(kt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx("div",{className:"flex flex-col gap-4",children:Ts.map(As)}),e[4]=u):u=e[4];let m;e[5]!==i?(m=n.jsxs(Tt,{className:"sm:max-w-md",children:[i,u]}),e[5]=i,e[6]=m):m=e[6];let y;return e[7]!==r||e[8]!==s||e[9]!==m?(y=n.jsx(Nt,{open:s,onOpenChange:r,children:m}),e[7]=r,e[8]=s,e[9]=m,e[10]=y):y=e[10],y}function As(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(Ps)})]},t.label)}function Ps(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(Cs)})]},t.description)}function Cs(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 gt=8;function Es(t){const{org:e}=ot(),s=Ln({connectionId:_t,orgId:e.id,orgSlug:e.slug}),{data:r}=Be({queryKey:Ke.globalSearch(e.id,t,gt),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:gt}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Os(t){const e=$.c(165),{open:s,onOpenChange:r}=t,o=W(),a=bt(),{org:i}=ot(),{projects:u,hasProjects:m}=wn(),[y,v]=V.useState(""),c=V.useDeferredValue(y),x=Es(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=(D,Rt)=>{tt("command_palette_used",{kind:Rt}),D(),l()},e[2]=l,e[3]=f):f=e[3];const d=f;let S;e[4]!==a||e[5]!==i.slug?(S=D=>{if(D.type==="task"){a({to:ne.tasks,params:{org:i.slug,taskKey:D.key??void 0}});return}a({to:ne.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:D.virtual_mcp_id??void 0,thread:D.id}})},e[4]=a,e[5]=i.slug,e[6]=S):S=e[6];const w=S;let b;e[7]!==i.slug?(b={org:i.slug},e[7]=i.slug,e[8]=b):b=e[8];const g=b;let _;e[9]!==o?(_=o("sidebar.navDestinations.home"),e[9]=o,e[10]=_):_=e[10];let P;e[11]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(dn,{}),e[11]=P):P=e[11];let T;e[12]!==g||e[13]!==_?(T={key:"home",label:_,icon:P,to:ne.home,params:g},e[12]=g,e[13]=_,e[14]=T):T=e[14];let j;e[15]!==o?(j=o("sidebar.navDestinations.reports"),e[15]=o,e[16]=j):j=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(un,{}),e[17]=h):h=e[17];let N;e[18]!==g||e[19]!==j?(N={key:"reports",label:j,icon:h,to:ne.reports,params:g},e[18]=g,e[19]=j,e[20]=N):N=e[20];let k;e[21]!==o?(k=o("sidebar.navDestinations.tasks"),e[21]=o,e[22]=k):k=e[22];let A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=n.jsx(lt,{}),e[23]=A):A=e[23];let E;e[24]!==i.slug?(E={org:i.slug,taskKey:void 0},e[24]=i.slug,e[25]=E):E=e[25];let C;e[26]!==k||e[27]!==E?(C={key:"tasks",label:k,icon:A,to:ne.tasks,params:E},e[26]=k,e[27]=E,e[28]=C):C=e[28];let O;e[29]!==o?(O=o("sidebar.navDestinations.library"),e[29]=o,e[30]=O):O=e[30];let L;e[31]===Symbol.for("react.memo_cache_sentinel")?(L=n.jsx(An,{}),e[31]=L):L=e[31];let R;e[32]!==g||e[33]!==O?(R={key:"library",label:O,icon:L,to:ne.library,params:g},e[32]=g,e[33]=O,e[34]=R):R=e[34];let z;e[35]!==o?(z=o("sidebar.navDestinations.discover"),e[35]=o,e[36]=z):z=e[36];let G;e[37]===Symbol.for("react.memo_cache_sentinel")?(G=n.jsx(mn,{}),e[37]=G):G=e[37];let q;e[38]!==g||e[39]!==z?(q={key:"discover",label:z,icon:G,to:ne.discover,params:g},e[38]=g,e[39]=z,e[40]=q):q=e[40];let se;e[41]!==N||e[42]!==C||e[43]!==R||e[44]!==q||e[45]!==T?(se=[T,N,C,R,q],e[41]=N,e[42]=C,e[43]=R,e[44]=q,e[45]=T,e[46]=se):se=e[46];const oe=se;let le;e[47]!==l||e[48]!==r?(le=D=>D?r(!0):l(),e[47]=l,e[48]=r,e[49]=le):le=e[49];let ee;e[50]!==o?(ee=o("commandPalette.title"),e[50]=o,e[51]=ee):ee=e[51];let B;e[52]!==o?(B=o("commandPalette.description"),e[52]=o,e[53]=B):B=e[53];let K;e[54]!==o?(K=o("commandPalette.placeholder"),e[54]=o,e[55]=K):K=e[55];let Y;e[56]!==K||e[57]!==y?(Y=n.jsx(Cn,{placeholder:K,value:y,onValueChange:v}),e[56]=K,e[57]=y,e[58]=Y):Y=e[58];let Q;e[59]!==o?(Q=o("commandPalette.empty"),e[59]=o,e[60]=Q):Q=e[60];let H;e[61]!==Q?(H=n.jsx(En,{children:Q}),e[61]=Q,e[62]=H):H=e[62];let U;e[63]!==o?(U=o("commandPalette.goTo"),e[63]=o,e[64]=U):U=e[64];let X;e[65]!==oe||e[66]!==d||e[67]!==a?(X=oe.map(D=>n.jsxs(ce,{onSelect:()=>d(()=>a({to:D.to,params:D.params}),"destination"),children:[D.icon,n.jsx("span",{children:D.label})]},D.key)),e[65]=oe,e[66]=d,e[67]=a,e[68]=X):X=e[68];let Z;e[69]!==U||e[70]!==X?(Z=n.jsx(We,{heading:U,children:X}),e[69]=U,e[70]=X,e[71]=Z):Z=e[71];let I;e[72]!==d||e[73]!==m||e[74]!==a||e[75]!==i.slug||e[76]!==u||e[77]!==o?(I=m&&n.jsx(We,{heading:o("commandPalette.projects"),children:u.map(D=>n.jsxs(ce,{value:`project ${D.title}`,onSelect:()=>d(()=>a({to:ne.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:D.id}}),"project"),children:[n.jsx(vn,{icon:D.icon,name:D.title}),n.jsx("span",{children:D.title})]},D.id))}),e[72]=d,e[73]=m,e[74]=a,e[75]=i.slug,e[76]=u,e[77]=o,e[78]=I):I=e[78];let F;e[79]!==o?(F=o("commandPalette.actions"),e[79]=o,e[80]=F):F=e[80];let fe;e[81]!==o?(fe=o("commandPalette.newProject"),e[81]=o,e[82]=fe):fe=e[82];let ge;e[83]!==d||e[84]!==a||e[85]!==i.slug?(ge=()=>d(()=>a({to:ne.agents,params:{org:i.slug,panel:void 0},search:{virtualmcpid:void 0}}),"new_project"),e[83]=d,e[84]=a,e[85]=i.slug,e[86]=ge):ge=e[86];let He;e[87]===Symbol.for("react.memo_cache_sentinel")?(He=n.jsx(dt,{}),e[87]=He):He=e[87];let he;e[88]!==o?(he=o("commandPalette.newProject"),e[88]=o,e[89]=he):he=e[89];let pe;e[90]!==he?(pe=n.jsx("span",{children:he}),e[90]=he,e[91]=pe):pe=e[91];let ye;e[92]!==fe||e[93]!==ge||e[94]!==pe?(ye=n.jsxs(ce,{value:fe,onSelect:ge,children:[He,pe]}),e[92]=fe,e[93]=ge,e[94]=pe,e[95]=ye):ye=e[95];let be;e[96]!==o?(be=o("commandPalette.inviteTeammate"),e[96]=o,e[97]=be):be=e[97];let xe;e[98]!==d||e[99]!==a||e[100]!==g?(xe=()=>d(()=>a({to:"/$org/settings/members",params:g}),"invite"),e[98]=d,e[99]=a,e[100]=g,e[101]=xe):xe=e[101];let Ue;e[102]===Symbol.for("react.memo_cache_sentinel")?(Ue=n.jsx(fn,{}),e[102]=Ue):Ue=e[102];let Se;e[103]!==o?(Se=o("commandPalette.inviteTeammate"),e[103]=o,e[104]=Se):Se=e[104];let we;e[105]!==Se?(we=n.jsx("span",{children:Se}),e[105]=Se,e[106]=we):we=e[106];let ve;e[107]!==be||e[108]!==xe||e[109]!==we?(ve=n.jsxs(ce,{value:be,onSelect:xe,children:[Ue,we]}),e[107]=be,e[108]=xe,e[109]=we,e[110]=ve):ve=e[110];let je;e[111]!==o?(je=o("commandPalette.addConnection"),e[111]=o,e[112]=je):je=e[112];let ke;e[113]!==d||e[114]!==a||e[115]!==g?(ke=()=>d(()=>a({to:"/$org/settings/connections",params:g,search:{tab:"all"}}),"add_connection"),e[113]=d,e[114]=a,e[115]=g,e[116]=ke):ke=e[116];let Ge;e[117]===Symbol.for("react.memo_cache_sentinel")?(Ge=n.jsx(dt,{}),e[117]=Ge):Ge=e[117];let Te;e[118]!==o?(Te=o("commandPalette.addConnection"),e[118]=o,e[119]=Te):Te=e[119];let Ne;e[120]!==Te?(Ne=n.jsx("span",{children:Te}),e[120]=Te,e[121]=Ne):Ne=e[121];let _e;e[122]!==je||e[123]!==ke||e[124]!==Ne?(_e=n.jsxs(ce,{value:je,onSelect:ke,children:[Ge,Ne]}),e[122]=je,e[123]=ke,e[124]=Ne,e[125]=_e):_e=e[125];let Ae;e[126]!==o?(Ae=o("commandPalette.settings"),e[126]=o,e[127]=Ae):Ae=e[127];let Pe;e[128]!==d||e[129]!==a||e[130]!==g?(Pe=()=>d(()=>a({to:"/$org/settings/general",params:g}),"settings"),e[128]=d,e[129]=a,e[130]=g,e[131]=Pe):Pe=e[131];let Je;e[132]===Symbol.for("react.memo_cache_sentinel")?(Je=n.jsx(Pn,{}),e[132]=Je):Je=e[132];let Ce;e[133]!==o?(Ce=o("commandPalette.settings"),e[133]=o,e[134]=Ce):Ce=e[134];let Ee;e[135]!==Ce?(Ee=n.jsx("span",{children:Ce}),e[135]=Ce,e[136]=Ee):Ee=e[136];let Oe;e[137]!==Ae||e[138]!==Pe||e[139]!==Ee?(Oe=n.jsxs(ce,{value:Ae,onSelect:Pe,children:[Je,Ee]}),e[137]=Ae,e[138]=Pe,e[139]=Ee,e[140]=Oe):Oe=e[140];let Ie;e[141]!==F||e[142]!==ye||e[143]!==ve||e[144]!==_e||e[145]!==Oe?(Ie=n.jsxs(We,{heading:F,children:[ye,ve,_e,Oe]}),e[141]=F,e[142]=ye,e[143]=ve,e[144]=_e,e[145]=Oe,e[146]=Ie):Ie=e[146];let Le;e[147]!==d||e[148]!==x||e[149]!==w||e[150]!==o?(Le=x.length>0&&n.jsx(We,{heading:o("commandPalette.results"),children:x.map(D=>n.jsxs(ce,{value:`${D.title} ${D.id}`,onSelect:()=>d(()=>w(D),D.type),children:[D.type==="thread"?n.jsx(cn,{}):n.jsx(lt,{}),n.jsx("span",{className:"truncate",children:D.title}),D.type==="task"&&D.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:D.key})]},`${D.type}:${D.id}`))}),e[147]=d,e[148]=x,e[149]=w,e[150]=o,e[151]=Le):Le=e[151];let De;e[152]!==H||e[153]!==Z||e[154]!==I||e[155]!==Ie||e[156]!==Le?(De=n.jsxs(On,{children:[H,Z,I,Ie,Le]}),e[152]=H,e[153]=Z,e[154]=I,e[155]=Ie,e[156]=Le,e[157]=De):De=e[157];let Ve;return e[158]!==s||e[159]!==le||e[160]!==ee||e[161]!==B||e[162]!==Y||e[163]!==De?(Ve=n.jsxs(In,{open:s,onOpenChange:le,title:ee,description:B,shouldFilter:!1,children:[Y,De]}),e[158]=s,e[159]=le,e[160]=ee,e[161]=B,e[162]=Y,e[163]=De,e[164]=Ve):Ve=e[164],Ve}const ze=new Rn(!1);function Is(){ze.set(!0)}function Ls(){ze.set(!1)}function Ds(){const t=$.c(2),e=V.useSyncExternalStore(ze.subscribe,ze.get);let s;return t[0]!==e?(s=[e,ze.set],t[0]=e,t[1]=s):s=t[1],s}const $s=300*1e3,Rs=2;function Ms(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 Fs(t,e){return t.count>=Rs&&t.version!==null&&t.version!==e}function zs(){const t=$.c(43),e=W(),s=Fn();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={mutationFn:Bs},t[0]=r):r=t[0];const o=qe(r);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={queryKey:Ke.appVersionCheck(),queryFn:qs,refetchInterval:$s,refetchIntervalInBackground:!0,staleTime:0},t[1]=a):a=t[1];const{data:i,dataUpdatedAt:u}=Be(a),[m,y]=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,x]=V.useState(v);u!==m&&(y(u),x(z=>Ms(z,i,"4.332.1")));const[p,l]=V.useState(null),f=s;let d;t[3]!==s||t[4]!==o?(d=()=>window.location.reload(),t[3]=s,t[4]=o,t[5]=d):d=t[5];const S=d,w="announcements.version.refresh";if(!Fs(c,p))return null;let b;t[6]!==e?(b=e("announcements.version.ariaLabel"),t[6]=e,t[7]=b):b=t[7];let g;t[8]!==e?(g=e("announcements.version.dismiss"),t[8]=e,t[9]=g):g=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 T="announcements.version.description";let j;t[14]!==e||t[15]!==T?(j=e(T),t[14]=e,t[15]=T,t[16]=j):j=t[16];let h;t[17]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(at,{size:16}),t[17]=h):h=t[17];let N;t[18]!==c.version?(N=()=>l(c.version),t[18]=c.version,t[19]=N):N=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.332.1"}),t[20]=e,t[21]=k):k=t[21];let A;t[22]!==w||t[23]!==e?(A=e(w),t[22]=w,t[23]=e,t[24]=A):A=t[24];const E=f;let C;t[25]!==E?(C=et(E),t[25]=E,t[26]=C):C=t[26];let O;t[27]!==C?(O=n.jsx(at,{size:14,className:C}),t[27]=C,t[28]=O):O=t[28];let L;t[29]!==S||t[30]!==f||t[31]!==A||t[32]!==O?(L=n.jsxs(M,{size:"sm",disabled:f,onClick:S,children:[A,O]}),t[29]=S,t[30]=f,t[31]=A,t[32]=O,t[33]=L):L=t[33];let R;return t[34]!==N||t[35]!==k||t[36]!==L||t[37]!==b||t[38]!==g||t[39]!==_||t[40]!==P||t[41]!==j?(R=n.jsx(At,{ariaLabel:b,dismissLabel:g,eyebrow:_,title:P,description:j,icon:h,tone:"system",onDismiss:N,footerLeading:k,actions:L}),t[34]=N,t[35]=k,t[36]=L,t[37]=b,t[38]=g,t[39]=_,t[40]=P,t[41]=j,t[42]=R):R=t[42],R}async function qs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function Bs(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function Ks(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Hs=Date.parse("2026-07-21T00:00:00Z"),ht=t=>Ks($e.ptBrAnnouncementSeen(t));function Us(){const t=$.c(35),e=W(),[s,r]=Bt(),{data:o,isPending:a}=Re.useSession(),i=o?.user,u=i?.id,m=i?.createdAt,y=m!=null&&new Date(m).getTime()<Hs,v=Kt()==="pt-BR",c=!a&&!!u&&y&&v&&s.language==="en"&&!ht(u).has(),[x,p]=V.useState(!1),[l,f]=V.useState(!1);!x&&!a&&(p(!0),c&&u&&(ht(u).mark(),r(Js),f(!0),tt("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=G=>{tt("pt_br_auto_switch_closed",{action:G}),f(!1)},t[0]=d):d=t[0];const S=d;let w;t[1]!==r?(w=()=>{r(Gs),S("switch-back")},t[1]=r,t[2]=w):w=t[2];const b=w;let g;t[3]===Symbol.for("react.memo_cache_sentinel")?(g=G=>!G&&S("dismiss"),t[3]=g):g=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 T;t[7]!==P?(T=n.jsx(kt,{children:P}),t[7]=P,t[8]=T):T=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let h;t[11]!==j?(h=n.jsx(Nn,{children:j}),t[11]=j,t[12]=h):h=t[12];let N;t[13]!==T||t[14]!==h?(N=n.jsxs(jt,{children:[T,h]}),t[13]=T,t[14]=h,t[15]=N):N=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]!==b||t[19]!==k?(A=n.jsx(M,{variant:"outline",onClick:b,children:k}),t[18]=b,t[19]=k,t[20]=A):A=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>S("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(M,{onClick:E,children:C}),t[24]=C,t[25]=O):O=t[25];let L;t[26]!==A||t[27]!==O?(L=n.jsxs(_n,{children:[A,O]}),t[26]=A,t[27]=O,t[28]=L):L=t[28];let R;t[29]!==L||t[30]!==N?(R=n.jsxs(Tt,{className:"sm:max-w-md",children:[_,N,L]}),t[29]=L,t[30]=N,t[31]=R):R=t[31];let z;return t[32]!==l||t[33]!==R?(z=n.jsx(Nt,{open:l,onOpenChange:g,children:R}),t[32]=l,t[33]=R,t[34]=z):z=t[34],z}function Gs(t){return{...t,language:"en"}}function Js(t){return{...t,language:"pt-BR"}}function Vs(t){const e=Ht(t);return typeof e=="string"?e:void 0}function Ws(){return Vs("experiment-pipeline-check"),null}function Ys(t){const e=$.c(1),{activeOrg:s}=t;if(!s)return null;Ut(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Gt();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(Ws,{}),e[0]=r):r=e[0],r}function Qs(t){const{prev:e,virtualMcpId:s,decopilotId:r,savedLayout:o,opts:a,autosendValue:i}=t,u={mainpanel:void 0};s?u.virtualmcpid=s:e.virtualmcpid&&(u.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,v=(s??m)!==m;let c,x;return a?.panel?x=a.panel:o?(x=o.tab,o.sidepanel!==void 0&&(c=o.sidepanel),o.mainpanel!==void 0&&(u.mainpanel=o.mainpanel)):!v&&e.tabId&&!Jt(e.tabId)&&(x=e.tabId),c!==void 0&&(u.sidepanel=c),a?.autosend&&(u.autosend=i),{tabId:x,search:u}}const It="studio:thread-layout:v3",Xs=50;function Lt(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 Zs(t,e,s,r=Xs){const o=t.filter(([a])=>a!==e);for(o.push([e,Lt(s)]);o.length>r;)o.shift();return o}function it(){try{const t=sessionStorage.getItem(It);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 Dt(t){try{sessionStorage.setItem(It,JSON.stringify(t))}catch{}}function eo(t,e){t&&Dt(Zs(it(),t,e))}function to(t){if(!t)return null;const e=it().find(([s])=>s===t);return e?Lt(e[1]):null}function Go(t){if(!t)return;const e=it(),s=e.filter(([r])=>r!==t);s.length!==e.length&&Dt(s)}function $t(t){return{queryKey:Ke.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 Jo(t){const e=$.c(10);let s;e[0]!==t?(s=$t(t),e[0]=t,e[1]=s):s=e[1];const r=Be(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 no(t){const e=$.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 u=i,m=so;let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(pt,{className:"h-6 w-6 text-primary"})}),e[2]=y):y=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 x;e[7]!==o||e[8]!==r||e[9]!==a?(x=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]=x):x=e[10];let p;e[11]!==x?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[11]=x,e[12]=p):p=e[12];let l;e[13]!==c||e[14]!==p?(l=n.jsxs("div",{className:"space-y-2",children:[c,p]}),e[13]=c,e[14]=p,e[15]=l):l=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==u||e[19]!==f?(d=n.jsx(M,{onClick:u,children:f}),e[18]=u,e[19]=f,e[20]=d):d=e[20];let S;e[21]!==a?(S=a("common.ssoRequiredScreen.goBack"),e[21]=a,e[22]=S):S=e[22];let w;e[23]!==S?(w=n.jsx(M,{variant:"ghost",onClick:m,children:S}),e[23]=S,e[24]=w):w=e[24];let b;e[25]!==w||e[26]!==d?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,w]}),e[25]=w,e[26]=d,e[27]=b):b=e[27];let g;return e[28]!==b||e[29]!==l?(g=n.jsxs(me,{children:[y,l,b]}),e[28]=b,e[29]=l,e[30]=g):g=e[30],g}function so(){window.location.href="/"}function oo(t){const e=$.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(Vt,{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 u;e[3]!==s.message?(u=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=u):u=e[4];let m;e[5]!==i||e[6]!==u?(m=n.jsxs("div",{className:"space-y-2",children:[i,u]}),e[5]=i,e[6]=u,e[7]=m):m=e[7];let y;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(y=s.ctaUrl&&s.ctaLabel?n.jsx(M,{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]=y):y=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 x;e[13]!==v||e[14]!==c?(x=n.jsx(M,{variant:"outline",asChild:!0,children:n.jsx("a",{href:v,children:c})}),e[13]=v,e[14]=c,e[15]=x):x=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(M,{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]!==y||e[22]!==x?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[y,x,l]}),e[20]=l,e[21]=y,e[22]=x,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(me,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}const io="/settings/infra-billing";function ao(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(io)}function ro(t){const e=$.c(8),{org:s,children:r}=t,a=Bn(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 u=i;let m;return e[4]!==r||e[5]!==s||e[6]!==u?(m=n.jsx(nn,{org:s,project:u,children:r}),e[4]=r,e[5]=s,e[6]=u,e[7]=m):m=e[7],m}function lo(){const t=bt(),e=Mn(),{org:s}=ot(),r=Wt({strict:!1}),o=vt(),{openPanel:a,closePanel:i}=Tn(),u=pn(),m=yn(),y=bn(),v=xn(),c=(f,d=!0)=>t({to:".",search:f,replace:d}),x=()=>c(f=>({...f,sidepanel:!0})),p=(f,d,S)=>{const w=!!m&&m===f;m&&!w&&eo(m,{tab:o,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const b=w?null:to(f),g=$n(s.id).id,_=Qs({prev:{virtualmcpid:u,tabId:o},virtualMcpId:d,decopilotId:g,savedLayout:b,opts:S,autosendValue:qn});return v(f,()=>_.search,{virtualMcpId:d,view:{tabId:_.tabId}})};return{openSidePanel:x,setTaskId:p,createNewTask:async(f,d,S)=>{const w=crypto.randomUUID(),b=f??y;try{await e?.create({id:w,virtual_mcp_id:b,...d?{branch:d}:{}})}catch{}p(w,b,S)},openTab:a,closeTab:i}}const co=new Set(["/$org/","/$org/home"]);function uo(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:mo},t[0]=e):e=t[0],xt(e)}function mo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&co.has(e)}function fo(){const t=$.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=Yt(e)?.params.org,[o,a]=V.useState(!1),[i,u]=Ds(),m=Qt(),y=uo(),v=r??"";let c;t[1]!==v?(c=$t(v),t[1]=v,t[2]=c):c=t[2];const x=!!r&&y;let p;t[3]!==c||t[4]!==x?(p={...c,enabled:x},t[3]=c,t[4]=x,t[5]=p):p=t[5],Be(p);const{data:l}=Re.useSession(),f=l?.user?.id;let d;t[6]!==r||t[7]!==f?(d=r&&f?Xt(f,r):null,t[6]=r,t[7]=f,t[8]=d):d=t[8];const S=d;let w,b;t[9]!==m?(w=()=>{const I=F=>{if(ft(F)&&F.code==="KeyK"){F.preventDefault(),Is();return}if(F.key==="?"&&!Ns(F.target)){F.preventDefault(),a(!0);return}ft(F)&&F.code==="BracketLeft"&&m.history.canGoBack()&&(F.preventDefault(),m.history.back())};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},b=[m],t[9]=m,t[10]=w,t[11]=b):(w=t[10],b=t[11]),V.useEffect(w,b);let g;t[12]!==r?(g=Ke.activeOrganization(r),t[12]=r,t[13]=g):g=t[13];let _;t[14]!==r||t[15]!==f?(_=async()=>{if(!r)return null;performance.mark("mesh:active-org-fetch:start");const{data:I}=await Re.organization.getFullOrganization({query:{organizationSlug:r}}).finally(ho),F=Xe(I);return I&&!F&&localStorage.setItem($e.lastOrgSlug(),r),f&&I&&en(f,r,I),I},t[14]=r,t[15]=f,t[16]=_):_=t[16];const P=S?S.data:void 0,T=S?.updatedAt;let j;t[17]!==P||t[18]!==T||t[19]!==g||t[20]!==_?(j={queryKey:g,queryFn:_,initialData:P,initialDataUpdatedAt:T,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=P,t[18]=T,t[19]=g,t[20]=_,t[21]=j):j=t[21];const{data:h}=yt(j),N=h?.id,k=h?.slug,{data:A}=Kn(N,k),E=!!A?.ssoRequired&&!A.authenticated,{data:C}=Hn(k);let O;t[22]===Symbol.for("react.memo_cache_sentinel")?(O={select:go},t[22]=O):O=t[22];const L=xt(O),R=C?.severity==="block"&&!ao(L),z=N??"",G=k??"";let q;t[23]!==z||t[24]!==G?(q=Dn({connectionId:_t,orgId:z,orgSlug:G}),t[23]=z,t[24]=G,t[25]=q):q=t[25];const se=!!N&&!!k;let oe;if(t[26]!==q||t[27]!==se?(oe={...q,enabled:se},t[26]=q,t[27]=se,t[28]=oe):oe=t[28],Be(oe),(!h||Xe(h)||E||R)&&Ls(),!h){let I;return t[29]!==r?(I=n.jsx(ts,{orgSlug:r}),t[29]=r,t[30]=I):I=t[30],I}if(Xe(h)){localStorage.getItem($e.lastOrgSlug())===r&&localStorage.removeItem($e.lastOrgSlug());let I;return t[31]!==h.name?(I=n.jsx(Zt,{orgName:h.name}),t[31]=h.name,t[32]=I):I=t[32],I}if(R&&C){let I;return t[33]!==h.slug||t[34]!==C?(I=n.jsx(oo,{notice:C,orgSlug:h.slug}),t[33]=h.slug,t[34]=C,t[35]=I):I=t[35],I}if(E){let I;return t[36]!==h.id||t[37]!==h.name||t[38]!==h.slug||t[39]!==A.domain?(I=n.jsx(no,{orgId:h.id,orgSlug:h.slug,orgName:h.name,domain:A.domain}),t[36]=h.id,t[37]=h.name,t[38]=h.slug,t[39]=A.domain,t[40]=I):I=t[40],I}const ee=h.logo??null;let B;t[41]!==h||t[42]!==ee?(B={...h,logo:ee},t[41]=h,t[42]=ee,t[43]=B):B=t[43];let K;t[44]!==h?(K=n.jsx(Ys,{activeOrg:h}),t[44]=h,t[45]=K):K=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=n.jsx(tn,{}),t[46]=Y):Y=t[46];let Q;t[47]===Symbol.for("react.memo_cache_sentinel")?(Q=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(js,{}),n.jsx(zs,{})]}),t[47]=Q):Q=t[47];let H;t[48]!==i||t[49]!==u?(H=i&&n.jsx(Os,{open:i,onOpenChange:u}),t[48]=i,t[49]=u,t[50]=H):H=t[50];let U;t[51]!==o?(U=n.jsx(_s,{open:o,onOpenChange:a}),t[51]=o,t[52]=U):U=t[52];let X;t[53]===Symbol.for("react.memo_cache_sentinel")?(X=n.jsx(Us,{}),t[53]=X):X=t[53];let Z;return t[54]!==B||t[55]!==K||t[56]!==H||t[57]!==U?(Z=n.jsxs(ro,{org:B,children:[K,Y,Q,H,U,X]}),t[54]=B,t[55]=K,t[56]=H,t[57]=U,t[58]=Z):Z=t[58],Z}function go(t){return t.location.pathname}function ho(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function po(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(zn,{children:n.jsx(fo,{})}),t[0]=e):e=t[0],e}const Vo=Object.freeze(Object.defineProperty({__proto__:null,default:po,usePanelActions:lo},Symbol.toStringTag,{value:"Module"}));export{J as K,Jo as a,Go as f,ft as i,Is as o,Vo as s,lo as u};
@@ -1,4 +1,4 @@
1
- import{c as b,v as Q,j as r,h as Z,B as U,b4 as g,r as ee,l as M,ap as O}from"./index-Ceii15GN.js";import{b as te,D as se,d as ne,i as re}from"./dialog-Bd599x3P.js";import{i as ie}from"./Zap-ClD9aw0I.js";import{M as H}from"./markdown-3zqu2ODi.js";import{n as le}from"./Download01-BulEednD.js";import{k as K,b as oe,l as ae,p as ce}from"./folder-icon-BUlfJvCw.js";import{a as $,s as fe,i as R}from"./ZoomOut-C-dp4U-B.js";import{a as de}from"./Image01-DwrWIWvg.js";import{F as me}from"./editor-CA29izQ6.js";import{F as q}from"./file-type-icon-DcpGkosI.js";import{p as ue,b as j}from"./location-oTTXFrSF.js";function he(s){if(!s||s.includes("\\")||s.includes("..")||s.includes("\0"))return!0;try{const e=decodeURIComponent(s);return!!(e.includes("\\")||e.includes("..")||e.includes("\0"))}catch{return!0}}function pe(s){if(he(s))throw new Error(`Invalid block key: ${s||"(empty)"}`)}function xe(s){try{return decodeURIComponent(s)}catch{return s}}function ge(s){return pe(s),encodeURIComponent(s)}function Ae(s){return`.deco/blocks/${ge(s)}.json`}const He=1e4,we=3;function B(s){return s.trim()?(s.startsWith("/")?s:`/${s}`).replace(/\/+/g,"/"):"/"}function _(s){return s.startsWith("/")?s.slice(1):s}function Ke(s){const e=_(s);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function W(s){return s.trim()?s.startsWith("/")?s:`/${s}`:"/"}function je(s){const e=W(s);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function qe(s,e){const t=e.replace(/^\/+|\/+$/g,"");return W(t?`${s==="/"?"":s}/${t}`:s)}function Ve(s,e){return e==="directory"?s:je(s)}function Ye(s){const e=s.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function be(s){const e=_(s);return e?e.split("/").filter(Boolean).length:0}function Je(s,e,t,i=!1){return{files:[...new Set([...s,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:i||!!t.truncated}}function Qe(s,e){return be(s)>=we&&!e.has(s)}function Ze(s,e,t=[]){const i=_(s);if(e.includes(i)||t.includes(i))return!0;if(!i)return!1;const n=`${i}/`;return e.some(o=>o.startsWith(n))||t.some(o=>o.startsWith(n))}function et(s){const e=_(s),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const i=e.slice(t.length,-5);return xe(i)}function ve(s){if(!s)return"plaintext";const e=s.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}const ye="#94a3b8";function tt(s){const e=s.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:$,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:$,color:"#d9a441"}:e.endsWith(".json")?{Icon:fe,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:$,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:$,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:de,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:R,color:"#64748b"}:{Icon:R,color:ye}}function st(s){const e=B(s).split("/").filter(Boolean),t=["/"];let i="";for(const n of e.slice(0,-1))i+=`/${n}`,t.push(i);return t}function nt(s,e=[]){const t={path:"/",children:[]},i=new Map,n=c=>{let l=i.get(c.path);return l||(l=new Map,i.set(c.path,l)),l},o=c=>{const f=B(c).split("/").filter(Boolean);let d=t,u="";for(const m of f){u+=`/${m}`;const v=n(d);let h=v.get(m);h?h.kind==="file"&&(h.kind="directory"):(h={name:m,path:u,kind:"directory",children:[]},d.children.push(h),v.set(m,h)),d=h}};for(const c of s){const f=B(c).split("/").filter(Boolean);let d=t,u="";f.forEach((m,v)=>{u+=`/${m}`;const h=v===f.length-1,w=n(d);let x=w.get(m);x||(x={name:m,path:u,kind:h?"file":"directory",children:[]},d.children.push(x),w.set(m,x)),d=x})}for(const c of e)o(W(c));const a=c=>{c.sort((l,f)=>l.kind!==f.kind?l.kind==="directory"?-1:1:l.name.localeCompare(f.name));for(const l of c)l.children.length>0&&a(l.children)};return a(t.children),t.children}function ke(s,e,t=0){const i=[];for(const n of s)if(n.name!==".gitkeep"&&(i.push({node:n,depth:t}),n.kind==="directory"&&n.children.length>0&&e.has(n.path)))for(const o of ke(n.children,e,t+1))i.push(o);return i}function rt(s){const e=[];for(const t of s.split(`
1
+ import{c as b,v as Q,j as r,h as Z,B as U,b4 as g,r as ee,l as M,ap as O}from"./index-DdTzYiuN.js";import{b as te,D as se,d as ne,i as re}from"./dialog-DoQpUhQk.js";import{i as ie}from"./Zap-C6bIZXXW.js";import{M as H}from"./markdown-_E8A64Me.js";import{n as le}from"./Download01-DQWtoLHA.js";import{k as K,b as oe,l as ae,p as ce}from"./folder-icon-DooLs5a3.js";import{a as $,s as fe,i as R}from"./ZoomOut-BXMFKhb2.js";import{a as de}from"./Image01-DKRwZeP2.js";import{F as me}from"./editor-BFFR5KPF.js";import{F as q}from"./file-type-icon-B3j8PQKI.js";import{p as ue,b as j}from"./location-oTTXFrSF.js";function he(s){if(!s||s.includes("\\")||s.includes("..")||s.includes("\0"))return!0;try{const e=decodeURIComponent(s);return!!(e.includes("\\")||e.includes("..")||e.includes("\0"))}catch{return!0}}function pe(s){if(he(s))throw new Error(`Invalid block key: ${s||"(empty)"}`)}function xe(s){try{return decodeURIComponent(s)}catch{return s}}function ge(s){return pe(s),encodeURIComponent(s)}function Ae(s){return`.deco/blocks/${ge(s)}.json`}const He=1e4,we=3;function B(s){return s.trim()?(s.startsWith("/")?s:`/${s}`).replace(/\/+/g,"/"):"/"}function _(s){return s.startsWith("/")?s.slice(1):s}function Ke(s){const e=_(s);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}function W(s){return s.trim()?s.startsWith("/")?s:`/${s}`:"/"}function je(s){const e=W(s);if(e==="/")return"/";const t=e.split("/").filter(Boolean);return t.pop(),t.length===0?"/":`/${t.join("/")}`}function qe(s,e){const t=e.replace(/^\/+|\/+$/g,"");return W(t?`${s==="/"?"":s}/${t}`:s)}function Ve(s,e){return e==="directory"?s:je(s)}function Ye(s){const e=s.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function be(s){const e=_(s);return e?e.split("/").filter(Boolean).length:0}function Je(s,e,t,i=!1){return{files:[...new Set([...s,...t.files])],directories:[...new Set([...e,...t.directories??[]])],truncated:i||!!t.truncated}}function Qe(s,e){return be(s)>=we&&!e.has(s)}function Ze(s,e,t=[]){const i=_(s);if(e.includes(i)||t.includes(i))return!0;if(!i)return!1;const n=`${i}/`;return e.some(o=>o.startsWith(n))||t.some(o=>o.startsWith(n))}function et(s){const e=_(s),t=".deco/blocks/";if(!e.startsWith(t)||!e.endsWith(".json"))return null;const i=e.slice(t.length,-5);return xe(i)}function ve(s){if(!s)return"plaintext";const e=s.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}const ye="#94a3b8";function tt(s){const e=s.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:$,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:$,color:"#d9a441"}:e.endsWith(".json")?{Icon:fe,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:$,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:$,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:de,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:R,color:"#64748b"}:{Icon:R,color:ye}}function st(s){const e=B(s).split("/").filter(Boolean),t=["/"];let i="";for(const n of e.slice(0,-1))i+=`/${n}`,t.push(i);return t}function nt(s,e=[]){const t={path:"/",children:[]},i=new Map,n=c=>{let l=i.get(c.path);return l||(l=new Map,i.set(c.path,l)),l},o=c=>{const f=B(c).split("/").filter(Boolean);let d=t,u="";for(const m of f){u+=`/${m}`;const v=n(d);let h=v.get(m);h?h.kind==="file"&&(h.kind="directory"):(h={name:m,path:u,kind:"directory",children:[]},d.children.push(h),v.set(m,h)),d=h}};for(const c of s){const f=B(c).split("/").filter(Boolean);let d=t,u="";f.forEach((m,v)=>{u+=`/${m}`;const h=v===f.length-1,w=n(d);let x=w.get(m);x||(x={name:m,path:u,kind:h?"file":"directory",children:[]},d.children.push(x),w.set(m,x)),d=x})}for(const c of e)o(W(c));const a=c=>{c.sort((l,f)=>l.kind!==f.kind?l.kind==="directory"?-1:1:l.name.localeCompare(f.name));for(const l of c)l.children.length>0&&a(l.children)};return a(t.children),t.children}function ke(s,e,t=0){const i=[];for(const n of s)if(n.name!==".gitkeep"&&(i.push({node:n,depth:t}),n.kind==="directory"&&n.children.length>0&&e.has(n.path)))for(const o of ke(n.children,e,t+1))i.push(o);return i}function rt(s){const e=[];for(const t of s.split(`
2
2
  `)){if(!t)continue;const i=t.indexOf(":");if(i<0)continue;const n=t.indexOf(":",i+1);if(n<0)continue;const o=Number.parseInt(t.slice(i+1,n),10);Number.isFinite(o)&&e.push({path:W(t.slice(0,i)),line:o,text:t.slice(n+1)})}return e}function it(s,e,t){const i=e.trim().toLowerCase();if(!i)return[];const n=[];for(const o of s)if((o.split("/").pop()??o).toLowerCase().includes(i)&&(n.push(W(o)),n.length>=t))break;return n}const G=24;function lt(s,e){const t=s.replace(/^\s+/,""),i=e.trim().toLowerCase();if(!i)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const n=t.toLowerCase().indexOf(i);if(n<0)return{leadingEllipsis:!1,segments:[{text:t,match:!1}]};const o=n>G,a=o?t.slice(n-G):t,c=a.toLowerCase(),l=[];let f=0;for(;;){const d=c.indexOf(i,f);if(d<0){f<a.length&&l.push({text:a.slice(f),match:!1});break}d>f&&l.push({text:a.slice(f,d),match:!1}),l.push({text:a.slice(d,d+i.length),match:!0}),f=d+i.length}return{leadingEllipsis:o,segments:l}}function ot(s){const e=[],t=new Map;for(const i of s){let n=t.get(i.path);n||(n={path:i.path,matches:[]},t.set(i.path,n),e.push(n)),n.matches.push(i)}return e}function at(s){return s.split(`
3
3
  `).map(e=>e.replace(/^\d+\t/,"")).join(`
4
4
  `)}function Ne(s){const e=b.c(11),{value:t,filename:i}=s,[n]=Q(),o=n.theme==="dark"||n.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let a;e[0]!==i?(a=ve(i),e[0]=i,e[1]=a):a=e[1];const c=o?"vs-dark":"light";let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsx(Z,{className:"size-5 text-muted-foreground"})}),e[2]=l):l=e[2];let f,d;e[3]===Symbol.for("react.memo_cache_sentinel")?(f={enabled:!1},d={top:12,bottom:12},e[3]=f,e[4]=d):(f=e[3],d=e[4]);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:f,padding:d,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=u):u=e[5];let m;return e[6]!==i||e[7]!==a||e[8]!==c||e[9]!==t?(m=r.jsx(me,{path:i,language:a,value:t,theme:c,loading:l,options:u},i),e[6]=i,e[7]=a,e[8]=c,e[9]=t,e[10]=m):m=e[10],m}function We(s){return s<1024?`${s} B`:s<1024*1024?`${(s/1024).toFixed(1)} KB`:`${(s/(1024*1024)).toFixed(1)} MB`}const Se=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),Ce=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),X=2*1024*1024;function Ee(s,e){const t=s.split(".").pop()?.toLowerCase()??"";return Se.has(t)?"image":t==="pdf"?"pdf":t==="html"||t==="htm"?"html":t==="md"||t==="markdown"?e<=X?"markdown":"download":Ce.has(t)&&e<=X?"text":"download"}function Pe(){const s=b.c(2);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(g,{className:"h-6 w-2/3"}),s[0]=e):e=s[0];let t;return s[1]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,r.jsxs("div",{className:"flex flex-col gap-1.5",children:[r.jsx(g,{className:"h-3 w-full"}),r.jsx(g,{className:"h-3 w-5/6"}),r.jsx(g,{className:"h-3 w-2/3"})]})]})}),s[1]=t):t=s[1],t}function V(s){const e=b.c(20),{file:t,note:i}=s;let n;e[0]!==t.filename?(n=r.jsx(q,{filename:t.filename,className:"h-12 w-10"}),e[0]=t.filename,e[1]=n):n=e[1];let o;e[2]!==t.filename?(o=r.jsx("span",{className:"text-sm font-medium text-foreground",children:t.filename}),e[2]=t.filename,e[3]=o):o=e[3];let a;e[4]!==t.size?(a=We(t.size),e[4]=t.size,e[5]=a):a=e[5];const c=i?` · ${i}`:"";let l;e[6]!==a||e[7]!==c?(l=r.jsxs("span",{className:"text-xs text-muted-foreground",children:[a,c]}),e[6]=a,e[7]=c,e[8]=l):l=e[8];let f;e[9]!==o||e[10]!==l?(f=r.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[o,l]}),e[9]=o,e[10]=l,e[11]=f):f=e[11];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(le,{size:14}),e[12]=d):d=e[12];let u;e[13]!==t.downloadUrl||e[14]!==t.filename?(u=r.jsx(U,{asChild:!0,variant:"outline",size:"sm",children:r.jsxs("a",{href:t.downloadUrl,download:t.filename,children:[d,"Download"]})}),e[13]=t.downloadUrl,e[14]=t.filename,e[15]=u):u=e[15];let m;return e[16]!==n||e[17]!==f||e[18]!==u?(m=r.jsx("div",{className:"flex h-full w-full items-center justify-center",children:r.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[n,f,u]})}),e[16]=n,e[17]=f,e[18]=u,e[19]=m):m=e[19],m}function A(s){const e=b.c(9),{file:t,markdown:i}=s,{data:n,isPending:o,isError:a}=K(t.downloadUrl);if(o){let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(Pe,{}),e[0]=l):l=e[0],l}if(a||!n){let l;return e[1]!==t?(l=r.jsx(V,{file:t,note:"preview unavailable"}),e[1]=t,e[2]=l):l=e[2],l}if(i){const l=`file-preview-${t.key}`;let f;return e[3]!==n||e[4]!==l?(f=r.jsx("div",{className:"h-full overflow-y-auto",children:r.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:r.jsx(H,{id:l,text:n})})}),e[3]=n,e[4]=l,e[5]=f):f=e[5],f}let c;return e[6]!==n||e[7]!==t.filename?(c=r.jsx(Ne,{value:n,filename:t.filename}),e[6]=n,e[7]=t.filename,e[8]=c):c=e[8],c}function ze(s){const e=b.c(15),{file:t}=s;switch(Ee(t.filename,t.size)){case"image":{let n;return e[0]!==t.downloadUrl||e[1]!==t.filename?(n=r.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:r.jsx("img",{src:t.downloadUrl,alt:t.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=t.downloadUrl,e[1]=t.filename,e[2]=n):n=e[2],n}case"pdf":{let n;return e[3]!==t.downloadUrl||e[4]!==t.filename?(n=r.jsx("iframe",{src:t.downloadUrl,title:t.filename,className:"block h-full w-full bg-white"}),e[3]=t.downloadUrl,e[4]=t.filename,e[5]=n):n=e[5],n}case"html":{let n;return e[6]!==t.downloadUrl||e[7]!==t.filename?(n=r.jsx("iframe",{src:t.downloadUrl,title:t.filename,sandbox:"allow-scripts allow-downloads",className:"block h-full w-full bg-white"}),e[6]=t.downloadUrl,e[7]=t.filename,e[8]=n):n=e[8],n}case"markdown":{let n;return e[9]!==t?(n=r.jsx(A,{file:t,markdown:!0}),e[9]=t,e[10]=n):n=e[10],n}case"text":{let n;return e[11]!==t?(n=r.jsx(A,{file:t,markdown:!1}),e[11]=t,e[12]=n):n=e[12],n}default:{let n;return e[13]!==t?(n=r.jsx(V,{file:t}),e[13]=t,e[14]=n):n=e[14],n}}}function Fe(s){const e=b.c(18),{skillPath:t,onClose:i,variant:n}=s,o=ue(t),{volume:a,dirPath:c}=o,l=oe(),f=l(a??"",`${c}/SKILL.md`),d=K(f),u=ae(a??"",c);let m;e[0]!==c?(m=j(c),e[0]=c,e[1]=m):m=e[1];const v=m;let h;e[2]!==d.data?(h=d.data?ce(d.data):null,e[2]=d.data,e[3]=h):h=e[3];const w=h,x=$e;let C;e[4]===Symbol.for("react.memo_cache_sentinel")?(C=(p,S)=>x(p.path)?-1:x(S.path)?1:j(p.path).localeCompare(j(S.path)),e[4]=C):C=e[4];const D=(u.data??[]).filter(Le).sort(C),[I,Y]=ee.useState(null),y=I===null?null:D.find(p=>p.path===I)??null,E=w?.name??v;let P;e[5]===Symbol.for("react.memo_cache_sentinel")?(P=r.jsx("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-primary/10 text-primary",children:r.jsx(ie,{size:18})}),e[5]=P):P=e[5];let k;e[6]!==E||e[7]!==n?(k=n==="dialog"?r.jsx(ne,{className:"flex-1 truncate text-base font-medium text-foreground",children:E}):r.jsx("span",{className:"flex-1 truncate text-base font-medium text-foreground",children:E}),e[6]=E,e[7]=n,e[8]=k):k=e[8];let N;e[9]!==i||e[10]!==n?(N=n==="dialog"?r.jsx(re,{asChild:!0,children:r.jsx(U,{variant:"ghost",size:"icon",className:"size-8 shrink-0",children:r.jsx(O,{size:16})})}):r.jsx(U,{variant:"ghost",size:"icon",className:"size-8 shrink-0",onClick:i,children:r.jsx(O,{size:16})}),e[9]=i,e[10]=n,e[11]=N):N=e[11];let z;e[12]!==k||e[13]!==N?(z=r.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-b border-border px-4 py-3",children:[P,k,N]}),e[12]=k,e[13]=N,e[14]=z):z=e[14];let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx("p",{className:"px-2 py-1.5 text-sm font-medium text-foreground",children:"Files"}),e[15]=F):F=e[15];const J="relative flex min-w-0 flex-1 flex-col overflow-y-auto",T=y?r.jsx(ze,{file:{key:y.path,filename:j(y.path),size:y.size,downloadUrl:l(a??"",y.path)}}):d.isPending?r.jsxs("div",{className:"flex flex-col gap-2 p-6",children:[r.jsx(g,{className:"h-4 w-1/3"}),r.jsx(g,{className:"h-3 w-full"}),r.jsx(g,{className:"h-3 w-5/6"}),r.jsx(g,{className:"h-3 w-2/3"})]}):d.isError||!w?r.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:"This skill is no longer available."}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex flex-col gap-4 border-b border-border p-6",children:[r.jsx("p",{className:"text-sm font-medium text-foreground",children:"Description"}),r.jsx("p",{className:"text-base text-muted-foreground",children:w.description??"Claude Code skill"})]}),r.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none p-6",children:r.jsx(H,{id:`skill-preview-${t}`,text:w.body})})]});let L;return e[16]!==T?(L=r.jsx("div",{className:J,children:T}),e[16]=T,e[17]=L):L=e[17],r.jsxs(r.Fragment,{children:[z,r.jsxs("div",{className:"flex min-h-0 flex-1",children:[r.jsxs("div",{className:"flex w-[220px] shrink-0 flex-col gap-1 overflow-y-auto border-r border-border bg-muted p-3",children:[F,u.isPending?r.jsx(g,{className:"mx-2 h-4 w-24"}):D.map(p=>{const S=x(p.path)?y===null:I===p.path;return r.jsxs("button",{type:"button",onClick:()=>Y(x(p.path)?null:p.path),className:M("flex items-center gap-2.5 rounded-lg px-2 py-1.5 text-left",S?"bg-background shadow-sm":"hover:bg-muted/60"),children:[r.jsx(q,{filename:j(p.path),className:"h-6 w-5 shrink-0"}),r.jsx("span",{className:M("truncate text-sm",S?"text-foreground":"text-muted-foreground"),children:j(p.path)})]},p.path)})]}),L]})]})}function Le(s){return s.kind==="file"}function $e(s){return j(s)==="SKILL.md"}function ct(s){const e=b.c(8),{skillPath:t,onClose:i}=s;let n;e[0]!==i?(n=c=>{c||i()},e[0]=i,e[1]=n):n=e[1];let o;e[2]!==i||e[3]!==t?(o=r.jsx(te,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"hidden",children:r.jsx(Fe,{skillPath:t,onClose:i,variant:"dialog"})}),e[2]=i,e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=r.jsx(se,{open:!0,onOpenChange:n,children:o}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}export{Je as A,we as E,Pe as F,ct as S,pe as a,ze as b,xe as c,Ae as d,He as e,We as f,ve as g,nt as h,Ke as i,ke as j,ot as k,Ve as l,W as m,tt as n,je as o,st as p,lt as q,Qe as r,at as s,_ as t,qe as u,Ye as v,Ze as w,it as x,rt as y,et as z};
@@ -1 +1 @@
1
- import{b as te,G as se,n as oe,r as T,j as t,B as Q,P as L,b4 as ae,C as ce,t as w,c as ie,l as de,K as H,b2 as me}from"./index-Ceii15GN.js";import{i as ue}from"./DotsVertical-CbPW2qju.js";import{i as pe}from"./GitBranch01-8cxvPvq5.js";import{a as ge}from"./Package-DX-ASn28.js";import{s as fe}from"./Trash01-DQ7by04L.js";import{i as he}from"./Upload01-BXzxyyOQ.js";import{i as le}from"./Zap-ClD9aw0I.js";import{S as xe}from"./search-input-BT4wQO0L.js";import{c as je,D as ke,b as ve,a as ye}from"./dropdown-menu-CY5iTV-e.js";import{A as Se,a as be,b as we,c as Ce,d as De,e as Ne,f as Pe,g as Ee}from"./alert-dialog-CusoR2MF.js";import{E as J}from"./empty-state-8UJLsM1P.js";import{C as Ae}from"./collection-tabs-By6Tb-WH.js";import{p as Te,q as Me,u as Ie,r as Oe,F as ze}from"./folder-icon-BUlfJvCw.js";import{H as V,d as $e}from"./location-oTTXFrSF.js";import{S as Fe}from"./skill-preview-Cne1vIDc.js";import"./SearchMd-BVPcVzid.js";import"./Check-DjbhZve0.js";import"./ChevronRight-3dlQWzgE.js";import"./badge-BcnJOpMB.js";import"./Eye-CfTm4nPD.js";import"./dialog-Bd599x3P.js";import"./markdown-3zqu2ODi.js";import"./Copy01-BsaQgoj1.js";import"./Download01-BulEednD.js";import"./ZoomOut-C-dp4U-B.js";import"./use-panel-navigate-B2q5dGNh.js";import"./use-destination-route--qpdvTj3.js";import"./Image01-DwrWIWvg.js";import"./editor-CA29izQ6.js";import"./file-type-icon-DcpGkosI.js";const Z=200,Re=new Set(["node_modules","__pycache__"]);function G(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return G(s).split("/").every(e=>!e.startsWith(".")&&!Re.has(e))}function _e(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function Be(s,e){const l=new Map;for(const r of s){const c=G(r).split("/");c.pop();const a=["skills",e,...c].join("/");l.set(a,[...l.get(a)??[],r])}return l}async function Ke(s,e){const r=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(r)throw r.reason}function qe(s,e){const l=Te(e),r=`skills/${s}`;return{id:`home/${r}`,name:l.name??s,description:l.description,source:"home",volume:V,path:r,sandboxPath:`org/${V}/${r}`}}const _="*";function B(s){return s.volume==="home"}function re(s,e){const l=s.indexOf(":");return l===-1?{label:e,glyph:le}:{label:s.slice(l+1),glyph:s.startsWith("repo:")?pe:ge}}function He(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:u}=se();let C;e[0]!==l.source||e[1]!==u.name?(C=re(l.source,u.name),e[0]=l.source,e[1]=u.name,e[2]=C):C=e[2];const{label:M,glyph:O}=C;let D;e[3]!==l?(D=B(l),e[3]=l,e[4]=D):D=e[4];const z=D,N=r?"opacity-60":"hover:bg-muted/50";let f;e[5]!==N?(f=de("relative transition-colors group overflow-hidden flex flex-col h-full",N),e[5]=N,e[6]=f):f=e[6];let d;e[7]!==l.name||e[8]!==c||e[9]!==r?(d=!r&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":l.name}),e[7]=l.name,e[8]=c,e[9]=r,e[10]=d):d=e[10];const P=z?"default":"system",$=!z;let h;e[11]!==O||e[12]!==P||e[13]!==$?(h=t.jsx(ze,{glyph:O,tone:P,readOnly:$,className:"size-8 shrink-0"}),e[11]=O,e[12]=P,e[13]=$,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==o?(x=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(je,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ue,{size:16})})}),t.jsx(ve,{align:"end",children:t.jsxs(ye,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(fe,{size:16}),o("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=o,e[17]=x):x=e[17];let j;e[18]!==h||e[19]!==x?(j=t.jsxs("div",{className:"flex items-start justify-between",children:[h,x]}),e[18]=h,e[19]=x,e[20]=j):j=e[20];let b;e[21]!==l.name?(b=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:l.name}),e[21]=l.name,e[22]=b):b=e[22];let k;e[23]!==l.description||e[24]!==o?(k=l.description||o("settings.skills.noDescription"),e[23]=l.description,e[24]=o,e[25]=k):k=e[25];let m;e[26]!==k?(m=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=m):m=e[27];let v;e[28]!==b||e[29]!==m?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,m]}),e[28]=b,e[29]=m,e[30]=v):v=e[30];let p;e[31]!==j||e[32]!==v?(p=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=p):p=e[33];let y;e[34]!==M||e[35]!==r||e[36]!==o?(y=r?o("settings.skills.importing"):M,e[34]=M,e[35]=r,e[36]=o,e[37]=y):y=e[37];let g;e[38]!==y?(g=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y})})}),e[38]=y,e[39]=g):g=e[39];let S;e[40]!==p||e[41]!==g?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[p,g]}),e[40]=p,e[41]=g,e[42]=S):S=e[42];let I;return e[43]!==r||e[44]!==S||e[45]!==f||e[46]!==d?(I=t.jsxs(me,{"aria-busy":r,className:f,children:[d,S]}),e[43]=r,e[44]=S,e[45]=f,e[46]=d,e[47]=I):I=e[47],I}function ee(s){const e=ie.c(2),{children:l}=s;let r;return e[0]!==l?(r=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:l}),e[0]=l,e[1]=r):r=e[1],r}function yt(){const s=te(),{org:e}=se(),l=Me(),{remove:r,upload:c}=Ie("home"),a=oe(),o=T.useRef(null),[u,C]=T.useState(""),[M,O]=T.useState(_),[D,z]=T.useState(!1),[N,f]=T.useState(null),[d,P]=T.useState(null),[$,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:H.slashSkills(e.id)}),a.invalidateQueries({queryKey:H.orgFsSkills(e.id)})},j=i=>a.setQueryData(H.slashSkills(e.id),n=>i(n??[]));async function b(i){const n=[...i??[]];if(o.current&&(o.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){w.error(s("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",R=n.filter(Le),W=R.find(A=>G(A)==="SKILL.md");if(!W){w.error(s("settings.skills.importMissingSkillMd"));return}if(R.length>Z){w.error(s("settings.skills.importTooManyFiles",{count:String(R.length),max:String(Z)}));return}const F=_e(q),X=`skills/${F}`;let Y=!1;z(!0);try{if(await Oe(e.slug,"home",X)){w.error(s("settings.skills.importSlugTaken",{slug:F}));return}Y=!0;const A=qe(F,await W.text());j(ne=>[A,...ne]),h(A.id),await Ke(Be(R,F),c.mutateAsync),w.success(s("settings.skills.importSuccess",{name:F}))}catch(A){Y&&await r.mutateAsync(X).catch(()=>{}),w.error(A instanceof Error?A.message:s("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=u.toLowerCase(),m=(l.data??[]).filter(i=>i.name.toLowerCase().includes(k)||(i.description??"").toLowerCase().includes(k)).sort((i,n)=>Number(B(n))-Number(B(i))||i.name.localeCompare(n.name)),v=new Set((l.data??[]).map(i=>i.source)),p=new Map;for(const i of m)p.set(i.source,(p.get(i.source)??0)+1);const y=[{id:_,label:s("settings.skills.filterAll"),count:m.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:p.get(i)??0}))],g=v.has(M)?M:_,S=g===_?m:m.filter(i=>i.source===g),I=i=>f($e(i.volume,i.path)),K=async()=>{if(!d)return;const{id:i,path:n}=d;P(null),j(E=>E.filter(q=>q.id!==i));try{await r.mutateAsync(n),w.success(s("settings.skills.deleteSuccess"))}catch(E){w.error(E instanceof Error?E.message:s("settings.skills.deleteError"))}finally{x()}},U=t.jsxs(Q,{size:"sm",disabled:D,onClick:()=>o.current?.click(),children:[t.jsx(he,{size:14}),s(D?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.Title,{children:s("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(xe,{value:u,onChange:C,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(C(""),i.target.blur())}}),U,t.jsx("input",{ref:o,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:i=>{b(i.target.files)}})]}),y.length>2&&t.jsx(Ae,{tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(i,n)=>t.jsx(ae,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(ce,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:s("settings.skills.errorDescription"),actions:t.jsx(Q,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:s("settings.skills.retry")})})}):S.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:s(u?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:u?s("settings.skills.noResultsDescription",{search:u}):s("settings.skills.emptyDescription"),actions:!u&&U})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:S.map(i=>{const n=i.id===$;return t.jsx(He,{entry:i,pending:n,onOpen:()=>I(i),onDelete:B(i)&&!n?()=>P(i):void 0},i.id)})})})]})})}),N&&t.jsx(Fe,{skillPath:N,onClose:()=>f(null)},N),t.jsx(Se,{open:d!==null,onOpenChange:i=>!i&&P(null),children:t.jsxs(be,{children:[t.jsxs(we,{children:[t.jsx(Ce,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(De,{children:s("settings.skills.deleteDialogDescription",{name:d?.name??""})})]}),t.jsxs(Ne,{children:[t.jsx(Pe,{children:s("settings.skills.cancel")}),t.jsx(Ee,{onClick:K,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.skills.deleteButton")})]})]})})]})}export{yt as default};
1
+ import{b as te,G as se,n as oe,r as T,j as t,B as Q,P as L,b4 as ae,C as ce,t as w,c as ie,l as de,K as H,b2 as me}from"./index-DdTzYiuN.js";import{i as ue}from"./DotsVertical-CkK-4N7h.js";import{i as pe}from"./GitBranch01-GrIssZHW.js";import{a as ge}from"./Package-AZELZq3n.js";import{s as fe}from"./Trash01-BZiK__nW.js";import{i as he}from"./Upload01-BSDuLalV.js";import{i as le}from"./Zap-C6bIZXXW.js";import{S as xe}from"./search-input-ypH6KttZ.js";import{c as je,D as ke,b as ve,a as ye}from"./dropdown-menu-B8sYwH8j.js";import{A as Se,a as be,b as we,c as Ce,d as De,e as Ne,f as Pe,g as Ee}from"./alert-dialog-BLvR_jy7.js";import{E as J}from"./empty-state-Dh4EtE45.js";import{C as Ae}from"./collection-tabs-CKA8yzTn.js";import{p as Te,q as Me,u as Ie,r as Oe,F as ze}from"./folder-icon-DooLs5a3.js";import{H as V,d as $e}from"./location-oTTXFrSF.js";import{S as Fe}from"./skill-preview-B86RBNtf.js";import"./SearchMd-DV8_dnjD.js";import"./Check-BOh2qtCs.js";import"./ChevronRight-BLiW1RUx.js";import"./badge-rP2HXHvQ.js";import"./Eye-B6lj7d-i.js";import"./dialog-DoQpUhQk.js";import"./markdown-_E8A64Me.js";import"./Copy01--ax_nnhW.js";import"./Download01-DQWtoLHA.js";import"./ZoomOut-BXMFKhb2.js";import"./use-panel-navigate-Buj04wle.js";import"./use-destination-route-DlaAN8OO.js";import"./Image01-DKRwZeP2.js";import"./editor-BFFR5KPF.js";import"./file-type-icon-B3j8PQKI.js";const Z=200,Re=new Set(["node_modules","__pycache__"]);function G(s){const[,...e]=s.webkitRelativePath.split("/");return e.length>0?e.join("/"):s.name}function Le(s){return G(s).split("/").every(e=>!e.startsWith(".")&&!Re.has(e))}function _e(s){return s.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"skill"}function Be(s,e){const l=new Map;for(const r of s){const c=G(r).split("/");c.pop();const a=["skills",e,...c].join("/");l.set(a,[...l.get(a)??[],r])}return l}async function Ke(s,e){const r=(await Promise.allSettled([...s].map(([c,a])=>e({dir:c,files:a})))).find(c=>c.status==="rejected");if(r)throw r.reason}function qe(s,e){const l=Te(e),r=`skills/${s}`;return{id:`home/${r}`,name:l.name??s,description:l.description,source:"home",volume:V,path:r,sandboxPath:`org/${V}/${r}`}}const _="*";function B(s){return s.volume==="home"}function re(s,e){const l=s.indexOf(":");return l===-1?{label:e,glyph:le}:{label:s.slice(l+1),glyph:s.startsWith("repo:")?pe:ge}}function He(s){const e=ie.c(48),{entry:l,pending:r,onOpen:c,onDelete:a}=s,o=te(),{org:u}=se();let C;e[0]!==l.source||e[1]!==u.name?(C=re(l.source,u.name),e[0]=l.source,e[1]=u.name,e[2]=C):C=e[2];const{label:M,glyph:O}=C;let D;e[3]!==l?(D=B(l),e[3]=l,e[4]=D):D=e[4];const z=D,N=r?"opacity-60":"hover:bg-muted/50";let f;e[5]!==N?(f=de("relative transition-colors group overflow-hidden flex flex-col h-full",N),e[5]=N,e[6]=f):f=e[6];let d;e[7]!==l.name||e[8]!==c||e[9]!==r?(d=!r&&t.jsx("button",{type:"button",onClick:c,className:"absolute inset-0 z-0","aria-label":l.name}),e[7]=l.name,e[8]=c,e[9]=r,e[10]=d):d=e[10];const P=z?"default":"system",$=!z;let h;e[11]!==O||e[12]!==P||e[13]!==$?(h=t.jsx(ze,{glyph:O,tone:P,readOnly:$,className:"size-8 shrink-0"}),e[11]=O,e[12]=P,e[13]=$,e[14]=h):h=e[14];let x;e[15]!==a||e[16]!==o?(x=a&&t.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:t.jsxs(je,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:t.jsx(ue,{size:16})})}),t.jsx(ve,{align:"end",children:t.jsxs(ye,{variant:"destructive",onClick:K=>{K.stopPropagation(),a()},children:[t.jsx(fe,{size:16}),o("settings.skills.deleteButton")]})})]})}),e[15]=a,e[16]=o,e[17]=x):x=e[17];let j;e[18]!==h||e[19]!==x?(j=t.jsxs("div",{className:"flex items-start justify-between",children:[h,x]}),e[18]=h,e[19]=x,e[20]=j):j=e[20];let b;e[21]!==l.name?(b=t.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:l.name}),e[21]=l.name,e[22]=b):b=e[22];let k;e[23]!==l.description||e[24]!==o?(k=l.description||o("settings.skills.noDescription"),e[23]=l.description,e[24]=o,e[25]=k):k=e[25];let m;e[26]!==k?(m=t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:k}),e[26]=k,e[27]=m):m=e[27];let v;e[28]!==b||e[29]!==m?(v=t.jsxs("div",{className:"flex flex-col gap-1",children:[b,m]}),e[28]=b,e[29]=m,e[30]=v):v=e[30];let p;e[31]!==j||e[32]!==v?(p=t.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[j,v]}),e[31]=j,e[32]=v,e[33]=p):p=e[33];let y;e[34]!==M||e[35]!==r||e[36]!==o?(y=r?o("settings.skills.importing"):M,e[34]=M,e[35]=r,e[36]=o,e[37]=y):y=e[37];let g;e[38]!==y?(g=t.jsx("div",{className:"border-t border-border mt-auto",children:t.jsx("div",{className:"h-10 flex items-center px-4.5",children:t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y})})}),e[38]=y,e[39]=g):g=e[39];let S;e[40]!==p||e[41]!==g?(S=t.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[p,g]}),e[40]=p,e[41]=g,e[42]=S):S=e[42];let I;return e[43]!==r||e[44]!==S||e[45]!==f||e[46]!==d?(I=t.jsxs(me,{"aria-busy":r,className:f,children:[d,S]}),e[43]=r,e[44]=S,e[45]=f,e[46]=d,e[47]=I):I=e[47],I}function ee(s){const e=ie.c(2),{children:l}=s;let r;return e[0]!==l?(r=t.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:l}),e[0]=l,e[1]=r):r=e[1],r}function yt(){const s=te(),{org:e}=se(),l=Me(),{remove:r,upload:c}=Ie("home"),a=oe(),o=T.useRef(null),[u,C]=T.useState(""),[M,O]=T.useState(_),[D,z]=T.useState(!1),[N,f]=T.useState(null),[d,P]=T.useState(null),[$,h]=T.useState(null),x=()=>{a.invalidateQueries({queryKey:H.slashSkills(e.id)}),a.invalidateQueries({queryKey:H.orgFsSkills(e.id)})},j=i=>a.setQueryData(H.slashSkills(e.id),n=>i(n??[]));async function b(i){const n=[...i??[]];if(o.current&&(o.current.value=""),n.length===0)return;const E=n[0]?.webkitRelativePath??"";if(!E){w.error(s("settings.skills.importNeedsFolder"));return}const q=E.split("/")[0]??"",R=n.filter(Le),W=R.find(A=>G(A)==="SKILL.md");if(!W){w.error(s("settings.skills.importMissingSkillMd"));return}if(R.length>Z){w.error(s("settings.skills.importTooManyFiles",{count:String(R.length),max:String(Z)}));return}const F=_e(q),X=`skills/${F}`;let Y=!1;z(!0);try{if(await Oe(e.slug,"home",X)){w.error(s("settings.skills.importSlugTaken",{slug:F}));return}Y=!0;const A=qe(F,await W.text());j(ne=>[A,...ne]),h(A.id),await Ke(Be(R,F),c.mutateAsync),w.success(s("settings.skills.importSuccess",{name:F}))}catch(A){Y&&await r.mutateAsync(X).catch(()=>{}),w.error(A instanceof Error?A.message:s("settings.skills.importError"))}finally{h(null),x(),z(!1)}}const k=u.toLowerCase(),m=(l.data??[]).filter(i=>i.name.toLowerCase().includes(k)||(i.description??"").toLowerCase().includes(k)).sort((i,n)=>Number(B(n))-Number(B(i))||i.name.localeCompare(n.name)),v=new Set((l.data??[]).map(i=>i.source)),p=new Map;for(const i of m)p.set(i.source,(p.get(i.source)??0)+1);const y=[{id:_,label:s("settings.skills.filterAll"),count:m.length},...[...v].map(i=>({id:i,label:re(i,e.name).label,count:p.get(i)??0}))],g=v.has(M)?M:_,S=g===_?m:m.filter(i=>i.source===g),I=i=>f($e(i.volume,i.path)),K=async()=>{if(!d)return;const{id:i,path:n}=d;P(null),j(E=>E.filter(q=>q.id!==i));try{await r.mutateAsync(n),w.success(s("settings.skills.deleteSuccess"))}catch(E){w.error(E instanceof Error?E.message:s("settings.skills.deleteError"))}finally{x()}},U=t.jsxs(Q,{size:"sm",disabled:D,onClick:()=>o.current?.click(),children:[t.jsx(he,{size:14}),s(D?"settings.skills.importing":"settings.skills.importButton")]});return t.jsxs(L,{children:[t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(L.Title,{children:s("settings.skills.pageTitle")}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsx(xe,{value:u,onChange:C,placeholder:s("settings.skills.searchPlaceholder"),className:"w-full md:w-[375px]",onKeyDown:i=>{i.key==="Escape"&&(C(""),i.target.blur())}}),U,t.jsx("input",{ref:o,type:"file",multiple:!0,webkitdirectory:"",className:"hidden",onChange:i=>{b(i.target.files)}})]}),y.length>2&&t.jsx(Ae,{tabs:y,activeTab:g,onTabChange:O}),l.isPending?t.jsx("div",{className:"@container",children:t.jsx(ee,{children:Array.from({length:8},(i,n)=>t.jsx(ae,{className:"h-[168px] rounded-xl"},n))})}):l.isError?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(ce,{size:48,className:"text-muted-foreground"}),title:s("settings.skills.errorTitle"),description:l.error instanceof Error?l.error.message:s("settings.skills.errorDescription"),actions:t.jsx(Q,{size:"sm",variant:"outline",onClick:()=>{l.refetch()},children:s("settings.skills.retry")})})}):S.length===0?t.jsx("div",{className:"flex items-center justify-center py-20",children:t.jsx(J,{image:t.jsx(le,{size:48,className:"text-muted-foreground"}),title:s(u?"settings.skills.noResultsTitle":"settings.skills.emptyTitle"),description:u?s("settings.skills.noResultsDescription",{search:u}):s("settings.skills.emptyDescription"),actions:!u&&U})}):t.jsx("div",{className:"@container",children:t.jsx(ee,{children:S.map(i=>{const n=i.id===$;return t.jsx(He,{entry:i,pending:n,onOpen:()=>I(i),onDelete:B(i)&&!n?()=>P(i):void 0},i.id)})})})]})})}),N&&t.jsx(Fe,{skillPath:N,onClose:()=>f(null)},N),t.jsx(Se,{open:d!==null,onOpenChange:i=>!i&&P(null),children:t.jsxs(be,{children:[t.jsxs(we,{children:[t.jsx(Ce,{children:s("settings.skills.deleteDialogTitle")}),t.jsx(De,{children:s("settings.skills.deleteDialogDescription",{name:d?.name??""})})]}),t.jsxs(Ne,{children:[t.jsx(Pe,{children:s("settings.skills.cancel")}),t.jsx(Ee,{onClick:K,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("settings.skills.deleteButton")})]})]})})]})}export{yt as default};
@@ -0,0 +1 @@
1
+ function r(e){return e!=="off"}function o(e){if(!e.hasSource)return[];const n=["site-editor"];return r(e.cmsMode)&&n.push("content"),e.runtime==="sandbox"&&n.push("code"),n}function t(e){return e==="site-editor"||e==="content"||e==="code"||e.startsWith("code:")}function s(e){return e.reportsOnly&&!e.onReportAgent&&t(e.tabId)}export{r as a,t as i,o as r,s};
@@ -1 +1 @@
1
- import{b as B,G as L,r as v,j as e,P as x,ds as k,dp as y,dq as E,dr as a,fi as D,B as m,o as C,t as c,c as z}from"./index-Ceii15GN.js";import{D as T}from"./domain-settings-CaN1_d2e.js";import{A as O,a as R,b as q,c as F,e as M,f as U,g as $}from"./alert-dialog-CusoR2MF.js";import{I as d}from"./input-DbojEF15.js";import{S as G}from"./switch-BB4k41J_.js";import{a as H,b as J,c as K,d as Q}from"./use-org-sso-aeP8x90Q.js";import{s as V}from"./Trash01-DQ7by04L.js";import{R as W}from"./require-capability-B8ZhyEcB.js";import"./badge-BcnJOpMB.js";import"./select-p3YkP5QY.js";import"./Check-DjbhZve0.js";import"./ChevronUp-D3F3YlZD.js";import"./access-gate-CsSFWw4h.js";import"./capability-load-error-56aZftmi.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=H(o.id,o.slug),h=J(o.id,o.slug),S=K(o.id,o.slug),b=Q(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[I,j]=v.useState(!1),u=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!u&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(u?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Body,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(G,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&u?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:I,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(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{ue as default};
1
+ import{b as B,G as L,r as v,j as e,P as x,ds as k,dp as y,dq as E,dr as a,fi as D,B as m,o as C,t as c,c as z}from"./index-DdTzYiuN.js";import{D as T}from"./domain-settings-bjaSaj37.js";import{A as O,a as R,b as q,c as F,e as M,f as U,g as $}from"./alert-dialog-BLvR_jy7.js";import{I as d}from"./input-BuBQraFS.js";import{S as G}from"./switch-DIfWoi0D.js";import{a as H,b as J,c as K,d as Q}from"./use-org-sso-CX3mIpHZ.js";import{s as V}from"./Trash01-BZiK__nW.js";import{R as W}from"./require-capability-B4GofvZa.js";import"./badge-rP2HXHvQ.js";import"./select-DftR8cpe.js";import"./Check-BOh2qtCs.js";import"./ChevronUp-CwfcWs9O.js";import"./access-gate-mndX2Tef.js";import"./capability-load-error-SOiMQgxC.js";function X(){const s=B(),{org:o}=L(),{data:f,isLoading:P}=H(o.id,o.slug),h=J(o.id,o.slug),S=K(o.id,o.slug),b=Q(o.id,o.slug),[i,l]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[g,p]=v.useState(!1),[I,j]=v.useState(!1),u=f?.configured&&f.config,n=f?.config,N=()=>{n&&l({issuer:n.issuer,clientId:n.clientId,clientSecret:"",discoveryEndpoint:n.discoveryEndpoint??"",domain:n.domain,scopes:n.scopes.join(" ")}),p(!0)},_=async()=>{if(!i.issuer||!i.clientId||!i.domain){c.error(s("settings.orgSso.requiredFieldsError"));return}if(!u&&!i.clientSecret){c.error(s("settings.orgSso.clientSecretRequiredError"));return}try{await h.mutateAsync({issuer:i.issuer,clientId:i.clientId,clientSecret:i.clientSecret,discoveryEndpoint:i.discoveryEndpoint||void 0,scopes:i.scopes.split(/\s+/).filter(Boolean),domain:i.domain,enforced:n?.enforced??!1}),C(u?"sso_config_updated":"sso_configured",{organization_id:o.id,email_domain:i.domain}),c.success(s("settings.orgSso.configurationSavedSuccess")),p(!1)}catch(t){c.error(t instanceof Error?t.message:s("settings.orgSso.saveSsoConfigError"))}},w=async()=>{try{await S.mutateAsync(),C("sso_config_removed",{organization_id:o.id}),c.success(s("settings.orgSso.configurationRemovedSuccess")),p(!1),j(!1)}catch{c.error(s("settings.orgSso.removeSsoConfigError"))}},A=async t=>{try{await b.mutateAsync(t),C("sso_enforcement_toggled",{organization_id:o.id,enforced:t}),c.success(s(t?"settings.orgSso.enforcementEnabledSuccess":"settings.orgSso.enforcementDisabledSuccess"))}catch{c.error(s("settings.orgSso.toggleEnforcementError"))}};return e.jsxs(x,{children:[e.jsx(x.Content,{children:e.jsx(x.Body,{children:e.jsxs(k,{children:[e.jsx(x.Title,{children:s("settings.orgSso.securityTitle")}),e.jsx(T,{}),P?e.jsx("div",{className:"text-sm text-muted-foreground",children:s("settings.orgSso.loading")}):e.jsxs(e.Fragment,{children:[u&&!g&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.providerLabel"),action:e.jsx("span",{className:"font-medium",children:n.issuer})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.clientId})}),e.jsx(a,{title:s("settings.orgSso.domainLabel"),action:e.jsx("span",{className:"font-medium",children:n.domain})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx("span",{className:"font-mono text-xs",children:n.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(a,{title:s("settings.orgSso.enforceSsoLabel"),description:s("settings.orgSso.enforceSsoDescription"),action:e.jsx(G,{checked:n.enforced,onCheckedChange:A,disabled:b.isPending})}),e.jsxs(D,{children:[e.jsxs(m,{variant:"ghost",size:"sm",onClick:()=>j(!0),disabled:S.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(V,{size:14}),s("settings.orgSso.removeButton")]}),e.jsx(m,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${o.slug}/sso/authorize`,"_blank")},children:s("settings.orgSso.testSsoButton")}),e.jsx(m,{variant:"outline",size:"sm",onClick:N,children:s("settings.orgSso.editConfigButton")})]})]})}),(!u||g)&&e.jsx(y,{title:s("settings.orgSso.sectionTitle"),children:e.jsxs(E,{children:[e.jsx(a,{title:s("settings.orgSso.issuerUrlLabel"),description:s("settings.orgSso.issuerUrlDescription"),action:e.jsx(d,{id:"sso-issuer",placeholder:s("settings.orgSso.issuerUrlPlaceholder"),value:i.issuer,onChange:t=>l(r=>({...r,issuer:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientIdLabel"),action:e.jsx(d,{id:"sso-client-id",placeholder:s("settings.orgSso.clientIdPlaceholder"),value:i.clientId,onChange:t=>l(r=>({...r,clientId:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.clientSecretLabel"),description:g&&u?s("settings.orgSso.clientSecretEditDescription"):void 0,action:e.jsx(d,{id:"sso-client-secret",type:"password",placeholder:s("settings.orgSso.clientSecretPlaceholder"),value:i.clientSecret,onChange:t=>l(r=>({...r,clientSecret:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.emailDomainLabel"),description:s("settings.orgSso.emailDomainDescription"),action:e.jsx(d,{id:"sso-domain",placeholder:s("settings.orgSso.emailDomainPlaceholder"),value:i.domain,onChange:t=>l(r=>({...r,domain:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.scopesLabel"),action:e.jsx(d,{id:"sso-scopes",placeholder:s("settings.orgSso.scopesPlaceholder"),value:i.scopes,onChange:t=>l(r=>({...r,scopes:t.target.value})),className:"w-[280px]"})}),e.jsx(a,{title:s("settings.orgSso.discoveryEndpointLabel"),description:s("settings.orgSso.discoveryEndpointDescription"),action:e.jsx(d,{id:"sso-discovery",placeholder:s("settings.orgSso.discoveryEndpointPlaceholder"),value:i.discoveryEndpoint,onChange:t=>l(r=>({...r,discoveryEndpoint:t.target.value})),className:"w-[280px]"})}),e.jsxs(D,{children:[g&&e.jsx(m,{variant:"outline",size:"sm",onClick:()=>p(!1),children:s("settings.orgSso.cancelButton")}),e.jsx(m,{onClick:_,disabled:h.isPending,size:"sm",children:h.isPending?s("settings.orgSso.savingButton"):s(g?"settings.orgSso.updateButton":"settings.orgSso.configureSsoButton")})]})]})})]})]})})}),e.jsx(O,{open:I,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(W,{capability:"org:manage",area:"security",children:e.jsx(X,{})}),s[0]=o):o=s[0],o}export{ue as default};
@@ -1 +1 @@
1
- import{c as J,b as Z,j as i,P as te,r as V,ds as ue,b4 as pe,E as xe,G as Se,n as he,dr as H,B as X,d as ye,f as je,o as ae,K as ve,dq as ie,dp as re,e as Ce,t as ge}from"./index-Ceii15GN.js";import{i as be}from"./AlertCircle-BeqK9vLj.js";import{i as _e}from"./ChevronRight-3dlQWzgE.js";import{s as Re}from"./Plus-CpqsIXI9.js";import{s as ke}from"./Trash01-DQ7by04L.js";import{I as ne}from"./input-DbojEF15.js";import{S as de}from"./switch-BB4k41J_.js";import{A as me}from"./avatar-D27fcx4E.js";import{P as Ne,a as Pe,b as Te}from"./popover-AiANmij8.js";import{b as fe}from"./use-connection-B8SWnPTA.js";import{W as le}from"./constants-DNuUCxmW.js";import{u as we}from"./use-registry-connections-DbU4jZw7.js";import{h as Ae,k as ze}from"./use-organization-settings--lk0xig1.js";import{R as Ee}from"./require-capability-B8ZhyEcB.js";import"./User01-6qHgTIdo.js";import"./use-mcp-client-B897_7pp.js";import"./auth-DbQBRQ4Z.js";import"./schema-EMzeKiD8.js";import"./task-board-DC-z7Ntm.js";import"./access-gate-CsSFWw4h.js";import"./capability-load-error-56aZftmi.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(be,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=V.useState(""),[a,A]=V.useState(""),[x,_]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==x||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=x,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let S;e[9]!==s?(S=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=S):S=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==S?(m={mutationFn:j,onSuccess:d,onError:S},e[11]=j,e[12]=d,e[13]=S,e[14]=m):m=e[14];const{mutate:v,isPending:g}=Ce(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=y=>p(y.target.value),e[19]=u):u=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(ne,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let U;e[28]!==s?(U=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=U):U=e[29];let Y;e[30]===Symbol.for("react.memo_cache_sentinel")?(Y=y=>A(y.target.value),e[30]=Y):Y=e[30];let q;e[31]!==U||e[32]!==a?(q=i.jsx(ne,{placeholder:U,value:a,onChange:Y,className:"w-[280px]"}),e[31]=U,e[32]=a,e[33]=q):q=e[33];let B;e[34]!==F||e[35]!==q?(B=i.jsx(H,{title:F,action:q}),e[34]=F,e[35]=q,e[36]=B):B=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let b;e[39]!==s?(b=s("settings.orgStore.optional"),e[39]=s,e[40]=b):b=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=y=>_(y.target.value),e[43]=O):O=e[43];let M;e[44]!==E||e[45]!==x?(M=i.jsx(ne,{type:"password",placeholder:E,value:x,onChange:O,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==b||e[49]!==M?(I=i.jsx(H,{title:z,description:b,action:M}),e[47]=z,e[48]=b,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==B||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,B,I,w]}),e[69]=B,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:p,href:a}=t,A=Z(),x=ye();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={from:"/shell/$org"},e[0]=_):_=e[0];const{org:j}=je(_);let d;e[1]!==o||e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==j?(d=()=>{a?x({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=x,e[4]=r,e[5]=j,e[6]=d):d=e[6];const S=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==p||e[11]!==A?(v=p&&i.jsxs(Ne,{children:[i.jsx(Pe,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(ke,{size:14})})}),i.jsx(Te,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(X,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),p()},children:A("settings.orgStore.remove")})]})})]}),e[10]=p,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(_e,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let u;e[20]!==v||e[21]!==h||e[22]!==f?(u=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=u):u=e[23];let C;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(C=i.jsx(H,{title:l,description:c,onClick:S,icon:m,action:u}),e[24]=c,e[25]=S,e[26]=l,e[27]=m,e[28]=u,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=Se(),c=we(),s=fe(),o=Ae(),{mutateAsync:r}=ze(),p=he(),[a,A]=V.useState(!1);let x,_,j,d,S,m;if(t[0]!==s||t[1]!==l.id||t[2]!==p||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=le.REGISTRY(l.id),u=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},C=le.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),U=F?.id??C,Y=le.SELF(l.id),q=new Set([f,C,"community-registry",Y]),B=c.filter(n=>!q.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,K)=>{ae("store_registry_toggled",{connection_id:n,enabled:K});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:K}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const b=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==p?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),p.invalidateQueries({queryKey:ve.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=p,t[20]=E):E=t[20];const O=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:u(f),onToggle:n=>b(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(S=i.jsx(re,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=S):S=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(X,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(Re,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let G;t[45]!==b?(G=n=>b("self",n),t[45]=b,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:$,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==O||t[53]!==b||t[54]!==u||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:u(n.id),onToggle:K=>b(n.id,K),onDelete:()=>O(n.id)},n.id),t[52]=O,t[53]=b,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=B.map(ee);let W;t[57]!==Q||t[58]!==oe?(W=i.jsxs(ie,{children:[Q,oe]}),t[57]=Q,t[58]=oe,t[59]=W):W=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==W?(m=i.jsxs(re,{title:L,actions:P,children:[T,W]}),t[60]=L,t[61]=P,t[62]=T,t[63]=W,t[64]=m):m=t[64],_=re,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],x=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:u(U),onToggle:n=>b(U,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=p,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=x,t[9]=_,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],_=t[9],j=t[10],d=t[11],S=t[12],m=t[13];let v;t[67]!==x||t[68]!==j?(v=i.jsx(x,{children:j}),t[67]=x,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==_||t[71]!==d||t[72]!==v?(g=i.jsx(_,{title:d,children:v}),t[70]=_,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==S||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[S,m,g]}),t[74]=S,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ke(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx(Me,{error:x??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(pe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let p;t[8]!==o?(p=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Body,{children:i.jsxs(ue,{children:[o,r]})})})})}),t[8]=o,t[9]=p):p=t[9];let a;return t[10]!==l||t[11]!==p?(a=i.jsx(xe,{fallback:l,children:p}),t[10]=l,t[11]=p,t[12]=a):a=t[12],a}function at(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ke,{})}),t[0]=e):e=t[0],e}export{at as default};
1
+ import{c as J,b as Z,j as i,P as te,r as V,ds as ue,b4 as pe,E as xe,G as Se,n as he,dr as H,B as X,d as ye,f as je,o as ae,K as ve,dq as ie,dp as re,e as Ce,t as ge}from"./index-DdTzYiuN.js";import{i as be}from"./AlertCircle-CcAlDHxT.js";import{i as _e}from"./ChevronRight-BLiW1RUx.js";import{s as Re}from"./Plus-LT3el5FU.js";import{s as ke}from"./Trash01-BZiK__nW.js";import{I as ne}from"./input-BuBQraFS.js";import{S as de}from"./switch-DIfWoi0D.js";import{A as me}from"./avatar-DWL78bAC.js";import{P as Ne,a as Pe,b as Te}from"./popover-CXXSzr6f.js";import{b as fe}from"./use-connection-BgWJMAdh.js";import{W as le}from"./constants-DNw8DKoD.js";import{u as we}from"./use-registry-connections-DL7zjMIX.js";import{h as Ae,k as ze}from"./use-organization-settings-Dpmuc2UP.js";import{R as Ee}from"./require-capability-B4GofvZa.js";import"./User01-CPl0zwqG.js";import"./use-mcp-client-Cn4vec5I.js";import"./auth-DK_CtSyx.js";import"./schema-AQrGvUyQ.js";import"./task-board-B3ijxtiS.js";import"./access-gate-mndX2Tef.js";import"./capability-load-error-SOiMQgxC.js";function Me(t){const e=J.c(6),{error:l}=t,c=Z();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx(be,{size:16}),e[0]=s):s=e[0];let o;e[1]!==c?(o=c("settings.orgStore.failedLoadStoreSettings"),e[1]=c,e[2]=o):o=e[2];let r;return e[3]!==l.message||e[4]!==o?(r=i.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[s,i.jsxs("span",{className:"text-sm font-medium",children:[o," ",l.message]})]}),e[3]=l.message,e[4]=o,e[5]=r):r=e[5],r}function $e(t){const e=J.c(74),{onCancel:l,onSuccess:c}=t,s=Z(),o=fe(),[r,p]=V.useState(""),[a,A]=V.useState(""),[x,_]=V.useState("");let j;e[0]!==o||e[1]!==r||e[2]!==s||e[3]!==x||e[4]!==a?(j=async()=>(await o.create.mutateAsync({title:r||s("settings.orgStore.privateRegistry"),description:s("settings.orgStore.privateMcpRegistry"),connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=o,e[1]=r,e[2]=s,e[3]=x,e[4]=a,e[5]=j):j=e[5];let d;e[6]!==c||e[7]!==s?(d=y=>{ae("store_private_registry_added",{connection_id:y}),ge.success(s("settings.orgStore.privateRegistryAdded")),c(y)},e[6]=c,e[7]=s,e[8]=d):d=e[8];let S;e[9]!==s?(S=y=>{ge.error(s("settings.orgStore.failedAddRegistry",{error:y.message}))},e[9]=s,e[10]=S):S=e[10];let m;e[11]!==j||e[12]!==d||e[13]!==S?(m={mutationFn:j,onSuccess:d,onError:S},e[11]=j,e[12]=d,e[13]=S,e[14]=m):m=e[14];const{mutate:v,isPending:g}=Ce(m);let h;e[15]!==s?(h=s("settings.orgStore.nameLabel"),e[15]=s,e[16]=h):h=e[16];let f;e[17]!==s?(f=s("settings.orgStore.namePlaceholder"),e[17]=s,e[18]=f):f=e[18];let u;e[19]===Symbol.for("react.memo_cache_sentinel")?(u=y=>p(y.target.value),e[19]=u):u=e[19];let C;e[20]!==r||e[21]!==f?(C=i.jsx(ne,{placeholder:f,value:r,onChange:u,className:"w-[280px]"}),e[20]=r,e[21]=f,e[22]=C):C=e[22];let R;e[23]!==h||e[24]!==C?(R=i.jsx(H,{title:h,action:C}),e[23]=h,e[24]=C,e[25]=R):R=e[25];let F;e[26]!==s?(F=s("settings.orgStore.registryUrlLabel"),e[26]=s,e[27]=F):F=e[27];let U;e[28]!==s?(U=s("settings.orgStore.registryUrlPlaceholder"),e[28]=s,e[29]=U):U=e[29];let Y;e[30]===Symbol.for("react.memo_cache_sentinel")?(Y=y=>A(y.target.value),e[30]=Y):Y=e[30];let q;e[31]!==U||e[32]!==a?(q=i.jsx(ne,{placeholder:U,value:a,onChange:Y,className:"w-[280px]"}),e[31]=U,e[32]=a,e[33]=q):q=e[33];let B;e[34]!==F||e[35]!==q?(B=i.jsx(H,{title:F,action:q}),e[34]=F,e[35]=q,e[36]=B):B=e[36];let z;e[37]!==s?(z=s("settings.orgStore.authTokenLabel"),e[37]=s,e[38]=z):z=e[38];let b;e[39]!==s?(b=s("settings.orgStore.optional"),e[39]=s,e[40]=b):b=e[40];let E;e[41]!==s?(E=s("settings.orgStore.authTokenPlaceholder"),e[41]=s,e[42]=E):E=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=y=>_(y.target.value),e[43]=O):O=e[43];let M;e[44]!==E||e[45]!==x?(M=i.jsx(ne,{type:"password",placeholder:E,value:x,onChange:O,className:"w-[280px]"}),e[44]=E,e[45]=x,e[46]=M):M=e[46];let I;e[47]!==z||e[48]!==b||e[49]!==M?(I=i.jsx(H,{title:z,description:b,action:M}),e[47]=z,e[48]=b,e[49]=M,e[50]=I):I=e[50];let k;e[51]!==s?(k=s("settings.orgStore.cancel"),e[51]=s,e[52]=k):k=e[52];let D;e[53]!==g||e[54]!==l||e[55]!==k?(D=i.jsx(X,{variant:"ghost",size:"sm",onClick:l,disabled:g,children:k}),e[53]=g,e[54]=l,e[55]=k,e[56]=D):D=e[56];let N;e[57]!==v?(N=()=>v(),e[57]=v,e[58]=N):N=e[58];const L=!a||g;let P;e[59]!==g||e[60]!==s?(P=s(g?"settings.orgStore.adding":"settings.orgStore.addRegistry"),e[59]=g,e[60]=s,e[61]=P):P=e[61];let T;e[62]!==N||e[63]!==L||e[64]!==P?(T=i.jsx(X,{size:"sm",onClick:N,disabled:L,children:P}),e[62]=N,e[63]=L,e[64]=P,e[65]=T):T=e[65];let w;e[66]!==D||e[67]!==T?(w=i.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[D,T]}),e[66]=D,e[67]=T,e[68]=w):w=e[68];let $;return e[69]!==B||e[70]!==I||e[71]!==w||e[72]!==R?($=i.jsxs(ie,{children:[R,B,I,w]}),e[69]=B,e[70]=I,e[71]=w,e[72]=R,e[73]=$):$=e[73],$}function se(t){const e=J.c(30),{name:l,description:c,icon:s,enabled:o,onToggle:r,onDelete:p,href:a}=t,A=Z(),x=ye();let _;e[0]===Symbol.for("react.memo_cache_sentinel")?(_={from:"/shell/$org"},e[0]=_):_=e[0];const{org:j}=je(_);let d;e[1]!==o||e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==j?(d=()=>{a?x({to:a,params:{org:j}}):r(!o)},e[1]=o,e[2]=a,e[3]=x,e[4]=r,e[5]=j,e[6]=d):d=e[6];const S=d;let m;e[7]!==s||e[8]!==l?(m=s?i.jsx("img",{src:s,alt:l,className:"size-8 rounded-md object-contain"}):i.jsx(me,{fallback:l.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=s,e[8]=l,e[9]=m):m=e[9];let v;e[10]!==p||e[11]!==A?(v=p&&i.jsxs(Ne,{children:[i.jsx(Pe,{asChild:!0,children:i.jsx(X,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Ie,children:i.jsx(ke,{size:14})})}),i.jsx(Te,{className:"w-auto p-2",align:"end",children:i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx("p",{className:"text-xs font-medium",children:A("settings.orgStore.removeRegistry")}),i.jsx(X,{variant:"destructive",size:"xs",onClick:R=>{R.stopPropagation(),p()},children:A("settings.orgStore.remove")})]})})]}),e[10]=p,e[11]=A,e[12]=v):v=e[12];let g;e[13]!==r?(g=R=>r(R),e[13]=r,e[14]=g):g=e[14];let h;e[15]!==o||e[16]!==g?(h=i.jsx(de,{checked:o,onClick:Fe,onCheckedChange:g}),e[15]=o,e[16]=g,e[17]=h):h=e[17];let f;e[18]!==a?(f=a&&i.jsx(_e,{size:14,className:"text-muted-foreground"}),e[18]=a,e[19]=f):f=e[19];let u;e[20]!==v||e[21]!==h||e[22]!==f?(u=i.jsxs("div",{className:"flex items-center gap-2",children:[v,h,f]}),e[20]=v,e[21]=h,e[22]=f,e[23]=u):u=e[23];let C;return e[24]!==c||e[25]!==S||e[26]!==l||e[27]!==m||e[28]!==u?(C=i.jsx(H,{title:l,description:c,onClick:S,icon:m,action:u}),e[24]=c,e[25]=S,e[26]=l,e[27]=m,e[28]=u,e[29]=C):C=e[29],C}function Fe(t){return t.stopPropagation()}function Ie(t){return t.stopPropagation()}function De(){const t=J.c(78),e=Z(),{org:l}=Se(),c=we(),s=fe(),o=Ae(),{mutateAsync:r}=ze(),p=he(),[a,A]=V.useState(!1);let x,_,j,d,S,m;if(t[0]!==s||t[1]!==l.id||t[2]!==p||t[3]!==o||t[4]!==c||t[5]!==a||t[6]!==e||t[7]!==r){const f=le.REGISTRY(l.id),u=n=>{if(!o)return n===f;const K=o.registries[n];return K?K.enabled:n===f},C=le.COMMUNITY_REGISTRY(l.id),R=c.find(n=>n.id===f),F=c.find(n=>n.id===C||n.id==="community-registry"),U=F?.id??C,Y=le.SELF(l.id),q=new Set([f,C,"community-registry",Y]),B=c.filter(n=>!q.has(n.id));let z;t[14]!==o||t[15]!==r?(z=async(n,K)=>{ae("store_registry_toggled",{connection_id:n,enabled:K});const ce=o??{registries:{},blockedMcps:[]};await r({...ce,registries:{...ce.registries,[n]:{enabled:K}}})},t[14]=o,t[15]=r,t[16]=z):z=t[16];const b=z;let E;t[17]!==s||t[18]!==l.id||t[19]!==p?(E=async n=>{ae("store_private_registry_removed",{connection_id:n}),await s.delete.mutateAsync(n),p.invalidateQueries({queryKey:ve.organizationSettings(l.id)})},t[17]=s,t[18]=l.id,t[19]=p,t[20]=E):E=t[20];const O=E;let M;t[21]!==o||t[22]!==r?(M=async n=>{A(!1);const K=o??{registries:{},blockedMcps:[]};await r({...K,registries:{...K.registries,[n]:{enabled:!0}}})},t[21]=o,t[22]=r,t[23]=M):M=t[23];const I=M;let k;t[24]!==e?(k=e("settings.orgStore.decoStoreSection"),t[24]=e,t[25]=k):k=t[25];const D=R?i.jsx(se,{name:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.decoStoreDescription"),icon:R.icon,enabled:u(f),onToggle:n=>b(f,n)}):i.jsx(H,{title:e("settings.orgStore.decoStoreName"),description:e("settings.orgStore.connectionNotFound")});let N;t[26]!==D?(N=i.jsx(ie,{children:D}),t[26]=D,t[27]=N):N=t[27],t[28]!==k||t[29]!==N?(S=i.jsx(re,{title:k,children:N}),t[28]=k,t[29]=N,t[30]=S):S=t[30];let L;t[31]!==e?(L=e("settings.orgStore.privateRegistriesSection"),t[31]=e,t[32]=L):L=t[32];let P;t[33]!==a||t[34]!==e?(P=a?void 0:i.jsxs(X,{variant:"outline",size:"sm",onClick:()=>A(!0),children:[i.jsx(Re,{size:14}),e("settings.orgStore.addRegistry")]}),t[33]=a,t[34]=e,t[35]=P):P=t[35];let T;t[36]!==I||t[37]!==a?(T=a&&i.jsx($e,{onCancel:()=>A(!1),onSuccess:I}),t[36]=I,t[37]=a,t[38]=T):T=t[38];let w;t[39]!==e?(w=e("settings.orgStore.privateRegistry"),t[39]=e,t[40]=w):w=t[40];let $;t[41]!==e?($=e("settings.orgStore.privateRegistryDescription"),t[41]=e,t[42]=$):$=t[42];let y;t[43]!==u?(y=u("self"),t[43]=u,t[44]=y):y=t[44];let G;t[45]!==b?(G=n=>b("self",n),t[45]=b,t[46]=G):G=t[46];let Q;t[47]!==w||t[48]!==$||t[49]!==y||t[50]!==G?(Q=i.jsx(se,{name:w,description:$,enabled:y,onToggle:G,href:"/$org/settings/store/registry"}),t[47]=w,t[48]=$,t[49]=y,t[50]=G,t[51]=Q):Q=t[51];let ee;t[52]!==O||t[53]!==b||t[54]!==u||t[55]!==e?(ee=n=>i.jsx(se,{name:n.title,description:n.description??e("settings.orgStore.privateMcpRegistry"),icon:n.icon,enabled:u(n.id),onToggle:K=>b(n.id,K),onDelete:()=>O(n.id)},n.id),t[52]=O,t[53]=b,t[54]=u,t[55]=e,t[56]=ee):ee=t[56];const oe=B.map(ee);let W;t[57]!==Q||t[58]!==oe?(W=i.jsxs(ie,{children:[Q,oe]}),t[57]=Q,t[58]=oe,t[59]=W):W=t[59],t[60]!==L||t[61]!==P||t[62]!==T||t[63]!==W?(m=i.jsxs(re,{title:L,actions:P,children:[T,W]}),t[60]=L,t[61]=P,t[62]=T,t[63]=W,t[64]=m):m=t[64],_=re,t[65]!==e?(d=e("settings.orgStore.communitySection"),t[65]=e,t[66]=d):d=t[66],x=ie,j=F?i.jsx(se,{name:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryDescription"),icon:F.icon,enabled:u(U),onToggle:n=>b(U,n)}):i.jsx(H,{title:e("settings.orgStore.mcpRegistry"),description:e("settings.orgStore.communityRegistryNotAdded"),icon:i.jsx(me,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:i.jsx(de,{checked:!1,disabled:!0,onCheckedChange:Le})}),t[0]=s,t[1]=l.id,t[2]=p,t[3]=o,t[4]=c,t[5]=a,t[6]=e,t[7]=r,t[8]=x,t[9]=_,t[10]=j,t[11]=d,t[12]=S,t[13]=m}else x=t[8],_=t[9],j=t[10],d=t[11],S=t[12],m=t[13];let v;t[67]!==x||t[68]!==j?(v=i.jsx(x,{children:j}),t[67]=x,t[68]=j,t[69]=v):v=t[69];let g;t[70]!==_||t[71]!==d||t[72]!==v?(g=i.jsx(_,{title:d,children:v}),t[70]=_,t[71]=d,t[72]=v,t[73]=g):g=t[73];let h;return t[74]!==S||t[75]!==m||t[76]!==g?(h=i.jsxs(i.Fragment,{children:[S,m,g]}),t[74]=S,t[75]=m,t[76]=g,t[77]=h):h=t[77],h}function Le(){}function Ke(){const t=J.c(13),e=Z();let l;t[0]!==e?(l=A=>{const{error:x}=A;return i.jsx(Me,{error:x??new Error(e("settings.orgStore.failedLoadStoreSettings"))})},t[0]=e,t[1]=l):l=t[1];let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(pe,{className:"h-64 w-full"}),t[2]=c):c=t[2];let s;t[3]!==e?(s=e("settings.orgStore.pageTitle"),t[3]=e,t[4]=s):s=t[4];let o;t[5]!==s?(o=i.jsx(te.Title,{children:s}),t[5]=s,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(De,{}),t[7]=r):r=t[7];let p;t[8]!==o?(p=i.jsx(V.Suspense,{fallback:c,children:i.jsx(te,{children:i.jsx(te.Content,{children:i.jsx(te.Body,{children:i.jsxs(ue,{children:[o,r]})})})})}),t[8]=o,t[9]=p):p=t[9];let a;return t[10]!==l||t[11]!==p?(a=i.jsx(xe,{fallback:l,children:p}),t[10]=l,t[11]=p,t[12]=a):a=t[12],a}function at(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(Ee,{capability:"registry:manage",area:"the store",children:i.jsx(Ke,{})}),t[0]=e):e=t[0],e}export{at as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-8lwrRsZL.js","assets/index-DdTzYiuN.js","assets/index-Bj1-n2mq.css","assets/Tool02-De1rnyMG.js","assets/CheckCircle-1Wy1Kyko.js","assets/Settings02-GjXtNhFT.js","assets/use-mcp-client-Cn4vec5I.js","assets/constants-DNw8DKoD.js","assets/auth-DK_CtSyx.js","assets/useInfiniteQuery-Cb2mhnE0.js","assets/use-infinite-scroll-CXVkqkiB.js","assets/badge-rP2HXHvQ.js","assets/input-BuBQraFS.js","assets/dropdown-menu-B8sYwH8j.js","assets/Check-BOh2qtCs.js","assets/ChevronRight-BLiW1RUx.js","assets/DotsVertical-CkK-4N7h.js","assets/table-BszXVDRV.js","assets/toggle-group-CZM_Vgkq.js","assets/use-view-mode-C1sMKwtE.js","assets/Globe01-B-qpuGwi.js","assets/SearchMd-DV8_dnjD.js","assets/dialog-DoQpUhQk.js","assets/AlertCircle-CcAlDHxT.js","assets/Download01-DQWtoLHA.js","assets/Upload01-BSDuLalV.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-BLvR_jy7.js","assets/Trash01-BZiK__nW.js","assets/label-B_3RnZBS.js","assets/select-DftR8cpe.js","assets/ChevronUp-CwfcWs9O.js","assets/switch-DIfWoi0D.js","assets/textarea-CDAAH2II.js","assets/ArrowLeft-CBRib5oZ.js","assets/XCircle-LVNBdwoC.js","assets/Link01-DuYyfGVc.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-DOZpGl_s.js","assets/Eye-B6lj7d-i.js","assets/LinkExternal01-RTDYS3O8.js","assets/use-copy-C-vkg8F8.js","assets/Copy01--ax_nnhW.js","assets/Key01-DQvcLjdj.js","assets/Plus-LT3el5FU.js","assets/mcp-oauth-Bm8kpZGX.js","assets/Play-BGaUSzkB.js"])))=>i.map(i=>d[i]);
2
+ import{c as n,d as c,f as m,j as t,h as f,r as l,bl as p}from"./index-DdTzYiuN.js";import{R as u}from"./require-capability-B4GofvZa.js";import"./access-gate-mndX2Tef.js";import"./capability-load-error-SOiMQgxC.js";const g=l.lazy(()=>p(()=>import("./registry-layout-8lwrRsZL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
@@ -1 +1 @@
1
- import{r as c,j as i,bm as C,bq as y,bp as T,bs as I,cC as M,cB as H,bo as q,c as z,l as g}from"./index-Ceii15GN.js";var m="Switch",[A]=q(m),[U,L]=A(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=a,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(U,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(a){return a?"checked":"unchecked"}var $=E,D=R;function W(a){const e=z.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==s?(o=i.jsx($,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{W as S};
1
+ import{r as c,j as i,bm as C,bq as y,bp as T,bs as I,cC as M,cB as H,bo as q,c as z,l as g}from"./index-DdTzYiuN.js";var m="Switch",[A]=q(m),[U,L]=A(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=a,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(U,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(a){return a?"checked":"unchecked"}var $=E,D=R;function W(a){const e=z.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==s?(o=i.jsx($,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{W as S};
@@ -0,0 +1 @@
1
+ import{c as te,j as s,dt as ye,b as ue,r as ce,B as ee,l as je,t as ae,b4 as be}from"./index-DdTzYiuN.js";import{s as ge}from"./Plus-LT3el5FU.js";import{c as Re,d as ve,b as Se,f as De,g as Ne,e as _e,a as Ce,A as Pe}from"./alert-dialog-BLvR_jy7.js";import{d as Ae,h as ke,c as we,e as Oe,b as ze,D as Ee}from"./dialog-DoQpUhQk.js";import{I as Ie}from"./input-BuBQraFS.js";import{G as xe}from"./github-icon-DXKadg2Q.js";import{G as $e}from"./github-repo-picker-BqTN8DnU.js";import{a as Fe,d as Te,h as Ge,t as He}from"./cards-jT2ChCI_.js";import{R as Be}from"./require-capability-B4GofvZa.js";import"./collection-search-WDRBv6DM.js";import"./SearchMd-DV8_dnjD.js";import"./use-debounced-value-kyYvhlyP.js";import"./use-connection-BgWJMAdh.js";import"./use-mcp-client-Cn4vec5I.js";import"./constants-DNw8DKoD.js";import"./auth-DK_CtSyx.js";import"./authenticate-and-persist-oauth-DYCbKIM-.js";import"./mcp-oauth-Bm8kpZGX.js";import"./ArrowLeft-CBRib5oZ.js";import"./LinkExternal01-RTDYS3O8.js";import"./Share07-DSuiNWdu.js";import"./use-navigate-to-agent-CROW96Zk.js";import"./use-destination-route-DlaAN8OO.js";import"./use-virtual-mcp-AWphiY2p.js";import"./hooks-DTjfuLcJ.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-ClPdQqCu.js";import"./task-board-B3ijxtiS.js";import"./schema-AQrGvUyQ.js";import"./thread-intent-XAFlLESo.js";import"./slugify-CEUa2lfQ.js";import"./github-repo-COLY3wWI.js";import"./extract-connection-data-CZtHDBYk.js";import"./metadata-dUsYcpuu.js";import"./connection-DYL8-kZO.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./folder-icon-DooLs5a3.js";import"./Eye-B6lj7d-i.js";import"./DotsVertical-CkK-4N7h.js";import"./Download01-DQWtoLHA.js";import"./Globe01-B-qpuGwi.js";import"./Key01-DQvcLjdj.js";import"./Palette-Duueyldw.js";import"./Trash01-BZiK__nW.js";import"./Zap-C6bIZXXW.js";import"./dropdown-menu-B8sYwH8j.js";import"./Check-BOh2qtCs.js";import"./ChevronRight-BLiW1RUx.js";import"./file-type-icon-B3j8PQKI.js";import"./access-gate-mndX2Tef.js";import"./capability-load-error-SOiMQgxC.js";function qe(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Le(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:He(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ve(e){const t=te.c(32),{config:l,onRemove:i}=e,c=ue();let u;t[0]!==l||t[1]!==c?(u=Le(l,c),t[0]=l,t[1]=c,t[2]=u):u=t[2];const p=u;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(xe,{size:16,className:"text-muted-foreground"})}),t[3]=o):o=t[3];let a;t[4]!==l.repoName||t[5]!==l.repoOwner?(a=s.jsxs("span",{className:"font-medium text-sm truncate",children:[l.repoOwner,"/",l.repoName]}),t[4]=l.repoName,t[5]=l.repoOwner,t[6]=a):a=t[6];let n;t[7]!==l.ref?(n=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[7]=l.ref,t[8]=n):n=t[8];let g;t[9]!==a||t[10]!==n?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[a,n]}),t[9]=a,t[10]=n,t[11]=g):g=t[11];const m=p.error?"text-destructive":"text-muted-foreground";let d;t[12]!==m?(d=je("text-xs mt-0.5 truncate",m),t[12]=m,t[13]=d):d=t[13];let f;t[14]!==l.volume||t[15]!==c?(f=c("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[14]=l.volume,t[15]=c,t[16]=f):f=t[16];let y;t[17]!==p.label||t[18]!==d||t[19]!==f?(y=s.jsxs("p",{className:d,children:[f," ·"," ",p.label]}),t[17]=p.label,t[18]=d,t[19]=f,t[20]=y):y=t[20];let x;t[21]!==g||t[22]!==y?(x=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[o,s.jsxs("div",{className:"min-w-0",children:[g,y]})]}),t[21]=g,t[22]=y,t[23]=x):x=t[23];let j;t[24]!==c?(j=c("settings.syncedRepos.remove"),t[24]=c,t[25]=j):j=t[25];let h;t[26]!==i||t[27]!==j?(h=s.jsx(ee,{variant:"outline",size:"sm",onClick:i,children:j}),t[26]=i,t[27]=j,t[28]=h):h=t[28];let b;return t[29]!==x||t[30]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[x,h]}),t[29]=x,t[30]=h,t[31]=b):b=t[31],b}function Je(e){const t=te.c(21),{onAdd:l}=e,i=ue();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(xe,{size:20,className:"text-muted-foreground"})}),t[0]=c):c=t[0];let u;t[1]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=u):u=t[2];let p;t[3]!==u?(p=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=p):p=t[4];let o;t[5]!==i?(o=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=o):o=t[6];let a;t[7]!==o?(a=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:o}),t[7]=o,t[8]=a):a=t[8];let n;t[9]!==p||t[10]!==a?(n=s.jsxs("div",{children:[p,a]}),t[9]=p,t[10]=a,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(ge,{size:14}),t[12]=g):g=t[12];let m;t[13]!==i?(m=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=m):m=t[14];let d;t[15]!==l||t[16]!==m?(d=s.jsxs(ee,{onClick:l,size:"sm",className:"mt-2",children:[g,m]}),t[15]=l,t[16]=m,t[17]=d):d=t[17];let f;return t[18]!==n||t[19]!==d?(f=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,n,d]}),t[18]=n,t[19]=d,t[20]=f):f=t[20],f}function Ke(){const e=te.c(107),t=ue(),l=Fe(),i=Te(),c=Ge(),[u,p]=ce.useState(!1),[o,a]=ce.useState(null),[n,g]=ce.useState(""),[m,d]=ce.useState(null);let f;e[0]!==i||e[1]!==o||e[2]!==t||e[3]!==n?(f=function(){!o||!n.trim()||i.mutate({connectionId:o.connectionId,volume:n.trim()},{onSuccess:R=>{a(null),ae.success(t("settings.syncedRepos.created",{volume:R.volume}))},onError:R=>{ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=o,e[2]=t,e[3]=n,e[4]=f):f=e[4];const y=f;let x;e[5]!==m||e[6]!==c||e[7]!==t?(x=function(){m&&c.mutate(m.id,{onSuccess:()=>ae.success(t("settings.syncedRepos.removed")),onError:R=>ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=m,e[6]=c,e[7]=t,e[8]=x):x=e[8];const j=x;if(l.isPending){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(be,{className:"h-32 w-full"}),e[9]=r):r=e[9],r}let h;e[10]!==l.data?(h=l.data??[],e[10]=l.data,e[11]=h):h=e[11];const b=h;let v;e[12]!==t?(v=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=v):v=e[13];let S;e[14]!==v?(S=s.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[14]=v,e[15]=S):S=e[15];let D;e[16]!==b||e[17]!==t?(D=b.length===0?s.jsx(Je,{onAdd:()=>p(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(ee,{onClick:()=>p(!0),size:"sm",children:[s.jsx(ge,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:b.map(r=>s.jsx(Ve,{config:r,onRemove:()=>d(r)},r.id))})]}),e[16]=b,e[17]=t,e[18]=D):D=e[18];let N;e[19]!==t?(N=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=N):N=e[20];let se;e[21]===Symbol.for("react.memo_cache_sentinel")?(se=r=>{p(!1),a(r),g(qe(r.repo.name))},e[21]=se):se=e[21];let _;e[22]!==u||e[23]!==N?(_=s.jsx($e,{mode:"connection",open:u,onOpenChange:p,title:N,onImportComplete:se}),e[22]=u,e[23]=N,e[24]=_):_=e[24];const me=o!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=r=>{r||a(null)},e[25]=ie):ie=e[25];let C;e[26]!==t?(C=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=C):C=e[27];let P;e[28]!==C?(P=s.jsx(Ae,{children:C}),e[28]=C,e[29]=P):P=e[29];const de=o?`${o.repo.owner}/${o.repo.name}`:"";let A;e[30]!==t||e[31]!==de?(A=t("settings.syncedRepos.nameDialogDescription",{repo:de}),e[30]=t,e[31]=de,e[32]=A):A=e[32];let k;e[33]!==A?(k=s.jsx(ke,{children:A}),e[33]=A,e[34]=k):k=e[34];let w;e[35]!==P||e[36]!==k?(w=s.jsxs(we,{children:[P,k]}),e[35]=P,e[36]=k,e[37]=w):w=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=r=>g(r.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let z;e[41]!==O||e[42]!==n?(z=s.jsx(Ie,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=z):z=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>a(null),e[44]=ne):ne=e[44];const he=i.isPending;let E;e[45]!==t?(E=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=E):E=e[46];let I;e[47]!==i.isPending||e[48]!==E?(I=s.jsx(ee,{variant:"outline",onClick:ne,disabled:he,children:E}),e[47]=i.isPending,e[48]=E,e[49]=I):I=e[49];let $;e[50]!==i.isPending||e[51]!==n?($=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=$):$=e[52];let F;e[53]!==i.isPending||e[54]!==t?(F=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=F):F=e[55];let T;e[56]!==y||e[57]!==$||e[58]!==F?(T=s.jsx(ee,{disabled:$,onClick:y,children:F}),e[56]=y,e[57]=$,e[58]=F,e[59]=T):T=e[59];let G;e[60]!==I||e[61]!==T?(G=s.jsxs(Oe,{children:[I,T]}),e[60]=I,e[61]=T,e[62]=G):G=e[62];let H;e[63]!==w||e[64]!==z||e[65]!==G?(H=s.jsxs(ze,{className:"sm:max-w-sm",children:[w,z,G]}),e[63]=w,e[64]=z,e[65]=G,e[66]=H):H=e[66];let B;e[67]!==H||e[68]!==me?(B=s.jsx(Ee,{open:me,onOpenChange:ie,children:H}),e[67]=H,e[68]=me,e[69]=B):B=e[69];const pe=m!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=r=>{r||d(null)},e[70]=oe):oe=e[70];const fe=m?.volume??"";let q;e[71]!==t||e[72]!==fe?(q=t("settings.syncedRepos.removeTitle",{volume:fe}),e[71]=t,e[72]=fe,e[73]=q):q=e[73];let L;e[74]!==q?(L=s.jsx(Re,{children:q}),e[74]=q,e[75]=L):L=e[75];let V;e[76]!==t?(V=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=V):V=e[77];let J;e[78]!==V?(J=s.jsx(ve,{children:V}),e[78]=V,e[79]=J):J=e[79];let K;e[80]!==L||e[81]!==J?(K=s.jsxs(Se,{children:[L,J]}),e[80]=L,e[81]=J,e[82]=K):K=e[82];let M;e[83]!==t?(M=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=M):M=e[84];let Q;e[85]!==M?(Q=s.jsx(De,{children:M}),e[85]=M,e[86]=Q):Q=e[86];let U;e[87]!==t?(U=t("settings.syncedRepos.remove"),e[87]=t,e[88]=U):U=e[88];let W;e[89]!==j||e[90]!==U?(W=s.jsx(Ne,{onClick:j,children:U}),e[89]=j,e[90]=U,e[91]=W):W=e[91];let X;e[92]!==Q||e[93]!==W?(X=s.jsxs(_e,{children:[Q,W]}),e[92]=Q,e[93]=W,e[94]=X):X=e[94];let Y;e[95]!==K||e[96]!==X?(Y=s.jsxs(Ce,{children:[K,X]}),e[95]=K,e[96]=X,e[97]=Y):Y=e[97];let Z;e[98]!==pe||e[99]!==Y?(Z=s.jsx(Pe,{open:pe,onOpenChange:oe,children:Y}),e[98]=pe,e[99]=Y,e[100]=Z):Z=e[100];let re;return e[101]!==B||e[102]!==S||e[103]!==Z||e[104]!==D||e[105]!==_?(re=s.jsxs(s.Fragment,{children:[S,D,_,B,Z]}),e[101]=B,e[102]=S,e[103]=Z,e[104]=D,e[105]=_,e[106]=re):re=e[106],re}function Me(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ye,{group:"storage",children:s.jsx(Ke,{})}),e[0]=t):t=e[0],t}function Kt(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Be,{capability:"file-configs:manage",area:"files",children:s.jsx(Me,{})}),e[0]=t):t=e[0],t}export{Kt as default};
@@ -1 +1 @@
1
- import{c,l as i,j as r}from"./index-Ceii15GN.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,p as a,b,d as c,m as d,f as e};
1
+ import{c,l as i,j as r}from"./index-DdTzYiuN.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,p as a,b,d as c,m as d,f as e};
@@ -1 +1 @@
1
- import{r as v,j as d,du as k,bm as p,bs as T,dv as y,bo as M,br as P,bp as S,bt as F,dw as V,cG as D,c as x,l as g}from"./index-Ceii15GN.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});C.displayName=m;var N="TabsList",j=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,O as a,Q as b,J as c};
1
+ import{r as v,j as d,du as k,bm as p,bs as T,dv as y,bo as M,br as P,bp as S,bt as F,dw as V,cG as D,c as x,l as g}from"./index-DdTzYiuN.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});C.displayName=m;var N="TabsList",j=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,O as a,Q as b,J as c};
@@ -1 +1 @@
1
- import{o as s}from"./schema-EMzeKiD8.js";const u="super-agent",i=["#9ca3af","#ef4444","#f97316","#f59e0b","#22c55e","#3b82f6","#a855f7","#ec4899"],c=i[0];function T(e){return i[e%i.length]??c}function l(e){return e.createdBy==="system"}const w="chore",A=["reviewer"],_={reviewer:"Reviewer"},d=["QA Agent","Code Reviewer"];function p(e){return e?.reviewer_enabled===void 0&&e?.qa_agent_enabled===!1&&e?.code_reviewer_enabled===!1?!1:s(e,"reviewer_enabled")}const R=["triage","todo","in_progress","in_review","approved","merged","post_deploy_validation","done","archived"],g=["approved","merged","post_deploy_validation"];function S(e,t){return e?[_[t],...d].some(r=>e.startsWith(`${r}:`)):!1}function E(e,t){if(t)return new Date(t).getTime();let r=0;for(const n of e)n.action==="status_changed"&&n.data?.to==="in_review"&&(r=Math.max(r,new Date(n.occurredAt).getTime()));return r}function v(e,t){const r=E(e,t.cycleStartedAt),n=new Map;for(const a of e){if(a.action!=="review_approved"&&a.action!=="review_changes_requested"||new Date(a.occurredAt).getTime()<r)continue;const o=a.data??{};if(o.reviewer==="reviewer")if(a.action==="review_approved"){if(t?.verifiedOnly&&o.verified!==!0)continue;n.set("reviewer","approved")}else n.set("reviewer","changes_requested")}return n}function D(e,t,r){if(t.length===0)return!1;const n=v(e,r);return t.every(a=>n.get(a)==="approved")}const L="task-board.item.updated",m="task-board.item.deleted",C=4e3;export{R as C,w as D,A as R,u as S,m as T,D as a,S as b,c,g as d,L as e,C as f,l as i,T as n,p as r};
1
+ import{o as s}from"./schema-AQrGvUyQ.js";const u="super-agent",i=["#9ca3af","#ef4444","#f97316","#f59e0b","#22c55e","#3b82f6","#a855f7","#ec4899"],c=i[0];function T(e){return i[e%i.length]??c}function l(e){return e.createdBy==="system"}const w="chore",A=["reviewer"],_={reviewer:"Reviewer"},d=["QA Agent","Code Reviewer"];function p(e){return e?.reviewer_enabled===void 0&&e?.qa_agent_enabled===!1&&e?.code_reviewer_enabled===!1?!1:s(e,"reviewer_enabled")}const R=["triage","todo","in_progress","in_review","approved","merged","post_deploy_validation","done","archived"],g=["approved","merged","post_deploy_validation"];function S(e,t){return e?[_[t],...d].some(r=>e.startsWith(`${r}:`)):!1}function E(e,t){if(t)return new Date(t).getTime();let r=0;for(const n of e)n.action==="status_changed"&&n.data?.to==="in_review"&&(r=Math.max(r,new Date(n.occurredAt).getTime()));return r}function v(e,t){const r=E(e,t.cycleStartedAt),n=new Map;for(const a of e){if(a.action!=="review_approved"&&a.action!=="review_changes_requested"||new Date(a.occurredAt).getTime()<r)continue;const o=a.data??{};if(o.reviewer==="reviewer")if(a.action==="review_approved"){if(t?.verifiedOnly&&o.verified!==!0)continue;n.set("reviewer","approved")}else n.set("reviewer","changes_requested")}return n}function D(e,t,r){if(t.length===0)return!1;const n=v(e,r);return t.every(a=>n.get(a)==="approved")}const L="task-board.item.updated",m="task-board.item.deleted",C=4e3;export{R as C,w as D,A as R,u as S,m as T,D as a,S as b,c,g as d,L as e,C as f,l as i,T as n,p as r};