decocms 4.574.9 → 4.575.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (408) hide show
  1. package/dist/client/assets/{AlertCircle-BrBujzmj.js → AlertCircle-B9jzXYca.js} +1 -1
  2. package/dist/client/assets/{AreaChart-Bs4ZyKEJ.js → AreaChart-iov00wo5.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-B2qsUhAF.js → ArrowLeft-CZ3DAg0q.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-Bq_XWrMf.js → ArrowUp-Besm0IZ2.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-BzQXSn72.js → CartesianChart-C3iUwk_u.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-B34tgPab.js → CategoricalChart-O0wXlREH.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-BrU3KNn_.js → CheckCircle-Bg_9Wlgi.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-C15U3mNk.js → ChevronSelectorVertical-UvFeI9z1.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-CxdkHAYX.js → ChevronUp-CM8EW0Js.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-gy5ViYmH.js → CreditCard01-Bhqkelsq.js} +1 -1
  11. package/dist/client/assets/{Globe04-Qb5La101.js → Globe04-DFEQkAAl.js} +1 -1
  12. package/dist/client/assets/{Key01-XBNKfFAD.js → Key01-BfEZ7hLZ.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-BNA4t2nT.js → LinkBroken01-BSh2E4ld.js} +1 -1
  14. package/dist/client/assets/{Minus-BQ1U44OY.js → Minus-Ctt_tNjY.js} +1 -1
  15. package/dist/client/assets/{Monitor01-CTMwaVR_.js → Monitor01-Cp5O9jEx.js} +1 -1
  16. package/dist/client/assets/{Play-oyq9OzZ5.js → Play-DqrEB0p_.js} +1 -1
  17. package/dist/client/assets/{Plus-B14W9n_P.js → Plus-BF39I64m.js} +1 -1
  18. package/dist/client/assets/{ReferenceLine-CBcoZK_U.js → ReferenceLine-y99E66AQ.js} +1 -1
  19. package/dist/client/assets/{SearchMd-DDYfB5ME.js → SearchMd-BCaWPluh.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-B4Qpz0kc.js → ShoppingBag01-WYt5uke3.js} +1 -1
  21. package/dist/client/assets/{Sun-SepDLWMM.js → Sun-Dniq03T7.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-B1owjF7D.js → SwitchHorizontal01-CStChVS2.js} +1 -1
  23. package/dist/client/assets/{Tool01-D4V2T_mI.js → Tool01-wiKWLRCc.js} +1 -1
  24. package/dist/client/assets/{Tooltip-BrxiV7qQ.js → Tooltip-BOp5DpDI.js} +1 -1
  25. package/dist/client/assets/{Trash01-CTl0J4n_.js → Trash01-DR_ZbB22.js} +1 -1
  26. package/dist/client/assets/{Upload01-CE3wDuuV.js → Upload01-BNm-Yhgs.js} +1 -1
  27. package/dist/client/assets/{UserSquare-D6mrj9zR.js → UserSquare-CoAnLSHH.js} +1 -1
  28. package/dist/client/assets/{Users01-vnVJQGsa.js → Users01-BKvz85-q.js} +1 -1
  29. package/dist/client/assets/{XClose-DWFAtfm6.js → XClose-BH2b2x6k.js} +1 -1
  30. package/dist/client/assets/{Zap-4X8Ik5ls.js → Zap-C46fglVd.js} +1 -1
  31. package/dist/client/assets/{access-gate-CmrYCcY4.js → access-gate-CJaU-ahh.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-C7VuLdpX.js → add-connection-dialog-Es48OMbQ.js} +1 -1
  33. package/dist/client/assets/agent-app-CgaBp78a.js +1 -0
  34. package/dist/client/assets/{agent-assets-CtfeFO-q.js → agent-assets-rGrpA13N.js} +1 -1
  35. package/dist/client/assets/{agent-automation-CBfmQGxD.js → agent-automation-BgcUa34j.js} +1 -1
  36. package/dist/client/assets/{agent-automations-C9pDoA5t.js → agent-automations-BgScBsF6.js} +1 -1
  37. package/dist/client/assets/{agent-calendar-Dpbs8ukc.js → agent-calendar-lX-y2EdU.js} +1 -1
  38. package/dist/client/assets/{agent-capabilities-CANCMZIX.js → agent-capabilities-BOswsmnU.js} +1 -1
  39. package/dist/client/assets/{agent-connect-sources-CUOKdCzE.js → agent-connect-sources-Bwre-hne.js} +1 -1
  40. package/dist/client/assets/agent-deck-C5kx-WNw.js +1 -0
  41. package/dist/client/assets/{agent-e2e-Do0w1Fmk.js → agent-e2e-DsGMzDFD.js} +1 -1
  42. package/dist/client/assets/agent-experiments-gaiUmFF7.js +1 -0
  43. package/dist/client/assets/{agent-file-BGZ-rpXM.js → agent-file-CXpwIQY7.js} +1 -1
  44. package/dist/client/assets/{agent-hosting-BcEptfro.js → agent-hosting-IG9OvJxO.js} +1 -1
  45. package/dist/client/assets/{agent-icon-C4zAUQeZ.js → agent-icon-B9ymJOYy.js} +1 -1
  46. package/dist/client/assets/agent-library-B-aIakkE.js +1 -0
  47. package/dist/client/assets/agent-library-file-DdeRXubH.js +1 -0
  48. package/dist/client/assets/agent-overview-Cd2TI_CO.js +1 -0
  49. package/dist/client/assets/{agent-releases-dth3gbg2.js → agent-releases-6VNqQXqs.js} +1 -1
  50. package/dist/client/assets/agent-settings-tnifGDI-.js +1 -0
  51. package/dist/client/assets/{agent-site-editor--0x03xZz.js → agent-site-editor-71l5SHI7.js} +1 -1
  52. package/dist/client/assets/agent-site-editor-code-ust0ErKY.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-DmOFTD5k.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-Cr4OmiKF.js +1 -0
  55. package/dist/client/assets/agent-view-BUyaEcso.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-DRTikUW7.js → agent-view-guard-p3JMpL2i.js} +1 -1
  57. package/dist/client/assets/{ai-providers-BIsnOJUw.js → ai-providers-CO7GyDpT.js} +1 -1
  58. package/dist/client/assets/{alert-ChcrHQqB.js → alert-CQeq0vZr.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-IEaJPRpN.js → analytics-sections-C-EwM79i.js} +1 -1
  60. package/dist/client/assets/{api-keys-DyiCkrNJ.js → api-keys-BQO3VvIl.js} +1 -1
  61. package/dist/client/assets/api-keys-DqZ1Dcsm.js +1 -0
  62. package/dist/client/assets/app-editor-PmWZjr_j.js +1 -0
  63. package/dist/client/assets/{asset-utils-BemSLLjv.js → asset-utils-DuLZkUyR.js} +1 -1
  64. package/dist/client/assets/{auth-DZBq7iRr.js → auth-DYk3j3P5.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-DrPulr77.js → auth-catchall-N-2cp0nv.js} +1 -1
  66. package/dist/client/assets/{auth-entry-7YktIufn.js → auth-entry-DcODwlvz.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-BIjGKhmF.js → auth-split-layout-DMz1KnE0.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-DArrCFGG.js → authenticate-and-persist-oauth-XzlChMFG.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-DjfCNmU2.js → automation-list-row-ldXN7Wg6.js} +1 -1
  70. package/dist/client/assets/{automation-runs-HL4m0VQL.js → automation-runs-Dmq-RKIH.js} +1 -1
  71. package/dist/client/assets/{automations-B1iMF-BH.js → automations-CDBea8A_.js} +1 -1
  72. package/dist/client/assets/{autosend-VANv9yLj.js → autosend-DPIl8Ow-.js} +1 -1
  73. package/dist/client/assets/{badge-DaX-o_aM.js → badge-sWV0Lz9X.js} +1 -1
  74. package/dist/client/assets/{block-document-Cx04oYbY.js → block-document-CX5LKakr.js} +3 -3
  75. package/dist/client/assets/{blocks-preview-workspace-context-DgF7HYHj.js → blocks-preview-workspace-context-C6uAIZcB.js} +1 -1
  76. package/dist/client/assets/{blocks-tab-states-C8jjKnoC.js → blocks-tab-states-CWrGlMnv.js} +1 -1
  77. package/dist/client/assets/{blog-schema-O25l7G8m.js → blog-schema-CAFArFfZ.js} +1 -1
  78. package/dist/client/assets/{buckets-Bb4wZzzE.js → buckets-CHiB8kSO.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-BQ6BtFA5.js → build-improve-prompt-doc-DWCL4Usp.js} +1 -1
  80. package/dist/client/assets/{calendar-CI3L7G9u.js → calendar-Doh9vx1Y.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-De4jloBS.js → capability-load-error-DAHIgRW0.js} +1 -1
  82. package/dist/client/assets/category-editor-DmF8nidy.js +1 -0
  83. package/dist/client/assets/{chart-DFYkssKS.js → chart-CTBX1xJ8.js} +1 -1
  84. package/dist/client/assets/{chat-context-BFrEkp-x.js → chat-context-CMznzxL2.js} +2 -2
  85. package/dist/client/assets/{chat-draft-WVue6bVm.js → chat-draft-8vQyW9tQ.js} +1 -1
  86. package/dist/client/assets/{checkbox-C9g8LYdj.js → checkbox-BR7eeNRm.js} +1 -1
  87. package/dist/client/assets/{choose-editor-K8PxtGC5.js → choose-editor-DsoM6Awe.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-7WGG5Ny7.js → cli-auth-success-Dc-_DzP0.js} +1 -1
  89. package/dist/client/assets/{client-icons-Dg3AySOi.js → client-icons-DkHG_2rG.js} +1 -1
  90. package/dist/client/assets/cms-settings-editor-CZhxfLk6.js +1 -0
  91. package/dist/client/assets/{cms-store-drafts-B7OZSklj.js → cms-store-drafts-DAUHqZGa.js} +1 -1
  92. package/dist/client/assets/{collapsible-CouDnhO6.js → collapsible-BzRZ6mh6.js} +1 -1
  93. package/dist/client/assets/{collection-detail-UPbZXX41.js → collection-detail-of5InSbt.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-D8katl6X.js → collection-display-button-DzdTSCUS.js} +1 -1
  95. package/dist/client/assets/{collection-search-OjmLQPGA.js → collection-search-CnHLg8Vx.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-BC08hxFi.js → collection-table-wrapper-BmuSLoPK.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-CwlrIKLz.js → collection-tabs-7Ya9gAB2.js} +1 -1
  98. package/dist/client/assets/{combobox-Fnhph1yB.js → combobox-B41se5lV.js} +1 -1
  99. package/dist/client/assets/{command-DZp1V8X-.js → command-CG66jyhm.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-1gPvogQd.js → companion-mcps-section-mNALQnmz.js} +1 -1
  101. package/dist/client/assets/{config-C4Gsnqii.js → config-Bebmx21W.js} +1 -1
  102. package/dist/client/assets/{connect-DiSxRkvs.js → connect-BOxbOowz.js} +3 -3
  103. package/dist/client/assets/{connect-layout-DQX9wvNz.js → connect-layout-CRU0oD9B.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-ZMMXP6WV.js → connect-source-dialog-Do1Ol7Lc.js} +1 -1
  105. package/dist/client/assets/{connection-B5iqnjJS.js → connection-CyPXBq-_.js} +1 -1
  106. package/dist/client/assets/{connection-card-dWBeLnkC.js → connection-card-DxMw_ATi.js} +1 -1
  107. package/dist/client/assets/{connection-detail-vQx4JY7p.js → connection-detail-BQWnbjuT.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-C-PfuEYz.js → connection-form-helpers-C2XDuc-v.js} +1 -1
  109. package/dist/client/assets/{connection-slug-BPPZqv13.js → connection-slug-s2iYHyhO.js} +1 -1
  110. package/dist/client/assets/{connections-BNB5dOFV.js → connections-pYRqnGDq.js} +1 -1
  111. package/dist/client/assets/content-tab-DVwMjYF_.js +25 -0
  112. package/dist/client/assets/context-CRiBUcdZ.js +1 -0
  113. package/dist/client/assets/{context-menu-DqHkPsZX.js → context-menu-DUt7Fb0Z.js} +1 -1
  114. package/dist/client/assets/{context-shell-DkPH0WI3.js → context-shell-o6BvAn5f.js} +3 -3
  115. package/dist/client/assets/{core.esm-CEehG5ej.js → core.esm-Cdwuvp6V.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-C-eZv_C7.js → create-organization-dialog-CRr0zMDH.js} +1 -1
  117. package/dist/client/assets/{device-hint-juJpe-S9.js → device-hint-CzI0Cxwe.js} +1 -1
  118. package/dist/client/assets/{discover-COI3hr0O.js → discover-DV2xyl-v.js} +1 -1
  119. package/dist/client/assets/{domain-settings-BBV7EcxE.js → domain-settings-BpStC20M.js} +1 -1
  120. package/dist/client/assets/{drawer-CwBC6h27.js → drawer-Bl-xKJR_.js} +1 -1
  121. package/dist/client/assets/{editor-YZleAELh.js → editor-CozvZeDY.js} +1 -1
  122. package/dist/client/assets/{editor-classes-CK9ai0gl.js → editor-classes-C0VdDFt2.js} +1 -1
  123. package/dist/client/assets/{empty-state-CwTtE-MO.js → empty-state-BY5AuJfU.js} +1 -1
  124. package/dist/client/assets/{empty-state-B9QiU_VY.js → empty-state-DjPM3fy8.js} +1 -1
  125. package/dist/client/assets/{experiments-tab-choice-C1gEvb6G.js → experiments-tab-choice-DxHtCgvZ.js} +1 -1
  126. package/dist/client/assets/{extract-connection-data-CkWpG9Fj.js → extract-connection-data-CzRa4dsB.js} +1 -1
  127. package/dist/client/assets/{feature-gate-CEDC08jo.js → feature-gate-CecpbIeh.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-UROHXvVY.js → feature-paywall-AuKILmgq.js} +1 -1
  129. package/dist/client/assets/{file-explorer-DktEvpiP.js → file-explorer-Djczlqyv.js} +1 -1
  130. package/dist/client/assets/{file-preview-xiRlJpsu.js → file-preview-BoSukKv4.js} +1 -1
  131. package/dist/client/assets/{file-share-button-Br7H7qe9.js → file-share-button-BipY8VKx.js} +2 -2
  132. package/dist/client/assets/{file-type-icon-BRiZbFJM.js → file-type-icon-BKtgVCvA.js} +1 -1
  133. package/dist/client/assets/{folder-icon-CHiicbmI.js → folder-icon-B6Pmbu2w.js} +1 -1
  134. package/dist/client/assets/{form-BbCRE2mk.js → form-BcinmXce.js} +1 -1
  135. package/dist/client/assets/{general-CYLLbCmH.js → general-Cfumen7X.js} +1 -1
  136. package/dist/client/assets/{github-icon-q1xudgoP.js → github-icon-lmZhrKkb.js} +1 -1
  137. package/dist/client/assets/{home-CVchwepi.js → home-BXszjMgA.js} +1 -1
  138. package/dist/client/assets/{home-overview-BGSikjDJ.js → home-overview-CBvIMZLG.js} +1 -1
  139. package/dist/client/assets/{hosted-reconcile-rqZnV2Vw.js → hosted-reconcile-BwRf3Rhf.js} +1 -1
  140. package/dist/client/assets/{icon-button-Bq3ZJEeE.js → icon-button-BKgqvpeC.js} +1 -1
  141. package/dist/client/assets/index-69S-cBsb.css +1 -0
  142. package/dist/client/assets/index-B-8lp_z-.js +69 -0
  143. package/dist/client/assets/{index-BD2-Tfve.js → index-B1ZvlDM_.js} +37 -37
  144. package/dist/client/assets/{index-DLzGeaMa.js → index-BjRujN3I.js} +1 -1
  145. package/dist/client/assets/index-Bmgq1LY9.js +1 -0
  146. package/dist/client/assets/{index-CGTT47Gs.js → index-BpS3zp32.js} +1 -1
  147. package/dist/client/assets/{index-DcLP2Uex.js → index-BrNhih9e.js} +1 -1
  148. package/dist/client/assets/index-C521Vo2d.js +15 -0
  149. package/dist/client/assets/{index-CdvPHHMd.js → index-CE2oWWvQ.js} +1 -1
  150. package/dist/client/assets/{index-KVVHw2gU.js → index-CtHyBR3B.js} +1 -1
  151. package/dist/client/assets/{index-DRQaomOR.js → index-CuAzu2ov.js} +3 -3
  152. package/dist/client/assets/{index-CH4-90Yv.js → index-Ddc_z0Ej.js} +1 -1
  153. package/dist/client/assets/{index-CwSLxVp3.js → index-DnYGmBYM.js} +1 -1
  154. package/dist/client/assets/{index-WlHdhzWm.js → index-Dodcj-Mw.js} +1 -1
  155. package/dist/client/assets/{index-BD6O45bL.js → index-dh7qVpYI.js} +1 -1
  156. package/dist/client/assets/{index-BfxFxvBn.js → index-mDEdivEJ.js} +1 -1
  157. package/dist/client/assets/{index-D8kKxC0w.js → index-rTnBA7ms.js} +1 -1
  158. package/dist/client/assets/{index-redirect-cM8n5Bf0.js → index-redirect-BDzsF49E.js} +1 -1
  159. package/dist/client/assets/{index-BW39Ccy3.js → index-zu23C60L.js} +1 -1
  160. package/dist/client/assets/{infiniteQueryObserver-CFbscoFz.js → infiniteQueryObserver-CmW3uI_C.js} +1 -1
  161. package/dist/client/assets/{infra-billing-CVwEnJc4.js → infra-billing-Xe-QR_aA.js} +1 -1
  162. package/dist/client/assets/{input-mbVW2uET.js → input-BWMKGiG7.js} +1 -1
  163. package/dist/client/assets/{input-vtcNycLk.js → input-DKvkNLxc.js} +3 -3
  164. package/dist/client/assets/{integration-icon-C5Anrc8v.js → integration-icon-UdqaK4j5.js} +1 -1
  165. package/dist/client/assets/{jira-icon-Bmi1xI6r.js → jira-icon-BXLlnoMi.js} +1 -1
  166. package/dist/client/assets/{label-CZVy73g_.js → label-PfhFwXDB.js} +1 -1
  167. package/dist/client/assets/{layout-mU_v4Bh-.js → layout-LjvCD25R.js} +1 -1
  168. package/dist/client/assets/{legacy-admin-welcome-dialog-xczBeRkI.js → legacy-admin-welcome-dialog-F7XO8XgZ.js} +1 -1
  169. package/dist/client/assets/{legacy-agents-deep-DOprMiQ8.js → legacy-agents-deep-Ch8Xa93t.js} +1 -1
  170. package/dist/client/assets/{legacy-main-redirect-frLtUhr7.js → legacy-main-redirect-BPNo4KOA.js} +1 -1
  171. package/dist/client/assets/library-DmUN8KJK.js +1 -0
  172. package/dist/client/assets/{library-tab-DB25yn1i.js → library-tab-BSfDHVvp.js} +1 -1
  173. package/dist/client/assets/{login-CmHRnJOc.js → login-CoFOfP_J.js} +1 -1
  174. package/dist/client/assets/{markdown-Bn6_U_KJ.js → markdown-Mrho5aZm.js} +7 -7
  175. package/dist/client/assets/{mcp-app-renderer-CLwGZiBS.js → mcp-app-renderer-OepBm0xf.js} +1 -1
  176. package/dist/client/assets/{mcp-oauth-DLp_LyKE.js → mcp-oauth-CPNuaTw2.js} +1 -1
  177. package/dist/client/assets/{mcp-oauth-nWMLUxbw.js → mcp-oauth-D2A3WCc8.js} +1 -1
  178. package/dist/client/assets/{members-ZiG-LF73.js → members-BUCQXk_Z.js} +1 -1
  179. package/dist/client/assets/{memory-Bc4AG_R5.js → memory-BvgLbCaa.js} +1 -1
  180. package/dist/client/assets/{mock-board-vq_twtUH.js → mock-board-CkAh1xfR.js} +3 -3
  181. package/dist/client/assets/{monaco-editor-Cwn1FokD.js → monaco-editor-g0g8FNXa.js} +1 -1
  182. package/dist/client/assets/{monitoring-Ck9IWyMH.js → monitoring-C21z2Ky6.js} +1 -1
  183. package/dist/client/assets/{monitoring-stats-row-CBa0yJyc.js → monitoring-stats-row-CVBzJu2Z.js} +1 -1
  184. package/dist/client/assets/{multi-select-VgSnOaCE.js → multi-select-BAtpYbAh.js} +1 -1
  185. package/dist/client/assets/{mustache-DsmTghzT.js → mustache-D54jyG9D.js} +3 -3
  186. package/dist/client/assets/{named-rule-view-D2hRJFjn.js → named-rule-view-CT0WGqZQ.js} +1 -1
  187. package/dist/client/assets/{new-project-dialog-Bq2ZRt1E.js → new-project-dialog-C3_nj5Ml.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-DisZamoA.js → oauth-callback-CBi7ICt6.js} +1 -1
  189. package/dist/client/assets/{oauth-callback-ai-provider-CQY9pH53.js → oauth-callback-ai-provider-Dk0zoYp5.js} +1 -1
  190. package/dist/client/assets/{oauth-consent-BLSOh8Vc.js → oauth-consent-CuhoZHL3.js} +1 -1
  191. package/dist/client/assets/{onboarding-knc2o8kj.js → onboarding-Cng8wY1E.js} +1 -1
  192. package/dist/client/assets/{openai-conversation-D0zBymrP.js → openai-conversation-DiGdZuyX.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-CkyuDF51.js → optimistic-project-sidebar-views-BOc7d1-I.js} +1 -1
  194. package/dist/client/assets/{order-monitor-day--YYykwM7.js → order-monitor-day-DvvGpgk-.js} +1 -1
  195. package/dist/client/assets/{organization-choice-DihqTAxR.js → organization-choice-DNs_V-xg.js} +1 -1
  196. package/dist/client/assets/{orgs-05_Ljhax.js → orgs-BLLV0cjQ.js} +1 -1
  197. package/dist/client/assets/{own-accounts-section-Vq-dKaIp.js → own-accounts-section-C_JhIm_f.js} +1 -1
  198. package/dist/client/assets/{pair-B-D0jk5j.js → pair-BZWd7l8i.js} +7 -7
  199. package/dist/client/assets/parse-sections-Chh4kibB.js +20 -0
  200. package/dist/client/assets/plan-C2Rwz4yq.js +1 -0
  201. package/dist/client/assets/{plan-ladder-ia9SV_u2.js → plan-ladder-C_hexrUw.js} +1 -1
  202. package/dist/client/assets/{plan-usage-card-BhMgoOQ-.js → plan-usage-card-BoQTuswG.js} +1 -1
  203. package/dist/client/assets/{popover-BX49i_9-.js → popover-Bmr7L36n.js} +1 -1
  204. package/dist/client/assets/post-calendar-DMhH6lZl.js +1 -0
  205. package/dist/client/assets/post-editor-BXvu8EpI.js +2 -0
  206. package/dist/client/assets/{preview-content-ByMvryRR.js → preview-content-DYnkU4UJ.js} +1 -1
  207. package/dist/client/assets/{preview-dialog-CsbNSWkE.js → preview-dialog-DNx4X2e9.js} +1 -1
  208. package/dist/client/assets/{preview-panel-CBrKmmim.js → preview-panel-CvviPuHY.js} +1 -1
  209. package/dist/client/assets/{preview-tab-DEjq4YQm.js → preview-tab-BNjaDwVm.js} +3 -3
  210. package/dist/client/assets/{product-picker-dialog-D8SJ6ifV.js → product-picker-dialog-H-c7S_y6.js} +1 -1
  211. package/dist/client/assets/{profile-DGZtmJpW.js → profile-CIr-8Y5O.js} +1 -1
  212. package/dist/client/assets/{project-app-view-CSFErIuG.js → project-app-view-AO2FGSd6.js} +1 -1
  213. package/dist/client/assets/{project-apps-DsmVr6MW.js → project-apps-DBCPlxgH.js} +1 -1
  214. package/dist/client/assets/{project-icon-BMNmURUS.js → project-icon-CmnD7zSI.js} +1 -1
  215. package/dist/client/assets/{project-index-Cf8pv3Xb.js → project-index-DSLcGnuq.js} +1 -1
  216. package/dist/client/assets/project-reports-S-kufFKe.js +1 -0
  217. package/dist/client/assets/project-tasks-wzF7Jhs-.js +1 -0
  218. package/dist/client/assets/{projects-BbuSRcBC.js → projects-ChZ6VlDP.js} +1 -1
  219. package/dist/client/assets/{projects-empty-state-D2U4ObkW.js → projects-empty-state-DAlIDaDL.js} +1 -1
  220. package/dist/client/assets/{prompts-ev7-vW68.js → prompts-Bvb1OOOC.js} +1 -1
  221. package/dist/client/assets/record-editor-N9NTN0AS.js +1 -0
  222. package/dist/client/assets/redirect-editor-Cr2marAT.js +1 -0
  223. package/dist/client/assets/{reports-DaISkEl7.js → reports-BXChVA2M.js} +1 -1
  224. package/dist/client/assets/{reports-onboarding-3NRLE0S7.js → reports-onboarding-mCk-w7k-.js} +1 -1
  225. package/dist/client/assets/reports-sZEBLifc.js +1 -0
  226. package/dist/client/assets/{reports-tab-BTnE3zXc.js → reports-tab-DE8i-fZN.js} +2 -2
  227. package/dist/client/assets/repositories-BgBZ-sk3.js +1 -0
  228. package/dist/client/assets/{repositories-iO0v9MBk.js → repositories-DBxw960j.js} +1 -1
  229. package/dist/client/assets/{repository-binding-t2SUt_ly.js → repository-binding-CoMozV78.js} +1 -1
  230. package/dist/client/assets/{repository-picker-lw8HWu2E.js → repository-picker-Ds67iMZ7.js} +1 -1
  231. package/dist/client/assets/{require-capability-BpHMNsFK.js → require-capability-C9oBXOPC.js} +1 -1
  232. package/dist/client/assets/{required-auth-layout-D0fYWaPn.js → required-auth-layout-BZsZN7yA.js} +1 -1
  233. package/dist/client/assets/{reset-password-GLJcH65P.js → reset-password-7T8Amd8g.js} +1 -1
  234. package/dist/client/assets/{resizable-vYXdh-GF.js → resizable-CMMESj2f.js} +1 -1
  235. package/dist/client/assets/{resolve-tab-icon-V8LVv3Xn.js → resolve-tab-icon-CWFgluny.js} +1 -1
  236. package/dist/client/assets/{review-settings-Daf3NI57.js → review-settings-CcRoafom.js} +1 -1
  237. package/dist/client/assets/{role-color-C4jOHzdR.js → role-color-BGMgsms5.js} +1 -1
  238. package/dist/client/assets/{roles-CV8Os6WH.js → roles-D_ANLmLE.js} +1 -1
  239. package/dist/client/assets/route-Bl9oqEzn.js +1 -0
  240. package/dist/client/assets/{route-D4eWmnLE.js → route-CVEfwKUb.js} +1 -1
  241. package/dist/client/assets/{route-ChpHpM6U.js → route-OcK1C2mu.js} +1 -1
  242. package/dist/client/assets/{sandbox-lifecycle-context-wSSR64uz.js → sandbox-lifecycle-context-Df97dN_A.js} +1 -1
  243. package/dist/client/assets/{schema-lfiSlL5j.js → schema-C8mn4zzt.js} +1 -1
  244. package/dist/client/assets/{schema-rAmMhTAU.js → schema-PUU_l55-.js} +1 -1
  245. package/dist/client/assets/{scroll-area-BdbZ2pRg.js → scroll-area-DPYxTk2f.js} +1 -1
  246. package/dist/client/assets/{search-input-DvpyQdwd.js → search-input-CxiWeJ7M.js} +1 -1
  247. package/dist/client/assets/{search-toggle-EaKGGn7w.js → search-toggle-B2er_d2D.js} +1 -1
  248. package/dist/client/assets/{secret-picker-ZdBMvgUe.js → secret-picker-BGN25hQY.js} +1 -1
  249. package/dist/client/assets/{secrets-D35RaSBM.js → secrets-CdS0pLko.js} +1 -1
  250. package/dist/client/assets/{section-array-field-C3FXtjzL.js → section-array-field-CP-WbNwo.js} +1 -1
  251. package/dist/client/assets/{sections-BXC8sRej.js → sections-B2VbhORA.js} +1 -1
  252. package/dist/client/assets/{sections-editor-oQAkX7iV.js → sections-editor-DrJZD-K0.js} +1 -1
  253. package/dist/client/assets/{select-DzfQ0lJI.js → select-DwKpuPDv.js} +1 -1
  254. package/dist/client/assets/{select-model-Bc-aj0Ca.js → select-model-CYqVBHX-.js} +1 -1
  255. package/dist/client/assets/{seo-editor-B-SmTz7B.js → seo-editor-BZHEYA-M.js} +1 -1
  256. package/dist/client/assets/{separator-CtG551Kh.js → separator-ygeWiuaT.js} +1 -1
  257. package/dist/client/assets/settings-tab-DAogag92.js +1 -0
  258. package/dist/client/assets/{sheet-ChvL33ih.js → sheet-Xug5hLAu.js} +1 -1
  259. package/dist/client/assets/{shell-layout-CUa5MDUh.js → shell-layout-DP2VC2TO.js} +1 -1
  260. package/dist/client/assets/{site-draft-actions-C7WlFKVv.js → site-draft-actions-CwKZJ4xP.js} +1 -1
  261. package/dist/client/assets/{site-draft-view-CjzDGxji.js → site-draft-view-DqJzkrit.js} +1 -1
  262. package/dist/client/assets/site-editor-DBJLt6gM.js +1 -0
  263. package/dist/client/assets/{site-editor-toast-CWugfiSd.js → site-editor-toast-C2KJeS5V.js} +1 -1
  264. package/dist/client/assets/{skills-C5QLe26M.js → skills-KjFJGU5i.js} +1 -1
  265. package/dist/client/assets/{slider-Ecd2IIkn.js → slider-B0Ygf2_6.js} +1 -1
  266. package/dist/client/assets/{sortable.esm-B7uFfy_P.js → sortable.esm-b0bgkepL.js} +1 -1
  267. package/dist/client/assets/{sso-0gVFO2bM.js → sso-BRHmZu4z.js} +1 -1
  268. package/dist/client/assets/{suggestion-DNThc8_w.js → suggestion-x1hGwkT4.js} +2 -2
  269. package/dist/client/assets/{super-agent-icon-WK3PJICd.js → super-agent-icon-DVvWAvfT.js} +1 -1
  270. package/dist/client/assets/{switch-rEtvwmeJ.js → switch-B89m7bUN.js} +1 -1
  271. package/dist/client/assets/{synced-repos-CsB9l6Mv.js → synced-repos-GWj1dwBE.js} +1 -1
  272. package/dist/client/assets/{tab-icon-glyph-DuRegJvy.js → tab-icon-glyph-izlIxfMt.js} +1 -1
  273. package/dist/client/assets/{table-tgAIcOjU.js → table-lum-yHpJ.js} +1 -1
  274. package/dist/client/assets/{tabs-CRh6BkF5.js → tabs-qmDGzXtn.js} +1 -1
  275. package/dist/client/assets/{task-board-DVzbOFVa.js → task-board-CITA4beV.js} +1 -1
  276. package/dist/client/assets/{task-route-DJww-aBE.js → task-route-DLxggJ7K.js} +1 -1
  277. package/dist/client/assets/{task-status-CPDhSMht.js → task-status-DDIH9CGS.js} +1 -1
  278. package/dist/client/assets/{taskboard-analytics-Dmg8kQ7N.js → taskboard-analytics-B4G_sBgg.js} +1 -1
  279. package/dist/client/assets/{tasks-BSfgBHRO.js → tasks-DbElIgy9.js} +1 -1
  280. package/dist/client/assets/tasks-Df6DY3du.js +1 -0
  281. package/dist/client/assets/{textarea-CvTlfpHc.js → textarea-BYx7yH8o.js} +1 -1
  282. package/dist/client/assets/{thread-analytics-DD_Y3FQw.js → thread-analytics-D3o9NsHQ.js} +1 -1
  283. package/dist/client/assets/{thread-intent-BhJhZ_UP.js → thread-intent-BMcVCMdR.js} +1 -1
  284. package/dist/client/assets/{thread-route-DFmD7mlY.js → thread-route-BX8g4tw-.js} +1 -1
  285. package/dist/client/assets/{thread-route-Df1f7USR.js → thread-route-jIR4gAI_.js} +1 -1
  286. package/dist/client/assets/{thread-sheet-body-CCNPZBqb.js → thread-sheet-body-BaVm1ZBO.js} +1 -1
  287. package/dist/client/assets/{time-range-picker-CNJKAQia.js → time-range-picker-EQi5kb2q.js} +1 -1
  288. package/dist/client/assets/{toggle-group-CEtlbqEu.js → toggle-group-6Dx2ZnVa.js} +1 -1
  289. package/dist/client/assets/{tool-namespace-xhn6qzed.js → tool-namespace-C8tIomG8.js} +1 -1
  290. package/dist/client/assets/{tool-set-selector-0qJqj3BN.js → tool-set-selector-Dzh4gju3.js} +1 -1
  291. package/dist/client/assets/{toolbar-icon-button-BYM1l_EM.js → toolbar-icon-button-qX2Q8Vi7.js} +1 -1
  292. package/dist/client/assets/{tooltip-CPWUruKJ.js → tooltip-D2vb17oX.js} +1 -1
  293. package/dist/client/assets/{tooltipContext-DYzAHA8b.js → tooltipContext-bN8koyv-.js} +1 -1
  294. package/dist/client/assets/{track-As-I-W_o.js → track-Bx9-uk2h.js} +1 -1
  295. package/dist/client/assets/{types-BM3wGHXs.js → types-Dynv4Wt5.js} +1 -1
  296. package/dist/client/assets/{url-slug-C7LbKTWT.js → url-slug-Dqg9nWvP.js} +1 -1
  297. package/dist/client/assets/{usage-stats-BITMwpzs.js → usage-stats-BxAReiDs.js} +32 -32
  298. package/dist/client/assets/{use-ai-providers-pPbmGXbG.js → use-ai-providers-CtG5BelZ.js} +1 -1
  299. package/dist/client/assets/{use-apply-named-rule-Bv0WgvtT.js → use-apply-named-rule-DHBY1E38.js} +1 -1
  300. package/dist/client/assets/use-ask-in-chat-B2dGYQPJ.js +1 -0
  301. package/dist/client/assets/{use-automations-BEx9jN5g.js → use-automations-TW0JJdqx.js} +1 -1
  302. package/dist/client/assets/{use-autosave-BxToYayg.js → use-autosave-BezOS47T.js} +1 -1
  303. package/dist/client/assets/use-blocks-v8-project-Dx_FWHJP.js +1 -0
  304. package/dist/client/assets/{use-chat-layout-state-YDnStvp0.js → use-chat-layout-state-CakVfv2a.js} +1 -1
  305. package/dist/client/assets/{use-cms-publish-actions-BJxFUgnP.js → use-cms-publish-actions-DPLfPXzl.js} +1 -1
  306. package/dist/client/assets/{use-connect-companion-CMi6qABv.js → use-connect-companion-xyuasG3f.js} +1 -1
  307. package/dist/client/assets/{use-connection-BeyjX32e.js → use-connection-DYtXLDpf.js} +1 -1
  308. package/dist/client/assets/{use-content-sync-D9WlRyAv.js → use-content-sync-BpVEjJ5G.js} +1 -1
  309. package/dist/client/assets/{use-copy-Yov8ynUc.js → use-copy-B1cnS_xX.js} +1 -1
  310. package/dist/client/assets/{use-date-fns-locale-CqG8akF0.js → use-date-fns-locale-DEbdWDOa.js} +1 -1
  311. package/dist/client/assets/{use-debounced-autosave-BwG78Eft.js → use-debounced-autosave-CvHwbalF.js} +1 -1
  312. package/dist/client/assets/{use-debounced-value-CjUdoTQj.js → use-debounced-value-Z34m5Fyz.js} +1 -1
  313. package/dist/client/assets/{use-deco-credits-CHVv60jE.js → use-deco-credits-DCZQcwBn.js} +1 -1
  314. package/dist/client/assets/{use-decopilot-events-Dxkyyj-f.js → use-decopilot-events-_iazqvpf.js} +1 -1
  315. package/dist/client/assets/{use-delete-connection-DcDccx5j.js → use-delete-connection-M267X1bS.js} +1 -1
  316. package/dist/client/assets/{use-deployment-admin-BP73XI6k.js → use-deployment-admin-DOzhh6sJ.js} +1 -1
  317. package/dist/client/assets/{use-entitlements-B6JBu_O9.js → use-entitlements-DZIIouH3.js} +1 -1
  318. package/dist/client/assets/{use-fast-preview-draft-url-Be4qQSKF.js → use-fast-preview-draft-url-DSbBc_J-.js} +1 -1
  319. package/dist/client/assets/{use-file-configs-4JpNA1Tb.js → use-file-configs-hDEnq4hr.js} +1 -1
  320. package/dist/client/assets/{use-id-selection-CdOmebQh.js → use-id-selection-CcHW6d6u.js} +1 -1
  321. package/dist/client/assets/{use-inbox-feed-vv9gd7Sc.js → use-inbox-feed-BQSYPM61.js} +1 -1
  322. package/dist/client/assets/{use-infinite-scroll-DuiGO_jY.js → use-infinite-scroll-lJK8P9ZI.js} +1 -1
  323. package/dist/client/assets/{use-join-requests-aN5r5Pxn.js → use-join-requests-sJWVcnYg.js} +1 -1
  324. package/dist/client/assets/{use-main-panel-tabs-LFa8N1wr.js → use-main-panel-tabs-C788lFWw.js} +1 -1
  325. package/dist/client/assets/{use-mcp-auth-status-D1KHm_6z.js → use-mcp-auth-status-CgZY_gyC.js} +1 -1
  326. package/dist/client/assets/{use-mcp-client-Dwx3joSc.js → use-mcp-client-C_baTEme.js} +1 -1
  327. package/dist/client/assets/{use-mcp-prompts-CgaLso39.js → use-mcp-prompts-DpQotIu-.js} +1 -1
  328. package/dist/client/assets/{use-mcp-tools-KrWmb9CR.js → use-mcp-tools-CVQwrVGE.js} +1 -1
  329. package/dist/client/assets/{use-mobile-BL_lLwbJ.js → use-mobile-CzZEBajI.js} +1 -1
  330. package/dist/client/assets/{use-move-blocks-DLKMXFIt.js → use-move-blocks-CeecxxS_.js} +1 -1
  331. package/dist/client/assets/{use-navigate-to-agent-DquGUsnU.js → use-navigate-to-agent-BMQllV2g.js} +1 -1
  332. package/dist/client/assets/{use-org-fs-DDN_Ivwy.js → use-org-fs-hvIlZzgN.js} +1 -1
  333. package/dist/client/assets/{use-org-repo-syncs-VLN8P34E.js → use-org-repo-syncs-C0ZbZ18y.js} +1 -1
  334. package/dist/client/assets/{use-org-sso-DCyl-5Yq.js → use-org-sso-C9hOcGok.js} +1 -1
  335. package/dist/client/assets/{use-organization-settings-ezDxn50S.js → use-organization-settings-D9HfcuG0.js} +1 -1
  336. package/dist/client/assets/{use-project-native-view-presence-Dmz_uZfw.js → use-project-native-view-presence-FcTxBNIu.js} +1 -1
  337. package/dist/client/assets/{use-project-scope-Bv0XQrp-.js → use-project-scope-yhiZWd6i.js} +1 -1
  338. package/dist/client/assets/{use-recent-apps-C1nVs7iP.js → use-recent-apps-CtwsvbPj.js} +1 -1
  339. package/dist/client/assets/{use-reports-diagnostic-CG1-7P8p.js → use-reports-diagnostic-BP7gBCmu.js} +1 -1
  340. package/dist/client/assets/{use-sandbox-events-DGTvdxAG.js → use-sandbox-events-rlHOSL_u.js} +1 -1
  341. package/dist/client/assets/{use-secrets-BDKLIqQa.js → use-secrets-CjzhxUFP.js} +1 -1
  342. package/dist/client/assets/{use-section-preview-base-RsRAdpLG.js → use-section-preview-base-BRTpm92u.js} +1 -1
  343. package/dist/client/assets/{use-sidebar-collapsed-pjufulEj.js → use-sidebar-collapsed-DTqL_ZOd.js} +1 -1
  344. package/dist/client/assets/{use-tags-DRgt7SdO.js → use-tags-v5mP3DFy.js} +1 -1
  345. package/dist/client/assets/{use-task-board-analytics-BBqVIyLD.js → use-task-board-analytics-CXbWAJgx.js} +1 -1
  346. package/dist/client/assets/{use-task-board-events-C076JDrW.js → use-task-board-events-Do0ZxHPd.js} +1 -1
  347. package/dist/client/assets/{use-task-board-item-prs-CMWcegEQ.js → use-task-board-item-prs-DjTo2SIU.js} +1 -1
  348. package/dist/client/assets/{use-task-board-items-C3wN6VZ7.js → use-task-board-items-8MOWqSEt.js} +1 -1
  349. package/dist/client/assets/{use-task-board-prompts-BljQAl60.js → use-task-board-prompts-ECSdw-Pb.js} +1 -1
  350. package/dist/client/assets/{use-task-metadata-IKal_B89.js → use-task-metadata-X9Mil_QT.js} +1 -1
  351. package/dist/client/assets/{use-thread-outputs-DW15e6qt.js → use-thread-outputs-Dmf6zhrt.js} +1 -1
  352. package/dist/client/assets/{use-voice-input-Bhc30U5o.js → use-voice-input-BJwAU8da.js} +1 -1
  353. package/dist/client/assets/useInfiniteQuery-CvokX1at.js +1 -0
  354. package/dist/client/assets/{useQueries-BWsosSvF.js → useQueries-DOrZn37R.js} +1 -1
  355. package/dist/client/assets/useSuspenseInfiniteQuery-BiaFhRxh.js +1 -0
  356. package/dist/client/assets/{users-BL-cP3wa.js → users-Daf6ssOQ.js} +1 -1
  357. package/dist/client/assets/{utils-DgoaBGZ5.js → utils-DfZ0Z1Cp.js} +2 -2
  358. package/dist/client/assets/{variant-calendar-D9HBG0p_.js → variant-calendar-C_C-crL9.js} +1 -1
  359. package/dist/client/assets/{variant-matcher-override-DoXeO1c0.js → variant-matcher-override-DNI0CzKx.js} +1 -1
  360. package/dist/client/assets/{view-header-j_OBPXJD.js → view-header-B99QN9EG.js} +1 -1
  361. package/dist/client/assets/virtual-mcp-CbvCEWCq.js +1 -0
  362. package/dist/client/assets/{watch-sse-pool-Bno2kqCn.js → watch-sse-pool-D0y06VhU.js} +1 -1
  363. package/dist/client/index.html +2 -2
  364. package/dist/server/cli.js +13 -13
  365. package/dist/server/migrate-dbos.js +2 -2
  366. package/dist/server/migrate.js +42 -42
  367. package/dist/server/server.js +446 -446
  368. package/package.json +1 -1
  369. package/dist/client/assets/agent-app-D6yj-pMQ.js +0 -1
  370. package/dist/client/assets/agent-deck-9cClb9g8.js +0 -1
  371. package/dist/client/assets/agent-experiments-i1khXsMD.js +0 -1
  372. package/dist/client/assets/agent-library-D7XfbskT.js +0 -1
  373. package/dist/client/assets/agent-library-file-BETUEujK.js +0 -1
  374. package/dist/client/assets/agent-overview-BT1unfrS.js +0 -1
  375. package/dist/client/assets/agent-settings-CjJHki-K.js +0 -1
  376. package/dist/client/assets/agent-site-editor-code-B-MqMBV6.js +0 -2
  377. package/dist/client/assets/agent-site-editor-content-T7SQ0eTX.js +0 -1
  378. package/dist/client/assets/agent-site-editor-preview-CLHaZdDj.js +0 -1
  379. package/dist/client/assets/agent-view-BD06Jv6z.js +0 -1
  380. package/dist/client/assets/api-keys-BEjN8NqZ.js +0 -1
  381. package/dist/client/assets/app-editor-cC2ECYDV.js +0 -1
  382. package/dist/client/assets/category-editor-DMUoSfne.js +0 -1
  383. package/dist/client/assets/cms-settings-editor-BGVlbtsi.js +0 -1
  384. package/dist/client/assets/content-tab-BjndC62X.js +0 -25
  385. package/dist/client/assets/context-B-eGOpuA.js +0 -1
  386. package/dist/client/assets/index-BEFauG6g.js +0 -83
  387. package/dist/client/assets/index-BkJtJQz4.css +0 -1
  388. package/dist/client/assets/index-ULZrkDIx.js +0 -1
  389. package/dist/client/assets/library-H2QdAzSR.js +0 -1
  390. package/dist/client/assets/parse-sections-DH_6p8mX.js +0 -20
  391. package/dist/client/assets/plan-C8ZCF1fK.js +0 -1
  392. package/dist/client/assets/post-calendar-BRPy06yS.js +0 -1
  393. package/dist/client/assets/post-editor-DO094Qrr.js +0 -2
  394. package/dist/client/assets/project-reports-DmwAf8Qf.js +0 -1
  395. package/dist/client/assets/project-tasks-D5vOWT5d.js +0 -1
  396. package/dist/client/assets/record-editor-B82Hi6oO.js +0 -1
  397. package/dist/client/assets/redirect-editor-1Kyi1-Qo.js +0 -1
  398. package/dist/client/assets/reports-D8_7BSxz.js +0 -1
  399. package/dist/client/assets/repositories-Rj9HwEBO.js +0 -1
  400. package/dist/client/assets/route-DpfhbI1P.js +0 -1
  401. package/dist/client/assets/settings-tab--GGe5YhB.js +0 -1
  402. package/dist/client/assets/site-editor-BgYmGLHo.js +0 -1
  403. package/dist/client/assets/tasks-BiPHQc84.js +0 -1
  404. package/dist/client/assets/use-ask-in-chat-COLxNYu8.js +0 -1
  405. package/dist/client/assets/use-blocks-v8-project-BKzS5s7M.js +0 -1
  406. package/dist/client/assets/useInfiniteQuery-DIP1SnGb.js +0 -1
  407. package/dist/client/assets/useSuspenseInfiniteQuery-DrHv36Dy.js +0 -1
  408. package/dist/client/assets/virtual-mcp-DUuDRM1F.js +0 -1
