decocms 4.609.1 → 4.609.2

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 (447) hide show
  1. package/dist/client/assets/{AlertCircle-Cey-Gu2p.js → AlertCircle-Dt3GY0Bh.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DeVgGZm_.js → AreaChart-C-iaogOR.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-CwY2wFOb.js → ArrowLeft-YUwyiwVw.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-AGjw7FFR.js → ArrowRight-DenptpQc.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BWhAhOpN.js → ArrowUp-CPULRpjx.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-BAyMHA0X.js → BookOpen01-CxcJv7PA.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-WiyRKxYq.js → CartesianChart-DKQJ8ZHe.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-DhSMXLFZ.js → CategoricalChart-BITTkM6Z.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-rZ8-ur12.js → CheckCircle-7BnmcHqO.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-BZHCO9By.js → ChevronDown-D8DhHnMq.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-DI0h0SW-.js → ChevronSelectorVertical-D-BmJmT0.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-Bj1h3iVu.js → ChevronUp-DXnUGc0S.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-BROAx_v8.js → CreditCard01-BcT6bkOS.js} +1 -1
  14. package/dist/client/assets/{Eye-bNykREZr.js → Eye-DtSBHO9f.js} +1 -1
  15. package/dist/client/assets/{File02-i2jf_qKB.js → File02-CFZGfPVy.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-CLk-zzhP.js → Fingerprint04-De4VufgL.js} +1 -1
  17. package/dist/client/assets/{Globe04-BnukTdin.js → Globe04-DnTwfyGh.js} +1 -1
  18. package/dist/client/assets/{Image01-C9G-4wzm.js → Image01-sXwH8-FK.js} +1 -1
  19. package/dist/client/assets/{Key01-BUf9Mu9I.js → Key01-0BhoHNxq.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-D7MADj3f.js → LayoutLeft-DhcW8L2l.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-CmNqoF-N.js → LinkBroken01-nJS8cN1w.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-DWcPES9w.js → MessageCircle01-DrWlC4OP.js} +1 -1
  23. package/dist/client/assets/{Minus-Bgtih4hT.js → Minus-BnUrCu3K.js} +1 -1
  24. package/dist/client/assets/{Monitor01-CvliL8Fp.js → Monitor01-CMAhieTY.js} +1 -1
  25. package/dist/client/assets/{Play-B4OJ-tfj.js → Play-DGe00qZP.js} +1 -1
  26. package/dist/client/assets/{Plus-YYgZrNmi.js → Plus-BXH7i2b3.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-1HANB-d9.js → ReferenceLine-Ch0qfjOg.js} +1 -1
  28. package/dist/client/assets/{SearchMd-F9uhWb9g.js → SearchMd-DgVjcl_1.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-B7Nh9wXd.js → ShoppingBag01-Blomur-w.js} +1 -1
  30. package/dist/client/assets/{Sun-B6Hoq-WE.js → Sun-BsEDX0xb.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-D0OMZUBx.js → SwitchHorizontal01-z6tySRlC.js} +1 -1
  32. package/dist/client/assets/{Tool01-CJw-0-8J.js → Tool01-DOdYsq79.js} +1 -1
  33. package/dist/client/assets/{Tooltip-CfNJYhxQ.js → Tooltip-BlmkPtAg.js} +1 -1
  34. package/dist/client/assets/{Trash01-ChlYfN0O.js → Trash01-C6DjwKcE.js} +1 -1
  35. package/dist/client/assets/{Upload01-Dfbq4_nT.js → Upload01-BswyIwDw.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-1yBsFo4N.js → UserCheck01-DYJoLz9O.js} +1 -1
  37. package/dist/client/assets/{UserSquare-BuDhGAPX.js → UserSquare-B8TnRXAA.js} +1 -1
  38. package/dist/client/assets/{Users01-c70X-IVE.js → Users01-2WULI_RK.js} +1 -1
  39. package/dist/client/assets/{XClose-D2OKmayB.js → XClose-kwcMavwj.js} +1 -1
  40. package/dist/client/assets/{Zap-DKj3FcQC.js → Zap-CAQ2824E.js} +1 -1
  41. package/dist/client/assets/{access-gate-DP3z_oLr.js → access-gate-D3VbJ5hb.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-D7ORsMGX.js → add-connection-dialog-yj7w7MEx.js} +1 -1
  43. package/dist/client/assets/agent-app-BLWgH57_.js +1 -0
  44. package/dist/client/assets/{agent-assets-DC8g-iqp.js → agent-assets-ZMeuuOY2.js} +1 -1
  45. package/dist/client/assets/agent-automation-DJ00NooN.js +20 -0
  46. package/dist/client/assets/{agent-automations-0puTUMqN.js → agent-automations-Iq079Jmy.js} +1 -1
  47. package/dist/client/assets/agent-blog-CBo8Ngz6.js +2 -0
  48. package/dist/client/assets/{agent-blog-post-DTIcZdL4.js → agent-blog-post-CluN0LI_.js} +2 -2
  49. package/dist/client/assets/agent-business-case-Ckxk5XzB.js +1 -0
  50. package/dist/client/assets/{agent-calendar-kd0TYII2.js → agent-calendar-D2WF756G.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-DwlH-voo.js → agent-capabilities-DDJdPYLQ.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-mYhqkQRX.js → agent-connect-sources-DfPdgSxy.js} +1 -1
  53. package/dist/client/assets/agent-deck-CW1yW8Vm.js +1 -0
  54. package/dist/client/assets/{agent-e2e-CMjIWAbm.js → agent-e2e-4dV5u5EF.js} +1 -1
  55. package/dist/client/assets/agent-experiments-BWVQ9ZHh.js +1 -0
  56. package/dist/client/assets/agent-file-D-TRmaf6.js +1 -0
  57. package/dist/client/assets/{agent-hosting-TYk8mqKi.js → agent-hosting-Cj4zPjoX.js} +1 -1
  58. package/dist/client/assets/{agent-icon-DRRBub2m.js → agent-icon-CH_f-N3x.js} +1 -1
  59. package/dist/client/assets/agent-library-DMIwgJWF.js +1 -0
  60. package/dist/client/assets/agent-library-file-CIrPVVPN.js +1 -0
  61. package/dist/client/assets/agent-overview-BAvllSSA.js +1 -0
  62. package/dist/client/assets/{agent-releases-CJO2ke1o.js → agent-releases-Bdvkby_i.js} +2 -2
  63. package/dist/client/assets/agent-settings-ClWfKZHb.js +1 -0
  64. package/dist/client/assets/{agent-site-editor-BnsQcPAc.js → agent-site-editor-DAwI7Kyr.js} +1 -1
  65. package/dist/client/assets/agent-site-editor-code-DCquxkpu.js +2 -0
  66. package/dist/client/assets/agent-site-editor-content-id2Bex58.js +1 -0
  67. package/dist/client/assets/agent-site-editor-preview-BVLtK2Fr.js +1 -0
  68. package/dist/client/assets/agent-view-Ya3GHsqL.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-DPW8ei-a.js → agent-view-guard-C935KHIb.js} +1 -1
  70. package/dist/client/assets/{ai-providers-DnHyEj2k.js → ai-providers-CqYI8qa5.js} +1 -1
  71. package/dist/client/assets/{alert-C3PLUfLl.js → alert-DWWFKk-5.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-whJfr6eD.js → analytics-sections-D44Na4Nk.js} +1 -1
  73. package/dist/client/assets/api-keys-BJ2V0tem.js +1 -0
  74. package/dist/client/assets/{api-keys-Cp8duQT_.js → api-keys-CCVw99SU.js} +1 -1
  75. package/dist/client/assets/{app-editor-DpUFUmZA.js → app-editor-BhmqaaCu.js} +1 -1
  76. package/dist/client/assets/{asset-utils-B8umaPsh.js → asset-utils-C3Wi1LwR.js} +1 -1
  77. package/dist/client/assets/{auth-BUaNvdpA.js → auth-YQD6gAdb.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-Dym9QDe4.js → auth-catchall-Dmtg29Qo.js} +1 -1
  79. package/dist/client/assets/{auth-entry-ClzBOYGa.js → auth-entry-DsDcbFDM.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-6tyGGCoq.js → auth-split-layout-Cbbrw4Ki.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-CtR-NpYY.js → authenticate-and-persist-oauth-DmyJjsW7.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-Db9GYcZa.js → automation-list-row-CUFPqnO8.js} +1 -1
  83. package/dist/client/assets/{automation-runs-DlXtbmLK.js → automation-runs-BUwZaqPB.js} +1 -1
  84. package/dist/client/assets/{automations-_oIWf8sf.js → automations-C7WLZUZV.js} +1 -1
  85. package/dist/client/assets/{badge-BaAyFkEc.js → badge-BgjvI8Jn.js} +1 -1
  86. package/dist/client/assets/{block-document-YDP1sTvW.js → block-document-BMs5yQbd.js} +1 -1
  87. package/dist/client/assets/{blocks-preview-workspace-context-D6FarzGJ.js → blocks-preview-workspace-context-CFskIuPO.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-BT_LOvuD.js → blocks-tab-states-DBpi4m7n.js} +1 -1
  89. package/dist/client/assets/{blog-preview-url-B6aAWOKn.js → blog-preview-url-PmkO-jQs.js} +1 -1
  90. package/dist/client/assets/{blog-schema-DQaXnD92.js → blog-schema-DPJ6pbPE.js} +1 -1
  91. package/dist/client/assets/{blog-source-gate-BindPMki.js → blog-source-gate-BNTns-Tj.js} +1 -1
  92. package/dist/client/assets/{blog-view-gate-CYie6BAY.js → blog-view-gate-XHO990wv.js} +1 -1
  93. package/dist/client/assets/{buckets-DMfenYPe.js → buckets-FwOH03Y6.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-CvtxL-B4.js → build-improve-prompt-doc-CKSwvFRv.js} +1 -1
  95. package/dist/client/assets/{calendar-DY1KKzzC.js → calendar-BjODMIQG.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-xC7-r_fb.js → capability-load-error-BZgx3S6r.js} +1 -1
  97. package/dist/client/assets/category-editor-D49fYnPR.js +1 -0
  98. package/dist/client/assets/{category-tree-B5YqiUtW.js → category-tree-BRAQfnIe.js} +5 -5
  99. package/dist/client/assets/{chart-DEKRHl06.js → chart-B0EUkF3N.js} +2 -2
  100. package/dist/client/assets/{chat-context-BFkM3RH1.js → chat-context-CtXhrjSm.js} +7 -7
  101. package/dist/client/assets/{chat-draft-D86-9iSe.js → chat-draft-VC3sd6LG.js} +1 -1
  102. package/dist/client/assets/{checkbox-CctYrQbl.js → checkbox-CEz5sveC.js} +1 -1
  103. package/dist/client/assets/{choose-editor-CNoi91MB.js → choose-editor-BxH12yXf.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-DuhnywGb.js → cli-auth-success-BhEsygAu.js} +1 -1
  105. package/dist/client/assets/cms-settings-editor-B-1aq1IS.js +1 -0
  106. package/dist/client/assets/{cms-store-drafts-CJHjR5Q0.js → cms-store-drafts-CHe8Yq48.js} +1 -1
  107. package/dist/client/assets/{collapsible-CvMjT4iX.js → collapsible-BaySCHgb.js} +1 -1
  108. package/dist/client/assets/{collection-detail-BWfo-ipK.js → collection-detail-Dns-hBc0.js} +1 -1
  109. package/dist/client/assets/{collection-display-button-BP0fr6UK.js → collection-display-button-BEirnd5i.js} +1 -1
  110. package/dist/client/assets/{collection-search-jgGx_V4R.js → collection-search-C4zFbPFw.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-BZZJXKLp.js → collection-table-wrapper-BGBEi7W9.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-BEd6YtnB.js → collection-tabs-CJ_TiFfs.js} +1 -1
  113. package/dist/client/assets/{combobox-Cxlxqf8B.js → combobox-YbQYNAI4.js} +1 -1
  114. package/dist/client/assets/{command-Bex6ecVv.js → command-ClLr83k5.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-DQkynDFP.js → companion-mcps-section-u7SmZnvS.js} +1 -1
  116. package/dist/client/assets/{config-C4fObGc9.js → config-VL9iqOxm.js} +1 -1
  117. package/dist/client/assets/{connect-DhMvAIbE.js → connect-B5HJ-dj9.js} +3 -3
  118. package/dist/client/assets/{connect-key-CsAONYhS.js → connect-key-Byohnb78.js} +1 -1
  119. package/dist/client/assets/{connect-layout-CBksTJVP.js → connect-layout-0w96Vn6m.js} +1 -1
  120. package/dist/client/assets/{connect-source-dialog-JgVqPYtS.js → connect-source-dialog-DyTekM4a.js} +1 -1
  121. package/dist/client/assets/{connection-CkovehlP.js → connection-Dk3ZpWiR.js} +1 -1
  122. package/dist/client/assets/{connection-card-D5bwvquU.js → connection-card-X6LBG2kz.js} +1 -1
  123. package/dist/client/assets/{connection-detail-CWBmD0Rz.js → connection-detail-CBLDUNQs.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-GvEPKX9P.js → connection-form-helpers-xYGhC7rS.js} +1 -1
  125. package/dist/client/assets/{connection-slug-DSI9_e9-.js → connection-slug-DDIL8GBP.js} +1 -1
  126. package/dist/client/assets/{connections-DsANhag4.js → connections-CgZzcIpU.js} +1 -1
  127. package/dist/client/assets/{content-changes-4yLy6OJc.js → content-changes-D2Zs24rN.js} +1 -1
  128. package/dist/client/assets/{content-tab-HxxC6S31.js → content-tab-nBcO35Ay.js} +3 -3
  129. package/dist/client/assets/{context-CneMBZCH.js → context-DJXbSIqC.js} +1 -1
  130. package/dist/client/assets/{context-menu-WlxI0hNF.js → context-menu-D6szttzM.js} +1 -1
  131. package/dist/client/assets/{context-shell-DZlBNSaQ.js → context-shell-DucfEXXy.js} +5 -5
  132. package/dist/client/assets/{create-organization-dialog-BEj1BskT.js → create-organization-dialog-CM_u8_eq.js} +1 -1
  133. package/dist/client/assets/{daily-pulse-CxeK53Wz.js → daily-pulse-C9clHv9l.js} +1 -1
  134. package/dist/client/assets/{delete-copy-BTnrc8rx.js → delete-copy-BQdwkEVM.js} +1 -1
  135. package/dist/client/assets/{device-hint-B6VP2dCq.js → device-hint-DU6CIZHu.js} +1 -1
  136. package/dist/client/assets/{discover-D1t_cIN3.js → discover-DPkQbwQq.js} +1 -1
  137. package/dist/client/assets/{domain-settings-DPOCec25.js → domain-settings-1xFiEhJG.js} +1 -1
  138. package/dist/client/assets/{drawer-DtvyIXYW.js → drawer-BqcK626t.js} +1 -1
  139. package/dist/client/assets/{editor-CQlFYT0h.js → editor-ClEwQRn-.js} +2 -2
  140. package/dist/client/assets/{editor-classes-CPY8jiZA.js → editor-classes-DSuutlS7.js} +1 -1
  141. package/dist/client/assets/{empty-state-D_x-G3qZ.js → empty-state-C9z6v98n.js} +1 -1
  142. package/dist/client/assets/{empty-state-Dks4zVEo.js → empty-state-E3VscpRN.js} +1 -1
  143. package/dist/client/assets/{experiments-tab-choice-C2IL-2nC.js → experiments-tab-choice-Di5_08ju.js} +1 -1
  144. package/dist/client/assets/{extract-connection-data-Bh6utcxx.js → extract-connection-data-BVkijTqO.js} +1 -1
  145. package/dist/client/assets/{feature-gate-C0g-1aZ0.js → feature-gate-BVgfJghP.js} +1 -1
  146. package/dist/client/assets/{feature-paywall-0YsVUkDy.js → feature-paywall-CeiuDVrJ.js} +1 -1
  147. package/dist/client/assets/{file-explorer-rcLHSFem.js → file-explorer-HTKMVqMJ.js} +2 -2
  148. package/dist/client/assets/{file-preview-29wQJlRC.js → file-preview-Bjz37LYm.js} +1 -1
  149. package/dist/client/assets/{file-share-button-P03O9eBW.js → file-share-button-DDv7yLFa.js} +1 -1
  150. package/dist/client/assets/{file-type-icon-BQ30L_31.js → file-type-icon-DZ13Kaio.js} +1 -1
  151. package/dist/client/assets/{folder-icon-DRGaXqJl.js → folder-icon-CXfmILS-.js} +1 -1
  152. package/dist/client/assets/{form-D-qv2YcI.js → form-CG-nxH4G.js} +1 -1
  153. package/dist/client/assets/{frame-navigation-B6zpBx4O.js → frame-navigation-By99mATz.js} +1 -1
  154. package/dist/client/assets/{gateway-client-Cgzle8IQ.js → gateway-client-_ucPCL20.js} +1 -1
  155. package/dist/client/assets/general-CPN_jSyx.js +1 -0
  156. package/dist/client/assets/{github-icon-jEHCaqT4.js → github-icon-Q8GJQd2H.js} +1 -1
  157. package/dist/client/assets/{held-block-view-DzfMmCdv.js → held-block-view-CQqo1UsV.js} +1 -1
  158. package/dist/client/assets/{home-C2q4QcB0.js → home-DSubmDCr.js} +1 -1
  159. package/dist/client/assets/{home-overview-COcsu7cy.js → home-overview-CYe7001d.js} +1 -1
  160. package/dist/client/assets/{hosted-reconcile-_0XtG01G.js → hosted-reconcile-DRjsDibm.js} +1 -1
  161. package/dist/client/assets/{icon-button-CUXvwIpW.js → icon-button-BuzP0C4n.js} +1 -1
  162. package/dist/client/assets/{index-BzBgf14a.js → index-B5Vy9pqV.js} +1 -1
  163. package/dist/client/assets/{index-CSRwXUxs.js → index-BDTw_gvo.js} +1 -1
  164. package/dist/client/assets/{index-gE4FIp5p.js → index-BMYIuo3L.js} +1 -1
  165. package/dist/client/assets/{index-BVmvZ535.js → index-BSDvsLw1.js} +2 -2
  166. package/dist/client/assets/{index-DenTD8rf.js → index-BoCsMgEt.js} +1 -1
  167. package/dist/client/assets/{index-BWmtQiPs.js → index-BzVjoBZR.js} +1 -1
  168. package/dist/client/assets/{index-CIPFFKo1.js → index-C5fHI9y5.js} +1 -1
  169. package/dist/client/assets/{index-DLOBLpOT.js → index-CCoda8hy.js} +1 -1
  170. package/dist/client/assets/{index-9cxXahmz.js → index-CM-KaTV3.js} +1 -1
  171. package/dist/client/assets/{index-CPlnO-_b.js → index-CXyc1XRt.js} +1 -1
  172. package/dist/client/assets/{index-Fgm7zmYy.js → index-CaT4JsCE.js} +29 -29
  173. package/dist/client/assets/index-Ccbd_91u.js +1 -0
  174. package/dist/client/assets/{index-CDTuuF44.js → index-Cmw1-PfS.js} +1 -1
  175. package/dist/client/assets/{index-Ci_ftO92.js → index-D-nior4c.js} +1 -1
  176. package/dist/client/assets/{index-ZZaqoQIm.js → index-DUl_f6UU.js} +1 -1
  177. package/dist/client/assets/{index-CEegC8Gu.js → index-qv7etdoP.js} +1 -1
  178. package/dist/client/assets/{index-redirect-CqwDAF4u.js → index-redirect-Cqzj8viF.js} +1 -1
  179. package/dist/client/assets/{index-CEw4iG5C.js → index-zeN-7Cn6.js} +1 -1
  180. package/dist/client/assets/{infiniteQueryObserver-By_3hwLn.js → infiniteQueryObserver-DjmxTVn9.js} +1 -1
  181. package/dist/client/assets/{infra-billing-C6e7TGz1.js → infra-billing-CB7DZfYo.js} +1 -1
  182. package/dist/client/assets/{input-ppNbXakq.js → input-CpxUgj4y.js} +1 -1
  183. package/dist/client/assets/{input-CjCBuYaA.js → input-P7Rufjcy.js} +4 -4
  184. package/dist/client/assets/{integration-icon-4lfLTGyO.js → integration-icon-Dtih4xc7.js} +1 -1
  185. package/dist/client/assets/{item-actions-CGTa6yRF.js → item-actions-BkjvdFq4.js} +1 -1
  186. package/dist/client/assets/{jira-icon-BXHsVESU.js → jira-icon-Gki7sDDq.js} +1 -1
  187. package/dist/client/assets/{label-BJdyJyCx.js → label-BWgTIudr.js} +1 -1
  188. package/dist/client/assets/{layout-B9ewKfoX.js → layout-2b9a92kv.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-CPKMqZSk.js → legacy-admin-welcome-dialog-BZk8Utt6.js} +1 -1
  190. package/dist/client/assets/{legacy-agents-deep-DCCZ68EF.js → legacy-agents-deep-B4-aSX-9.js} +1 -1
  191. package/dist/client/assets/{legacy-main-redirect-BbkiohWA.js → legacy-main-redirect-AdMA-EVm.js} +1 -1
  192. package/dist/client/assets/library-DJBjhiug.js +1 -0
  193. package/dist/client/assets/{library-tab-Bac_WJ-r.js → library-tab-oXjowMBh.js} +3 -3
  194. package/dist/client/assets/{login-Qcnz7i62.js → login-B0pEl3o0.js} +1 -1
  195. package/dist/client/assets/{markdown-Q7Cvbwrg.js → markdown-r449Hfho.js} +1 -1
  196. package/dist/client/assets/{mcp-app-renderer-CMfSn6Mt.js → mcp-app-renderer-YPhCUxxb.js} +2 -2
  197. package/dist/client/assets/{mcp-oauth-DZU5vWeQ.js → mcp-oauth-B4C3DLh4.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-PGTDb-U0.js → mcp-oauth-CqXZxzFC.js} +1 -1
  199. package/dist/client/assets/{members-DxMS10I1.js → members-k-mj-5Va.js} +1 -1
  200. package/dist/client/assets/{memory-CskPKI1Z.js → memory-DXFBSY3B.js} +2 -2
  201. package/dist/client/assets/{mock-board-Bkqaxj3r.js → mock-board-DJRKIS_z.js} +4 -4
  202. package/dist/client/assets/{monaco-editor-DndKqON7.js → monaco-editor-D1CWShG9.js} +2 -2
  203. package/dist/client/assets/{monitoring-CJNZMdoZ.js → monitoring-BWrsMdHd.js} +1 -1
  204. package/dist/client/assets/{monitoring-stats-row-DC0JbToP.js → monitoring-stats-row-Ditvwbem.js} +1 -1
  205. package/dist/client/assets/{multi-select-C1BPWwpX.js → multi-select-DXPjvW15.js} +1 -1
  206. package/dist/client/assets/{mustache-ByQIziUo.js → mustache-BPvtuZ9v.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-CQRiX0dD.js → named-rule-step-Ez1gAQKy.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-DhAu9rw6.js → named-rule-view-Ce8Aki88.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-Df3Ef9ic.js → new-project-dialog-Bf2X9J1F.js} +1 -1
  210. package/dist/client/assets/{new-project-store-FNDvnZuv.js → new-project-store-CcRyCfqt.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-ai-provider-Bk_GIqH3.js → oauth-callback-ai-provider-DAJ1uvU8.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-CEIuNRNR.js → oauth-callback-rmCqKqtn.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-C7J-AQN_.js → oauth-consent-CKBNTNpS.js} +1 -1
  214. package/dist/client/assets/{onboarding-D1TBga7Y.js → onboarding-RLX1WNeL.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-BWXZEO9W.js → openai-conversation-Cs4RFD_j.js} +2 -2
  216. package/dist/client/assets/{optimistic-project-sidebar-views-2TtxEwL_.js → optimistic-project-sidebar-views-DHIvlN7w.js} +1 -1
  217. package/dist/client/assets/{order-monitor-day-Bm3XR1od.js → order-monitor-day-wYgAIb03.js} +1 -1
  218. package/dist/client/assets/{organization-choice-Cq612ilb.js → organization-choice-DF4YsbE1.js} +1 -1
  219. package/dist/client/assets/{orgs-Cb9NbRla.js → orgs-Cpo1HonV.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-DO6B7KtV.js → own-accounts-section-D3b6SI3K.js} +1 -1
  221. package/dist/client/assets/{pair-BXpvuEiO.js → pair-fYdRIvpB.js} +1 -1
  222. package/dist/client/assets/{parse-sections-CKWUFMKm.js → parse-sections-lZ6UNUvT.js} +4 -4
  223. package/dist/client/assets/plan-BGU2134I.js +1 -0
  224. package/dist/client/assets/{plan-ladder-CYnU7D_C.js → plan-ladder-BT6v1KK6.js} +1 -1
  225. package/dist/client/assets/{plan-page-BmWxB825.js → plan-page-DdRlUMZj.js} +2 -2
  226. package/dist/client/assets/{plan-usage-card-BjhAebit.js → plan-usage-card-BhjVJgyo.js} +2 -2
  227. package/dist/client/assets/{popover-BquBMwO0.js → popover-BSXUrcE6.js} +1 -1
  228. package/dist/client/assets/{post-calendar-DZUBOCwK.js → post-calendar-B3grhhbg.js} +1 -1
  229. package/dist/client/assets/{post-editor-B_17A-Y2.js → post-editor-Ch_iIOnp.js} +2 -2
  230. package/dist/client/assets/{preview-content-BqD2Havf.js → preview-content-CBCToI9s.js} +1 -1
  231. package/dist/client/assets/{preview-dialog-BkoRq1j2.js → preview-dialog-CC4_EzSj.js} +1 -1
  232. package/dist/client/assets/{preview-panel-DA0KEdMP.js → preview-panel-YpdH_fuF.js} +1 -1
  233. package/dist/client/assets/{preview-tab-CLVh5H3C.js → preview-tab-CwK2dFzK.js} +4 -4
  234. package/dist/client/assets/{primitives-DCxgnWYh.js → primitives-DNHNToXc.js} +1 -1
  235. package/dist/client/assets/{product-picker-dialog-5iUHFTnW.js → product-picker-dialog-Cj-HJUFE.js} +1 -1
  236. package/dist/client/assets/{profile-ty-A0iwI.js → profile-BB8z9nD6.js} +1 -1
  237. package/dist/client/assets/project-app-view-Cs6lYsxe.js +1 -0
  238. package/dist/client/assets/{project-apps-CqwKrxoo.js → project-apps-DVjGbegU.js} +1 -1
  239. package/dist/client/assets/{project-icon-CvQW2Nj6.js → project-icon-BrcJONBf.js} +1 -1
  240. package/dist/client/assets/{project-index-CvgXGt7x.js → project-index-DkaIO5pU.js} +1 -1
  241. package/dist/client/assets/project-reports-Bq0nT_NV.js +1 -0
  242. package/dist/client/assets/project-tasks-B9M3BGrW.js +1 -0
  243. package/dist/client/assets/{projects-BlDzKIcF.js → projects-DPWDj1Hp.js} +1 -1
  244. package/dist/client/assets/{projects-empty-state-VFLyF8_q.js → projects-empty-state-DwLmM-Bd.js} +1 -1
  245. package/dist/client/assets/{prompts-BWib_qfX.js → prompts-BG6VCS0b.js} +1 -1
  246. package/dist/client/assets/record-editor-B3XMUuBg.js +1 -0
  247. package/dist/client/assets/{redirect-editor-B1HrkK1u.js → redirect-editor-C2qzzTAe.js} +1 -1
  248. package/dist/client/assets/reports-BEraAvpt.js +1 -0
  249. package/dist/client/assets/{reports-CBlkAUj_.js → reports-ftS1CTPN.js} +1 -1
  250. package/dist/client/assets/{reports-onboarding-Dv9mUEBB.js → reports-onboarding-CZH0Mv_h.js} +1 -1
  251. package/dist/client/assets/{reports-tab-DTe7GjAn.js → reports-tab-K95KTCvW.js} +2 -2
  252. package/dist/client/assets/{repositories-BDZkAU4O.js → repositories-BR1ZPeuP.js} +1 -1
  253. package/dist/client/assets/repositories-BoUeqVw4.js +1 -0
  254. package/dist/client/assets/{repository-binding-lbEKlJut.js → repository-binding-BVqJcY39.js} +1 -1
  255. package/dist/client/assets/{repository-picker-Ck7peOQl.js → repository-picker-DWNj0wFN.js} +1 -1
  256. package/dist/client/assets/require-capability-CqlqzXSG.js +1 -0
  257. package/dist/client/assets/{required-auth-layout-C6o-Mqhr.js → required-auth-layout-CRxzoxmw.js} +1 -1
  258. package/dist/client/assets/{reset-password-cYARg8W8.js → reset-password-DanrtyLF.js} +1 -1
  259. package/dist/client/assets/{resizable-D4AskOLA.js → resizable-C9TNCfpu.js} +1 -1
  260. package/dist/client/assets/{resolve-tab-icon-fA-W_k33.js → resolve-tab-icon-DMNzKqRz.js} +1 -1
  261. package/dist/client/assets/{review-settings-gzBs1faT.js → review-settings-Cchlz2PT.js} +1 -1
  262. package/dist/client/assets/{role-color-C1pJ6sDk.js → role-color-BoRz3OOX.js} +1 -1
  263. package/dist/client/assets/{roles-Bh10FT3X.js → roles-DJvkg2rk.js} +1 -1
  264. package/dist/client/assets/{route-tr0r3YpH.js → route-C3OSB4-2.js} +1 -1
  265. package/dist/client/assets/route-DF02kU9q.js +1 -0
  266. package/dist/client/assets/route-Dj7mU5aY.js +1 -0
  267. package/dist/client/assets/{route-page-header-CiQ_cqKz.js → route-page-header-BtKcWz0X.js} +1 -1
  268. package/dist/client/assets/{sandbox-git-api-jcZFTu1X.js → sandbox-git-api-DV2Rps3Q.js} +1 -1
  269. package/dist/client/assets/{sandbox-lifecycle-context-DV3ya5nW.js → sandbox-lifecycle-context-BEJFod31.js} +1 -1
  270. package/dist/client/assets/{save-status-BUd6_wgX.js → save-status-z4LtIZ69.js} +1 -1
  271. package/dist/client/assets/{schema-CJobXDlF.js → schema-Am-4674Q.js} +1 -1
  272. package/dist/client/assets/{schema-DJDfsBwa.js → schema-CBdCZe4x.js} +1 -1
  273. package/dist/client/assets/{scroll-area-n1FTq2ZH.js → scroll-area-Cng2fvWP.js} +1 -1
  274. package/dist/client/assets/{search-input-BSK2p7O8.js → search-input-TR7sI7RN.js} +1 -1
  275. package/dist/client/assets/{search-toggle-CsKp_VzH.js → search-toggle-0rIUYCou.js} +1 -1
  276. package/dist/client/assets/{secret-picker-D6FaPO7L.js → secret-picker-DJowBB1m.js} +1 -1
  277. package/dist/client/assets/{secrets-DXt1_0wv.js → secrets-Ed66n9no.js} +1 -1
  278. package/dist/client/assets/section-array-field-e9ny1D-V.js +1 -0
  279. package/dist/client/assets/{sections-DfD_QwVG.js → sections-IlGnYknl.js} +1 -1
  280. package/dist/client/assets/{sections-editor-Brxl-oFP.js → sections-editor-DfDMtXrY.js} +1 -1
  281. package/dist/client/assets/{select-BMe-h8qX.js → select-CZrUcB4m.js} +1 -1
  282. package/dist/client/assets/{select-model-DTWA6bMz.js → select-model-CTyZTiyK.js} +1 -1
  283. package/dist/client/assets/{seo-editor-jmgTmdwK.js → seo-editor-Dr8_81n_.js} +1 -1
  284. package/dist/client/assets/{separator-BsFT8Y1F.js → separator-DnBo8TF_.js} +1 -1
  285. package/dist/client/assets/{session-runtime-Bud9bZRl.js → session-runtime-C7lRk1bm.js} +1 -1
  286. package/dist/client/assets/settings-tab-BPEuO9Nb.js +1 -0
  287. package/dist/client/assets/{sheet-DaP4rAPT.js → sheet-CF7PsYXH.js} +1 -1
  288. package/dist/client/assets/{shell-layout-DlFDpvrU.js → shell-layout-Dh4-Yy93.js} +1 -1
  289. package/dist/client/assets/{site-draft-actions-3FXwIhGW.js → site-draft-actions-Bl2gM76X.js} +5 -5
  290. package/dist/client/assets/{site-draft-view-Bo8AKoO-.js → site-draft-view-AsxHU4E-.js} +1 -1
  291. package/dist/client/assets/site-editor-BNSO7RL5.js +1 -0
  292. package/dist/client/assets/{site-editor-toast-D8xC3g-v.js → site-editor-toast-BEQHRuj3.js} +1 -1
  293. package/dist/client/assets/{skills-BB5u94cA.js → skills-CNmvamii.js} +1 -1
  294. package/dist/client/assets/{slider-tPKW8pN-.js → slider-DG3ddCcf.js} +1 -1
  295. package/dist/client/assets/{sortable.esm-U_igiQmu.js → sortable.esm-DakfNCWl.js} +1 -1
  296. package/dist/client/assets/{sso-agadNrxn.js → sso-CZJCHXw3.js} +1 -1
  297. package/dist/client/assets/{suggestion-B_cZcHmM.js → suggestion-CyC2sguH.js} +2 -2
  298. package/dist/client/assets/{super-agent-icon-Dy9bX_jb.js → super-agent-icon-Cv1v4K1q.js} +1 -1
  299. package/dist/client/assets/{switch-uOSgX1iv.js → switch-CFYJyn7X.js} +1 -1
  300. package/dist/client/assets/{synced-repos-Bh3xql2I.js → synced-repos-ZehP4MJA.js} +1 -1
  301. package/dist/client/assets/{tab-icon-glyph-CANxNZg5.js → tab-icon-glyph-BnwiRAqQ.js} +1 -1
  302. package/dist/client/assets/{table-YI10Cwky.js → table-BahGaqnh.js} +1 -1
  303. package/dist/client/assets/{tabs-vMcnmFc-.js → tabs-CevBbuWX.js} +1 -1
  304. package/dist/client/assets/{task-board-B-fS99Ej.js → task-board-D4sEZC2J.js} +1 -1
  305. package/dist/client/assets/{task-key-BS7mCBNP.js → task-key-BJmCPG8w.js} +2 -2
  306. package/dist/client/assets/{task-route-vjjOiOgt.js → task-route-C3App6nY.js} +1 -1
  307. package/dist/client/assets/{task-status-VsndEQa5.js → task-status-BRcYy_b3.js} +1 -1
  308. package/dist/client/assets/{taskboard-analytics--FLwRfCX.js → taskboard-analytics-DoXPramT.js} +1 -1
  309. package/dist/client/assets/tasks-DOZuoGKL.js +1 -0
  310. package/dist/client/assets/{tasks-BbnCwSwH.js → tasks-DszGSYGn.js} +3 -3
  311. package/dist/client/assets/{textarea-CJ15evPb.js → textarea-CDH6DEPF.js} +1 -1
  312. package/dist/client/assets/{thread-analytics-C78YUeC9.js → thread-analytics-JqF9lP4x.js} +1 -1
  313. package/dist/client/assets/{thread-button-CyHrtJKC.js → thread-button-BAd68SAf.js} +1 -1
  314. package/dist/client/assets/{thread-intent-9WIfgb7-.js → thread-intent-yju7EkUf.js} +4 -4
  315. package/dist/client/assets/{thread-route-C5E3_1nb.js → thread-route-BX6inU_N.js} +1 -1
  316. package/dist/client/assets/{thread-route-Cfugoaug.js → thread-route-BYmLVBsa.js} +1 -1
  317. package/dist/client/assets/{thread-sheet-body-DDNcLbRN.js → thread-sheet-body-Dw_TM17U.js} +1 -1
  318. package/dist/client/assets/{time-range-picker-BGPiwu9P.js → time-range-picker-hyR_HtS6.js} +1 -1
  319. package/dist/client/assets/{toggle-group-CcWCr68l.js → toggle-group-xl-tep-u.js} +1 -1
  320. package/dist/client/assets/{tool-set-selector-DsikOUzI.js → tool-set-selector-C1CP18jT.js} +1 -1
  321. package/dist/client/assets/{toolbar-icon-button-B8rqLyGE.js → toolbar-icon-button-uyi5Sobp.js} +1 -1
  322. package/dist/client/assets/{tooltip-B7FvSnjj.js → tooltip-C-37wWLH.js} +1 -1
  323. package/dist/client/assets/{tooltipContext-DRKiVCO_.js → tooltipContext-TeVhWC1F.js} +1 -1
  324. package/dist/client/assets/{track-D7sz0XfI.js → track-XaM8gmGf.js} +1 -1
  325. package/dist/client/assets/{types-uw_OAa_1.js → types-B3fBNTfg.js} +3 -3
  326. package/dist/client/assets/{url-slug-Dxx2wYAY.js → url-slug-BYlcIr9o.js} +1 -1
  327. package/dist/client/assets/{usage-stats-Xds5vdds.js → usage-stats-eYkU9yPk.js} +1 -1
  328. package/dist/client/assets/use-ai-providers-bUEURX0w.js +1 -0
  329. package/dist/client/assets/{use-api-keys-BL8wcMhx.js → use-api-keys-2PbXwDnW.js} +1 -1
  330. package/dist/client/assets/{use-apply-named-rule-CKhEVPXl.js → use-apply-named-rule-Ds-O2qrV.js} +1 -1
  331. package/dist/client/assets/use-ask-in-chat-Dk1eKQ7U.js +1 -0
  332. package/dist/client/assets/{use-automations-9UyV70Lz.js → use-automations-DYXtS06g.js} +1 -1
  333. package/dist/client/assets/{use-autosave-DkrYKZZ0.js → use-autosave-DeA6ij_2.js} +1 -1
  334. package/dist/client/assets/use-blocks-v8-project-BIWQ4f6h.js +1 -0
  335. package/dist/client/assets/use-blog-view-BpUj7Xe1.js +1 -0
  336. package/dist/client/assets/{use-chat-layout-state-D1jM9gQx.js → use-chat-layout-state-BvzCvk0o.js} +1 -1
  337. package/dist/client/assets/{use-cms-publish-actions-CrGMZ0FN.js → use-cms-publish-actions-DcVrTizG.js} +6 -6
  338. package/dist/client/assets/{use-connect-companion-DsfBbABC.js → use-connect-companion-Dtig4TU7.js} +1 -1
  339. package/dist/client/assets/{use-connection-DqHrubFY.js → use-connection-CiK8c3Rq.js} +1 -1
  340. package/dist/client/assets/{use-content-sync-Cik0sUn6.js → use-content-sync-C_bHHCMZ.js} +1 -1
  341. package/dist/client/assets/{use-copy-BpswlCJy.js → use-copy-3Av1V_Lb.js} +1 -1
  342. package/dist/client/assets/{use-current-view-D3LaktZj.js → use-current-view-Ce-uPUNE.js} +1 -1
  343. package/dist/client/assets/{use-date-fns-locale-CPhp1iUW.js → use-date-fns-locale-B5HtkTCa.js} +1 -1
  344. package/dist/client/assets/{use-debounced-autosave-DDf43-uR.js → use-debounced-autosave-CTQmD-RA.js} +1 -1
  345. package/dist/client/assets/{use-debounced-value-dS4KTSB8.js → use-debounced-value-5Xxz9sDf.js} +1 -1
  346. package/dist/client/assets/use-deco-credits-BhK3nU70.js +1 -0
  347. package/dist/client/assets/{use-decopilot-events-Bjtu31mZ.js → use-decopilot-events-_641Ov59.js} +1 -1
  348. package/dist/client/assets/{use-delete-block-gofe5SFp.js → use-delete-block-CtZrW5Tp.js} +1 -1
  349. package/dist/client/assets/use-delete-connection-YQsC5kJ2.js +1 -0
  350. package/dist/client/assets/{use-deployment-admin-77LAIsnw.js → use-deployment-admin-r26zz2q8.js} +1 -1
  351. package/dist/client/assets/{use-entitlements-UbzuATmF.js → use-entitlements-D7RtNoTI.js} +1 -1
  352. package/dist/client/assets/{use-fast-preview-draft-url-DX5D3ENY.js → use-fast-preview-draft-url-DGbqLmFw.js} +1 -1
  353. package/dist/client/assets/{use-file-configs-BPtHwSuZ.js → use-file-configs-BfS0tPOy.js} +1 -1
  354. package/dist/client/assets/{use-id-selection-C4fuZY8-.js → use-id-selection-q4gmzD-G.js} +1 -1
  355. package/dist/client/assets/{use-in-settings-B08p0eQi.js → use-in-settings-CwiXXVnc.js} +1 -1
  356. package/dist/client/assets/{use-inbox-feed-Wx2VkdKy.js → use-inbox-feed-5l9MLvEO.js} +1 -1
  357. package/dist/client/assets/{use-infinite-scroll-DSr33Sjt.js → use-infinite-scroll-DCsViXEp.js} +1 -1
  358. package/dist/client/assets/{use-join-requests-LJfNksp1.js → use-join-requests-DBf1oGZ9.js} +1 -1
  359. package/dist/client/assets/{use-main-panel-tabs-C5Dcmv_m.js → use-main-panel-tabs-X90T9xKg.js} +1 -1
  360. package/dist/client/assets/{use-mcp-auth-status-DvGL0gkI.js → use-mcp-auth-status-DUsZigI7.js} +1 -1
  361. package/dist/client/assets/{use-mcp-client-BG_HKvwm.js → use-mcp-client-CTvio_L5.js} +1 -1
  362. package/dist/client/assets/{use-mcp-prompts-C7L-r_8y.js → use-mcp-prompts-CEPCAgjv.js} +1 -1
  363. package/dist/client/assets/{use-mcp-tools-CRvjxt5m.js → use-mcp-tools-BE_ZMsjl.js} +1 -1
  364. package/dist/client/assets/{use-mobile-BE3SF3bi.js → use-mobile-CLhCB1ec.js} +1 -1
  365. package/dist/client/assets/{use-move-blocks-C3OXHa9y.js → use-move-blocks-DWud6YXb.js} +1 -1
  366. package/dist/client/assets/{use-navigate-to-agent-CycEyX5j.js → use-navigate-to-agent-DqZ2afZ_.js} +1 -1
  367. package/dist/client/assets/{use-never-published-0rwjRO2k.js → use-never-published-CDMbsQXF.js} +1 -1
  368. package/dist/client/assets/{use-org-fs-D6brhG93.js → use-org-fs-cNPBBpNZ.js} +1 -1
  369. package/dist/client/assets/use-org-notice-CUXeWF9K.js +1 -0
  370. package/dist/client/assets/{use-org-repo-syncs-DL0tq73Q.js → use-org-repo-syncs-D9cEubUP.js} +1 -1
  371. package/dist/client/assets/{use-org-sso-Cn-eNiwi.js → use-org-sso-DwhYKe5K.js} +1 -1
  372. package/dist/client/assets/{use-organization-settings-3BJ8eq8J.js → use-organization-settings-DsOm4fQ2.js} +1 -1
  373. package/dist/client/assets/{use-panel-navigate-D3vqjJxS.js → use-panel-navigate-B5d8StTT.js} +1 -1
  374. package/dist/client/assets/{use-project-native-view-presence-CknDvRDg.js → use-project-native-view-presence-DLzue4pE.js} +1 -1
  375. package/dist/client/assets/{use-project-scope-BhybDVcp.js → use-project-scope-DD2NBlJU.js} +1 -1
  376. package/dist/client/assets/{use-recent-apps-ByhQeDoH.js → use-recent-apps-IXQff8O-.js} +1 -1
  377. package/dist/client/assets/{use-reports-diagnostic-D5dojV-Q.js → use-reports-diagnostic-DwPRH9dQ.js} +1 -1
  378. package/dist/client/assets/{use-sandbox-events-BN1GiDcj.js → use-sandbox-events-DezOKcND.js} +2 -2
  379. package/dist/client/assets/{use-secrets-Bbh0GFnU.js → use-secrets-DnrAThmr.js} +1 -1
  380. package/dist/client/assets/{use-section-preview-base-BeNdPacJ.js → use-section-preview-base-BLAISjiC.js} +1 -1
  381. package/dist/client/assets/{use-sidebar-collapsed-CplWohgV.js → use-sidebar-collapsed-D7vF4wTU.js} +1 -1
  382. package/dist/client/assets/{use-tags-BcNi9Weu.js → use-tags-Cl8tsgI9.js} +1 -1
  383. package/dist/client/assets/{use-task-board-analytics-RV0eASYk.js → use-task-board-analytics-C7Gx2NpK.js} +1 -1
  384. package/dist/client/assets/{use-task-board-item-prs-Btc4mYO4.js → use-task-board-item-prs-EGNEHlXU.js} +1 -1
  385. package/dist/client/assets/{use-task-board-items-CeR-SLJJ.js → use-task-board-items-DBI-S1K4.js} +1 -1
  386. package/dist/client/assets/{use-task-board-prompts-DFIdwSKM.js → use-task-board-prompts-CvGpBCID.js} +1 -1
  387. package/dist/client/assets/{use-task-metadata-MXtdnwbG.js → use-task-metadata-mXn3J_39.js} +1 -1
  388. package/dist/client/assets/{use-thread-outputs-SALCy4s0.js → use-thread-outputs-C3HzAtJ7.js} +1 -1
  389. package/dist/client/assets/{use-view-draft-kind-CzCROAfa.js → use-view-draft-kind-CQgXNieu.js} +1 -1
  390. package/dist/client/assets/{use-voice-input-Cu7PKdCQ.js → use-voice-input-CFCuPvYA.js} +1 -1
  391. package/dist/client/assets/useInfiniteQuery-Cark_fFU.js +1 -0
  392. package/dist/client/assets/{useQueries-CBEKdqQN.js → useQueries-D8baGR42.js} +1 -1
  393. package/dist/client/assets/useSuspenseInfiniteQuery-Cnb2unAB.js +1 -0
  394. package/dist/client/assets/{users-54CtyHNd.js → users-BVT97EjV.js} +1 -1
  395. package/dist/client/assets/{utils-BBeAfwm2.js → utils-DT9H-K9H.js} +1 -1
  396. package/dist/client/assets/{variant-calendar-CrH9u9QE.js → variant-calendar-BbK_wqOd.js} +1 -1
  397. package/dist/client/assets/{variant-matcher-override-CWZz4U6o.js → variant-matcher-override-Dt7nYHUe.js} +1 -1
  398. package/dist/client/assets/{view-header-BWUYl7l0.js → view-header-D_odaMiu.js} +1 -1
  399. package/dist/client/assets/{virtual-mcp-Cmyz9P8c.js → virtual-mcp-C45xWPBS.js} +1 -1
  400. package/dist/client/assets/{watch-sse-pool-CySPhUJy.js → watch-sse-pool-BU2YQMB0.js} +1 -1
  401. package/dist/client/index.html +1 -1
  402. package/dist/server/server.js +1 -1
  403. package/package.json +1 -1
  404. package/dist/client/assets/agent-app-CkBzKBeM.js +0 -1
  405. package/dist/client/assets/agent-automation-QdHwUd40.js +0 -20
  406. package/dist/client/assets/agent-blog-5OGXkAhq.js +0 -2
  407. package/dist/client/assets/agent-business-case-5-A3gYTM.js +0 -1
  408. package/dist/client/assets/agent-deck-C2CCzqf8.js +0 -1
  409. package/dist/client/assets/agent-experiments-DaNBZx5a.js +0 -1
  410. package/dist/client/assets/agent-file-kdPBJsb8.js +0 -1
  411. package/dist/client/assets/agent-library-CuuumXrT.js +0 -1
  412. package/dist/client/assets/agent-library-file-Do_BHW_u.js +0 -1
  413. package/dist/client/assets/agent-overview-CL_m8dKV.js +0 -1
  414. package/dist/client/assets/agent-settings-DrjzCBvn.js +0 -1
  415. package/dist/client/assets/agent-site-editor-code-Cab10fIt.js +0 -2
  416. package/dist/client/assets/agent-site-editor-content-C0REiQyC.js +0 -1
  417. package/dist/client/assets/agent-site-editor-preview-C7BNKCGS.js +0 -1
  418. package/dist/client/assets/agent-view-DscrQvj9.js +0 -1
  419. package/dist/client/assets/api-keys-DtWxXIPP.js +0 -1
  420. package/dist/client/assets/category-editor-CGWdtuUt.js +0 -1
  421. package/dist/client/assets/cms-settings-editor-DqP-BBw9.js +0 -1
  422. package/dist/client/assets/general-B6oDJ_jK.js +0 -1
  423. package/dist/client/assets/index-D2nbhnbY.js +0 -1
  424. package/dist/client/assets/library-C-cb28gH.js +0 -1
  425. package/dist/client/assets/plan-CvaUK2PP.js +0 -1
  426. package/dist/client/assets/project-app-view-CYfVZlDr.js +0 -1
  427. package/dist/client/assets/project-reports-0iMG0hgv.js +0 -1
  428. package/dist/client/assets/project-tasks-B_YAEODh.js +0 -1
  429. package/dist/client/assets/record-editor-krPn42KU.js +0 -1
  430. package/dist/client/assets/reports-CCv2Y0N1.js +0 -1
  431. package/dist/client/assets/repositories-CyhjTIye.js +0 -1
  432. package/dist/client/assets/require-capability-DTf2ckfj.js +0 -1
  433. package/dist/client/assets/route-D8qR82TX.js +0 -1
  434. package/dist/client/assets/route-DW58rLu6.js +0 -1
  435. package/dist/client/assets/section-array-field-DhtcANz2.js +0 -1
  436. package/dist/client/assets/settings-tab-YV_G0cSn.js +0 -1
  437. package/dist/client/assets/site-editor-C6QtzI6k.js +0 -1
  438. package/dist/client/assets/tasks-CAXz3c5s.js +0 -1
  439. package/dist/client/assets/use-ai-providers-CSnbY5Do.js +0 -1
  440. package/dist/client/assets/use-ask-in-chat-jMrFjooz.js +0 -1
  441. package/dist/client/assets/use-blocks-v8-project-B3Lx8Pf8.js +0 -1
  442. package/dist/client/assets/use-blog-view-CxBF6teb.js +0 -1
  443. package/dist/client/assets/use-deco-credits-ChsD2XYp.js +0 -1
  444. package/dist/client/assets/use-delete-connection-CpUXCInk.js +0 -1
  445. package/dist/client/assets/use-org-notice-D6mFm7CW.js +0 -1
  446. package/dist/client/assets/useInfiniteQuery-KgwFJp3D.js +0 -1
  447. package/dist/client/assets/useSuspenseInfiniteQuery-Cssv4Ue7.js +0 -1
