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

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 (429) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/LICENSE +21 -0
  3. package/README.md +110 -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 +148 -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 +248 -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 +3067 -0
  30. package/dist/vendor/bun/BunAddressResolver.d.ts +15 -0
  31. package/dist/vendor/bun/BunAddressResolver.js +8 -0
  32. package/dist/vendor/bun/BunChildProcessSpawner.d.ts +8 -0
  33. package/dist/vendor/bun/BunChildProcessSpawner.js +14 -0
  34. package/dist/vendor/bun/BunClusterHttp.d.ts +76 -0
  35. package/dist/vendor/bun/BunClusterHttp.js +39 -0
  36. package/dist/vendor/bun/BunClusterSocket.d.ts +70 -0
  37. package/dist/vendor/bun/BunClusterSocket.js +22 -0
  38. package/dist/vendor/bun/BunCrypto.d.ts +11 -0
  39. package/dist/vendor/bun/BunCrypto.js +8 -0
  40. package/dist/vendor/bun/BunDatagramSocket.d.ts +227 -0
  41. package/dist/vendor/bun/BunDatagramSocket.js +11 -0
  42. package/dist/vendor/bun/BunDns.d.ts +72 -0
  43. package/dist/vendor/bun/BunDns.js +12 -0
  44. package/dist/vendor/bun/BunFileSystem.d.ts +11 -0
  45. package/dist/vendor/bun/BunFileSystem.js +9 -0
  46. package/dist/vendor/bun/BunHttpClient.d.ts +10 -0
  47. package/dist/vendor/bun/BunHttpClient.js +1 -0
  48. package/dist/vendor/bun/BunHttpPlatform.d.ts +11 -0
  49. package/dist/vendor/bun/BunHttpPlatform.js +11 -0
  50. package/dist/vendor/bun/BunHttpServer.d.ts +151 -0
  51. package/dist/vendor/bun/BunHttpServer.js +38 -0
  52. package/dist/vendor/bun/BunHttpServerRequest.d.ts +20 -0
  53. package/dist/vendor/bun/BunHttpServerRequest.js +7 -0
  54. package/dist/vendor/bun/BunMultipart.d.ts +34 -0
  55. package/dist/vendor/bun/BunMultipart.js +12 -0
  56. package/dist/vendor/bun/BunPath.d.ts +27 -0
  57. package/dist/vendor/bun/BunPath.js +12 -0
  58. package/dist/vendor/bun/BunRedis.d.ts +53 -0
  59. package/dist/vendor/bun/BunRedis.js +11 -0
  60. package/dist/vendor/bun/BunRuntime.d.ts +88 -0
  61. package/dist/vendor/bun/BunRuntime.js +8 -0
  62. package/dist/vendor/bun/BunServices.d.ts +37 -0
  63. package/dist/vendor/bun/BunServices.js +23 -0
  64. package/dist/vendor/bun/BunSink.d.ts +9 -0
  65. package/dist/vendor/bun/BunSink.js +12 -0
  66. package/dist/vendor/bun/BunSocket.d.ts +45 -0
  67. package/dist/vendor/bun/BunSocket.js +29 -0
  68. package/dist/vendor/bun/BunSocketServer.d.ts +9 -0
  69. package/dist/vendor/bun/BunSocketServer.js +21 -0
  70. package/dist/vendor/bun/BunStdio.d.ts +12 -0
  71. package/dist/vendor/bun/BunStdio.js +10 -0
  72. package/dist/vendor/bun/BunStream.d.ts +20 -0
  73. package/dist/vendor/bun/BunStream.js +30 -0
  74. package/dist/vendor/bun/BunTerminal.d.ts +24 -0
  75. package/dist/vendor/bun/BunTerminal.js +10 -0
  76. package/dist/vendor/bun/BunWorker.d.ts +22 -0
  77. package/dist/vendor/bun/BunWorker.js +9 -0
  78. package/dist/vendor/bun/BunWorkerRunner.d.ts +13 -0
  79. package/dist/vendor/bun/BunWorkerRunner.js +7 -0
  80. package/dist/vendor/bun/LICENSE +21 -0
  81. package/dist/vendor/bun/index.d.ts +130 -0
  82. package/dist/vendor/bun/index.js +121 -0
  83. package/dist/vendor/chunk-226TYKP6.js +60 -0
  84. package/dist/vendor/chunk-2ADOI6ZN.js +18 -0
  85. package/dist/vendor/chunk-2AP6TO77.js +71 -0
  86. package/dist/vendor/chunk-2LGUVSNM.js +20 -0
  87. package/dist/vendor/chunk-3SUO3TTE.js +40 -0
  88. package/dist/vendor/chunk-4O4Z52A2.js +48 -0
  89. package/dist/vendor/chunk-4YK2MHSO.js +20 -0
  90. package/dist/vendor/chunk-6B775XB2.js +85 -0
  91. package/dist/vendor/chunk-6KYVM2ZC.js +419 -0
  92. package/dist/vendor/chunk-6QPSLCUZ.js +0 -0
  93. package/dist/vendor/chunk-6R444NFO.js +104 -0
  94. package/dist/vendor/chunk-7JOAEKDV.js +503 -0
  95. package/dist/vendor/chunk-7VJC3PHX.js +63 -0
  96. package/dist/vendor/chunk-7ZKNPDTP.js +26 -0
  97. package/dist/vendor/chunk-ABPRHPJP.js +15 -0
  98. package/dist/vendor/chunk-AMAL6TRE.js +93 -0
  99. package/dist/vendor/chunk-AW6WQVI7.js +29 -0
  100. package/dist/vendor/chunk-BHV44Z6K.js +36 -0
  101. package/dist/vendor/chunk-BIR74JJK.js +93 -0
  102. package/dist/vendor/chunk-BTXZUHUI.js +7 -0
  103. package/dist/vendor/chunk-BVV46N3V.js +515 -0
  104. package/dist/vendor/chunk-C7UMBJO6.js +31 -0
  105. package/dist/vendor/chunk-CN4K2U6M.js +20 -0
  106. package/dist/vendor/chunk-D6XNHJPW.js +18 -0
  107. package/dist/vendor/chunk-DHTPLWAP.js +34 -0
  108. package/dist/vendor/chunk-DWSNOBD4.js +18 -0
  109. package/dist/vendor/chunk-DX4VFONH.js +81 -0
  110. package/dist/vendor/chunk-EIO7BKW3.js +63 -0
  111. package/dist/vendor/chunk-FIPFWLCV.js +144 -0
  112. package/dist/vendor/chunk-GITB76ZP.js +22 -0
  113. package/dist/vendor/chunk-GMORYZG4.js +62 -0
  114. package/dist/vendor/chunk-HXGVOKHF.js +22 -0
  115. package/dist/vendor/chunk-HYPKWCVW.js +374 -0
  116. package/dist/vendor/chunk-IJON5WTO.js +34 -0
  117. package/dist/vendor/chunk-IXI7RW3A.js +580 -0
  118. package/dist/vendor/chunk-J43O5GFH.js +28 -0
  119. package/dist/vendor/chunk-JTST2Z7N.js +58 -0
  120. package/dist/vendor/chunk-JYD572EF.js +18 -0
  121. package/dist/vendor/chunk-K6GWBGJM.js +16 -0
  122. package/dist/vendor/chunk-KANNAI65.js +62 -0
  123. package/dist/vendor/chunk-KEMBVIRS.js +128 -0
  124. package/dist/vendor/chunk-LOB26XOO.js +0 -0
  125. package/dist/vendor/chunk-M2QOSF47.js +53 -0
  126. package/dist/vendor/chunk-MLKGABMK.js +9 -0
  127. package/dist/vendor/chunk-NGGMPIWR.js +65 -0
  128. package/dist/vendor/chunk-NNTJGFLB.js +21 -0
  129. package/dist/vendor/chunk-NU53DHQR.js +18 -0
  130. package/dist/vendor/chunk-OAY4MA3I.js +28 -0
  131. package/dist/vendor/chunk-OV2KKGBA.js +16 -0
  132. package/dist/vendor/chunk-PBM2HJOX.js +118 -0
  133. package/dist/vendor/chunk-Q5UCOQNO.js +70 -0
  134. package/dist/vendor/chunk-Q7YXUH7M.js +414 -0
  135. package/dist/vendor/chunk-QKYYD3AZ.js +131 -0
  136. package/dist/vendor/chunk-QLI7T34M.js +18 -0
  137. package/dist/vendor/chunk-QR2ZOVOL.js +18 -0
  138. package/dist/vendor/chunk-R2PFJKSP.js +274 -0
  139. package/dist/vendor/chunk-RX5TKFP7.js +51 -0
  140. package/dist/vendor/chunk-S3MN5OXB.js +34 -0
  141. package/dist/vendor/chunk-T5WDTZCE.js +249 -0
  142. package/dist/vendor/chunk-TBMTA5LD.js +14 -0
  143. package/dist/vendor/chunk-TCKM3JXD.js +325 -0
  144. package/dist/vendor/chunk-UXIG7ALP.js +229 -0
  145. package/dist/vendor/chunk-V577GRCI.js +438 -0
  146. package/dist/vendor/chunk-VS6VBUH6.js +57 -0
  147. package/dist/vendor/chunk-WGUQHMX2.js +18 -0
  148. package/dist/vendor/chunk-WNS3OER2.js +18 -0
  149. package/dist/vendor/chunk-X6FYP2EH.js +109 -0
  150. package/dist/vendor/chunk-XAVBQY4D.js +20 -0
  151. package/dist/vendor/chunk-XAZH2ZEU.js +43 -0
  152. package/dist/vendor/chunk-XDPP24MG.js +129 -0
  153. package/dist/vendor/chunk-XF3WZCMZ.js +26 -0
  154. package/dist/vendor/chunk-XXVMTKX5.js +0 -0
  155. package/dist/vendor/chunk-YJGNV6EV.js +85 -0
  156. package/dist/vendor/chunk-ZJEHEPDQ.js +18 -0
  157. package/dist/vendor/cjs/bun/BunAddressResolver.d.ts +15 -0
  158. package/dist/vendor/cjs/bun/BunAddressResolver.js +1 -0
  159. package/dist/vendor/cjs/bun/BunChildProcessSpawner.d.ts +8 -0
  160. package/dist/vendor/cjs/bun/BunChildProcessSpawner.js +1 -0
  161. package/dist/vendor/cjs/bun/BunClusterHttp.d.ts +76 -0
  162. package/dist/vendor/cjs/bun/BunClusterHttp.js +1 -0
  163. package/dist/vendor/cjs/bun/BunClusterSocket.d.ts +70 -0
  164. package/dist/vendor/cjs/bun/BunClusterSocket.js +1 -0
  165. package/dist/vendor/cjs/bun/BunCrypto.d.ts +11 -0
  166. package/dist/vendor/cjs/bun/BunCrypto.js +1 -0
  167. package/dist/vendor/cjs/bun/BunDatagramSocket.d.ts +227 -0
  168. package/dist/vendor/cjs/bun/BunDatagramSocket.js +1 -0
  169. package/dist/vendor/cjs/bun/BunDns.d.ts +72 -0
  170. package/dist/vendor/cjs/bun/BunDns.js +1 -0
  171. package/dist/vendor/cjs/bun/BunFileSystem.d.ts +11 -0
  172. package/dist/vendor/cjs/bun/BunFileSystem.js +1 -0
  173. package/dist/vendor/cjs/bun/BunHttpClient.d.ts +10 -0
  174. package/dist/vendor/cjs/bun/BunHttpClient.js +1 -0
  175. package/dist/vendor/cjs/bun/BunHttpPlatform.d.ts +11 -0
  176. package/dist/vendor/cjs/bun/BunHttpPlatform.js +1 -0
  177. package/dist/vendor/cjs/bun/BunHttpServer.d.ts +151 -0
  178. package/dist/vendor/cjs/bun/BunHttpServer.js +1 -0
  179. package/dist/vendor/cjs/bun/BunHttpServerRequest.d.ts +20 -0
  180. package/dist/vendor/cjs/bun/BunHttpServerRequest.js +1 -0
  181. package/dist/vendor/cjs/bun/BunMultipart.d.ts +34 -0
  182. package/dist/vendor/cjs/bun/BunMultipart.js +1 -0
  183. package/dist/vendor/cjs/bun/BunPath.d.ts +27 -0
  184. package/dist/vendor/cjs/bun/BunPath.js +1 -0
  185. package/dist/vendor/cjs/bun/BunRedis.d.ts +53 -0
  186. package/dist/vendor/cjs/bun/BunRedis.js +1 -0
  187. package/dist/vendor/cjs/bun/BunRuntime.d.ts +88 -0
  188. package/dist/vendor/cjs/bun/BunRuntime.js +1 -0
  189. package/dist/vendor/cjs/bun/BunServices.d.ts +37 -0
  190. package/dist/vendor/cjs/bun/BunServices.js +1 -0
  191. package/dist/vendor/cjs/bun/BunSink.d.ts +9 -0
  192. package/dist/vendor/cjs/bun/BunSink.js +1 -0
  193. package/dist/vendor/cjs/bun/BunSocket.d.ts +45 -0
  194. package/dist/vendor/cjs/bun/BunSocket.js +1 -0
  195. package/dist/vendor/cjs/bun/BunSocketServer.d.ts +9 -0
  196. package/dist/vendor/cjs/bun/BunSocketServer.js +1 -0
  197. package/dist/vendor/cjs/bun/BunStdio.d.ts +12 -0
  198. package/dist/vendor/cjs/bun/BunStdio.js +1 -0
  199. package/dist/vendor/cjs/bun/BunStream.d.ts +20 -0
  200. package/dist/vendor/cjs/bun/BunStream.js +1 -0
  201. package/dist/vendor/cjs/bun/BunTerminal.d.ts +24 -0
  202. package/dist/vendor/cjs/bun/BunTerminal.js +1 -0
  203. package/dist/vendor/cjs/bun/BunWorker.d.ts +22 -0
  204. package/dist/vendor/cjs/bun/BunWorker.js +1 -0
  205. package/dist/vendor/cjs/bun/BunWorkerRunner.d.ts +13 -0
  206. package/dist/vendor/cjs/bun/BunWorkerRunner.js +1 -0
  207. package/dist/vendor/cjs/bun/index.d.ts +130 -0
  208. package/dist/vendor/cjs/bun/index.js +1 -0
  209. package/dist/vendor/cjs/node/NodeAddressResolver.d.ts +16 -0
  210. package/dist/vendor/cjs/node/NodeAddressResolver.js +1 -0
  211. package/dist/vendor/cjs/node/NodeChildProcessSpawner.d.ts +8 -0
  212. package/dist/vendor/cjs/node/NodeChildProcessSpawner.js +1 -0
  213. package/dist/vendor/cjs/node/NodeClusterHttp.d.ts +54 -0
  214. package/dist/vendor/cjs/node/NodeClusterHttp.js +1 -0
  215. package/dist/vendor/cjs/node/NodeClusterSocket.d.ts +85 -0
  216. package/dist/vendor/cjs/node/NodeClusterSocket.js +1 -0
  217. package/dist/vendor/cjs/node/NodeCrypto.d.ts +11 -0
  218. package/dist/vendor/cjs/node/NodeCrypto.js +1 -0
  219. package/dist/vendor/cjs/node/NodeDatagramSocket.d.ts +10 -0
  220. package/dist/vendor/cjs/node/NodeDatagramSocket.js +1 -0
  221. package/dist/vendor/cjs/node/NodeDns.d.ts +51 -0
  222. package/dist/vendor/cjs/node/NodeDns.js +1 -0
  223. package/dist/vendor/cjs/node/NodeFileSystem.d.ts +11 -0
  224. package/dist/vendor/cjs/node/NodeFileSystem.js +1 -0
  225. package/dist/vendor/cjs/node/NodeHttpClient.d.ts +303 -0
  226. package/dist/vendor/cjs/node/NodeHttpClient.js +1 -0
  227. package/dist/vendor/cjs/node/NodeHttpIncomingMessage.d.ts +64 -0
  228. package/dist/vendor/cjs/node/NodeHttpIncomingMessage.js +1 -0
  229. package/dist/vendor/cjs/node/NodeHttpPlatform.d.ts +38 -0
  230. package/dist/vendor/cjs/node/NodeHttpPlatform.js +1 -0
  231. package/dist/vendor/cjs/node/NodeHttpServer.d.ts +131 -0
  232. package/dist/vendor/cjs/node/NodeHttpServer.js +1 -0
  233. package/dist/vendor/cjs/node/NodeHttpServerRequest.d.ts +32 -0
  234. package/dist/vendor/cjs/node/NodeHttpServerRequest.js +1 -0
  235. package/dist/vendor/cjs/node/NodeMultipart.d.ts +50 -0
  236. package/dist/vendor/cjs/node/NodeMultipart.js +1 -0
  237. package/dist/vendor/cjs/node/NodeMultipartParser.d.ts +105 -0
  238. package/dist/vendor/cjs/node/NodeMultipartParser.js +1 -0
  239. package/dist/vendor/cjs/node/NodePath.d.ts +30 -0
  240. package/dist/vendor/cjs/node/NodePath.js +1 -0
  241. package/dist/vendor/cjs/node/NodeRedis.d.ts +78 -0
  242. package/dist/vendor/cjs/node/NodeRedis.js +1 -0
  243. package/dist/vendor/cjs/node/NodeRuntime.d.ts +88 -0
  244. package/dist/vendor/cjs/node/NodeRuntime.js +1 -0
  245. package/dist/vendor/cjs/node/NodeServices.d.ts +37 -0
  246. package/dist/vendor/cjs/node/NodeServices.js +1 -0
  247. package/dist/vendor/cjs/node/NodeSink.d.ts +9 -0
  248. package/dist/vendor/cjs/node/NodeSink.js +1 -0
  249. package/dist/vendor/cjs/node/NodeSocket.d.ts +45 -0
  250. package/dist/vendor/cjs/node/NodeSocket.js +1 -0
  251. package/dist/vendor/cjs/node/NodeSocketServer.d.ts +9 -0
  252. package/dist/vendor/cjs/node/NodeSocketServer.js +1 -0
  253. package/dist/vendor/cjs/node/NodeStdio.d.ts +12 -0
  254. package/dist/vendor/cjs/node/NodeStdio.js +1 -0
  255. package/dist/vendor/cjs/node/NodeStream.d.ts +9 -0
  256. package/dist/vendor/cjs/node/NodeStream.js +1 -0
  257. package/dist/vendor/cjs/node/NodeTerminal.d.ts +24 -0
  258. package/dist/vendor/cjs/node/NodeTerminal.js +1 -0
  259. package/dist/vendor/cjs/node/NodeWorker.d.ts +24 -0
  260. package/dist/vendor/cjs/node/NodeWorker.js +1 -0
  261. package/dist/vendor/cjs/node/NodeWorkerRunner.d.ts +13 -0
  262. package/dist/vendor/cjs/node/NodeWorkerRunner.js +1 -0
  263. package/dist/vendor/cjs/node/Undici.d.ts +31 -0
  264. package/dist/vendor/cjs/node/Undici.js +1 -0
  265. package/dist/vendor/cjs/node/index.d.ts +140 -0
  266. package/dist/vendor/cjs/node/index.js +1 -0
  267. package/dist/vendor/cjs/node-shared/NodeAddressResolver.d.ts +13 -0
  268. package/dist/vendor/cjs/node-shared/NodeAddressResolver.js +1 -0
  269. package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.d.ts +66 -0
  270. package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.js +1 -0
  271. package/dist/vendor/cjs/node-shared/NodeClusterSocket.d.ts +35 -0
  272. package/dist/vendor/cjs/node-shared/NodeClusterSocket.js +1 -0
  273. package/dist/vendor/cjs/node-shared/NodeCrypto.d.ts +30 -0
  274. package/dist/vendor/cjs/node-shared/NodeCrypto.js +1 -0
  275. package/dist/vendor/cjs/node-shared/NodeDatagramSocket.d.ts +246 -0
  276. package/dist/vendor/cjs/node-shared/NodeDatagramSocket.js +1 -0
  277. package/dist/vendor/cjs/node-shared/NodeDns.d.ts +221 -0
  278. package/dist/vendor/cjs/node-shared/NodeDns.js +1 -0
  279. package/dist/vendor/cjs/node-shared/NodeFileSystem.d.ts +12 -0
  280. package/dist/vendor/cjs/node-shared/NodeFileSystem.js +1 -0
  281. package/dist/vendor/cjs/node-shared/NodeHttpCompression.d.ts +40 -0
  282. package/dist/vendor/cjs/node-shared/NodeHttpCompression.js +1 -0
  283. package/dist/vendor/cjs/node-shared/NodePath.d.ts +30 -0
  284. package/dist/vendor/cjs/node-shared/NodePath.js +1 -0
  285. package/dist/vendor/cjs/node-shared/NodeRuntime.d.ts +51 -0
  286. package/dist/vendor/cjs/node-shared/NodeRuntime.js +1 -0
  287. package/dist/vendor/cjs/node-shared/NodeSink.d.ts +73 -0
  288. package/dist/vendor/cjs/node-shared/NodeSink.js +1 -0
  289. package/dist/vendor/cjs/node-shared/NodeSocket.d.ts +144 -0
  290. package/dist/vendor/cjs/node-shared/NodeSocket.js +1 -0
  291. package/dist/vendor/cjs/node-shared/NodeSocketServer.d.ts +87 -0
  292. package/dist/vendor/cjs/node-shared/NodeSocketServer.js +1 -0
  293. package/dist/vendor/cjs/node-shared/NodeStdio.d.ts +13 -0
  294. package/dist/vendor/cjs/node-shared/NodeStdio.js +1 -0
  295. package/dist/vendor/cjs/node-shared/NodeStream.d.ts +194 -0
  296. package/dist/vendor/cjs/node-shared/NodeStream.js +1 -0
  297. package/dist/vendor/cjs/node-shared/NodeTerminal.d.ts +24 -0
  298. package/dist/vendor/cjs/node-shared/NodeTerminal.js +1 -0
  299. package/dist/vendor/cjs/node-shared/index.d.ts +85 -0
  300. package/dist/vendor/cjs/node-shared/index.js +1 -0
  301. package/dist/vendor/cjs/node-shared/internal/nodeChildProcessSpawner.d.ts +4 -0
  302. package/dist/vendor/cjs/node-shared/internal/nodeChildProcessSpawner.js +1 -0
  303. package/dist/vendor/cjs/node-shared/internal/utils.d.ts +2 -0
  304. package/dist/vendor/cjs/node-shared/internal/utils.js +1 -0
  305. package/dist/vendor/cjs/package.json +1 -0
  306. package/dist/vendor/cjs/platform-bun.d.ts +130 -0
  307. package/dist/vendor/cjs/platform-bun.js +1 -0
  308. package/dist/vendor/cjs/platform-node-shared.d.ts +85 -0
  309. package/dist/vendor/cjs/platform-node-shared.js +1 -0
  310. package/dist/vendor/cjs/platform-node.d.ts +140 -0
  311. package/dist/vendor/cjs/platform-node.js +1 -0
  312. package/dist/vendor/node/LICENSE +21 -0
  313. package/dist/vendor/node/NodeAddressResolver.d.ts +16 -0
  314. package/dist/vendor/node/NodeAddressResolver.js +8 -0
  315. package/dist/vendor/node/NodeChildProcessSpawner.d.ts +8 -0
  316. package/dist/vendor/node/NodeChildProcessSpawner.js +14 -0
  317. package/dist/vendor/node/NodeClusterHttp.d.ts +54 -0
  318. package/dist/vendor/node/NodeClusterHttp.js +43 -0
  319. package/dist/vendor/node/NodeClusterSocket.d.ts +85 -0
  320. package/dist/vendor/node/NodeClusterSocket.js +30 -0
  321. package/dist/vendor/node/NodeCrypto.d.ts +11 -0
  322. package/dist/vendor/node/NodeCrypto.js +8 -0
  323. package/dist/vendor/node/NodeDatagramSocket.d.ts +10 -0
  324. package/dist/vendor/node/NodeDatagramSocket.js +12 -0
  325. package/dist/vendor/node/NodeDns.d.ts +51 -0
  326. package/dist/vendor/node/NodeDns.js +12 -0
  327. package/dist/vendor/node/NodeFileSystem.d.ts +11 -0
  328. package/dist/vendor/node/NodeFileSystem.js +9 -0
  329. package/dist/vendor/node/NodeHttpClient.d.ts +303 -0
  330. package/dist/vendor/node/NodeHttpClient.js +54 -0
  331. package/dist/vendor/node/NodeHttpIncomingMessage.d.ts +64 -0
  332. package/dist/vendor/node/NodeHttpIncomingMessage.js +10 -0
  333. package/dist/vendor/node/NodeHttpPlatform.d.ts +38 -0
  334. package/dist/vendor/node/NodeHttpPlatform.js +16 -0
  335. package/dist/vendor/node/NodeHttpServer.d.ts +131 -0
  336. package/dist/vendor/node/NodeHttpServer.js +46 -0
  337. package/dist/vendor/node/NodeHttpServerRequest.d.ts +32 -0
  338. package/dist/vendor/node/NodeHttpServerRequest.js +9 -0
  339. package/dist/vendor/node/NodeMultipart.d.ts +50 -0
  340. package/dist/vendor/node/NodeMultipart.js +15 -0
  341. package/dist/vendor/node/NodeMultipartParser.d.ts +105 -0
  342. package/dist/vendor/node/NodeMultipartParser.js +11 -0
  343. package/dist/vendor/node/NodePath.d.ts +30 -0
  344. package/dist/vendor/node/NodePath.js +12 -0
  345. package/dist/vendor/node/NodeRedis.d.ts +78 -0
  346. package/dist/vendor/node/NodeRedis.js +11 -0
  347. package/dist/vendor/node/NodeRuntime.d.ts +88 -0
  348. package/dist/vendor/node/NodeRuntime.js +8 -0
  349. package/dist/vendor/node/NodeServices.d.ts +37 -0
  350. package/dist/vendor/node/NodeServices.js +23 -0
  351. package/dist/vendor/node/NodeSink.d.ts +9 -0
  352. package/dist/vendor/node/NodeSink.js +12 -0
  353. package/dist/vendor/node/NodeSocket.d.ts +45 -0
  354. package/dist/vendor/node/NodeSocket.js +31 -0
  355. package/dist/vendor/node/NodeSocketServer.d.ts +9 -0
  356. package/dist/vendor/node/NodeSocketServer.js +21 -0
  357. package/dist/vendor/node/NodeStdio.d.ts +12 -0
  358. package/dist/vendor/node/NodeStdio.js +10 -0
  359. package/dist/vendor/node/NodeStream.d.ts +9 -0
  360. package/dist/vendor/node/NodeStream.js +27 -0
  361. package/dist/vendor/node/NodeTerminal.d.ts +24 -0
  362. package/dist/vendor/node/NodeTerminal.js +10 -0
  363. package/dist/vendor/node/NodeWorker.d.ts +24 -0
  364. package/dist/vendor/node/NodeWorker.js +9 -0
  365. package/dist/vendor/node/NodeWorkerRunner.d.ts +13 -0
  366. package/dist/vendor/node/NodeWorkerRunner.js +7 -0
  367. package/dist/vendor/node/Undici.d.ts +31 -0
  368. package/dist/vendor/node/Undici.js +9 -0
  369. package/dist/vendor/node/index.d.ts +140 -0
  370. package/dist/vendor/node/index.js +130 -0
  371. package/dist/vendor/node-shared/LICENSE +21 -0
  372. package/dist/vendor/node-shared/NodeAddressResolver.d.ts +13 -0
  373. package/dist/vendor/node-shared/NodeAddressResolver.js +7 -0
  374. package/dist/vendor/node-shared/NodeChildProcessSpawner.d.ts +66 -0
  375. package/dist/vendor/node-shared/NodeChildProcessSpawner.js +13 -0
  376. package/dist/vendor/node-shared/NodeClusterSocket.d.ts +35 -0
  377. package/dist/vendor/node-shared/NodeClusterSocket.js +11 -0
  378. package/dist/vendor/node-shared/NodeCrypto.d.ts +30 -0
  379. package/dist/vendor/node-shared/NodeCrypto.js +9 -0
  380. package/dist/vendor/node-shared/NodeDatagramSocket.d.ts +246 -0
  381. package/dist/vendor/node-shared/NodeDatagramSocket.js +11 -0
  382. package/dist/vendor/node-shared/NodeDns.d.ts +221 -0
  383. package/dist/vendor/node-shared/NodeDns.js +31 -0
  384. package/dist/vendor/node-shared/NodeFileSystem.d.ts +12 -0
  385. package/dist/vendor/node-shared/NodeFileSystem.js +8 -0
  386. package/dist/vendor/node-shared/NodeHttpCompression.d.ts +40 -0
  387. package/dist/vendor/node-shared/NodeHttpCompression.js +13 -0
  388. package/dist/vendor/node-shared/NodePath.d.ts +30 -0
  389. package/dist/vendor/node-shared/NodePath.js +11 -0
  390. package/dist/vendor/node-shared/NodeRuntime.d.ts +51 -0
  391. package/dist/vendor/node-shared/NodeRuntime.js +7 -0
  392. package/dist/vendor/node-shared/NodeSink.d.ts +73 -0
  393. package/dist/vendor/node-shared/NodeSink.js +11 -0
  394. package/dist/vendor/node-shared/NodeSocket.d.ts +144 -0
  395. package/dist/vendor/node-shared/NodeSocket.js +23 -0
  396. package/dist/vendor/node-shared/NodeSocketServer.d.ts +87 -0
  397. package/dist/vendor/node-shared/NodeSocketServer.js +20 -0
  398. package/dist/vendor/node-shared/NodeStdio.d.ts +13 -0
  399. package/dist/vendor/node-shared/NodeStdio.js +9 -0
  400. package/dist/vendor/node-shared/NodeStream.d.ts +194 -0
  401. package/dist/vendor/node-shared/NodeStream.js +26 -0
  402. package/dist/vendor/node-shared/NodeTerminal.d.ts +24 -0
  403. package/dist/vendor/node-shared/NodeTerminal.js +9 -0
  404. package/dist/vendor/node-shared/index.d.ts +85 -0
  405. package/dist/vendor/node-shared/index.js +70 -0
  406. package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.d.ts +4 -0
  407. package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.js +7 -0
  408. package/dist/vendor/node-shared/internal/utils.d.ts +2 -0
  409. package/dist/vendor/node-shared/internal/utils.js +7 -0
  410. package/dist/vendor/platform-bun.d.ts +130 -0
  411. package/dist/vendor/platform-bun.js +121 -0
  412. package/dist/vendor/platform-node-shared.d.ts +85 -0
  413. package/dist/vendor/platform-node-shared.js +70 -0
  414. package/dist/vendor/platform-node.d.ts +140 -0
  415. package/dist/vendor/platform-node.js +130 -0
  416. package/docs/README.md +135 -0
  417. package/docs/api.md +264 -0
  418. package/docs/concepts/host-surface.md +152 -0
  419. package/docs/concepts/runtime-parity.md +80 -0
  420. package/docs/guides/bind-a-repository-root.md +109 -0
  421. package/docs/guides/configure-the-filesystem-helper.md +113 -0
  422. package/docs/guides/contain-child-processes.md +178 -0
  423. package/docs/installation.md +131 -0
  424. package/docs/quickstart.md +163 -0
  425. package/docs/troubleshooting.md +163 -0
  426. package/package.json +146 -3
  427. package/src/BunFileSystem.ts +47 -0
  428. package/src/BunHost.ts +345 -0
  429. package/src/index.ts +27 -0