@@ -1 +1 @@
1
- import{c as Q,b as U,r as ee,m as q,j as t,X as te,B as se,_ as ie,Z as ne,Y as ae,aG as oe,aH as le,aI as re,aJ as ce,bj as me,aK as ue,aL as de,aM as fe}from"./index-BD2-Tfve.js";import{B as ge}from"./badge-DaX-o_aM.js";import{A as xe,S as pe}from"./agent-icon-C4zAUQeZ.js";import{a as he}from"./SwitchHorizontal01-B1owjF7D.js";import{s as je}from"./Trash01-CTl0J4n_.js";import{i as _e}from"./Zap-4X8Ik5ls.js";import{b as we}from"./repository-binding-t2SUt_ly.js";import{a as ve}from"./use-automations-BEx9jN5g.js";function ze(c){const e=Q.c(89),{automation:s,showAgent:o,onClick:n}=c,i=U(),{remove:a}=ve(),[r,G]=ee.useState(!1),l=we(o?s.virtual_mcp_id:void 0);let F;e[0]!==s.id||e[1]!==a?(F=()=>{a.mutate(s.id),G(!1)},e[0]=s.id,e[1]=a,e[2]=F):F=e[2];const J=F;let K;e[3]!==n?(K=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=K):K=e[4];const V=K,X=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==X?(u=q("inline-block size-2 rounded-full shrink-0",X),e[5]=X,e[6]=u):u=e[6];const Y=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==Y?(d=i(Y),e[7]=i,e[8]=Y,e[9]=d):d=e[9];let f;e[10]!==u||e[11]!==d?(f=t.jsx("span",{className:u,"aria-label":d}),e[10]=u,e[11]=d,e[12]=f):f=e[12];let g;e[13]!==l?.icon||e[14]!==l?.title||e[15]!==s.name||e[16]!==o?(g=o&&t.jsx(xe,{icon:l?.icon??null,name:l?.title??s.name,size:"xs",className:"shrink-0"}),e[13]=l?.icon,e[14]=l?.title,e[15]=s.name,e[16]=o,e[17]=g):g=e[17];let x;e[18]!==s.name?(x=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:s.name}),e[18]=s.name,e[19]=x):x=e[19];let p;e[20]!==s.system_key||e[21]!==i?(p=s.system_key&&t.jsx(ge,{variant:"muted",children:i("automations.builtin.badge")}),e[20]=s.system_key,e[21]=i,e[22]=p):p=e[22];let h;e[23]!==l||e[24]!==o?(h=o&&l&&t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:["· ",l.title]}),e[23]=l,e[24]=o,e[25]=h):h=e[25];let j;e[26]!==p||e[27]!==h||e[28]!==x?(j=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[x,p,h]}),e[26]=p,e[27]=h,e[28]=x,e[29]=j):j=e[29];let _;e[30]!==s.nearest_next_run_at||e[31]!==s.trigger_count?(_=t.jsx(De,{triggerCount:s.trigger_count,nextRunAt:s.nearest_next_run_at}),e[30]=s.nearest_next_run_at,e[31]=s.trigger_count,e[32]=_):_=e[32];let w;e[33]!==j||e[34]!==_?(w=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[j,_]}),e[33]=j,e[34]=_,e[35]=w):w=e[35];const Z=s.system_key&&"invisible";let v;e[36]!==Z?(v=q("shrink-0",Z),e[36]=Z,e[37]=v):v=e[37];let O;e[38]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(te,{asChild:!0,children:t.jsx(se,{variant:"ghost",size:"icon",className:"opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity",children:t.jsx(he,{size:16})})}),e[38]=O):O=e[38];let $,I;e[39]===Symbol.for("react.memo_cache_sentinel")?($=m=>{m.stopPropagation(),G(!0)},I=t.jsx(je,{size:16}),e[39]=$,e[40]=I):($=e[39],I=e[40]);let y;e[41]!==i?(y=i("automations.automationListRow.delete"),e[41]=i,e[42]=y):y=e[42];let A;e[43]!==y?(A=t.jsxs(ie,{children:[O,t.jsx(ne,{align:"end",children:t.jsxs(ae,{variant:"destructive",onClick:$,children:[I,y]})})]}),e[43]=y,e[44]=A):A=e[44];let D;e[45]!==v||e[46]!==A?(D=t.jsx("div",{onClick:Ae,onKeyDown:ye,role:"presentation",className:v,children:A}),e[45]=v,e[46]=A,e[47]=D):D=e[47];let R;e[48]!==V||e[49]!==n||e[50]!==w||e[51]!==D||e[52]!==f||e[53]!==g?(R=t.jsxs("div",{role:"button",tabIndex:0,onClick:n,onKeyDown:V,className:"group w-full flex items-center gap-3 px-4 py-3 text-left hover:bg-accent transition-colors cursor-pointer focus-ring",children:[f,g,w,D]}),e[48]=V,e[49]=n,e[50]=w,e[51]=D,e[52]=f,e[53]=g,e[54]=R):R=e[54];let k;e[55]!==i?(k=i("automations.automationListRow.deleteTitle"),e[55]=i,e[56]=k):k=e[56];let N;e[57]!==k?(N=t.jsx(oe,{children:k}),e[57]=k,e[58]=N):N=e[58];let b;e[59]!==s.name||e[60]!==i?(b=i("automations.automationListRow.deleteDescription",{name:s.name}),e[59]=s.name,e[60]=i,e[61]=b):b=e[61];let L;e[62]!==b?(L=t.jsx(le,{children:b}),e[62]=b,e[63]=L):L=e[63];let C;e[64]!==N||e[65]!==L?(C=t.jsxs(re,{children:[N,L]}),e[64]=N,e[65]=L,e[66]=C):C=e[66];let P;e[67]!==i?(P=i("automations.automationListRow.cancel"),e[67]=i,e[68]=P):P=e[68];let T;e[69]!==P?(T=t.jsx(ce,{children:P}),e[69]=P,e[70]=T):T=e[70];const W=a.isPending;let z;e[71]!==i?(z=i("automations.automationListRow.deleteButton"),e[71]=i,e[72]=z):z=e[72];let B;e[73]!==J||e[74]!==a.isPending||e[75]!==z?(B=t.jsx(me,{onClick:J,disabled:W,variant:"destructive",children:z}),e[73]=J,e[74]=a.isPending,e[75]=z,e[76]=B):B=e[76];let M;e[77]!==T||e[78]!==B?(M=t.jsxs(ue,{children:[T,B]}),e[77]=T,e[78]=B,e[79]=M):M=e[79];let S;e[80]!==C||e[81]!==M?(S=t.jsxs(de,{children:[C,M]}),e[80]=C,e[81]=M,e[82]=S):S=e[82];let E;e[83]!==r||e[84]!==S?(E=t.jsx(fe,{open:r,onOpenChange:G,children:S}),e[83]=r,e[84]=S,e[85]=E):E=e[85];let H;return e[86]!==R||e[87]!==E?(H=t.jsxs(t.Fragment,{children:[R,E]}),e[86]=R,e[87]=E,e[88]=H):H=e[88],H}function ye(c){return c.stopPropagation()}function Ae(c){return c.stopPropagation()}function De(c){const e=Q.c(8),{triggerCount:s,nextRunAt:o}=c,n=U();if(s===0){let a;e[0]!==n?(a=n("automations.automationListRow.noTriggers"),e[0]=n,e[1]=a):a=e[1];let r;return e[2]!==a?(r=t.jsx("span",{className:"text-xs text-muted-foreground",children:a}),e[2]=a,e[3]=r):r=e[3],r}let i;return e[4]!==o||e[5]!==n||e[6]!==s?(i=t.jsx("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground min-w-0",children:o?t.jsxs(t.Fragment,{children:[t.jsx(pe,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.nextRun",{date:new Date(o).toLocaleString()})})]}):t.jsxs(t.Fragment,{children:[t.jsx(_e,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:s===1?n("automations.automationListRow.triggersOne"):n("automations.automationListRow.triggers",{count:s})})]})}),e[4]=o,e[5]=n,e[6]=s,e[7]=i):i=e[7],i}export{ze as A};
1
+ import{c as Q,b as U,r as ee,m as q,j as t,X as te,B as se,_ as ie,Z as ne,Y as ae,aG as oe,aH as le,aI as re,aJ as ce,bj as me,aK as ue,aL as de,aM as fe}from"./index-B1ZvlDM_.js";import{B as ge}from"./badge-sWV0Lz9X.js";import{A as xe,S as pe}from"./agent-icon-B9ymJOYy.js";import{a as he}from"./SwitchHorizontal01-CStChVS2.js";import{s as je}from"./Trash01-DR_ZbB22.js";import{i as _e}from"./Zap-C46fglVd.js";import{b as we}from"./repository-binding-CoMozV78.js";import{a as ve}from"./use-automations-TW0JJdqx.js";function ze(c){const e=Q.c(89),{automation:s,showAgent:o,onClick:n}=c,i=U(),{remove:a}=ve(),[r,G]=ee.useState(!1),l=we(o?s.virtual_mcp_id:void 0);let F;e[0]!==s.id||e[1]!==a?(F=()=>{a.mutate(s.id),G(!1)},e[0]=s.id,e[1]=a,e[2]=F):F=e[2];const J=F;let K;e[3]!==n?(K=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=K):K=e[4];const V=K,X=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==X?(u=q("inline-block size-2 rounded-full shrink-0",X),e[5]=X,e[6]=u):u=e[6];const Y=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==Y?(d=i(Y),e[7]=i,e[8]=Y,e[9]=d):d=e[9];let f;e[10]!==u||e[11]!==d?(f=t.jsx("span",{className:u,"aria-label":d}),e[10]=u,e[11]=d,e[12]=f):f=e[12];let g;e[13]!==l?.icon||e[14]!==l?.title||e[15]!==s.name||e[16]!==o?(g=o&&t.jsx(xe,{icon:l?.icon??null,name:l?.title??s.name,size:"xs",className:"shrink-0"}),e[13]=l?.icon,e[14]=l?.title,e[15]=s.name,e[16]=o,e[17]=g):g=e[17];let x;e[18]!==s.name?(x=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:s.name}),e[18]=s.name,e[19]=x):x=e[19];let p;e[20]!==s.system_key||e[21]!==i?(p=s.system_key&&t.jsx(ge,{variant:"muted",children:i("automations.builtin.badge")}),e[20]=s.system_key,e[21]=i,e[22]=p):p=e[22];let h;e[23]!==l||e[24]!==o?(h=o&&l&&t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:["· ",l.title]}),e[23]=l,e[24]=o,e[25]=h):h=e[25];let j;e[26]!==p||e[27]!==h||e[28]!==x?(j=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[x,p,h]}),e[26]=p,e[27]=h,e[28]=x,e[29]=j):j=e[29];let _;e[30]!==s.nearest_next_run_at||e[31]!==s.trigger_count?(_=t.jsx(De,{triggerCount:s.trigger_count,nextRunAt:s.nearest_next_run_at}),e[30]=s.nearest_next_run_at,e[31]=s.trigger_count,e[32]=_):_=e[32];let w;e[33]!==j||e[34]!==_?(w=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[j,_]}),e[33]=j,e[34]=_,e[35]=w):w=e[35];const Z=s.system_key&&"invisible";let v;e[36]!==Z?(v=q("shrink-0",Z),e[36]=Z,e[37]=v):v=e[37];let O;e[38]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(te,{asChild:!0,children:t.jsx(se,{variant:"ghost",size:"icon",className:"opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity",children:t.jsx(he,{size:16})})}),e[38]=O):O=e[38];let $,I;e[39]===Symbol.for("react.memo_cache_sentinel")?($=m=>{m.stopPropagation(),G(!0)},I=t.jsx(je,{size:16}),e[39]=$,e[40]=I):($=e[39],I=e[40]);let y;e[41]!==i?(y=i("automations.automationListRow.delete"),e[41]=i,e[42]=y):y=e[42];let A;e[43]!==y?(A=t.jsxs(ie,{children:[O,t.jsx(ne,{align:"end",children:t.jsxs(ae,{variant:"destructive",onClick:$,children:[I,y]})})]}),e[43]=y,e[44]=A):A=e[44];let D;e[45]!==v||e[46]!==A?(D=t.jsx("div",{onClick:Ae,onKeyDown:ye,role:"presentation",className:v,children:A}),e[45]=v,e[46]=A,e[47]=D):D=e[47];let R;e[48]!==V||e[49]!==n||e[50]!==w||e[51]!==D||e[52]!==f||e[53]!==g?(R=t.jsxs("div",{role:"button",tabIndex:0,onClick:n,onKeyDown:V,className:"group w-full flex items-center gap-3 px-4 py-3 text-left hover:bg-accent transition-colors cursor-pointer focus-ring",children:[f,g,w,D]}),e[48]=V,e[49]=n,e[50]=w,e[51]=D,e[52]=f,e[53]=g,e[54]=R):R=e[54];let k;e[55]!==i?(k=i("automations.automationListRow.deleteTitle"),e[55]=i,e[56]=k):k=e[56];let N;e[57]!==k?(N=t.jsx(oe,{children:k}),e[57]=k,e[58]=N):N=e[58];let b;e[59]!==s.name||e[60]!==i?(b=i("automations.automationListRow.deleteDescription",{name:s.name}),e[59]=s.name,e[60]=i,e[61]=b):b=e[61];let L;e[62]!==b?(L=t.jsx(le,{children:b}),e[62]=b,e[63]=L):L=e[63];let C;e[64]!==N||e[65]!==L?(C=t.jsxs(re,{children:[N,L]}),e[64]=N,e[65]=L,e[66]=C):C=e[66];let P;e[67]!==i?(P=i("automations.automationListRow.cancel"),e[67]=i,e[68]=P):P=e[68];let T;e[69]!==P?(T=t.jsx(ce,{children:P}),e[69]=P,e[70]=T):T=e[70];const W=a.isPending;let z;e[71]!==i?(z=i("automations.automationListRow.deleteButton"),e[71]=i,e[72]=z):z=e[72];let B;e[73]!==J||e[74]!==a.isPending||e[75]!==z?(B=t.jsx(me,{onClick:J,disabled:W,variant:"destructive",children:z}),e[73]=J,e[74]=a.isPending,e[75]=z,e[76]=B):B=e[76];let M;e[77]!==T||e[78]!==B?(M=t.jsxs(ue,{children:[T,B]}),e[77]=T,e[78]=B,e[79]=M):M=e[79];let S;e[80]!==C||e[81]!==M?(S=t.jsxs(de,{children:[C,M]}),e[80]=C,e[81]=M,e[82]=S):S=e[82];let E;e[83]!==r||e[84]!==S?(E=t.jsx(fe,{open:r,onOpenChange:G,children:S}),e[83]=r,e[84]=S,e[85]=E):E=e[85];let H;return e[86]!==R||e[87]!==E?(H=t.jsxs(t.Fragment,{children:[R,E]}),e[86]=R,e[87]=E,e[88]=H):H=e[88],H}function ye(c){return c.stopPropagation()}function Ae(c){return c.stopPropagation()}function De(c){const e=Q.c(8),{triggerCount:s,nextRunAt:o}=c,n=U();if(s===0){let a;e[0]!==n?(a=n("automations.automationListRow.noTriggers"),e[0]=n,e[1]=a):a=e[1];let r;return e[2]!==a?(r=t.jsx("span",{className:"text-xs text-muted-foreground",children:a}),e[2]=a,e[3]=r):r=e[3],r}let i;return e[4]!==o||e[5]!==n||e[6]!==s?(i=t.jsx("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground min-w-0",children:o?t.jsxs(t.Fragment,{children:[t.jsx(pe,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.nextRun",{date:new Date(o).toLocaleString()})})]}):t.jsxs(t.Fragment,{children:[t.jsx(_e,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:s===1?n("automations.automationListRow.triggersOne"):n("automations.automationListRow.triggers",{count:s})})]})}),e[4]=o,e[5]=n,e[6]=s,e[7]=i):i=e[7],i}export{ze as A};
@@ -1 +1 @@
1
- import{c as Y,b as X,a4 as lt,T as it,aj as rt,fb as ct,K as tt,j as s,m as ut,i as mt,gv as dt}from"./index-BD2-Tfve.js";import{u as ft}from"./useInfiniteQuery-DIP1SnGb.js";import{u as xt}from"./use-connection-BeyjX32e.js";import{u as pt}from"./use-mcp-client-Dwx3joSc.js";import{a as gt}from"./repository-binding-t2SUt_ly.js";import{b as ht,a as jt}from"./sheet-ChvL33ih.js";import{e as Rt,a as Nt,b as st,T as G,d as Tt,c as Q}from"./table-tgAIcOjU.js";import{E as et}from"./empty-state-B9QiU_VY.js";import{u as bt}from"./use-id-selection-CdOmebQh.js";import{u as St}from"./use-infinite-scroll-DuiGO_jY.js";import{g as vt}from"./task-status-CPDhSMht.js";import{e as Ct}from"./use-automations-BEx9jN5g.js";import{T as wt,f as at,a as nt}from"./thread-sheet-body-CCNPZBqb.js";const W=50;function J(m){const t=Y.c(10),{title:r,value:c,subtitle:e}=m;let o;t[0]!==r?(o=s.jsx("span",{className:"text-sm text-foreground/70",children:r}),t[0]=r,t[1]=o):o=t[1];let n;t[2]!==c?(n=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:c}),t[2]=c,t[3]=n):n=t[3];let a;t[4]!==e?(a=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=a):a=t[5];let l;return t[6]!==o||t[7]!==n||t[8]!==a?(l=s.jsxs(dt,{className:"pt-4 px-4 pb-5 gap-1",children:[o,n,a]}),t[6]=o,t[7]=n,t[8]=a,t[9]=l):l=t[9],l}function yt(m){const t=Y.c(45),{automationId:r,range:c}=m,e=X(),{data:o,isLoading:n}=Ct(r,c),a=o?.runs,l=o?.usage;let P;t[0]!==a?(P=a&&a.total>0?`${Math.round(a.completed/a.total*100)}%`:"—",t[0]=a,t[1]=P):P=t[1];const C=P;let w;t[2]!==e||t[3]!==l?(w=l&&l.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:l.sampledRuns}):void 0,t[2]=e,t[3]=l,t[4]=w):w=t[4];const h=w;let b;t[5]!==e?(b=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=b):b=t[6];let d;t[7]!==n||t[8]!==a?.total?(d=n?"…":a?.total.toLocaleString()??"0",t[7]=n,t[8]=a?.total,t[9]=d):d=t[9];let f;t[10]!==a||t[11]!==e?(f=a?`${a.completed} ${e("automations.automationRuns.ok")} · ${a.failed} ${e("automations.automationRuns.failed")}${a.inProgress>0?` · ${a.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=a,t[11]=e,t[12]=f):f=t[12];let x;t[13]!==b||t[14]!==d||t[15]!==f?(x=s.jsx(J,{title:b,value:d,subtitle:f}),t[13]=b,t[14]=d,t[15]=f,t[16]=x):x=t[16];let R;t[17]!==e?(R=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=R):R=t[18];const y=n?"…":C;let S;t[19]!==R||t[20]!==y?(S=s.jsx(J,{title:R,value:y}),t[19]=R,t[20]=y,t[21]=S):S=t[21];let N;t[22]!==e?(N=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=N):N=t[23];let u;t[24]!==n||t[25]!==l?.totalTokens?(u=n?"…":at(l?.totalTokens??0),t[24]=n,t[25]=l?.totalTokens,t[26]=u):u=t[26];let v;t[27]!==N||t[28]!==u||t[29]!==h?(v=s.jsx(J,{title:N,value:u,subtitle:h}),t[27]=N,t[28]=u,t[29]=h,t[30]=v):v=t[30];let i;t[31]!==e?(i=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=i):i=t[32];let p;t[33]!==n||t[34]!==l?(p=n?"…":l&&l.costUsd>0?nt(l.costUsd):"—",t[33]=n,t[34]=l,t[35]=p):p=t[35];let T;t[36]!==i||t[37]!==p||t[38]!==h?(T=s.jsx(J,{title:i,value:p,subtitle:h}),t[36]=i,t[37]=p,t[38]=h,t[39]=T):T=t[39];let g;return t[40]!==v||t[41]!==T||t[42]!==x||t[43]!==S?(g=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[x,S,v,T]}),t[40]=v,t[41]=T,t[42]=x,t[43]=S,t[44]=g):g=t[44],g}function It(m){const t=Y.c(57),{run:r,usage:c,onClick:e,lastRowRef:o}=m,n=X();let a,l;if(t[0]!==r.created_at){const k=new Date(r.created_at);a=k.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=k.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=r.created_at,t[1]=a,t[2]=l}else a=t[1],l=t[2];const P=l;let C,w,h,b,d,f,x,R,y,S,N;if(t[3]!==o||t[4]!==e||t[5]!==r.status||t[6]!==r.title||t[7]!==n){const k=vt(r.status),$=k.icon;w=st,y=o,S="h-14 cursor-pointer hover:bg-accent transition-colors border-b-0",N=e,t[19]!==r.title?(h=s.jsx(Q,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:r.title})}),t[19]=r.title,t[20]=h):h=t[20],C=Q,R="w-28 px-3",f="flex items-center gap-1.5",x=s.jsx($,{size:14,className:k.iconClassName}),b=ut("text-sm",k.labelColor),d=n(k.labelKey),t[3]=o,t[4]=e,t[5]=r.status,t[6]=r.title,t[7]=n,t[8]=C,t[9]=w,t[10]=h,t[11]=b,t[12]=d,t[13]=f,t[14]=x,t[15]=R,t[16]=y,t[17]=S,t[18]=N}else C=t[8],w=t[9],h=t[10],b=t[11],d=t[12],f=t[13],x=t[14],R=t[15],y=t[16],S=t[17],N=t[18];let u;t[21]!==b||t[22]!==d?(u=s.jsx("span",{className:b,children:d}),t[21]=b,t[22]=d,t[23]=u):u=t[23];let v;t[24]!==u||t[25]!==f||t[26]!==x?(v=s.jsxs("div",{className:f,children:[x,u]}),t[24]=u,t[25]=f,t[26]=x,t[27]=v):v=t[27];let i;t[28]!==C||t[29]!==v||t[30]!==R?(i=s.jsx(C,{className:R,children:v}),t[28]=C,t[29]=v,t[30]=R,t[31]=i):i=t[31];let p;t[32]!==c?(p=c?at(c.totalTokens):"—",t[32]=c,t[33]=p):p=t[33];let T;t[34]!==p?(T=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:p}),t[34]=p,t[35]=T):T=t[35];let g;t[36]!==c?(g=c&&c.costUsd>0?nt(c.costUsd):"—",t[36]=c,t[37]=g):g=t[37];let I;t[38]!==g?(I=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:g}),t[38]=g,t[39]=I):I=t[39];let D;t[40]!==a?(D=s.jsx("div",{children:a}),t[40]=a,t[41]=D):D=t[41];let _;t[42]!==P?(_=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:P}),t[42]=P,t[43]=_):_=t[43];let E;t[44]!==D||t[45]!==_?(E=s.jsxs(Q,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,_]}),t[44]=D,t[45]=_,t[46]=E):E=t[46];let M;return t[47]!==w||t[48]!==h||t[49]!==i||t[50]!==T||t[51]!==I||t[52]!==E||t[53]!==y||t[54]!==S||t[55]!==N?(M=s.jsxs(w,{ref:y,className:S,onClick:N,children:[h,i,T,I,E]}),t[47]=w,t[48]=h,t[49]=i,t[50]=T,t[51]=I,t[52]=E,t[53]=y,t[54]=S,t[55]=N,t[56]=M):M=t[56],M}function Vt(m){const t=Y.c(73),{automationId:r,triggerIds:c,range:e}=m,o=X(),{org:n,locator:a}=lt();let l;t[0]!==n.id||t[1]!==n.slug?(l={connectionId:it,orgId:n.id,orgSlug:n.slug},t[0]=n.id,t[1]=n.slug,t[2]=l):l=t[2];const P=pt(l),C=rt(),w=xt(),h=gt(),{data:b}=ct(),d=c.length>0;let f;t[3]!==r||t[4]!==n.id||t[5]!==c?(f=tt.automationRuns(n.id,r,c),t[3]=r,t[4]=n.id,t[5]=c,t[6]=f):f=t[6];let x;t[7]!==C||t[8]!==c?(x=async U=>{const{pageParam:z}=U,ot=z===void 0?0:z;return await C.call("COLLECTION_THREADS_LIST",{limit:W,offset:ot,where:{trigger_ids:c}})},t[7]=C,t[8]=c,t[9]=x):x=t[9];let R;t[10]!==d||t[11]!==f||t[12]!==x?(R={queryKey:f,queryFn:x,initialPageParam:0,getNextPageParam:Dt,enabled:d,staleTime:3e4},t[10]=d,t[11]=f,t[12]=x,t[13]=R):R=t[13];const{data:y,fetchNextPage:S,hasNextPage:N,isFetchingNextPage:u,isLoading:v}=ft(R);let i,p,T,g;t[14]!==y?.pages||t[15]!==a||t[16]!==e?(i=(y?.pages??[]).flatMap(kt),g=i.map(_t),T=mt,p=tt.monitoringThreadUsage(a,JSON.stringify({ids:g,...e})),t[14]=y?.pages,t[15]=a,t[16]=e,t[17]=i,t[18]=p,t[19]=T,t[20]=g):(i=t[17],p=t[18],T=t[19],g=t[20]);let I;t[21]!==e||t[22]!==C||t[23]!==g?(I=async()=>await C.call("MONITORING_THREAD_USAGE",{threadIds:g,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=C,t[23]=g,t[24]=I):I=t[24];const D=g.length>0;let _;t[25]!==p||t[26]!==I||t[27]!==D?(_={queryKey:p,queryFn:I,enabled:D,staleTime:3e4},t[25]=p,t[26]=I,t[27]=D,t[28]=_):_=t[28];const{data:E}=T(_);let M;t[29]!==E?.items?(M=new Map((E?.items??[]).map(Pt)),t[29]=E?.items,t[30]=M):M=t[30];const k=M;let $;t[31]!==S||t[32]!==N||t[33]!==u?($=()=>{N&&!u&&S()},t[31]=S,t[32]=N,t[33]=u,t[34]=$):$=t[34];const Z=St($,N??!1,u),j=bt(i),V=j.selected;let L;t[35]!==r||t[36]!==e?(L=s.jsx(yt,{automationId:r,range:e}),t[35]=r,t[36]=e,t[37]=L):L=t[37];let A;t[38]!==d||t[39]!==v||t[40]!==Z||t[41]!==i||t[42]!==j||t[43]!==o||t[44]!==k?(A=d?v?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:o("automations.automationRuns.loadingRuns")}):i.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:o("automations.automationRuns.noRunsTitle"),description:o("automations.automationRuns.noRunsDescription")})}):s.jsxs(Rt,{className:"w-full border-collapse",children:[s.jsx(Nt,{className:"border-b-0",children:s.jsxs(st,{className:"h-9 hover:bg-transparent border-b border-border",children:[s.jsx(G,{className:"pl-4 font-normal text-meta",children:o("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 font-normal text-meta",children:o("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:o("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:o("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 font-normal text-meta",children:o("automations.automationRuns.startedHeader")})]})}),s.jsx(Tt,{children:i.map((U,z)=>s.jsx(It,{run:U,usage:k.get(U.id),onClick:()=>j.select(U.id),lastRowRef:z===i.length-1?Z:void 0},U.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:o("automations.automationRuns.noStartersTitle"),description:o("automations.automationRuns.noStartersDescription")})}),t[38]=d,t[39]=v,t[40]=Z,t[41]=i,t[42]=j,t[43]=o,t[44]=k,t[45]=A):A=t[45];let H;t[46]!==u||t[47]!==o?(H=u&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:o("automations.automationRuns.loadingMore")}),t[46]=u,t[47]=o,t[48]=H):H=t[48];let O;t[49]!==j?(O=U=>{U||j.close()},t[49]=j,t[50]=O):O=t[50];let K;t[51]!==w||t[52]!==h||t[53]!==P||t[54]!==a||t[55]!==b||t[56]!==i||t[57]!==V||t[58]!==j.index||t[59]!==j.next||t[60]!==j.prev?(K=V&&s.jsx(wt,{thread:V,client:P,locator:a,connections:w,virtualMcps:h,members:b,nav:{index:j.index,total:i.length,onPrev:j.prev,onNext:j.next}}),t[51]=w,t[52]=h,t[53]=P,t[54]=a,t[55]=b,t[56]=i,t[57]=V,t[58]=j.index,t[59]=j.next,t[60]=j.prev,t[61]=K):K=t[61];let q;t[62]!==K?(q=s.jsx(jt,{className:"sm:max-w-2xl flex flex-col p-0 gap-0",children:K}),t[62]=K,t[63]=q):q=t[63];let F;t[64]!==j.isOpen||t[65]!==O||t[66]!==q?(F=s.jsx(ht,{open:j.isOpen,onOpenChange:O,children:q}),t[64]=j.isOpen,t[65]=O,t[66]=q,t[67]=F):F=t[67];let B;return t[68]!==L||t[69]!==A||t[70]!==H||t[71]!==F?(B=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,A,H,F]}),t[68]=L,t[69]=A,t[70]=H,t[71]=F,t[72]=B):B=t[72],B}function Pt(m){return[m.threadId,{calls:m.calls,inputTokens:m.inputTokens,outputTokens:m.outputTokens,totalTokens:m.totalTokens,costUsd:m.costUsd}]}function _t(m){return m.id}function kt(m){return m.items??[]}function Dt(m,t){const r=m,c=t;if(!((r?.items?.length??0)<W))return c.length*W}export{Vt as A};
1
+ import{c as Y,b as X,a4 as lt,T as it,aj as rt,fb as ct,K as tt,j as s,m as ut,i as mt,gv as dt}from"./index-B1ZvlDM_.js";import{u as ft}from"./useInfiniteQuery-CvokX1at.js";import{u as xt}from"./use-connection-DYtXLDpf.js";import{u as pt}from"./use-mcp-client-C_baTEme.js";import{a as gt}from"./repository-binding-CoMozV78.js";import{b as ht,a as jt}from"./sheet-Xug5hLAu.js";import{e as Rt,a as Nt,b as st,T as G,d as Tt,c as Q}from"./table-lum-yHpJ.js";import{E as et}from"./empty-state-DjPM3fy8.js";import{u as bt}from"./use-id-selection-CcHW6d6u.js";import{u as St}from"./use-infinite-scroll-lJK8P9ZI.js";import{g as vt}from"./task-status-DDIH9CGS.js";import{e as Ct}from"./use-automations-TW0JJdqx.js";import{T as wt,f as at,a as nt}from"./thread-sheet-body-BaVm1ZBO.js";const W=50;function J(m){const t=Y.c(10),{title:r,value:c,subtitle:e}=m;let o;t[0]!==r?(o=s.jsx("span",{className:"text-sm text-foreground/70",children:r}),t[0]=r,t[1]=o):o=t[1];let n;t[2]!==c?(n=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:c}),t[2]=c,t[3]=n):n=t[3];let a;t[4]!==e?(a=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=a):a=t[5];let l;return t[6]!==o||t[7]!==n||t[8]!==a?(l=s.jsxs(dt,{className:"pt-4 px-4 pb-5 gap-1",children:[o,n,a]}),t[6]=o,t[7]=n,t[8]=a,t[9]=l):l=t[9],l}function yt(m){const t=Y.c(45),{automationId:r,range:c}=m,e=X(),{data:o,isLoading:n}=Ct(r,c),a=o?.runs,l=o?.usage;let P;t[0]!==a?(P=a&&a.total>0?`${Math.round(a.completed/a.total*100)}%`:"—",t[0]=a,t[1]=P):P=t[1];const C=P;let w;t[2]!==e||t[3]!==l?(w=l&&l.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:l.sampledRuns}):void 0,t[2]=e,t[3]=l,t[4]=w):w=t[4];const h=w;let b;t[5]!==e?(b=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=b):b=t[6];let d;t[7]!==n||t[8]!==a?.total?(d=n?"…":a?.total.toLocaleString()??"0",t[7]=n,t[8]=a?.total,t[9]=d):d=t[9];let f;t[10]!==a||t[11]!==e?(f=a?`${a.completed} ${e("automations.automationRuns.ok")} · ${a.failed} ${e("automations.automationRuns.failed")}${a.inProgress>0?` · ${a.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=a,t[11]=e,t[12]=f):f=t[12];let x;t[13]!==b||t[14]!==d||t[15]!==f?(x=s.jsx(J,{title:b,value:d,subtitle:f}),t[13]=b,t[14]=d,t[15]=f,t[16]=x):x=t[16];let R;t[17]!==e?(R=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=R):R=t[18];const y=n?"…":C;let S;t[19]!==R||t[20]!==y?(S=s.jsx(J,{title:R,value:y}),t[19]=R,t[20]=y,t[21]=S):S=t[21];let N;t[22]!==e?(N=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=N):N=t[23];let u;t[24]!==n||t[25]!==l?.totalTokens?(u=n?"…":at(l?.totalTokens??0),t[24]=n,t[25]=l?.totalTokens,t[26]=u):u=t[26];let v;t[27]!==N||t[28]!==u||t[29]!==h?(v=s.jsx(J,{title:N,value:u,subtitle:h}),t[27]=N,t[28]=u,t[29]=h,t[30]=v):v=t[30];let i;t[31]!==e?(i=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=i):i=t[32];let p;t[33]!==n||t[34]!==l?(p=n?"…":l&&l.costUsd>0?nt(l.costUsd):"—",t[33]=n,t[34]=l,t[35]=p):p=t[35];let T;t[36]!==i||t[37]!==p||t[38]!==h?(T=s.jsx(J,{title:i,value:p,subtitle:h}),t[36]=i,t[37]=p,t[38]=h,t[39]=T):T=t[39];let g;return t[40]!==v||t[41]!==T||t[42]!==x||t[43]!==S?(g=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[x,S,v,T]}),t[40]=v,t[41]=T,t[42]=x,t[43]=S,t[44]=g):g=t[44],g}function It(m){const t=Y.c(57),{run:r,usage:c,onClick:e,lastRowRef:o}=m,n=X();let a,l;if(t[0]!==r.created_at){const k=new Date(r.created_at);a=k.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=k.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=r.created_at,t[1]=a,t[2]=l}else a=t[1],l=t[2];const P=l;let C,w,h,b,d,f,x,R,y,S,N;if(t[3]!==o||t[4]!==e||t[5]!==r.status||t[6]!==r.title||t[7]!==n){const k=vt(r.status),$=k.icon;w=st,y=o,S="h-14 cursor-pointer hover:bg-accent transition-colors border-b-0",N=e,t[19]!==r.title?(h=s.jsx(Q,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:r.title})}),t[19]=r.title,t[20]=h):h=t[20],C=Q,R="w-28 px-3",f="flex items-center gap-1.5",x=s.jsx($,{size:14,className:k.iconClassName}),b=ut("text-sm",k.labelColor),d=n(k.labelKey),t[3]=o,t[4]=e,t[5]=r.status,t[6]=r.title,t[7]=n,t[8]=C,t[9]=w,t[10]=h,t[11]=b,t[12]=d,t[13]=f,t[14]=x,t[15]=R,t[16]=y,t[17]=S,t[18]=N}else C=t[8],w=t[9],h=t[10],b=t[11],d=t[12],f=t[13],x=t[14],R=t[15],y=t[16],S=t[17],N=t[18];let u;t[21]!==b||t[22]!==d?(u=s.jsx("span",{className:b,children:d}),t[21]=b,t[22]=d,t[23]=u):u=t[23];let v;t[24]!==u||t[25]!==f||t[26]!==x?(v=s.jsxs("div",{className:f,children:[x,u]}),t[24]=u,t[25]=f,t[26]=x,t[27]=v):v=t[27];let i;t[28]!==C||t[29]!==v||t[30]!==R?(i=s.jsx(C,{className:R,children:v}),t[28]=C,t[29]=v,t[30]=R,t[31]=i):i=t[31];let p;t[32]!==c?(p=c?at(c.totalTokens):"—",t[32]=c,t[33]=p):p=t[33];let T;t[34]!==p?(T=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:p}),t[34]=p,t[35]=T):T=t[35];let g;t[36]!==c?(g=c&&c.costUsd>0?nt(c.costUsd):"—",t[36]=c,t[37]=g):g=t[37];let I;t[38]!==g?(I=s.jsx(Q,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:g}),t[38]=g,t[39]=I):I=t[39];let D;t[40]!==a?(D=s.jsx("div",{children:a}),t[40]=a,t[41]=D):D=t[41];let _;t[42]!==P?(_=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:P}),t[42]=P,t[43]=_):_=t[43];let E;t[44]!==D||t[45]!==_?(E=s.jsxs(Q,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,_]}),t[44]=D,t[45]=_,t[46]=E):E=t[46];let M;return t[47]!==w||t[48]!==h||t[49]!==i||t[50]!==T||t[51]!==I||t[52]!==E||t[53]!==y||t[54]!==S||t[55]!==N?(M=s.jsxs(w,{ref:y,className:S,onClick:N,children:[h,i,T,I,E]}),t[47]=w,t[48]=h,t[49]=i,t[50]=T,t[51]=I,t[52]=E,t[53]=y,t[54]=S,t[55]=N,t[56]=M):M=t[56],M}function Vt(m){const t=Y.c(73),{automationId:r,triggerIds:c,range:e}=m,o=X(),{org:n,locator:a}=lt();let l;t[0]!==n.id||t[1]!==n.slug?(l={connectionId:it,orgId:n.id,orgSlug:n.slug},t[0]=n.id,t[1]=n.slug,t[2]=l):l=t[2];const P=pt(l),C=rt(),w=xt(),h=gt(),{data:b}=ct(),d=c.length>0;let f;t[3]!==r||t[4]!==n.id||t[5]!==c?(f=tt.automationRuns(n.id,r,c),t[3]=r,t[4]=n.id,t[5]=c,t[6]=f):f=t[6];let x;t[7]!==C||t[8]!==c?(x=async U=>{const{pageParam:z}=U,ot=z===void 0?0:z;return await C.call("COLLECTION_THREADS_LIST",{limit:W,offset:ot,where:{trigger_ids:c}})},t[7]=C,t[8]=c,t[9]=x):x=t[9];let R;t[10]!==d||t[11]!==f||t[12]!==x?(R={queryKey:f,queryFn:x,initialPageParam:0,getNextPageParam:Dt,enabled:d,staleTime:3e4},t[10]=d,t[11]=f,t[12]=x,t[13]=R):R=t[13];const{data:y,fetchNextPage:S,hasNextPage:N,isFetchingNextPage:u,isLoading:v}=ft(R);let i,p,T,g;t[14]!==y?.pages||t[15]!==a||t[16]!==e?(i=(y?.pages??[]).flatMap(kt),g=i.map(_t),T=mt,p=tt.monitoringThreadUsage(a,JSON.stringify({ids:g,...e})),t[14]=y?.pages,t[15]=a,t[16]=e,t[17]=i,t[18]=p,t[19]=T,t[20]=g):(i=t[17],p=t[18],T=t[19],g=t[20]);let I;t[21]!==e||t[22]!==C||t[23]!==g?(I=async()=>await C.call("MONITORING_THREAD_USAGE",{threadIds:g,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=C,t[23]=g,t[24]=I):I=t[24];const D=g.length>0;let _;t[25]!==p||t[26]!==I||t[27]!==D?(_={queryKey:p,queryFn:I,enabled:D,staleTime:3e4},t[25]=p,t[26]=I,t[27]=D,t[28]=_):_=t[28];const{data:E}=T(_);let M;t[29]!==E?.items?(M=new Map((E?.items??[]).map(Pt)),t[29]=E?.items,t[30]=M):M=t[30];const k=M;let $;t[31]!==S||t[32]!==N||t[33]!==u?($=()=>{N&&!u&&S()},t[31]=S,t[32]=N,t[33]=u,t[34]=$):$=t[34];const Z=St($,N??!1,u),j=bt(i),V=j.selected;let L;t[35]!==r||t[36]!==e?(L=s.jsx(yt,{automationId:r,range:e}),t[35]=r,t[36]=e,t[37]=L):L=t[37];let A;t[38]!==d||t[39]!==v||t[40]!==Z||t[41]!==i||t[42]!==j||t[43]!==o||t[44]!==k?(A=d?v?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:o("automations.automationRuns.loadingRuns")}):i.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:o("automations.automationRuns.noRunsTitle"),description:o("automations.automationRuns.noRunsDescription")})}):s.jsxs(Rt,{className:"w-full border-collapse",children:[s.jsx(Nt,{className:"border-b-0",children:s.jsxs(st,{className:"h-9 hover:bg-transparent border-b border-border",children:[s.jsx(G,{className:"pl-4 font-normal text-meta",children:o("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 font-normal text-meta",children:o("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:o("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 font-normal text-meta text-right",children:o("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 font-normal text-meta",children:o("automations.automationRuns.startedHeader")})]})}),s.jsx(Tt,{children:i.map((U,z)=>s.jsx(It,{run:U,usage:k.get(U.id),onClick:()=>j.select(U.id),lastRowRef:z===i.length-1?Z:void 0},U.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:o("automations.automationRuns.noStartersTitle"),description:o("automations.automationRuns.noStartersDescription")})}),t[38]=d,t[39]=v,t[40]=Z,t[41]=i,t[42]=j,t[43]=o,t[44]=k,t[45]=A):A=t[45];let H;t[46]!==u||t[47]!==o?(H=u&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:o("automations.automationRuns.loadingMore")}),t[46]=u,t[47]=o,t[48]=H):H=t[48];let O;t[49]!==j?(O=U=>{U||j.close()},t[49]=j,t[50]=O):O=t[50];let K;t[51]!==w||t[52]!==h||t[53]!==P||t[54]!==a||t[55]!==b||t[56]!==i||t[57]!==V||t[58]!==j.index||t[59]!==j.next||t[60]!==j.prev?(K=V&&s.jsx(wt,{thread:V,client:P,locator:a,connections:w,virtualMcps:h,members:b,nav:{index:j.index,total:i.length,onPrev:j.prev,onNext:j.next}}),t[51]=w,t[52]=h,t[53]=P,t[54]=a,t[55]=b,t[56]=i,t[57]=V,t[58]=j.index,t[59]=j.next,t[60]=j.prev,t[61]=K):K=t[61];let q;t[62]!==K?(q=s.jsx(jt,{className:"sm:max-w-2xl flex flex-col p-0 gap-0",children:K}),t[62]=K,t[63]=q):q=t[63];let F;t[64]!==j.isOpen||t[65]!==O||t[66]!==q?(F=s.jsx(ht,{open:j.isOpen,onOpenChange:O,children:q}),t[64]=j.isOpen,t[65]=O,t[66]=q,t[67]=F):F=t[67];let B;return t[68]!==L||t[69]!==A||t[70]!==H||t[71]!==F?(B=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,A,H,F]}),t[68]=L,t[69]=A,t[70]=H,t[71]=F,t[72]=B):B=t[72],B}function Pt(m){return[m.threadId,{calls:m.calls,inputTokens:m.inputTokens,outputTokens:m.outputTokens,totalTokens:m.totalTokens,costUsd:m.costUsd}]}function _t(m){return m.id}function kt(m){return m.items??[]}function Dt(m,t){const r=m,c=t;if(!((r?.items?.length??0)<W))return c.length*W}export{Vt as A};
@@ -1 +1 @@
1
- import{c as k,j as e,b as $,a4 as D,d as M,r as q,n as d,B as V,h9 as F,E as S}from"./index-BD2-Tfve.js";import{s as G}from"./Plus-B14W9n_P.js";import{i as b}from"./Zap-4X8Ik5ls.js";import{S as H}from"./search-input-DvpyQdwd.js";import{E as T}from"./empty-state-B9QiU_VY.js";import{u as J}from"./use-automations-BEx9jN5g.js";import{u as K}from"./use-navigate-to-agent-DquGUsnU.js";import{A as O}from"./automation-list-row-DjfCNmU2.js";import{a as Q}from"./repository-binding-t2SUt_ly.js";import{R as U}from"./require-capability-BpHMNsFK.js";import"./SearchMd-DDYfB5ME.js";import"./use-mcp-client-Dwx3joSc.js";import"./auth-DZBq7iRr.js";import"./thread-intent-BhJhZ_UP.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bno2kqCn.js";import"./task-board-DVzbOFVa.js";import"./schema-rAmMhTAU.js";import"./badge-DaX-o_aM.js";import"./agent-icon-C4zAUQeZ.js";import"./AlertCircle-BrBujzmj.js";import"./Tool01-D4V2T_mI.js";import"./ArrowUp-Bq_XWrMf.js";import"./ArrowLeft-B2qsUhAF.js";import"./LinkBroken01-BNA4t2nT.js";import"./ShoppingBag01-B4Qpz0kc.js";import"./Globe04-Qb5La101.js";import"./CheckCircle-BrU3KNn_.js";import"./ChevronUp-CxdkHAYX.js";import"./ChevronSelectorVertical-C15U3mNk.js";import"./UserSquare-D6mrj9zR.js";import"./CreditCard01-gy5ViYmH.js";import"./SwitchHorizontal01-B1owjF7D.js";import"./Key01-XBNKfFAD.js";import"./Minus-BQ1U44OY.js";import"./Monitor01-CTMwaVR_.js";import"./Sun-SepDLWMM.js";import"./Play-oyq9OzZ5.js";import"./Trash01-CTl0J4n_.js";import"./Upload01-CE3wDuuV.js";import"./Users01-vnVJQGsa.js";import"./XClose-DWFAtfm6.js";import"./access-gate-CmrYCcY4.js";import"./capability-load-error-De4jloBS.js";function W(){const t=k.c(20),o=$(),{org:c}=D(),{data:y}=J(void 0),g=y===void 0?[]:y,E=Q(),P=K(),f=M(),[x,z]=q.useState(""),h=x.toLowerCase(),A=new Map(E.map(X)),N=g.filter(i=>{if(!h||i.name.toLowerCase().includes(h))return!0;if(i.virtual_mcp_id){const l=A.get(i.virtual_mcp_id);if(l&&l.title.toLowerCase().includes(h))return!0}return!1}),B=(i,l)=>{const R=l&&A.has(l)?l:F(c.id);S("automations_list_row_clicked",{automation_id:i,agent_id:R,source:"settings_automations"}),P(R,{panel:`automation:${i}`})};let p;t[0]!==f||t[1]!==c.slug?(p=()=>{S("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/projects",params:{org:c.slug}})},t[0]=f,t[1]=c.slug,t[2]=p):p=t[2];const L=p,j=d,v=d,w=d;let s;t[3]!==o?(s=o("settings.automations.pageTitle"),t[3]=o,t[4]=s):s=t[4];let r;t[5]!==s?(r=e.jsx(d.Title,{children:s}),t[5]=s,t[6]=r):r=t[6];const C=g.length>0&&e.jsx(H,{value:x,onChange:z,placeholder:o("settings.automations.searchPlaceholder"),className:"w-full md:w-[375px]"});let n;t[7]!==r||t[8]!==C?(n=e.jsxs("div",{className:"flex flex-col gap-6",children:[r,C]}),t[7]=r,t[8]=C,t[9]=n):n=t[9];const _=g.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(b,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.emptyTitle"),description:o("settings.automations.emptyDescription"),actions:e.jsxs(V,{size:"sm",onClick:L,children:[e.jsx(G,{size:14}),o("settings.automations.browseAgentsButton")]})})}):N.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(b,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.noResultsTitle"),description:o("settings.automations.noResultsDescription",{search:x})})}):e.jsx("div",{className:"mt-6 flex flex-col divide-y divide-border overflow-hidden rounded-xl bg-card shadow-edge",children:N.map(i=>e.jsx(O,{automation:i,showAgent:!0,onClick:()=>B(i.id,i.virtual_mcp_id)},i.id))});let a;t[10]!==w.Container||t[11]!==n||t[12]!==_?(a=e.jsxs(w.Container,{children:[n,_]}),t[10]=w.Container,t[11]=n,t[12]=_,t[13]=a):a=t[13];let m;t[14]!==v.Content||t[15]!==a?(m=e.jsx(v.Content,{children:a}),t[14]=v.Content,t[15]=a,t[16]=m):m=t[16];let u;return t[17]!==j||t[18]!==m?(u=e.jsx(j,{children:m}),t[17]=j,t[18]=m,t[19]=u):u=t[19],u}function X(t){return[t.id,t]}function Gt(){const t=k.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(U,{capability:"automations:manage",area:"automations",children:e.jsx(W,{})}),t[0]=o):o=t[0],o}export{Gt as default};
1
+ import{c as k,j as e,b as $,a4 as D,d as M,r as q,n as d,B as V,h9 as F,E as S}from"./index-B1ZvlDM_.js";import{s as G}from"./Plus-BF39I64m.js";import{i as b}from"./Zap-C46fglVd.js";import{S as H}from"./search-input-CxiWeJ7M.js";import{E as T}from"./empty-state-DjPM3fy8.js";import{u as J}from"./use-automations-TW0JJdqx.js";import{u as K}from"./use-navigate-to-agent-BMQllV2g.js";import{A as O}from"./automation-list-row-ldXN7Wg6.js";import{a as Q}from"./repository-binding-CoMozV78.js";import{R as U}from"./require-capability-C9oBXOPC.js";import"./SearchMd-BCaWPluh.js";import"./use-mcp-client-C_baTEme.js";import"./auth-DYk3j3P5.js";import"./thread-intent-BMcVCMdR.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D0y06VhU.js";import"./task-board-CITA4beV.js";import"./schema-PUU_l55-.js";import"./badge-sWV0Lz9X.js";import"./agent-icon-B9ymJOYy.js";import"./AlertCircle-B9jzXYca.js";import"./Tool01-wiKWLRCc.js";import"./ArrowUp-Besm0IZ2.js";import"./ArrowLeft-CZ3DAg0q.js";import"./LinkBroken01-BSh2E4ld.js";import"./ShoppingBag01-WYt5uke3.js";import"./Globe04-DFEQkAAl.js";import"./CheckCircle-Bg_9Wlgi.js";import"./ChevronUp-CM8EW0Js.js";import"./ChevronSelectorVertical-UvFeI9z1.js";import"./UserSquare-CoAnLSHH.js";import"./CreditCard01-Bhqkelsq.js";import"./SwitchHorizontal01-CStChVS2.js";import"./Key01-BfEZ7hLZ.js";import"./Minus-Ctt_tNjY.js";import"./Monitor01-Cp5O9jEx.js";import"./Sun-Dniq03T7.js";import"./Play-DqrEB0p_.js";import"./Trash01-DR_ZbB22.js";import"./Upload01-BNm-Yhgs.js";import"./Users01-BKvz85-q.js";import"./XClose-BH2b2x6k.js";import"./access-gate-CJaU-ahh.js";import"./capability-load-error-DAHIgRW0.js";function W(){const t=k.c(20),o=$(),{org:c}=D(),{data:y}=J(void 0),g=y===void 0?[]:y,E=Q(),P=K(),f=M(),[x,z]=q.useState(""),h=x.toLowerCase(),A=new Map(E.map(X)),N=g.filter(i=>{if(!h||i.name.toLowerCase().includes(h))return!0;if(i.virtual_mcp_id){const l=A.get(i.virtual_mcp_id);if(l&&l.title.toLowerCase().includes(h))return!0}return!1}),B=(i,l)=>{const R=l&&A.has(l)?l:F(c.id);S("automations_list_row_clicked",{automation_id:i,agent_id:R,source:"settings_automations"}),P(R,{panel:`automation:${i}`})};let p;t[0]!==f||t[1]!==c.slug?(p=()=>{S("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/projects",params:{org:c.slug}})},t[0]=f,t[1]=c.slug,t[2]=p):p=t[2];const L=p,j=d,v=d,w=d;let s;t[3]!==o?(s=o("settings.automations.pageTitle"),t[3]=o,t[4]=s):s=t[4];let r;t[5]!==s?(r=e.jsx(d.Title,{children:s}),t[5]=s,t[6]=r):r=t[6];const C=g.length>0&&e.jsx(H,{value:x,onChange:z,placeholder:o("settings.automations.searchPlaceholder"),className:"w-full md:w-[375px]"});let n;t[7]!==r||t[8]!==C?(n=e.jsxs("div",{className:"flex flex-col gap-6",children:[r,C]}),t[7]=r,t[8]=C,t[9]=n):n=t[9];const _=g.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(b,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.emptyTitle"),description:o("settings.automations.emptyDescription"),actions:e.jsxs(V,{size:"sm",onClick:L,children:[e.jsx(G,{size:14}),o("settings.automations.browseAgentsButton")]})})}):N.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(b,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.noResultsTitle"),description:o("settings.automations.noResultsDescription",{search:x})})}):e.jsx("div",{className:"mt-6 flex flex-col divide-y divide-border overflow-hidden rounded-xl bg-card shadow-edge",children:N.map(i=>e.jsx(O,{automation:i,showAgent:!0,onClick:()=>B(i.id,i.virtual_mcp_id)},i.id))});let a;t[10]!==w.Container||t[11]!==n||t[12]!==_?(a=e.jsxs(w.Container,{children:[n,_]}),t[10]=w.Container,t[11]=n,t[12]=_,t[13]=a):a=t[13];let m;t[14]!==v.Content||t[15]!==a?(m=e.jsx(v.Content,{children:a}),t[14]=v.Content,t[15]=a,t[16]=m):m=t[16];let u;return t[17]!==j||t[18]!==m?(u=e.jsx(j,{children:m}),t[17]=j,t[18]=m,t[19]=u):u=t[19],u}function X(t){return[t.id,t]}function Gt(){const t=k.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(U,{capability:"automations:manage",area:"automations",children:e.jsx(W,{})}),t[0]=o):o=t[0],o}export{Gt as default};
@@ -1 +1 @@
1
- import{c as y,f as A,u as w,dg as E,d as V,l as I,dh as T,di as N,as as k}from"./index-BD2-Tfve.js";import{b as O}from"./thread-route-DFmD7mlY.js";import{u as P}from"./use-project-scope-Bv0XQrp-.js";function D(e){const t=e.destination==="agent",n={thread:t?e.previous.thread:void 0,sidepanel:e.previous.sidepanel,autosend:t?e.previous.autosend:void 0};return{...e.update?e.update(n):n,mainpanel:void 0}}function R(){const e=y.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={structuralSharing:!0,select:L},e[0]=t):t=e[0],I(t)}function L(e){for(let t=e.matches.length-1;t>=0;t--){const n=e.matches[t]?.staticData;if(n?.mainView||n?.siteEditorView)return{mainView:n.mainView,siteEditorView:n.siteEditorView}}return{mainView:void 0,siteEditorView:void 0}}function Y(){const e=y.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=A(t);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const a=w(r),o={file:"file"in a&&typeof a.file=="string"?a.file:void 0,key:"key"in a&&typeof a.key=="string"?a.key:void 0,path:"path"in a&&typeof a.path=="string"?a.path:void 0},{mainView:s,siteEditorView:i}=R();return E({mainView:s,siteEditorView:i,params:n,search:o})}function C(){const e=y.c(11),t=V();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const r=A(n),a=O(),o=P(),s=r.org??"";let i;e[1]!==t||e[2]!==s||e[3]!==a||e[4]!==o?(i=(d,c)=>{const h=T(d),v=c?.virtualmcpid!==void 0||o!==null?"project":"organization",S=h.kind==="org-destination"||h.kind==="project-destination"&&v==="organization",_=b=>D({previous:b,destination:S?"organization":"agent",update:c?.search});N(t,{org:s,agentId:c?.virtualmcpid??a,tabId:d,destinationScope:v,taskKey:c?.taskKey,search:_,replace:c?.replace??!0})},e[1]=t,e[2]=s,e[3]=a,e[4]=o,e[5]=i):i=e[5];const f=i;let u;e[6]!==t?(u=d=>t({to:".",search:M,replace:d?.replace??!0}),e[6]=t,e[7]=u):u=e[7];const p=u;let l;return e[8]!==p||e[9]!==f?(l={openPanel:f,closePanel:p},e[8]=p,e[9]=f,e[10]=l):l=e[10],l}function M(e){return{...e,mainpanel:!1,sidepanel:!0}}const j=1e4,F="true",g=2;function m(e,t){return k.chatAutosend(e,t)}function U(e){return e==="pending"||e==="sending"}function x(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const n=t;let r=0;n.status==="sending"?r=n.retryAt===void 0?1:g:n.retryAt!==void 0&&(r=1);const a=n.attempt===void 0?r:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!U(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof a!="number"||!Number.isInteger(a)||a<0||a>g?null:{...t,attempt:a}}function G(e,t,n,r,a=Date.now()){const o={message:r,createdAt:a,status:"pending",attempt:0};return e.setItem(m(t,n),JSON.stringify(o)),o}function K(e,t,n){const r=m(t,n),a=x(e.getItem(r));return a||(e.removeItem(r),null)}function Q(e,t,n,r=Date.now()){const a=m(t,n),o=K(e,t,n);if(!o||o.status!=="pending")return null;if(o.attempt>=g)return e.removeItem(a),null;const s=o.retryAt??o.createdAt;if(r-s>=j)return e.removeItem(a),null;const i={...o,status:"sending",attempt:o.attempt+1};return e.setItem(a,JSON.stringify(i)),{message:i.message,createdAt:i.createdAt,attempt:i.attempt}}function X(e,t,n){e.removeItem(m(t,n))}export{F as A,C as a,X as b,Q as c,D as r,Y as u,G as w};
1
+ import{c as y,f as A,u as w,dg as E,d as V,l as I,dh as T,di as N,as as k}from"./index-B1ZvlDM_.js";import{b as O}from"./thread-route-BX8g4tw-.js";import{u as P}from"./use-project-scope-yhiZWd6i.js";function D(e){const t=e.destination==="agent",n={thread:t?e.previous.thread:void 0,sidepanel:e.previous.sidepanel,autosend:t?e.previous.autosend:void 0};return{...e.update?e.update(n):n,mainpanel:void 0}}function R(){const e=y.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={structuralSharing:!0,select:L},e[0]=t):t=e[0],I(t)}function L(e){for(let t=e.matches.length-1;t>=0;t--){const n=e.matches[t]?.staticData;if(n?.mainView||n?.siteEditorView)return{mainView:n.mainView,siteEditorView:n.siteEditorView}}return{mainView:void 0,siteEditorView:void 0}}function Y(){const e=y.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=A(t);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[1]=r):r=e[1];const a=w(r),o={file:"file"in a&&typeof a.file=="string"?a.file:void 0,key:"key"in a&&typeof a.key=="string"?a.key:void 0,path:"path"in a&&typeof a.path=="string"?a.path:void 0},{mainView:s,siteEditorView:i}=R();return E({mainView:s,siteEditorView:i,params:n,search:o})}function C(){const e=y.c(11),t=V();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const r=A(n),a=O(),o=P(),s=r.org??"";let i;e[1]!==t||e[2]!==s||e[3]!==a||e[4]!==o?(i=(d,c)=>{const h=T(d),v=c?.virtualmcpid!==void 0||o!==null?"project":"organization",S=h.kind==="org-destination"||h.kind==="project-destination"&&v==="organization",_=b=>D({previous:b,destination:S?"organization":"agent",update:c?.search});N(t,{org:s,agentId:c?.virtualmcpid??a,tabId:d,destinationScope:v,taskKey:c?.taskKey,search:_,replace:c?.replace??!0})},e[1]=t,e[2]=s,e[3]=a,e[4]=o,e[5]=i):i=e[5];const f=i;let u;e[6]!==t?(u=d=>t({to:".",search:M,replace:d?.replace??!0}),e[6]=t,e[7]=u):u=e[7];const p=u;let l;return e[8]!==p||e[9]!==f?(l={openPanel:f,closePanel:p},e[8]=p,e[9]=f,e[10]=l):l=e[10],l}function M(e){return{...e,mainpanel:!1,sidepanel:!0}}const j=1e4,F="true",g=2;function m(e,t){return k.chatAutosend(e,t)}function U(e){return e==="pending"||e==="sending"}function x(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const n=t;let r=0;n.status==="sending"?r=n.retryAt===void 0?1:g:n.retryAt!==void 0&&(r=1);const a=n.attempt===void 0?r:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!U(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof a!="number"||!Number.isInteger(a)||a<0||a>g?null:{...t,attempt:a}}function G(e,t,n,r,a=Date.now()){const o={message:r,createdAt:a,status:"pending",attempt:0};return e.setItem(m(t,n),JSON.stringify(o)),o}function K(e,t,n){const r=m(t,n),a=x(e.getItem(r));return a||(e.removeItem(r),null)}function Q(e,t,n,r=Date.now()){const a=m(t,n),o=K(e,t,n);if(!o||o.status!=="pending")return null;if(o.attempt>=g)return e.removeItem(a),null;const s=o.retryAt??o.createdAt;if(r-s>=j)return e.removeItem(a),null;const i={...o,status:"sending",attempt:o.attempt+1};return e.setItem(a,JSON.stringify(i)),{message:i.message,createdAt:i.createdAt,attempt:i.attempt}}function X(e,t,n){e.removeItem(m(t,n))}export{F as A,C as a,X as b,Q as c,D as r,Y as u,G as w};
@@ -1 +1 @@
1
- import{c as b,m as u,j as l,cx as c,cy as p}from"./index-BD2-Tfve.js";const v=p("inline-flex items-center justify-center rounded-full text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1.5 [&>svg]:pointer-events-none focus-ring transition-[color,background-color] overflow-hidden",{variants:{variant:{default:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",neutral:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",secondary:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",success:"bg-success/10 text-success [a&]:hover:bg-success/15",warning:"bg-warning/10 text-warning [a&]:hover:bg-warning/15",destructive:"bg-destructive/10 text-destructive [a&]:hover:bg-destructive/15",agent:"bg-brand-purple-tint text-brand-purple-dark dark:bg-brand-purple/20 dark:text-brand-purple",lime:"bg-brand-lime-tint text-brand-green-dark dark:bg-brand/20 dark:text-brand",info:"bg-brand-blue-tint text-brand-blue-dark dark:bg-brand-blue/20 dark:text-brand-blue",outline:"bg-card shadow-edge text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",muted:"bg-muted text-muted-foreground [a&]:hover:bg-secondary-hover",brand:"bg-brand/30 text-foreground [a&]:hover:bg-brand/40 [button&]:hover:bg-brand/40"},size:{sm:"h-4 gap-1 px-1.5 text-[0.6875rem]",default:"h-5 px-2",lg:"h-6 px-2.5 text-sm [&>svg]:size-3.5",control:"h-7 gap-1.5 pr-3 pl-1.5",icon:"size-5",segmented:"h-7 gap-0 rounded-lg bg-card p-0 shadow-edge"}},defaultVariants:{variant:"default",size:"default"}});function f(g){const e=b.c(14);let t,r,a,s,n;e[0]!==g?({className:t,variant:n,size:a,asChild:s,...r}=g,e[0]=g,e[1]=t,e[2]=r,e[3]=a,e[4]=s,e[5]=n):(t=e[1],r=e[2],a=e[3],s=e[4],n=e[5]);const i=(s===void 0?!1:s)?c:"span";let d;e[6]!==t||e[7]!==a||e[8]!==n?(d=u(v({variant:n,size:a}),t),e[6]=t,e[7]=a,e[8]=n,e[9]=d):d=e[9];let o;return e[10]!==i||e[11]!==r||e[12]!==d?(o=l.jsx(i,{"data-slot":"badge",className:d,...r}),e[10]=i,e[11]=r,e[12]=d,e[13]=o):o=e[13],o}export{f as B};
1
+ import{c as b,m as u,j as l,cx as c,cy as p}from"./index-B1ZvlDM_.js";const v=p("inline-flex items-center justify-center rounded-full text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1.5 [&>svg]:pointer-events-none focus-ring transition-[color,background-color] overflow-hidden",{variants:{variant:{default:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",neutral:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",secondary:"bg-muted text-foreground [a&]:hover:bg-secondary-hover",success:"bg-success/10 text-success [a&]:hover:bg-success/15",warning:"bg-warning/10 text-warning [a&]:hover:bg-warning/15",destructive:"bg-destructive/10 text-destructive [a&]:hover:bg-destructive/15",agent:"bg-brand-purple-tint text-brand-purple-dark dark:bg-brand-purple/20 dark:text-brand-purple",lime:"bg-brand-lime-tint text-brand-green-dark dark:bg-brand/20 dark:text-brand",info:"bg-brand-blue-tint text-brand-blue-dark dark:bg-brand-blue/20 dark:text-brand-blue",outline:"bg-card shadow-edge text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",muted:"bg-muted text-muted-foreground [a&]:hover:bg-secondary-hover",brand:"bg-brand/30 text-foreground [a&]:hover:bg-brand/40 [button&]:hover:bg-brand/40"},size:{sm:"h-4 gap-1 px-1.5 text-[0.6875rem]",default:"h-5 px-2",lg:"h-6 px-2.5 text-sm [&>svg]:size-3.5",control:"h-7 gap-1.5 pr-3 pl-1.5",icon:"size-5",segmented:"h-7 gap-0 rounded-lg bg-card p-0 shadow-edge"}},defaultVariants:{variant:"default",size:"default"}});function f(g){const e=b.c(14);let t,r,a,s,n;e[0]!==g?({className:t,variant:n,size:a,asChild:s,...r}=g,e[0]=g,e[1]=t,e[2]=r,e[3]=a,e[4]=s,e[5]=n):(t=e[1],r=e[2],a=e[3],s=e[4],n=e[5]);const i=(s===void 0?!1:s)?c:"span";let d;e[6]!==t||e[7]!==a||e[8]!==n?(d=u(v({variant:n,size:a}),t),e[6]=t,e[7]=a,e[8]=n,e[9]=d):d=e[9];let o;return e[10]!==i||e[11]!==r||e[12]!==d?(o=l.jsx(i,{"data-slot":"badge",className:d,...r}),e[10]=i,e[11]=r,e[12]=d,e[13]=o):o=e[13],o}export{f as B};