decocms 2.172.2 → 2.173.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 (278) hide show
  1. package/dist/client/assets/{AlertCircle-ClrGTaOd.js → AlertCircle-BoncS6LP.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-CDH2kHzq.js → AlignLeft-DBFp0-N7.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-DlYdW6Y7.js → ArrowDown-C3BzPPYX.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-DusSg6k7.js → ArrowLeft-BJzvklmo.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BadPbvy3.js → ArrowUp-C6T9wa52.js} +1 -1
  6. package/dist/client/assets/{Check-D47qqsWi.js → Check-D28ZRrsv.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-CM5PTjhy.js → CheckCircle-ItsEMznk.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-DU8levxk.js → CheckDone01-Cc3wOEJd.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-CACpEsSD.js → CheckVerified02-Dvd1EdLV.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-CmFoa-MN.js → ChevronDown-D9EMTJdI.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-BBZtRY0q.js → ChevronLeft-6LF5odkw.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-Ccc_Sjed.js → ChevronRight-6oHy3GR0.js} +1 -1
  13. package/dist/client/assets/{ChevronUp-JcxjaYTK.js → ChevronUp-iKqBRKww.js} +1 -1
  14. package/dist/client/assets/{Clock-DvBllXAe.js → Clock-DKgv7FMl.js} +1 -1
  15. package/dist/client/assets/{Code01-D384qtrJ.js → Code01-D874vQ1j.js} +1 -1
  16. package/dist/client/assets/{Coins01-q-yLaV-s.js → Coins01-CHKCanND.js} +1 -1
  17. package/dist/client/assets/{Container-BgIU6bWo.js → Container-v7Lu1WNT.js} +1 -1
  18. package/dist/client/assets/{Copy01-sKED-vLj.js → Copy01-D3an2EO3.js} +1 -1
  19. package/dist/client/assets/{Dataflow03-D3htYp-N.js → Dataflow03-C1gtqNGI.js} +1 -1
  20. package/dist/client/assets/{DotsHorizontal-azkhUMft.js → DotsHorizontal-BUWy0q6M.js} +1 -1
  21. package/dist/client/assets/{DotsVertical-Dt48o-Bq.js → DotsVertical-teVTiLQ2.js} +1 -1
  22. package/dist/client/assets/{Download01-Dp-HI0LA.js → Download01-DFr_zgIP.js} +1 -1
  23. package/dist/client/assets/{Edit01-C-PQ-7gV.js → Edit01-BIu4og98.js} +1 -1
  24. package/dist/client/assets/{Edit05-CTabXUvX.js → Edit05-hkZ8uhSL.js} +1 -1
  25. package/dist/client/assets/{Eye-BeIr8Vzd.js → Eye-BKxgN9Ci.js} +1 -1
  26. package/dist/client/assets/{EyeOff-Du1k40Nm.js → EyeOff-CAEuyJy8.js} +1 -1
  27. package/dist/client/assets/{File02-Bo9eFHTr.js → File02-Cpr-39PX.js} +1 -1
  28. package/dist/client/assets/{File06-BMW8ao_w.js → File06-9lDkVwq5.js} +1 -1
  29. package/dist/client/assets/{FilterLines-DqaELPn1.js → FilterLines-DBXa2xhp.js} +1 -1
  30. package/dist/client/assets/{Globe01-ISMTzK2m.js → Globe01-Dzq2G0hT.js} +1 -1
  31. package/dist/client/assets/{Globe02-BY9KQM8G.js → Globe02-cnnmW-yP.js} +1 -1
  32. package/dist/client/assets/{Grid01-kGaUg_cc.js → Grid01-B8Hz8XFZ.js} +1 -1
  33. package/dist/client/assets/{Hash02-DDXDI8ry.js → Hash02-CQioUpKU.js} +1 -1
  34. package/dist/client/assets/{Home02-BJ1pwYUW.js → Home02-Dhg6fiem.js} +1 -1
  35. package/dist/client/assets/{Image01-D1cm-3FQ.js → Image01-exfB-slY.js} +1 -1
  36. package/dist/client/assets/{Inbox01-BEwYpwmE.js → Inbox01-Bw2rff6F.js} +1 -1
  37. package/dist/client/assets/{InfoCircle-Cn8apf8U.js → InfoCircle-BzkuJise.js} +1 -1
  38. package/dist/client/assets/{Key01-CEedyU25.js → Key01-echsPc8T.js} +1 -1
  39. package/dist/client/assets/{LayersTwo01-BTT9GgdG.js → LayersTwo01-HSSB0HBk.js} +1 -1
  40. package/dist/client/assets/{LayoutLeft-bKrytFeq.js → LayoutLeft-CsdSAGAc.js} +1 -1
  41. package/dist/client/assets/{Link01-C_y_eRnq.js → Link01-DqBjIV11.js} +1 -1
  42. package/dist/client/assets/{LinkExternal01-Cjuepk2Y.js → LinkExternal01-BiHdSj-G.js} +1 -1
  43. package/dist/client/assets/{List-Bz4PLQWX.js → List-CCSmMits.js} +1 -1
  44. package/dist/client/assets/{Loading01-Ds_yIlBt.js → Loading01-R4lTIOmc.js} +1 -1
  45. package/dist/client/assets/{Lock01-r4p0TJqu.js → Lock01-BtcVHLM1.js} +1 -1
  46. package/dist/client/assets/{Play-Btzdao8L.js → Play-CeCy0kkp.js} +1 -1
  47. package/dist/client/assets/{Plus-Cln26t9k.js → Plus-BPhP6AwU.js} +1 -1
  48. package/dist/client/assets/{RefreshCcw01-B05f0aP-.js → RefreshCcw01-BpP2wWfT.js} +1 -1
  49. package/dist/client/assets/{Save01-BanXz4II.js → Save01-Go0UNRDT.js} +1 -1
  50. package/dist/client/assets/{SearchMd-C32DAy1s.js → SearchMd-DYtqpNhS.js} +1 -1
  51. package/dist/client/assets/{Settings01-C0PXfLqi.js → Settings01-DLXMaJiZ.js} +1 -1
  52. package/dist/client/assets/{Shield01-CCHp_zdi.js → Shield01-BPEMPVyT.js} +1 -1
  53. package/dist/client/assets/{Terminal-DcTm6ji-.js → Terminal-DvdwlySH.js} +1 -1
  54. package/dist/client/assets/{Trash01-DK1y3dZk.js → Trash01-11PM8hCT.js} +1 -1
  55. package/dist/client/assets/{Upload01-D2MbAzFl.js → Upload01-s0dK95gX.js} +1 -1
  56. package/dist/client/assets/{Users03-Ch2G4iRo.js → Users03-Bn5Ina1h.js} +1 -1
  57. package/dist/client/assets/{X-BeNP8bdc.js → X-C1gVOX-K.js} +1 -1
  58. package/dist/client/assets/{XCircle-C4Z1TBLP.js → XCircle-D_WssbjQ.js} +1 -1
  59. package/dist/client/assets/{XClose-ByRUZPAd.js → XClose-CzgfsXpl.js} +1 -1
  60. package/dist/client/assets/{Zap-BdI1rdNQ.js → Zap-rjtLs8AB.js} +1 -1
  61. package/dist/client/assets/{agent-connections-preview-B3lSJXbc.js → agent-connections-preview-B2zSeYmN.js} +1 -1
  62. package/dist/client/assets/{agent-detail-BE2wTwjO.js → agent-detail-C1YSF6Hq.js} +1 -1
  63. package/dist/client/assets/{agents-v7yFskYw.js → agents-DXzQUsKT.js} +1 -1
  64. package/dist/client/assets/{alert-dialog-BzmriYXD.js → alert-dialog-wQYrtq_g.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-Cn7HOage.js → auth-catchall-BZlDikmp.js} +1 -1
  66. package/dist/client/assets/{automation-detail-3dPYUMP4.js → automation-detail-PwcSF1F0.js} +1 -1
  67. package/dist/client/assets/{automations-ByAliss3.js → automations-CTICk2Dp.js} +1 -1
  68. package/dist/client/assets/{avatar-VLsj4w_k.js → avatar-XKo1hvHY.js} +1 -1
  69. package/dist/client/assets/{badge-CQLalkEE.js → badge-BEyO0T03.js} +1 -1
  70. package/dist/client/assets/{binder-BCOcjrHc.js → binder-D-EP4Rws.js} +1 -1
  71. package/dist/client/assets/{breadcrumb-CtHpt1Hj.js → breadcrumb-BSZlBaPP.js} +1 -1
  72. package/dist/client/assets/{card-Dg8bSF1g.js → card-Cq808vu1.js} +1 -1
  73. package/dist/client/assets/{chart-CIIYUfQq.js → chart-DNqGB3ic.js} +1 -1
  74. package/dist/client/assets/{checkbox-5OPx-kaV.js → checkbox-D1_FXNWD.js} +1 -1
  75. package/dist/client/assets/{collapsible-DLZfoTEM.js → collapsible-wDXCk9xP.js} +1 -1
  76. package/dist/client/assets/{collection-detail-Bb3JCZHo.js → collection-detail-CsiVX8xV.js} +1 -1
  77. package/dist/client/assets/{collection-display-button-DV49rNbI.js → collection-display-button-yOA8wYm8.js} +1 -1
  78. package/dist/client/assets/{collection-search-BHtDjvQL.js → collection-search-C0Xdyimh.js} +1 -1
  79. package/dist/client/assets/{collection-tab-C9b9XvN2.js → collection-tab-C4posZLi.js} +1 -1
  80. package/dist/client/assets/{collection-table-wrapper-BgavezLW.js → collection-table-wrapper-BjxWZ4Q4.js} +1 -1
  81. package/dist/client/assets/{collection-tabs-DMmhv_1g.js → collection-tabs-Bdn3rWHw.js} +1 -1
  82. package/dist/client/assets/{command-DDZ63V3H.js → command-BO0v9Sf_.js} +1 -1
  83. package/dist/client/assets/{connect-DVhMOx8A.js → connect-DFz_0Mcc.js} +1 -1
  84. package/dist/client/assets/{connection-card-B8Ku_xnQ.js → connection-card-Iw1tldfy.js} +1 -1
  85. package/dist/client/assets/{connection-detail-CRo734HG.js → connection-detail-BX76SiPq.js} +1 -1
  86. package/dist/client/assets/{connection-status-CHkDe4eX.js → connection-status-BPCtNzAX.js} +1 -1
  87. package/dist/client/assets/{connections-CcoPNKjM.js → connections-Dzct8UZO.js} +1 -1
  88. package/dist/client/assets/{constants-m_OMiYqO.js → constants-BJq0sg2N.js} +1 -1
  89. package/dist/client/assets/constants-CYoMn_-y.js +1 -0
  90. package/dist/client/assets/{context-CcNCVCjQ.js → context-30W0NRWC.js} +1 -1
  91. package/dist/client/assets/{create-organization-dialog-DI-d1926.js → create-organization-dialog-qEzwR9y0.js} +1 -1
  92. package/dist/client/assets/{create-project-dialog-DCdoTB_M.js → create-project-dialog-CL4W5SGR.js} +1 -1
  93. package/dist/client/assets/{danger-BxsYXYff.js → danger-C5I4O3c5.js} +1 -1
  94. package/dist/client/assets/{danger-zone-CtWw91XF.js → danger-zone-BRN9nPUd.js} +1 -1
  95. package/dist/client/assets/{dependencies-Bqe9XWvV.js → dependencies-BMgtEL4Y.js} +1 -1
  96. package/dist/client/assets/{dialog-CYxmdCAY.js → dialog-DtQJmLgU.js} +1 -1
  97. package/dist/client/assets/{dropdown-menu-B2-TC2ID.js → dropdown-menu-Dh14MX71.js} +1 -1
  98. package/dist/client/assets/{dynamic-plugin-layout-B179FmFO.js → dynamic-plugin-layout-BgreQ4An.js} +1 -1
  99. package/dist/client/assets/{editable-task-title-CboTctFV.js → editable-task-title-aeTfEW-D.js} +1 -1
  100. package/dist/client/assets/{empty-state-QAJJHSPh.js → empty-state-ChTznqc5.js} +1 -1
  101. package/dist/client/assets/{empty-state-DyAFrOdp.js → empty-state-DehivavO.js} +1 -1
  102. package/dist/client/assets/{env-vars-editor-C3IuaF3S.js → env-vars-editor-DuCm8QB_.js} +1 -1
  103. package/dist/client/assets/{extract-connection-data-Cir4onx8.js → extract-connection-data-is00SRVb.js} +1 -1
  104. package/dist/client/assets/{file-browser-B3Xjj9S3.js → file-browser-BGVmEICO.js} +2 -2
  105. package/dist/client/assets/{form-BD_Oipqm.js → form-AwZCFVNc.js} +1 -1
  106. package/dist/client/assets/{general-CYb7i3K7.js → general-FbFo9Qid.js} +1 -1
  107. package/dist/client/assets/{grid-view-sbwQx6r5.js → grid-view-BqKnb9Io.js} +1 -1
  108. package/dist/client/assets/{home-B_gsL057.js → home-B--5foK8.js} +1 -1
  109. package/dist/client/assets/{icon-picker-BRNi8Awo.js → icon-picker-DIH_A1bl.js} +1 -1
  110. package/dist/client/assets/{index-Bs1-6MBJ.js → index--v47KjFS.js} +3 -3
  111. package/dist/client/assets/{index-Brmwx3QP.js → index-23ha-EiC.js} +1 -1
  112. package/dist/client/assets/{index-BCllOtlC.js → index-B67pQy0t.js} +1 -1
  113. package/dist/client/assets/{index-Dnjtu_kb.js → index-C1rNFCdf.js} +1 -1
  114. package/dist/client/assets/{index-DB_UqrMB.js → index-CRBE07YF.js} +1 -1
  115. package/dist/client/assets/{index-CvQBntDd.js → index-CUQZow0Z.js} +1 -1
  116. package/dist/client/assets/{index-CqNVEhLV.js → index-DLQk7Ahb.js} +1 -1
  117. package/dist/client/assets/{index-Cta5OAsO.css → index-DmrxmdhV.css} +1 -1
  118. package/dist/client/assets/{index-Cy5NxMqm.js → index-DnEhhRJ4.js} +1 -1
  119. package/dist/client/assets/{index-BDDekZH-.js → index-DrRz1QdK.js} +1 -1
  120. package/dist/client/assets/{index-DJ850qZq.js → index-oFBA5kHq.js} +1 -1
  121. package/dist/client/assets/{infiniteQueryObserver-BCxJZiPx.js → infiniteQueryObserver-Bv6Q8uee.js} +1 -1
  122. package/dist/client/assets/{input-oo9dNDtJ.js → input-B43ueF_6.js} +1 -1
  123. package/dist/client/assets/{integration-icon-BxDprz4-.js → integration-icon-jSV9a6uH.js} +1 -1
  124. package/dist/client/assets/{label-Ow7deF1V.js → label-Bp2-MH_v.js} +1 -1
  125. package/dist/client/assets/{layout-D-gNHDgT.js → layout-CHhBOues.js} +1 -1
  126. package/dist/client/assets/{layout-0-CpWJ4q.js → layout-ChV6hmvw.js} +1 -1
  127. package/dist/client/assets/{login-DMiDY1PH.js → login-DujtqNSP.js} +1 -1
  128. package/dist/client/assets/{logo-upload-DGm5nNR_.js → logo-upload-CFiX7Ocr.js} +1 -1
  129. package/dist/client/assets/{markdown-CC_Pgtlw.js → markdown-CHm0rLGk.js} +1 -1
  130. package/dist/client/assets/{mcp-app-renderer-eiwTuNJm.js → mcp-app-renderer-C9PcNeIF.js} +1 -1
  131. package/dist/client/assets/{mcp-server-card-ZHSZs_kf.js → mcp-server-card-BVdsLKTg.js} +1 -1
  132. package/dist/client/assets/{mcp-server-detail-DjKWYtHQ.js → mcp-server-detail-hWzz0p7M.js} +2 -2
  133. package/dist/client/assets/{members-CGtMoiYA.js → members-Dw7k8W_H.js} +1 -1
  134. package/dist/client/assets/{monaco-editor-DFgX2f59.js → monaco-editor-O-cJeAC7.js} +1 -1
  135. package/dist/client/assets/{monitoring-CQa1Ybic.js → monitoring-C_GmEx18.js} +1 -1
  136. package/dist/client/assets/{monitoring-dashboard-edit-CtdirIJ7.js → monitoring-dashboard-edit-Db8dSzpX.js} +1 -1
  137. package/dist/client/assets/{monitoring-dashboard-view-BzmmgyM6.js → monitoring-dashboard-view-DncdutYs.js} +1 -1
  138. package/dist/client/assets/{oauth-callback-BBrt_ccP.js → oauth-callback-D-e5bR0R.js} +1 -1
  139. package/dist/client/assets/{oauth-callback-ai-provider-B0mK5DTc.js → oauth-callback-ai-provider-DfwJ0j8l.js} +1 -1
  140. package/dist/client/assets/{org-ai-providers-2oudOR3a.js → org-ai-providers-BB_Kk_yW.js} +1 -1
  141. package/dist/client/assets/{page-BpUENCQ3.js → page-BHcE-IsW.js} +1 -1
  142. package/dist/client/assets/{page-Cm8DLHRx.js → page-DIduNonD.js} +1 -1
  143. package/dist/client/assets/{plugin-empty-state-D4HrModi.js → plugin-empty-state-CGg9Zobz.js} +1 -1
  144. package/dist/client/assets/{plugin-empty-state-D4jNxBX5.js → plugin-empty-state-DF5DjKQn.js} +1 -1
  145. package/dist/client/assets/{plugin-header-Bd2q22iA.js → plugin-header-CwOisLLl.js} +1 -1
  146. package/dist/client/assets/{plugin-header-hexKC2z7.js → plugin-header-oOJ_SB7i.js} +1 -1
  147. package/dist/client/assets/plugins-D61XA0e1.js +1 -0
  148. package/dist/client/assets/{popover-BQwql0No.js → popover-CRGn9IqN.js} +1 -1
  149. package/dist/client/assets/{project-app-view-CWpHCZKH.js → project-app-view-C6bFj2jv.js} +1 -1
  150. package/dist/client/assets/{project-layout-CZw982Go.js → project-layout-xuVkDUgj.js} +1 -1
  151. package/dist/client/assets/{project-plugins-C6LqmbaN.js → project-plugins-BtJagofo.js} +1 -1
  152. package/dist/client/assets/{projects-list-n35yk1kw.js → projects-list-rUiZxv6z.js} +1 -1
  153. package/dist/client/assets/{readme-viewer-C4a15ScG.js → readme-viewer-CgvhJVTC.js} +1 -1
  154. package/dist/client/assets/{registry-layout-BXxLm88S.js → registry-layout-BYOMcr5d.js} +1 -1
  155. package/dist/client/assets/{registry-utils-8JbjeIg2.js → registry-utils-DRlaL1TA.js} +1 -1
  156. package/dist/client/assets/{reports-layout-DDT7TPDK.js → reports-layout-BZCASsb2.js} +1 -1
  157. package/dist/client/assets/{reset-password-C8mz9-pn.js → reset-password-ptCGMW1Q.js} +1 -1
  158. package/dist/client/assets/{resizable-BEGLyBcY.js → resizable-BipYny0A.js} +1 -1
  159. package/dist/client/assets/{save-actions-tJMaBMCr.js → save-actions-6CE1ypPt.js} +1 -1
  160. package/dist/client/assets/{scroll-area-zXI7Mnta.js → scroll-area-CvC7l56a.js} +1 -1
  161. package/dist/client/assets/{select-DE-s_uro.js → select-1qCYmo_Z.js} +1 -1
  162. package/dist/client/assets/{select-virtual-mcp-3UuH5RYu.js → select-virtual-mcp-t9uZXeiE.js} +1 -1
  163. package/dist/client/assets/shell-layout-DS537tct.js +3 -0
  164. package/dist/client/assets/{sidebar-settings-BleCcXqd.js → sidebar-settings-Gn9QDCS3.js} +1 -1
  165. package/dist/client/assets/{skeleton-FXjthcRm.js → skeleton-Vs0ahWNW.js} +1 -1
  166. package/dist/client/assets/{spinner-LkGFTHYs.js → spinner-DY37bQ6b.js} +1 -1
  167. package/dist/client/assets/{store-invite-DY166hBP.js → store-invite-CZ47dQJt.js} +1 -1
  168. package/dist/client/assets/{switch-CmbZgNTQ.js → switch-ChOmwFAU.js} +1 -1
  169. package/dist/client/assets/{table-DQFo79Pa.js → table-Ds5hcAfV.js} +1 -1
  170. package/dist/client/assets/{tabs-VJ4cZZ6Y.js → tabs-Dpw2g7MT.js} +1 -1
  171. package/dist/client/assets/{task-status-Cp67IvSc.js → task-status-BEYFiOcg.js} +21 -21
  172. package/dist/client/assets/tasks-CdG9QSFK.js +1 -0
  173. package/dist/client/assets/{tasks-panel-BcHTmaRp.js → tasks-panel-B9E0VzsT.js} +1 -1
  174. package/dist/client/assets/{textarea-_fKX6fkc.js → textarea-C-fRxR1X.js} +1 -1
  175. package/dist/client/assets/{time-range-picker-CwXbYm21.js → time-range-picker-DLfN0bYQ.js} +1 -1
  176. package/dist/client/assets/{toggle-group-CG-mSzeH.js → toggle-group-BwEgndSj.js} +1 -1
  177. package/dist/client/assets/{tools-list-BqjA8cpd.js → tools-list-DzGfMYwE.js} +1 -1
  178. package/dist/client/assets/{tooltip-DvMIj9Vl.js → tooltip-B2CdQ2bN.js} +1 -1
  179. package/dist/client/assets/{topbar-portal-8N6OCP_q.js → topbar-portal-C72-23Dd.js} +1 -1
  180. package/dist/client/assets/{types-co6EnWx4.js → types-CixwvVqB.js} +1 -1
  181. package/dist/client/assets/{use-automations-CmbPeGrO.js → use-automations-D8qaeage.js} +1 -1
  182. package/dist/client/assets/{use-binding-BDoLJ3NJ.js → use-binding-C6wyTPOH.js} +1 -1
  183. package/dist/client/assets/{use-collections-BWCPG3qv.js → use-collections-CobBqkkk.js} +1 -1
  184. package/dist/client/assets/{use-connection-DNxPUHEC.js → use-connection-CUBEGKKv.js} +1 -1
  185. package/dist/client/assets/{use-copy-B6Vhad-4.js → use-copy-CCW7WupY.js} +1 -1
  186. package/dist/client/assets/{use-create-virtual-mcp-CsD8b5oZ.js → use-create-virtual-mcp-44rNe9r4.js} +1 -1
  187. package/dist/client/assets/{use-install-from-registry-rVBF9_Ya.js → use-install-from-registry-B6Xy7L7O.js} +1 -1
  188. package/dist/client/assets/{use-list-state-CxptnZc8.js → use-list-state-DmSf1SxJ.js} +1 -1
  189. package/dist/client/assets/{use-llm-Cx0n4D2y.js → use-llm-CgNJSzil.js} +1 -1
  190. package/dist/client/assets/{use-local-storage-BO16s_mB.js → use-local-storage-B5rcvGp1.js} +1 -1
  191. package/dist/client/assets/{use-mcp-prompts-El8F9wfP.js → use-mcp-prompts-CWXp4Vto.js} +1 -1
  192. package/dist/client/assets/{use-mcp-resources-CQM51ISF.js → use-mcp-resources-CdviUNt8.js} +1 -1
  193. package/dist/client/assets/{use-mcp-tools-CGAtxBQr.js → use-mcp-tools-DhfUlmve.js} +1 -1
  194. package/dist/client/assets/{use-members-C5Abj3Nl.js → use-members-D-zu9EQ4.js} +1 -1
  195. package/dist/client/assets/{use-mobile-CMPROSym.js → use-mobile-DfdfcC2T.js} +1 -1
  196. package/dist/client/assets/{use-project-D1HuJpb-.js → use-project-FOWgS7Lo.js} +1 -1
  197. package/dist/client/assets/{use-view-mode-DtcqFKqx.js → use-view-mode-bhKhl_no.js} +1 -1
  198. package/dist/client/assets/{use-virtual-mcp-HJi07IrH.js → use-virtual-mcp-D_pRY4Y5.js} +1 -1
  199. package/dist/client/assets/useInfiniteQuery-VDF7Rw4W.js +1 -0
  200. package/dist/client/assets/{useMutation-C7wTU_P1.js → useMutation-BK2VTSKG.js} +1 -1
  201. package/dist/client/assets/useQuery-WdhzaCOu.js +1 -0
  202. package/dist/client/assets/useSuspenseInfiniteQuery-B49n2iIj.js +1 -0
  203. package/dist/client/assets/{user-CL49YHal.js → user-D7ZGT9n7.js} +1 -1
  204. package/dist/client/assets/{workflow-se3doO0e.js → workflow-BlmkM3G6.js} +1 -1
  205. package/dist/client/index.html +2 -2
  206. package/dist/server/node_modules/pg/README.md +95 -0
  207. package/dist/server/node_modules/pg/esm/index.mjs +20 -0
  208. package/dist/server/node_modules/pg/lib/client.js +743 -0
  209. package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
  210. package/dist/server/node_modules/pg/lib/connection.js +221 -0
  211. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
  212. package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
  213. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
  214. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
  215. package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
  216. package/dist/server/node_modules/pg/lib/defaults.js +91 -0
  217. package/dist/server/node_modules/pg/lib/index.js +73 -0
  218. package/dist/server/node_modules/pg/lib/native/client.js +323 -0
  219. package/dist/server/node_modules/pg/lib/native/index.js +2 -0
  220. package/dist/server/node_modules/pg/lib/native/query.js +165 -0
  221. package/dist/server/node_modules/pg/lib/query.js +252 -0
  222. package/dist/server/node_modules/pg/lib/result.js +109 -0
  223. package/dist/server/node_modules/pg/lib/stream.js +83 -0
  224. package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
  225. package/dist/server/node_modules/pg/lib/utils.js +217 -0
  226. package/dist/server/node_modules/pg/package.json +76 -0
  227. package/dist/server/node_modules/postgres-date/index.js +116 -0
  228. package/dist/server/node_modules/{postgres-interval → postgres-date}/package.json +8 -11
  229. package/dist/server/node_modules/postgres-date/readme.md +49 -0
  230. package/package.json +1 -1
  231. package/dist/client/assets/constants-BRaJPJag.js +0 -1
  232. package/dist/client/assets/plugins-BfhzI-KM.js +0 -1
  233. package/dist/client/assets/shell-layout-DwAcy6I2.js +0 -3
  234. package/dist/client/assets/tasks-D4G9J1eF.js +0 -1
  235. package/dist/client/assets/useInfiniteQuery-C05JDjpl.js +0 -1
  236. package/dist/client/assets/useQuery-wPyHm29j.js +0 -1
  237. package/dist/client/assets/useSuspenseInfiniteQuery-9yayOuFY.js +0 -1
  238. package/dist/server/node_modules/async-exit-hook/CHANGELOG.md +0 -62
  239. package/dist/server/node_modules/async-exit-hook/index.js +0 -171
  240. package/dist/server/node_modules/async-exit-hook/license +0 -21
  241. package/dist/server/node_modules/async-exit-hook/package.json +0 -66
  242. package/dist/server/node_modules/async-exit-hook/readme.md +0 -118
  243. package/dist/server/node_modules/pg-cloudflare/README.md +0 -112
  244. package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +0 -2
  245. package/dist/server/node_modules/pg-cloudflare/dist/empty.js +0 -6
  246. package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +0 -1
  247. package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +0 -31
  248. package/dist/server/node_modules/pg-cloudflare/dist/index.js +0 -152
  249. package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +0 -1
  250. package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +0 -3
  251. package/dist/server/node_modules/pg-cloudflare/package.json +0 -39
  252. package/dist/server/node_modules/pg-cloudflare/src/empty.ts +0 -3
  253. package/dist/server/node_modules/pg-cloudflare/src/index.ts +0 -166
  254. package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +0 -25
  255. package/dist/server/node_modules/pg-connection-string/LICENSE +0 -21
  256. package/dist/server/node_modules/pg-connection-string/README.md +0 -105
  257. package/dist/server/node_modules/pg-connection-string/esm/index.mjs +0 -8
  258. package/dist/server/node_modules/pg-connection-string/index.d.ts +0 -36
  259. package/dist/server/node_modules/pg-connection-string/index.js +0 -231
  260. package/dist/server/node_modules/pg-connection-string/package.json +0 -52
  261. package/dist/server/node_modules/pg-types/.travis.yml +0 -7
  262. package/dist/server/node_modules/pg-types/Makefile +0 -14
  263. package/dist/server/node_modules/pg-types/README.md +0 -75
  264. package/dist/server/node_modules/pg-types/index.d.ts +0 -137
  265. package/dist/server/node_modules/pg-types/index.js +0 -47
  266. package/dist/server/node_modules/pg-types/index.test-d.ts +0 -21
  267. package/dist/server/node_modules/pg-types/lib/arrayParser.js +0 -11
  268. package/dist/server/node_modules/pg-types/lib/binaryParsers.js +0 -257
  269. package/dist/server/node_modules/pg-types/lib/builtins.js +0 -73
  270. package/dist/server/node_modules/pg-types/lib/textParsers.js +0 -215
  271. package/dist/server/node_modules/pg-types/package.json +0 -42
  272. package/dist/server/node_modules/pg-types/test/index.js +0 -24
  273. package/dist/server/node_modules/pg-types/test/types.js +0 -597
  274. package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
  275. package/dist/server/node_modules/postgres-interval/index.js +0 -125
  276. package/dist/server/node_modules/postgres-interval/readme.md +0 -48
  277. /package/dist/server/node_modules/{pg-cloudflare → pg}/LICENSE +0 -0
  278. /package/dist/server/node_modules/{postgres-interval → postgres-date}/license +0 -0