@@ -0,0 +1,12 @@
1
+ import type * as Layer from "effect/Layer";
2
+ import type { Stdio } from "effect/Stdio";
3
+ /**
4
+ * Provides the `Stdio` service backed by the current process arguments,
5
+ * stdin, stdout, and stderr streams.
6
+ *
7
+ * @stability unstable
8
+ * @category layers
9
+ * @since 4.0.0
10
+ */
11
+ export declare const layer: Layer.Layer<Stdio>;
12
+ //# sourceMappingURL=BunStdio.d.ts.map
@@ -0,0 +1,10 @@
1
+ import {
2
+ layer
3
+ } from "../chunk-D6XNHJPW.js";
4
+ import "../chunk-226TYKP6.js";
5
+ import "../chunk-T5WDTZCE.js";
6
+ import "../chunk-DX4VFONH.js";
7
+ import "../chunk-MLKGABMK.js";
8
+ export {
9
+ layer
10
+ };
@@ -0,0 +1,20 @@
1
+ import { type LazyArg } from "effect/Function";
2
+ import * as Stream from "effect/Stream";
3
+ /**
4
+ * @since 4.0.0
5
+ */
6
+ export * from "../node-shared/NodeStream.js";
7
+ /**
8
+ * Creates a stream from a `ReadableStream` using Bun's optimized `.readMany`
9
+ * API.
10
+ *
11
+ * @stability unstable
12
+ * @category constructors
13
+ * @since 4.0.0
14
+ */
15
+ export declare const fromReadableStream: <A, E>(options: {
16
+ readonly evaluate: LazyArg<ReadableStream<A>>;
17
+ readonly onError: (error: unknown) => E;
18
+ readonly releaseLockOnEnd?: boolean | undefined;
19
+ }) => Stream.Stream<A, E>;
20
+ //# sourceMappingURL=BunStream.d.ts.map
@@ -0,0 +1,30 @@
1
+ import {
2
+ fromReadableStream
3
+ } from "../chunk-Q5UCOQNO.js";
4
+ import {
5
+ fromDuplex,
6
+ fromReadable,
7
+ fromReadableChannel,
8
+ pipeThroughDuplex,
9
+ pipeThroughSimple,
10
+ toArrayBuffer,
11
+ toReadable,
12
+ toReadableNever,
13
+ toString,
14
+ toUint8Array
15
+ } from "../chunk-T5WDTZCE.js";
16
+ import "../chunk-DX4VFONH.js";
17
+ import "../chunk-MLKGABMK.js";
18
+ export {
19
+ fromDuplex,
20
+ fromReadable,
21
+ fromReadableChannel,
22
+ fromReadableStream,
23
+ pipeThroughDuplex,
24
+ pipeThroughSimple,
25
+ toArrayBuffer,
26
+ toReadable,
27
+ toReadableNever,
28
+ toString,
29
+ toUint8Array
30
+ };
@@ -0,0 +1,24 @@
1
+ import type { Effect } from "effect/Effect";
2
+ import type { Layer } from "effect/Layer";
3
+ import type { Scope } from "effect/Scope";
4
+ import type { Terminal, UserInput } from "effect/Terminal";
5
+ /**
6
+ * Creates a scoped `Terminal` service backed by process stdin/stdout.
7
+ * By default, Esc, Ctrl+C, and Ctrl+D end key input. Supply `shouldQuit` to
8
+ * override these quit keys.
9
+ *
10
+ * @stability unstable
11
+ * @category constructors
12
+ * @since 4.0.0
13
+ */
14
+ export declare const make: (shouldQuit?: (input: UserInput) => boolean) => Effect<Terminal, never, Scope>;
15
+ /**
16
+ * Provides the default process-backed `Terminal` service, ending key input on
17
+ * bare Esc, Ctrl+C, or Ctrl+D.
18
+ *
19
+ * @stability unstable
20
+ * @category layers
21
+ * @since 4.0.0
22
+ */
23
+ export declare const layer: Layer<Terminal>;
24
+ //# sourceMappingURL=BunTerminal.d.ts.map
@@ -0,0 +1,10 @@
1
+ import {
2
+ layer,
3
+ make
4
+ } from "../chunk-HXGVOKHF.js";
5
+ import "../chunk-FIPFWLCV.js";
6
+ import "../chunk-MLKGABMK.js";
7
+ export {
8
+ layer,
9
+ make
10
+ };
@@ -0,0 +1,22 @@
1
+ import * as Layer from "effect/Layer";
2
+ import * as Worker from "effect/workers/Worker";
3
+ /**
4
+ * Provides the Bun `WorkerPlatform` together with a `Worker.Spawner` created
5
+ * from the supplied worker spawning function.
6
+ *
7
+ * @stability unstable
8
+ * @category layers
9
+ * @since 4.0.0
10
+ */
11
+ export declare const layer: (spawn: (id: number) => globalThis.Worker) => Layer.Layer<Worker.WorkerPlatform | Worker.Spawner>;
12
+ /**
13
+ * Provides the Bun `WorkerPlatform`, wiring worker messages and errors into
14
+ * Effect workers and requesting graceful worker shutdown during scope
15
+ * finalization before terminating on timeout.
16
+ *
17
+ * @stability unstable
18
+ * @category layers
19
+ * @since 4.0.0
20
+ */
21
+ export declare const layerPlatform: Layer.Layer<Worker.WorkerPlatform, never, never>;
22
+ //# sourceMappingURL=BunWorker.d.ts.map
@@ -0,0 +1,9 @@
1
+ import {
2
+ layer,
3
+ layerPlatform
4
+ } from "../chunk-7VJC3PHX.js";
5
+ import "../chunk-MLKGABMK.js";
6
+ export {
7
+ layer,
8
+ layerPlatform
9
+ };
@@ -0,0 +1,13 @@
1
+ import * as Layer from "effect/Layer";
2
+ import * as WorkerRunner from "effect/workers/WorkerRunner";
3
+ /**
4
+ * Provides the `WorkerRunnerPlatform` for code running inside a Bun worker,
5
+ * routing parent messages to the registered handler and sending responses back
6
+ * through the worker port.
7
+ *
8
+ * @stability unstable
9
+ * @category layers
10
+ * @since 4.0.0
11
+ */
12
+ export declare const layer: Layer.Layer<WorkerRunner.WorkerRunnerPlatform>;
13
+ //# sourceMappingURL=BunWorkerRunner.d.ts.map
@@ -0,0 +1,7 @@
1
+ import {
2
+ layer
3
+ } from "../chunk-6B775XB2.js";
4
+ import "../chunk-MLKGABMK.js";
5
+ export {
6
+ layer
7
+ };
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Effectful Technologies Inc
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 all
13
+ 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 THE
21
+ SOFTWARE.
@@ -0,0 +1,130 @@
1
+ /**
2
+ * @stability unstable
3
+ * @since 4.0.0
4
+ */
5
+ /**
6
+ * @stability experimental
7
+ * @since 4.0.0
8
+ */
9
+ export * as BunAddressResolver from "./BunAddressResolver.ts";
10
+ /**
11
+ * @stability unstable
12
+ * @since 4.0.0
13
+ */
14
+ export * as BunChildProcessSpawner from "./BunChildProcessSpawner.ts";
15
+ /**
16
+ * @stability unstable
17
+ * @since 4.0.0
18
+ */
19
+ export * as BunClusterHttp from "./BunClusterHttp.ts";
20
+ /**
21
+ * @stability unstable
22
+ * @since 4.0.0
23
+ */
24
+ export * as BunClusterSocket from "./BunClusterSocket.ts";
25
+ /**
26
+ * @stability unstable
27
+ * @since 1.0.0
28
+ */
29
+ export * as BunCrypto from "./BunCrypto.ts";
30
+ /**
31
+ * @stability experimental
32
+ * @since 4.0.0
33
+ */
34
+ export * as BunDatagramSocket from "./BunDatagramSocket.ts";
35
+ /**
36
+ * @stability experimental
37
+ * @since 4.0.0
38
+ */
39
+ export * as BunDns from "./BunDns.ts";
40
+ /**
41
+ * @stability unstable
42
+ * @since 4.0.0
43
+ */
44
+ export * as BunFileSystem from "./BunFileSystem.ts";
45
+ /**
46
+ * @stability unstable
47
+ * @since 4.0.0
48
+ */
49
+ export * as BunHttpClient from "./BunHttpClient.ts";
50
+ /**
51
+ * @stability unstable
52
+ * @since 4.0.0
53
+ */
54
+ export * as BunHttpPlatform from "./BunHttpPlatform.ts";
55
+ /**
56
+ * @stability unstable
57
+ * @since 4.0.0
58
+ */
59
+ export * as BunHttpServer from "./BunHttpServer.ts";
60
+ /**
61
+ * @stability unstable
62
+ * @since 4.0.0
63
+ */
64
+ export * as BunHttpServerRequest from "./BunHttpServerRequest.ts";
65
+ /**
66
+ * @stability unstable
67
+ * @since 4.0.0
68
+ */
69
+ export * as BunMultipart from "./BunMultipart.ts";
70
+ /**
71
+ * @stability unstable
72
+ * @since 4.0.0
73
+ */
74
+ export * as BunPath from "./BunPath.ts";
75
+ /**
76
+ * @stability unstable
77
+ * @since 4.0.0
78
+ */
79
+ export * as BunRedis from "./BunRedis.ts";
80
+ /**
81
+ * @stability unstable
82
+ * @since 4.0.0
83
+ */
84
+ export * as BunRuntime from "./BunRuntime.ts";
85
+ /**
86
+ * @stability unstable
87
+ * @since 4.0.0
88
+ */
89
+ export * as BunServices from "./BunServices.ts";
90
+ /**
91
+ * @stability unstable
92
+ * @since 4.0.0
93
+ */
94
+ export * as BunSink from "./BunSink.ts";
95
+ /**
96
+ * @stability unstable
97
+ * @since 4.0.0
98
+ */
99
+ export * as BunSocket from "./BunSocket.ts";
100
+ /**
101
+ * @stability unstable
102
+ * @since 4.0.0
103
+ */
104
+ export * as BunSocketServer from "./BunSocketServer.ts";
105
+ /**
106
+ * @stability unstable
107
+ * @since 4.0.0
108
+ */
109
+ export * as BunStdio from "./BunStdio.ts";
110
+ /**
111
+ * @stability unstable
112
+ * @since 4.0.0
113
+ */
114
+ export * as BunStream from "./BunStream.ts";
115
+ /**
116
+ * @stability unstable
117
+ * @since 4.0.0
118
+ */
119
+ export * as BunTerminal from "./BunTerminal.ts";
120
+ /**
121
+ * @stability unstable
122
+ * @since 4.0.0
123
+ */
124
+ export * as BunWorker from "./BunWorker.ts";
125
+ /**
126
+ * @stability unstable
127
+ * @since 4.0.0
128
+ */
129
+ export * as BunWorkerRunner from "./BunWorkerRunner.ts";
130
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,121 @@
1
+ import "../chunk-LOB26XOO.js";
2
+ import {
3
+ BunWorkerRunner_exports
4
+ } from "../chunk-6B775XB2.js";
5
+ import {
6
+ BunSink_exports
7
+ } from "../chunk-CN4K2U6M.js";
8
+ import {
9
+ BunSocketServer_exports
10
+ } from "../chunk-OAY4MA3I.js";
11
+ import {
12
+ BunWorker_exports
13
+ } from "../chunk-7VJC3PHX.js";
14
+ import {
15
+ BunHttpClient_exports
16
+ } from "../chunk-BTXZUHUI.js";
17
+ import {
18
+ BunHttpServerRequest_exports
19
+ } from "../chunk-ABPRHPJP.js";
20
+ import {
21
+ BunRedis_exports
22
+ } from "../chunk-BIR74JJK.js";
23
+ import {
24
+ BunRuntime_exports
25
+ } from "../chunk-NU53DHQR.js";
26
+ import "../chunk-BHV44Z6K.js";
27
+ import {
28
+ BunAddressResolver_exports
29
+ } from "../chunk-K6GWBGJM.js";
30
+ import "../chunk-AW6WQVI7.js";
31
+ import {
32
+ BunClusterHttp_exports
33
+ } from "../chunk-NGGMPIWR.js";
34
+ import {
35
+ BunSocket_exports
36
+ } from "../chunk-RX5TKFP7.js";
37
+ import {
38
+ BunHttpServer_exports
39
+ } from "../chunk-BVV46N3V.js";
40
+ import {
41
+ BunServices_exports
42
+ } from "../chunk-IJON5WTO.js";
43
+ import {
44
+ BunStdio_exports
45
+ } from "../chunk-D6XNHJPW.js";
46
+ import "../chunk-226TYKP6.js";
47
+ import {
48
+ BunTerminal_exports
49
+ } from "../chunk-HXGVOKHF.js";
50
+ import "../chunk-FIPFWLCV.js";
51
+ import {
52
+ BunHttpPlatform_exports
53
+ } from "../chunk-VS6VBUH6.js";
54
+ import "../chunk-PBM2HJOX.js";
55
+ import {
56
+ BunMultipart_exports
57
+ } from "../chunk-C7UMBJO6.js";
58
+ import {
59
+ BunStream_exports
60
+ } from "../chunk-Q5UCOQNO.js";
61
+ import {
62
+ BunPath_exports
63
+ } from "../chunk-7ZKNPDTP.js";
64
+ import "../chunk-JTST2Z7N.js";
65
+ import {
66
+ BunChildProcessSpawner_exports
67
+ } from "../chunk-JYD572EF.js";
68
+ import "../chunk-IXI7RW3A.js";
69
+ import "../chunk-TBMTA5LD.js";
70
+ import "../chunk-T5WDTZCE.js";
71
+ import "../chunk-DX4VFONH.js";
72
+ import {
73
+ BunClusterSocket_exports
74
+ } from "../chunk-EIO7BKW3.js";
75
+ import "../chunk-M2QOSF47.js";
76
+ import "../chunk-UXIG7ALP.js";
77
+ import "../chunk-Q7YXUH7M.js";
78
+ import {
79
+ BunCrypto_exports
80
+ } from "../chunk-2ADOI6ZN.js";
81
+ import "../chunk-4O4Z52A2.js";
82
+ import {
83
+ BunDatagramSocket_exports
84
+ } from "../chunk-HYPKWCVW.js";
85
+ import {
86
+ BunDns_exports
87
+ } from "../chunk-XAZH2ZEU.js";
88
+ import "../chunk-R2PFJKSP.js";
89
+ import {
90
+ BunFileSystem_exports
91
+ } from "../chunk-QR2ZOVOL.js";
92
+ import "../chunk-7JOAEKDV.js";
93
+ import "../chunk-3SUO3TTE.js";
94
+ import "../chunk-MLKGABMK.js";
95
+ export {
96
+ BunAddressResolver_exports as BunAddressResolver,
97
+ BunChildProcessSpawner_exports as BunChildProcessSpawner,
98
+ BunClusterHttp_exports as BunClusterHttp,
99
+ BunClusterSocket_exports as BunClusterSocket,
100
+ BunCrypto_exports as BunCrypto,
101
+ BunDatagramSocket_exports as BunDatagramSocket,
102
+ BunDns_exports as BunDns,
103
+ BunFileSystem_exports as BunFileSystem,
104
+ BunHttpClient_exports as BunHttpClient,
105
+ BunHttpPlatform_exports as BunHttpPlatform,
106
+ BunHttpServer_exports as BunHttpServer,
107
+ BunHttpServerRequest_exports as BunHttpServerRequest,
108
+ BunMultipart_exports as BunMultipart,
109
+ BunPath_exports as BunPath,
110
+ BunRedis_exports as BunRedis,
111
+ BunRuntime_exports as BunRuntime,
112
+ BunServices_exports as BunServices,
113
+ BunSink_exports as BunSink,
114
+ BunSocket_exports as BunSocket,
115
+ BunSocketServer_exports as BunSocketServer,
116
+ BunStdio_exports as BunStdio,
117
+ BunStream_exports as BunStream,
118
+ BunTerminal_exports as BunTerminal,
119
+ BunWorker_exports as BunWorker,
120
+ BunWorkerRunner_exports as BunWorkerRunner
121
+ };
@@ -0,0 +1,60 @@
1
+ import {
2
+ fromReadable
3
+ } from "./chunk-T5WDTZCE.js";
4
+ import {
5
+ fromWritable
6
+ } from "./chunk-DX4VFONH.js";
7
+ import {
8
+ __export
9
+ } from "./chunk-MLKGABMK.js";
10
+
11
+ // ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.5_effect@4.0.5/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
12
+ var NodeStdio_exports = {};
13
+ __export(NodeStdio_exports, {
14
+ layer: () => layer
15
+ });
16
+ import * as Effect from "effect/Effect";
17
+ import * as Layer from "effect/Layer";
18
+ import { systemError } from "effect/PlatformError";
19
+ import * as Stdio from "effect/Stdio";
20
+ var layer = /* @__PURE__ */ Layer.succeed(Stdio.Stdio, /* @__PURE__ */ Stdio.make({
21
+ args: /* @__PURE__ */ Effect.sync(() => process.argv.slice(2)),
22
+ stdinIsTerminal: /* @__PURE__ */ Effect.sync(() => process.stdin.isTTY === true),
23
+ stdoutIsTerminal: /* @__PURE__ */ Effect.sync(() => process.stdout.isTTY === true),
24
+ stderrIsTerminal: /* @__PURE__ */ Effect.sync(() => process.stderr.isTTY === true),
25
+ stdout: (options) => fromWritable({
26
+ evaluate: () => process.stdout,
27
+ onError: (cause) => systemError({
28
+ module: "Stdio",
29
+ method: "stdout",
30
+ _tag: "Unknown",
31
+ cause
32
+ }),
33
+ endOnDone: options?.endOnDone ?? false
34
+ }),
35
+ stderr: (options) => fromWritable({
36
+ evaluate: () => process.stderr,
37
+ onError: (cause) => systemError({
38
+ module: "Stdio",
39
+ method: "stderr",
40
+ _tag: "Unknown",
41
+ cause
42
+ }),
43
+ endOnDone: options?.endOnDone ?? false
44
+ }),
45
+ stdin: /* @__PURE__ */ fromReadable({
46
+ evaluate: () => process.stdin,
47
+ onError: (cause) => systemError({
48
+ module: "Stdio",
49
+ method: "stdin",
50
+ _tag: "Unknown",
51
+ cause
52
+ }),
53
+ closeOnDone: false
54
+ })
55
+ }));
56
+
57
+ export {
58
+ layer,
59
+ NodeStdio_exports
60
+ };
@@ -0,0 +1,18 @@
1
+ import {
2
+ layer
3
+ } from "./chunk-4O4Z52A2.js";
4
+ import {
5
+ __export
6
+ } from "./chunk-MLKGABMK.js";
7
+
8
+ // ../../../../node_modules/.pnpm/@effect+platform-bun@4.0.5_effect@4.0.5/node_modules/@effect/platform-bun/dist/BunCrypto.js
9
+ var BunCrypto_exports = {};
10
+ __export(BunCrypto_exports, {
11
+ layer: () => layer2
12
+ });
13
+ var layer2 = layer;
14
+
15
+ export {
16
+ layer2 as layer,
17
+ BunCrypto_exports
18
+ };
@@ -0,0 +1,71 @@
1
+ import {
2
+ Dispatcher,
3
+ layerUndiciNoDispatcher,
4
+ makeDispatcher
5
+ } from "./chunk-V577GRCI.js";
6
+ import {
7
+ layer as layer2
8
+ } from "./chunk-WNS3OER2.js";
9
+ import {
10
+ layer
11
+ } from "./chunk-ZJEHEPDQ.js";
12
+ import {
13
+ layerClientProtocol,
14
+ layerSocketServer
15
+ } from "./chunk-M2QOSF47.js";
16
+ import {
17
+ __export
18
+ } from "./chunk-MLKGABMK.js";
19
+
20
+ // ../../../../node_modules/.pnpm/@effect+platform-node@4.0.5_effect@4.0.5_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeClusterSocket.js
21
+ var NodeClusterSocket_exports = {};
22
+ __export(NodeClusterSocket_exports, {
23
+ layer: () => layer7,
24
+ layerClientProtocol: () => layerClientProtocol,
25
+ layerDispatcherK8s: () => layerDispatcherK8s,
26
+ layerK8sHttpClient: () => layerK8sHttpClient,
27
+ layerSocketServer: () => layerSocketServer
28
+ });
29
+ import * as K8sHttpClient from "effect/cluster/K8sHttpClient";
30
+ import * as MessageStorage from "effect/cluster/MessageStorage";
31
+ import * as RunnerHealth from "effect/cluster/RunnerHealth";
32
+ import * as Runners from "effect/cluster/Runners";
33
+ import * as RunnerStorage from "effect/cluster/RunnerStorage";
34
+ import * as ShardingConfig from "effect/cluster/ShardingConfig";
35
+ import * as SocketRunner from "effect/cluster/SocketRunner";
36
+ import * as SqlMessageStorage from "effect/cluster/SqlMessageStorage";
37
+ import * as SqlRunnerStorage from "effect/cluster/SqlRunnerStorage";
38
+ import * as Effect from "effect/Effect";
39
+ import * as FileSystem from "effect/FileSystem";
40
+ import * as Layer from "effect/Layer";
41
+ import * as RpcSerialization from "effect/rpc/RpcSerialization";
42
+ var layer7 = (options) => {
43
+ const layer8 = options?.clientOnly ? Layer.provide(SocketRunner.layerClientOnly, layerClientProtocol) : Layer.provide(SocketRunner.layer, [layerSocketServer, layerClientProtocol]);
44
+ const runnerHealth = options?.clientOnly ? Layer.empty : options?.runnerHealth === "k8s" ? RunnerHealth.layerK8s(options.runnerHealthK8s).pipe(Layer.provide(layerK8sHttpClient)) : RunnerHealth.layerPing.pipe(Layer.provide(Runners.layerRpc), Layer.provide(layerClientProtocol));
45
+ return layer8.pipe(Layer.provide(runnerHealth), Layer.provideMerge(options?.storage === "local" ? MessageStorage.layerNoop : options?.storage === "byo" ? Layer.empty : Layer.orDie(SqlMessageStorage.layer).pipe(Layer.provide(layer))), Layer.provide(options?.storage === "local" ? RunnerStorage.layerMemory : options?.storage === "byo" ? Layer.empty : Layer.orDie(SqlRunnerStorage.layer)), Layer.provide(ShardingConfig.layerFromEnv(options?.shardingConfig)), Layer.provide(options?.serialization === "ndjson" ? RpcSerialization.layerNdjsonWith({
46
+ maxBufferSize: options?.serializationMaxBufferSize
47
+ }) : RpcSerialization.layerSchemaBinary({
48
+ maxFrameSize: options?.serializationMaxBufferSize
49
+ })));
50
+ };
51
+ var layerDispatcherK8s = /* @__PURE__ */ Layer.effect(Dispatcher)(Effect.gen(function* () {
52
+ const fs = yield* FileSystem.FileSystem;
53
+ const caCertOption = yield* fs.readFileString("/var/run/secrets/kubernetes.io/serviceaccount/ca.crt").pipe(Effect.option);
54
+ if (caCertOption._tag === "Some") {
55
+ const Undici = yield* Effect.promise(() => import("./node/Undici.js"));
56
+ return yield* Effect.acquireRelease(Effect.sync(() => new Undici.Agent({
57
+ connect: {
58
+ ca: caCertOption.value
59
+ }
60
+ })), (agent) => Effect.promise(() => agent.destroy()));
61
+ }
62
+ return yield* makeDispatcher;
63
+ })).pipe(/* @__PURE__ */ Layer.provide(layer2));
64
+ var layerK8sHttpClient = /* @__PURE__ */ K8sHttpClient.layer.pipe(/* @__PURE__ */ Layer.provide(/* @__PURE__ */ Layer.fresh(layerUndiciNoDispatcher)), /* @__PURE__ */ Layer.provide(layerDispatcherK8s), /* @__PURE__ */ Layer.provide(layer2));
65
+
66
+ export {
67
+ layer7 as layer,
68
+ layerDispatcherK8s,
69
+ layerK8sHttpClient,
70
+ NodeClusterSocket_exports
71
+ };
@@ -0,0 +1,20 @@
1
+ import {
2
+ layer,
3
+ layerConfig,
4
+ make
5
+ } from "./chunk-R2PFJKSP.js";
6
+ import {
7
+ __export
8
+ } from "./chunk-MLKGABMK.js";
9
+
10
+ // ../../../../node_modules/.pnpm/@effect+platform-node@4.0.5_effect@4.0.5_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeDns.js
11
+ var NodeDns_exports = {};
12
+ __export(NodeDns_exports, {
13
+ layer: () => layer,
14
+ layerConfig: () => layerConfig,
15
+ make: () => make
16
+ });
17
+
18
+ export {
19
+ NodeDns_exports
20
+ };
@@ -0,0 +1,40 @@
1
+ // ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.5_effect@4.0.5/node_modules/@effect/platform-node-shared/dist/internal/utils.js
2
+ import * as PlatformError from "effect/PlatformError";
3
+ var handleErrnoException = (module, method) => (err, [path]) => {
4
+ let reason = "Unknown";
5
+ switch (err.code) {
6
+ case "ENOENT":
7
+ reason = "NotFound";
8
+ break;
9
+ case "EACCES":
10
+ reason = "PermissionDenied";
11
+ break;
12
+ case "EEXIST":
13
+ reason = "AlreadyExists";
14
+ break;
15
+ case "EISDIR":
16
+ reason = "BadResource";
17
+ break;
18
+ case "ENOTDIR":
19
+ reason = "BadResource";
20
+ break;
21
+ case "EBUSY":
22
+ reason = "Busy";
23
+ break;
24
+ case "ELOOP":
25
+ reason = "BadResource";
26
+ break;
27
+ }
28
+ return PlatformError.systemError({
29
+ _tag: reason,
30
+ module,
31
+ method,
32
+ pathOrDescriptor: path,
33
+ syscall: err.syscall,
34
+ cause: err
35
+ });
36
+ };
37
+
38
+ export {
39
+ handleErrnoException
40
+ };