@smthrs/platform-bun 0.0.0-stage → 1.0.0-rc.4

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 (384) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/LICENSE +21 -0
  3. package/README.md +113 -2
  4. package/dist/cjs/BunFileSystem.d.ts +44 -0
  5. package/dist/cjs/BunFileSystem.d.ts.map +1 -0
  6. package/dist/cjs/BunFileSystem.js +38 -0
  7. package/dist/cjs/BunFileSystem.js.map +7 -0
  8. package/dist/cjs/BunHost.d.ts +205 -0
  9. package/dist/cjs/BunHost.d.ts.map +1 -0
  10. package/dist/cjs/BunHost.js +147 -0
  11. package/dist/cjs/BunHost.js.map +7 -0
  12. package/dist/cjs/index.d.ts +26 -0
  13. package/dist/cjs/index.d.ts.map +1 -0
  14. package/dist/cjs/index.js +37 -0
  15. package/dist/cjs/index.js.map +7 -0
  16. package/dist/cjs/package.json +1 -0
  17. package/dist/esm/BunFileSystem.d.ts +44 -0
  18. package/dist/esm/BunFileSystem.d.ts.map +1 -0
  19. package/dist/esm/BunFileSystem.js +35 -0
  20. package/dist/esm/BunFileSystem.js.map +1 -0
  21. package/dist/esm/BunHost.d.ts +205 -0
  22. package/dist/esm/BunHost.d.ts.map +1 -0
  23. package/dist/esm/BunHost.js +242 -0
  24. package/dist/esm/BunHost.js.map +1 -0
  25. package/dist/esm/index.d.ts +26 -0
  26. package/dist/esm/index.d.ts.map +1 -0
  27. package/dist/esm/index.js +26 -0
  28. package/dist/esm/index.js.map +1 -0
  29. package/dist/vendor/adapters.json +2707 -0
  30. package/dist/vendor/bun/BunChildProcessSpawner.d.ts +7 -0
  31. package/dist/vendor/bun/BunChildProcessSpawner.js +14 -0
  32. package/dist/vendor/bun/BunClusterHttp.d.ts +83 -0
  33. package/dist/vendor/bun/BunClusterHttp.js +39 -0
  34. package/dist/vendor/bun/BunClusterSocket.d.ts +65 -0
  35. package/dist/vendor/bun/BunClusterSocket.js +22 -0
  36. package/dist/vendor/bun/BunCrypto.d.ts +10 -0
  37. package/dist/vendor/bun/BunCrypto.js +8 -0
  38. package/dist/vendor/bun/BunFileSystem.d.ts +10 -0
  39. package/dist/vendor/bun/BunFileSystem.js +9 -0
  40. package/dist/vendor/bun/BunHttpClient.d.ts +9 -0
  41. package/dist/vendor/bun/BunHttpClient.js +1 -0
  42. package/dist/vendor/bun/BunHttpPlatform.d.ts +10 -0
  43. package/dist/vendor/bun/BunHttpPlatform.js +11 -0
  44. package/dist/vendor/bun/BunHttpServer.d.ts +142 -0
  45. package/dist/vendor/bun/BunHttpServer.js +38 -0
  46. package/dist/vendor/bun/BunHttpServerRequest.d.ts +18 -0
  47. package/dist/vendor/bun/BunHttpServerRequest.js +7 -0
  48. package/dist/vendor/bun/BunMultipart.d.ts +31 -0
  49. package/dist/vendor/bun/BunMultipart.js +12 -0
  50. package/dist/vendor/bun/BunPath.d.ts +24 -0
  51. package/dist/vendor/bun/BunPath.js +12 -0
  52. package/dist/vendor/bun/BunRedis.d.ts +49 -0
  53. package/dist/vendor/bun/BunRedis.js +11 -0
  54. package/dist/vendor/bun/BunRuntime.d.ts +85 -0
  55. package/dist/vendor/bun/BunRuntime.js +8 -0
  56. package/dist/vendor/bun/BunServices.d.ts +34 -0
  57. package/dist/vendor/bun/BunServices.js +23 -0
  58. package/dist/vendor/bun/BunSink.d.ts +8 -0
  59. package/dist/vendor/bun/BunSink.js +12 -0
  60. package/dist/vendor/bun/BunSocket.d.ts +40 -0
  61. package/dist/vendor/bun/BunSocket.js +29 -0
  62. package/dist/vendor/bun/BunSocketServer.d.ts +8 -0
  63. package/dist/vendor/bun/BunSocketServer.js +21 -0
  64. package/dist/vendor/bun/BunStdio.d.ts +11 -0
  65. package/dist/vendor/bun/BunStdio.js +10 -0
  66. package/dist/vendor/bun/BunStream.d.ts +19 -0
  67. package/dist/vendor/bun/BunStream.js +30 -0
  68. package/dist/vendor/bun/BunTerminal.d.ts +21 -0
  69. package/dist/vendor/bun/BunTerminal.js +10 -0
  70. package/dist/vendor/bun/BunWorker.d.ts +20 -0
  71. package/dist/vendor/bun/BunWorker.js +9 -0
  72. package/dist/vendor/bun/BunWorkerRunner.d.ts +12 -0
  73. package/dist/vendor/bun/BunWorkerRunner.js +7 -0
  74. package/dist/vendor/bun/LICENSE +21 -0
  75. package/dist/vendor/bun/index.d.ts +92 -0
  76. package/dist/vendor/bun/index.js +107 -0
  77. package/dist/vendor/chunk-2KZ2IFIZ.js +71 -0
  78. package/dist/vendor/chunk-2Y7WC4KU.js +109 -0
  79. package/dist/vendor/chunk-3GR5VZ2M.js +118 -0
  80. package/dist/vendor/chunk-3QW2PNUY.js +7 -0
  81. package/dist/vendor/chunk-42QKY6T6.js +40 -0
  82. package/dist/vendor/chunk-54RLBMTZ.js +61 -0
  83. package/dist/vendor/chunk-5U3MC37H.js +63 -0
  84. package/dist/vendor/chunk-5ZMHBXIK.js +55 -0
  85. package/dist/vendor/chunk-64Q2B7BA.js +34 -0
  86. package/dist/vendor/chunk-6CRG556Y.js +15 -0
  87. package/dist/vendor/chunk-6HWHSZL3.js +34 -0
  88. package/dist/vendor/chunk-6J25AYCI.js +93 -0
  89. package/dist/vendor/chunk-6ME2W7TF.js +28 -0
  90. package/dist/vendor/chunk-6TZ7LQAC.js +18 -0
  91. package/dist/vendor/chunk-B3FZ67QU.js +59 -0
  92. package/dist/vendor/chunk-BBLQEPNJ.js +22 -0
  93. package/dist/vendor/chunk-BKTBUBQY.js +437 -0
  94. package/dist/vendor/chunk-CIB6JB2Y.js +63 -0
  95. package/dist/vendor/chunk-DS7GF46S.js +34 -0
  96. package/dist/vendor/chunk-DVOAHXPG.js +104 -0
  97. package/dist/vendor/chunk-DWSHTSVX.js +229 -0
  98. package/dist/vendor/chunk-EGBNVEEW.js +14 -0
  99. package/dist/vendor/chunk-EHDTBBPL.js +45 -0
  100. package/dist/vendor/chunk-EZWY45HP.js +18 -0
  101. package/dist/vendor/chunk-F7VENFF4.js +507 -0
  102. package/dist/vendor/chunk-GXCHI7BM.js +131 -0
  103. package/dist/vendor/chunk-HX4AXITW.js +65 -0
  104. package/dist/vendor/chunk-IIJ52ZU6.js +20 -0
  105. package/dist/vendor/chunk-IR7WG7SA.js +564 -0
  106. package/dist/vendor/chunk-J7A4CZDO.js +92 -0
  107. package/dist/vendor/chunk-JG5TTWPT.js +85 -0
  108. package/dist/vendor/chunk-JJ24ARBQ.js +394 -0
  109. package/dist/vendor/chunk-JUVIPOOR.js +18 -0
  110. package/dist/vendor/chunk-KCLEGTEN.js +86 -0
  111. package/dist/vendor/chunk-KOZMM5PZ.js +426 -0
  112. package/dist/vendor/chunk-KUUXSID7.js +18 -0
  113. package/dist/vendor/chunk-KWOY4JDR.js +398 -0
  114. package/dist/vendor/chunk-LEUPYT3Q.js +36 -0
  115. package/dist/vendor/chunk-LJVI2DIF.js +57 -0
  116. package/dist/vendor/chunk-M32LDTW7.js +18 -0
  117. package/dist/vendor/chunk-M7CLUILA.js +0 -0
  118. package/dist/vendor/chunk-MBSKBQ5D.js +21 -0
  119. package/dist/vendor/chunk-MLKGABMK.js +9 -0
  120. package/dist/vendor/chunk-MMEGG3WE.js +96 -0
  121. package/dist/vendor/chunk-MSWDMTAF.js +18 -0
  122. package/dist/vendor/chunk-NBVRTDTV.js +129 -0
  123. package/dist/vendor/chunk-NBYGGMAE.js +70 -0
  124. package/dist/vendor/chunk-NLMT7VBU.js +18 -0
  125. package/dist/vendor/chunk-OXNGN5H7.js +81 -0
  126. package/dist/vendor/chunk-RBKBXDZW.js +18 -0
  127. package/dist/vendor/chunk-RNBBYWS2.js +26 -0
  128. package/dist/vendor/chunk-SFHVFMSR.js +18 -0
  129. package/dist/vendor/chunk-TFIKFFSC.js +26 -0
  130. package/dist/vendor/chunk-TXKLEBBL.js +143 -0
  131. package/dist/vendor/chunk-U6OWSZD2.js +62 -0
  132. package/dist/vendor/chunk-UFH5UUZK.js +48 -0
  133. package/dist/vendor/chunk-UJAEC4DS.js +20 -0
  134. package/dist/vendor/chunk-VZBDV3TV.js +18 -0
  135. package/dist/vendor/chunk-WGN4AMSX.js +0 -0
  136. package/dist/vendor/chunk-WIYD3THC.js +31 -0
  137. package/dist/vendor/chunk-XDKNKFBW.js +22 -0
  138. package/dist/vendor/chunk-XH4U3JSV.js +249 -0
  139. package/dist/vendor/chunk-XWPHMSXO.js +28 -0
  140. package/dist/vendor/chunk-Y35ZAO5U.js +53 -0
  141. package/dist/vendor/chunk-ZJMRMY57.js +0 -0
  142. package/dist/vendor/cjs/bun/BunChildProcessSpawner.d.ts +7 -0
  143. package/dist/vendor/cjs/bun/BunChildProcessSpawner.js +1 -0
  144. package/dist/vendor/cjs/bun/BunClusterHttp.d.ts +83 -0
  145. package/dist/vendor/cjs/bun/BunClusterHttp.js +1 -0
  146. package/dist/vendor/cjs/bun/BunClusterSocket.d.ts +65 -0
  147. package/dist/vendor/cjs/bun/BunClusterSocket.js +1 -0
  148. package/dist/vendor/cjs/bun/BunCrypto.d.ts +10 -0
  149. package/dist/vendor/cjs/bun/BunCrypto.js +1 -0
  150. package/dist/vendor/cjs/bun/BunFileSystem.d.ts +10 -0
  151. package/dist/vendor/cjs/bun/BunFileSystem.js +1 -0
  152. package/dist/vendor/cjs/bun/BunHttpClient.d.ts +9 -0
  153. package/dist/vendor/cjs/bun/BunHttpClient.js +1 -0
  154. package/dist/vendor/cjs/bun/BunHttpPlatform.d.ts +10 -0
  155. package/dist/vendor/cjs/bun/BunHttpPlatform.js +1 -0
  156. package/dist/vendor/cjs/bun/BunHttpServer.d.ts +142 -0
  157. package/dist/vendor/cjs/bun/BunHttpServer.js +1 -0
  158. package/dist/vendor/cjs/bun/BunHttpServerRequest.d.ts +18 -0
  159. package/dist/vendor/cjs/bun/BunHttpServerRequest.js +1 -0
  160. package/dist/vendor/cjs/bun/BunMultipart.d.ts +31 -0
  161. package/dist/vendor/cjs/bun/BunMultipart.js +1 -0
  162. package/dist/vendor/cjs/bun/BunPath.d.ts +24 -0
  163. package/dist/vendor/cjs/bun/BunPath.js +1 -0
  164. package/dist/vendor/cjs/bun/BunRedis.d.ts +49 -0
  165. package/dist/vendor/cjs/bun/BunRedis.js +1 -0
  166. package/dist/vendor/cjs/bun/BunRuntime.d.ts +85 -0
  167. package/dist/vendor/cjs/bun/BunRuntime.js +1 -0
  168. package/dist/vendor/cjs/bun/BunServices.d.ts +34 -0
  169. package/dist/vendor/cjs/bun/BunServices.js +1 -0
  170. package/dist/vendor/cjs/bun/BunSink.d.ts +8 -0
  171. package/dist/vendor/cjs/bun/BunSink.js +1 -0
  172. package/dist/vendor/cjs/bun/BunSocket.d.ts +40 -0
  173. package/dist/vendor/cjs/bun/BunSocket.js +1 -0
  174. package/dist/vendor/cjs/bun/BunSocketServer.d.ts +8 -0
  175. package/dist/vendor/cjs/bun/BunSocketServer.js +1 -0
  176. package/dist/vendor/cjs/bun/BunStdio.d.ts +11 -0
  177. package/dist/vendor/cjs/bun/BunStdio.js +1 -0
  178. package/dist/vendor/cjs/bun/BunStream.d.ts +19 -0
  179. package/dist/vendor/cjs/bun/BunStream.js +1 -0
  180. package/dist/vendor/cjs/bun/BunTerminal.d.ts +21 -0
  181. package/dist/vendor/cjs/bun/BunTerminal.js +1 -0
  182. package/dist/vendor/cjs/bun/BunWorker.d.ts +20 -0
  183. package/dist/vendor/cjs/bun/BunWorker.js +1 -0
  184. package/dist/vendor/cjs/bun/BunWorkerRunner.d.ts +12 -0
  185. package/dist/vendor/cjs/bun/BunWorkerRunner.js +1 -0
  186. package/dist/vendor/cjs/bun/index.d.ts +92 -0
  187. package/dist/vendor/cjs/bun/index.js +1 -0
  188. package/dist/vendor/cjs/node/NodeChildProcessSpawner.d.ts +7 -0
  189. package/dist/vendor/cjs/node/NodeChildProcessSpawner.js +1 -0
  190. package/dist/vendor/cjs/node/NodeClusterHttp.d.ts +63 -0
  191. package/dist/vendor/cjs/node/NodeClusterHttp.js +1 -0
  192. package/dist/vendor/cjs/node/NodeClusterSocket.d.ts +79 -0
  193. package/dist/vendor/cjs/node/NodeClusterSocket.js +1 -0
  194. package/dist/vendor/cjs/node/NodeCrypto.d.ts +10 -0
  195. package/dist/vendor/cjs/node/NodeCrypto.js +1 -0
  196. package/dist/vendor/cjs/node/NodeFileSystem.d.ts +10 -0
  197. package/dist/vendor/cjs/node/NodeFileSystem.js +1 -0
  198. package/dist/vendor/cjs/node/NodeHttpClient.d.ts +179 -0
  199. package/dist/vendor/cjs/node/NodeHttpClient.js +1 -0
  200. package/dist/vendor/cjs/node/NodeHttpIncomingMessage.d.ts +62 -0
  201. package/dist/vendor/cjs/node/NodeHttpIncomingMessage.js +1 -0
  202. package/dist/vendor/cjs/node/NodeHttpPlatform.d.ts +36 -0
  203. package/dist/vendor/cjs/node/NodeHttpPlatform.js +1 -0
  204. package/dist/vendor/cjs/node/NodeHttpServer.d.ts +120 -0
  205. package/dist/vendor/cjs/node/NodeHttpServer.js +1 -0
  206. package/dist/vendor/cjs/node/NodeHttpServerRequest.d.ts +29 -0
  207. package/dist/vendor/cjs/node/NodeHttpServerRequest.js +1 -0
  208. package/dist/vendor/cjs/node/NodeMultipart.d.ts +46 -0
  209. package/dist/vendor/cjs/node/NodeMultipart.js +1 -0
  210. package/dist/vendor/cjs/node/NodeMultipartParser.d.ts +97 -0
  211. package/dist/vendor/cjs/node/NodeMultipartParser.js +1 -0
  212. package/dist/vendor/cjs/node/NodePath.d.ts +27 -0
  213. package/dist/vendor/cjs/node/NodePath.js +1 -0
  214. package/dist/vendor/cjs/node/NodeRedis.d.ts +74 -0
  215. package/dist/vendor/cjs/node/NodeRedis.js +1 -0
  216. package/dist/vendor/cjs/node/NodeRuntime.d.ts +85 -0
  217. package/dist/vendor/cjs/node/NodeRuntime.js +1 -0
  218. package/dist/vendor/cjs/node/NodeServices.d.ts +34 -0
  219. package/dist/vendor/cjs/node/NodeServices.js +1 -0
  220. package/dist/vendor/cjs/node/NodeSink.d.ts +8 -0
  221. package/dist/vendor/cjs/node/NodeSink.js +1 -0
  222. package/dist/vendor/cjs/node/NodeSocket.d.ts +38 -0
  223. package/dist/vendor/cjs/node/NodeSocket.js +1 -0
  224. package/dist/vendor/cjs/node/NodeSocketServer.d.ts +8 -0
  225. package/dist/vendor/cjs/node/NodeSocketServer.js +1 -0
  226. package/dist/vendor/cjs/node/NodeStdio.d.ts +11 -0
  227. package/dist/vendor/cjs/node/NodeStdio.js +1 -0
  228. package/dist/vendor/cjs/node/NodeStream.d.ts +8 -0
  229. package/dist/vendor/cjs/node/NodeStream.js +1 -0
  230. package/dist/vendor/cjs/node/NodeTerminal.d.ts +21 -0
  231. package/dist/vendor/cjs/node/NodeTerminal.js +1 -0
  232. package/dist/vendor/cjs/node/NodeWorker.d.ts +22 -0
  233. package/dist/vendor/cjs/node/NodeWorker.js +1 -0
  234. package/dist/vendor/cjs/node/NodeWorkerRunner.d.ts +12 -0
  235. package/dist/vendor/cjs/node/NodeWorkerRunner.js +1 -0
  236. package/dist/vendor/cjs/node/Undici.d.ts +28 -0
  237. package/dist/vendor/cjs/node/Undici.js +1 -0
  238. package/dist/vendor/cjs/node/index.d.ts +100 -0
  239. package/dist/vendor/cjs/node/index.js +1 -0
  240. package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.d.ts +57 -0
  241. package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.js +1 -0
  242. package/dist/vendor/cjs/node-shared/NodeClusterSocket.d.ts +22 -0
  243. package/dist/vendor/cjs/node-shared/NodeClusterSocket.js +1 -0
  244. package/dist/vendor/cjs/node-shared/NodeCrypto.d.ts +27 -0
  245. package/dist/vendor/cjs/node-shared/NodeCrypto.js +1 -0
  246. package/dist/vendor/cjs/node-shared/NodeFileSystem.d.ts +11 -0
  247. package/dist/vendor/cjs/node-shared/NodeFileSystem.js +1 -0
  248. package/dist/vendor/cjs/node-shared/NodeHttpCompression.d.ts +36 -0
  249. package/dist/vendor/cjs/node-shared/NodeHttpCompression.js +1 -0
  250. package/dist/vendor/cjs/node-shared/NodePath.d.ts +27 -0
  251. package/dist/vendor/cjs/node-shared/NodePath.js +1 -0
  252. package/dist/vendor/cjs/node-shared/NodeRuntime.d.ts +47 -0
  253. package/dist/vendor/cjs/node-shared/NodeRuntime.js +1 -0
  254. package/dist/vendor/cjs/node-shared/NodeSink.d.ts +69 -0
  255. package/dist/vendor/cjs/node-shared/NodeSink.js +1 -0
  256. package/dist/vendor/cjs/node-shared/NodeSocket.d.ts +134 -0
  257. package/dist/vendor/cjs/node-shared/NodeSocket.js +1 -0
  258. package/dist/vendor/cjs/node-shared/NodeSocketServer.d.ts +80 -0
  259. package/dist/vendor/cjs/node-shared/NodeSocketServer.js +1 -0
  260. package/dist/vendor/cjs/node-shared/NodeStdio.d.ts +12 -0
  261. package/dist/vendor/cjs/node-shared/NodeStdio.js +1 -0
  262. package/dist/vendor/cjs/node-shared/NodeStream.d.ts +179 -0
  263. package/dist/vendor/cjs/node-shared/NodeStream.js +1 -0
  264. package/dist/vendor/cjs/node-shared/NodeTerminal.d.ts +22 -0
  265. package/dist/vendor/cjs/node-shared/NodeTerminal.js +1 -0
  266. package/dist/vendor/cjs/node-shared/index.d.ts +56 -0
  267. package/dist/vendor/cjs/node-shared/index.js +1 -0
  268. package/dist/vendor/cjs/node-shared/internal/nodeChildProcessSpawner.d.ts +4 -0
  269. package/dist/vendor/cjs/node-shared/internal/nodeChildProcessSpawner.js +1 -0
  270. package/dist/vendor/cjs/node-shared/internal/utils.d.ts +2 -0
  271. package/dist/vendor/cjs/node-shared/internal/utils.js +1 -0
  272. package/dist/vendor/cjs/package.json +1 -0
  273. package/dist/vendor/cjs/platform-bun.d.ts +92 -0
  274. package/dist/vendor/cjs/platform-bun.js +1 -0
  275. package/dist/vendor/cjs/platform-node-shared.d.ts +56 -0
  276. package/dist/vendor/cjs/platform-node-shared.js +1 -0
  277. package/dist/vendor/cjs/platform-node.d.ts +100 -0
  278. package/dist/vendor/cjs/platform-node.js +1 -0
  279. package/dist/vendor/node/LICENSE +21 -0
  280. package/dist/vendor/node/NodeChildProcessSpawner.d.ts +7 -0
  281. package/dist/vendor/node/NodeChildProcessSpawner.js +14 -0
  282. package/dist/vendor/node/NodeClusterHttp.d.ts +63 -0
  283. package/dist/vendor/node/NodeClusterHttp.js +43 -0
  284. package/dist/vendor/node/NodeClusterSocket.d.ts +79 -0
  285. package/dist/vendor/node/NodeClusterSocket.js +30 -0
  286. package/dist/vendor/node/NodeCrypto.d.ts +10 -0
  287. package/dist/vendor/node/NodeCrypto.js +8 -0
  288. package/dist/vendor/node/NodeFileSystem.d.ts +10 -0
  289. package/dist/vendor/node/NodeFileSystem.js +9 -0
  290. package/dist/vendor/node/NodeHttpClient.d.ts +179 -0
  291. package/dist/vendor/node/NodeHttpClient.js +46 -0
  292. package/dist/vendor/node/NodeHttpIncomingMessage.d.ts +62 -0
  293. package/dist/vendor/node/NodeHttpIncomingMessage.js +10 -0
  294. package/dist/vendor/node/NodeHttpPlatform.d.ts +36 -0
  295. package/dist/vendor/node/NodeHttpPlatform.js +16 -0
  296. package/dist/vendor/node/NodeHttpServer.d.ts +120 -0
  297. package/dist/vendor/node/NodeHttpServer.js +46 -0
  298. package/dist/vendor/node/NodeHttpServerRequest.d.ts +29 -0
  299. package/dist/vendor/node/NodeHttpServerRequest.js +9 -0
  300. package/dist/vendor/node/NodeMultipart.d.ts +46 -0
  301. package/dist/vendor/node/NodeMultipart.js +15 -0
  302. package/dist/vendor/node/NodeMultipartParser.d.ts +97 -0
  303. package/dist/vendor/node/NodeMultipartParser.js +11 -0
  304. package/dist/vendor/node/NodePath.d.ts +27 -0
  305. package/dist/vendor/node/NodePath.js +12 -0
  306. package/dist/vendor/node/NodeRedis.d.ts +74 -0
  307. package/dist/vendor/node/NodeRedis.js +11 -0
  308. package/dist/vendor/node/NodeRuntime.d.ts +85 -0
  309. package/dist/vendor/node/NodeRuntime.js +8 -0
  310. package/dist/vendor/node/NodeServices.d.ts +34 -0
  311. package/dist/vendor/node/NodeServices.js +23 -0
  312. package/dist/vendor/node/NodeSink.d.ts +8 -0
  313. package/dist/vendor/node/NodeSink.js +12 -0
  314. package/dist/vendor/node/NodeSocket.d.ts +38 -0
  315. package/dist/vendor/node/NodeSocket.js +31 -0
  316. package/dist/vendor/node/NodeSocketServer.d.ts +8 -0
  317. package/dist/vendor/node/NodeSocketServer.js +21 -0
  318. package/dist/vendor/node/NodeStdio.d.ts +11 -0
  319. package/dist/vendor/node/NodeStdio.js +10 -0
  320. package/dist/vendor/node/NodeStream.d.ts +8 -0
  321. package/dist/vendor/node/NodeStream.js +27 -0
  322. package/dist/vendor/node/NodeTerminal.d.ts +21 -0
  323. package/dist/vendor/node/NodeTerminal.js +10 -0
  324. package/dist/vendor/node/NodeWorker.d.ts +22 -0
  325. package/dist/vendor/node/NodeWorker.js +9 -0
  326. package/dist/vendor/node/NodeWorkerRunner.d.ts +12 -0
  327. package/dist/vendor/node/NodeWorkerRunner.js +7 -0
  328. package/dist/vendor/node/Undici.d.ts +28 -0
  329. package/dist/vendor/node/Undici.js +9 -0
  330. package/dist/vendor/node/index.d.ts +100 -0
  331. package/dist/vendor/node/index.js +115 -0
  332. package/dist/vendor/node-shared/LICENSE +21 -0
  333. package/dist/vendor/node-shared/NodeChildProcessSpawner.d.ts +57 -0
  334. package/dist/vendor/node-shared/NodeChildProcessSpawner.js +13 -0
  335. package/dist/vendor/node-shared/NodeClusterSocket.d.ts +22 -0
  336. package/dist/vendor/node-shared/NodeClusterSocket.js +11 -0
  337. package/dist/vendor/node-shared/NodeCrypto.d.ts +27 -0
  338. package/dist/vendor/node-shared/NodeCrypto.js +9 -0
  339. package/dist/vendor/node-shared/NodeFileSystem.d.ts +11 -0
  340. package/dist/vendor/node-shared/NodeFileSystem.js +8 -0
  341. package/dist/vendor/node-shared/NodeHttpCompression.d.ts +36 -0
  342. package/dist/vendor/node-shared/NodeHttpCompression.js +13 -0
  343. package/dist/vendor/node-shared/NodePath.d.ts +27 -0
  344. package/dist/vendor/node-shared/NodePath.js +11 -0
  345. package/dist/vendor/node-shared/NodeRuntime.d.ts +47 -0
  346. package/dist/vendor/node-shared/NodeRuntime.js +7 -0
  347. package/dist/vendor/node-shared/NodeSink.d.ts +69 -0
  348. package/dist/vendor/node-shared/NodeSink.js +11 -0
  349. package/dist/vendor/node-shared/NodeSocket.d.ts +134 -0
  350. package/dist/vendor/node-shared/NodeSocket.js +23 -0
  351. package/dist/vendor/node-shared/NodeSocketServer.d.ts +80 -0
  352. package/dist/vendor/node-shared/NodeSocketServer.js +20 -0
  353. package/dist/vendor/node-shared/NodeStdio.d.ts +12 -0
  354. package/dist/vendor/node-shared/NodeStdio.js +9 -0
  355. package/dist/vendor/node-shared/NodeStream.d.ts +179 -0
  356. package/dist/vendor/node-shared/NodeStream.js +26 -0
  357. package/dist/vendor/node-shared/NodeTerminal.d.ts +22 -0
  358. package/dist/vendor/node-shared/NodeTerminal.js +9 -0
  359. package/dist/vendor/node-shared/index.d.ts +56 -0
  360. package/dist/vendor/node-shared/index.js +58 -0
  361. package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.d.ts +4 -0
  362. package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.js +7 -0
  363. package/dist/vendor/node-shared/internal/utils.d.ts +2 -0
  364. package/dist/vendor/node-shared/internal/utils.js +7 -0
  365. package/dist/vendor/platform-bun.d.ts +92 -0
  366. package/dist/vendor/platform-bun.js +107 -0
  367. package/dist/vendor/platform-node-shared.d.ts +56 -0
  368. package/dist/vendor/platform-node-shared.js +58 -0
  369. package/dist/vendor/platform-node.d.ts +100 -0
  370. package/dist/vendor/platform-node.js +115 -0
  371. package/docs/README.md +132 -0
  372. package/docs/api.md +265 -0
  373. package/docs/concepts/host-surface.md +152 -0
  374. package/docs/concepts/runtime-parity.md +80 -0
  375. package/docs/guides/bind-a-repository-root.md +109 -0
  376. package/docs/guides/configure-the-filesystem-helper.md +109 -0
  377. package/docs/guides/contain-child-processes.md +176 -0
  378. package/docs/installation.md +128 -0
  379. package/docs/quickstart.md +159 -0
  380. package/docs/troubleshooting.md +178 -0
  381. package/package.json +146 -3
  382. package/src/BunFileSystem.ts +47 -0
  383. package/src/BunHost.ts +338 -0
  384. package/src/index.ts +27 -0
