decocms 4.445.0 → 4.445.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/dist/client/assets/{AlertCircle-C5HVrLZe.js → AlertCircle-DjwL3HeP.js} +1 -1
  2. package/dist/client/assets/{AreaChart-D43Fw6gj.js → AreaChart-CXzSyqpz.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DJk4oPCQ.js → ArrowLeft-OKETo1JN.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-CWWobdUx.js → ArrowUp-CuiZciDq.js} +1 -1
  5. package/dist/client/assets/{Building02-B3I4JJCN.js → Building02-Bi6DxRcf.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-D-BcWVv1.js → CartesianChart-8M4Jx-Ig.js} +1 -1
  7. package/dist/client/assets/{Check-PcQs3M4o.js → Check-CG-PU97b.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-HgqCvHI2.js → CheckCircle-BlkcMEUz.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BkK36MsN.js → ChevronUp-C3ZiD_fg.js} +1 -1
  10. package/dist/client/assets/{Copy01-CoysgpeW.js → Copy01-DojX8qy9.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-C6aogu2h.js → CreditCard01-BQvCmNkN.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-DPKr3IOx.js → DotsVertical-Djr19pIQ.js} +1 -1
  13. package/dist/client/assets/{ErrorBarContext-BGg7oCnZ.js → ErrorBarContext-CuBemprE.js} +1 -1
  14. package/dist/client/assets/{Image01-DGPruqah.js → Image01-DfuNfbn3.js} +1 -1
  15. package/dist/client/assets/{Key01-CDcSYqkq.js → Key01-CJa1302r.js} +1 -1
  16. package/dist/client/assets/{Line-Crij-hKl.js → Line-DP9XUA3f.js} +1 -1
  17. package/dist/client/assets/{Link01-CLl6j_mc.js → Link01-CUp58poO.js} +1 -1
  18. package/dist/client/assets/{LinkBroken01-CoaVazaJ.js → LinkBroken01-xH8m8Sus.js} +1 -1
  19. package/dist/client/assets/{LinkExternal01-BvS68qI_.js → LinkExternal01-D6MX3TMO.js} +1 -1
  20. package/dist/client/assets/{Monitor01-C_aGyUUc.js → Monitor01-DlAgqW2y.js} +1 -1
  21. package/dist/client/assets/{Palette-BcuggLpF.js → Palette-w5zzOUDg.js} +1 -1
  22. package/dist/client/assets/{Plus-DvM_B5XA.js → Plus-B-53rDvP.js} +1 -1
  23. package/dist/client/assets/{SearchMd-Zps5bO1E.js → SearchMd-BllCVZq9.js} +1 -1
  24. package/dist/client/assets/{Sector-BktECt-T.js → Sector-BN_4WiSr.js} +1 -1
  25. package/dist/client/assets/{ShoppingBag01-BWCkeQfV.js → ShoppingBag01-DppHiQvv.js} +1 -1
  26. package/dist/client/assets/{Sun-CSZHqwWX.js → Sun-wN9CLbIZ.js} +1 -1
  27. package/dist/client/assets/{Tool01-C3UQzTkW.js → Tool01-jLeWFLJf.js} +1 -1
  28. package/dist/client/assets/{Trash01-DNWhfTgH.js → Trash01-COqYNSpe.js} +1 -1
  29. package/dist/client/assets/{Upload01-Dp_vWLSf.js → Upload01-Ck_z8fJf.js} +1 -1
  30. package/dist/client/assets/{User01-C5XGpmJ9.js → User01-CST7ZUYM.js} +1 -1
  31. package/dist/client/assets/{UserSquare-xl-CVK1W.js → UserSquare-B213f0Cc.js} +1 -1
  32. package/dist/client/assets/{Users01-DZXc12n3.js → Users01-BGu5-MW7.js} +1 -1
  33. package/dist/client/assets/{X-CdL2mAGV.js → X-Cof6n_dh.js} +1 -1
  34. package/dist/client/assets/{XAxis-BSjyzSv8.js → XAxis-Dj0nCCf7.js} +1 -1
  35. package/dist/client/assets/{XClose-B2h9zNaw.js → XClose-Bv4BxYzr.js} +1 -1
  36. package/dist/client/assets/{ZoomOut-DdAVIXWQ.js → ZoomOut-C9XmFKHT.js} +1 -1
  37. package/dist/client/assets/{access-gate-9NCpXLLW.js → access-gate-DwCbDOyT.js} +1 -1
  38. package/dist/client/assets/{add-connection-dialog-D0K7EFqJ.js → add-connection-dialog-Bd-4QkQ3.js} +1 -1
  39. package/dist/client/assets/{agent-analytics-fm_KgOxT.js → agent-analytics-CZFEsxzi.js} +1 -1
  40. package/dist/client/assets/agent-app-Diwe14GF.js +1 -0
  41. package/dist/client/assets/{agent-assets-UZAZfpTO.js → agent-assets-C3DwQELr.js} +1 -1
  42. package/dist/client/assets/{agent-automation-CJ--1vlL.js → agent-automation-BHsaoQMa.js} +1 -1
  43. package/dist/client/assets/{agent-automations-CR-H6hc3.js → agent-automations-D_aNacY7.js} +1 -1
  44. package/dist/client/assets/{agent-connect-sources-CRwsSTEP.js → agent-connect-sources-CmXIaOqo.js} +1 -1
  45. package/dist/client/assets/agent-deck-CbXBzAqF.js +1 -0
  46. package/dist/client/assets/{agent-e2e-C2NjCqOM.js → agent-e2e-5Ey6GJps.js} +1 -1
  47. package/dist/client/assets/{agent-experiments-Ch3Qp9Rp.js → agent-experiments-DFFnSKCR.js} +1 -1
  48. package/dist/client/assets/{agent-file-C_uWBocy.js → agent-file-0RtEXQpG.js} +1 -1
  49. package/dist/client/assets/{agent-git-BHIqGIa0.js → agent-git-CknhvqDB.js} +1 -1
  50. package/dist/client/assets/{agent-hosting-DDbkzjIs.js → agent-hosting-Cv3HBuvV.js} +1 -1
  51. package/dist/client/assets/{agent-icon-B4YwY0JM.js → agent-icon-CP-a92NU.js} +1 -1
  52. package/dist/client/assets/agent-library-C7Hlq-sE.js +1 -0
  53. package/dist/client/assets/agent-library-file-CiQko8Yn.js +1 -0
  54. package/dist/client/assets/{agent-monitor-BLbfMhID.js → agent-monitor-DpUK3mmL.js} +1 -1
  55. package/dist/client/assets/{agent-overview-CfYzBY07.js → agent-overview-BIGeAvZW.js} +1 -1
  56. package/dist/client/assets/agent-settings-DYvMoICn.js +1 -0
  57. package/dist/client/assets/{agent-site-editor-bFWRhsPc.js → agent-site-editor-BF-ZX30y.js} +14 -14
  58. package/dist/client/assets/agent-site-editor-code-DeFPvW4J.js +2 -0
  59. package/dist/client/assets/{agent-site-editor-content-DKwHAIsT.js → agent-site-editor-content-D1vaIIMb.js} +3 -3
  60. package/dist/client/assets/{agent-site-editor-preview-C0gXDXdn.js → agent-site-editor-preview-C-eN1kYT.js} +3 -3
  61. package/dist/client/assets/agent-view-BnuKj0ny.js +1 -0
  62. package/dist/client/assets/{agent-view-guard-5QvPhq1h.js → agent-view-guard-DPnTVLre.js} +1 -1
  63. package/dist/client/assets/{agents-list-CnzJ37XA.js → agents-list-Mgzp0P_4.js} +1 -1
  64. package/dist/client/assets/{ai-providers-q-_JYW8w.js → ai-providers-Distp3oA.js} +1 -1
  65. package/dist/client/assets/{alert-B16R0uts.js → alert-DqxeFeub.js} +1 -1
  66. package/dist/client/assets/{alert-dialog-XGdjcU6k.js → alert-dialog-BGx21FS2.js} +1 -1
  67. package/dist/client/assets/{analytics-sections-Cz3G93_h.js → analytics-sections-D10GOi-H.js} +1 -1
  68. package/dist/client/assets/{api-keys-CO3fVZcr.js → api-keys-C7InEOAV.js} +1 -1
  69. package/dist/client/assets/api-keys-CTKkR1Dq.js +1 -0
  70. package/dist/client/assets/app-editor-dw5EB-b1.js +1 -0
  71. package/dist/client/assets/{asset-utils-CsHkjcx7.js → asset-utils-BHgp-Y7e.js} +1 -1
  72. package/dist/client/assets/{auth-catchall-C7s55TAd.js → auth-catchall-Co-9Paa8.js} +1 -1
  73. package/dist/client/assets/{auth-entry-Cop5n0XE.js → auth-entry-CAt61ZOn.js} +1 -1
  74. package/dist/client/assets/{auth-DAdApGdR.js → auth-ffdv9zBE.js} +1 -1
  75. package/dist/client/assets/{auth-split-layout-o0lzMTvJ.js → auth-split-layout-CCgaVboC.js} +1 -1
  76. package/dist/client/assets/{authenticate-and-persist-oauth-DclFzKA2.js → authenticate-and-persist-oauth-Dzp7mUaZ.js} +1 -1
  77. package/dist/client/assets/{automation-list-row-CzUhZzwb.js → automation-list-row-ok7jT6DX.js} +1 -1
  78. package/dist/client/assets/{automation-runs-D00ea7ee.js → automation-runs-CXbfi6GL.js} +1 -1
  79. package/dist/client/assets/{automations-D35h3NYv.js → automations-De2zXYq4.js} +1 -1
  80. package/dist/client/assets/{autosend-iwmKuXuz.js → autosend-Dh7jjPXm.js} +1 -1
  81. package/dist/client/assets/{avatar-82D6QSzb.js → avatar-fmpBdvp6.js} +1 -1
  82. package/dist/client/assets/{badge-yAjkMzov.js → badge-DsoTczsm.js} +1 -1
  83. package/dist/client/assets/{block-document-C9-Wek01.js → block-document-D6rGPUNK.js} +1 -1
  84. package/dist/client/assets/{blocks-preview-workspace-context-Brv4RSE6.js → blocks-preview-workspace-context-C2W6_FPn.js} +1 -1
  85. package/dist/client/assets/{buckets-Bhi3gWLo.js → buckets-DdCHbQuS.js} +1 -1
  86. package/dist/client/assets/{build-improve-prompt-doc-Dht5CUKH.js → build-improve-prompt-doc-BjoVQABC.js} +1 -1
  87. package/dist/client/assets/{calendar-Bslu1_9K.js → calendar-BJt9uDoC.js} +1 -1
  88. package/dist/client/assets/{capability-load-error-ZZv-GJJq.js → capability-load-error-CGburUk6.js} +1 -1
  89. package/dist/client/assets/{category-editor-COibbmOK.js → category-editor-0k4-JF4F.js} +1 -1
  90. package/dist/client/assets/{chart-CZVl22b4.js → chart-CIZqCLm5.js} +1 -1
  91. package/dist/client/assets/{chat-context-Nt6K5QHf.js → chat-context-BBhvzmcP.js} +1 -1
  92. package/dist/client/assets/{chat-draft-BVvFy0MY.js → chat-draft-Cz6yiaVy.js} +1 -1
  93. package/dist/client/assets/{checkbox-Bj1FopWB.js → checkbox-CpAb-kkK.js} +1 -1
  94. package/dist/client/assets/{choose-editor-1VN3atox.js → choose-editor-DKU3NA7D.js} +1 -1
  95. package/dist/client/assets/{claim-phase-copy-CBVsfXmG.js → claim-phase-copy-CHHxm4AV.js} +1 -1
  96. package/dist/client/assets/{cli-auth-success-DjXBMl0f.js → cli-auth-success-BY5G9enJ.js} +1 -1
  97. package/dist/client/assets/{client-icons-BBtapoe7.js → client-icons-BgBylDCZ.js} +1 -1
  98. package/dist/client/assets/{collapsible-BX9vPVyT.js → collapsible-B8PaaCi8.js} +1 -1
  99. package/dist/client/assets/{collection-detail-Diy45xZy.js → collection-detail-BWFHXPAY.js} +1 -1
  100. package/dist/client/assets/{collection-display-button-DFXrobgX.js → collection-display-button-uO2KBDwy.js} +1 -1
  101. package/dist/client/assets/{collection-search-DeGickf-.js → collection-search-zhbgIwPh.js} +1 -1
  102. package/dist/client/assets/{collection-table-wrapper-lmYLB3Hz.js → collection-table-wrapper-41fgwDNj.js} +1 -1
  103. package/dist/client/assets/{collection-tabs-B8LEhNUB.js → collection-tabs-Cnqxbwq8.js} +1 -1
  104. package/dist/client/assets/{column-rules-BGGP1JYz.js → column-rules-BbslGa4m.js} +1 -1
  105. package/dist/client/assets/{combobox-i_6XI5EO.js → combobox-gRnDTga1.js} +1 -1
  106. package/dist/client/assets/{command-qV-OCtKE.js → command-kcGesH_1.js} +1 -1
  107. package/dist/client/assets/{companion-mcps-section-Cmp_DmPB.js → companion-mcps-section-3XbtagnL.js} +1 -1
  108. package/dist/client/assets/{config-DHrAZEyH.js → config-sm-ut8Gk.js} +1 -1
  109. package/dist/client/assets/{connect-DUnStJuO.js → connect-BH4qJP2z.js} +1 -1
  110. package/dist/client/assets/{connect-layout-Crsbbsrh.js → connect-layout-qnWOJOpE.js} +1 -1
  111. package/dist/client/assets/{connection-sG3juRG0.js → connection-DNEkOvf2.js} +1 -1
  112. package/dist/client/assets/{connection-card-BoE7Seb8.js → connection-card-BALjxAsf.js} +1 -1
  113. package/dist/client/assets/{connection-detail-C-ugCpSq.js → connection-detail-CQG26bcS.js} +1 -1
  114. package/dist/client/assets/{connection-form-helpers-Buu9gdFE.js → connection-form-helpers-Cb-n9DJ0.js} +1 -1
  115. package/dist/client/assets/{connections-Dc4QDAgV.js → connections-i2ynFVnZ.js} +1 -1
  116. package/dist/client/assets/{context-DOEs1tS3.js → context-B7ToLfv0.js} +1 -1
  117. package/dist/client/assets/{context-menu-BU4wtxmt.js → context-menu-Bi84gHfG.js} +1 -1
  118. package/dist/client/assets/{create-organization-dialog-CFMgzqrq.js → create-organization-dialog-CP_6oHfw.js} +1 -1
  119. package/dist/client/assets/{daily-pulse-q50TCtWr.js → daily-pulse-8XiTqXkF.js} +1 -1
  120. package/dist/client/assets/{decopilot-BskuGSK2.js → decopilot-DYxSzoYy.js} +1 -1
  121. package/dist/client/assets/{device-hint-C396KJ6B.js → device-hint-V6hc7GyA.js} +1 -1
  122. package/dist/client/assets/{dialog-BtZaxAxx.js → dialog-COgKkGMt.js} +1 -1
  123. package/dist/client/assets/{discover-DoaVYRY_.js → discover-B7IkkL7W.js} +1 -1
  124. package/dist/client/assets/{domain-settings-Cw9cjtvz.js → domain-settings-BKwkxHah.js} +1 -1
  125. package/dist/client/assets/{download-app-dialog-N2OFCrrJ.js → download-app-dialog-BU09bt1-.js} +1 -1
  126. package/dist/client/assets/{drawer-DpbaHbt-.js → drawer-B2MRXWND.js} +1 -1
  127. package/dist/client/assets/{editor-BVZ6fWcH.js → editor-CIHxdT_W.js} +1 -1
  128. package/dist/client/assets/{empty-state-DUWhBADp.js → empty-state-Cjrt4JF2.js} +1 -1
  129. package/dist/client/assets/{empty-state-D9bHVb4i.js → empty-state-DAKEuegE.js} +1 -1
  130. package/dist/client/assets/{extract-connection-data-Djd5qBcT.js → extract-connection-data-98j2I-d4.js} +1 -1
  131. package/dist/client/assets/{feature-gate-ClITdlx9.js → feature-gate-B1mBX_Og.js} +1 -1
  132. package/dist/client/assets/{feature-paywall-ptu3pQbR.js → feature-paywall-BSrYp3HB.js} +1 -1
  133. package/dist/client/assets/{file-explorer-DFiyvWBm.js → file-explorer-BEkZigwq.js} +1 -1
  134. package/dist/client/assets/{file-preview-j0XjXfca.js → file-preview-BNoQ182-.js} +1 -1
  135. package/dist/client/assets/{file-share-button-D-fjDHwq.js → file-share-button-C-PZ60jk.js} +1 -1
  136. package/dist/client/assets/{file-type-icon-DlDIow-z.js → file-type-icon-CWC1YDae.js} +1 -1
  137. package/dist/client/assets/flat-project-CQrbZkIa.js +1 -0
  138. package/dist/client/assets/{folder-icon-CEo_DFJP.js → folder-icon-PbflUtLB.js} +1 -1
  139. package/dist/client/assets/{form-BfnsNCzB.js → form-Db69kf_B.js} +1 -1
  140. package/dist/client/assets/{gateway-client-C8R1lemD.js → gateway-client-B4-iQhqC.js} +1 -1
  141. package/dist/client/assets/{general-CTpk5sBl.js → general-CDUOuFSN.js} +1 -1
  142. package/dist/client/assets/{home-CSgVYJ4O.js → home-hJemzDzt.js} +1 -1
  143. package/dist/client/assets/{icon-button-DWXuhPgX.js → icon-button-Bwycj_wq.js} +1 -1
  144. package/dist/client/assets/{index-gqQxV0Xj.js → index-27xDb8Xc.js} +1 -1
  145. package/dist/client/assets/{index-CdAYzjgW.js → index-BZWRK0v9.js} +1 -1
  146. package/dist/client/assets/{index-rMmcW-9F.js → index-BnaT7vkr.js} +1 -1
  147. package/dist/client/assets/{index-DtTvwf7O.js → index-C1ToZZWO.js} +1 -1
  148. package/dist/client/assets/{index-8ROcBeOM.js → index-C4_IsUfP.js} +4 -4
  149. package/dist/client/assets/{index-BPUrZQFm.js → index-CSzGrExk.js} +1 -1
  150. package/dist/client/assets/{index-Dciz6AyM.js → index-CW5Alkje.js} +1 -1
  151. package/dist/client/assets/{index-C62hQl6G.js → index-Ce2VZWO2.js} +1 -1
  152. package/dist/client/assets/{index-CAwr_e5z.js → index-D1gyNz7X.js} +1 -1
  153. package/dist/client/assets/{index-CXhpDAvB.js → index-DJGpbjKX.js} +1 -1
  154. package/dist/client/assets/{index-CH-94t-p.js → index-DJV1OD9N.js} +1 -1
  155. package/dist/client/assets/{index-DUPHFsCp.js → index-DPB2qLtL.js} +1 -1
  156. package/dist/client/assets/{index-Cl5vdSpu.js → index-DTW4pU63.js} +1 -1
  157. package/dist/client/assets/{index-DCQOb4XN.js → index-DXHp6hz_.js} +3 -3
  158. package/dist/client/assets/{index-CqSUHjzx.js → index-Hu92qcJz.js} +1 -1
  159. package/dist/client/assets/{index-redirect-TBL_ANTt.js → index-redirect-DTA4ItZi.js} +1 -1
  160. package/dist/client/assets/{infiniteQueryObserver-ZauDjxfW.js → infiniteQueryObserver-Cf0bngpS.js} +1 -1
  161. package/dist/client/assets/{infra-billing-BdvGRyl1.js → infra-billing-BObMvo8v.js} +1 -1
  162. package/dist/client/assets/{input-BanC9Ucc.js → input-6lxk3V5y.js} +1 -1
  163. package/dist/client/assets/{input-CyCe0RY_.js → input-Dpl0C33Q.js} +1 -1
  164. package/dist/client/assets/{input-7PISZA55.js → input-Dvx4_YlR.js} +3 -3
  165. package/dist/client/assets/{integration-icon-DqSuxTpO.js → integration-icon-gYDhAPNi.js} +1 -1
  166. package/dist/client/assets/{label-Bn2z72pa.js → label-CgPg1zhc.js} +1 -1
  167. package/dist/client/assets/{layout-CQg-WE66.js → layout-Crx6USLo.js} +1 -1
  168. package/dist/client/assets/{legacy-agents-deep-BsbjzYaQ.js → legacy-agents-deep-Cut-1tge.js} +1 -1
  169. package/dist/client/assets/{legacy-main-redirect-F-upLWWY.js → legacy-main-redirect-Cj560OCW.js} +1 -1
  170. package/dist/client/assets/{library-tab-jDZ26_Yu.js → library-tab-DPNlVhl-.js} +1 -1
  171. package/dist/client/assets/library-zoJ1ekom.js +1 -0
  172. package/dist/client/assets/{login-DQ8kzAjg.js → login-Bs9ns-6d.js} +1 -1
  173. package/dist/client/assets/{markdown-5USBpPC8.js → markdown-DtvdqO22.js} +1 -1
  174. package/dist/client/assets/{mcp-app-renderer-DWHfNffK.js → mcp-app-renderer-D3TWD-wB.js} +1 -1
  175. package/dist/client/assets/{mcp-oauth-7vzmmq-a.js → mcp-oauth-CjHh5FM6.js} +1 -1
  176. package/dist/client/assets/{members-BRVmbtTs.js → members-DNgd7fVu.js} +1 -1
  177. package/dist/client/assets/{memory-Q-1OkL9T.js → memory-DU_rRCMP.js} +1 -1
  178. package/dist/client/assets/{message-templates-BFPVUU3A.js → message-templates-s7IORQ8r.js} +1 -1
  179. package/dist/client/assets/{mini-report-page-DKTvb5RA.js → mini-report-page-oYFhLx2E.js} +1 -1
  180. package/dist/client/assets/{mock-board-CjbF2Fbe.js → mock-board-CCB3PySt.js} +1 -1
  181. package/dist/client/assets/{monaco-editor-CbBCI2Xe.js → monaco-editor-By0NuCaO.js} +1 -1
  182. package/dist/client/assets/{monitoring-stats-row-Bbu1vcmB.js → monitoring-stats-row-C4_DtBvj.js} +1 -1
  183. package/dist/client/assets/{multi-select-DPwb6cpw.js → multi-select-DEu7tNV3.js} +1 -1
  184. package/dist/client/assets/{mustache-Cn18e6sk.js → mustache-DBZS3bdm.js} +1 -1
  185. package/dist/client/assets/{new-project-dialog-CsWJZGWT.js → new-project-dialog-BOZCRvZH.js} +1 -1
  186. package/dist/client/assets/{oauth-callback--47mw0EF.js → oauth-callback-DOyrg0SN.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-ai-provider-qrVV_p0w.js → oauth-callback-ai-provider-BzMON2oe.js} +1 -1
  188. package/dist/client/assets/{onboarding-tXTIT-3D.js → onboarding-CXIS0_bd.js} +1 -1
  189. package/dist/client/assets/{openai-conversation-Fo01tpji.js → openai-conversation-C-HjbN9u.js} +1 -1
  190. package/dist/client/assets/{optimistic-project-sidebar-views-BBCMaD_P.js → optimistic-project-sidebar-views-BOdF7f7a.js} +1 -1
  191. package/dist/client/assets/{org-file-open-context-DjnDV-Wb.js → org-file-open-context-6QFXpEgZ.js} +1 -1
  192. package/dist/client/assets/{organization-choice-BjDAlCHw.js → organization-choice-CM6nT08P.js} +1 -1
  193. package/dist/client/assets/{orgs-okkbii5K.js → orgs-B6-nh4S4.js} +1 -1
  194. package/dist/client/assets/{page-seo-form-BVIoMFkC.js → page-seo-form-DKvS6L6D.js} +1 -1
  195. package/dist/client/assets/{pair-Bjpxh-qi.js → pair-DpCeb_3s.js} +1 -1
  196. package/dist/client/assets/{plan-ladder-BUr0FQKD.js → plan-ladder-DLN0J7oF.js} +1 -1
  197. package/dist/client/assets/{popover-DgpjjzI9.js → popover-dmidPVrf.js} +1 -1
  198. package/dist/client/assets/{post-calendar-BeNh2iGP.js → post-calendar-BjokMhLQ.js} +1 -1
  199. package/dist/client/assets/{post-editor-w_9fT9Mi.js → post-editor-YTcyxDjG.js} +1 -1
  200. package/dist/client/assets/{preview-content-VmyF6LSH.js → preview-content-gPYBrvGn.js} +1 -1
  201. package/dist/client/assets/{preview-dialog-D7pg9eWa.js → preview-dialog-CzQnjks4.js} +1 -1
  202. package/dist/client/assets/{profile-BJrLSGim.js → profile-DxTtdxe5.js} +1 -1
  203. package/dist/client/assets/{project-app-view-FKoIV4Mp.js → project-app-view-BODEdbco.js} +1 -1
  204. package/dist/client/assets/{project-feed-Bwh6N7aC.js → project-feed-DADEDd8d.js} +1 -1
  205. package/dist/client/assets/{project-icon-BVmGHfAM.js → project-icon-D1yuRlQG.js} +1 -1
  206. package/dist/client/assets/project-reports-rKy8N7Ny.js +1 -0
  207. package/dist/client/assets/project-tasks-cuBSqa7p.js +1 -0
  208. package/dist/client/assets/{projects-DJ-zePnr.js → projects-CyZfUamX.js} +1 -1
  209. package/dist/client/assets/{projects-empty-state-7qBXU2I8.js → projects-empty-state-CUFK9GpZ.js} +1 -1
  210. package/dist/client/assets/{prompts-CX0m-UtB.js → prompts-B9neOFSp.js} +1 -1
  211. package/dist/client/assets/record-editor-CPNxIbj_.js +1 -0
  212. package/dist/client/assets/{redirect-editor-Dn24GZiC.js → redirect-editor-DrCNsc1H.js} +1 -1
  213. package/dist/client/assets/reports-DNPS3fap.js +1 -0
  214. package/dist/client/assets/{reports-BzkkmOF8.js → reports-DyXPXviK.js} +1 -1
  215. package/dist/client/assets/{reports-onboarding-BiJg13ox.js → reports-onboarding-BxKIzMW5.js} +1 -1
  216. package/dist/client/assets/{reports-tab-BJGnC0-5.js → reports-tab-DJgIQjgc.js} +2 -2
  217. package/dist/client/assets/{repositories-BAsigS3D.js → repositories-CsjMPbQH.js} +1 -1
  218. package/dist/client/assets/{repository-binding-Bqtv3z-W.js → repository-binding-B6lutFQ4.js} +1 -1
  219. package/dist/client/assets/{repository-import-picker-B_SeG55B.js → repository-import-picker-B4bNRs4L.js} +1 -1
  220. package/dist/client/assets/{repository-picker-w_v5XfDS.js → repository-picker-BDuRXMxQ.js} +1 -1
  221. package/dist/client/assets/{require-capability-BRTV4cFL.js → require-capability-BaFiHjJm.js} +1 -1
  222. package/dist/client/assets/{required-auth-layout-DST7pe03.js → required-auth-layout-DYUyUBTP.js} +1 -1
  223. package/dist/client/assets/{reset-password-DbwCoUc8.js → reset-password-BZwtg3VF.js} +1 -1
  224. package/dist/client/assets/{resizable-YQ94bbPR.js → resizable-D6UZXDc2.js} +1 -1
  225. package/dist/client/assets/{resolve-tab-icon-DBl8wZO4.js → resolve-tab-icon-DG_iwLVF.js} +1 -1
  226. package/dist/client/assets/{review-settings-Bhgi0To3.js → review-settings-CjjMwaAx.js} +1 -1
  227. package/dist/client/assets/{rich-text-link-control-CJV5ImB9.js → rich-text-link-control-CqFzbJxy.js} +1 -1
  228. package/dist/client/assets/{roles-D--hRFLD.js → roles-DRGcrmbe.js} +1 -1
  229. package/dist/client/assets/{route-DqqNAJgH.js → route-BhkR_O-0.js} +1 -1
  230. package/dist/client/assets/{route-mvw6bd2v.js → route-DkIAMtp5.js} +1 -1
  231. package/dist/client/assets/route-DlhyTzvL.js +1 -0
  232. package/dist/client/assets/{runnable-block-editor-Ekx3VFu4.js → runnable-block-editor-fyfMhH6V.js} +1 -1
  233. package/dist/client/assets/{sandbox-lifecycle-context-D3rqVZE7.js → sandbox-lifecycle-context-DrX5l-5K.js} +1 -1
  234. package/dist/client/assets/{schema-D_b4vZ7I.js → schema-BBcW2anh.js} +1 -1
  235. package/dist/client/assets/{scroll-area-Yj6MrDB0.js → scroll-area-BBLTeXue.js} +1 -1
  236. package/dist/client/assets/{search-input-CHN_qcZt.js → search-input-oTBQACCx.js} +1 -1
  237. package/dist/client/assets/{search-toggle-gnOAnWxM.js → search-toggle-BXX7TzWa.js} +1 -1
  238. package/dist/client/assets/{secret-picker-RZRUxDQy.js → secret-picker-OrYCJEqi.js} +1 -1
  239. package/dist/client/assets/{secrets-CmzOh8fV.js → secrets-B74o_et-.js} +1 -1
  240. package/dist/client/assets/{sections-editor-92GssqzD.js → sections-editor-C9jPqZOv.js} +1 -1
  241. package/dist/client/assets/{select-D_2Dtgab.js → select-PSFqlkTM.js} +1 -1
  242. package/dist/client/assets/{select-model-BdH19s4j.js → select-model-BP3tXECd.js} +1 -1
  243. package/dist/client/assets/{seo-editor-CZcu9EB6.js → seo-editor-DqYSllol.js} +1 -1
  244. package/dist/client/assets/{separator-DFLcyyJh.js → separator-AvIMuaER.js} +1 -1
  245. package/dist/client/assets/{settings-tab-B1EwFFBD.js → settings-tab-C9bNfuVd.js} +1 -1
  246. package/dist/client/assets/{sheet-DplgMQgp.js → sheet-DbmMn_ii.js} +1 -1
  247. package/dist/client/assets/{shell-layout-Bs4S55Ty.js → shell-layout-BfhOykQZ.js} +1 -1
  248. package/dist/client/assets/{skills-wn8sgRwl.js → skills-B5FUPo9d.js} +1 -1
  249. package/dist/client/assets/{sso-CBAmAJJ4.js → sso-CHSSVIfl.js} +1 -1
  250. package/dist/client/assets/{suggestion-CzkXVd3G.js → suggestion-DvBjOngJ.js} +1 -1
  251. package/dist/client/assets/{switch-CjmNMBI9.js → switch-CXpPSeH8.js} +1 -1
  252. package/dist/client/assets/{synced-repos-DVq5FYNc.js → synced-repos-DOJGRaR9.js} +1 -1
  253. package/dist/client/assets/{tab-icon-glyph-B_6Wp6kQ.js → tab-icon-glyph-Btg0LVjZ.js} +1 -1
  254. package/dist/client/assets/{table-Bxw1S3_7.js → table-CtTfXjDZ.js} +1 -1
  255. package/dist/client/assets/{tabs-BVF8ZK_0.js → tabs-G-niln3k.js} +1 -1
  256. package/dist/client/assets/{task-board-8eXLM5MN.js → task-board-CRMXz3n1.js} +1 -1
  257. package/dist/client/assets/{task-route-CUxAqAJa.js → task-route-DPhkn4ZD.js} +1 -1
  258. package/dist/client/assets/{task-status-B-4DGiGH.js → task-status-DSm1bkYX.js} +1 -1
  259. package/dist/client/assets/{taskboard-analytics-D2ysDEff.js → taskboard-analytics-BMbO7tVP.js} +1 -1
  260. package/dist/client/assets/tasks--SO8Qz-Z.js +1 -0
  261. package/dist/client/assets/{tasks-BU37mWt3.js → tasks-DFbdydCF.js} +1 -1
  262. package/dist/client/assets/{textarea-RBexuEFS.js → textarea-BJ8_T6kj.js} +1 -1
  263. package/dist/client/assets/{thread-analytics-BzY1zykD.js → thread-analytics-BxcxJsYs.js} +1 -1
  264. package/dist/client/assets/{thread-button-mkFGOpTO.js → thread-button-DqELA-UT.js} +1 -1
  265. package/dist/client/assets/{thread-intent-CVPFp4dA.js → thread-intent-C8X5ktlA.js} +1 -1
  266. package/dist/client/assets/{thread-route-ClaMqMHW.js → thread-route-AWP4hTSH.js} +1 -1
  267. package/dist/client/assets/{thread-route-2sTnJPJq.js → thread-route-DvgzGDGu.js} +1 -1
  268. package/dist/client/assets/{thread-sheet-body-VP8BHNT1.js → thread-sheet-body-Ybr5-_Th.js} +1 -1
  269. package/dist/client/assets/{toggle-group-BeYYMXUj.js → toggle-group-D4uhQnGP.js} +1 -1
  270. package/dist/client/assets/{toolbar-icon-button-CX76xDXU.js → toolbar-icon-button-BFKlqmai.js} +1 -1
  271. package/dist/client/assets/{tooltip-DAbDY_l5.js → tooltip-CMCsIcsS.js} +1 -1
  272. package/dist/client/assets/{track-Bzm08tgF.js → track-CJNNv07-.js} +1 -1
  273. package/dist/client/assets/{types-YnNmbSwq.js → types-CZAIYuVz.js} +1 -1
  274. package/dist/client/assets/{usage-stats-B6bxtnrk.js → usage-stats-CxqpdCji.js} +1 -1
  275. package/dist/client/assets/{use-ai-providers-CbRWts-V.js → use-ai-providers-B8JF7TSJ.js} +1 -1
  276. package/dist/client/assets/{use-automations-BIDh0kH1.js → use-automations-9PXFtVfy.js} +1 -1
  277. package/dist/client/assets/{use-autosave-Cr35hYe8.js → use-autosave-CRuKXI8z.js} +1 -1
  278. package/dist/client/assets/{use-chat-layout-state-CCZx3s6E.js → use-chat-layout-state-CgOfkYao.js} +1 -1
  279. package/dist/client/assets/{use-clock-tick-OFx9mwiY.js → use-clock-tick-C2a2oO17.js} +1 -1
  280. package/dist/client/assets/{use-connect-companion-BTDHfs4F.js → use-connect-companion-Ctw-MSpV.js} +1 -1
  281. package/dist/client/assets/{use-connection-sMlbY4Ob.js → use-connection-DvNybKFU.js} +1 -1
  282. package/dist/client/assets/{use-copy-CNBDs3f4.js → use-copy-BCqkf684.js} +1 -1
  283. package/dist/client/assets/{use-create-virtual-mcp-BdtaKA6u.js → use-create-virtual-mcp-DwZBKhO4.js} +1 -1
  284. package/dist/client/assets/{use-date-fns-locale-DhWzsOW3.js → use-date-fns-locale-BEsLqn1p.js} +1 -1
  285. package/dist/client/assets/{use-debounced-autosave--k-71QNg.js → use-debounced-autosave-BDq6_yGB.js} +1 -1
  286. package/dist/client/assets/{use-debounced-value-BM_vV7du.js → use-debounced-value-pwchP0rV.js} +1 -1
  287. package/dist/client/assets/{use-deco-credits-Hy6mri0W.js → use-deco-credits-BsxMmBsq.js} +1 -1
  288. package/dist/client/assets/{use-decopilot-events-Dij6ioRA.js → use-decopilot-events-BDV9lp7g.js} +1 -1
  289. package/dist/client/assets/{use-delete-connection-CFmFLBKQ.js → use-delete-connection-Bh8RdOqi.js} +1 -1
  290. package/dist/client/assets/{use-deployment-admin-DKCGAkch.js → use-deployment-admin-BF_BAhyR.js} +1 -1
  291. package/dist/client/assets/{use-fast-preview-draft-url-C5MWxWnZ.js → use-fast-preview-draft-url-E---BfcR.js} +1 -1
  292. package/dist/client/assets/{use-file-configs-DDTbPPMv.js → use-file-configs-CZu-bZqB.js} +1 -1
  293. package/dist/client/assets/{use-infinite-scroll-Wt2CKt13.js → use-infinite-scroll-BnSFHDyo.js} +1 -1
  294. package/dist/client/assets/{use-join-requests-DiaofhBo.js → use-join-requests-BsX2O3TH.js} +1 -1
  295. package/dist/client/assets/{use-main-panel-tabs-WUfLMbrf.js → use-main-panel-tabs-Ci7wYJV1.js} +1 -1
  296. package/dist/client/assets/{use-mcp-auth-status-CkxqQj4w.js → use-mcp-auth-status-CJu88yT2.js} +1 -1
  297. package/dist/client/assets/{use-mcp-client-BxmtH7zP.js → use-mcp-client-B2b2byos.js} +1 -1
  298. package/dist/client/assets/{use-mcp-prompts-a00pKELA.js → use-mcp-prompts-D2gSzZBA.js} +1 -1
  299. package/dist/client/assets/{use-mcp-tools-CNfjLzgY.js → use-mcp-tools-DpSr2WJO.js} +1 -1
  300. package/dist/client/assets/{use-members-Bl4FSDKS.js → use-members-Ba5NbSi-.js} +1 -1
  301. package/dist/client/assets/{use-mobile-CagO8PYO.js → use-mobile-DrjH5QWy.js} +1 -1
  302. package/dist/client/assets/{use-navigate-to-agent-em4YGsFg.js → use-navigate-to-agent-BnDmIYzi.js} +1 -1
  303. package/dist/client/assets/use-new-blocks-editor-Cukjy9al.js +1 -0
  304. package/dist/client/assets/{use-open-billing-url-BTZG3vW5.js → use-open-billing-url-PEDdZKq6.js} +1 -1
  305. package/dist/client/assets/{use-org-auth-client-CIit8iEB.js → use-org-auth-client-C5h3F-Xq.js} +1 -1
  306. package/dist/client/assets/{use-org-fs-CFvxeeh7.js → use-org-fs-NLrtNpcZ.js} +1 -1
  307. package/dist/client/assets/{use-org-repo-syncs-Cj7aQn-H.js → use-org-repo-syncs-BszqDlbi.js} +1 -1
  308. package/dist/client/assets/{use-org-sso-M_x7fcvK.js → use-org-sso-BJ4-ZYnp.js} +1 -1
  309. package/dist/client/assets/{use-organization-roles-CwRNbeCp.js → use-organization-roles-eMoRxJfR.js} +1 -1
  310. package/dist/client/assets/{use-organization-settings-ZppCsdtK.js → use-organization-settings-CYHzdkln.js} +1 -1
  311. package/dist/client/assets/{use-panel-navigate-TAi8F8is.js → use-panel-navigate-DPo551Yc.js} +1 -1
  312. package/dist/client/assets/{use-project-scope-KBJJqmug.js → use-project-scope-DqbAruKC.js} +1 -1
  313. package/dist/client/assets/{use-releases-DYn35oM8.js → use-releases-BOVKTrsJ.js} +1 -1
  314. package/dist/client/assets/{use-reports-diagnostic-C4_LO4Rm.js → use-reports-diagnostic-55PN0uLe.js} +1 -1
  315. package/dist/client/assets/{use-secrets-xaNnxvsl.js → use-secrets-CoIpW5Vv.js} +1 -1
  316. package/dist/client/assets/{use-section-preview-base-D6UeNHec.js → use-section-preview-base-DlIE2buU.js} +1 -1
  317. package/dist/client/assets/{use-session-runtime-BxrwOJfg.js → use-session-runtime-DPfz0hqM.js} +1 -1
  318. package/dist/client/assets/{use-tags-BKbXsHJG.js → use-tags-BEkYI550.js} +1 -1
  319. package/dist/client/assets/{use-task-board-analytics-DrqgRdO8.js → use-task-board-analytics-DPTHKKFg.js} +1 -1
  320. package/dist/client/assets/{use-task-board-events-Dh89yIOj.js → use-task-board-events-8xXEP0g3.js} +1 -1
  321. package/dist/client/assets/{use-task-metadata-RgcBzN-v.js → use-task-metadata-BFr5G8DT.js} +1 -1
  322. package/dist/client/assets/{use-thread-analytics-B9BUAi40.js → use-thread-analytics-ChnkVMZ_.js} +1 -1
  323. package/dist/client/assets/{use-thread-outputs-6AAfyQOX.js → use-thread-outputs-BPTyzyCZ.js} +1 -1
  324. package/dist/client/assets/useInfiniteQuery-CEmUu8UL.js +1 -0
  325. package/dist/client/assets/{useQueries-DjhTv0OA.js → useQueries-B_vPMY-0.js} +1 -1
  326. package/dist/client/assets/useSuspenseInfiniteQuery-Dc2ze-DO.js +1 -0
  327. package/dist/client/assets/{users-ky9WmORJ.js → users-TB6DV8rI.js} +1 -1
  328. package/dist/client/assets/{utils-C8Vzgs09.js → utils-BTXMZitr.js} +1 -1
  329. package/dist/client/assets/{variant-calendar-JCMp6ee_.js → variant-calendar-B69B8SMP.js} +1 -1
  330. package/dist/client/assets/{variant-matcher-override-DsB1vp1F.js → variant-matcher-override-CfBblRtM.js} +1 -1
  331. package/dist/client/assets/{view-mode-toggle-DFEa7QlE.js → view-mode-toggle-D7M14JcU.js} +1 -1
  332. package/dist/client/assets/{virtual-mcp-CooEBSCr.js → virtual-mcp-CruY_a6o.js} +1 -1
  333. package/dist/client/index.html +1 -1
  334. package/dist/server/cli.js +1 -1
  335. package/dist/server/server.js +1 -1
  336. package/package.json +1 -1
  337. package/dist/client/assets/agent-app-BAG_ouA7.js +0 -1
  338. package/dist/client/assets/agent-deck-fBOeFJ_-.js +0 -1
  339. package/dist/client/assets/agent-library-BMJkRuS1.js +0 -1
  340. package/dist/client/assets/agent-library-file-WqkdWDaz.js +0 -1
  341. package/dist/client/assets/agent-settings-CjdxFKHZ.js +0 -1
  342. package/dist/client/assets/agent-site-editor-code-M5fw1hul.js +0 -2
  343. package/dist/client/assets/agent-view-BI2HF7oV.js +0 -1
  344. package/dist/client/assets/api-keys-CKTnq0Q2.js +0 -1
  345. package/dist/client/assets/app-editor-BK3gAGus.js +0 -1
  346. package/dist/client/assets/flat-project-Ox0-oqbL.js +0 -1
  347. package/dist/client/assets/library-Bc8E6zy4.js +0 -1
  348. package/dist/client/assets/project-reports-BtOkTh8W.js +0 -1
  349. package/dist/client/assets/project-tasks-CwQxy88m.js +0 -1
  350. package/dist/client/assets/record-editor-BDGhiB3U.js +0 -1
  351. package/dist/client/assets/reports-vyVNd-rV.js +0 -1
  352. package/dist/client/assets/route-D4ViebMv.js +0 -1
  353. package/dist/client/assets/tasks-BSgnRhRg.js +0 -1
  354. package/dist/client/assets/use-new-blocks-editor-BFs6OxMh.js +0 -1
  355. package/dist/client/assets/useInfiniteQuery-BwK3MP2B.js +0 -1
  356. package/dist/client/assets/useSuspenseInfiniteQuery-DZ9_odwU.js +0 -1