@@ -1,171 +0,0 @@
1
- 'use strict';
2
-
3
- const hooks = [];
4
- const errHooks = [];
5
- let called = false;
6
- let waitingFor = 0;
7
- let asyncTimeoutMs = 10000;
8
-
9
- const events = {};
10
- const filters = {};
11
-
12
- function exit(exit, code, err) {
13
- // Helper functions
14
- let doExitDone = false;
15
-
16
- function doExit() {
17
- if (doExitDone) {
18
- return;
19
- }
20
- doExitDone = true;
21
-
22
- if (exit === true) {
23
- // All handlers should be called even if the exit-hook handler was registered first
24
- process.nextTick(process.exit.bind(null, code));
25
- }
26
- }
27
-
28
- // Async hook callback, decrements waiting counter
29
- function stepTowardExit() {
30
- process.nextTick(() => {
31
- if (--waitingFor === 0) {
32
- doExit();
33
- }
34
- });
35
- }
36
-
37
- // Runs a single hook
38
- function runHook(syncArgCount, err, hook) {
39
- // Cannot perform async hooks in `exit` event
40
- if (exit && hook.length > syncArgCount) {
41
- // Hook is async, expects a finish callback
42
- waitingFor++;
43
-
44
- if (err) {
45
- // Pass error, calling uncaught exception handlers
46
- return hook(err, stepTowardExit);
47
- }
48
- return hook(stepTowardExit);
49
- }
50
-
51
- // Hook is synchronous
52
- if (err) {
53
- // Pass error, calling uncaught exception handlers
54
- return hook(err);
55
- }
56
- return hook();
57
- }
58
-
59
- // Only execute hooks once
60
- if (called) {
61
- return;
62
- }
63
-
64
- called = true;
65
-
66
- // Run hooks
67
- if (err) {
68
- // Uncaught exception, run error hooks
69
- errHooks.map(runHook.bind(null, 1, err));
70
- }
71
- hooks.map(runHook.bind(null, 0, null));
72
-
73
- if (waitingFor) {
74
- // Force exit after x ms (10000 by default), even if async hooks in progress
75
- setTimeout(() => {
76
- doExit();
77
- }, asyncTimeoutMs);
78
- } else {
79
- // No asynchronous hooks, exit immediately
80
- doExit();
81
- }
82
- }
83
-
84
- // Add a hook
85
- function add(hook) {
86
- hooks.push(hook);
87
-
88
- if (hooks.length === 1) {
89
- add.hookEvent('exit');
90
- add.hookEvent('beforeExit', 0);
91
- add.hookEvent('SIGHUP', 128 + 1);
92
- add.hookEvent('SIGINT', 128 + 2);
93
- add.hookEvent('SIGTERM', 128 + 15);
94
- add.hookEvent('SIGBREAK', 128 + 21);
95
-
96
- // PM2 Cluster shutdown message. Caught to support async handlers with pm2, needed because
97
- // explicitly calling process.exit() doesn't trigger the beforeExit event, and the exit
98
- // event cannot support async handlers, since the event loop is never called after it.
99
- add.hookEvent('message', 0, function (msg) { // eslint-disable-line prefer-arrow-callback
100
- if (msg !== 'shutdown') {
101
- return true;
102
- }
103
- });
104
- }
105
- }
106
-
107
- // New signal / event to hook
108
- add.hookEvent = function (event, code, filter) {
109
- events[event] = function () {
110
- const eventFilters = filters[event];
111
- for (let i = 0; i < eventFilters.length; i++) {
112
- if (eventFilters[i].apply(this, arguments)) {
113
- return;
114
- }
115
- }
116
- exit(code !== undefined && code !== null, code);
117
- };
118
-
119
- if (!filters[event]) {
120
- filters[event] = [];
121
- }
122
-
123
- if (filter) {
124
- filters[event].push(filter);
125
- }
126
- process.on(event, events[event]);
127
- };
128
-
129
- // Unhook signal / event
130
- add.unhookEvent = function (event) {
131
- process.removeListener(event, events[event]);
132
- delete events[event];
133
- delete filters[event];
134
- };
135
-
136
- // List hooked events
137
- add.hookedEvents = function () {
138
- const ret = [];
139
- for (const name in events) {
140
- if ({}.hasOwnProperty.call(events, name)) {
141
- ret.push(name);
142
- }
143
- }
144
- return ret;
145
- };
146
-
147
- // Add an uncaught exception handler
148
- add.uncaughtExceptionHandler = function (hook) {
149
- errHooks.push(hook);
150
-
151
- if (errHooks.length === 1) {
152
- process.once('uncaughtException', exit.bind(null, true, 1));
153
- }
154
- };
155
-
156
- // Add an unhandled rejection handler
157
- add.unhandledRejectionHandler = function (hook) {
158
- errHooks.push(hook);
159
-
160
- if (errHooks.length === 1) {
161
- process.once('unhandledRejection', exit.bind(null, true, 1));
162
- }
163
- };
164
-
165
- // Configure async force exit timeout
166
- add.forceExitTimeout = function (ms) {
167
- asyncTimeoutMs = ms;
168
- };
169
-
170
- // Export
171
- module.exports = add;
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,66 +0,0 @@
1
- {
2
- "name": "async-exit-hook",
3
- "version": "2.0.1",
4
- "description": "Run some code when the process exits (supports async hooks and pm2 clustering)",
5
- "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/tapppi/async-exit-hook.git"
9
- },
10
- "author": {
11
- "name": "Tapani Moilanen",
12
- "email": "moilanen.tapani@gmail.com",
13
- "url": "https://github.com/tapppi"
14
- },
15
- "contributors": [
16
- {
17
- "name": "Sindre Sorhus",
18
- "email": "sindresorhus@gmail.com",
19
- "url": "http://sindresorhus.com"
20
- }
21
- ],
22
- "engines": {
23
- "node": ">=0.12.0"
24
- },
25
- "scripts": {
26
- "test": "xo && nyc ava",
27
- "release": "standard-version"
28
- },
29
- "files": [
30
- "index.js"
31
- ],
32
- "keywords": [
33
- "exit",
34
- "quit",
35
- "process",
36
- "hook",
37
- "graceful",
38
- "handler",
39
- "shutdown",
40
- "sigterm",
41
- "sigint",
42
- "sighup",
43
- "pm2",
44
- "cluster",
45
- "child",
46
- "reload",
47
- "async",
48
- "terminate",
49
- "kill",
50
- "stop",
51
- "event"
52
- ],
53
- "devDependencies": {
54
- "ava": "^0.21.0",
55
- "coveralls": "^2.11.14",
56
- "nyc": "^10.3.2",
57
- "standard-version": "^4.2.0",
58
- "xo": "^0.18.2"
59
- },
60
- "ava": {
61
- "files": [
62
- "test/*.js",
63
- "!tests/cases/*"
64
- ]
65
- }
66
- }
@@ -1,118 +0,0 @@
1
- # async-exit-hook
2
- [![Build Status](https://api.travis-ci.org/Tapppi/async-exit-hook.svg)](https://travis-ci.org/Tapppi/async-exit-hook)
3
- [![Coverage Status](https://coveralls.io/repos/github/Tapppi/async-exit-hook/badge.svg?branch=master)](https://coveralls.io/github/Tapppi/async-exit-hook?branch=master)
4
-
5
- > Run some code when the process exits
6
-
7
- The `process.on('exit')` event doesn't catch all the ways a process can exit. This module catches:
8
-
9
- * process SIGINT, SIGTERM and SIGHUP, SIGBREAK signals
10
- * process beforeExit and exit events
11
- * PM2 clustering process shutdown message ([PM2 graceful reload](http://pm2.keymetrics.io/docs/usage/cluster-mode/#graceful-reload))
12
-
13
- Useful for cleaning up. You can also include async handlers, and add custom events to hook and exit on.
14
-
15
- Forked and pretty much rewritten from [exit-hook](https://npmjs.com/package/exit-hook).
16
-
17
-
18
- ## Install
19
-
20
- ```
21
- $ npm install --save async-exit-hook
22
- ```
23
-
24
- ## Usage
25
-
26
- ### Considerations and warning
27
- #### On `process.exit()` and asynchronous code
28
- **If you use asynchronous exit hooks, DO NOT use `process.exit()` to exit.
29
- The `exit` event DOES NOT support asynchronous code.**
30
- >['beforeExit' is not emitted for conditions causing explicit termination, such as process.exit()]
31
- (https://nodejs.org/api/process.html#process_event_beforeexit)
32
-
33
- #### Windows and `process.kill(signal)`
34
- On windows `process.kill(signal)` immediately kills the process, and does not fire signal events,
35
- and as such, cannot be used to gracefully exit. See *Clustering and child processes* for a
36
- workaround when killing child processes. I'm planning to support gracefully exiting
37
- with async support on windows soon.
38
-
39
- ### Clustering and child processes
40
- If you use custom clustering / child processes, you can gracefully shutdown your child process
41
- by sending a shutdown message (`childProc.send('shutdown')`).
42
-
43
- ### Example
44
- ```js
45
- const exitHook = require('async-exit-hook');
46
-
47
- exitHook(() => {
48
- console.log('exiting');
49
- });
50
-
51
- // you can add multiple hooks, even across files
52
- exitHook(() => {
53
- console.log('exiting 2');
54
- });
55
-
56
- // you can add async hooks by accepting a callback
57
- exitHook(callback => {
58
- setTimeout(() => {
59
- console.log('exiting 3');
60
- callback();
61
- }, 1000);
62
- });
63
-
64
- // You can hook uncaught errors with uncaughtExceptionHandler(), consequently adding
65
- // async support to uncaught errors (normally uncaught errors result in a synchronous exit).
66
- exitHook.uncaughtExceptionHandler(err => {
67
- console.error(err);
68
- });
69
-
70
- // You can hook unhandled rejections with unhandledRejectionHandler()
71
- exitHook.unhandledRejectionHandler(err => {
72
- console.error(err);
73
- });
74
-
75
- // You can add multiple uncaught error handlers
76
- // Add the second parameter (callback) to indicate async hooks
77
- exitHook.uncaughtExceptionHandler((err, callback) => {
78
- sendErrorToCloudOrWhatever(err) // Returns promise
79
- .then(() => {
80
- console.log('Sent err to cloud');
81
- });
82
- .catch(sendError => {
83
- console.error('Error sending to cloud: ', err.stack));
84
- })
85
- .then(() => callback);
86
- });
87
- });
88
-
89
- // Add exit hooks for a signal or custom message:
90
-
91
- // Custom signal
92
- // Arguments are `signal, exitCode` (SIGBREAK is already handled, this is an example)
93
- exitHook.hookEvent('SIGBREAK', 21);
94
-
95
- // process event: `message` with a filter
96
- // filter gets all arguments passed to *handler*: `process.on(message, *handler*)`
97
- // Exits on process event `message` with msg `customShutdownMessage` only
98
- exitHook.hookEvent('message', 0, msg => msg !== 'customShutdownMessage');
99
-
100
- // All async hooks will work with uncaught errors when you have specified an uncaughtExceptionHandler
101
- throw new Error('awesome');
102
-
103
- //=> // Sync uncaughtExcpetion hooks called and retun
104
- //=> '[Error: awesome]'
105
- //=> // Sync hooks called and retun
106
- //=> 'exiting'
107
- //=> 'exiting 2'
108
- //=> // Async uncaughtException hooks return
109
- //=> 'Sent error to cloud'
110
- //=> // Sync uncaughtException hooks return
111
- //=> 'exiting 3'
112
- ```
113
-
114
-
115
- ## License
116
-
117
- MIT © Tapani Moilanen
118
- MIT © [Sindre Sorhus](http://sindresorhus.com)
@@ -1,112 +0,0 @@
1
- # pg-cloudflare
2
-
3
- `pg-cloudflare` makes it easier to take an existing package that relies on `tls` and `net`, and make it work in environments where only `connect()` is supported, such as Cloudflare Workers.
4
-
5
- `pg-cloudflare` wraps `connect()`, the [TCP Socket API](https://github.com/wintercg/proposal-sockets-api) proposed within WinterCG, and implemented in [Cloudflare Workers](https://developers.cloudflare.com/workers/runtime-apis/tcp-sockets/), and exposes an interface with methods similar to what the `net` and `tls` modules in Node.js expose. (ex: `net.connect(path[, options][, callback])`). This minimizes the number of changes needed in order to make an existing package work across JavaScript runtimes.
6
-
7
- ## Installation
8
-
9
- ```
10
- npm i --save-dev pg-cloudflare
11
- ```
12
-
13
- The package uses conditional exports to support bundlers that don't know about
14
- `cloudflare:sockets`, so the consumer code by default imports an empty file. To
15
- enable the package, resolve to the `cloudflare` condition in your bundler's
16
- config. For example:
17
-
18
- - `webpack.config.js`
19
- ```js
20
- export default {
21
- ...,
22
- resolve: { conditionNames: [..., "workerd"] },
23
- plugins: [
24
- // ignore cloudflare:sockets imports
25
- new webpack.IgnorePlugin({
26
- resourceRegExp: /^cloudflare:sockets$/,
27
- }),
28
- ],
29
- }
30
- ```
31
- - `vite.config.js`
32
-
33
- > [!NOTE]
34
- > If you are using the [Cloudflare Vite plugin](https://www.npmjs.com/package/@cloudflare/vite-plugin) then the following configuration is not necessary.
35
-
36
- ```js
37
- export default defineConfig({
38
- ...,
39
- resolve: {
40
- conditions: [..., "workerd"],
41
- },
42
- build: {
43
- ...,
44
- // don't try to bundle cloudflare:sockets
45
- rollupOptions: {
46
- external: [..., 'cloudflare:sockets'],
47
- },
48
- },
49
- })
50
- ```
51
-
52
- - `rollup.config.js`
53
- ```js
54
- export default defineConfig({
55
- ...,
56
- plugins: [..., nodeResolve({ exportConditions: [..., 'workerd'] })],
57
- // don't try to bundle cloudflare:sockets
58
- external: [..., 'cloudflare:sockets'],
59
- })
60
- ```
61
- - `esbuild.config.js`
62
- ```js
63
- await esbuild.build({
64
- ...,
65
- conditions: [..., 'workerd'],
66
- })
67
- ```
68
-
69
- The concrete examples can be found in `packages/pg-bundler-test`.
70
-
71
- ## How to use conditionally, in non-Node.js environments
72
-
73
- As implemented in `pg` [here](https://github.com/brianc/node-postgres/commit/07553428e9c0eacf761a5d4541a3300ff7859578#diff-34588ad868ebcb232660aba7ee6a99d1e02f4bc93f73497d2688c3f074e60533R5-R13), a typical use case might look as follows, where in a Node.js environment the `net` module is used, while in a non-Node.js environment, where `net` is unavailable, `pg-cloudflare` is used instead, providing an equivalent interface:
74
-
75
- ```js
76
- module.exports.getStream = function getStream(ssl = false) {
77
- const net = require('net')
78
- if (typeof net.Socket === 'function') {
79
- return net.Socket()
80
- }
81
- const { CloudflareSocket } = require('pg-cloudflare')
82
- return new CloudflareSocket(ssl)
83
- }
84
- ```
85
-
86
- ## Node.js implementation of the Socket API proposal
87
-
88
- If you're looking for a way to rely on `connect()` as the interface you use to interact with raw sockets, but need this interface to be available in a Node.js environment, [`@arrowood.dev/socket`](https://github.com/Ethan-Arrowood/socket) provides a Node.js implementation of the Socket API.
89
-
90
- ### license
91
-
92
- The MIT License (MIT)
93
-
94
- Copyright (c) 2023 Brian M. Carlson
95
-
96
- Permission is hereby granted, free of charge, to any person obtaining a copy
97
- of this software and associated documentation files (the "Software"), to deal
98
- in the Software without restriction, including without limitation the rights
99
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
100
- copies of the Software, and to permit persons to whom the Software is
101
- furnished to do so, subject to the following conditions:
102
-
103
- The above copyright notice and this permission notice shall be included in
104
- all copies or substantial portions of the Software.
105
-
106
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
107
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
108
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
109
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
110
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
111
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
112
- THE SOFTWARE.
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // This is an empty module that is served up when outside of a workerd environment
4
- // See the `exports` field in package.json
5
- exports.default = {};
6
- //# sourceMappingURL=empty.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"empty.js","sourceRoot":"","sources":["../src/empty.ts"],"names":[],"mappings":";;AAAA,kFAAkF;AAClF,0CAA0C;AAC1C,kBAAe,EAAE,CAAA"}
@@ -1,31 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- import { TlsOptions } from 'cloudflare:sockets';
5
- import { EventEmitter } from 'events';
6
- /**
7
- * Wrapper around the Cloudflare built-in socket that can be used by the `Connection`.
8
- */
9
- export declare class CloudflareSocket extends EventEmitter {
10
- readonly ssl: boolean;
11
- writable: boolean;
12
- destroyed: boolean;
13
- private _upgrading;
14
- private _upgraded;
15
- private _cfSocket;
16
- private _cfWriter;
17
- private _cfReader;
18
- constructor(ssl: boolean);
19
- setNoDelay(): this;
20
- setKeepAlive(): this;
21
- ref(): this;
22
- unref(): this;
23
- connect(port: number, host: string, connectListener?: (...args: unknown[]) => void): Promise<this | undefined>;
24
- _listen(): Promise<void>;
25
- _listenOnce(): Promise<void>;
26
- write(data: Uint8Array | string, encoding?: BufferEncoding, callback?: (...args: unknown[]) => void): true | void;
27
- end(data?: Buffer, encoding?: BufferEncoding, callback?: (...args: unknown[]) => void): this;
28
- destroy(reason: string): this;
29
- startTls(options: TlsOptions): void;
30
- _addClosedHandler(): void;
31
- }
@@ -1,152 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CloudflareSocket = void 0;
4
- const events_1 = require("events");
5
- /**
6
- * Wrapper around the Cloudflare built-in socket that can be used by the `Connection`.
7
- */
8
- class CloudflareSocket extends events_1.EventEmitter {
9
- constructor(ssl) {
10
- super();
11
- this.ssl = ssl;
12
- this.writable = false;
13
- this.destroyed = false;
14
- this._upgrading = false;
15
- this._upgraded = false;
16
- this._cfSocket = null;
17
- this._cfWriter = null;
18
- this._cfReader = null;
19
- }
20
- setNoDelay() {
21
- return this;
22
- }
23
- setKeepAlive() {
24
- return this;
25
- }
26
- ref() {
27
- return this;
28
- }
29
- unref() {
30
- return this;
31
- }
32
- async connect(port, host, connectListener) {
33
- try {
34
- log('connecting');
35
- if (connectListener)
36
- this.once('connect', connectListener);
37
- const options = this.ssl ? { secureTransport: 'starttls' } : {};
38
- const mod = await import('cloudflare:sockets');
39
- const connect = mod.connect;
40
- this._cfSocket = connect(`${host}:${port}`, options);
41
- this._cfWriter = this._cfSocket.writable.getWriter();
42
- this._addClosedHandler();
43
- this._cfReader = this._cfSocket.readable.getReader();
44
- if (this.ssl) {
45
- this._listenOnce().catch((e) => this.emit('error', e));
46
- }
47
- else {
48
- this._listen().catch((e) => this.emit('error', e));
49
- }
50
- await this._cfWriter.ready;
51
- log('socket ready');
52
- this.writable = true;
53
- this.emit('connect');
54
- return this;
55
- }
56
- catch (e) {
57
- this.emit('error', e);
58
- }
59
- }
60
- async _listen() {
61
- // eslint-disable-next-line no-constant-condition
62
- while (true) {
63
- log('awaiting receive from CF socket');
64
- const { done, value } = await this._cfReader.read();
65
- log('CF socket received:', done, value);
66
- if (done) {
67
- log('done');
68
- break;
69
- }
70
- this.emit('data', Buffer.from(value));
71
- }
72
- }
73
- async _listenOnce() {
74
- log('awaiting first receive from CF socket');
75
- const { done, value } = await this._cfReader.read();
76
- log('First CF socket received:', done, value);
77
- this.emit('data', Buffer.from(value));
78
- }
79
- write(data, encoding = 'utf8', callback = () => { }) {
80
- if (data.length === 0)
81
- return callback();
82
- if (typeof data === 'string')
83
- data = Buffer.from(data, encoding);
84
- log('sending data direct:', data);
85
- this._cfWriter.write(data).then(() => {
86
- log('data sent');
87
- callback();
88
- }, (err) => {
89
- log('send error', err);
90
- callback(err);
91
- });
92
- return true;
93
- }
94
- end(data = Buffer.alloc(0), encoding = 'utf8', callback = () => { }) {
95
- log('ending CF socket');
96
- this.write(data, encoding, (err) => {
97
- this._cfSocket.close();
98
- if (callback)
99
- callback(err);
100
- });
101
- return this;
102
- }
103
- destroy(reason) {
104
- log('destroying CF socket', reason);
105
- this.destroyed = true;
106
- return this.end();
107
- }
108
- startTls(options) {
109
- if (this._upgraded) {
110
- // Don't try to upgrade again.
111
- this.emit('error', 'Cannot call `startTls()` more than once on a socket');
112
- return;
113
- }
114
- this._cfWriter.releaseLock();
115
- this._cfReader.releaseLock();
116
- this._upgrading = true;
117
- this._cfSocket = this._cfSocket.startTls(options);
118
- this._cfWriter = this._cfSocket.writable.getWriter();
119
- this._cfReader = this._cfSocket.readable.getReader();
120
- this._addClosedHandler();
121
- this._listen().catch((e) => this.emit('error', e));
122
- }
123
- _addClosedHandler() {
124
- this._cfSocket.closed.then(() => {
125
- if (!this._upgrading) {
126
- log('CF socket closed');
127
- this._cfSocket = null;
128
- this.emit('close');
129
- }
130
- else {
131
- this._upgrading = false;
132
- this._upgraded = true;
133
- }
134
- }).catch((e) => this.emit('error', e));
135
- }
136
- }
137
- exports.CloudflareSocket = CloudflareSocket;
138
- const debug = false;
139
- function dump(data) {
140
- if (data instanceof Uint8Array || data instanceof ArrayBuffer) {
141
- const hex = Buffer.from(data).toString('hex');
142
- const str = new TextDecoder().decode(data);
143
- return `\n>>> STR: "${str.replace(/\n/g, '\\n')}"\n>>> HEX: ${hex}\n`;
144
- }
145
- else {
146
- return data;
147
- }
148
- }
149
- function log(...args) {
150
- debug && console.log(...args.map(dump));
151
- }
152
- //# sourceMappingURL=index.js.map