@@ -0,0 +1,92 @@
1
+ /**
2
+ * @since 4.0.0
3
+ */
4
+ /**
5
+ * @since 4.0.0
6
+ */
7
+ export * as BunChildProcessSpawner from "./BunChildProcessSpawner.ts";
8
+ /**
9
+ * @since 4.0.0
10
+ */
11
+ export * as BunClusterHttp from "./BunClusterHttp.ts";
12
+ /**
13
+ * @since 4.0.0
14
+ */
15
+ export * as BunClusterSocket from "./BunClusterSocket.ts";
16
+ /**
17
+ * @since 1.0.0
18
+ */
19
+ export * as BunCrypto from "./BunCrypto.ts";
20
+ /**
21
+ * @since 4.0.0
22
+ */
23
+ export * as BunFileSystem from "./BunFileSystem.ts";
24
+ /**
25
+ * @since 4.0.0
26
+ */
27
+ export * as BunHttpClient from "./BunHttpClient.ts";
28
+ /**
29
+ * @since 4.0.0
30
+ */
31
+ export * as BunHttpPlatform from "./BunHttpPlatform.ts";
32
+ /**
33
+ * @since 4.0.0
34
+ */
35
+ export * as BunHttpServer from "./BunHttpServer.ts";
36
+ /**
37
+ * @since 4.0.0
38
+ */
39
+ export * as BunHttpServerRequest from "./BunHttpServerRequest.ts";
40
+ /**
41
+ * @since 4.0.0
42
+ */
43
+ export * as BunMultipart from "./BunMultipart.ts";
44
+ /**
45
+ * @since 4.0.0
46
+ */
47
+ export * as BunPath from "./BunPath.ts";
48
+ /**
49
+ * @since 4.0.0
50
+ */
51
+ export * as BunRedis from "./BunRedis.ts";
52
+ /**
53
+ * @since 4.0.0
54
+ */
55
+ export * as BunRuntime from "./BunRuntime.ts";
56
+ /**
57
+ * @since 4.0.0
58
+ */
59
+ export * as BunServices from "./BunServices.ts";
60
+ /**
61
+ * @since 4.0.0
62
+ */
63
+ export * as BunSink from "./BunSink.ts";
64
+ /**
65
+ * @since 4.0.0
66
+ */
67
+ export * as BunSocket from "./BunSocket.ts";
68
+ /**
69
+ * @since 4.0.0
70
+ */
71
+ export * as BunSocketServer from "./BunSocketServer.ts";
72
+ /**
73
+ * @since 4.0.0
74
+ */
75
+ export * as BunStdio from "./BunStdio.ts";
76
+ /**
77
+ * @since 4.0.0
78
+ */
79
+ export * as BunStream from "./BunStream.ts";
80
+ /**
81
+ * @since 4.0.0
82
+ */
83
+ export * as BunTerminal from "./BunTerminal.ts";
84
+ /**
85
+ * @since 4.0.0
86
+ */
87
+ export * as BunWorker from "./BunWorker.ts";
88
+ /**
89
+ * @since 4.0.0
90
+ */
91
+ export * as BunWorkerRunner from "./BunWorkerRunner.ts";
92
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../bun/index.js")
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Node.js implementation of `ChildProcessSpawner`.
3
+ *
4
+ * @since 4.0.0
5
+ */
6
+ export * from "../node-shared/NodeChildProcessSpawner.js";
7
+ //# sourceMappingURL=NodeChildProcessSpawner.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../node/NodeChildProcessSpawner.js")
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Node.js HTTP and WebSocket layers for Effect Cluster runners.
3
+ *
4
+ * The main `layer` builds a sharding layer for HTTP or WebSocket transport,
5
+ * choosing serialization, runner health checks, runner storage, message
6
+ * storage, and optional client-only mode from the supplied options.
7
+ * `layerHttpServer` provides the Node HTTP server used by cluster runners, and
8
+ * this module re-exports the Kubernetes HTTP client layer used by runner health
9
+ * checks.
10
+ *
11
+ * @since 4.0.0
12
+ */
13
+ import type * as Config from "effect/Config";
14
+ import * as Layer from "effect/Layer";
15
+ import * as MessageStorage from "effect/unstable/cluster/MessageStorage";
16
+ import * as Runners from "effect/unstable/cluster/Runners";
17
+ import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
18
+ import type { Sharding } from "effect/unstable/cluster/Sharding";
19
+ import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
20
+ import type * as Etag from "effect/unstable/http/Etag";
21
+ import type { HttpPlatform } from "effect/unstable/http/HttpPlatform";
22
+ import type { HttpServer } from "effect/unstable/http/HttpServer";
23
+ import type { ServeError } from "effect/unstable/http/HttpServerError";
24
+ import type { SqlClient } from "effect/unstable/sql/SqlClient";
25
+ import type { NodeServices } from "./NodeServices.ts";
26
+ export {
27
+ /**
28
+ * Provides the Kubernetes HTTP client layer used by Kubernetes runner health checks.
29
+ *
30
+ * @category re-exports
31
+ * @since 4.0.0
32
+ */
33
+ layerK8sHttpClient } from "./NodeClusterSocket.ts";
34
+ /**
35
+ * Builds the Node cluster HTTP/WebSocket sharding layer, configuring runner
36
+ * transport, RPC serialization, message storage, runner health checks, and
37
+ * optional client-only mode.
38
+ *
39
+ * @category layers
40
+ * @since 4.0.0
41
+ */
42
+ export declare const layer: <const ClientOnly extends boolean = false, const Storage extends "local" | "sql" | "byo" = never>(options: {
43
+ readonly transport: "http" | "websocket";
44
+ readonly serialization?: "binary" | "ndjson" | undefined;
45
+ readonly serializationMaxBufferSize?: number | "unbounded" | undefined;
46
+ readonly clientOnly?: ClientOnly | undefined;
47
+ readonly storage?: Storage | undefined;
48
+ readonly runnerHealth?: "ping" | "k8s" | undefined;
49
+ readonly runnerHealthK8s?: {
50
+ readonly namespace?: string | undefined;
51
+ readonly labelSelector?: string | undefined;
52
+ } | undefined;
53
+ readonly shardingConfig?: Partial<ShardingConfig.ShardingConfig["Service"]> | undefined;
54
+ }) => ClientOnly extends true ? Layer.Layer<Sharding | Runners.Runners | ("byo" extends Storage ? never : MessageStorage.MessageStorage), Config.ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient> : Layer.Layer<Sharding | Runners.Runners | ("byo" extends Storage ? never : MessageStorage.MessageStorage), ServeError | Config.ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient>;
55
+ /**
56
+ * Provides the HTTP server and Node HTTP services used by cluster runners,
57
+ * listening on `ShardingConfig.runnerListenAddress` or `runnerAddress`.
58
+ *
59
+ * @category layers
60
+ * @since 4.0.0
61
+ */
62
+ export declare const layerHttpServer: Layer.Layer<HttpPlatform | Etag.Generator | NodeServices | HttpServer, ServeError, ShardingConfig.ShardingConfig>;
63
+ //# sourceMappingURL=NodeClusterHttp.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../node/NodeClusterHttp.js")
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Node.js socket layers for Effect Cluster runners.
3
+ *
4
+ * The main `layer` builds a sharding layer for socket transport, choosing
5
+ * serialization, runner health checks, runner storage, message storage, and
6
+ * optional client-only mode from the supplied options. This module also
7
+ * re-exports the shared socket client and server protocol layers, and provides
8
+ * Kubernetes-aware Undici dispatcher and HTTP client layers for runner health
9
+ * checks.
10
+ *
11
+ * @since 4.0.0
12
+ */
13
+ import { layerClientProtocol, layerSocketServer } from "../node-shared/NodeClusterSocket.js";
14
+ import type { ConfigError } from "effect/Config";
15
+ import * as Layer from "effect/Layer";
16
+ import * as K8sHttpClient from "effect/unstable/cluster/K8sHttpClient";
17
+ import * as MessageStorage from "effect/unstable/cluster/MessageStorage";
18
+ import * as Runners from "effect/unstable/cluster/Runners";
19
+ import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
20
+ import type { Sharding } from "effect/unstable/cluster/Sharding";
21
+ import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
22
+ import type * as SocketServer from "effect/unstable/socket/SocketServer";
23
+ import type { SqlClient } from "effect/unstable/sql/SqlClient";
24
+ import * as NodeHttpClient from "./NodeHttpClient.ts";
25
+ export {
26
+ /**
27
+ * Provides the cluster `RpcClientProtocol` using the shared socket client
28
+ * implementation.
29
+ *
30
+ * @category re-exports
31
+ * @since 4.0.0
32
+ */
33
+ layerClientProtocol,
34
+ /**
35
+ * Provides the socket server used by Node cluster runners through the shared
36
+ * socket server implementation.
37
+ *
38
+ * @category re-exports
39
+ * @since 4.0.0
40
+ */
41
+ layerSocketServer };
42
+ /**
43
+ * Builds the Node cluster socket sharding layer, configuring RPC
44
+ * serialization, message storage, runner health checks, and optional
45
+ * client-only mode.
46
+ *
47
+ * @category layers
48
+ * @since 4.0.0
49
+ */
50
+ export declare const layer: <const ClientOnly extends boolean = false, const Storage extends "local" | "sql" | "byo" = never>(options?: {
51
+ readonly serialization?: "binary" | "ndjson" | undefined;
52
+ readonly serializationMaxBufferSize?: number | "unbounded" | undefined;
53
+ readonly clientOnly?: ClientOnly | undefined;
54
+ readonly storage?: Storage | undefined;
55
+ readonly runnerHealth?: "ping" | "k8s" | undefined;
56
+ readonly runnerHealthK8s?: {
57
+ readonly namespace?: string | undefined;
58
+ readonly labelSelector?: string | undefined;
59
+ } | undefined;
60
+ readonly shardingConfig?: Partial<ShardingConfig.ShardingConfig["Service"]> | undefined;
61
+ }) => ClientOnly extends true ? Layer.Layer<Sharding | Runners.Runners | ("byo" extends Storage ? never : MessageStorage.MessageStorage), ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient> : Layer.Layer<Sharding | Runners.Runners | ("byo" extends Storage ? never : MessageStorage.MessageStorage), SocketServer.SocketServerError | ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient>;
62
+ /**
63
+ * Provides an Undici dispatcher for Kubernetes API calls, using the service
64
+ * account CA certificate when it is available and falling back to the default
65
+ * dispatcher otherwise.
66
+ *
67
+ * @category layers
68
+ * @since 4.0.0
69
+ */
70
+ export declare const layerDispatcherK8s: Layer.Layer<NodeHttpClient.Dispatcher>;
71
+ /**
72
+ * Provides a `K8sHttpClient` backed by the Undici HTTP client and the
73
+ * Kubernetes-aware dispatcher.
74
+ *
75
+ * @category layers
76
+ * @since 4.0.0
77
+ */
78
+ export declare const layerK8sHttpClient: Layer.Layer<K8sHttpClient.K8sHttpClient>;
79
+ //# sourceMappingURL=NodeClusterSocket.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../node/NodeClusterSocket.js")
@@ -0,0 +1,10 @@
1
+ import type * as Crypto from "effect/Crypto";
2
+ import type * as Layer from "effect/Layer";
3
+ /**
4
+ * Layer that provides the Node.js Crypto service implementation.
5
+ *
6
+ * @category layers
7
+ * @since 1.0.0
8
+ */
9
+ export declare const layer: Layer.Layer<Crypto.Crypto>;
10
+ //# sourceMappingURL=NodeCrypto.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../node/NodeCrypto.js")
@@ -0,0 +1,10 @@
1
+ import type { FileSystem } from "effect/FileSystem";
2
+ import type * as Layer from "effect/Layer";
3
+ /**
4
+ * Provides the `FileSystem` service backed by Node filesystem APIs.
5
+ *
6
+ * @category layers
7
+ * @since 4.0.0
8
+ */
9
+ export declare const layer: Layer.Layer<FileSystem>;
10
+ //# sourceMappingURL=NodeFileSystem.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../node/NodeFileSystem.js")
@@ -0,0 +1,179 @@
1
+ /**
2
+ * Node.js implementations of the Effect `HttpClient`.
3
+ *
4
+ * This module supplies Node runtime backends for the platform-independent
5
+ * Effect HTTP client API. It re-exports the fetch-based `Fetch`, `RequestInit`,
6
+ * and `layerFetch` APIs, defines an Undici-backed client with dispatcher
7
+ * services and request options, and defines a lower-level `node:http` /
8
+ * `node:https` client with scoped HTTP agent layers.
9
+ *
10
+ * @since 4.0.0
11
+ */
12
+ import * as Context from "effect/Context";
13
+ import * as Effect from "effect/Effect";
14
+ import * as Layer from "effect/Layer";
15
+ import type * as Scope from "effect/Scope";
16
+ import * as Client from "effect/unstable/http/HttpClient";
17
+ import * as Http from "node:http";
18
+ import * as Https from "node:https";
19
+ import type * as Undici from "./Undici.ts";
20
+ export {
21
+ /**
22
+ * Provides a fetch-based HTTP client implementation for Node.js.
23
+ *
24
+ * **When to use**
25
+ *
26
+ * Use to access or override the fetch implementation used by the Node
27
+ * fetch-based HTTP client.
28
+ *
29
+ * @category services
30
+ * @since 4.0.0
31
+ */
32
+ Fetch,
33
+ /**
34
+ * Layer that provides the fetch-based HTTP client implementation.
35
+ *
36
+ * @category layers
37
+ * @since 4.0.0
38
+ */
39
+ layer as layerFetch,
40
+ /**
41
+ * Provides request initialization options accepted by the fetch-based HTTP client.
42
+ *
43
+ * **When to use**
44
+ *
45
+ * Use to provide default fetch request options for Node HTTP requests.
46
+ *
47
+ * @category services
48
+ * @since 4.0.0
49
+ */
50
+ RequestInit } from "effect/unstable/http/FetchHttpClient";
51
+ declare const Dispatcher_base: Context.ServiceClass<Dispatcher, "@effect/platform-node/NodeHttpClient/Dispatcher", Undici.Dispatcher>;
52
+ /**
53
+ * Service tag for the Undici `Dispatcher` used by the Undici-backed HTTP
54
+ * client.
55
+ *
56
+ * @category services
57
+ * @since 4.0.0
58
+ */
59
+ export declare class Dispatcher extends Dispatcher_base {
60
+ }
61
+ /**
62
+ * Acquires a new Undici `Agent` dispatcher and destroys it when the enclosing
63
+ * scope is finalized.
64
+ *
65
+ * @category resource management
66
+ * @since 4.0.0
67
+ */
68
+ export declare const makeDispatcher: Effect.Effect<Undici.Dispatcher, never, Scope.Scope>;
69
+ /**
70
+ * Provides the `Dispatcher` service using a scoped Undici `Agent`.
71
+ *
72
+ * @category layers
73
+ * @since 4.0.0
74
+ */
75
+ export declare const layerDispatcher: Layer.Layer<Dispatcher>;
76
+ /**
77
+ * Provides the `Dispatcher` service from Undici's process-global dispatcher,
78
+ * without creating or owning a new agent.
79
+ *
80
+ * @category layers
81
+ * @since 4.0.0
82
+ */
83
+ export declare const dispatcherLayerGlobal: Layer.Layer<Dispatcher>;
84
+ /**
85
+ * Fiber reference containing default Undici request options applied to requests
86
+ * sent by `makeUndici`.
87
+ *
88
+ * @category services
89
+ * @since 4.0.0
90
+ */
91
+ export declare const UndiciOptions: Context.Reference<Partial<Undici.Dispatcher.RequestOptions<null>>>;
92
+ /**
93
+ * Creates an `HttpClient` that sends requests through the current Undici
94
+ * `Dispatcher`, converts Effect HTTP bodies to Undici bodies, and maps
95
+ * transport and decode failures to `HttpClientError`.
96
+ *
97
+ * @category constructors
98
+ * @since 4.0.0
99
+ */
100
+ export declare const makeUndici: Effect.Effect<Client.HttpClient, never, Dispatcher>;
101
+ /**
102
+ * Provides an Undici-backed `HttpClient` using the current `Dispatcher`
103
+ * service.
104
+ *
105
+ * @category layers
106
+ * @since 4.0.0
107
+ */
108
+ export declare const layerUndiciNoDispatcher: Layer.Layer<Client.HttpClient, never, Dispatcher>;
109
+ /**
110
+ * Provides an Undici-backed `HttpClient` together with a scoped default
111
+ * Undici `Agent` dispatcher.
112
+ *
113
+ * @category layers
114
+ * @since 4.0.0
115
+ */
116
+ export declare const layerUndici: Layer.Layer<Client.HttpClient>;
117
+ declare const HttpAgent_base: Context.ServiceClass<HttpAgent, "@effect/platform-node/NodeHttpClient/HttpAgent", {
118
+ readonly http: Http.Agent;
119
+ readonly https: Https.Agent;
120
+ }>;
121
+ /**
122
+ * Service tag for the paired Node `http` and `https` agents used by the
123
+ * node:http-backed HTTP client.
124
+ *
125
+ * @category services
126
+ * @since 4.0.0
127
+ */
128
+ export declare class HttpAgent extends HttpAgent_base {
129
+ }
130
+ /**
131
+ * Acquires Node `http` and `https` agents with the supplied options and
132
+ * destroys both agents when the enclosing scope is finalized.
133
+ *
134
+ * @category resource management
135
+ * @since 4.0.0
136
+ */
137
+ export declare const makeAgent: (options?: Https.AgentOptions) => Effect.Effect<HttpAgent["Service"], never, Scope.Scope>;
138
+ /**
139
+ * Provides the `HttpAgent` service using scoped Node `http` and `https`
140
+ * agents configured with the supplied options.
141
+ *
142
+ * @category layers
143
+ * @since 4.0.0
144
+ */
145
+ export declare const layerAgentOptions: (options?: Https.AgentOptions | undefined) => Layer.Layer<HttpAgent>;
146
+ /**
147
+ * Provides the `HttpAgent` service using default scoped Node `http` and
148
+ * `https` agents.
149
+ *
150
+ * @category layers
151
+ * @since 4.0.0
152
+ */
153
+ export declare const layerAgent: Layer.Layer<HttpAgent>;
154
+ /**
155
+ * Creates an `HttpClient` backed by Node `http` and `https`, using the
156
+ * current `HttpAgent`, streaming request bodies, and wrapping Node responses
157
+ * as `HttpClientResponse` values.
158
+ *
159
+ * @category constructors
160
+ * @since 4.0.0
161
+ */
162
+ export declare const makeNodeHttp: Effect.Effect<Client.HttpClient, never, HttpAgent>;
163
+ /**
164
+ * Provides a node:http-backed `HttpClient` using the current `HttpAgent`
165
+ * service.
166
+ *
167
+ * @category layers
168
+ * @since 4.0.0
169
+ */
170
+ export declare const layerNodeHttpNoAgent: Layer.Layer<Client.HttpClient, never, HttpAgent>;
171
+ /**
172
+ * Provides a node:http-backed `HttpClient` together with default scoped Node
173
+ * `http` and `https` agents.
174
+ *
175
+ * @category layers
176
+ * @since 4.0.0
177
+ */
178
+ export declare const layerNodeHttp: Layer.Layer<Client.HttpClient>;
179
+ //# sourceMappingURL=NodeHttpClient.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../node/NodeHttpClient.js")
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Adapter base for exposing Node `http.IncomingMessage` values as Effect HTTP
3
+ * incoming messages.
4
+ *
5
+ * Server requests and Node client responses both arrive as Node readable
6
+ * streams with raw header objects, socket metadata, and one-shot body
7
+ * consumption. This module's `NodeHttpIncomingMessage` class keeps the original
8
+ * Node message available while presenting Effect's `HttpIncomingMessage` shape:
9
+ * typed headers, remote address lookup, stream access, and text, JSON,
10
+ * URL-encoded, and array-buffer body readers.
11
+ *
12
+ * @since 4.0.0
13
+ */
14
+ import * as Effect from "effect/Effect";
15
+ import * as Inspectable from "effect/Inspectable";
16
+ import * as Option from "effect/Option";
17
+ import type * as Schema from "effect/Schema";
18
+ import type * as Stream from "effect/Stream";
19
+ import * as Headers from "effect/unstable/http/Headers";
20
+ import * as IncomingMessage from "effect/unstable/http/HttpIncomingMessage";
21
+ import * as UrlParams from "effect/unstable/http/UrlParams";
22
+ import type * as Http from "node:http";
23
+ /**
24
+ * Adapts a Node `IncomingMessage` to Effect HTTP incoming messages.
25
+ *
26
+ * **When to use**
27
+ *
28
+ * Use to implement Node HTTP request or response adapters that expose the
29
+ * Effect HTTP incoming-message interface.
30
+ *
31
+ * **Details**
32
+ *
33
+ * The adapter exposes headers, remote address, stream access, and cached body
34
+ * decoders. Subclasses provide the error mapping for unknown Node errors.
35
+ *
36
+ * @category constructors
37
+ * @since 4.0.0
38
+ */
39
+ export declare abstract class NodeHttpIncomingMessage<E> extends Inspectable.Class implements IncomingMessage.HttpIncomingMessage<E> {
40
+ /**
41
+ * Marks this value as an HTTP incoming message for runtime guards.
42
+ *
43
+ * @since 4.0.0
44
+ */
45
+ readonly [IncomingMessage.TypeId]: typeof IncomingMessage.TypeId;
46
+ readonly source: Http.IncomingMessage;
47
+ readonly onError: (error: unknown) => E;
48
+ readonly remoteAddressOverride?: Option.Option<string> | undefined;
49
+ constructor(source: Http.IncomingMessage, onError: (error: unknown) => E, remoteAddressOverride?: Option.Option<string>);
50
+ get headers(): Headers.Headers;
51
+ get remoteAddress(): Option.Option<string>;
52
+ private textEffect;
53
+ get text(): Effect.Effect<string, E>;
54
+ get textUnsafe(): string;
55
+ get json(): Effect.Effect<Schema.Json, E>;
56
+ get jsonUnsafe(): Schema.Json;
57
+ get urlParamsBody(): Effect.Effect<UrlParams.UrlParams, E>;
58
+ get stream(): Stream.Stream<Uint8Array, E>;
59
+ private arrayBufferEffect;
60
+ get arrayBuffer(): Effect.Effect<ArrayBuffer, E>;
61
+ }
62
+ //# sourceMappingURL=NodeHttpIncomingMessage.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../node/NodeHttpIncomingMessage.js")
@@ -0,0 +1,36 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Layer from "effect/Layer";
3
+ import * as EtagImpl from "effect/unstable/http/Etag";
4
+ import * as HttpBody from "effect/unstable/http/HttpBody";
5
+ import * as Platform from "effect/unstable/http/HttpPlatform";
6
+ import * as ServerResponse from "effect/unstable/http/HttpServerResponse";
7
+ /**
8
+ * Creates the Node `HttpPlatform`, serving file responses from Node readable
9
+ * streams and adding MIME type and content-length headers when needed.
10
+ *
11
+ * @category constructors
12
+ * @since 4.0.0
13
+ */
14
+ export declare const make: Effect.Effect<{
15
+ readonly platform: "deno" | "node" | "bun" | "web";
16
+ readonly compression: Platform.Compression;
17
+ readonly fileResponse: (path: string, options?: ServerResponse.Options.WithContent & {
18
+ readonly bytesToRead?: import("effect/ByteSize").Input | undefined;
19
+ readonly chunkSize?: number | undefined;
20
+ readonly offset?: import("effect/ByteSize").Input | undefined;
21
+ }) => Effect.Effect<ServerResponse.HttpServerResponse, import("effect/PlatformError").PlatformError>;
22
+ readonly fileWebResponse: (file: HttpBody.HttpBody.FileLike, options?: ServerResponse.Options.WithContent & {
23
+ readonly bytesToRead?: number | undefined;
24
+ readonly chunkSize?: number | undefined;
25
+ readonly offset?: number | undefined;
26
+ }) => Effect.Effect<ServerResponse.HttpServerResponse>;
27
+ }, never, import("effect/FileSystem").FileSystem | EtagImpl.Generator>;
28
+ /**
29
+ * Provides the Node `HttpPlatform` together with the filesystem and ETag
30
+ * services it needs for file responses.
31
+ *
32
+ * @category layers
33
+ * @since 4.0.0
34
+ */
35
+ export declare const layer: Layer.Layer<Platform.HttpPlatform>;
36
+ //# sourceMappingURL=NodeHttpPlatform.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../node/NodeHttpPlatform.js")