decocms 4.152.1 → 4.153.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/client/assets/{AlertCircle-C1p4BI-r.js → AlertCircle-DqK8ulre.js} +1 -1
  2. package/dist/client/assets/{AreaChart-yw1Pq4FO.js → AreaChart-BxwF87-t.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-xtqXVRNM.js → ArrowUp-CwJxQAry.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-BAiOM1yY.js → ArrowUpRight-DoTQ7Yun.js} +1 -1
  5. package/dist/client/assets/{Check-BTRyKjcC.js → Check-KqzdtX2q.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-jTH0GD3V.js → CheckCircle-CAFyO3J1.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-CYMavtyy.js → ChevronDown-BKlXQ8BF.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-B5z6D0-G.js → ChevronRight-ADTPUqoR.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-D6QsmsQ3.js → ChevronUp-NmjhL1PU.js} +1 -1
  10. package/dist/client/assets/{Copy01-3WOQw33c.js → Copy01-gHmzHn77.js} +1 -1
  11. package/dist/client/assets/{CpuChip01-iF2dodFr.js → CpuChip01-DDk03qgj.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-BDoKsQjp.js → DotsVertical-DkAzKyI7.js} +1 -1
  13. package/dist/client/assets/{Eye-COB6BnkX.js → Eye-DSMT4efl.js} +1 -1
  14. package/dist/client/assets/{FilterLines-WjR1QnaD.js → FilterLines-C2xHkwAr.js} +1 -1
  15. package/dist/client/assets/{HardDrive-tNUIjCRf.js → HardDrive-CFn8JvWN.js} +1 -1
  16. package/dist/client/assets/{Key01-wIIwSQIx.js → Key01-CviEGCiT.js} +1 -1
  17. package/dist/client/assets/{LayoutLeft-BcXkXZyU.js → LayoutLeft-BEEL2ild.js} +1 -1
  18. package/dist/client/assets/{LinkExternal01-Lu85M-YE.js → LinkExternal01-h2rVRXks.js} +1 -1
  19. package/dist/client/assets/{LogOut01-DjTM9JlN.js → LogOut01-CABcpiXL.js} +1 -1
  20. package/dist/client/assets/{Monitor01-DVA7xJlm.js → Monitor01-BmatEYUk.js} +1 -1
  21. package/dist/client/assets/{Palette-C0Izil9_.js → Palette-CCRzcvOV.js} +1 -1
  22. package/dist/client/assets/{Play-ChQxzpbc.js → Play-BoDo5eNZ.js} +1 -1
  23. package/dist/client/assets/{Plus-C7-Jykzw.js → Plus-uT_ruhvx.js} +1 -1
  24. package/dist/client/assets/{SearchLg-DBqAZHNP.js → SearchLg-CD4j-2WE.js} +1 -1
  25. package/dist/client/assets/{SearchMd-jvuhchUE.js → SearchMd-CF6hbSaR.js} +1 -1
  26. package/dist/client/assets/{Settings02-D0iRDODt.js → Settings02-1V31tCVO.js} +1 -1
  27. package/dist/client/assets/{Shield01-emI_Zsgf.js → Shield01-DUAErS60.js} +1 -1
  28. package/dist/client/assets/{Star01-Damoa97b.js → Star01-BSqW5yFl.js} +1 -1
  29. package/dist/client/assets/{Stars01-CX8e2BUN.js → Stars01-CdHlTFhs.js} +1 -1
  30. package/dist/client/assets/{Stars02-C2vCNivb.js → Stars02-BCg4mxCh.js} +1 -1
  31. package/dist/client/assets/{Sun-D2Sr0vj3.js → Sun-B99il5SU.js} +1 -1
  32. package/dist/client/assets/{SwitchHorizontal01-gxe-Ob-R.js → SwitchHorizontal01-Db38JatT.js} +1 -1
  33. package/dist/client/assets/{Tool01-C3xOcFWT.js → Tool01-CLsVvoDm.js} +1 -1
  34. package/dist/client/assets/{Tool02-DCVL3YsW.js → Tool02-B6Rs3tGv.js} +1 -1
  35. package/dist/client/assets/{Trash01-CzAvbEFY.js → Trash01-Btg7y4Eg.js} +1 -1
  36. package/dist/client/assets/{TrendUp01-4MistV1z.js → TrendUp01-B49YvCch.js} +1 -1
  37. package/dist/client/assets/{Upload01-DD0bWcZg.js → Upload01-D0QWa_ki.js} +1 -1
  38. package/dist/client/assets/{User01-CFAWPJdj.js → User01-CZtYFqHL.js} +1 -1
  39. package/dist/client/assets/{Users01-DXzH9UKu.js → Users01-CE_-lyiJ.js} +1 -1
  40. package/dist/client/assets/{Users03-BiHUNE1J.js → Users03-DE48gk4u.js} +1 -1
  41. package/dist/client/assets/{X-B-AhWWg6.js → X-Cenu8rle.js} +1 -1
  42. package/dist/client/assets/{XCircle-fQhctTZ_.js → XCircle-f5JBfBaa.js} +1 -1
  43. package/dist/client/assets/{XClose-DYHUiD19.js → XClose-DckwmISR.js} +1 -1
  44. package/dist/client/assets/{Zap-C4cd2Xko.js → Zap-5zZGoYSD.js} +1 -1
  45. package/dist/client/assets/{ZapSquare-GGjIYrhG.js → ZapSquare-NpgAveXb.js} +1 -1
  46. package/dist/client/assets/{access-gate-fZ9IXLPO.js → access-gate-Cfze2gzT.js} +1 -1
  47. package/dist/client/assets/{add-section-modal-BuVi42bv.js → add-section-modal-C2vxsAuF.js} +1 -1
  48. package/dist/client/assets/{agent-icon-BKf3L_af.js → agent-icon-hceGr42J.js} +1 -1
  49. package/dist/client/assets/{agents-list-CQFisUpt.js → agents-list-CRaxWpOk.js} +1 -1
  50. package/dist/client/assets/{ai-providers-CmaVMDzo.js → ai-providers-BLR4TJ-c.js} +1 -1
  51. package/dist/client/assets/{alert-DsD0w_-A.js → alert-Btvl3oZh.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-Dd7YAzjK.js → alert-dialog-Tm-9u7IQ.js} +1 -1
  53. package/dist/client/assets/{app-editor-D_FFNQIH.js → app-editor-CANC5apI.js} +1 -1
  54. package/dist/client/assets/{auth-catchall-BEmhAPXu.js → auth-catchall-DDLMv5UL.js} +1 -1
  55. package/dist/client/assets/{auth-entry-Btx4dtdd.js → auth-entry-CZ90JqQe.js} +1 -1
  56. package/dist/client/assets/{auth-CPqFQ16D.js → auth-seW3ELIa.js} +1 -1
  57. package/dist/client/assets/{auth-split-layout-DEfffhk0.js → auth-split-layout-C-w-4meb.js} +1 -1
  58. package/dist/client/assets/{authenticate-and-persist-oauth-C2VBjGwC.js → authenticate-and-persist-oauth-BIJh0f5l.js} +1 -1
  59. package/dist/client/assets/{automation-list-row-DLPZWyC4.js → automation-list-row-BaOu36TR.js} +1 -1
  60. package/dist/client/assets/{automation-runs-k5nXaLLh.js → automation-runs-CLrr9GAv.js} +33 -33
  61. package/dist/client/assets/{automations-DuG3Jy_J.js → automations-C5TSCOQ0.js} +1 -1
  62. package/dist/client/assets/{avatar-Ctl60Ugx.js → avatar-4o3KZDEL.js} +1 -1
  63. package/dist/client/assets/{badge-Dt7W_F-L.js → badge-CnmFAVrc.js} +1 -1
  64. package/dist/client/assets/{block-document-BKzq7v1j.js → block-document-CN3ABikZ.js} +1 -1
  65. package/dist/client/assets/{brand-context-B4iHwZeY.js → brand-context-CFCMkT5F.js} +1 -1
  66. package/dist/client/assets/{buckets-DTzM-r5h.js → buckets-C8yVRZjZ.js} +1 -1
  67. package/dist/client/assets/{bulk-category-panel-C4T0krDg.js → bulk-category-panel-DdNjoq4_.js} +1 -1
  68. package/dist/client/assets/{calendar-DuZfoKtR.js → calendar-ijkOYMCa.js} +2 -2
  69. package/dist/client/assets/{capability-load-error-BqeS9mWr.js → capability-load-error-DR941lYh.js} +1 -1
  70. package/dist/client/assets/{card-DvSRU-qV.js → card-Bg-ddXqb.js} +1 -1
  71. package/dist/client/assets/{category-editor-CR3-ykBP.js → category-editor-D9hD4m1r.js} +1 -1
  72. package/dist/client/assets/{chat-context-Duw-GSiz.js → chat-context-BX9xnIww.js} +1 -1
  73. package/dist/client/assets/{checkbox-BPKZo7Gx.js → checkbox-DPIYLWzE.js} +1 -1
  74. package/dist/client/assets/{cli-auth-success-DE2WmSKI.js → cli-auth-success-v-7BOpC5.js} +1 -1
  75. package/dist/client/assets/{collection-detail-WoWKMQ-6.js → collection-detail-C4RxjwW7.js} +1 -1
  76. package/dist/client/assets/{collection-display-button-j9Fw-chM.js → collection-display-button-DO3CPGoe.js} +1 -1
  77. package/dist/client/assets/{collection-search-qddzhEs2.js → collection-search-bvNu93r4.js} +1 -1
  78. package/dist/client/assets/{collection-table-wrapper-NpI0Aoo0.js → collection-table-wrapper-DslWdjYd.js} +1 -1
  79. package/dist/client/assets/{collection-tabs-CJDpOK2i.js → collection-tabs-Be6vd_mf.js} +1 -1
  80. package/dist/client/assets/{command-C5dNmjH8.js → command-C5wThsvg.js} +1 -1
  81. package/dist/client/assets/{commerce-onboarding-olX_eJBN.js → commerce-onboarding-DJW5TaWH.js} +1 -1
  82. package/dist/client/assets/{companions-core-Dp_0wCKI.js → companions-core-CCThNVJO.js} +1 -1
  83. package/dist/client/assets/{connect-DpWeasTQ.js → connect-4eWMs-XI.js} +1 -1
  84. package/dist/client/assets/{connection-x5d6GDTT.js → connection-VTnG6A7-.js} +1 -1
  85. package/dist/client/assets/{connection-card-zkFJRzDa.js → connection-card-Jatb9zGV.js} +1 -1
  86. package/dist/client/assets/{connection-detail-CjWwBQIp.js → connection-detail-NekCOx_E.js} +1 -1
  87. package/dist/client/assets/{connection-form-helpers-C07fhYcO.js → connection-form-helpers-Hdk5pSZ5.js} +1 -1
  88. package/dist/client/assets/{connections-B_xgTOgO.js → connections-DymkuNG0.js} +1 -1
  89. package/dist/client/assets/{decopilot-sse-pool-DsNVynwM.js → decopilot-sse-pool-BCVdH9M_.js} +1 -1
  90. package/dist/client/assets/{dialog-AyAe0pc5.js → dialog-DUJx3N12.js} +1 -1
  91. package/dist/client/assets/{domain-settings-DfkIBQV9.js → domain-settings-D2wr0OWA.js} +1 -1
  92. package/dist/client/assets/{drawer-AbkSydC0.js → drawer-CC45ogPY.js} +1 -1
  93. package/dist/client/assets/{dropdown-menu-DPW2D5DY.js → dropdown-menu-Bn13TEc8.js} +1 -1
  94. package/dist/client/assets/{empty-state-CpZTkFCu.js → empty-state-DPdcG8LM.js} +1 -1
  95. package/dist/client/assets/{extract-connection-data-DdUtxDP8.js → extract-connection-data-Czn51ciV.js} +1 -1
  96. package/dist/client/assets/{file-explorer-C12sNqjN.js → file-explorer-B-A7ciUo.js} +2 -2
  97. package/dist/client/assets/{form-CmOCUM28.js → form-Pskgv0cU.js} +1 -1
  98. package/dist/client/assets/{general-DWBAUVoF.js → general-CAQv53ST.js} +1 -1
  99. package/dist/client/assets/{github-repo-picker-Ba-pUguJ.js → github-repo-picker-D5MQ1Fsn.js} +1 -1
  100. package/dist/client/assets/{hooks-BQKz1IMo.js → hooks-yAEUeZP0.js} +1 -1
  101. package/dist/client/assets/index-B5jBvolo.css +1 -0
  102. package/dist/client/assets/{index-C0m8rOD-.js → index-B8K0EjfH.js} +1 -1
  103. package/dist/client/assets/{index-DmxDfO3T.js → index-BNlN2CQO.js} +5 -5
  104. package/dist/client/assets/{index-CNmtsP-c.js → index-CKIQiToX.js} +1 -1
  105. package/dist/client/assets/{index-BCAJiV1k.js → index-CPPub1TQ.js} +1 -1
  106. package/dist/client/assets/{index-D61PQ-TC.js → index-D4yHHY1C.js} +1 -1
  107. package/dist/client/assets/{index-ChFgBMHf.js → index-DCip1JHK.js} +36 -36
  108. package/dist/client/assets/{index-CIjUyGrI.js → index-Dm0qXB9T.js} +4 -4
  109. package/dist/client/assets/{index-Bk29doKP.js → index-Mip4UgN-.js} +1 -1
  110. package/dist/client/assets/{index-CCqQAdu_.js → index-_zhMD-9B.js} +1 -1
  111. package/dist/client/assets/{index-redirect-X7xKcA5q.js → index-redirect-Bz9maMGh.js} +1 -1
  112. package/dist/client/assets/{index-Z558XFJA.js → index-uZdqphov.js} +1 -1
  113. package/dist/client/assets/{index-NQr9p7Ja.js → index-ztEuUAyt.js} +1 -1
  114. package/dist/client/assets/{input-fBoQaHqZ.js → input-VzDEscmR.js} +1 -1
  115. package/dist/client/assets/{integration-icon-C2cKqMp3.js → integration-icon-BZhcuxSS.js} +1 -1
  116. package/dist/client/assets/{invite-member-dialog-ChVQ53tD.js → invite-member-dialog-BGnLwBj3.js} +1 -1
  117. package/dist/client/assets/{label-13sQYcvS.js → label-ZxVt4xHW.js} +1 -1
  118. package/dist/client/assets/{layout-RGcCkkBF.js → layout-Dn82_8p2.js} +1 -1
  119. package/dist/client/assets/{login-Bk-GS76B.js → login-DyKy1Ss9.js} +1 -1
  120. package/dist/client/assets/{mcp-oauth-CsdltbRX.js → mcp-oauth-BxpCef7v.js} +1 -1
  121. package/dist/client/assets/{members-CGVpLAQ8.js → members-DScuxTgz.js} +1 -1
  122. package/dist/client/assets/{monaco-editor-40UQFco5.js → monaco-editor-DLUtI8sB.js} +1 -1
  123. package/dist/client/assets/{monitoring-stats-row-C8fPwEHE.js → monitoring-stats-row-DXOpS2ag.js} +1 -1
  124. package/dist/client/assets/{multi-select-CXTpAR5q.js → multi-select-20LUPjBR.js} +1 -1
  125. package/dist/client/assets/{oauth-callback-wLXHAFTN.js → oauth-callback-DyrnNhp5.js} +1 -1
  126. package/dist/client/assets/{oauth-callback-ai-provider-LRPCGKBx.js → oauth-callback-ai-provider-3a5j6QMO.js} +1 -1
  127. package/dist/client/assets/{onboarding-CvwKG7c-.js → onboarding-mXvCWS_6.js} +1 -1
  128. package/dist/client/assets/{org-layout-0S3WT8d1.js → org-layout-Ck9qTclR.js} +1 -1
  129. package/dist/client/assets/{organization-choice-oubfgTcX.js → organization-choice-CDms34tM.js} +1 -1
  130. package/dist/client/assets/{orgs-BPs1iHu5.js → orgs-D9Ia4bfm.js} +1 -1
  131. package/dist/client/assets/{page-seo-form-kdCPf_oq.js → page-seo-form-ZCBbdpvK.js} +1 -1
  132. package/dist/client/assets/{popover-wINtvOB8.js → popover-BX4XdZzI.js} +1 -1
  133. package/dist/client/assets/{post-editor-DQ5fmwNj.js → post-editor-B-uyYv0V.js} +1 -1
  134. package/dist/client/assets/{primitives-BzJ618ja.js → primitives-Ba0z-Vg6.js} +1 -1
  135. package/dist/client/assets/{profile-BS2dFhMb.js → profile-CI1TnKwY.js} +1 -1
  136. package/dist/client/assets/project-app-view-j91xLmgS.js +1 -0
  137. package/dist/client/assets/record-editor-D-13h2bu.js +1 -0
  138. package/dist/client/assets/{redirect-editor-B7jVYHyk.js → redirect-editor-BnuGoPKx.js} +1 -1
  139. package/dist/client/assets/registry-M7cRxppY.js +2 -0
  140. package/dist/client/assets/{registry-layout-V84QXvj0.js → registry-layout-vV2j7fE2.js} +1 -1
  141. package/dist/client/assets/{reports-CAkkD34q.js → reports-BZt3BYQO.js} +1 -1
  142. package/dist/client/assets/{require-capability-DBQj47j3.js → require-capability-BdAkPLJ2.js} +1 -1
  143. package/dist/client/assets/{required-auth-layout-BwCfdyaP.js → required-auth-layout-CGbjHGjJ.js} +1 -1
  144. package/dist/client/assets/{reset-password-Di8tG8bt.js → reset-password-DW1W4ppo.js} +1 -1
  145. package/dist/client/assets/{roles-FIOsh22k.js → roles-BPJOs91t.js} +1 -1
  146. package/dist/client/assets/{search-input-CoU__cpG.js → search-input-IrY_c-E0.js} +1 -1
  147. package/dist/client/assets/{secrets-Ci06BiER.js → secrets-BscT5PRs.js} +1 -1
  148. package/dist/client/assets/{sections-editor-CjTXgl4L.js → sections-editor-DbAaib-0.js} +1 -1
  149. package/dist/client/assets/{select-CDsVywZC.js → select-B9Sf0UAL.js} +1 -1
  150. package/dist/client/assets/{select-model-BM-MnESB.js → select-model-Kk_u99yG.js} +1 -1
  151. package/dist/client/assets/{self-tool-result-BvqWEu6s.js → self-tool-result-B-B_fL-V.js} +1 -1
  152. package/dist/client/assets/{seo-editor-DVdgwutn.js → seo-editor-BTsEb1YI.js} +1 -1
  153. package/dist/client/assets/{settings-layout-Bh9-h9x4.js → settings-layout-kYaN_3k0.js} +1 -1
  154. package/dist/client/assets/{settings-section-BNLo8L5P.js → settings-section-CnAY3-8W.js} +1 -1
  155. package/dist/client/assets/{shell-controls-Bp_AG6IG.js → shell-controls-BdEZNwbj.js} +1 -1
  156. package/dist/client/assets/{shell-layout-BGbOLFDx.js → shell-layout-DgmyPUtx.js} +1 -1
  157. package/dist/client/assets/{sidebar-a6IT7wMT.js → sidebar-DEx0EEsM.js} +1 -1
  158. package/dist/client/assets/{skeleton-Cc9m7g9t.js → skeleton-D3xUNCQC.js} +1 -1
  159. package/dist/client/assets/{spinner-DaAyp5fp.js → spinner-sHizKooc.js} +1 -1
  160. package/dist/client/assets/{sso-_WpsOmok.js → sso-Db0C527R.js} +1 -1
  161. package/dist/client/assets/{store-CgztPn8o.js → store-BgiHCIwv.js} +1 -1
  162. package/dist/client/assets/store-registry-Frdr8SZd.js +2 -0
  163. package/dist/client/assets/{studio-tools-BnCa4OsH.js → studio-tools-s9M9pVWy.js} +1 -1
  164. package/dist/client/assets/{switch-k-m-RjnR.js → switch-WUsr8pXx.js} +1 -1
  165. package/dist/client/assets/{tab-id-BaOLjH3u.js → tab-id-CYFdu5mV.js} +1 -1
  166. package/dist/client/assets/{table-D_vSZJCF.js → table-BCaYD-Wp.js} +1 -1
  167. package/dist/client/assets/{tabs-DhNAO246.js → tabs-C0a55bMv.js} +1 -1
  168. package/dist/client/assets/{textarea-DuTteT0e.js → textarea-CXvO3BHl.js} +1 -1
  169. package/dist/client/assets/{toggle-group-DVa2wDkR.js → toggle-group-CdmO0QEr.js} +1 -1
  170. package/dist/client/assets/{toolbar-C25nFxgl.js → toolbar-BGrRAEvZ.js} +1 -1
  171. package/dist/client/assets/{tooltip-B8d5377n.js → tooltip-DnNDj1c3.js} +1 -1
  172. package/dist/client/assets/{use-ai-providers-rerJFsCM.js → use-ai-providers-C7fUIQp5.js} +1 -1
  173. package/dist/client/assets/{use-automations-O4dbFZfR.js → use-automations-D-ap3QeA.js} +1 -1
  174. package/dist/client/assets/{use-autosave-BKf2tR0j.js → use-autosave-B29s5uqG.js} +1 -1
  175. package/dist/client/assets/{use-capability-3iFq6Blh.js → use-capability-B0JrvOYC.js} +1 -1
  176. package/dist/client/assets/{use-clock-tick-4vF0gRp0.js → use-clock-tick-C3arPLdA.js} +1 -1
  177. package/dist/client/assets/{use-connection-DCDCT4dy.js → use-connection-EX74HLom.js} +1 -1
  178. package/dist/client/assets/{use-copy-CpqU5zAi.js → use-copy-Cvs538xZ.js} +1 -1
  179. package/dist/client/assets/{use-create-virtual-mcp-CGjXwPw8.js → use-create-virtual-mcp-8e0G0AIt.js} +1 -1
  180. package/dist/client/assets/{use-debounced-autosave-BUHEURBq.js → use-debounced-autosave-CcK-r61p.js} +1 -1
  181. package/dist/client/assets/{use-debounced-value-BeMyLBYc.js → use-debounced-value-DrySnq2w.js} +1 -1
  182. package/dist/client/assets/{use-deco-credits-D5rtqq1n.js → use-deco-credits-DUGGIGLB.js} +1 -1
  183. package/dist/client/assets/{use-decopilot-events-DWRj6qcc.js → use-decopilot-events-BqvAjzNa.js} +1 -1
  184. package/dist/client/assets/{use-delete-connection-yLSKAnii.js → use-delete-connection-DnqHYJ_h.js} +1 -1
  185. package/dist/client/assets/{use-deployment-admin-BWW6K4T3.js → use-deployment-admin-BpOS6Ul8.js} +1 -1
  186. package/dist/client/assets/{use-file-configs-BAvypyK8.js → use-file-configs-YdmKqW2l.js} +1 -1
  187. package/dist/client/assets/{use-infinite-scroll-BIAf5Fh9.js → use-infinite-scroll-DfwbHhTI.js} +1 -1
  188. package/dist/client/assets/{use-join-requests-B2LGj5gz.js → use-join-requests-BOjshtJw.js} +1 -1
  189. package/dist/client/assets/{use-mcp-auth-status-Cd2I5T2H.js → use-mcp-auth-status-B8nAyl0t.js} +1 -1
  190. package/dist/client/assets/{use-mcp-client-IZwXliVI.js → use-mcp-client-DS-Iumek.js} +1 -1
  191. package/dist/client/assets/{use-mcp-tools-C-dVsScO.js → use-mcp-tools-CJRlNsyY.js} +1 -1
  192. package/dist/client/assets/{use-members-BSS5c0hA.js → use-members-DCEYl3PR.js} +1 -1
  193. package/dist/client/assets/{use-mobile-CxXhqIbr.js → use-mobile-fbwX4kAG.js} +1 -1
  194. package/dist/client/assets/{use-navigate-to-agent-D3D8YoKk.js → use-navigate-to-agent-C7KYrSj-.js} +1 -1
  195. package/dist/client/assets/{use-org-auth-client-Bryd0uRl.js → use-org-auth-client-esyVKwLs.js} +1 -1
  196. package/dist/client/assets/{use-org-sso-BmhVXjQe.js → use-org-sso-Cs3xzqxl.js} +1 -1
  197. package/dist/client/assets/{use-organization-roles-BVRp49D0.js → use-organization-roles-nKIey3yy.js} +1 -1
  198. package/dist/client/assets/{use-organization-settings-p9u5H1jK.js → use-organization-settings-Bq9KN38r.js} +1 -1
  199. package/dist/client/assets/{use-registry-connections-CHO3AUTB.js → use-registry-connections-Bgdfy6wT.js} +1 -1
  200. package/dist/client/assets/{use-secrets-CY72Zhs8.js → use-secrets-C1h7GHxl.js} +1 -1
  201. package/dist/client/assets/{use-status-sounds-D6reCnN7.js → use-status-sounds-SUGV1OB-.js} +1 -1
  202. package/dist/client/assets/{use-tags-qiHCUmE0.js → use-tags-C89jG-pL.js} +1 -1
  203. package/dist/client/assets/{use-view-mode-Co8qxiZn.js → use-view-mode-DnJONRsz.js} +1 -1
  204. package/dist/client/assets/{use-virtual-mcp-Bq8tww8o.js → use-virtual-mcp-DL5ejvCv.js} +1 -1
  205. package/dist/client/assets/useInfiniteQuery-DDxHB2Lr.js +1 -0
  206. package/dist/client/assets/{useQueries-WKu9G_fa.js → useQueries-DO8LBSh6.js} +1 -1
  207. package/dist/client/assets/{useRouterState-CkHJmRc7.js → useRouterState-CaF2G8aq.js} +1 -1
  208. package/dist/client/assets/useSuspenseInfiniteQuery-D7kxJnFT.js +1 -0
  209. package/dist/client/assets/{users-CQtyQ3fQ.js → users-BCP5dNQZ.js} +1 -1
  210. package/dist/client/assets/{variant-calendar-ZwtOKoCE.js → variant-calendar-BNo95tIK.js} +1 -1
  211. package/dist/client/assets/{view-mode-toggle-DkhCQXVl.js → view-mode-toggle-CmbdYaE9.js} +1 -1
  212. package/dist/client/index.html +2 -2
  213. package/dist/server/cli.js +11 -10
  214. package/dist/server/server.js +1 -1
  215. package/package.json +1 -1
  216. package/dist/client/assets/index-CbTRSuOH.css +0 -1
  217. package/dist/client/assets/project-app-view--oU2_wa8.js +0 -1
  218. package/dist/client/assets/record-editor-DCVvKTqb.js +0 -1
  219. package/dist/client/assets/registry-IV1N7zA2.js +0 -2
  220. package/dist/client/assets/store-registry-BtGRhHas.js +0 -2
  221. package/dist/client/assets/useInfiniteQuery-BPt3rNBF.js +0 -1
  222. package/dist/client/assets/useSuspenseInfiniteQuery-Ddl6Rx80.js +0 -1