@@ -1 +1 @@
1
- import{aX as $,aY as v,aZ as W,a_ as H,a$ as D,b0 as y,b1 as V,b2 as x,b3 as L,b4 as q,b5 as j,b6 as N,b7 as B,b8 as Z,b9 as F}from"./index-8ROcBeOM.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 X(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 K(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":Q(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 Q(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 M(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 $||n instanceof v)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 P(c,{fetchFn:i}),!o)try{o=await T(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 S=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(S),d=S}}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 k=await e.tokens();if(k?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:k.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof D)||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 T(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 E(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??L;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 E(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await E(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 P(e,{fetchFn:t=fetch,protocolVersion:n=L}={}){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"?V.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await T(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 P(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 b(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=X(r,h);K(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await M(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=b(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=b(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 M(s);return j.parse(await s.json())}export{pe as U,P as a,_e as b,Ue as c,T as d,me as e};
1
+ import{aX as $,aY as v,aZ as W,a_ as H,a$ as D,b0 as y,b1 as V,b2 as x,b3 as L,b4 as q,b5 as j,b6 as N,b7 as B,b8 as Z,b9 as F}from"./index-C4_IsUfP.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 X(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 K(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":Q(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 Q(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 M(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 $||n instanceof v)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 P(c,{fetchFn:i}),!o)try{o=await T(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 S=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(S),d=S}}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 k=await e.tokens();if(k?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:k.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof D)||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 T(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 E(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??L;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 E(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await E(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 P(e,{fetchFn:t=fetch,protocolVersion:n=L}={}){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"?V.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await T(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 P(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 b(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=X(r,h);K(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await M(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=b(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=b(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 M(s);return j.parse(await s.json())}export{pe as U,P as a,_e as b,Ue as c,T as d,me as e};
@@ -1 +1 @@
1
- import{c as g,l as p,j as f}from"./index-8ROcBeOM.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,l as p,j as f}from"./index-C4_IsUfP.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"./index-8ROcBeOM.js";import{i as u,a as p}from"./mcp-oauth-7vzmmq-a.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 u({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 p({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"./index-C4_IsUfP.js";import{i as u,a as p}from"./mcp-oauth-CjHh5FM6.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 u({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 p({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 V,b as q,r as U,l as W,j as t,F as X,B as Y,I as Z,H as ee,G as te}from"./index-8ROcBeOM.js";import{A as se,a as ie,b as ne,c as oe,g as ae,d as re,e as le,f as ce}from"./alert-dialog-XGdjcU6k.js";import{A as me,J as ue}from"./agent-icon-B4YwY0JM.js";import{i as de}from"./DotsVertical-DPKr3IOx.js";import{s as fe}from"./Trash01-DNWhfTgH.js";import{i as ge}from"./ZoomOut-DdAVIXWQ.js";import{a as xe}from"./repository-binding-Bqtv3z-W.js";import{a as pe}from"./use-automations-BIDh0kH1.js";function Ce(c){const e=V.c(80),{automation:s,showAgent:a,onClick:n}=c,i=q(),{remove:o}=pe(),[l,K]=U.useState(!1),r=xe(a?s.virtual_mcp_id:void 0);let M;e[0]!==s.id||e[1]!==o?(M=()=>{o.mutate(s.id),K(!1)},e[0]=s.id,e[1]=o,e[2]=M):M=e[2];const O=M;let S;e[3]!==n?(S=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=S):S=e[4];const H=S,G=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==G?(u=W("inline-block size-2 rounded-full shrink-0",G),e[5]=G,e[6]=u):u=e[6];const J=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==J?(d=i(J),e[7]=i,e[8]=J,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]!==r?.icon||e[14]!==r?.title||e[15]!==s.name||e[16]!==a?(g=a&&t.jsx(me,{icon:r?.icon??null,name:r?.title??s.name,size:"xs",className:"shrink-0"}),e[13]=r?.icon,e[14]=r?.title,e[15]=s.name,e[16]=a,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]!==r||e[21]!==a?(p=a&&r&&t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:["· ",r.title]}),e[20]=r,e[21]=a,e[22]=p):p=e[22];let h;e[23]!==p||e[24]!==x?(h=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[x,p]}),e[23]=p,e[24]=x,e[25]=h):h=e[25];let j;e[26]!==s.nearest_next_run_at||e[27]!==s.trigger_count?(j=t.jsx(we,{triggerCount:s.trigger_count,nextRunAt:s.nearest_next_run_at}),e[26]=s.nearest_next_run_at,e[27]=s.trigger_count,e[28]=j):j=e[28];let w;e[29]!==h||e[30]!==j?(w=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[h,j]}),e[29]=h,e[30]=j,e[31]=w):w=e[31];let E;e[32]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(X,{asChild:!0,children:t.jsx(Y,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity",children:t.jsx(de,{size:16})})}),e[32]=E):E=e[32];let $,B;e[33]===Symbol.for("react.memo_cache_sentinel")?($=m=>{m.stopPropagation(),K(!0)},B=t.jsx(fe,{size:16}),e[33]=$,e[34]=B):($=e[33],B=e[34]);let v;e[35]!==i?(v=i("automations.automationListRow.delete"),e[35]=i,e[36]=v):v=e[36];let _;e[37]!==v?(_=t.jsx("div",{onClick:je,onKeyDown:he,role:"presentation",className:"shrink-0",children:t.jsxs(Z,{children:[E,t.jsx(ee,{align:"end",children:t.jsxs(te,{variant:"destructive",onClick:$,children:[B,v]})})]})}),e[37]=v,e[38]=_):_=e[38];let A;e[39]!==H||e[40]!==n||e[41]!==w||e[42]!==_||e[43]!==f||e[44]!==g?(A=t.jsxs("div",{role:"button",tabIndex:0,onClick:n,onKeyDown:H,className:"group w-full flex items-center gap-3 px-4 py-3 border-b border-border text-left hover:bg-muted/50 transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[f,g,w,_]}),e[39]=H,e[40]=n,e[41]=w,e[42]=_,e[43]=f,e[44]=g,e[45]=A):A=e[45];let b;e[46]!==i?(b=i("automations.automationListRow.deleteTitle"),e[46]=i,e[47]=b):b=e[47];let D;e[48]!==b?(D=t.jsx(se,{children:b}),e[48]=b,e[49]=D):D=e[49];let N;e[50]!==s.name||e[51]!==i?(N=i("automations.automationListRow.deleteDescription",{name:s.name}),e[50]=s.name,e[51]=i,e[52]=N):N=e[52];let R;e[53]!==N?(R=t.jsx(ie,{children:N}),e[53]=N,e[54]=R):R=e[54];let y;e[55]!==D||e[56]!==R?(y=t.jsxs(ne,{children:[D,R]}),e[55]=D,e[56]=R,e[57]=y):y=e[57];let C;e[58]!==i?(C=i("automations.automationListRow.cancel"),e[58]=i,e[59]=C):C=e[59];let L;e[60]!==C?(L=t.jsx(oe,{children:C}),e[60]=C,e[61]=L):L=e[61];const Q=o.isPending;let k;e[62]!==i?(k=i("automations.automationListRow.deleteButton"),e[62]=i,e[63]=k):k=e[63];let P;e[64]!==O||e[65]!==o.isPending||e[66]!==k?(P=t.jsx(ae,{onClick:O,disabled:Q,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:k}),e[64]=O,e[65]=o.isPending,e[66]=k,e[67]=P):P=e[67];let T;e[68]!==L||e[69]!==P?(T=t.jsxs(re,{children:[L,P]}),e[68]=L,e[69]=P,e[70]=T):T=e[70];let z;e[71]!==y||e[72]!==T?(z=t.jsxs(le,{children:[y,T]}),e[71]=y,e[72]=T,e[73]=z):z=e[73];let F;e[74]!==l||e[75]!==z?(F=t.jsx(ce,{open:l,onOpenChange:K,children:z}),e[74]=l,e[75]=z,e[76]=F):F=e[76];let I;return e[77]!==A||e[78]!==F?(I=t.jsxs(t.Fragment,{children:[A,F]}),e[77]=A,e[78]=F,e[79]=I):I=e[79],I}function he(c){return c.stopPropagation()}function je(c){return c.stopPropagation()}function we(c){const e=V.c(8),{triggerCount:s,nextRunAt:a}=c,n=q();if(s===0){let o;e[0]!==n?(o=n("automations.automationListRow.noTriggers"),e[0]=n,e[1]=o):o=e[1];let l;return e[2]!==o?(l=t.jsx("span",{className:"text-xs text-muted-foreground",children:o}),e[2]=o,e[3]=l):l=e[3],l}let i;return e[4]!==a||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:a?t.jsxs(t.Fragment,{children:[t.jsx(ue,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.nextRun",{date:new Date(a).toLocaleString()})})]}):t.jsxs(t.Fragment,{children:[t.jsx(ge,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.triggers",{count:s})})]})}),e[4]=a,e[5]=n,e[6]=s,e[7]=i):i=e[7],i}export{Ce as A};
1
+ import{c as V,b as q,r as U,l as W,j as t,F as X,B as Y,I as Z,H as ee,G as te}from"./index-C4_IsUfP.js";import{A as se,a as ie,b as ne,c as oe,g as ae,d as re,e as le,f as ce}from"./alert-dialog-BGx21FS2.js";import{A as me,J as ue}from"./agent-icon-CP-a92NU.js";import{i as de}from"./DotsVertical-Djr19pIQ.js";import{s as fe}from"./Trash01-COqYNSpe.js";import{i as ge}from"./ZoomOut-C9XmFKHT.js";import{a as xe}from"./repository-binding-B6lutFQ4.js";import{a as pe}from"./use-automations-9PXFtVfy.js";function Ce(c){const e=V.c(80),{automation:s,showAgent:a,onClick:n}=c,i=q(),{remove:o}=pe(),[l,K]=U.useState(!1),r=xe(a?s.virtual_mcp_id:void 0);let M;e[0]!==s.id||e[1]!==o?(M=()=>{o.mutate(s.id),K(!1)},e[0]=s.id,e[1]=o,e[2]=M):M=e[2];const O=M;let S;e[3]!==n?(S=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=S):S=e[4];const H=S,G=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==G?(u=W("inline-block size-2 rounded-full shrink-0",G),e[5]=G,e[6]=u):u=e[6];const J=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==J?(d=i(J),e[7]=i,e[8]=J,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]!==r?.icon||e[14]!==r?.title||e[15]!==s.name||e[16]!==a?(g=a&&t.jsx(me,{icon:r?.icon??null,name:r?.title??s.name,size:"xs",className:"shrink-0"}),e[13]=r?.icon,e[14]=r?.title,e[15]=s.name,e[16]=a,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]!==r||e[21]!==a?(p=a&&r&&t.jsxs("span",{className:"text-xs text-muted-foreground truncate",children:["· ",r.title]}),e[20]=r,e[21]=a,e[22]=p):p=e[22];let h;e[23]!==p||e[24]!==x?(h=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[x,p]}),e[23]=p,e[24]=x,e[25]=h):h=e[25];let j;e[26]!==s.nearest_next_run_at||e[27]!==s.trigger_count?(j=t.jsx(we,{triggerCount:s.trigger_count,nextRunAt:s.nearest_next_run_at}),e[26]=s.nearest_next_run_at,e[27]=s.trigger_count,e[28]=j):j=e[28];let w;e[29]!==h||e[30]!==j?(w=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col gap-0.5",children:[h,j]}),e[29]=h,e[30]=j,e[31]=w):w=e[31];let E;e[32]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(X,{asChild:!0,children:t.jsx(Y,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100 transition-opacity",children:t.jsx(de,{size:16})})}),e[32]=E):E=e[32];let $,B;e[33]===Symbol.for("react.memo_cache_sentinel")?($=m=>{m.stopPropagation(),K(!0)},B=t.jsx(fe,{size:16}),e[33]=$,e[34]=B):($=e[33],B=e[34]);let v;e[35]!==i?(v=i("automations.automationListRow.delete"),e[35]=i,e[36]=v):v=e[36];let _;e[37]!==v?(_=t.jsx("div",{onClick:je,onKeyDown:he,role:"presentation",className:"shrink-0",children:t.jsxs(Z,{children:[E,t.jsx(ee,{align:"end",children:t.jsxs(te,{variant:"destructive",onClick:$,children:[B,v]})})]})}),e[37]=v,e[38]=_):_=e[38];let A;e[39]!==H||e[40]!==n||e[41]!==w||e[42]!==_||e[43]!==f||e[44]!==g?(A=t.jsxs("div",{role:"button",tabIndex:0,onClick:n,onKeyDown:H,className:"group w-full flex items-center gap-3 px-4 py-3 border-b border-border text-left hover:bg-muted/50 transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[f,g,w,_]}),e[39]=H,e[40]=n,e[41]=w,e[42]=_,e[43]=f,e[44]=g,e[45]=A):A=e[45];let b;e[46]!==i?(b=i("automations.automationListRow.deleteTitle"),e[46]=i,e[47]=b):b=e[47];let D;e[48]!==b?(D=t.jsx(se,{children:b}),e[48]=b,e[49]=D):D=e[49];let N;e[50]!==s.name||e[51]!==i?(N=i("automations.automationListRow.deleteDescription",{name:s.name}),e[50]=s.name,e[51]=i,e[52]=N):N=e[52];let R;e[53]!==N?(R=t.jsx(ie,{children:N}),e[53]=N,e[54]=R):R=e[54];let y;e[55]!==D||e[56]!==R?(y=t.jsxs(ne,{children:[D,R]}),e[55]=D,e[56]=R,e[57]=y):y=e[57];let C;e[58]!==i?(C=i("automations.automationListRow.cancel"),e[58]=i,e[59]=C):C=e[59];let L;e[60]!==C?(L=t.jsx(oe,{children:C}),e[60]=C,e[61]=L):L=e[61];const Q=o.isPending;let k;e[62]!==i?(k=i("automations.automationListRow.deleteButton"),e[62]=i,e[63]=k):k=e[63];let P;e[64]!==O||e[65]!==o.isPending||e[66]!==k?(P=t.jsx(ae,{onClick:O,disabled:Q,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:k}),e[64]=O,e[65]=o.isPending,e[66]=k,e[67]=P):P=e[67];let T;e[68]!==L||e[69]!==P?(T=t.jsxs(re,{children:[L,P]}),e[68]=L,e[69]=P,e[70]=T):T=e[70];let z;e[71]!==y||e[72]!==T?(z=t.jsxs(le,{children:[y,T]}),e[71]=y,e[72]=T,e[73]=z):z=e[73];let F;e[74]!==l||e[75]!==z?(F=t.jsx(ce,{open:l,onOpenChange:K,children:z}),e[74]=l,e[75]=z,e[76]=F):F=e[76];let I;return e[77]!==A||e[78]!==F?(I=t.jsxs(t.Fragment,{children:[A,F]}),e[77]=A,e[78]=F,e[79]=I):I=e[79],I}function he(c){return c.stopPropagation()}function je(c){return c.stopPropagation()}function we(c){const e=V.c(8),{triggerCount:s,nextRunAt:a}=c,n=q();if(s===0){let o;e[0]!==n?(o=n("automations.automationListRow.noTriggers"),e[0]=n,e[1]=o):o=e[1];let l;return e[2]!==o?(l=t.jsx("span",{className:"text-xs text-muted-foreground",children:o}),e[2]=o,e[3]=l):l=e[3],l}let i;return e[4]!==a||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:a?t.jsxs(t.Fragment,{children:[t.jsx(ue,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.nextRun",{date:new Date(a).toLocaleString()})})]}):t.jsxs(t.Fragment,{children:[t.jsx(ge,{size:12,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:n("automations.automationListRow.triggers",{count:s})})]})}),e[4]=a,e[5]=n,e[6]=s,e[7]=i):i=e[7],i}export{Ce as A};
@@ -1 +1 @@
1
- import{c as z,r as lt,b as W,X as it,z as rt,a2 as ct,K as tt,j as s,l as ut,m as dt,e_ as mt}from"./index-8ROcBeOM.js";import{u as ft}from"./useInfiniteQuery-BwK3MP2B.js";import{u as xt}from"./use-connection-sMlbY4Ob.js";import{u as pt}from"./use-mcp-client-BxmtH7zP.js";import{b as gt}from"./repository-binding-Bqtv3z-W.js";import{b as ht,a as Rt}from"./sheet-DplgMQgp.js";import{e as jt,a as Nt,b as st,T as G,d as bt,c as V}from"./table-Bxw1S3_7.js";import{E as et}from"./empty-state-DUWhBADp.js";import{u as Tt}from"./use-infinite-scroll-Wt2CKt13.js";import{a as St}from"./use-members-Bl4FSDKS.js";import{g as vt}from"./task-status-B-4DGiGH.js";import{e as wt}from"./use-automations-BIDh0kH1.js";import{T as Ct,f as at,a as nt}from"./thread-sheet-body-VP8BHNT1.js";function It(c){const t=z.c(15),[i,r]=lt.useState(null);let e;t[0]!==c||t[1]!==i?(e=i!==null?c.findIndex(u=>u.id===i):-1,t[0]=c,t[1]=i,t[2]=e):e=t[2];const a=e,o=a!==-1?c[a]:null,n=o!==null;let l,w;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=u=>r(u),w=()=>r(null),t[3]=l,t[4]=w):(l=t[3],w=t[4]);let f,x;t[5]!==a||t[6]!==c?(f=()=>{const u=c[a-1];a>0&&u&&r(u.id)},x=()=>{const u=c[a+1];a!==-1&&u&&r(u.id)},t[5]=a,t[6]=c,t[7]=f,t[8]=x):(f=t[7],x=t[8]);let m;return t[9]!==a||t[10]!==o||t[11]!==n||t[12]!==f||t[13]!==x?(m={selected:o,index:a,isOpen:n,select:l,close:w,prev:f,next:x},t[9]=a,t[10]=o,t[11]=n,t[12]=f,t[13]=x,t[14]=m):m=t[14],m}const Z=50;function X(c){const t=z.c(10),{title:i,value:r,subtitle:e}=c;let a;t[0]!==i?(a=s.jsx("span",{className:"text-sm text-foreground/70",children:i}),t[0]=i,t[1]=a):a=t[1];let o;t[2]!==r?(o=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:r}),t[2]=r,t[3]=o):o=t[3];let n;t[4]!==e?(n=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=n):n=t[5];let l;return t[6]!==a||t[7]!==o||t[8]!==n?(l=s.jsxs(mt,{className:"pt-4 px-4 pb-5 gap-1",children:[a,o,n]}),t[6]=a,t[7]=o,t[8]=n,t[9]=l):l=t[9],l}function kt(c){const t=z.c(45),{automationId:i,range:r}=c,e=W(),{data:a,isLoading:o}=wt(i,r),n=a?.runs,l=a?.usage;let w;t[0]!==n?(w=n&&n.total>0?`${Math.round(n.completed/n.total*100)}%`:"—",t[0]=n,t[1]=w):w=t[1];const f=w;let x;t[2]!==e||t[3]!==l?(x=l&&l.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:l.sampledRuns}):void 0,t[2]=e,t[3]=l,t[4]=x):x=t[4];const m=x;let u;t[5]!==e?(u=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=u):u=t[6];let g;t[7]!==o||t[8]!==n?.total?(g=o?"…":n?.total.toLocaleString()??"0",t[7]=o,t[8]=n?.total,t[9]=g):g=t[9];let h;t[10]!==n||t[11]!==e?(h=n?`${n.completed} ${e("automations.automationRuns.ok")} · ${n.failed} ${e("automations.automationRuns.failed")}${n.inProgress>0?` · ${n.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=n,t[11]=e,t[12]=h):h=t[12];let R;t[13]!==u||t[14]!==g||t[15]!==h?(R=s.jsx(X,{title:u,value:g,subtitle:h}),t[13]=u,t[14]=g,t[15]=h,t[16]=R):R=t[16];let T;t[17]!==e?(T=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=T):T=t[18];const k=o?"…":f;let C;t[19]!==T||t[20]!==k?(C=s.jsx(X,{title:T,value:k}),t[19]=T,t[20]=k,t[21]=C):C=t[21];let S;t[22]!==e?(S=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=S):S=t[23];let p;t[24]!==o||t[25]!==l?.totalTokens?(p=o?"…":at(l?.totalTokens??0),t[24]=o,t[25]=l?.totalTokens,t[26]=p):p=t[26];let I;t[27]!==S||t[28]!==p||t[29]!==m?(I=s.jsx(X,{title:S,value:p,subtitle:m}),t[27]=S,t[28]=p,t[29]=m,t[30]=I):I=t[30];let d;t[31]!==e?(d=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=d):d=t[32];let j;t[33]!==o||t[34]!==l?(j=o?"…":l&&l.costUsd>0?nt(l.costUsd):"—",t[33]=o,t[34]=l,t[35]=j):j=t[35];let v;t[36]!==d||t[37]!==j||t[38]!==m?(v=s.jsx(X,{title:d,value:j,subtitle:m}),t[36]=d,t[37]=j,t[38]=m,t[39]=v):v=t[39];let N;return t[40]!==I||t[41]!==v||t[42]!==R||t[43]!==C?(N=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[R,C,I,v]}),t[40]=I,t[41]=v,t[42]=R,t[43]=C,t[44]=N):N=t[44],N}function yt(c){const t=z.c(57),{run:i,usage:r,onClick:e,lastRowRef:a}=c,o=W();let n,l;if(t[0]!==i.created_at){const P=new Date(i.created_at);n=P.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=P.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=i.created_at,t[1]=n,t[2]=l}else n=t[1],l=t[2];const w=l;let f,x,m,u,g,h,R,T,k,C,S;if(t[3]!==a||t[4]!==e||t[5]!==i.status||t[6]!==i.title||t[7]!==o){const P=vt(i.status),U=P.icon;x=st,k=a,C="h-14 cursor-pointer hover:bg-muted/40 transition-colors border-b-0",S=e,t[19]!==i.title?(m=s.jsx(V,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:i.title})}),t[19]=i.title,t[20]=m):m=t[20],f=V,T="w-28 px-3",h="flex items-center gap-1.5",R=s.jsx(U,{size:14,className:P.iconClassName}),u=ut("text-sm",P.labelColor),g=o(P.labelKey),t[3]=a,t[4]=e,t[5]=i.status,t[6]=i.title,t[7]=o,t[8]=f,t[9]=x,t[10]=m,t[11]=u,t[12]=g,t[13]=h,t[14]=R,t[15]=T,t[16]=k,t[17]=C,t[18]=S}else f=t[8],x=t[9],m=t[10],u=t[11],g=t[12],h=t[13],R=t[14],T=t[15],k=t[16],C=t[17],S=t[18];let p;t[21]!==u||t[22]!==g?(p=s.jsx("span",{className:u,children:g}),t[21]=u,t[22]=g,t[23]=p):p=t[23];let I;t[24]!==p||t[25]!==h||t[26]!==R?(I=s.jsxs("div",{className:h,children:[R,p]}),t[24]=p,t[25]=h,t[26]=R,t[27]=I):I=t[27];let d;t[28]!==f||t[29]!==I||t[30]!==T?(d=s.jsx(f,{className:T,children:I}),t[28]=f,t[29]=I,t[30]=T,t[31]=d):d=t[31];let j;t[32]!==r?(j=r?at(r.totalTokens):"—",t[32]=r,t[33]=j):j=t[33];let v;t[34]!==j?(v=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:j}),t[34]=j,t[35]=v):v=t[35];let N;t[36]!==r?(N=r&&r.costUsd>0?nt(r.costUsd):"—",t[36]=r,t[37]=N):N=t[37];let y;t[38]!==N?(y=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:N}),t[38]=N,t[39]=y):y=t[39];let D;t[40]!==n?(D=s.jsx("div",{children:n}),t[40]=n,t[41]=D):D=t[41];let _;t[42]!==w?(_=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:w}),t[42]=w,t[43]=_):_=t[43];let E;t[44]!==D||t[45]!==_?(E=s.jsxs(V,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,_]}),t[44]=D,t[45]=_,t[46]=E):E=t[46];let $;return t[47]!==x||t[48]!==m||t[49]!==d||t[50]!==v||t[51]!==y||t[52]!==E||t[53]!==k||t[54]!==C||t[55]!==S?($=s.jsxs(x,{ref:k,className:C,onClick:S,children:[m,d,v,y,E]}),t[47]=x,t[48]=m,t[49]=d,t[50]=v,t[51]=y,t[52]=E,t[53]=k,t[54]=C,t[55]=S,t[56]=$):$=t[56],$}function Bt(c){const t=z.c(73),{automationId:i,triggerIds:r,range:e}=c,a=W(),{org:o,locator:n}=it();let l;t[0]!==o.id||t[1]!==o.slug?(l={connectionId:rt,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=l):l=t[2];const w=pt(l),f=ct(),x=xt(),m=gt(),{data:u}=St(),g=r.length>0;let h;t[3]!==i||t[4]!==o.id||t[5]!==r?(h=tt.automationRuns(o.id,i,r),t[3]=i,t[4]=o.id,t[5]=r,t[6]=h):h=t[6];let R;t[7]!==f||t[8]!==r?(R=async M=>{const{pageParam:J}=M,ot=J===void 0?0:J;return await f.call("COLLECTION_THREADS_LIST",{limit:Z,offset:ot,where:{trigger_ids:r}})},t[7]=f,t[8]=r,t[9]=R):R=t[9];let T;t[10]!==g||t[11]!==h||t[12]!==R?(T={queryKey:h,queryFn:R,initialPageParam:0,getNextPageParam:Et,enabled:g,staleTime:3e4},t[10]=g,t[11]=h,t[12]=R,t[13]=T):T=t[13];const{data:k,fetchNextPage:C,hasNextPage:S,isFetchingNextPage:p,isLoading:I}=ft(T);let d,j,v,N;t[14]!==k?.pages||t[15]!==n||t[16]!==e?(d=(k?.pages??[]).flatMap(Dt),N=d.map(Pt),v=dt,j=tt.monitoringThreadUsage(n,JSON.stringify({ids:N,...e})),t[14]=k?.pages,t[15]=n,t[16]=e,t[17]=d,t[18]=j,t[19]=v,t[20]=N):(d=t[17],j=t[18],v=t[19],N=t[20]);let y;t[21]!==e||t[22]!==f||t[23]!==N?(y=async()=>await f.call("MONITORING_THREAD_USAGE",{threadIds:N,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=f,t[23]=N,t[24]=y):y=t[24];const D=N.length>0;let _;t[25]!==j||t[26]!==y||t[27]!==D?(_={queryKey:j,queryFn:y,enabled:D,staleTime:3e4},t[25]=j,t[26]=y,t[27]=D,t[28]=_):_=t[28];const{data:E}=v(_);let $;t[29]!==E?.items?($=new Map((E?.items??[]).map(_t)),t[29]=E?.items,t[30]=$):$=t[30];const P=$;let U;t[31]!==C||t[32]!==S||t[33]!==p?(U=()=>{S&&!p&&C()},t[31]=C,t[32]=S,t[33]=p,t[34]=U):U=t[34];const Y=Tt(U,S??!1,p),b=It(d),B=b.selected;let L;t[35]!==i||t[36]!==e?(L=s.jsx(kt,{automationId:i,range:e}),t[35]=i,t[36]=e,t[37]=L):L=t[37];let O;t[38]!==g||t[39]!==I||t[40]!==Y||t[41]!==d||t[42]!==b||t[43]!==a||t[44]!==P?(O=g?I?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingRuns")}):d.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noRunsTitle"),description:a("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 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.startedHeader")})]})}),s.jsx(bt,{children:d.map((M,J)=>s.jsx(yt,{run:M,usage:P.get(M.id),onClick:()=>b.select(M.id),lastRowRef:J===d.length-1?Y:void 0},M.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noStartersTitle"),description:a("automations.automationRuns.noStartersDescription")})}),t[38]=g,t[39]=I,t[40]=Y,t[41]=d,t[42]=b,t[43]=a,t[44]=P,t[45]=O):O=t[45];let A;t[46]!==p||t[47]!==a?(A=p&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingMore")}),t[46]=p,t[47]=a,t[48]=A):A=t[48];let H;t[49]!==b?(H=M=>{M||b.close()},t[49]=b,t[50]=H):H=t[50];let K;t[51]!==x||t[52]!==m||t[53]!==w||t[54]!==n||t[55]!==u||t[56]!==d||t[57]!==B||t[58]!==b.index||t[59]!==b.next||t[60]!==b.prev?(K=B&&s.jsx(Ct,{thread:B,client:w,locator:n,connections:x,virtualMcps:m,members:u,nav:{index:b.index,total:d.length,onPrev:b.prev,onNext:b.next}}),t[51]=x,t[52]=m,t[53]=w,t[54]=n,t[55]=u,t[56]=d,t[57]=B,t[58]=b.index,t[59]=b.next,t[60]=b.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]!==b.isOpen||t[65]!==H||t[66]!==q?(F=s.jsx(ht,{open:b.isOpen,onOpenChange:H,children:q}),t[64]=b.isOpen,t[65]=H,t[66]=q,t[67]=F):F=t[67];let Q;return t[68]!==L||t[69]!==O||t[70]!==A||t[71]!==F?(Q=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,O,A,F]}),t[68]=L,t[69]=O,t[70]=A,t[71]=F,t[72]=Q):Q=t[72],Q}function _t(c){return[c.threadId,{calls:c.calls,inputTokens:c.inputTokens,outputTokens:c.outputTokens,totalTokens:c.totalTokens,costUsd:c.costUsd}]}function Pt(c){return c.id}function Dt(c){return c.items??[]}function Et(c,t){const i=c,r=t;if(!((i?.items?.length??0)<Z))return r.length*Z}export{Bt as A,It as u};
1
+ import{c as z,r as lt,b as W,X as it,z as rt,a2 as ct,K as tt,j as s,l as ut,m as dt,e_ as mt}from"./index-C4_IsUfP.js";import{u as ft}from"./useInfiniteQuery-CEmUu8UL.js";import{u as xt}from"./use-connection-DvNybKFU.js";import{u as pt}from"./use-mcp-client-B2b2byos.js";import{b as gt}from"./repository-binding-B6lutFQ4.js";import{b as ht,a as Rt}from"./sheet-DbmMn_ii.js";import{e as jt,a as Nt,b as st,T as G,d as bt,c as V}from"./table-CtTfXjDZ.js";import{E as et}from"./empty-state-Cjrt4JF2.js";import{u as Tt}from"./use-infinite-scroll-BnSFHDyo.js";import{a as St}from"./use-members-Ba5NbSi-.js";import{g as vt}from"./task-status-DSm1bkYX.js";import{e as wt}from"./use-automations-9PXFtVfy.js";import{T as Ct,f as at,a as nt}from"./thread-sheet-body-Ybr5-_Th.js";function It(c){const t=z.c(15),[i,r]=lt.useState(null);let e;t[0]!==c||t[1]!==i?(e=i!==null?c.findIndex(u=>u.id===i):-1,t[0]=c,t[1]=i,t[2]=e):e=t[2];const a=e,o=a!==-1?c[a]:null,n=o!==null;let l,w;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=u=>r(u),w=()=>r(null),t[3]=l,t[4]=w):(l=t[3],w=t[4]);let f,x;t[5]!==a||t[6]!==c?(f=()=>{const u=c[a-1];a>0&&u&&r(u.id)},x=()=>{const u=c[a+1];a!==-1&&u&&r(u.id)},t[5]=a,t[6]=c,t[7]=f,t[8]=x):(f=t[7],x=t[8]);let m;return t[9]!==a||t[10]!==o||t[11]!==n||t[12]!==f||t[13]!==x?(m={selected:o,index:a,isOpen:n,select:l,close:w,prev:f,next:x},t[9]=a,t[10]=o,t[11]=n,t[12]=f,t[13]=x,t[14]=m):m=t[14],m}const Z=50;function X(c){const t=z.c(10),{title:i,value:r,subtitle:e}=c;let a;t[0]!==i?(a=s.jsx("span",{className:"text-sm text-foreground/70",children:i}),t[0]=i,t[1]=a):a=t[1];let o;t[2]!==r?(o=s.jsx("span",{className:"text-3xl font-normal tabular-nums",children:r}),t[2]=r,t[3]=o):o=t[3];let n;t[4]!==e?(n=e&&s.jsx("span",{className:"text-xs text-muted-foreground",children:e}),t[4]=e,t[5]=n):n=t[5];let l;return t[6]!==a||t[7]!==o||t[8]!==n?(l=s.jsxs(mt,{className:"pt-4 px-4 pb-5 gap-1",children:[a,o,n]}),t[6]=a,t[7]=o,t[8]=n,t[9]=l):l=t[9],l}function kt(c){const t=z.c(45),{automationId:i,range:r}=c,e=W(),{data:a,isLoading:o}=wt(i,r),n=a?.runs,l=a?.usage;let w;t[0]!==n?(w=n&&n.total>0?`${Math.round(n.completed/n.total*100)}%`:"—",t[0]=n,t[1]=w):w=t[1];const f=w;let x;t[2]!==e||t[3]!==l?(x=l&&l.truncated?e("automations.automationRuns.lastRunsSubtitle",{count:l.sampledRuns}):void 0,t[2]=e,t[3]=l,t[4]=x):x=t[4];const m=x;let u;t[5]!==e?(u=e("automations.automationRuns.runsTitle"),t[5]=e,t[6]=u):u=t[6];let g;t[7]!==o||t[8]!==n?.total?(g=o?"…":n?.total.toLocaleString()??"0",t[7]=o,t[8]=n?.total,t[9]=g):g=t[9];let h;t[10]!==n||t[11]!==e?(h=n?`${n.completed} ${e("automations.automationRuns.ok")} · ${n.failed} ${e("automations.automationRuns.failed")}${n.inProgress>0?` · ${n.inProgress} ${e("automations.automationRuns.running")}`:""}`:void 0,t[10]=n,t[11]=e,t[12]=h):h=t[12];let R;t[13]!==u||t[14]!==g||t[15]!==h?(R=s.jsx(X,{title:u,value:g,subtitle:h}),t[13]=u,t[14]=g,t[15]=h,t[16]=R):R=t[16];let T;t[17]!==e?(T=e("automations.automationRuns.successRateTitle"),t[17]=e,t[18]=T):T=t[18];const k=o?"…":f;let C;t[19]!==T||t[20]!==k?(C=s.jsx(X,{title:T,value:k}),t[19]=T,t[20]=k,t[21]=C):C=t[21];let S;t[22]!==e?(S=e("automations.automationRuns.tokensTitle"),t[22]=e,t[23]=S):S=t[23];let p;t[24]!==o||t[25]!==l?.totalTokens?(p=o?"…":at(l?.totalTokens??0),t[24]=o,t[25]=l?.totalTokens,t[26]=p):p=t[26];let I;t[27]!==S||t[28]!==p||t[29]!==m?(I=s.jsx(X,{title:S,value:p,subtitle:m}),t[27]=S,t[28]=p,t[29]=m,t[30]=I):I=t[30];let d;t[31]!==e?(d=e("automations.automationRuns.costTitle"),t[31]=e,t[32]=d):d=t[32];let j;t[33]!==o||t[34]!==l?(j=o?"…":l&&l.costUsd>0?nt(l.costUsd):"—",t[33]=o,t[34]=l,t[35]=j):j=t[35];let v;t[36]!==d||t[37]!==j||t[38]!==m?(v=s.jsx(X,{title:d,value:j,subtitle:m}),t[36]=d,t[37]=j,t[38]=m,t[39]=v):v=t[39];let N;return t[40]!==I||t[41]!==v||t[42]!==R||t[43]!==C?(N=s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[R,C,I,v]}),t[40]=I,t[41]=v,t[42]=R,t[43]=C,t[44]=N):N=t[44],N}function yt(c){const t=z.c(57),{run:i,usage:r,onClick:e,lastRowRef:a}=c,o=W();let n,l;if(t[0]!==i.created_at){const P=new Date(i.created_at);n=P.toLocaleDateString("en-US",{month:"short",day:"numeric"}),l=P.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),t[0]=i.created_at,t[1]=n,t[2]=l}else n=t[1],l=t[2];const w=l;let f,x,m,u,g,h,R,T,k,C,S;if(t[3]!==a||t[4]!==e||t[5]!==i.status||t[6]!==i.title||t[7]!==o){const P=vt(i.status),U=P.icon;x=st,k=a,C="h-14 cursor-pointer hover:bg-muted/40 transition-colors border-b-0",S=e,t[19]!==i.title?(m=s.jsx(V,{className:"min-w-0 pr-2 pl-4 md:pr-4",children:s.jsx("div",{className:"font-medium text-foreground truncate",children:i.title})}),t[19]=i.title,t[20]=m):m=t[20],f=V,T="w-28 px-3",h="flex items-center gap-1.5",R=s.jsx(U,{size:14,className:P.iconClassName}),u=ut("text-sm",P.labelColor),g=o(P.labelKey),t[3]=a,t[4]=e,t[5]=i.status,t[6]=i.title,t[7]=o,t[8]=f,t[9]=x,t[10]=m,t[11]=u,t[12]=g,t[13]=h,t[14]=R,t[15]=T,t[16]=k,t[17]=C,t[18]=S}else f=t[8],x=t[9],m=t[10],u=t[11],g=t[12],h=t[13],R=t[14],T=t[15],k=t[16],C=t[17],S=t[18];let p;t[21]!==u||t[22]!==g?(p=s.jsx("span",{className:u,children:g}),t[21]=u,t[22]=g,t[23]=p):p=t[23];let I;t[24]!==p||t[25]!==h||t[26]!==R?(I=s.jsxs("div",{className:h,children:[R,p]}),t[24]=p,t[25]=h,t[26]=R,t[27]=I):I=t[27];let d;t[28]!==f||t[29]!==I||t[30]!==T?(d=s.jsx(f,{className:T,children:I}),t[28]=f,t[29]=I,t[30]=T,t[31]=d):d=t[31];let j;t[32]!==r?(j=r?at(r.totalTokens):"—",t[32]=r,t[33]=j):j=t[33];let v;t[34]!==j?(v=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:j}),t[34]=j,t[35]=v):v=t[35];let N;t[36]!==r?(N=r&&r.costUsd>0?nt(r.costUsd):"—",t[36]=r,t[37]=N):N=t[37];let y;t[38]!==N?(y=s.jsx(V,{className:"w-24 px-3 text-right tabular-nums text-muted-foreground",children:N}),t[38]=N,t[39]=y):y=t[39];let D;t[40]!==n?(D=s.jsx("div",{children:n}),t[40]=n,t[41]=D):D=t[41];let _;t[42]!==w?(_=s.jsx("div",{className:"text-xs text-muted-foreground/60",children:w}),t[42]=w,t[43]=_):_=t[43];let E;t[44]!==D||t[45]!==_?(E=s.jsxs(V,{className:"w-32 px-3 pr-5 text-muted-foreground",children:[D,_]}),t[44]=D,t[45]=_,t[46]=E):E=t[46];let $;return t[47]!==x||t[48]!==m||t[49]!==d||t[50]!==v||t[51]!==y||t[52]!==E||t[53]!==k||t[54]!==C||t[55]!==S?($=s.jsxs(x,{ref:k,className:C,onClick:S,children:[m,d,v,y,E]}),t[47]=x,t[48]=m,t[49]=d,t[50]=v,t[51]=y,t[52]=E,t[53]=k,t[54]=C,t[55]=S,t[56]=$):$=t[56],$}function Bt(c){const t=z.c(73),{automationId:i,triggerIds:r,range:e}=c,a=W(),{org:o,locator:n}=it();let l;t[0]!==o.id||t[1]!==o.slug?(l={connectionId:rt,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=l):l=t[2];const w=pt(l),f=ct(),x=xt(),m=gt(),{data:u}=St(),g=r.length>0;let h;t[3]!==i||t[4]!==o.id||t[5]!==r?(h=tt.automationRuns(o.id,i,r),t[3]=i,t[4]=o.id,t[5]=r,t[6]=h):h=t[6];let R;t[7]!==f||t[8]!==r?(R=async M=>{const{pageParam:J}=M,ot=J===void 0?0:J;return await f.call("COLLECTION_THREADS_LIST",{limit:Z,offset:ot,where:{trigger_ids:r}})},t[7]=f,t[8]=r,t[9]=R):R=t[9];let T;t[10]!==g||t[11]!==h||t[12]!==R?(T={queryKey:h,queryFn:R,initialPageParam:0,getNextPageParam:Et,enabled:g,staleTime:3e4},t[10]=g,t[11]=h,t[12]=R,t[13]=T):T=t[13];const{data:k,fetchNextPage:C,hasNextPage:S,isFetchingNextPage:p,isLoading:I}=ft(T);let d,j,v,N;t[14]!==k?.pages||t[15]!==n||t[16]!==e?(d=(k?.pages??[]).flatMap(Dt),N=d.map(Pt),v=dt,j=tt.monitoringThreadUsage(n,JSON.stringify({ids:N,...e})),t[14]=k?.pages,t[15]=n,t[16]=e,t[17]=d,t[18]=j,t[19]=v,t[20]=N):(d=t[17],j=t[18],v=t[19],N=t[20]);let y;t[21]!==e||t[22]!==f||t[23]!==N?(y=async()=>await f.call("MONITORING_THREAD_USAGE",{threadIds:N,...e.startDate?{startDate:e.startDate}:{},...e.endDate?{endDate:e.endDate}:{}}),t[21]=e,t[22]=f,t[23]=N,t[24]=y):y=t[24];const D=N.length>0;let _;t[25]!==j||t[26]!==y||t[27]!==D?(_={queryKey:j,queryFn:y,enabled:D,staleTime:3e4},t[25]=j,t[26]=y,t[27]=D,t[28]=_):_=t[28];const{data:E}=v(_);let $;t[29]!==E?.items?($=new Map((E?.items??[]).map(_t)),t[29]=E?.items,t[30]=$):$=t[30];const P=$;let U;t[31]!==C||t[32]!==S||t[33]!==p?(U=()=>{S&&!p&&C()},t[31]=C,t[32]=S,t[33]=p,t[34]=U):U=t[34];const Y=Tt(U,S??!1,p),b=It(d),B=b.selected;let L;t[35]!==i||t[36]!==e?(L=s.jsx(kt,{automationId:i,range:e}),t[35]=i,t[36]=e,t[37]=L):L=t[37];let O;t[38]!==g||t[39]!==I||t[40]!==Y||t[41]!==d||t[42]!==b||t[43]!==a||t[44]!==P?(O=g?I?s.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingRuns")}):d.length===0?s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noRunsTitle"),description:a("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 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.runHeader")}),s.jsx(G,{className:"w-28 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.statusHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.tokensHeader")}),s.jsx(G,{className:"w-24 px-3 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide text-right",children:a("automations.automationRuns.costHeader")}),s.jsx(G,{className:"w-32 px-3 pr-5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:a("automations.automationRuns.startedHeader")})]})}),s.jsx(bt,{children:d.map((M,J)=>s.jsx(yt,{run:M,usage:P.get(M.id),onClick:()=>b.select(M.id),lastRowRef:J===d.length-1?Y:void 0},M.id))})]}):s.jsx("div",{className:"py-16",children:s.jsx(et,{title:a("automations.automationRuns.noStartersTitle"),description:a("automations.automationRuns.noStartersDescription")})}),t[38]=g,t[39]=I,t[40]=Y,t[41]=d,t[42]=b,t[43]=a,t[44]=P,t[45]=O):O=t[45];let A;t[46]!==p||t[47]!==a?(A=p&&s.jsx("div",{className:"py-4 text-center text-sm text-muted-foreground",children:a("automations.automationRuns.loadingMore")}),t[46]=p,t[47]=a,t[48]=A):A=t[48];let H;t[49]!==b?(H=M=>{M||b.close()},t[49]=b,t[50]=H):H=t[50];let K;t[51]!==x||t[52]!==m||t[53]!==w||t[54]!==n||t[55]!==u||t[56]!==d||t[57]!==B||t[58]!==b.index||t[59]!==b.next||t[60]!==b.prev?(K=B&&s.jsx(Ct,{thread:B,client:w,locator:n,connections:x,virtualMcps:m,members:u,nav:{index:b.index,total:d.length,onPrev:b.prev,onNext:b.next}}),t[51]=x,t[52]=m,t[53]=w,t[54]=n,t[55]=u,t[56]=d,t[57]=B,t[58]=b.index,t[59]=b.next,t[60]=b.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]!==b.isOpen||t[65]!==H||t[66]!==q?(F=s.jsx(ht,{open:b.isOpen,onOpenChange:H,children:q}),t[64]=b.isOpen,t[65]=H,t[66]=q,t[67]=F):F=t[67];let Q;return t[68]!==L||t[69]!==O||t[70]!==A||t[71]!==F?(Q=s.jsxs("div",{className:"flex flex-col gap-5",children:[L,O,A,F]}),t[68]=L,t[69]=O,t[70]=A,t[71]=F,t[72]=Q):Q=t[72],Q}function _t(c){return[c.threadId,{calls:c.calls,inputTokens:c.inputTokens,outputTokens:c.outputTokens,totalTokens:c.totalTokens,costUsd:c.costUsd}]}function Pt(c){return c.id}function Dt(c){return c.items??[]}function Et(c,t){const i=c,r=t;if(!((i?.items?.length??0)<Z))return r.length*Z}export{Bt as A,It as u};
@@ -1 +1 @@
1
- import{c as k,j as e,b as $,X as D,d as M,r as q,n as d,B as O,fO as V,q as R}from"./index-8ROcBeOM.js";import{s as X}from"./Plus-DvM_B5XA.js";import{i as S}from"./ZoomOut-DdAVIXWQ.js";import{S as F}from"./search-input-CHN_qcZt.js";import{E as T}from"./empty-state-DUWhBADp.js";import{u as G}from"./use-automations-BIDh0kH1.js";import{u as H}from"./use-navigate-to-agent-em4YGsFg.js";import{A as J}from"./automation-list-row-CzUhZzwb.js";import{b as K}from"./repository-binding-Bqtv3z-W.js";import{R as Q}from"./require-capability-BRTV4cFL.js";import"./SearchMd-Zps5bO1E.js";import"./use-mcp-client-BxmtH7zP.js";import"./auth-DAdApGdR.js";import"./thread-intent-CVPFp4dA.js";import"./backoff-8mStPHYB.js";import"./task-board-8eXLM5MN.js";import"./schema-D_b4vZ7I.js";import"./slugify-CEUa2lfQ.js";import"./alert-dialog-XGdjcU6k.js";import"./agent-icon-B4YwY0JM.js";import"./AlertCircle-C5HVrLZe.js";import"./Tool01-C3UQzTkW.js";import"./ArrowUp-CWWobdUx.js";import"./ArrowLeft-DJk4oPCQ.js";import"./LinkBroken01-CoaVazaJ.js";import"./ShoppingBag01-BWCkeQfV.js";import"./Building02-B3I4JJCN.js";import"./CheckCircle-HgqCvHI2.js";import"./Check-PcQs3M4o.js";import"./ChevronUp-BkK36MsN.js";import"./UserSquare-xl-CVK1W.js";import"./Copy01-CoysgpeW.js";import"./CreditCard01-C6aogu2h.js";import"./DotsVertical-DPKr3IOx.js";import"./Image01-DGPruqah.js";import"./Palette-BcuggLpF.js";import"./XClose-B2h9zNaw.js";import"./Key01-CDcSYqkq.js";import"./Link01-CLl6j_mc.js";import"./LinkExternal01-BvS68qI_.js";import"./Monitor01-C_aGyUUc.js";import"./Sun-CSZHqwWX.js";import"./Trash01-DNWhfTgH.js";import"./Upload01-Dp_vWLSf.js";import"./User01-C5XGpmJ9.js";import"./Users01-DZXc12n3.js";import"./X-CdL2mAGV.js";import"./access-gate-9NCpXLLW.js";import"./capability-load-error-ZZv-GJJq.js";function U(){const t=k.c(20),o=$(),{org:c}=D(),{data:y}=G(void 0),g=y===void 0?[]:y,E=K(),P=H(),f=M(),[x,z]=q.useState(""),h=x.toLowerCase(),b=new Map(E.map(W)),A=g.filter(i=>{if(!h||i.name.toLowerCase().includes(h))return!0;if(i.virtual_mcp_id){const l=b.get(i.virtual_mcp_id);if(l&&l.title.toLowerCase().includes(h))return!0}return!1}),B=(i,l)=>{const N=l&&b.has(l)?l:V(c.id);R("automations_list_row_clicked",{automation_id:i,agent_id:N,source:"settings_automations"}),P(N,{panel:`automation:${i}`})};let p;t[0]!==f||t[1]!==c.slug?(p=()=>{R("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/projects",params:{org:c.slug}})},t[0]=f,t[1]=c.slug,t[2]=p):p=t[2];const L=p,j=d,C=d,v=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 w=g.length>0&&e.jsx(F,{value:x,onChange:z,placeholder:o("settings.automations.searchPlaceholder"),className:"w-full md:w-[375px]"});let n;t[7]!==r||t[8]!==w?(n=e.jsxs("div",{className:"flex flex-col gap-6",children:[r,w]}),t[7]=r,t[8]=w,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(S,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.emptyTitle"),description:o("settings.automations.emptyDescription"),actions:e.jsxs(O,{size:"sm",onClick:L,children:[e.jsx(X,{size:14}),o("settings.automations.browseAgentsButton")]})})}):A.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(S,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.noResultsTitle"),description:o("settings.automations.noResultsDescription",{search:x})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:A.map(i=>e.jsx(J,{automation:i,showAgent:!0,onClick:()=>B(i.id,i.virtual_mcp_id)},i.id))});let a;t[10]!==v.Container||t[11]!==n||t[12]!==_?(a=e.jsxs(v.Container,{children:[n,_]}),t[10]=v.Container,t[11]=n,t[12]=_,t[13]=a):a=t[13];let m;t[14]!==C.Content||t[15]!==a?(m=e.jsx(C.Content,{children:a}),t[14]=C.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 W(t){return[t.id,t]}function Jt(){const t=k.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(Q,{capability:"automations:manage",area:"automations",children:e.jsx(U,{})}),t[0]=o):o=t[0],o}export{Jt as default};
1
+ import{c as k,j as e,b as $,X as D,d as M,r as q,n as d,B as O,fO as V,q as R}from"./index-C4_IsUfP.js";import{s as X}from"./Plus-B-53rDvP.js";import{i as S}from"./ZoomOut-C9XmFKHT.js";import{S as F}from"./search-input-oTBQACCx.js";import{E as T}from"./empty-state-Cjrt4JF2.js";import{u as G}from"./use-automations-9PXFtVfy.js";import{u as H}from"./use-navigate-to-agent-BnDmIYzi.js";import{A as J}from"./automation-list-row-ok7jT6DX.js";import{b as K}from"./repository-binding-B6lutFQ4.js";import{R as Q}from"./require-capability-BaFiHjJm.js";import"./SearchMd-BllCVZq9.js";import"./use-mcp-client-B2b2byos.js";import"./auth-ffdv9zBE.js";import"./thread-intent-C8X5ktlA.js";import"./backoff-8mStPHYB.js";import"./task-board-CRMXz3n1.js";import"./schema-BBcW2anh.js";import"./slugify-CEUa2lfQ.js";import"./alert-dialog-BGx21FS2.js";import"./agent-icon-CP-a92NU.js";import"./AlertCircle-DjwL3HeP.js";import"./Tool01-jLeWFLJf.js";import"./ArrowUp-CuiZciDq.js";import"./ArrowLeft-OKETo1JN.js";import"./LinkBroken01-xH8m8Sus.js";import"./ShoppingBag01-DppHiQvv.js";import"./Building02-Bi6DxRcf.js";import"./CheckCircle-BlkcMEUz.js";import"./Check-CG-PU97b.js";import"./ChevronUp-C3ZiD_fg.js";import"./UserSquare-B213f0Cc.js";import"./Copy01-DojX8qy9.js";import"./CreditCard01-BQvCmNkN.js";import"./DotsVertical-Djr19pIQ.js";import"./Image01-DfuNfbn3.js";import"./Palette-w5zzOUDg.js";import"./XClose-Bv4BxYzr.js";import"./Key01-CJa1302r.js";import"./Link01-CUp58poO.js";import"./LinkExternal01-D6MX3TMO.js";import"./Monitor01-DlAgqW2y.js";import"./Sun-wN9CLbIZ.js";import"./Trash01-COqYNSpe.js";import"./Upload01-Ck_z8fJf.js";import"./User01-CST7ZUYM.js";import"./Users01-BGu5-MW7.js";import"./X-Cof6n_dh.js";import"./access-gate-DwCbDOyT.js";import"./capability-load-error-CGburUk6.js";function U(){const t=k.c(20),o=$(),{org:c}=D(),{data:y}=G(void 0),g=y===void 0?[]:y,E=K(),P=H(),f=M(),[x,z]=q.useState(""),h=x.toLowerCase(),b=new Map(E.map(W)),A=g.filter(i=>{if(!h||i.name.toLowerCase().includes(h))return!0;if(i.virtual_mcp_id){const l=b.get(i.virtual_mcp_id);if(l&&l.title.toLowerCase().includes(h))return!0}return!1}),B=(i,l)=>{const N=l&&b.has(l)?l:V(c.id);R("automations_list_row_clicked",{automation_id:i,agent_id:N,source:"settings_automations"}),P(N,{panel:`automation:${i}`})};let p;t[0]!==f||t[1]!==c.slug?(p=()=>{R("automations_empty_state_browse_agents_clicked"),f({to:"/$org/settings/projects",params:{org:c.slug}})},t[0]=f,t[1]=c.slug,t[2]=p):p=t[2];const L=p,j=d,C=d,v=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 w=g.length>0&&e.jsx(F,{value:x,onChange:z,placeholder:o("settings.automations.searchPlaceholder"),className:"w-full md:w-[375px]"});let n;t[7]!==r||t[8]!==w?(n=e.jsxs("div",{className:"flex flex-col gap-6",children:[r,w]}),t[7]=r,t[8]=w,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(S,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.emptyTitle"),description:o("settings.automations.emptyDescription"),actions:e.jsxs(O,{size:"sm",onClick:L,children:[e.jsx(X,{size:14}),o("settings.automations.browseAgentsButton")]})})}):A.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx(T,{image:e.jsx(S,{size:48,className:"text-muted-foreground"}),title:o("settings.automations.noResultsTitle"),description:o("settings.automations.noResultsDescription",{search:x})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:A.map(i=>e.jsx(J,{automation:i,showAgent:!0,onClick:()=>B(i.id,i.virtual_mcp_id)},i.id))});let a;t[10]!==v.Container||t[11]!==n||t[12]!==_?(a=e.jsxs(v.Container,{children:[n,_]}),t[10]=v.Container,t[11]=n,t[12]=_,t[13]=a):a=t[13];let m;t[14]!==C.Content||t[15]!==a?(m=e.jsx(C.Content,{children:a}),t[14]=C.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 W(t){return[t.id,t]}function Jt(){const t=k.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=e.jsx(Q,{capability:"automations:manage",area:"automations",children:e.jsx(U,{})}),t[0]=o):o=t[0],o}export{Jt as default};
@@ -1 +1 @@
1
- import{V as d}from"./index-8ROcBeOM.js";const m=1e4,y="true",i=2;function a(t,n){return d.chatAutosend(t,n)}function l(t){return t==="pending"||t==="sending"}function f(t){if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||typeof n!="object")return null;const e=n;let o=0;e.status==="sending"?o=e.retryAt===void 0?1:i:e.retryAt!==void 0&&(o=1);const r=e.attempt===void 0?o:e.attempt;return typeof e.createdAt!="number"||typeof e.message!="object"||!l(e.status)||e.retryAt!==void 0&&typeof e.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>i?null:{...n,attempt:r}}function S(t,n,e,o,r=Date.now()){const s={message:o,createdAt:r,status:"pending",attempt:0};return t.setItem(a(n,e),JSON.stringify(s)),s}function p(t,n,e){const o=a(n,e),r=f(t.getItem(o));return r||(t.removeItem(o),null)}function g(t,n,e,o=Date.now()){const r=a(n,e),s=p(t,n,e);if(!s||s.status!=="pending")return null;if(s.attempt>=i)return t.removeItem(r),null;const c=s.retryAt??s.createdAt;if(o-c>=m)return t.removeItem(r),null;const u={...s,status:"sending",attempt:s.attempt+1};return t.setItem(r,JSON.stringify(u)),{message:u.message,createdAt:u.createdAt,attempt:u.attempt}}function T(t,n,e){t.removeItem(a(n,e))}export{y as A,T as a,g as c,S as w};
1
+ import{V as d}from"./index-C4_IsUfP.js";const m=1e4,y="true",i=2;function a(t,n){return d.chatAutosend(t,n)}function l(t){return t==="pending"||t==="sending"}function f(t){if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||typeof n!="object")return null;const e=n;let o=0;e.status==="sending"?o=e.retryAt===void 0?1:i:e.retryAt!==void 0&&(o=1);const r=e.attempt===void 0?o:e.attempt;return typeof e.createdAt!="number"||typeof e.message!="object"||!l(e.status)||e.retryAt!==void 0&&typeof e.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>i?null:{...n,attempt:r}}function S(t,n,e,o,r=Date.now()){const s={message:o,createdAt:r,status:"pending",attempt:0};return t.setItem(a(n,e),JSON.stringify(s)),s}function p(t,n,e){const o=a(n,e),r=f(t.getItem(o));return r||(t.removeItem(o),null)}function g(t,n,e,o=Date.now()){const r=a(n,e),s=p(t,n,e);if(!s||s.status!=="pending")return null;if(s.attempt>=i)return t.removeItem(r),null;const c=s.retryAt??s.createdAt;if(o-c>=m)return t.removeItem(r),null;const u={...s,status:"sending",attempt:s.attempt+1};return t.setItem(r,JSON.stringify(u)),{message:u.message,createdAt:u.createdAt,attempt:u.attempt}}function T(t,n,e){t.removeItem(a(n,e))}export{y as A,T as a,g as c,S as w};
@@ -1 +1 @@
1
- import{c as k,j as i,l as f,aH as R,ba as V,bb as I,bc as $}from"./index-8ROcBeOM.js";import{s as O}from"./User01-C5XGpmJ9.js";function U(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx($,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function E(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(V,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function M(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(I,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}const C=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],L="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function T(r){let e=0;for(let t=0;t<r.length;t++)e=r.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%C.length;return C[s]}const S=R("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),_=R("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),D=r=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[r]||e.base};function H(r){const e=k.c(34);let s,t,o,a,n,d,g,l;e[0]!==r?({url:l,fallback:t,shape:a,size:n,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const m=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g;let x;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],x=c;break e}x=t}const b=x;let y;e:{if(j){y=L;break e}if(typeof t=="string"){let c;e[11]!==t?(c=T(t),e[11]=t,e[12]=c):c=e[12],y=c;break e}y=C[0]}const z=y;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const F=q;let w;e[18]!==s||e[19]!==m||e[20]!==h?(w=f(S({shape:m,size:h}),s),e[18]=s,e[19]=m,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==z||e[23]!==b||e[24]!==F||e[25]!==p||e[26]!==u||e[27]!==h||e[28]!==l?(v=p&&F?i.jsx("div",{className:f("flex items-center justify-center w-full h-full",z),children:i.jsx(O,{size:D(h)})}):i.jsxs(i.Fragment,{children:[l&&i.jsx(E,{src:l,loading:"lazy",alt:"Avatar",className:f(_({objectFit:u}))}),i.jsx(M,{className:f(z,"rounded-none"),delayMs:l?600:0,children:b})]}),e[22]=z,e[23]=b,e[24]=F,e[25]=p,e[26]=u,e[27]=h,e[28]=l,e[29]=v):v=e[29];let A;return e[30]!==o||e[31]!==v||e[32]!==w?(A=i.jsx(U,{className:w,...o,children:v}),e[30]=o,e[31]=v,e[32]=w,e[33]=A):A=e[33],A}function W(r){const e=k.c(18);let s,t,o,a,n,d,g,l;e[0]!==r?({shape:a,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const m=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g,x=h??"base";let b;return e[9]!==s||e[10]!==t||e[11]!==j||e[12]!==u||e[13]!==o||e[14]!==m||e[15]!==x||e[16]!==l?(b=i.jsx(H,{shape:m,url:l,fallback:t,size:x,objectFit:u,className:s,muted:j,...o}),e[9]=s,e[10]=t,e[11]=j,e[12]=u,e[13]=o,e[14]=m,e[15]=x,e[16]=l,e[17]=b):b=e[17],b}W.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:f(S({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{W as A};
1
+ import{c as k,j as i,l as f,aH as R,ba as V,bb as I,bc as $}from"./index-C4_IsUfP.js";import{s as O}from"./User01-CST7ZUYM.js";function U(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx($,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function E(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(V,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}function M(r){const e=k.c(8);let s,t;e[0]!==r?({className:s,...t}=r,e[0]=r,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let a;return e[5]!==t||e[6]!==o?(a=i.jsx(I,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=a):a=e[7],a}const C=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],L="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function T(r){let e=0;for(let t=0;t<r.length;t++)e=r.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%C.length;return C[s]}const S=R("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),_=R("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),D=r=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[r]||e.base};function H(r){const e=k.c(34);let s,t,o,a,n,d,g,l;e[0]!==r?({url:l,fallback:t,shape:a,size:n,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const m=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g;let x;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],x=c;break e}x=t}const b=x;let y;e:{if(j){y=L;break e}if(typeof t=="string"){let c;e[11]!==t?(c=T(t),e[11]=t,e[12]=c):c=e[12],y=c;break e}y=C[0]}const z=y;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const F=q;let w;e[18]!==s||e[19]!==m||e[20]!==h?(w=f(S({shape:m,size:h}),s),e[18]=s,e[19]=m,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==z||e[23]!==b||e[24]!==F||e[25]!==p||e[26]!==u||e[27]!==h||e[28]!==l?(v=p&&F?i.jsx("div",{className:f("flex items-center justify-center w-full h-full",z),children:i.jsx(O,{size:D(h)})}):i.jsxs(i.Fragment,{children:[l&&i.jsx(E,{src:l,loading:"lazy",alt:"Avatar",className:f(_({objectFit:u}))}),i.jsx(M,{className:f(z,"rounded-none"),delayMs:l?600:0,children:b})]}),e[22]=z,e[23]=b,e[24]=F,e[25]=p,e[26]=u,e[27]=h,e[28]=l,e[29]=v):v=e[29];let A;return e[30]!==o||e[31]!==v||e[32]!==w?(A=i.jsx(U,{className:w,...o,children:v}),e[30]=o,e[31]=v,e[32]=w,e[33]=A):A=e[33],A}function W(r){const e=k.c(18);let s,t,o,a,n,d,g,l;e[0]!==r?({shape:a,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=r,e[0]=r,e[1]=s,e[2]=t,e[3]=o,e[4]=a,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],a=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const m=a===void 0?"square":a,h=n===void 0?"base":n,u=d===void 0?"cover":d,j=g===void 0?!1:g,x=h??"base";let b;return e[9]!==s||e[10]!==t||e[11]!==j||e[12]!==u||e[13]!==o||e[14]!==m||e[15]!==x||e[16]!==l?(b=i.jsx(H,{shape:m,url:l,fallback:t,size:x,objectFit:u,className:s,muted:j,...o}),e[9]=s,e[10]=t,e[11]=j,e[12]=u,e[13]=o,e[14]=m,e[15]=x,e[16]=l,e[17]=b):b=e[17],b}W.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:f(S({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{W as A};
@@ -1 +1 @@
1
- import{c as u,l as g,j as l,bd as v,aH as b}from"./index-8ROcBeOM.js";const f=b("inline-flex items-center justify-center rounded-full border text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",warning:"border-transparent bg-warning text-warning-foreground [a&]:hover:bg-warning/90 focus-visible:ring-warning/20 dark:focus-visible:ring-warning/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",muted:"border-transparent bg-muted text-muted-foreground [a&]:hover:bg-muted/80"},size:{default:"px-2 py-0.5",icon:"size-5",segmented:"h-7 gap-0 rounded-lg border-transparent bg-card p-0 card-shadow"}},defaultVariants:{variant:"default",size:"default"}});function x(d){const e=u.c(14);let r,s,t,n,a;e[0]!==d?({className:r,variant:a,size:t,asChild:n,...s}=d,e[0]=d,e[1]=r,e[2]=s,e[3]=t,e[4]=n,e[5]=a):(r=e[1],s=e[2],t=e[3],n=e[4],a=e[5]);const c=(n===void 0?!1:n)?v:"span";let i;e[6]!==r||e[7]!==t||e[8]!==a?(i=g(f({variant:a,size:t}),r),e[6]=r,e[7]=t,e[8]=a,e[9]=i):i=e[9];let o;return e[10]!==c||e[11]!==s||e[12]!==i?(o=l.jsx(c,{"data-slot":"badge",className:i,...s}),e[10]=c,e[11]=s,e[12]=i,e[13]=o):o=e[13],o}export{x as B};
1
+ import{c as u,l as g,j as l,bd as v,aH as b}from"./index-C4_IsUfP.js";const f=b("inline-flex items-center justify-center rounded-full border text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",warning:"border-transparent bg-warning text-warning-foreground [a&]:hover:bg-warning/90 focus-visible:ring-warning/20 dark:focus-visible:ring-warning/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",muted:"border-transparent bg-muted text-muted-foreground [a&]:hover:bg-muted/80"},size:{default:"px-2 py-0.5",icon:"size-5",segmented:"h-7 gap-0 rounded-lg border-transparent bg-card p-0 card-shadow"}},defaultVariants:{variant:"default",size:"default"}});function x(d){const e=u.c(14);let r,s,t,n,a;e[0]!==d?({className:r,variant:a,size:t,asChild:n,...s}=d,e[0]=d,e[1]=r,e[2]=s,e[3]=t,e[4]=n,e[5]=a):(r=e[1],s=e[2],t=e[3],n=e[4],a=e[5]);const c=(n===void 0?!1:n)?v:"span";let i;e[6]!==r||e[7]!==t||e[8]!==a?(i=g(f({variant:a,size:t}),r),e[6]=r,e[7]=t,e[8]=a,e[9]=i):i=e[9];let o;return e[10]!==c||e[11]!==s||e[12]!==i?(o=l.jsx(c,{"data-slot":"badge",className:i,...s}),e[10]=c,e[11]=s,e[12]=i,e[13]=o):o=e[13],o}export{x as B};