@@ -1 +1 @@
1
- import{bH as v,bI as $,bJ as W,bK as H,bL as V,bM as y,bN as D,bO as x,bP as E,bQ as q,bR as j,bS as N,bT as B,bU as Z,bV as F}from"./index-Fgm7zmYy.js";function J(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function G({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return a.startsWith(i)}class pe extends Error{constructor(t){super(t??"Unauthorized")}}function K(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function Q(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&K(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function Y(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":X(a,i,n);return;case"client_secret_post":ee(a,i,r);return;case"none":te(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function X(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function ee(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function te(e,t){t.set("client_id",e)}async function L(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=B.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:s}=r,o=Z[a]||y;return new o(i||"",s)}catch(r){const a=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new y(a)}}async function _e(e,t){try{return await U(e,t)}catch(n){if(n instanceof v||n instanceof $)return await e.invalidateCredentials?.("all"),await U(e,t);if(n instanceof W)return await e.invalidateCredentials?.("tokens"),await U(e,t);throw n}}async function U(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:a,fetchFn:i}){const s=await e.discoveryState?.();let o,c,u,h=a;if(!h&&s?.resourceMetadataUrl&&(h=new URL(s.resourceMetadataUrl)),s?.authorizationServerUrl){if(c=s.authorizationServerUrl,o=s.resourceMetadata,u=s.authorizationServerMetadata??await T(c,{fetchFn:i}),!o)try{o=await M(t,{resourceMetadataUrl:h},i)}catch{}(u!==s.authorizationServerMetadata||o!==s.resourceMetadata)&&await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}else{const l=await ce(t,{resourceMetadataUrl:h,fetchFn:i});c=l.authorizationServerUrl,u=l.authorizationServerMetadata,o=l.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}const f=await re(t,e,o),A=r||o?.scopes_supported?.join(" ")||e.clientMetadata.scope;let d=await Promise.resolve(e.clientInformation());if(!d){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const l=u?.client_id_metadata_document_supported===!0,w=e.clientMetadataUrl;if(w&&!ne(w))throw new H(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${w}`);if(l&&w)d={client_id:w},await e.saveClientInformation?.(d);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const k=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(k),d=k}}const O=!e.redirectUrl;if(n!==void 0||O){const l=await he(e,c,{metadata:u,resource:f,authorizationCode:n,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}const S=await e.tokens();if(S?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:S.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof V)||l instanceof y))throw l}const C=e.state?await e.state():void 0,{authorizationUrl:z,codeVerifier:I}=await ue(c,{metadata:u,clientInformation:d,state:C,redirectUrl:e.redirectUrl,scope:A,resource:f});return await e.saveCodeVerifier(I),await e.redirectToAuthorization(z),"REDIRECT"}function ne(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function re(e,t,n){const r=J(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!G({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function Ue(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return{};const a=m(e,"resource_metadata")||void 0;let i;if(a)try{i=new URL(a)}catch{}const s=m(e,"scope")||void 0,o=m(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:o}}function m(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const r=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),a=n.match(r);return a?a[1]||a[2]:null}async function M(e,t,n=fetch){const r=await ie(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw await r?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw await r.body?.cancel(),new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return q.parse(await r.json())}async function R(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?R(e,void 0,n):void 0;throw r}}function ae(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function b(e,t,n=fetch){return await R(e,{"MCP-Protocol-Version":t},n)}function oe(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function ie(e,t,n,r){const a=new URL(e),i=r?.protocolVersion??E;let s;if(r?.metadataUrl)s=new URL(r.metadataUrl);else{const c=ae(t,a.pathname);s=new URL(c,r?.metadataServerUrl??a),s.search=a.search}let o=await b(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await b(c,i,n)}return o}function se(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let a=t.pathname;return a.endsWith("/")&&(a=a.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${a}`,t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${a}`,t.origin),type:"oidc"}),r.push({url:new URL(`${a}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function T(e,{fetchFn:t=fetch,protocolVersion:n=E}={}){const r={"MCP-Protocol-Version":n,Accept:"application/json"},a=se(e);for(const{url:i,type:s}of a){const o=await R(i,r,t);if(o){if(!o.ok){if(await o.body?.cancel(),o.status>=400&&o.status<500)continue;throw new Error(`HTTP ${o.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return s==="oauth"?D.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await M(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||(r=String(new URL("/",e)));const a=await T(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:a,resourceMetadata:n}}async function ue(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:a,state:i,resource:s}){let o;if(t){if(o=new URL(t.authorization_endpoint),!t.response_types_supported.includes(p))throw new Error(`Incompatible auth server: does not support response type ${p}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(_))throw new Error(`Incompatible auth server: does not support code challenge method ${_}`)}else o=new URL("/authorize",e);const c=await N(),u=c.code_verifier,h=c.code_challenge;return o.searchParams.set("response_type",p),o.searchParams.set("client_id",n.client_id),o.searchParams.set("code_challenge",h),o.searchParams.set("code_challenge_method",_),o.searchParams.set("redirect_uri",String(r)),i&&o.searchParams.set("state",i),a&&o.searchParams.set("scope",a),a?.includes("offline_access")&&o.searchParams.append("prompt","consent"),s&&o.searchParams.set("resource",s.href),{authorizationUrl:o,codeVerifier:u}}function P(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function g(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:a,resource:i,fetchFn:s}){const o=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),c=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&n.set("resource",i.href),a)await a(c,n,o,t);else if(r){const h=t?.token_endpoint_auth_methods_supported??[],f=Q(r,h);Y(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await L(u);return F.parse(await u.json())}async function me(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:a,redirectUri:i,resource:s,addClientAuthentication:o,fetchFn:c}){const u=P(r,a,i);return g(e,{metadata:t,tokenRequestParams:u,clientInformation:n,addClientAuthentication:o,resource:s,fetchFn:c})}async function le(e,{metadata:t,clientInformation:n,refreshToken:r,resource:a,addClientAuthentication:i,fetchFn:s}){const o=new URLSearchParams({grant_type:"refresh_token",refresh_token:r}),c=await g(e,{metadata:t,tokenRequestParams:o,clientInformation:n,addClientAuthentication:i,resource:a,fetchFn:s});return{refresh_token:r,...c}}async function he(e,t,{metadata:n,resource:r,authorizationCode:a,fetchFn:i}={}){const s=e.clientMetadata.scope;let o;if(e.prepareTokenRequest&&(o=await e.prepareTokenRequest(s)),!o){if(!a)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const u=await e.codeVerifier();o=P(a,u,e.redirectUrl)}const c=await e.clientInformation();return g(t,{metadata:n,tokenRequestParams:o,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:i})}async function de(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:a}){let i;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");i=new URL(t.registration_endpoint)}else i=new URL("/register",e);const s=await(a??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...r!==void 0?{scope:r}:{}})});if(!s.ok)throw await L(s);return j.parse(await s.json())}export{pe as U,T as a,_e as b,Ue as c,M as d,me as e};
1
+ import{bK as v,bL as $,bM as W,bN as H,bO as V,bP as y,bQ as D,bR as x,bS as E,bT as q,bU as j,bV as N,bW as B,bX as Z,bY as F}from"./index-CaT4JsCE.js";function G(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function J({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return a.startsWith(i)}class pe extends Error{constructor(t){super(t??"Unauthorized")}}function Y(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function K(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&Y(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function Q(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":X(a,i,n);return;case"client_secret_post":ee(a,i,r);return;case"none":te(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function X(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function ee(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function te(e,t){t.set("client_id",e)}async function L(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=B.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:s}=r,o=Z[a]||y;return new o(i||"",s)}catch(r){const a=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new y(a)}}async function _e(e,t){try{return await U(e,t)}catch(n){if(n instanceof v||n instanceof $)return await e.invalidateCredentials?.("all"),await U(e,t);if(n instanceof W)return await e.invalidateCredentials?.("tokens"),await U(e,t);throw n}}async function U(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:a,fetchFn:i}){const s=await e.discoveryState?.();let o,c,u,h=a;if(!h&&s?.resourceMetadataUrl&&(h=new URL(s.resourceMetadataUrl)),s?.authorizationServerUrl){if(c=s.authorizationServerUrl,o=s.resourceMetadata,u=s.authorizationServerMetadata??await T(c,{fetchFn:i}),!o)try{o=await M(t,{resourceMetadataUrl:h},i)}catch{}(u!==s.authorizationServerMetadata||o!==s.resourceMetadata)&&await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}else{const l=await ce(t,{resourceMetadataUrl:h,fetchFn:i});c=l.authorizationServerUrl,u=l.authorizationServerMetadata,o=l.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}const f=await re(t,e,o),A=r||o?.scopes_supported?.join(" ")||e.clientMetadata.scope;let d=await Promise.resolve(e.clientInformation());if(!d){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const l=u?.client_id_metadata_document_supported===!0,w=e.clientMetadataUrl;if(w&&!ne(w))throw new H(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${w}`);if(l&&w)d={client_id:w},await e.saveClientInformation?.(d);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const k=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(k),d=k}}const O=!e.redirectUrl;if(n!==void 0||O){const l=await he(e,c,{metadata:u,resource:f,authorizationCode:n,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}const S=await e.tokens();if(S?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:S.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof V)||l instanceof y))throw l}const C=e.state?await e.state():void 0,{authorizationUrl:z,codeVerifier:I}=await ue(c,{metadata:u,clientInformation:d,state:C,redirectUrl:e.redirectUrl,scope:A,resource:f});return await e.saveCodeVerifier(I),await e.redirectToAuthorization(z),"REDIRECT"}function ne(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function re(e,t,n){const r=G(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!J({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function Ue(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return{};const a=m(e,"resource_metadata")||void 0;let i;if(a)try{i=new URL(a)}catch{}const s=m(e,"scope")||void 0,o=m(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:o}}function m(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const r=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),a=n.match(r);return a?a[1]||a[2]:null}async function M(e,t,n=fetch){const r=await ie(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw await r?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw await r.body?.cancel(),new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return q.parse(await r.json())}async function R(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?R(e,void 0,n):void 0;throw r}}function ae(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function b(e,t,n=fetch){return await R(e,{"MCP-Protocol-Version":t},n)}function oe(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function ie(e,t,n,r){const a=new URL(e),i=r?.protocolVersion??E;let s;if(r?.metadataUrl)s=new URL(r.metadataUrl);else{const c=ae(t,a.pathname);s=new URL(c,r?.metadataServerUrl??a),s.search=a.search}let o=await b(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await b(c,i,n)}return o}function se(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let a=t.pathname;return a.endsWith("/")&&(a=a.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${a}`,t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${a}`,t.origin),type:"oidc"}),r.push({url:new URL(`${a}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function T(e,{fetchFn:t=fetch,protocolVersion:n=E}={}){const r={"MCP-Protocol-Version":n,Accept:"application/json"},a=se(e);for(const{url:i,type:s}of a){const o=await R(i,r,t);if(o){if(!o.ok){if(await o.body?.cancel(),o.status>=400&&o.status<500)continue;throw new Error(`HTTP ${o.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return s==="oauth"?D.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await M(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||(r=String(new URL("/",e)));const a=await T(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:a,resourceMetadata:n}}async function ue(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:a,state:i,resource:s}){let o;if(t){if(o=new URL(t.authorization_endpoint),!t.response_types_supported.includes(p))throw new Error(`Incompatible auth server: does not support response type ${p}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(_))throw new Error(`Incompatible auth server: does not support code challenge method ${_}`)}else o=new URL("/authorize",e);const c=await N(),u=c.code_verifier,h=c.code_challenge;return o.searchParams.set("response_type",p),o.searchParams.set("client_id",n.client_id),o.searchParams.set("code_challenge",h),o.searchParams.set("code_challenge_method",_),o.searchParams.set("redirect_uri",String(r)),i&&o.searchParams.set("state",i),a&&o.searchParams.set("scope",a),a?.includes("offline_access")&&o.searchParams.append("prompt","consent"),s&&o.searchParams.set("resource",s.href),{authorizationUrl:o,codeVerifier:u}}function P(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function g(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:a,resource:i,fetchFn:s}){const o=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),c=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&n.set("resource",i.href),a)await a(c,n,o,t);else if(r){const h=t?.token_endpoint_auth_methods_supported??[],f=K(r,h);Q(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await L(u);return F.parse(await u.json())}async function me(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:a,redirectUri:i,resource:s,addClientAuthentication:o,fetchFn:c}){const u=P(r,a,i);return g(e,{metadata:t,tokenRequestParams:u,clientInformation:n,addClientAuthentication:o,resource:s,fetchFn:c})}async function le(e,{metadata:t,clientInformation:n,refreshToken:r,resource:a,addClientAuthentication:i,fetchFn:s}){const o=new URLSearchParams({grant_type:"refresh_token",refresh_token:r}),c=await g(e,{metadata:t,tokenRequestParams:o,clientInformation:n,addClientAuthentication:i,resource:a,fetchFn:s});return{refresh_token:r,...c}}async function he(e,t,{metadata:n,resource:r,authorizationCode:a,fetchFn:i}={}){const s=e.clientMetadata.scope;let o;if(e.prepareTokenRequest&&(o=await e.prepareTokenRequest(s)),!o){if(!a)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const u=await e.codeVerifier();o=P(a,u,e.redirectUrl)}const c=await e.clientInformation();return g(t,{metadata:n,tokenRequestParams:o,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:i})}async function de(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:a}){let i;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");i=new URL(t.registration_endpoint)}else i=new URL("/register",e);const s=await(a??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...r!==void 0?{scope:r}:{}})});if(!s.ok)throw await L(s);return j.parse(await s.json())}export{pe as U,T as a,_e as b,Ue as c,M as d,me as e};
@@ -1 +1 @@
1
- import{c as r,f as l,j as t,S as m,A as o,g as f,N as x}from"./index-Fgm7zmYy.js";function h(){const e=r.c(1),a=window.location.pathname+window.location.search;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(x,{to:"/login",search:{next:a},replace:!0}),e[0]=n):n=e[0],n}function u(){const e=r.c(5);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/auth/$pathname"},e[0]=a):a=e[0];const{pathname:n}=l(a);if(n==="accept-invitation"){let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(m,{children:t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(o,{pathname:"accept-invitation"})})}),e[1]=s):s=e[1];let i;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsxs(t.Fragment,{children:[s,t.jsx(f,{children:t.jsx(h,{})})]}),e[2]=i):i=e[2],i}let c;return e[3]!==n?(c=t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(o,{pathname:n})}),e[3]=n,e[4]=c):c=e[4],c}export{u as default};
1
+ import{c as r,f as l,j as t,S as m,A as o,g as f,N as x}from"./index-CaT4JsCE.js";function h(){const e=r.c(1),a=window.location.pathname+window.location.search;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(x,{to:"/login",search:{next:a},replace:!0}),e[0]=n):n=e[0],n}function u(){const e=r.c(5);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/auth/$pathname"},e[0]=a):a=e[0];const{pathname:n}=l(a);if(n==="accept-invitation"){let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(m,{children:t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(o,{pathname:"accept-invitation"})})}),e[1]=s):s=e[1];let i;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsxs(t.Fragment,{children:[s,t.jsx(f,{children:t.jsx(h,{})})]}),e[2]=i):i=e[2],i}let c;return e[3]!==n?(c=t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(o,{pathname:n})}),e[3]=n,e[4]=c):c=e[4],c}export{u as default};
@@ -1 +1 @@
1
- import{a as $,c as ce,m as S,j as t,a3 as Ke,a4 as Ge,a5 as ke,r as N,e as te,E as M,B as se,I as ae,b as Fe,h as Ye}from"./index-Fgm7zmYy.js";import{i as Je}from"./Fingerprint04-CLk-zzhP.js";import{e as Qe}from"./backoff-CrEUbyZT.js";import{d as Xe}from"./delay-CnY5UFtP.js";class Le extends Error{constructor(e,r){super(`Retrying exceeded the maxAttempts (${r}).`),this.name="RetryError",this.cause=e}}async function Ze(n,e){const{multiplier:r=2,maxTimeout:l=6e4,maxAttempts:g=5,minTimeout:m=1e3,jitter:i=1,isRetriable:u=()=>!0,signal:d}=e??{};if(!Number.isInteger(g)||g<1)throw new RangeError(`Cannot retry as 'maxAttempts' must be a positive integer: current value is ${g}`);if(!Number.isFinite(r)||r<1)throw new RangeError(`Cannot retry as 'multiplier' must be a finite number >= 1: current value is ${r}`);if(Number.isNaN(l)||l<=0)throw new RangeError(`Cannot retry as 'maxTimeout' must be a positive number: current value is ${l}`);if(Number.isNaN(m)||m<0)throw new RangeError(`Cannot retry as 'minTimeout' must be >= 0: current value is ${m}`);if(m>l)throw new RangeError(`Cannot retry as 'minTimeout' must be <= 'maxTimeout': current values 'minTimeout=${m}', 'maxTimeout=${l}'`);if(Number.isNaN(i)||i<0||i>1)throw new RangeError(`Cannot retry as 'jitter' must be between 0 and 1: current value is ${i}`);let b=0;for(;;){d?.throwIfAborted();try{return await n()}catch(f){if(!u(f))throw f;if(b+1>=g)throw new Le(f,g);const v=Qe(l,m,b,r,i);await Xe(v,d?{signal:d}:void 0)}b++}}const Oe={submitEmailPassword:({mode:n,email:e,password:r,name:l})=>n==="sign_up"?$.signUp.email({email:e,password:r,name:l||""}):$.signIn.email({email:e,password:r}),requestPasswordReset:({email:n,redirectTo:e})=>$.requestPasswordReset({email:n,redirectTo:e}),sendOtp:({email:n})=>$.emailOtp.sendVerificationOtp({email:n,type:"sign-in"}),submitOtp:({email:n,otp:e})=>$.signIn.emailOtp({email:n,otp:e}),socialSignIn:({provider:n,callbackURL:e})=>$.signIn.social({provider:n,callbackURL:e}),ssoSignIn:({providerId:n,callbackURL:e})=>$.signIn.sso({providerId:n,callbackURL:e}),passkeySignIn:()=>$.signIn.passkey(),onAuthenticated:n=>{window.location.href=n}};function et(n){const e=ce.c(25);let r,l,g,m,i,u,d,b;e[0]!==n?({length:g,className:r,containerClassName:l,slotClassName:i,pattern:u,inputMode:d,autoComplete:b,...m}=n,e[0]=n,e[1]=r,e[2]=l,e[3]=g,e[4]=m,e[5]=i,e[6]=u,e[7]=d,e[8]=b):(r=e[1],l=e[2],g=e[3],m=e[4],i=e[5],u=e[6],d=e[7],b=e[8]);const f=u===void 0?Ge:u,v=d===void 0?"numeric":d,p=b===void 0?"one-time-code":b;let h;e[9]!==l?(h=S("flex items-center gap-2 has-[:disabled]:opacity-50",l),e[9]=l,e[10]=h):h=e[10];let A;e[11]!==r?(A=S("disabled:cursor-not-allowed",r),e[11]=r,e[12]=A):A=e[12];let y;e[13]!==m||e[14]!==i?(y=x=>{const{slots:j}=x;return t.jsx(t.Fragment,{children:j.map((D,q)=>t.jsx(tt,{...D,invalid:m["aria-invalid"]===!0,className:i},q))})},e[13]=m,e[14]=i,e[15]=y):y=e[15];let w;return e[16]!==p||e[17]!==v||e[18]!==g||e[19]!==f||e[20]!==m||e[21]!==h||e[22]!==A||e[23]!==y?(w=t.jsx(Ke,{"data-slot":"input-otp",maxLength:g,pattern:f,inputMode:v,autoComplete:p,containerClassName:h,className:A,render:y,...m}),e[16]=p,e[17]=v,e[18]=g,e[19]=f,e[20]=m,e[21]=h,e[22]=A,e[23]=y,e[24]=w):w=e[24],w}function tt(n){const e=ce.c(13),{char:r,placeholderChar:l,hasFakeCaret:g,isActive:m,invalid:i,className:u}=n,d=m||void 0,b=i&&"bg-destructive/10 shadow-[inset_0_0_0_1px_var(--destructive)]";let f;e[0]!==u||e[1]!==b?(f=S("relative flex h-12 w-10 flex-1 items-center justify-center text-xl font-medium tabular-nums text-foreground transition-[background-color,box-shadow]","rounded-[var(--studio-control-radius,var(--radius-lg))] bg-[var(--studio-input-background)] shadow-edge","data-active:shadow-[inset_0_0_0_2px_var(--ring)]",b,u),e[0]=u,e[1]=b,e[2]=f):f=e[2];let v;e[3]!==r||e[4]!==l?(v=r??t.jsx("span",{className:"text-subtle-foreground",children:l}),e[3]=r,e[4]=l,e[5]=v):v=e[5];let p;e[6]!==g?(p=g&&t.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:t.jsx("div",{className:"h-5 w-px animate-pulse bg-foreground"})}),e[6]=g,e[7]=p):p=e[7];let h;return e[8]!==d||e[9]!==f||e[10]!==v||e[11]!==p?(h=t.jsxs("div",{"data-slot":"input-otp-slot","data-active":d,className:f,children:[v,p]}),e[8]=d,e[9]=f,e[10]=v,e[11]=p,e[12]=h):h=e[12],h}const de="font-medium text-[#8CAA25] hover:underline disabled:opacity-50",st={signUpFailed:"Sign up failed",signInFailed:"Sign in failed",authenticationFailed:"Authentication failed",resetEmailFailed:"Failed to send reset email",otpSendFailed:"Failed to send code",invalidCode:"Invalid code",invalidEmail:"Invalid email address",invalidEmailOrPassword:"Invalid email or password. Please try again.",accountExists:"An account with this email already exists. Try signing in instead.",networkError:"Network error. Please check your connection and try again.",tooManyAttempts:"Too many attempts. Please wait a moment and try again.",invalidOrExpiredCode:"Invalid or expired code. Please try again.",genericError:"An error occurred. Please try again.",resetPasswordTitle:"Reset your password",verificationCodeTitle:"Enter verification code",welcomeTitle:"Welcome to deco",resetPasswordSubtitle:"We'll send you a reset link",codeSentTo:n=>`Code sent to ${n}`,defaultSubtitle:"Sign in or create a new account",resetEmailSent:"Check your email for a password reset link.",continueWith:n=>`Continue with ${n}`,divider:"or",emailLabel:"Email",emailPlaceholder:"Email address",sending:"Sending...",sendCode:"Send code",verificationCodeLabel:"Verification code",verifying:"Verifying...",useDifferentEmail:"Use a different email",sendResetLink:"Send reset link",nameLabel:"Name",namePlaceholder:"Your name",passwordLabel:"Password",forgotPassword:"Forgot password?",creatingAccount:"Creating account...",signingIn:"Signing in...",continue:"Continue",backToSignIn:"Back to sign in",signInWithPassword:"Sign in with password instead",alreadyHaveAccount:"Already have an account? ",dontHaveAccount:"Don't have an account? ",signIn:"Sign in",signUp:"Sign up",signInWithEmailCode:"Sign in with email code",signInWithPasskey:"Sign in with a passkey"};function at({redirectUrl:n,callbackUrl:e="/",title:r,subtitle:l,brand:g,copy:m,variant:i="default",allowedSocialProviders:u,allowPassword:d=!0,onAuthEvent:b,actions:f}){const{emailAndPassword:v,resetPassword:p,emailOtp:h,passkey:A,socialProviders:y}=ke(),w={...Oe,...f},x=s=>{try{b?.(s)}catch{}},j=i==="compact",D=u?y.providers.filter(s=>u.includes(s.name)):y.providers,q=y.enabled&&D.length>0,me=v.enabled&&(d||!h.enabled&&!q),_=y.enabled&&y.providers.length>0&&!q&&!h.enabled&&!me?y.providers:D,T=y.enabled&&_.length>0,k=v.enabled&&(d||!h.enabled&&!T),F=A.enabled&&d&&typeof globalThis.PublicKeyCredential<"u",W=T||F,[c,ne]=N.useState(""),[ie,Re]=N.useState(""),[ue,be]=N.useState(""),[ge,re]=N.useState(""),[Y,he]=N.useState(!1),[pe,$e]=N.useState(()=>h.enabled?"emailOtp":globalThis.localStorage?.getItem("hasLoggedIn")!=="true"?"signUp":"signIn"),[C,B]=N.useState(""),[ve,we]=N.useState(!1),[Me,oe]=N.useState(null),a={...st,...m},z=N.useId(),V=`${z}-email`,H=`${z}-email-error`,ye=`${z}-name`,Ee=`${z}-password`,Se=`${z}-otp`,je=`${z}-otp-status`,I=pe==="signUp",R=pe==="forgotPassword",L=pe==="emailOtp",J=te({mutationFn:async({email:s,password:o,name:O})=>{try{const G=await w.submitEmailPassword({mode:I?"sign_up":"sign_in",email:s,password:o,name:O});if(G.error)throw new Error(G.error.message||(I?a.signUpFailed:a.signInFailed));return G}catch(G){throw G instanceof Error?G:new Error(a.authenticationFailed)}},onMutate:()=>{x({type:"started",method:"email_password",mode:I?"sign_up":"sign_in"})},onSuccess:()=>{x({type:"succeeded",method:"email_password",mode:I?"sign_up":"sign_in"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),w.onAuthenticated(n??e)},onError:s=>{x({type:"failed",method:"email_password",mode:I?"sign_up":"sign_in",stage:"authenticate",error:s instanceof Error?s.message:String(s)}),M(I?"user_signup_failed":"user_signin_failed",{error:s instanceof Error?s.message:String(s)})}}),Q=te({mutationFn:async({email:s})=>{const o=await w.requestPasswordReset({email:s,redirectTo:"/reset-password"});if(o.error)throw new Error(o.error.message||a.resetEmailFailed);return o},onSuccess:()=>{M("password_reset_requested"),we(!0)},onError:s=>{M("password_reset_request_failed",{error:s instanceof Error?s.message:String(s)})}}),U=te({mutationFn:async({email:s})=>{const o=await w.sendOtp({email:s});if(o.error)throw new Error(o.error.message||a.otpSendFailed);return o},onMutate:()=>{x({type:"started",method:"email_otp"})},onSuccess:()=>{x({type:"otp_sent",method:"email_otp"}),M("email_otp_sent"),he(!0)},onError:s=>{x({type:"failed",method:"email_otp",stage:"send_otp",error:s instanceof Error?s.message:String(s)}),M("email_otp_send_failed",{error:s instanceof Error?s.message:String(s)})}}),P=te({mutationFn:async({email:s,otp:o})=>{const O=await w.submitOtp({email:s,otp:o});if(O.error)throw new Error(O.error.message||a.invalidCode);return O},onMutate:()=>{x({type:"otp_submitted",method:"email_otp"})},onSuccess:()=>{x({type:"succeeded",method:"email_otp"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),w.onAuthenticated(n??e)},onError:s=>{re(""),x({type:"failed",method:"email_otp",stage:"verify_otp",error:s instanceof Error?s.message:String(s)}),M("email_otp_verify_failed",{error:s instanceof Error?s.message:String(s)})}}),X=te({mutationFn:async()=>{const s=await w.passkeySignIn();if(s.error){if(s.error.code==="AUTH_CANCELLED")return{cancelled:!0};throw new Error(s.error.message||a.authenticationFailed)}return{cancelled:!1}},onMutate:()=>{x({type:"started",method:"passkey"})},onSuccess:({cancelled:s})=>{s||(x({type:"succeeded",method:"passkey"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),w.onAuthenticated(n??e))},onError:s=>{x({type:"failed",method:"passkey",stage:"authenticate",error:s.message}),M("passkey_signin_failed",{error:s.message})}}),le=s=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s),fe=()=>{c.trim()&&!le(c)&&B(a.invalidEmail)},We=s=>{if(s.preventDefault(),!le(c)){B(a.invalidEmail),x({type:"failed",method:"email_password",mode:I?"sign_up":"sign_in",stage:"validation",error:"invalid_email"});return}J.mutate({email:c,password:ie,name:ue})},Ue=s=>{if(s.preventDefault(),!le(c)){B(a.invalidEmail);return}Q.mutate({email:c})},De=s=>{if(s.preventDefault(),!le(c)){B(a.invalidEmail),x({type:"failed",method:"email_otp",stage:"validation",error:"invalid_email"});return}U.mutate({email:c})},Ne=s=>{P.isPending||P.mutate({email:c,otp:s})},qe=s=>{s.preventDefault(),ge.length===h.length&&Ne(ge)},Be=s=>{re(s),xe&&(U.reset(),P.reset())},Z=s=>o=>{s(o.target.value),Ie&&J.reset(),Ce&&Q.reset(),xe&&(U.reset(),P.reset()),s===ne&&C&&B("")},ee=s=>{$e(s),be(""),re(""),he(!1),B(""),we(!1),oe(null),J.reset(),Q.reset(),U.reset(),P.reset(),X.reset()},E=J.isPending||Q.isPending||U.isPending||P.isPending||X.isPending,Ie=J.error,Ce=Q.error,xe=U.error||P.error,K=I?c.trim()&&ie.trim()&&ue.trim():R||L?c.trim():c.trim()&&ie.trim(),ze=s=>{if(!s)return null;const o=s.message.toLowerCase();return o.includes("unauthorized")||o.includes("401")?a.invalidEmailOrPassword:o.includes("already exists")||o.includes("409")?a.accountExists:o.includes("network")||o.includes("fetch")?a.networkError:o.includes("rate limit")||o.includes("429")?a.tooManyAttempts:o.includes("invalid")&&o.includes("otp")?a.invalidOrExpiredCode:s.message||a.genericError},Pe=Ie||Ce||xe||Me||X.error,Ve=async s=>{x({type:"started",method:"social",provider:s}),oe(null),X.reset();try{const o=await w.socialSignIn({provider:s,callbackURL:n??e});if(o.error)throw new Error(o.error.message||a.authenticationFailed)}catch(o){const O=o instanceof Error?o.message:String(o);x({type:"failed",method:"social",provider:s,stage:"redirect",error:O}),M("social_signin_failed",{provider:s,error:O}),oe(o instanceof Error?o:new Error(O))}},He=R?a.resetPasswordTitle:L&&Y?a.verificationCodeTitle:r??a.welcomeTitle,Ae=R?a.resetPasswordSubtitle:L&&Y?a.codeSentTo(c):l===void 0?a.defaultSubtitle:l;return t.jsxs("div",{className:S("grid w-full",j?"gap-5":"gap-10"),children:[g??t.jsxs("div",{children:[t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h1",{className:S("font-medium",j?"text-xl leading-7":"text-2xl leading-8"),children:He}),Ae&&t.jsx("p",{className:S("text-muted-foreground",j?"text-sm leading-5":"text-base leading-6"),children:Ae})]}),Pe&&t.jsx("div",{role:"alert",className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:ze(Pe)}),ve&&t.jsx("div",{role:"status",className:"rounded-xl bg-success/10 p-3 text-sm text-success text-center",children:a.resetEmailSent}),!R&&!(L&&Y)&&W&&t.jsxs("div",{className:"grid gap-2",children:[T&&_.map(s=>t.jsxs(se,{type:"button",variant:"outline",size:j?"lg":"xl",disabled:E,onClick:()=>{Ve(s.name)},className:"w-full gap-3",children:[s.icon&&t.jsx("img",{src:s.icon,alt:"",className:S("h-5 w-5",s.name==="github"&&"dark:invert"),"aria-hidden":"true"}),a.continueWith(s.name.charAt(0).toUpperCase()+s.name.slice(1))]},s.name)),F&&t.jsxs(se,{type:"button",variant:"outline",size:j?"lg":"xl",disabled:E,onClick:()=>{oe(null),X.mutate()},className:"w-full gap-3",children:[t.jsx(Je,{className:"h-5 w-5","aria-hidden":"true"}),a.signInWithPasskey]})]}),!R&&!(L&&Y)&&W&&(k||h.enabled)&&t.jsxs("div",{className:S("flex items-center gap-2.5",j?"my-0":"-my-4"),children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("span",{className:S("text-muted-foreground",j?"text-sm":"text-base"),children:a.divider}),t.jsx("div",{className:"h-px flex-1 bg-border"})]}),L&&h.enabled&&t.jsx(t.Fragment,{children:Y?t.jsxs("form",{onSubmit:qe,className:"grid gap-2",children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:Se,className:S("text-sm font-medium text-foreground",j&&"sr-only"),children:a.verificationCodeLabel}),t.jsx(et,{id:Se,length:h.length,value:ge,onChange:Be,onComplete:Ne,autoFocus:!0,"aria-invalid":!!P.error,"aria-describedby":P.isPending?je:void 0}),t.jsx("p",{id:je,role:"status",className:S("text-sm text-muted-foreground",!P.isPending&&"sr-only"),children:P.isPending?a.verifying:""})]}),t.jsx("button",{type:"button",onClick:()=>{he(!1),re(""),U.reset(),P.reset()},disabled:E,className:"mt-1 text-sm text-muted-foreground transition-colors hover:text-foreground",children:a.useDifferentEmail})]}):t.jsxs("form",{onSubmit:De,className:S("grid gap-2",j&&"sm:grid-cols-[minmax(0,1fr)_auto] sm:items-start"),children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:V,className:S("text-sm font-medium text-foreground",j&&"sr-only"),children:a.emailLabel}),t.jsx(ae,{id:V,type:"email",placeholder:a.emailPlaceholder,value:c,onChange:Z(ne),onBlur:fe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!C,"aria-describedby":C?H:void 0,className:"h-11"}),C&&t.jsx("p",{id:H,role:"alert",className:"text-xs text-destructive",children:C})]}),t.jsx(se,{type:"submit",size:j?"lg":"xl",disabled:E||!K,className:S(j?"sm:w-auto":"w-full"),children:E?a.sending:a.sendCode})]})}),R&&k&&!ve&&t.jsxs("form",{onSubmit:Ue,className:"grid gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{htmlFor:V,className:"block text-sm font-medium text-foreground mb-2",children:a.emailLabel}),t.jsx(ae,{id:V,type:"email",placeholder:"you@example.com",value:c,onChange:Z(ne),onBlur:fe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!C,"aria-describedby":C?H:void 0,className:"h-11"}),C&&t.jsx("p",{id:H,role:"alert",className:"text-xs text-destructive mt-1.5",children:C})]}),t.jsx(se,{type:"submit",disabled:E||!K,className:"w-full font-semibold",size:"xl",children:E?a.sending:a.sendResetLink})]}),!R&&!L&&k&&t.jsxs("form",{onSubmit:We,className:"grid gap-5",children:[I&&t.jsxs("div",{children:[t.jsx("label",{htmlFor:ye,className:"block text-sm font-medium text-foreground mb-2",children:a.nameLabel}),t.jsx(ae,{id:ye,type:"text",placeholder:a.namePlaceholder,value:ue,onChange:Z(be),required:!0,disabled:E,autoComplete:"name",className:"h-11"})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:V,className:"block text-sm font-medium text-foreground mb-2",children:a.emailLabel}),t.jsx(ae,{id:V,type:"email",placeholder:"you@example.com",value:c,onChange:Z(ne),onBlur:fe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!C,"aria-describedby":C?H:void 0,className:"h-11"}),C&&t.jsx("p",{id:H,role:"alert",className:"text-xs text-destructive mt-1.5",children:C})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t.jsx("label",{htmlFor:Ee,className:"block text-sm font-medium text-foreground",children:a.passwordLabel}),!I&&p.enabled&&t.jsx("button",{type:"button",onClick:()=>ee("forgotPassword"),className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:a.forgotPassword})]}),t.jsx(ae,{id:Ee,type:"password",placeholder:"••••••••",value:ie,onChange:Z(Re),required:!0,disabled:E,autoComplete:I?"new-password":"current-password",className:"h-11"})]}),t.jsx("div",{className:S("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",K?"max-h-[100px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:t.jsx("div",{className:S("p-1",!K&&"pointer-events-none"),children:t.jsx(se,{type:"submit",disabled:E||!K,className:S("w-full font-semibold"),size:"xl","aria-hidden":!K,children:E?I?a.creatingAccount:a.signingIn:a.continue})})})]}),t.jsx("div",{className:"text-sm text-muted-foreground",children:R?t.jsx("button",{type:"button",onClick:()=>ee("signIn"),disabled:E,className:de,children:a.backToSignIn}):L&&k?t.jsx("button",{type:"button",onClick:()=>ee("signIn"),disabled:E,className:de,children:a.signInWithPassword}):!L&&k?t.jsxs(t.Fragment,{children:[I?a.alreadyHaveAccount:a.dontHaveAccount,t.jsx("button",{type:"button",onClick:()=>ee(I?"signIn":"signUp"),disabled:E,className:de,children:I?a.signIn:a.signUp}),h.enabled&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"mx-2",children:"·"}),t.jsx("button",{type:"button",onClick:()=>ee("emailOtp"),disabled:E,className:de,children:a.signInWithEmailCode})]})]}):null})]})}class _e{constructor(e){this.response=e}response}function nt(n){return n.startsWith("/")&&!n.startsWith("//")&&!n.startsWith("/\\")?n:"/"}function it({redirectTo:n,onAuthEvent:e}){const r=Fe(),[l,g]=N.useState(null),m=N.useEffectEvent(i=>{try{e?.(i)}catch{}});return N.useEffect(()=>{let i=!1;return(async()=>{m({type:"started",method:"local"});try{let u;try{u=await Ze(async()=>{const d=await fetch("/api/auth/custom/local-session",{method:"POST",credentials:"include"});if(d.status>=500)throw new _e(d);return d},{maxAttempts:5,minTimeout:1e3,maxTimeout:1e4,multiplier:2,jitter:0})}catch(d){if(d instanceof Le&&d.cause instanceof _e)u=d.cause.response;else throw d}if(!u.ok){const d=await u.json().catch(()=>({}));throw new Error(d?.error||r("common.authEntry.autoLoginFailed"))}i||(m({type:"succeeded",method:"local"}),window.location.href=nt(n))}catch(u){i||(m({type:"failed",method:"local",stage:"authenticate",error:u instanceof Error?u.message:String(u)}),g(u instanceof Error?u.message:r("common.authEntry.autoLoginFailed")))}})(),()=>{i=!0}},[n]),l?t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("p",{className:"text-destructive mb-2",children:r("common.authEntry.autoLoginFailedWithError",{error:l})}),t.jsx("p",{className:"text-muted-foreground text-sm",children:r("common.authEntry.tryRestartingServer")})]})}):t.jsx(Te,{})}function Te(){const n=ce.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsx(Ye,{size:"lg",label:"Signing in"})}),n[0]=e):e=n[0],e}function rt({callbackURL:n,providerId:e,ssoSignIn:r,onAuthEvent:l}){const g=N.useEffectEvent(i=>{try{l?.(i)}catch{}}),m=N.useEffectEvent(r);return N.useEffect(()=>{(async()=>{g({type:"started",method:"sso",provider:e});try{const i=await m({providerId:e,callbackURL:n});if(i.error)throw new Error(i.error.message||"SSO redirect failed")}catch(i){g({type:"failed",method:"sso",provider:e,stage:"redirect",error:i instanceof Error?i.message:String(i)})}})()},[e,n]),t.jsx(Te,{})}function mt(n){const e=ce.c(25),{callbackUrl:r,redirectUrl:l,allowAutoLogin:g,title:m,subtitle:i,brand:u,copy:d,variant:b,allowedSocialProviders:f,allowPassword:v,onAuthEvent:p,onAuthenticated:h}=n,A=g===void 0?!0:g,y=Fe(),{sso:w,emailAndPassword:x,magicLink:j,emailOtp:D,socialProviders:q,localMode:me}=ke(),_=l||r;let T;e[0]!==h?(T=h?{onAuthenticated:h}:void 0,e[0]=h,e[1]=T):T=e[1];const k=T;if(me&&A){let c;return e[2]!==p||e[3]!==_?(c=t.jsx(it,{redirectTo:_,onAuthEvent:p}),e[2]=p,e[3]=_,e[4]=c):c=e[4],c}if(w.enabled){let c;return e[5]!==p||e[6]!==_||e[7]!==w.providerId?(c=t.jsx(rt,{callbackURL:_,providerId:w.providerId,ssoSignIn:Oe.ssoSignIn,onAuthEvent:p}),e[5]=p,e[6]=_,e[7]=w.providerId,e[8]=c):c=e[8],c}if(x.enabled||j.enabled||D.enabled||q.enabled){let c;return e[9]!==v||e[10]!==f||e[11]!==u||e[12]!==r||e[13]!==k||e[14]!==d||e[15]!==p||e[16]!==l||e[17]!==i||e[18]!==m||e[19]!==b?(c=t.jsx(at,{redirectUrl:l,callbackUrl:r,title:m,subtitle:i,brand:u,copy:d,variant:b,allowedSocialProviders:f,allowPassword:v,onAuthEvent:p,actions:k}),e[9]=v,e[10]=f,e[11]=u,e[12]=r,e[13]=k,e[14]=d,e[15]=p,e[16]=l,e[17]=i,e[18]=m,e[19]=b,e[20]=c):c=e[20],c}let F;e[21]!==y?(F=y("common.authEntry.noLoginOptions"),e[21]=y,e[22]=F):F=e[22];let W;return e[23]!==F?(W=t.jsx("div",{children:F}),e[23]=F,e[24]=W):W=e[24],W}export{Te as A,mt as a};
1
+ import{a as $,c as ce,m as S,j as t,a3 as Ke,a4 as Ge,a5 as ke,r as N,e as te,E as M,B as se,I as ae,b as Fe,h as Ye}from"./index-CaT4JsCE.js";import{i as Je}from"./Fingerprint04-De4VufgL.js";import{e as Qe}from"./backoff-CrEUbyZT.js";import{d as Xe}from"./delay-CnY5UFtP.js";class Le extends Error{constructor(e,r){super(`Retrying exceeded the maxAttempts (${r}).`),this.name="RetryError",this.cause=e}}async function Ze(n,e){const{multiplier:r=2,maxTimeout:l=6e4,maxAttempts:g=5,minTimeout:m=1e3,jitter:i=1,isRetriable:u=()=>!0,signal:d}=e??{};if(!Number.isInteger(g)||g<1)throw new RangeError(`Cannot retry as 'maxAttempts' must be a positive integer: current value is ${g}`);if(!Number.isFinite(r)||r<1)throw new RangeError(`Cannot retry as 'multiplier' must be a finite number >= 1: current value is ${r}`);if(Number.isNaN(l)||l<=0)throw new RangeError(`Cannot retry as 'maxTimeout' must be a positive number: current value is ${l}`);if(Number.isNaN(m)||m<0)throw new RangeError(`Cannot retry as 'minTimeout' must be >= 0: current value is ${m}`);if(m>l)throw new RangeError(`Cannot retry as 'minTimeout' must be <= 'maxTimeout': current values 'minTimeout=${m}', 'maxTimeout=${l}'`);if(Number.isNaN(i)||i<0||i>1)throw new RangeError(`Cannot retry as 'jitter' must be between 0 and 1: current value is ${i}`);let b=0;for(;;){d?.throwIfAborted();try{return await n()}catch(f){if(!u(f))throw f;if(b+1>=g)throw new Le(f,g);const v=Qe(l,m,b,r,i);await Xe(v,d?{signal:d}:void 0)}b++}}const Oe={submitEmailPassword:({mode:n,email:e,password:r,name:l})=>n==="sign_up"?$.signUp.email({email:e,password:r,name:l||""}):$.signIn.email({email:e,password:r}),requestPasswordReset:({email:n,redirectTo:e})=>$.requestPasswordReset({email:n,redirectTo:e}),sendOtp:({email:n})=>$.emailOtp.sendVerificationOtp({email:n,type:"sign-in"}),submitOtp:({email:n,otp:e})=>$.signIn.emailOtp({email:n,otp:e}),socialSignIn:({provider:n,callbackURL:e})=>$.signIn.social({provider:n,callbackURL:e}),ssoSignIn:({providerId:n,callbackURL:e})=>$.signIn.sso({providerId:n,callbackURL:e}),passkeySignIn:()=>$.signIn.passkey(),onAuthenticated:n=>{window.location.href=n}};function et(n){const e=ce.c(25);let r,l,g,m,i,u,d,b;e[0]!==n?({length:g,className:r,containerClassName:l,slotClassName:i,pattern:u,inputMode:d,autoComplete:b,...m}=n,e[0]=n,e[1]=r,e[2]=l,e[3]=g,e[4]=m,e[5]=i,e[6]=u,e[7]=d,e[8]=b):(r=e[1],l=e[2],g=e[3],m=e[4],i=e[5],u=e[6],d=e[7],b=e[8]);const f=u===void 0?Ge:u,v=d===void 0?"numeric":d,p=b===void 0?"one-time-code":b;let h;e[9]!==l?(h=S("flex items-center gap-2 has-[:disabled]:opacity-50",l),e[9]=l,e[10]=h):h=e[10];let A;e[11]!==r?(A=S("disabled:cursor-not-allowed",r),e[11]=r,e[12]=A):A=e[12];let y;e[13]!==m||e[14]!==i?(y=x=>{const{slots:j}=x;return t.jsx(t.Fragment,{children:j.map((D,q)=>t.jsx(tt,{...D,invalid:m["aria-invalid"]===!0,className:i},q))})},e[13]=m,e[14]=i,e[15]=y):y=e[15];let w;return e[16]!==p||e[17]!==v||e[18]!==g||e[19]!==f||e[20]!==m||e[21]!==h||e[22]!==A||e[23]!==y?(w=t.jsx(Ke,{"data-slot":"input-otp",maxLength:g,pattern:f,inputMode:v,autoComplete:p,containerClassName:h,className:A,render:y,...m}),e[16]=p,e[17]=v,e[18]=g,e[19]=f,e[20]=m,e[21]=h,e[22]=A,e[23]=y,e[24]=w):w=e[24],w}function tt(n){const e=ce.c(13),{char:r,placeholderChar:l,hasFakeCaret:g,isActive:m,invalid:i,className:u}=n,d=m||void 0,b=i&&"bg-destructive/10 shadow-[inset_0_0_0_1px_var(--destructive)]";let f;e[0]!==u||e[1]!==b?(f=S("relative flex h-12 w-10 flex-1 items-center justify-center text-xl font-medium tabular-nums text-foreground transition-[background-color,box-shadow]","rounded-[var(--studio-control-radius,var(--radius-lg))] bg-[var(--studio-input-background)] shadow-edge","data-active:shadow-[inset_0_0_0_2px_var(--ring)]",b,u),e[0]=u,e[1]=b,e[2]=f):f=e[2];let v;e[3]!==r||e[4]!==l?(v=r??t.jsx("span",{className:"text-subtle-foreground",children:l}),e[3]=r,e[4]=l,e[5]=v):v=e[5];let p;e[6]!==g?(p=g&&t.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:t.jsx("div",{className:"h-5 w-px animate-pulse bg-foreground"})}),e[6]=g,e[7]=p):p=e[7];let h;return e[8]!==d||e[9]!==f||e[10]!==v||e[11]!==p?(h=t.jsxs("div",{"data-slot":"input-otp-slot","data-active":d,className:f,children:[v,p]}),e[8]=d,e[9]=f,e[10]=v,e[11]=p,e[12]=h):h=e[12],h}const de="font-medium text-[#8CAA25] hover:underline disabled:opacity-50",st={signUpFailed:"Sign up failed",signInFailed:"Sign in failed",authenticationFailed:"Authentication failed",resetEmailFailed:"Failed to send reset email",otpSendFailed:"Failed to send code",invalidCode:"Invalid code",invalidEmail:"Invalid email address",invalidEmailOrPassword:"Invalid email or password. Please try again.",accountExists:"An account with this email already exists. Try signing in instead.",networkError:"Network error. Please check your connection and try again.",tooManyAttempts:"Too many attempts. Please wait a moment and try again.",invalidOrExpiredCode:"Invalid or expired code. Please try again.",genericError:"An error occurred. Please try again.",resetPasswordTitle:"Reset your password",verificationCodeTitle:"Enter verification code",welcomeTitle:"Welcome to deco",resetPasswordSubtitle:"We'll send you a reset link",codeSentTo:n=>`Code sent to ${n}`,defaultSubtitle:"Sign in or create a new account",resetEmailSent:"Check your email for a password reset link.",continueWith:n=>`Continue with ${n}`,divider:"or",emailLabel:"Email",emailPlaceholder:"Email address",sending:"Sending...",sendCode:"Send code",verificationCodeLabel:"Verification code",verifying:"Verifying...",useDifferentEmail:"Use a different email",sendResetLink:"Send reset link",nameLabel:"Name",namePlaceholder:"Your name",passwordLabel:"Password",forgotPassword:"Forgot password?",creatingAccount:"Creating account...",signingIn:"Signing in...",continue:"Continue",backToSignIn:"Back to sign in",signInWithPassword:"Sign in with password instead",alreadyHaveAccount:"Already have an account? ",dontHaveAccount:"Don't have an account? ",signIn:"Sign in",signUp:"Sign up",signInWithEmailCode:"Sign in with email code",signInWithPasskey:"Sign in with a passkey"};function at({redirectUrl:n,callbackUrl:e="/",title:r,subtitle:l,brand:g,copy:m,variant:i="default",allowedSocialProviders:u,allowPassword:d=!0,onAuthEvent:b,actions:f}){const{emailAndPassword:v,resetPassword:p,emailOtp:h,passkey:A,socialProviders:y}=ke(),w={...Oe,...f},x=s=>{try{b?.(s)}catch{}},j=i==="compact",D=u?y.providers.filter(s=>u.includes(s.name)):y.providers,q=y.enabled&&D.length>0,me=v.enabled&&(d||!h.enabled&&!q),_=y.enabled&&y.providers.length>0&&!q&&!h.enabled&&!me?y.providers:D,T=y.enabled&&_.length>0,k=v.enabled&&(d||!h.enabled&&!T),F=A.enabled&&d&&typeof globalThis.PublicKeyCredential<"u",W=T||F,[c,ne]=N.useState(""),[ie,Re]=N.useState(""),[ue,be]=N.useState(""),[ge,re]=N.useState(""),[Y,he]=N.useState(!1),[pe,$e]=N.useState(()=>h.enabled?"emailOtp":globalThis.localStorage?.getItem("hasLoggedIn")!=="true"?"signUp":"signIn"),[C,B]=N.useState(""),[ve,we]=N.useState(!1),[Me,oe]=N.useState(null),a={...st,...m},z=N.useId(),V=`${z}-email`,H=`${z}-email-error`,ye=`${z}-name`,Ee=`${z}-password`,Se=`${z}-otp`,je=`${z}-otp-status`,I=pe==="signUp",R=pe==="forgotPassword",L=pe==="emailOtp",J=te({mutationFn:async({email:s,password:o,name:O})=>{try{const G=await w.submitEmailPassword({mode:I?"sign_up":"sign_in",email:s,password:o,name:O});if(G.error)throw new Error(G.error.message||(I?a.signUpFailed:a.signInFailed));return G}catch(G){throw G instanceof Error?G:new Error(a.authenticationFailed)}},onMutate:()=>{x({type:"started",method:"email_password",mode:I?"sign_up":"sign_in"})},onSuccess:()=>{x({type:"succeeded",method:"email_password",mode:I?"sign_up":"sign_in"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),w.onAuthenticated(n??e)},onError:s=>{x({type:"failed",method:"email_password",mode:I?"sign_up":"sign_in",stage:"authenticate",error:s instanceof Error?s.message:String(s)}),M(I?"user_signup_failed":"user_signin_failed",{error:s instanceof Error?s.message:String(s)})}}),Q=te({mutationFn:async({email:s})=>{const o=await w.requestPasswordReset({email:s,redirectTo:"/reset-password"});if(o.error)throw new Error(o.error.message||a.resetEmailFailed);return o},onSuccess:()=>{M("password_reset_requested"),we(!0)},onError:s=>{M("password_reset_request_failed",{error:s instanceof Error?s.message:String(s)})}}),U=te({mutationFn:async({email:s})=>{const o=await w.sendOtp({email:s});if(o.error)throw new Error(o.error.message||a.otpSendFailed);return o},onMutate:()=>{x({type:"started",method:"email_otp"})},onSuccess:()=>{x({type:"otp_sent",method:"email_otp"}),M("email_otp_sent"),he(!0)},onError:s=>{x({type:"failed",method:"email_otp",stage:"send_otp",error:s instanceof Error?s.message:String(s)}),M("email_otp_send_failed",{error:s instanceof Error?s.message:String(s)})}}),P=te({mutationFn:async({email:s,otp:o})=>{const O=await w.submitOtp({email:s,otp:o});if(O.error)throw new Error(O.error.message||a.invalidCode);return O},onMutate:()=>{x({type:"otp_submitted",method:"email_otp"})},onSuccess:()=>{x({type:"succeeded",method:"email_otp"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),w.onAuthenticated(n??e)},onError:s=>{re(""),x({type:"failed",method:"email_otp",stage:"verify_otp",error:s instanceof Error?s.message:String(s)}),M("email_otp_verify_failed",{error:s instanceof Error?s.message:String(s)})}}),X=te({mutationFn:async()=>{const s=await w.passkeySignIn();if(s.error){if(s.error.code==="AUTH_CANCELLED")return{cancelled:!0};throw new Error(s.error.message||a.authenticationFailed)}return{cancelled:!1}},onMutate:()=>{x({type:"started",method:"passkey"})},onSuccess:({cancelled:s})=>{s||(x({type:"succeeded",method:"passkey"}),globalThis.localStorage?.setItem("hasLoggedIn","true"),w.onAuthenticated(n??e))},onError:s=>{x({type:"failed",method:"passkey",stage:"authenticate",error:s.message}),M("passkey_signin_failed",{error:s.message})}}),le=s=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s),fe=()=>{c.trim()&&!le(c)&&B(a.invalidEmail)},We=s=>{if(s.preventDefault(),!le(c)){B(a.invalidEmail),x({type:"failed",method:"email_password",mode:I?"sign_up":"sign_in",stage:"validation",error:"invalid_email"});return}J.mutate({email:c,password:ie,name:ue})},Ue=s=>{if(s.preventDefault(),!le(c)){B(a.invalidEmail);return}Q.mutate({email:c})},De=s=>{if(s.preventDefault(),!le(c)){B(a.invalidEmail),x({type:"failed",method:"email_otp",stage:"validation",error:"invalid_email"});return}U.mutate({email:c})},Ne=s=>{P.isPending||P.mutate({email:c,otp:s})},qe=s=>{s.preventDefault(),ge.length===h.length&&Ne(ge)},Be=s=>{re(s),xe&&(U.reset(),P.reset())},Z=s=>o=>{s(o.target.value),Ie&&J.reset(),Ce&&Q.reset(),xe&&(U.reset(),P.reset()),s===ne&&C&&B("")},ee=s=>{$e(s),be(""),re(""),he(!1),B(""),we(!1),oe(null),J.reset(),Q.reset(),U.reset(),P.reset(),X.reset()},E=J.isPending||Q.isPending||U.isPending||P.isPending||X.isPending,Ie=J.error,Ce=Q.error,xe=U.error||P.error,K=I?c.trim()&&ie.trim()&&ue.trim():R||L?c.trim():c.trim()&&ie.trim(),ze=s=>{if(!s)return null;const o=s.message.toLowerCase();return o.includes("unauthorized")||o.includes("401")?a.invalidEmailOrPassword:o.includes("already exists")||o.includes("409")?a.accountExists:o.includes("network")||o.includes("fetch")?a.networkError:o.includes("rate limit")||o.includes("429")?a.tooManyAttempts:o.includes("invalid")&&o.includes("otp")?a.invalidOrExpiredCode:s.message||a.genericError},Pe=Ie||Ce||xe||Me||X.error,Ve=async s=>{x({type:"started",method:"social",provider:s}),oe(null),X.reset();try{const o=await w.socialSignIn({provider:s,callbackURL:n??e});if(o.error)throw new Error(o.error.message||a.authenticationFailed)}catch(o){const O=o instanceof Error?o.message:String(o);x({type:"failed",method:"social",provider:s,stage:"redirect",error:O}),M("social_signin_failed",{provider:s,error:O}),oe(o instanceof Error?o:new Error(O))}},He=R?a.resetPasswordTitle:L&&Y?a.verificationCodeTitle:r??a.welcomeTitle,Ae=R?a.resetPasswordSubtitle:L&&Y?a.codeSentTo(c):l===void 0?a.defaultSubtitle:l;return t.jsxs("div",{className:S("grid w-full",j?"gap-5":"gap-10"),children:[g??t.jsxs("div",{children:[t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h1",{className:S("font-medium",j?"text-xl leading-7":"text-2xl leading-8"),children:He}),Ae&&t.jsx("p",{className:S("text-muted-foreground",j?"text-sm leading-5":"text-base leading-6"),children:Ae})]}),Pe&&t.jsx("div",{role:"alert",className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:ze(Pe)}),ve&&t.jsx("div",{role:"status",className:"rounded-xl bg-success/10 p-3 text-sm text-success text-center",children:a.resetEmailSent}),!R&&!(L&&Y)&&W&&t.jsxs("div",{className:"grid gap-2",children:[T&&_.map(s=>t.jsxs(se,{type:"button",variant:"outline",size:j?"lg":"xl",disabled:E,onClick:()=>{Ve(s.name)},className:"w-full gap-3",children:[s.icon&&t.jsx("img",{src:s.icon,alt:"",className:S("h-5 w-5",s.name==="github"&&"dark:invert"),"aria-hidden":"true"}),a.continueWith(s.name.charAt(0).toUpperCase()+s.name.slice(1))]},s.name)),F&&t.jsxs(se,{type:"button",variant:"outline",size:j?"lg":"xl",disabled:E,onClick:()=>{oe(null),X.mutate()},className:"w-full gap-3",children:[t.jsx(Je,{className:"h-5 w-5","aria-hidden":"true"}),a.signInWithPasskey]})]}),!R&&!(L&&Y)&&W&&(k||h.enabled)&&t.jsxs("div",{className:S("flex items-center gap-2.5",j?"my-0":"-my-4"),children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("span",{className:S("text-muted-foreground",j?"text-sm":"text-base"),children:a.divider}),t.jsx("div",{className:"h-px flex-1 bg-border"})]}),L&&h.enabled&&t.jsx(t.Fragment,{children:Y?t.jsxs("form",{onSubmit:qe,className:"grid gap-2",children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:Se,className:S("text-sm font-medium text-foreground",j&&"sr-only"),children:a.verificationCodeLabel}),t.jsx(et,{id:Se,length:h.length,value:ge,onChange:Be,onComplete:Ne,autoFocus:!0,"aria-invalid":!!P.error,"aria-describedby":P.isPending?je:void 0}),t.jsx("p",{id:je,role:"status",className:S("text-sm text-muted-foreground",!P.isPending&&"sr-only"),children:P.isPending?a.verifying:""})]}),t.jsx("button",{type:"button",onClick:()=>{he(!1),re(""),U.reset(),P.reset()},disabled:E,className:"mt-1 text-sm text-muted-foreground transition-colors hover:text-foreground",children:a.useDifferentEmail})]}):t.jsxs("form",{onSubmit:De,className:S("grid gap-2",j&&"sm:grid-cols-[minmax(0,1fr)_auto] sm:items-start"),children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx("label",{htmlFor:V,className:S("text-sm font-medium text-foreground",j&&"sr-only"),children:a.emailLabel}),t.jsx(ae,{id:V,type:"email",placeholder:a.emailPlaceholder,value:c,onChange:Z(ne),onBlur:fe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!C,"aria-describedby":C?H:void 0,className:"h-11"}),C&&t.jsx("p",{id:H,role:"alert",className:"text-xs text-destructive",children:C})]}),t.jsx(se,{type:"submit",size:j?"lg":"xl",disabled:E||!K,className:S(j?"sm:w-auto":"w-full"),children:E?a.sending:a.sendCode})]})}),R&&k&&!ve&&t.jsxs("form",{onSubmit:Ue,className:"grid gap-4",children:[t.jsxs("div",{children:[t.jsx("label",{htmlFor:V,className:"block text-sm font-medium text-foreground mb-2",children:a.emailLabel}),t.jsx(ae,{id:V,type:"email",placeholder:"you@example.com",value:c,onChange:Z(ne),onBlur:fe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!C,"aria-describedby":C?H:void 0,className:"h-11"}),C&&t.jsx("p",{id:H,role:"alert",className:"text-xs text-destructive mt-1.5",children:C})]}),t.jsx(se,{type:"submit",disabled:E||!K,className:"w-full font-semibold",size:"xl",children:E?a.sending:a.sendResetLink})]}),!R&&!L&&k&&t.jsxs("form",{onSubmit:We,className:"grid gap-5",children:[I&&t.jsxs("div",{children:[t.jsx("label",{htmlFor:ye,className:"block text-sm font-medium text-foreground mb-2",children:a.nameLabel}),t.jsx(ae,{id:ye,type:"text",placeholder:a.namePlaceholder,value:ue,onChange:Z(be),required:!0,disabled:E,autoComplete:"name",className:"h-11"})]}),t.jsxs("div",{children:[t.jsx("label",{htmlFor:V,className:"block text-sm font-medium text-foreground mb-2",children:a.emailLabel}),t.jsx(ae,{id:V,type:"email",placeholder:"you@example.com",value:c,onChange:Z(ne),onBlur:fe,required:!0,disabled:E,autoComplete:"email","aria-invalid":!!C,"aria-describedby":C?H:void 0,className:"h-11"}),C&&t.jsx("p",{id:H,role:"alert",className:"text-xs text-destructive mt-1.5",children:C})]}),t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t.jsx("label",{htmlFor:Ee,className:"block text-sm font-medium text-foreground",children:a.passwordLabel}),!I&&p.enabled&&t.jsx("button",{type:"button",onClick:()=>ee("forgotPassword"),className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:a.forgotPassword})]}),t.jsx(ae,{id:Ee,type:"password",placeholder:"••••••••",value:ie,onChange:Z(Re),required:!0,disabled:E,autoComplete:I?"new-password":"current-password",className:"h-11"})]}),t.jsx("div",{className:S("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",K?"max-h-[100px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:t.jsx("div",{className:S("p-1",!K&&"pointer-events-none"),children:t.jsx(se,{type:"submit",disabled:E||!K,className:S("w-full font-semibold"),size:"xl","aria-hidden":!K,children:E?I?a.creatingAccount:a.signingIn:a.continue})})})]}),t.jsx("div",{className:"text-sm text-muted-foreground",children:R?t.jsx("button",{type:"button",onClick:()=>ee("signIn"),disabled:E,className:de,children:a.backToSignIn}):L&&k?t.jsx("button",{type:"button",onClick:()=>ee("signIn"),disabled:E,className:de,children:a.signInWithPassword}):!L&&k?t.jsxs(t.Fragment,{children:[I?a.alreadyHaveAccount:a.dontHaveAccount,t.jsx("button",{type:"button",onClick:()=>ee(I?"signIn":"signUp"),disabled:E,className:de,children:I?a.signIn:a.signUp}),h.enabled&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"mx-2",children:"·"}),t.jsx("button",{type:"button",onClick:()=>ee("emailOtp"),disabled:E,className:de,children:a.signInWithEmailCode})]})]}):null})]})}class _e{constructor(e){this.response=e}response}function nt(n){return n.startsWith("/")&&!n.startsWith("//")&&!n.startsWith("/\\")?n:"/"}function it({redirectTo:n,onAuthEvent:e}){const r=Fe(),[l,g]=N.useState(null),m=N.useEffectEvent(i=>{try{e?.(i)}catch{}});return N.useEffect(()=>{let i=!1;return(async()=>{m({type:"started",method:"local"});try{let u;try{u=await Ze(async()=>{const d=await fetch("/api/auth/custom/local-session",{method:"POST",credentials:"include"});if(d.status>=500)throw new _e(d);return d},{maxAttempts:5,minTimeout:1e3,maxTimeout:1e4,multiplier:2,jitter:0})}catch(d){if(d instanceof Le&&d.cause instanceof _e)u=d.cause.response;else throw d}if(!u.ok){const d=await u.json().catch(()=>({}));throw new Error(d?.error||r("common.authEntry.autoLoginFailed"))}i||(m({type:"succeeded",method:"local"}),window.location.href=nt(n))}catch(u){i||(m({type:"failed",method:"local",stage:"authenticate",error:u instanceof Error?u.message:String(u)}),g(u instanceof Error?u.message:r("common.authEntry.autoLoginFailed")))}})(),()=>{i=!0}},[n]),l?t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("p",{className:"text-destructive mb-2",children:r("common.authEntry.autoLoginFailedWithError",{error:l})}),t.jsx("p",{className:"text-muted-foreground text-sm",children:r("common.authEntry.tryRestartingServer")})]})}):t.jsx(Te,{})}function Te(){const n=ce.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex min-h-screen items-center justify-center",children:t.jsx(Ye,{size:"lg",label:"Signing in"})}),n[0]=e):e=n[0],e}function rt({callbackURL:n,providerId:e,ssoSignIn:r,onAuthEvent:l}){const g=N.useEffectEvent(i=>{try{l?.(i)}catch{}}),m=N.useEffectEvent(r);return N.useEffect(()=>{(async()=>{g({type:"started",method:"sso",provider:e});try{const i=await m({providerId:e,callbackURL:n});if(i.error)throw new Error(i.error.message||"SSO redirect failed")}catch(i){g({type:"failed",method:"sso",provider:e,stage:"redirect",error:i instanceof Error?i.message:String(i)})}})()},[e,n]),t.jsx(Te,{})}function mt(n){const e=ce.c(25),{callbackUrl:r,redirectUrl:l,allowAutoLogin:g,title:m,subtitle:i,brand:u,copy:d,variant:b,allowedSocialProviders:f,allowPassword:v,onAuthEvent:p,onAuthenticated:h}=n,A=g===void 0?!0:g,y=Fe(),{sso:w,emailAndPassword:x,magicLink:j,emailOtp:D,socialProviders:q,localMode:me}=ke(),_=l||r;let T;e[0]!==h?(T=h?{onAuthenticated:h}:void 0,e[0]=h,e[1]=T):T=e[1];const k=T;if(me&&A){let c;return e[2]!==p||e[3]!==_?(c=t.jsx(it,{redirectTo:_,onAuthEvent:p}),e[2]=p,e[3]=_,e[4]=c):c=e[4],c}if(w.enabled){let c;return e[5]!==p||e[6]!==_||e[7]!==w.providerId?(c=t.jsx(rt,{callbackURL:_,providerId:w.providerId,ssoSignIn:Oe.ssoSignIn,onAuthEvent:p}),e[5]=p,e[6]=_,e[7]=w.providerId,e[8]=c):c=e[8],c}if(x.enabled||j.enabled||D.enabled||q.enabled){let c;return e[9]!==v||e[10]!==f||e[11]!==u||e[12]!==r||e[13]!==k||e[14]!==d||e[15]!==p||e[16]!==l||e[17]!==i||e[18]!==m||e[19]!==b?(c=t.jsx(at,{redirectUrl:l,callbackUrl:r,title:m,subtitle:i,brand:u,copy:d,variant:b,allowedSocialProviders:f,allowPassword:v,onAuthEvent:p,actions:k}),e[9]=v,e[10]=f,e[11]=u,e[12]=r,e[13]=k,e[14]=d,e[15]=p,e[16]=l,e[17]=i,e[18]=m,e[19]=b,e[20]=c):c=e[20],c}let F;e[21]!==y?(F=y("common.authEntry.noLoginOptions"),e[21]=y,e[22]=F):F=e[22];let W;return e[23]!==F?(W=t.jsx("div",{children:F}),e[23]=F,e[24]=W):W=e[24],W}export{Te as A,mt as a};
@@ -1 +1 @@
1
- import{c as g,m as p,j as f}from"./index-Fgm7zmYy.js";function w(b){const e=g.c(20),{children:m,visual:r,align:j}=b,d=(j===void 0?"center":j)==="fill",x=d?"min-h-[100dvh] md:min-h-screen":"min-h-screen";let l;e[0]!==x?(l=p("flex w-full",x),e[0]=x,e[1]=l):l=e[1];const h=d?"h-[100dvh] justify-start pt-4 pb-8 md:h-auto":"justify-center py-6";let t;e[2]!==h?(t=p("flex flex-1 flex-col items-center bg-sidebar px-6 md:justify-center md:px-10 md:py-10",h),e[2]=h,e[3]=t):t=e[3];const u=d&&"flex min-h-0 flex-1 flex-col md:block md:flex-none";let s;e[4]!==u?(s=p("w-full max-w-[440px]",u),e[4]=u,e[5]=s):s=e[5];let i;e[6]!==m||e[7]!==s?(i=f.jsx("div",{className:s,children:m}),e[6]=m,e[7]=s,e[8]=i):i=e[8];let n;e[9]!==t||e[10]!==i?(n=f.jsx("section",{className:t,children:i}),e[9]=t,e[10]=i,e[11]=n):n=e[11];let c;e[12]!==r?(c=r??f.jsx("img",{src:"/onboarding-placeholder.png",alt:"",className:"absolute inset-0 h-full w-full object-cover"}),e[12]=r,e[13]=c):c=e[13];let a;e[14]!==c?(a=f.jsx("aside",{className:"relative hidden flex-1 overflow-hidden bg-muted md:flex",children:c}),e[14]=c,e[15]=a):a=e[15];let o;return e[16]!==a||e[17]!==l||e[18]!==n?(o=f.jsxs("main",{className:l,children:[n,a]}),e[16]=a,e[17]=l,e[18]=n,e[19]=o):o=e[19],o}export{w as A};
1
+ import{c as g,m as p,j as f}from"./index-CaT4JsCE.js";function w(b){const e=g.c(20),{children:m,visual:r,align:j}=b,d=(j===void 0?"center":j)==="fill",x=d?"min-h-[100dvh] md:min-h-screen":"min-h-screen";let l;e[0]!==x?(l=p("flex w-full",x),e[0]=x,e[1]=l):l=e[1];const h=d?"h-[100dvh] justify-start pt-4 pb-8 md:h-auto":"justify-center py-6";let t;e[2]!==h?(t=p("flex flex-1 flex-col items-center bg-sidebar px-6 md:justify-center md:px-10 md:py-10",h),e[2]=h,e[3]=t):t=e[3];const u=d&&"flex min-h-0 flex-1 flex-col md:block md:flex-none";let s;e[4]!==u?(s=p("w-full max-w-[440px]",u),e[4]=u,e[5]=s):s=e[5];let i;e[6]!==m||e[7]!==s?(i=f.jsx("div",{className:s,children:m}),e[6]=m,e[7]=s,e[8]=i):i=e[8];let n;e[9]!==t||e[10]!==i?(n=f.jsx("section",{className:t,children:i}),e[9]=t,e[10]=i,e[11]=n):n=e[11];let c;e[12]!==r?(c=r??f.jsx("img",{src:"/onboarding-placeholder.png",alt:"",className:"absolute inset-0 h-full w-full object-cover"}),e[12]=r,e[13]=c):c=e[13];let a;e[14]!==c?(a=f.jsx("aside",{className:"relative hidden flex-1 overflow-hidden bg-muted md:flex",children:c}),e[14]=c,e[15]=a):a=e[15];let o;return e[16]!==a||e[17]!==l||e[18]!==n?(o=f.jsxs("main",{className:l,children:[n,a]}),e[16]=a,e[17]=l,e[18]=n,e[19]=o):o=e[19],o}export{w as A};
@@ -1 +1 @@
1
- import{a as u}from"./mcp-oauth-DZU5vWeQ.js";import{i as p}from"./mcp-oauth-PGTDb-U0.js";async function k({connectionId:n,orgId:s,orgSlug:o,persistFallback:r}){const c=new URL(`/api/${o}/mcp/${n}`,window.location.origin),i=await p({url:c.href,token:null,orgId:s});if(!i.supportsOAuth||i.isAuthenticated)return{ran:!1,ok:!0,error:null};const{token:t,tokenInfo:e,error:a}=await u({connectionId:n,orgSlug:o,scope:"offline_access"});if(a||!t)return{ran:!0,ok:!1,error:a??"no token received"};if(e)try{(await fetch(`/api/${o}/connections/${n}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:e.accessToken,refreshToken:e.refreshToken,expiresIn:e.expiresIn,scope:e.scope,clientId:e.clientId,clientSecret:e.clientSecret,tokenEndpoint:e.tokenEndpoint})})).ok||await r(t)}catch{await r(t)}else await r(t);return{ran:!0,ok:!0,error:null}}export{k as a};
1
+ import{a as u}from"./mcp-oauth-B4C3DLh4.js";import{i as p}from"./mcp-oauth-CqXZxzFC.js";async function k({connectionId:n,orgId:s,orgSlug:o,persistFallback:r}){const c=new URL(`/api/${o}/mcp/${n}`,window.location.origin),i=await p({url:c.href,token:null,orgId:s});if(!i.supportsOAuth||i.isAuthenticated)return{ran:!1,ok:!0,error:null};const{token:t,tokenInfo:e,error:a}=await u({connectionId:n,orgSlug:o,scope:"offline_access"});if(a||!t)return{ran:!0,ok:!1,error:a??"no token received"};if(e)try{(await fetch(`/api/${o}/connections/${n}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:e.accessToken,refreshToken:e.refreshToken,expiresIn:e.expiresIn,scope:e.scope,clientId:e.clientId,clientSecret:e.clientSecret,tokenEndpoint:e.tokenEndpoint})})).ok||await r(t)}catch{await r(t)}else await r(t);return{ran:!0,ok:!0,error:null}}export{k as a};
@@ -1 +1 @@
1
- import{c as Q,b as U,r as ee,m as G,j as t,X as te,B as se,_ as ie,Z as ne,Y as ae,aJ as oe,aK as le,aL as re,aM as ce,b9 as me,aN as ue,aO as de,aP as fe}from"./index-Fgm7zmYy.js";import{B as ge}from"./badge-BaAyFkEc.js";import{s as xe}from"./UserCheck01-1yBsFo4N.js";import{a as pe}from"./SwitchHorizontal01-D0OMZUBx.js";import{s as he}from"./Trash01-ChlYfN0O.js";import{i as je}from"./Zap-DKj3FcQC.js";import{a as _e}from"./repository-binding-lbEKlJut.js";import{A as we}from"./agent-icon-DRRBub2m.js";import{a as ve}from"./use-automations-9UyV70Lz.js";function Be(c){const e=Q.c(89),{automation:s,showAgent:o,onClick:n}=c,i=U(),{remove:a}=ve(),[r,J]=ee.useState(!1),l=_e(o?s.virtual_mcp_id:void 0);let E;e[0]!==s.id||e[1]!==a?(E=()=>{a.mutate(s.id),J(!1)},e[0]=s.id,e[1]=a,e[2]=E):E=e[2];const V=E;let F;e[3]!==n?(F=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=F):F=e[4];const X=F,Y=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==Y?(u=G("inline-block size-2 rounded-full shrink-0",Y),e[5]=Y,e[6]=u):u=e[6];const Z=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==Z?(d=i(Z),e[7]=i,e[8]=Z,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(we,{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 q=s.system_key&&"invisible";let v;e[36]!==q?(v=G("shrink-0",q),e[36]=q,e[37]=v):v=e[37];let K;e[38]===Symbol.for("react.memo_cache_sentinel")?(K=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(pe,{size:16})})}),e[38]=K):K=e[38];let $,I;e[39]===Symbol.for("react.memo_cache_sentinel")?($=m=>{m.stopPropagation(),J(!0)},I=t.jsx(he,{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:[K,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 N;e[48]!==X||e[49]!==n||e[50]!==w||e[51]!==D||e[52]!==f||e[53]!==g?(N=t.jsxs("div",{role:"button",tabIndex:0,onClick:n,onKeyDown:X,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]=X,e[49]=n,e[50]=w,e[51]=D,e[52]=f,e[53]=g,e[54]=N):N=e[54];let R;e[55]!==i?(R=i("automations.automationListRow.deleteTitle"),e[55]=i,e[56]=R):R=e[56];let k;e[57]!==R?(k=t.jsx(oe,{children:R}),e[57]=R,e[58]=k):k=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]!==k||e[65]!==L?(C=t.jsxs(re,{children:[k,L]}),e[64]=k,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]!==V||e[74]!==a.isPending||e[75]!==z?(B=t.jsx(me,{onClick:V,disabled:W,variant:"destructive",children:z}),e[73]=V,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 O;e[80]!==C||e[81]!==M?(O=t.jsxs(de,{children:[C,M]}),e[80]=C,e[81]=M,e[82]=O):O=e[82];let S;e[83]!==r||e[84]!==O?(S=t.jsx(fe,{open:r,onOpenChange:J,children:O}),e[83]=r,e[84]=O,e[85]=S):S=e[85];let H;return e[86]!==N||e[87]!==S?(H=t.jsxs(t.Fragment,{children:[N,S]}),e[86]=N,e[87]=S,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(xe,{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(je,{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{Be as A};
1
+ import{c as J,b as U,r as ee,m as G,j as t,X as te,B as se,_ as ie,Z as ne,Y as ae,aL as oe,aM as le,aN as re,aO as ce,bc as me,aP as ue,aQ as de,aR as fe}from"./index-CaT4JsCE.js";import{B as ge}from"./badge-BgjvI8Jn.js";import{s as xe}from"./UserCheck01-DYJoLz9O.js";import{a as pe}from"./SwitchHorizontal01-z6tySRlC.js";import{s as he}from"./Trash01-C6DjwKcE.js";import{i as je}from"./Zap-CAQ2824E.js";import{a as _e}from"./repository-binding-BVqJcY39.js";import{A as we}from"./agent-icon-CH_f-N3x.js";import{a as ve}from"./use-automations-DYXtS06g.js";function Be(c){const e=J.c(89),{automation:s,showAgent:o,onClick:n}=c,i=U(),{remove:a}=ve(),[r,Q]=ee.useState(!1),l=_e(o?s.virtual_mcp_id:void 0);let E;e[0]!==s.id||e[1]!==a?(E=()=>{a.mutate(s.id),Q(!1)},e[0]=s.id,e[1]=a,e[2]=E):E=e[2];const V=E;let F;e[3]!==n?(F=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=F):F=e[4];const X=F,Y=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==Y?(u=G("inline-block size-2 rounded-full shrink-0",Y),e[5]=Y,e[6]=u):u=e[6];const Z=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==Z?(d=i(Z),e[7]=i,e[8]=Z,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(we,{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 q=s.system_key&&"invisible";let v;e[36]!==q?(v=G("shrink-0",q),e[36]=q,e[37]=v):v=e[37];let $;e[38]===Symbol.for("react.memo_cache_sentinel")?($=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(pe,{size:16})})}),e[38]=$):$=e[38];let K,I;e[39]===Symbol.for("react.memo_cache_sentinel")?(K=m=>{m.stopPropagation(),Q(!0)},I=t.jsx(he,{size:16}),e[39]=K,e[40]=I):(K=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:[$,t.jsx(ne,{align:"end",children:t.jsxs(ae,{variant:"destructive",onClick:K,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]!==X||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:X,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]=X,e[49]=n,e[50]=w,e[51]=D,e[52]=f,e[53]=g,e[54]=R):R=e[54];let N;e[55]!==i?(N=i("automations.automationListRow.deleteTitle"),e[55]=i,e[56]=N):N=e[56];let k;e[57]!==N?(k=t.jsx(oe,{children:N}),e[57]=N,e[58]=k):k=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]!==k||e[65]!==L?(C=t.jsxs(re,{children:[k,L]}),e[64]=k,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]!==V||e[74]!==a.isPending||e[75]!==z?(B=t.jsx(me,{onClick:V,disabled:W,variant:"destructive",children:z}),e[73]=V,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 O;e[80]!==C||e[81]!==M?(O=t.jsxs(de,{children:[C,M]}),e[80]=C,e[81]=M,e[82]=O):O=e[82];let S;e[83]!==r||e[84]!==O?(S=t.jsx(fe,{open:r,onOpenChange:Q,children:O}),e[83]=r,e[84]=O,e[85]=S):S=e[85];let H;return e[86]!==R||e[87]!==S?(H=t.jsxs(t.Fragment,{children:[R,S]}),e[86]=R,e[87]=S,e[88]=H):H=e[88],H}function ye(c){return c.stopPropagation()}function Ae(c){return c.stopPropagation()}function De(c){const e=J.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(xe,{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(je,{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{Be as A};
@@ -1 +1 @@
1
- import{c as Y,b as X,a6 as lt,T as it,am as rt,eO as ct,K as tt,j as s,m as ut,i as mt,gH as dt}from"./index-Fgm7zmYy.js";import{u as ft}from"./useInfiniteQuery-KgwFJp3D.js";import{b as xt}from"./use-connection-DqHrubFY.js";import{u as pt}from"./use-mcp-client-BG_HKvwm.js";import{u as gt}from"./repository-binding-lbEKlJut.js";import{b as ht,a as Rt}from"./sheet-DaP4rAPT.js";import{e as jt,a as Nt,b as st,T as G,d as Tt,c as Q}from"./table-YI10Cwky.js";import{E as et}from"./empty-state-D_x-G3qZ.js";import{u as bt}from"./use-id-selection-C4fuZY8-.js";import{u as St}from"./use-infinite-scroll-DSr33Sjt.js";import{g as vt}from"./task-status-VsndEQa5.js";import{e as Ct}from"./use-automations-9UyV70Lz.js";import{T as wt,f as at,a as nt}from"./thread-sheet-body-DDNcLbRN.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 j;t[17]!==e?(j=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=j):j=t[18];const y=n?"…":C;let S;t[19]!==j||t[20]!==y?(S=s.jsx(J,{title:j,value:y}),t[19]=j,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,j,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,j="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]=j,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],j=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]!==j?(i=s.jsx(C,{className:j,children:v}),t[28]=C,t[29]=v,t[30]=j,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 j;t[10]!==d||t[11]!==f||t[12]!==x?(j={queryKey:f,queryFn:x,initialPageParam:0,getNextPageParam:Dt,enabled:d,staleTime:3e4},t[10]=d,t[11]=f,t[12]=x,t[13]=j):j=t[13];const{data:y,fetchNextPage:S,hasNextPage:N,isFetchingNextPage:u,isLoading:v}=ft(j);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),R=bt(i),V=R.selected;let H;t[35]!==r||t[36]!==e?(H=s.jsx(yt,{automationId:r,range:e}),t[35]=r,t[36]=e,t[37]=H):H=t[37];let L;t[38]!==d||t[39]!==v||t[40]!==Z||t[41]!==i||t[42]!==R||t[43]!==o||t[44]!==k?(L=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(jt,{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:()=>R.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]=R,t[43]=o,t[44]=k,t[45]=L):L=t[45];let O;t[46]!==u||t[47]!==o?(O=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]=O):O=t[48];let A;t[49]!==R?(A=U=>{U||R.close()},t[49]=R,t[50]=A):A=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]!==R.index||t[59]!==R.next||t[60]!==R.prev?(K=V&&s.jsx(wt,{thread:V,client:P,locator:a,connections:w,virtualMcps:h,members:b,nav:{index:R.index,total:i.length,onPrev:R.prev,onNext:R.next}}),t[51]=w,t[52]=h,t[53]=P,t[54]=a,t[55]=b,t[56]=i,t[57]=V,t[58]=R.index,t[59]=R.next,t[60]=R.prev,t[61]=K):K=t[61];let q;t[62]!==K?(q=s.jsx(Rt,{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]!==R.isOpen||t[65]!==A||t[66]!==q?(F=s.jsx(ht,{open:R.isOpen,onOpenChange:A,children:q}),t[64]=R.isOpen,t[65]=A,t[66]=q,t[67]=F):F=t[67];let B;return t[68]!==H||t[69]!==L||t[70]!==O||t[71]!==F?(B=s.jsxs("div",{className:"flex flex-col gap-5",children:[H,L,O,F]}),t[68]=H,t[69]=L,t[70]=O,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,a6 as lt,T as it,an as rt,eR as ct,K as tt,j as s,m as ut,i as mt,gK as dt}from"./index-CaT4JsCE.js";import{u as ft}from"./useInfiniteQuery-Cark_fFU.js";import{b as xt}from"./use-connection-CiK8c3Rq.js";import{u as pt}from"./use-mcp-client-CTvio_L5.js";import{u as gt}from"./repository-binding-BVqJcY39.js";import{b as ht,a as Rt}from"./sheet-CF7PsYXH.js";import{e as jt,a as Nt,b as st,T as G,d as Tt,c as Q}from"./table-BahGaqnh.js";import{E as et}from"./empty-state-C9z6v98n.js";import{u as bt}from"./use-id-selection-q4gmzD-G.js";import{u as St}from"./use-infinite-scroll-DCsViXEp.js";import{g as vt}from"./task-status-BRcYy_b3.js";import{e as Ct}from"./use-automations-DYXtS06g.js";import{T as wt,f as at,a as nt}from"./thread-sheet-body-Dw_TM17U.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 j;t[17]!==e?(j=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=j):j=t[18];const y=n?"…":C;let S;t[19]!==j||t[20]!==y?(S=s.jsx(J,{title:j,value:y}),t[19]=j,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,j,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,j="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]=j,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],j=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]!==j?(i=s.jsx(C,{className:j,children:v}),t[28]=C,t[29]=v,t[30]=j,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 j;t[10]!==d||t[11]!==f||t[12]!==x?(j={queryKey:f,queryFn:x,initialPageParam:0,getNextPageParam:Dt,enabled:d,staleTime:3e4},t[10]=d,t[11]=f,t[12]=x,t[13]=j):j=t[13];const{data:y,fetchNextPage:S,hasNextPage:N,isFetchingNextPage:u,isLoading:v}=ft(j);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),R=bt(i),V=R.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]!==R||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(jt,{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:()=>R.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]=R,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]!==R?(O=U=>{U||R.close()},t[49]=R,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]!==R.index||t[59]!==R.next||t[60]!==R.prev?(K=V&&s.jsx(wt,{thread:V,client:P,locator:a,connections:w,virtualMcps:h,members:b,nav:{index:R.index,total:i.length,onPrev:R.prev,onNext:R.next}}),t[51]=w,t[52]=h,t[53]=P,t[54]=a,t[55]=b,t[56]=i,t[57]=V,t[58]=R.index,t[59]=R.next,t[60]=R.prev,t[61]=K):K=t[61];let q;t[62]!==K?(q=s.jsx(Rt,{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]!==R.isOpen||t[65]!==O||t[66]!==q?(F=s.jsx(ht,{open:R.isOpen,onOpenChange:O,children:q}),t[64]=R.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 $,a6 as D,d as M,r as q,n as d,B as V,hk as F,E as S}from"./index-Fgm7zmYy.js";import{s as G}from"./Plus-YYgZrNmi.js";import{i as b}from"./Zap-DKj3FcQC.js";import{S as H}from"./search-input-BSK2p7O8.js";import{E as T}from"./empty-state-D_x-G3qZ.js";import{u as J}from"./use-automations-9UyV70Lz.js";import{u as K}from"./use-navigate-to-agent-CycEyX5j.js";import{A as O}from"./automation-list-row-Db9GYcZa.js";import{u as Q}from"./repository-binding-lbEKlJut.js";import{R as U}from"./require-capability-DTf2ckfj.js";import"./SearchMd-F9uhWb9g.js";import"./use-mcp-client-BG_HKvwm.js";import"./auth-BUaNvdpA.js";import"./thread-intent-9WIfgb7-.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CySPhUJy.js";import"./task-board-B-fS99Ej.js";import"./schema-CJobXDlF.js";import"./session-runtime-Bud9bZRl.js";import"./badge-BaAyFkEc.js";import"./UserCheck01-1yBsFo4N.js";import"./SwitchHorizontal01-D0OMZUBx.js";import"./Trash01-ChlYfN0O.js";import"./agent-icon-DRRBub2m.js";import"./AlertCircle-Cey-Gu2p.js";import"./Tool01-CJw-0-8J.js";import"./ArrowUp-BWhAhOpN.js";import"./ArrowLeft-CwY2wFOb.js";import"./ArrowRight-AGjw7FFR.js";import"./BookOpen01-BAyMHA0X.js";import"./Globe04-BnukTdin.js";import"./CheckCircle-rZ8-ur12.js";import"./ChevronDown-BZHCO9By.js";import"./ChevronSelectorVertical-DI0h0SW-.js";import"./ChevronUp-Bj1h3iVu.js";import"./UserSquare-BuDhGAPX.js";import"./LinkBroken01-CmNqoF-N.js";import"./CreditCard01-BROAx_v8.js";import"./File02-i2jf_qKB.js";import"./MessageCircle01-DWcPES9w.js";import"./Eye-bNykREZr.js";import"./Fingerprint04-CLk-zzhP.js";import"./Image01-C9G-4wzm.js";import"./Key01-BUf9Mu9I.js";import"./LayoutLeft-D7MADj3f.js";import"./Minus-Bgtih4hT.js";import"./Monitor01-CvliL8Fp.js";import"./Sun-B6Hoq-WE.js";import"./Play-B4OJ-tfj.js";import"./ShoppingBag01-B7Nh9wXd.js";import"./Upload01-Dfbq4_nT.js";import"./Users01-c70X-IVE.js";import"./XClose-D2OKmayB.js";import"./access-gate-DP3z_oLr.js";import"./capability-load-error-xC7-r_fb.js";function W(){const t=k.c(20),o=$(),{org:p}=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(p.id);S("automations_list_row_clicked",{automation_id:i,agent_id:R,source:"settings_automations"}),P(R,{panel:`automation:${i}`})};let c;t[0]!==f||t[1]!==p.slug?(c=()=>{S("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/projects",params:{org:p.slug}})},t[0]=f,t[1]=p.slug,t[2]=c):c=t[2];const L=c,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 It(){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{It as default};
1
+ import{c as k,j as e,b as $,a6 as D,d as M,r as q,n as d,B as V,hn as F,E as S}from"./index-CaT4JsCE.js";import{s as G}from"./Plus-BXH7i2b3.js";import{i as b}from"./Zap-CAQ2824E.js";import{S as H}from"./search-input-TR7sI7RN.js";import{E as T}from"./empty-state-C9z6v98n.js";import{u as J}from"./use-automations-DYXtS06g.js";import{u as K}from"./use-navigate-to-agent-DqZ2afZ_.js";import{A as O}from"./automation-list-row-CUFPqnO8.js";import{u as Q}from"./repository-binding-BVqJcY39.js";import{R as U}from"./require-capability-CqlqzXSG.js";import"./SearchMd-DgVjcl_1.js";import"./use-mcp-client-CTvio_L5.js";import"./auth-YQD6gAdb.js";import"./thread-intent-yju7EkUf.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BU2YQMB0.js";import"./task-board-D4sEZC2J.js";import"./schema-Am-4674Q.js";import"./session-runtime-C7lRk1bm.js";import"./badge-BgjvI8Jn.js";import"./UserCheck01-DYJoLz9O.js";import"./SwitchHorizontal01-z6tySRlC.js";import"./Trash01-C6DjwKcE.js";import"./agent-icon-CH_f-N3x.js";import"./AlertCircle-Dt3GY0Bh.js";import"./Tool01-DOdYsq79.js";import"./ArrowUp-CPULRpjx.js";import"./ArrowLeft-YUwyiwVw.js";import"./ArrowRight-DenptpQc.js";import"./BookOpen01-CxcJv7PA.js";import"./Globe04-DnTwfyGh.js";import"./CheckCircle-7BnmcHqO.js";import"./ChevronDown-D8DhHnMq.js";import"./ChevronSelectorVertical-D-BmJmT0.js";import"./ChevronUp-DXnUGc0S.js";import"./UserSquare-B8TnRXAA.js";import"./LinkBroken01-nJS8cN1w.js";import"./CreditCard01-BcT6bkOS.js";import"./File02-CFZGfPVy.js";import"./MessageCircle01-DrWlC4OP.js";import"./Eye-DtSBHO9f.js";import"./Fingerprint04-De4VufgL.js";import"./Image01-sXwH8-FK.js";import"./Key01-0BhoHNxq.js";import"./LayoutLeft-DhcW8L2l.js";import"./Minus-BnUrCu3K.js";import"./Monitor01-CMAhieTY.js";import"./Sun-BsEDX0xb.js";import"./Play-DGe00qZP.js";import"./ShoppingBag01-Blomur-w.js";import"./Upload01-BswyIwDw.js";import"./Users01-2WULI_RK.js";import"./XClose-kwcMavwj.js";import"./access-gate-D3VbJ5hb.js";import"./capability-load-error-BZgx3S6r.js";function W(){const t=k.c(20),o=$(),{org:p}=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(p.id);S("automations_list_row_clicked",{automation_id:i,agent_id:R,source:"settings_automations"}),P(R,{panel:`automation:${i}`})};let c;t[0]!==f||t[1]!==p.slug?(c=()=>{S("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/projects",params:{org:p.slug}})},t[0]=f,t[1]=p.slug,t[2]=c):c=t[2];const L=c,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 It(){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{It as default};
@@ -1 +1 @@
1
- import{c as b,m as u,j as l,bZ as c,b_ as p}from"./index-Fgm7zmYy.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,c0 as c,c1 as p}from"./index-CaT4JsCE.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};