@@ -1 +1 @@
1
- import{cx as v,cy as $,cz as W,cA as L,cB as H,cC as D,cD as x,cE as V,cF as q,cG as j,cH as y,cI as N,cJ as B,cK as F,cL as Z}from"./index-DmxDfO3T.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 K(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function Y(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&K(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function Q(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":X(a,i,n);return;case"client_secret_post":ee(a,i,r);return;case"none":te(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function X(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function ee(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function te(e,t){t.set("client_id",e)}async function M(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=N.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:s}=r,o=B[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 H||n instanceof D)return await e.invalidateCredentials?.("all"),await U(e,t);if(n instanceof x)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 q(`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 j)||l instanceof y))throw l}const z=e.state?await e.state():void 0,{authorizationUrl:I,codeVerifier:b}=await ue(c,{metadata:u,clientInformation:d,state:z,redirectUrl:e.redirectUrl,scope:A,resource:f});return await e.saveCodeVerifier(b),await e.redirectToAuthorization(I),"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 v.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"?$.parse(await o.json()):W.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 Z(),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 C(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=Y(r,h);Q(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await M(u);return V.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=C(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=C(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 F.parse(await s.json())}export{pe as U,_e as a,P as b,me as c,T as d,Ue as e};
1
+ import{cx as v,cy as $,cz as W,cA as L,cB as H,cC as D,cD as x,cE as V,cF as q,cG as j,cH as y,cI as N,cJ as B,cK as F,cL as Z}from"./index-BNlN2CQO.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 K(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function Y(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&K(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function Q(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":X(a,i,n);return;case"client_secret_post":ee(a,i,r);return;case"none":te(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function X(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function ee(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function te(e,t){t.set("client_id",e)}async function M(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=N.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:s}=r,o=B[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 H||n instanceof D)return await e.invalidateCredentials?.("all"),await U(e,t);if(n instanceof x)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 q(`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 j)||l instanceof y))throw l}const z=e.state?await e.state():void 0,{authorizationUrl:I,codeVerifier:b}=await ue(c,{metadata:u,clientInformation:d,state:z,redirectUrl:e.redirectUrl,scope:A,resource:f});return await e.saveCodeVerifier(b),await e.redirectToAuthorization(I),"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 v.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"?$.parse(await o.json()):W.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 Z(),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 C(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=Y(r,h);Q(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await M(u);return V.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=C(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=C(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 F.parse(await s.json())}export{pe as U,_e as a,P as b,me as c,T as d,Ue as e};
@@ -1 +1 @@
1
- import{c as g,m as p,j as f}from"./index-DmxDfO3T.js";function w(b){const e=g.c(20),{children:m,visual:r,align:j}=b,d=(j===void 0?"center":j)==="fill",x=d?"min-h-[100dvh] md:min-h-screen":"min-h-screen";let l;e[0]!==x?(l=p("flex w-full",x),e[0]=x,e[1]=l):l=e[1];const h=d?"h-[100dvh] justify-start pt-4 pb-8 md:h-auto":"justify-center py-6";let t;e[2]!==h?(t=p("flex flex-1 flex-col items-center bg-sidebar px-6 md:justify-center md:px-10 md:py-10",h),e[2]=h,e[3]=t):t=e[3];const u=d&&"flex min-h-0 flex-1 flex-col md:block md:flex-none";let s;e[4]!==u?(s=p("w-full max-w-[440px]",u),e[4]=u,e[5]=s):s=e[5];let i;e[6]!==m||e[7]!==s?(i=f.jsx("div",{className:s,children:m}),e[6]=m,e[7]=s,e[8]=i):i=e[8];let n;e[9]!==t||e[10]!==i?(n=f.jsx("section",{className:t,children:i}),e[9]=t,e[10]=i,e[11]=n):n=e[11];let c;e[12]!==r?(c=r??f.jsx("img",{src:"/onboarding-placeholder.png",alt:"",className:"absolute inset-0 h-full w-full object-cover"}),e[12]=r,e[13]=c):c=e[13];let a;e[14]!==c?(a=f.jsx("aside",{className:"relative hidden flex-1 overflow-hidden bg-muted md:flex",children:c}),e[14]=c,e[15]=a):a=e[15];let o;return e[16]!==a||e[17]!==l||e[18]!==n?(o=f.jsxs("main",{className:l,children:[n,a]}),e[16]=a,e[17]=l,e[18]=n,e[19]=o):o=e[19],o}export{w as A};
1
+ import{c as g,m as p,j as f}from"./index-BNlN2CQO.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-DmxDfO3T.js";import{i as u,a as p}from"./mcp-oauth-CsdltbRX.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-BNlN2CQO.js";import{i as u,a as p}from"./mcp-oauth-BxpCef7v.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 G,b as J,r as U,m as W,j as t,B as X}from"./index-DmxDfO3T.js";import{c as Y,d as Z,b as ee,f as te,g as se,e as ie,a as ne,A as oe}from"./alert-dialog-Dd7YAzjK.js";import{D as ae,c as re,b as le,a as ce}from"./dropdown-menu-DPW2D5DY.js";import{s as me}from"./Stars02-C2vCNivb.js";import{a as ue}from"./DotsVertical-BDoKsQjp.js";import{s as de}from"./Trash01-CzAvbEFY.js";import{i as fe}from"./Zap-C4cd2Xko.js";import{u as ge}from"./use-virtual-mcp-Bq8tww8o.js";import{A as xe}from"./agent-icon-BKf3L_af.js";import{u as pe}from"./use-automations-O4dbFZfR.js";function ke(c){const e=G.c(80),{automation:s,showAgent:a,onClick:n}=c,i=J(),{remove:o}=pe(),[l,O]=U.useState(!1),r=ge(a?s.virtual_mcp_id:void 0);let S;e[0]!==s.id||e[1]!==o?(S=()=>{o.mutate(s.id),O(!1)},e[0]=s.id,e[1]=o,e[2]=S):S=e[2];const I=S;let E;e[3]!==n?(E=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=E):E=e[4];const H=E,V=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==V?(u=W("inline-block size-2 rounded-full shrink-0",V),e[5]=V,e[6]=u):u=e[6];const q=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==q?(d=i(q),e[7]=i,e[8]=q,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(xe,{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 F;e[32]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(ae,{asChild:!0,children:t.jsx(X,{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(ue,{size:16})})}),e[32]=F):F=e[32];let $,B;e[33]===Symbol.for("react.memo_cache_sentinel")?($=m=>{m.stopPropagation(),O(!0)},B=t.jsx(de,{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(re,{children:[F,t.jsx(le,{align:"end",children:t.jsxs(ce,{variant:"destructive",onClick:$,children:[B,v]})})]})}),e[37]=v,e[38]=_):_=e[38];let b;e[39]!==H||e[40]!==n||e[41]!==w||e[42]!==_||e[43]!==f||e[44]!==g?(b=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]=b):b=e[45];let A;e[46]!==i?(A=i("automations.automationListRow.deleteTitle"),e[46]=i,e[47]=A):A=e[47];let D;e[48]!==A?(D=t.jsx(Y,{children:A}),e[48]=A,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(Z,{children:N}),e[53]=N,e[54]=R):R=e[54];let y;e[55]!==D||e[56]!==R?(y=t.jsxs(ee,{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(te,{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]!==I||e[65]!==o.isPending||e[66]!==k?(P=t.jsx(se,{onClick:I,disabled:Q,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:k}),e[64]=I,e[65]=o.isPending,e[66]=k,e[67]=P):P=e[67];let T;e[68]!==L||e[69]!==P?(T=t.jsxs(ie,{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(ne,{children:[y,T]}),e[71]=y,e[72]=T,e[73]=z):z=e[73];let M;e[74]!==l||e[75]!==z?(M=t.jsx(oe,{open:l,onOpenChange:O,children:z}),e[74]=l,e[75]=z,e[76]=M):M=e[76];let K;return e[77]!==b||e[78]!==M?(K=t.jsxs(t.Fragment,{children:[b,M]}),e[77]=b,e[78]=M,e[79]=K):K=e[79],K}function he(c){return c.stopPropagation()}function je(c){return c.stopPropagation()}function we(c){const e=G.c(8),{triggerCount:s,nextRunAt:a}=c,n=J();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(me,{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(fe,{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{ke as A};
1
+ import{c as G,b as J,r as U,m as W,j as t,B as X}from"./index-BNlN2CQO.js";import{c as Y,d as Z,b as ee,f as te,g as se,e as ie,a as ne,A as oe}from"./alert-dialog-Tm-9u7IQ.js";import{D as ae,c as re,b as le,a as ce}from"./dropdown-menu-Bn13TEc8.js";import{s as me}from"./Stars02-BCg4mxCh.js";import{a as ue}from"./DotsVertical-DkAzKyI7.js";import{s as de}from"./Trash01-Btg7y4Eg.js";import{i as fe}from"./Zap-5zZGoYSD.js";import{u as ge}from"./use-virtual-mcp-DL5ejvCv.js";import{A as xe}from"./agent-icon-hceGr42J.js";import{u as pe}from"./use-automations-D-ap3QeA.js";function ke(c){const e=G.c(80),{automation:s,showAgent:a,onClick:n}=c,i=J(),{remove:o}=pe(),[l,O]=U.useState(!1),r=ge(a?s.virtual_mcp_id:void 0);let S;e[0]!==s.id||e[1]!==o?(S=()=>{o.mutate(s.id),O(!1)},e[0]=s.id,e[1]=o,e[2]=S):S=e[2];const I=S;let E;e[3]!==n?(E=m=>{m.target===m.currentTarget&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),n())},e[3]=n,e[4]=E):E=e[4];const H=E,V=s.active&&s.trigger_count>0?"bg-success":"bg-muted-foreground/40";let u;e[5]!==V?(u=W("inline-block size-2 rounded-full shrink-0",V),e[5]=V,e[6]=u):u=e[6];const q=s.active&&s.trigger_count>0?"automations.automationListRow.ariaActive":s.active?"automations.automationListRow.ariaNoTriggers":"automations.automationListRow.ariaPaused";let d;e[7]!==i||e[8]!==q?(d=i(q),e[7]=i,e[8]=q,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(xe,{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 F;e[32]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(ae,{asChild:!0,children:t.jsx(X,{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(ue,{size:16})})}),e[32]=F):F=e[32];let $,B;e[33]===Symbol.for("react.memo_cache_sentinel")?($=m=>{m.stopPropagation(),O(!0)},B=t.jsx(de,{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(re,{children:[F,t.jsx(le,{align:"end",children:t.jsxs(ce,{variant:"destructive",onClick:$,children:[B,v]})})]})}),e[37]=v,e[38]=_):_=e[38];let b;e[39]!==H||e[40]!==n||e[41]!==w||e[42]!==_||e[43]!==f||e[44]!==g?(b=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]=b):b=e[45];let A;e[46]!==i?(A=i("automations.automationListRow.deleteTitle"),e[46]=i,e[47]=A):A=e[47];let D;e[48]!==A?(D=t.jsx(Y,{children:A}),e[48]=A,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(Z,{children:N}),e[53]=N,e[54]=R):R=e[54];let y;e[55]!==D||e[56]!==R?(y=t.jsxs(ee,{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(te,{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]!==I||e[65]!==o.isPending||e[66]!==k?(P=t.jsx(se,{onClick:I,disabled:Q,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:k}),e[64]=I,e[65]=o.isPending,e[66]=k,e[67]=P):P=e[67];let T;e[68]!==L||e[69]!==P?(T=t.jsxs(ie,{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(ne,{children:[y,T]}),e[71]=y,e[72]=T,e[73]=z):z=e[73];let M;e[74]!==l||e[75]!==z?(M=t.jsx(oe,{open:l,onOpenChange:O,children:z}),e[74]=l,e[75]=z,e[76]=M):M=e[76];let K;return e[77]!==b||e[78]!==M?(K=t.jsxs(t.Fragment,{children:[b,M]}),e[77]=b,e[78]=M,e[79]=K):K=e[79],K}function he(c){return c.stopPropagation()}function je(c){return c.stopPropagation()}function we(c){const e=G.c(8),{triggerCount:s,nextRunAt:a}=c,n=J();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(me,{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(fe,{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{ke as A};