@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.
- package/CHANGELOG.md +73 -0
- package/LICENSE +21 -0
- package/README.md +110 -2
- package/dist/cjs/BunFileSystem.d.ts +44 -0
- package/dist/cjs/BunFileSystem.d.ts.map +1 -0
- package/dist/cjs/BunFileSystem.js +38 -0
- package/dist/cjs/BunFileSystem.js.map +7 -0
- package/dist/cjs/BunHost.d.ts +205 -0
- package/dist/cjs/BunHost.d.ts.map +1 -0
- package/dist/cjs/BunHost.js +148 -0
- package/dist/cjs/BunHost.js.map +7 -0
- package/dist/cjs/index.d.ts +26 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +37 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/BunFileSystem.d.ts +44 -0
- package/dist/esm/BunFileSystem.d.ts.map +1 -0
- package/dist/esm/BunFileSystem.js +35 -0
- package/dist/esm/BunFileSystem.js.map +1 -0
- package/dist/esm/BunHost.d.ts +205 -0
- package/dist/esm/BunHost.d.ts.map +1 -0
- package/dist/esm/BunHost.js +248 -0
- package/dist/esm/BunHost.js.map +1 -0
- package/dist/esm/index.d.ts +26 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +26 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/vendor/adapters.json +3067 -0
- package/dist/vendor/bun/BunAddressResolver.d.ts +15 -0
- package/dist/vendor/bun/BunAddressResolver.js +8 -0
- package/dist/vendor/bun/BunChildProcessSpawner.d.ts +8 -0
- package/dist/vendor/bun/BunChildProcessSpawner.js +14 -0
- package/dist/vendor/bun/BunClusterHttp.d.ts +76 -0
- package/dist/vendor/bun/BunClusterHttp.js +39 -0
- package/dist/vendor/bun/BunClusterSocket.d.ts +70 -0
- package/dist/vendor/bun/BunClusterSocket.js +22 -0
- package/dist/vendor/bun/BunCrypto.d.ts +11 -0
- package/dist/vendor/bun/BunCrypto.js +8 -0
- package/dist/vendor/bun/BunDatagramSocket.d.ts +227 -0
- package/dist/vendor/bun/BunDatagramSocket.js +11 -0
- package/dist/vendor/bun/BunDns.d.ts +72 -0
- package/dist/vendor/bun/BunDns.js +12 -0
- package/dist/vendor/bun/BunFileSystem.d.ts +11 -0
- package/dist/vendor/bun/BunFileSystem.js +9 -0
- package/dist/vendor/bun/BunHttpClient.d.ts +10 -0
- package/dist/vendor/bun/BunHttpClient.js +1 -0
- package/dist/vendor/bun/BunHttpPlatform.d.ts +11 -0
- package/dist/vendor/bun/BunHttpPlatform.js +11 -0
- package/dist/vendor/bun/BunHttpServer.d.ts +151 -0
- package/dist/vendor/bun/BunHttpServer.js +38 -0
- package/dist/vendor/bun/BunHttpServerRequest.d.ts +20 -0
- package/dist/vendor/bun/BunHttpServerRequest.js +7 -0
- package/dist/vendor/bun/BunMultipart.d.ts +34 -0
- package/dist/vendor/bun/BunMultipart.js +12 -0
- package/dist/vendor/bun/BunPath.d.ts +27 -0
- package/dist/vendor/bun/BunPath.js +12 -0
- package/dist/vendor/bun/BunRedis.d.ts +53 -0
- package/dist/vendor/bun/BunRedis.js +11 -0
- package/dist/vendor/bun/BunRuntime.d.ts +88 -0
- package/dist/vendor/bun/BunRuntime.js +8 -0
- package/dist/vendor/bun/BunServices.d.ts +37 -0
- package/dist/vendor/bun/BunServices.js +23 -0
- package/dist/vendor/bun/BunSink.d.ts +9 -0
- package/dist/vendor/bun/BunSink.js +12 -0
- package/dist/vendor/bun/BunSocket.d.ts +45 -0
- package/dist/vendor/bun/BunSocket.js +29 -0
- package/dist/vendor/bun/BunSocketServer.d.ts +9 -0
- package/dist/vendor/bun/BunSocketServer.js +21 -0
- package/dist/vendor/bun/BunStdio.d.ts +12 -0
- package/dist/vendor/bun/BunStdio.js +10 -0
- package/dist/vendor/bun/BunStream.d.ts +20 -0
- package/dist/vendor/bun/BunStream.js +30 -0
- package/dist/vendor/bun/BunTerminal.d.ts +24 -0
- package/dist/vendor/bun/BunTerminal.js +10 -0
- package/dist/vendor/bun/BunWorker.d.ts +22 -0
- package/dist/vendor/bun/BunWorker.js +9 -0
- package/dist/vendor/bun/BunWorkerRunner.d.ts +13 -0
- package/dist/vendor/bun/BunWorkerRunner.js +7 -0
- package/dist/vendor/bun/LICENSE +21 -0
- package/dist/vendor/bun/index.d.ts +130 -0
- package/dist/vendor/bun/index.js +121 -0
- package/dist/vendor/chunk-226TYKP6.js +60 -0
- package/dist/vendor/chunk-2ADOI6ZN.js +18 -0
- package/dist/vendor/chunk-2AP6TO77.js +71 -0
- package/dist/vendor/chunk-2LGUVSNM.js +20 -0
- package/dist/vendor/chunk-3SUO3TTE.js +40 -0
- package/dist/vendor/chunk-4O4Z52A2.js +48 -0
- package/dist/vendor/chunk-4YK2MHSO.js +20 -0
- package/dist/vendor/chunk-6B775XB2.js +85 -0
- package/dist/vendor/chunk-6KYVM2ZC.js +419 -0
- package/dist/vendor/chunk-6QPSLCUZ.js +0 -0
- package/dist/vendor/chunk-6R444NFO.js +104 -0
- package/dist/vendor/chunk-7JOAEKDV.js +503 -0
- package/dist/vendor/chunk-7VJC3PHX.js +63 -0
- package/dist/vendor/chunk-7ZKNPDTP.js +26 -0
- package/dist/vendor/chunk-ABPRHPJP.js +15 -0
- package/dist/vendor/chunk-AMAL6TRE.js +93 -0
- package/dist/vendor/chunk-AW6WQVI7.js +29 -0
- package/dist/vendor/chunk-BHV44Z6K.js +36 -0
- package/dist/vendor/chunk-BIR74JJK.js +93 -0
- package/dist/vendor/chunk-BTXZUHUI.js +7 -0
- package/dist/vendor/chunk-BVV46N3V.js +515 -0
- package/dist/vendor/chunk-C7UMBJO6.js +31 -0
- package/dist/vendor/chunk-CN4K2U6M.js +20 -0
- package/dist/vendor/chunk-D6XNHJPW.js +18 -0
- package/dist/vendor/chunk-DHTPLWAP.js +34 -0
- package/dist/vendor/chunk-DWSNOBD4.js +18 -0
- package/dist/vendor/chunk-DX4VFONH.js +81 -0
- package/dist/vendor/chunk-EIO7BKW3.js +63 -0
- package/dist/vendor/chunk-FIPFWLCV.js +144 -0
- package/dist/vendor/chunk-GITB76ZP.js +22 -0
- package/dist/vendor/chunk-GMORYZG4.js +62 -0
- package/dist/vendor/chunk-HXGVOKHF.js +22 -0
- package/dist/vendor/chunk-HYPKWCVW.js +374 -0
- package/dist/vendor/chunk-IJON5WTO.js +34 -0
- package/dist/vendor/chunk-IXI7RW3A.js +580 -0
- package/dist/vendor/chunk-J43O5GFH.js +28 -0
- package/dist/vendor/chunk-JTST2Z7N.js +58 -0
- package/dist/vendor/chunk-JYD572EF.js +18 -0
- package/dist/vendor/chunk-K6GWBGJM.js +16 -0
- package/dist/vendor/chunk-KANNAI65.js +62 -0
- package/dist/vendor/chunk-KEMBVIRS.js +128 -0
- package/dist/vendor/chunk-LOB26XOO.js +0 -0
- package/dist/vendor/chunk-M2QOSF47.js +53 -0
- package/dist/vendor/chunk-MLKGABMK.js +9 -0
- package/dist/vendor/chunk-NGGMPIWR.js +65 -0
- package/dist/vendor/chunk-NNTJGFLB.js +21 -0
- package/dist/vendor/chunk-NU53DHQR.js +18 -0
- package/dist/vendor/chunk-OAY4MA3I.js +28 -0
- package/dist/vendor/chunk-OV2KKGBA.js +16 -0
- package/dist/vendor/chunk-PBM2HJOX.js +118 -0
- package/dist/vendor/chunk-Q5UCOQNO.js +70 -0
- package/dist/vendor/chunk-Q7YXUH7M.js +414 -0
- package/dist/vendor/chunk-QKYYD3AZ.js +131 -0
- package/dist/vendor/chunk-QLI7T34M.js +18 -0
- package/dist/vendor/chunk-QR2ZOVOL.js +18 -0
- package/dist/vendor/chunk-R2PFJKSP.js +274 -0
- package/dist/vendor/chunk-RX5TKFP7.js +51 -0
- package/dist/vendor/chunk-S3MN5OXB.js +34 -0
- package/dist/vendor/chunk-T5WDTZCE.js +249 -0
- package/dist/vendor/chunk-TBMTA5LD.js +14 -0
- package/dist/vendor/chunk-TCKM3JXD.js +325 -0
- package/dist/vendor/chunk-UXIG7ALP.js +229 -0
- package/dist/vendor/chunk-V577GRCI.js +438 -0
- package/dist/vendor/chunk-VS6VBUH6.js +57 -0
- package/dist/vendor/chunk-WGUQHMX2.js +18 -0
- package/dist/vendor/chunk-WNS3OER2.js +18 -0
- package/dist/vendor/chunk-X6FYP2EH.js +109 -0
- package/dist/vendor/chunk-XAVBQY4D.js +20 -0
- package/dist/vendor/chunk-XAZH2ZEU.js +43 -0
- package/dist/vendor/chunk-XDPP24MG.js +129 -0
- package/dist/vendor/chunk-XF3WZCMZ.js +26 -0
- package/dist/vendor/chunk-XXVMTKX5.js +0 -0
- package/dist/vendor/chunk-YJGNV6EV.js +85 -0
- package/dist/vendor/chunk-ZJEHEPDQ.js +18 -0
- package/dist/vendor/cjs/bun/BunAddressResolver.d.ts +15 -0
- package/dist/vendor/cjs/bun/BunAddressResolver.js +1 -0
- package/dist/vendor/cjs/bun/BunChildProcessSpawner.d.ts +8 -0
- package/dist/vendor/cjs/bun/BunChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/bun/BunClusterHttp.d.ts +76 -0
- package/dist/vendor/cjs/bun/BunClusterHttp.js +1 -0
- package/dist/vendor/cjs/bun/BunClusterSocket.d.ts +70 -0
- package/dist/vendor/cjs/bun/BunClusterSocket.js +1 -0
- package/dist/vendor/cjs/bun/BunCrypto.d.ts +11 -0
- package/dist/vendor/cjs/bun/BunCrypto.js +1 -0
- package/dist/vendor/cjs/bun/BunDatagramSocket.d.ts +227 -0
- package/dist/vendor/cjs/bun/BunDatagramSocket.js +1 -0
- package/dist/vendor/cjs/bun/BunDns.d.ts +72 -0
- package/dist/vendor/cjs/bun/BunDns.js +1 -0
- package/dist/vendor/cjs/bun/BunFileSystem.d.ts +11 -0
- package/dist/vendor/cjs/bun/BunFileSystem.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpClient.d.ts +10 -0
- package/dist/vendor/cjs/bun/BunHttpClient.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpPlatform.d.ts +11 -0
- package/dist/vendor/cjs/bun/BunHttpPlatform.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpServer.d.ts +151 -0
- package/dist/vendor/cjs/bun/BunHttpServer.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpServerRequest.d.ts +20 -0
- package/dist/vendor/cjs/bun/BunHttpServerRequest.js +1 -0
- package/dist/vendor/cjs/bun/BunMultipart.d.ts +34 -0
- package/dist/vendor/cjs/bun/BunMultipart.js +1 -0
- package/dist/vendor/cjs/bun/BunPath.d.ts +27 -0
- package/dist/vendor/cjs/bun/BunPath.js +1 -0
- package/dist/vendor/cjs/bun/BunRedis.d.ts +53 -0
- package/dist/vendor/cjs/bun/BunRedis.js +1 -0
- package/dist/vendor/cjs/bun/BunRuntime.d.ts +88 -0
- package/dist/vendor/cjs/bun/BunRuntime.js +1 -0
- package/dist/vendor/cjs/bun/BunServices.d.ts +37 -0
- package/dist/vendor/cjs/bun/BunServices.js +1 -0
- package/dist/vendor/cjs/bun/BunSink.d.ts +9 -0
- package/dist/vendor/cjs/bun/BunSink.js +1 -0
- package/dist/vendor/cjs/bun/BunSocket.d.ts +45 -0
- package/dist/vendor/cjs/bun/BunSocket.js +1 -0
- package/dist/vendor/cjs/bun/BunSocketServer.d.ts +9 -0
- package/dist/vendor/cjs/bun/BunSocketServer.js +1 -0
- package/dist/vendor/cjs/bun/BunStdio.d.ts +12 -0
- package/dist/vendor/cjs/bun/BunStdio.js +1 -0
- package/dist/vendor/cjs/bun/BunStream.d.ts +20 -0
- package/dist/vendor/cjs/bun/BunStream.js +1 -0
- package/dist/vendor/cjs/bun/BunTerminal.d.ts +24 -0
- package/dist/vendor/cjs/bun/BunTerminal.js +1 -0
- package/dist/vendor/cjs/bun/BunWorker.d.ts +22 -0
- package/dist/vendor/cjs/bun/BunWorker.js +1 -0
- package/dist/vendor/cjs/bun/BunWorkerRunner.d.ts +13 -0
- package/dist/vendor/cjs/bun/BunWorkerRunner.js +1 -0
- package/dist/vendor/cjs/bun/index.d.ts +130 -0
- package/dist/vendor/cjs/bun/index.js +1 -0
- package/dist/vendor/cjs/node/NodeAddressResolver.d.ts +16 -0
- package/dist/vendor/cjs/node/NodeAddressResolver.js +1 -0
- package/dist/vendor/cjs/node/NodeChildProcessSpawner.d.ts +8 -0
- package/dist/vendor/cjs/node/NodeChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/node/NodeClusterHttp.d.ts +54 -0
- package/dist/vendor/cjs/node/NodeClusterHttp.js +1 -0
- package/dist/vendor/cjs/node/NodeClusterSocket.d.ts +85 -0
- package/dist/vendor/cjs/node/NodeClusterSocket.js +1 -0
- package/dist/vendor/cjs/node/NodeCrypto.d.ts +11 -0
- package/dist/vendor/cjs/node/NodeCrypto.js +1 -0
- package/dist/vendor/cjs/node/NodeDatagramSocket.d.ts +10 -0
- package/dist/vendor/cjs/node/NodeDatagramSocket.js +1 -0
- package/dist/vendor/cjs/node/NodeDns.d.ts +51 -0
- package/dist/vendor/cjs/node/NodeDns.js +1 -0
- package/dist/vendor/cjs/node/NodeFileSystem.d.ts +11 -0
- package/dist/vendor/cjs/node/NodeFileSystem.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpClient.d.ts +303 -0
- package/dist/vendor/cjs/node/NodeHttpClient.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpIncomingMessage.d.ts +64 -0
- package/dist/vendor/cjs/node/NodeHttpIncomingMessage.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpPlatform.d.ts +38 -0
- package/dist/vendor/cjs/node/NodeHttpPlatform.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpServer.d.ts +131 -0
- package/dist/vendor/cjs/node/NodeHttpServer.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpServerRequest.d.ts +32 -0
- package/dist/vendor/cjs/node/NodeHttpServerRequest.js +1 -0
- package/dist/vendor/cjs/node/NodeMultipart.d.ts +50 -0
- package/dist/vendor/cjs/node/NodeMultipart.js +1 -0
- package/dist/vendor/cjs/node/NodeMultipartParser.d.ts +105 -0
- package/dist/vendor/cjs/node/NodeMultipartParser.js +1 -0
- package/dist/vendor/cjs/node/NodePath.d.ts +30 -0
- package/dist/vendor/cjs/node/NodePath.js +1 -0
- package/dist/vendor/cjs/node/NodeRedis.d.ts +78 -0
- package/dist/vendor/cjs/node/NodeRedis.js +1 -0
- package/dist/vendor/cjs/node/NodeRuntime.d.ts +88 -0
- package/dist/vendor/cjs/node/NodeRuntime.js +1 -0
- package/dist/vendor/cjs/node/NodeServices.d.ts +37 -0
- package/dist/vendor/cjs/node/NodeServices.js +1 -0
- package/dist/vendor/cjs/node/NodeSink.d.ts +9 -0
- package/dist/vendor/cjs/node/NodeSink.js +1 -0
- package/dist/vendor/cjs/node/NodeSocket.d.ts +45 -0
- package/dist/vendor/cjs/node/NodeSocket.js +1 -0
- package/dist/vendor/cjs/node/NodeSocketServer.d.ts +9 -0
- package/dist/vendor/cjs/node/NodeSocketServer.js +1 -0
- package/dist/vendor/cjs/node/NodeStdio.d.ts +12 -0
- package/dist/vendor/cjs/node/NodeStdio.js +1 -0
- package/dist/vendor/cjs/node/NodeStream.d.ts +9 -0
- package/dist/vendor/cjs/node/NodeStream.js +1 -0
- package/dist/vendor/cjs/node/NodeTerminal.d.ts +24 -0
- package/dist/vendor/cjs/node/NodeTerminal.js +1 -0
- package/dist/vendor/cjs/node/NodeWorker.d.ts +24 -0
- package/dist/vendor/cjs/node/NodeWorker.js +1 -0
- package/dist/vendor/cjs/node/NodeWorkerRunner.d.ts +13 -0
- package/dist/vendor/cjs/node/NodeWorkerRunner.js +1 -0
- package/dist/vendor/cjs/node/Undici.d.ts +31 -0
- package/dist/vendor/cjs/node/Undici.js +1 -0
- package/dist/vendor/cjs/node/index.d.ts +140 -0
- package/dist/vendor/cjs/node/index.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeAddressResolver.d.ts +13 -0
- package/dist/vendor/cjs/node-shared/NodeAddressResolver.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.d.ts +66 -0
- package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeClusterSocket.d.ts +35 -0
- package/dist/vendor/cjs/node-shared/NodeClusterSocket.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeCrypto.d.ts +30 -0
- package/dist/vendor/cjs/node-shared/NodeCrypto.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeDatagramSocket.d.ts +246 -0
- package/dist/vendor/cjs/node-shared/NodeDatagramSocket.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeDns.d.ts +221 -0
- package/dist/vendor/cjs/node-shared/NodeDns.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeFileSystem.d.ts +12 -0
- package/dist/vendor/cjs/node-shared/NodeFileSystem.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeHttpCompression.d.ts +40 -0
- package/dist/vendor/cjs/node-shared/NodeHttpCompression.js +1 -0
- package/dist/vendor/cjs/node-shared/NodePath.d.ts +30 -0
- package/dist/vendor/cjs/node-shared/NodePath.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeRuntime.d.ts +51 -0
- package/dist/vendor/cjs/node-shared/NodeRuntime.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSink.d.ts +73 -0
- package/dist/vendor/cjs/node-shared/NodeSink.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSocket.d.ts +144 -0
- package/dist/vendor/cjs/node-shared/NodeSocket.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSocketServer.d.ts +87 -0
- package/dist/vendor/cjs/node-shared/NodeSocketServer.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeStdio.d.ts +13 -0
- package/dist/vendor/cjs/node-shared/NodeStdio.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeStream.d.ts +194 -0
- package/dist/vendor/cjs/node-shared/NodeStream.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeTerminal.d.ts +24 -0
- package/dist/vendor/cjs/node-shared/NodeTerminal.js +1 -0
- package/dist/vendor/cjs/node-shared/index.d.ts +85 -0
- package/dist/vendor/cjs/node-shared/index.js +1 -0
- package/dist/vendor/cjs/node-shared/internal/nodeChildProcessSpawner.d.ts +4 -0
- package/dist/vendor/cjs/node-shared/internal/nodeChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/node-shared/internal/utils.d.ts +2 -0
- package/dist/vendor/cjs/node-shared/internal/utils.js +1 -0
- package/dist/vendor/cjs/package.json +1 -0
- package/dist/vendor/cjs/platform-bun.d.ts +130 -0
- package/dist/vendor/cjs/platform-bun.js +1 -0
- package/dist/vendor/cjs/platform-node-shared.d.ts +85 -0
- package/dist/vendor/cjs/platform-node-shared.js +1 -0
- package/dist/vendor/cjs/platform-node.d.ts +140 -0
- package/dist/vendor/cjs/platform-node.js +1 -0
- package/dist/vendor/node/LICENSE +21 -0
- package/dist/vendor/node/NodeAddressResolver.d.ts +16 -0
- package/dist/vendor/node/NodeAddressResolver.js +8 -0
- package/dist/vendor/node/NodeChildProcessSpawner.d.ts +8 -0
- package/dist/vendor/node/NodeChildProcessSpawner.js +14 -0
- package/dist/vendor/node/NodeClusterHttp.d.ts +54 -0
- package/dist/vendor/node/NodeClusterHttp.js +43 -0
- package/dist/vendor/node/NodeClusterSocket.d.ts +85 -0
- package/dist/vendor/node/NodeClusterSocket.js +30 -0
- package/dist/vendor/node/NodeCrypto.d.ts +11 -0
- package/dist/vendor/node/NodeCrypto.js +8 -0
- package/dist/vendor/node/NodeDatagramSocket.d.ts +10 -0
- package/dist/vendor/node/NodeDatagramSocket.js +12 -0
- package/dist/vendor/node/NodeDns.d.ts +51 -0
- package/dist/vendor/node/NodeDns.js +12 -0
- package/dist/vendor/node/NodeFileSystem.d.ts +11 -0
- package/dist/vendor/node/NodeFileSystem.js +9 -0
- package/dist/vendor/node/NodeHttpClient.d.ts +303 -0
- package/dist/vendor/node/NodeHttpClient.js +54 -0
- package/dist/vendor/node/NodeHttpIncomingMessage.d.ts +64 -0
- package/dist/vendor/node/NodeHttpIncomingMessage.js +10 -0
- package/dist/vendor/node/NodeHttpPlatform.d.ts +38 -0
- package/dist/vendor/node/NodeHttpPlatform.js +16 -0
- package/dist/vendor/node/NodeHttpServer.d.ts +131 -0
- package/dist/vendor/node/NodeHttpServer.js +46 -0
- package/dist/vendor/node/NodeHttpServerRequest.d.ts +32 -0
- package/dist/vendor/node/NodeHttpServerRequest.js +9 -0
- package/dist/vendor/node/NodeMultipart.d.ts +50 -0
- package/dist/vendor/node/NodeMultipart.js +15 -0
- package/dist/vendor/node/NodeMultipartParser.d.ts +105 -0
- package/dist/vendor/node/NodeMultipartParser.js +11 -0
- package/dist/vendor/node/NodePath.d.ts +30 -0
- package/dist/vendor/node/NodePath.js +12 -0
- package/dist/vendor/node/NodeRedis.d.ts +78 -0
- package/dist/vendor/node/NodeRedis.js +11 -0
- package/dist/vendor/node/NodeRuntime.d.ts +88 -0
- package/dist/vendor/node/NodeRuntime.js +8 -0
- package/dist/vendor/node/NodeServices.d.ts +37 -0
- package/dist/vendor/node/NodeServices.js +23 -0
- package/dist/vendor/node/NodeSink.d.ts +9 -0
- package/dist/vendor/node/NodeSink.js +12 -0
- package/dist/vendor/node/NodeSocket.d.ts +45 -0
- package/dist/vendor/node/NodeSocket.js +31 -0
- package/dist/vendor/node/NodeSocketServer.d.ts +9 -0
- package/dist/vendor/node/NodeSocketServer.js +21 -0
- package/dist/vendor/node/NodeStdio.d.ts +12 -0
- package/dist/vendor/node/NodeStdio.js +10 -0
- package/dist/vendor/node/NodeStream.d.ts +9 -0
- package/dist/vendor/node/NodeStream.js +27 -0
- package/dist/vendor/node/NodeTerminal.d.ts +24 -0
- package/dist/vendor/node/NodeTerminal.js +10 -0
- package/dist/vendor/node/NodeWorker.d.ts +24 -0
- package/dist/vendor/node/NodeWorker.js +9 -0
- package/dist/vendor/node/NodeWorkerRunner.d.ts +13 -0
- package/dist/vendor/node/NodeWorkerRunner.js +7 -0
- package/dist/vendor/node/Undici.d.ts +31 -0
- package/dist/vendor/node/Undici.js +9 -0
- package/dist/vendor/node/index.d.ts +140 -0
- package/dist/vendor/node/index.js +130 -0
- package/dist/vendor/node-shared/LICENSE +21 -0
- package/dist/vendor/node-shared/NodeAddressResolver.d.ts +13 -0
- package/dist/vendor/node-shared/NodeAddressResolver.js +7 -0
- package/dist/vendor/node-shared/NodeChildProcessSpawner.d.ts +66 -0
- package/dist/vendor/node-shared/NodeChildProcessSpawner.js +13 -0
- package/dist/vendor/node-shared/NodeClusterSocket.d.ts +35 -0
- package/dist/vendor/node-shared/NodeClusterSocket.js +11 -0
- package/dist/vendor/node-shared/NodeCrypto.d.ts +30 -0
- package/dist/vendor/node-shared/NodeCrypto.js +9 -0
- package/dist/vendor/node-shared/NodeDatagramSocket.d.ts +246 -0
- package/dist/vendor/node-shared/NodeDatagramSocket.js +11 -0
- package/dist/vendor/node-shared/NodeDns.d.ts +221 -0
- package/dist/vendor/node-shared/NodeDns.js +31 -0
- package/dist/vendor/node-shared/NodeFileSystem.d.ts +12 -0
- package/dist/vendor/node-shared/NodeFileSystem.js +8 -0
- package/dist/vendor/node-shared/NodeHttpCompression.d.ts +40 -0
- package/dist/vendor/node-shared/NodeHttpCompression.js +13 -0
- package/dist/vendor/node-shared/NodePath.d.ts +30 -0
- package/dist/vendor/node-shared/NodePath.js +11 -0
- package/dist/vendor/node-shared/NodeRuntime.d.ts +51 -0
- package/dist/vendor/node-shared/NodeRuntime.js +7 -0
- package/dist/vendor/node-shared/NodeSink.d.ts +73 -0
- package/dist/vendor/node-shared/NodeSink.js +11 -0
- package/dist/vendor/node-shared/NodeSocket.d.ts +144 -0
- package/dist/vendor/node-shared/NodeSocket.js +23 -0
- package/dist/vendor/node-shared/NodeSocketServer.d.ts +87 -0
- package/dist/vendor/node-shared/NodeSocketServer.js +20 -0
- package/dist/vendor/node-shared/NodeStdio.d.ts +13 -0
- package/dist/vendor/node-shared/NodeStdio.js +9 -0
- package/dist/vendor/node-shared/NodeStream.d.ts +194 -0
- package/dist/vendor/node-shared/NodeStream.js +26 -0
- package/dist/vendor/node-shared/NodeTerminal.d.ts +24 -0
- package/dist/vendor/node-shared/NodeTerminal.js +9 -0
- package/dist/vendor/node-shared/index.d.ts +85 -0
- package/dist/vendor/node-shared/index.js +70 -0
- package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.d.ts +4 -0
- package/dist/vendor/node-shared/internal/nodeChildProcessSpawner.js +7 -0
- package/dist/vendor/node-shared/internal/utils.d.ts +2 -0
- package/dist/vendor/node-shared/internal/utils.js +7 -0
- package/dist/vendor/platform-bun.d.ts +130 -0
- package/dist/vendor/platform-bun.js +121 -0
- package/dist/vendor/platform-node-shared.d.ts +85 -0
- package/dist/vendor/platform-node-shared.js +70 -0
- package/dist/vendor/platform-node.d.ts +140 -0
- package/dist/vendor/platform-node.js +130 -0
- package/docs/README.md +135 -0
- package/docs/api.md +264 -0
- package/docs/concepts/host-surface.md +152 -0
- package/docs/concepts/runtime-parity.md +80 -0
- package/docs/guides/bind-a-repository-root.md +109 -0
- package/docs/guides/configure-the-filesystem-helper.md +113 -0
- package/docs/guides/contain-child-processes.md +178 -0
- package/docs/installation.md +131 -0
- package/docs/quickstart.md +163 -0
- package/docs/troubleshooting.md +163 -0
- package/package.json +146 -3
- package/src/BunFileSystem.ts +47 -0
- package/src/BunHost.ts +345 -0
- package/src/index.ts +27 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../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/NodeRedis.js
|
|
6
|
+
var NodeRedis_exports = {};
|
|
7
|
+
__export(NodeRedis_exports, {
|
|
8
|
+
NodeRedis: () => NodeRedis,
|
|
9
|
+
layer: () => layer,
|
|
10
|
+
layerConfig: () => layerConfig
|
|
11
|
+
});
|
|
12
|
+
import * as Config from "effect/Config";
|
|
13
|
+
import * as Context from "effect/Context";
|
|
14
|
+
import * as Deferred from "effect/Deferred";
|
|
15
|
+
import * as Effect from "effect/Effect";
|
|
16
|
+
import * as Fn from "effect/Function";
|
|
17
|
+
import * as Layer from "effect/Layer";
|
|
18
|
+
import * as Redis from "effect/persistence/Redis";
|
|
19
|
+
import { createClient, SocketTimeoutError } from "redis";
|
|
20
|
+
var NodeRedis = class extends (/* @__PURE__ */ Context.Service()("@effect/platform-node/NodeRedis")) {
|
|
21
|
+
};
|
|
22
|
+
var make4 = /* @__PURE__ */ Effect.fnUntraced(function* (options) {
|
|
23
|
+
let ready = false;
|
|
24
|
+
const socket = options?.socket;
|
|
25
|
+
const client = yield* Effect.acquireRelease(Effect.sync(() => createClient({
|
|
26
|
+
...options,
|
|
27
|
+
socket: socket?.reconnectStrategy === void 0 ? {
|
|
28
|
+
...socket,
|
|
29
|
+
reconnectStrategy: (retries, cause) => {
|
|
30
|
+
if (!ready) return cause;
|
|
31
|
+
if (cause instanceof SocketTimeoutError) return false;
|
|
32
|
+
const jitter = Math.floor(Math.random() * 200);
|
|
33
|
+
const delay = Math.min(2 ** retries * 50, 2e3);
|
|
34
|
+
return delay + jitter;
|
|
35
|
+
}
|
|
36
|
+
} : socket
|
|
37
|
+
})), (client2) => Effect.ignoreCause(Effect.promise(() => client2.close())));
|
|
38
|
+
client.once("ready", () => {
|
|
39
|
+
ready = true;
|
|
40
|
+
});
|
|
41
|
+
const runSync = Effect.runSyncWith(yield* Effect.context());
|
|
42
|
+
client.on("error", (cause) => {
|
|
43
|
+
runSync(Effect.logWarning("NodeRedis client error", cause));
|
|
44
|
+
});
|
|
45
|
+
yield* Effect.tryPromise({
|
|
46
|
+
try: () => client.connect(),
|
|
47
|
+
catch: (cause) => new Redis.RedisError({
|
|
48
|
+
cause
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
const use = (f) => Effect.tryPromise({
|
|
52
|
+
try: () => f(client),
|
|
53
|
+
catch: (cause) => new Redis.RedisError({
|
|
54
|
+
cause
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
const redis = yield* Redis.make({
|
|
58
|
+
send: (command, ...args) => Effect.tryPromise({
|
|
59
|
+
try: () => client.sendCommand([command, ...args]),
|
|
60
|
+
catch: (cause) => new Redis.RedisError({
|
|
61
|
+
cause
|
|
62
|
+
})
|
|
63
|
+
}),
|
|
64
|
+
subscribe: (channel, onMessage) => Effect.gen(function* () {
|
|
65
|
+
const terminal = yield* Deferred.make();
|
|
66
|
+
yield* Effect.acquireRelease(Effect.tryPromise({
|
|
67
|
+
try: async () => {
|
|
68
|
+
let subscriberReady = false;
|
|
69
|
+
const subscriber = client.duplicate(socket?.reconnectStrategy === void 0 ? {
|
|
70
|
+
socket: {
|
|
71
|
+
...socket,
|
|
72
|
+
reconnectStrategy: (retries, cause) => {
|
|
73
|
+
if (!subscriberReady) return cause;
|
|
74
|
+
if (cause instanceof SocketTimeoutError) return false;
|
|
75
|
+
const jitter = Math.floor(Math.random() * 200);
|
|
76
|
+
const delay = Math.min(2 ** retries * 50, 2e3);
|
|
77
|
+
return delay + jitter;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
} : {});
|
|
81
|
+
subscriber.once("ready", () => {
|
|
82
|
+
subscriberReady = true;
|
|
83
|
+
});
|
|
84
|
+
subscriber.on("error", (cause) => {
|
|
85
|
+
runSync(Effect.logWarning("NodeRedis subscriber error", cause));
|
|
86
|
+
if (!subscriber.isOpen) {
|
|
87
|
+
runSync(Deferred.fail(terminal, new Redis.RedisError({
|
|
88
|
+
cause
|
|
89
|
+
})));
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
try {
|
|
93
|
+
await subscriber.connect();
|
|
94
|
+
await subscriber.subscribe(channel, (message, channel2) => {
|
|
95
|
+
onMessage({
|
|
96
|
+
channel: channel2,
|
|
97
|
+
message
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
return subscriber;
|
|
101
|
+
} catch (cause) {
|
|
102
|
+
if (subscriber.isOpen) subscriber.destroy();
|
|
103
|
+
throw cause;
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
catch: (cause) => new Redis.RedisError({
|
|
107
|
+
cause
|
|
108
|
+
})
|
|
109
|
+
}), (subscriber) => Effect.sync(() => {
|
|
110
|
+
if (subscriber.isOpen) subscriber.destroy();
|
|
111
|
+
}));
|
|
112
|
+
return Deferred.await(terminal);
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
const nodeRedis = Fn.identity({
|
|
116
|
+
client,
|
|
117
|
+
use
|
|
118
|
+
});
|
|
119
|
+
return Context.make(NodeRedis, nodeRedis).pipe(Context.add(Redis.Redis, redis));
|
|
120
|
+
});
|
|
121
|
+
var layer = (options) => Layer.effectContext(make4(options));
|
|
122
|
+
var layerConfig = (options) => Layer.effectContext(Config.unwrap(options).pipe(Effect.flatMap(make4)));
|
|
123
|
+
|
|
124
|
+
export {
|
|
125
|
+
NodeRedis,
|
|
126
|
+
layer,
|
|
127
|
+
layerConfig,
|
|
128
|
+
NodeRedis_exports
|
|
129
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer,
|
|
3
|
+
layerPosix,
|
|
4
|
+
layerWin32
|
|
5
|
+
} from "./chunk-JTST2Z7N.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/NodePath.js
|
|
11
|
+
var NodePath_exports = {};
|
|
12
|
+
__export(NodePath_exports, {
|
|
13
|
+
layer: () => layer2,
|
|
14
|
+
layerPosix: () => layerPosix2,
|
|
15
|
+
layerWin32: () => layerWin322
|
|
16
|
+
});
|
|
17
|
+
var layer2 = layer;
|
|
18
|
+
var layerPosix2 = layerPosix;
|
|
19
|
+
var layerWin322 = layerWin32;
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
layer2 as layer,
|
|
23
|
+
layerPosix2 as layerPosix,
|
|
24
|
+
layerWin322 as layerWin32,
|
|
25
|
+
NodePath_exports
|
|
26
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../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/NodeWorker.js
|
|
6
|
+
var NodeWorker_exports = {};
|
|
7
|
+
__export(NodeWorker_exports, {
|
|
8
|
+
layer: () => layer,
|
|
9
|
+
layerPlatform: () => layerPlatform
|
|
10
|
+
});
|
|
11
|
+
import * as Deferred from "effect/Deferred";
|
|
12
|
+
import * as Effect from "effect/Effect";
|
|
13
|
+
import * as Exit from "effect/Exit";
|
|
14
|
+
import * as Layer from "effect/Layer";
|
|
15
|
+
import * as Scope from "effect/Scope";
|
|
16
|
+
import * as Worker from "effect/workers/Worker";
|
|
17
|
+
import { WorkerError, WorkerReceiveError } from "effect/workers/WorkerError";
|
|
18
|
+
var layerPlatform = /* @__PURE__ */ Layer.succeed(Worker.WorkerPlatform)(/* @__PURE__ */ Worker.makePlatform()({
|
|
19
|
+
setup({
|
|
20
|
+
scope,
|
|
21
|
+
worker
|
|
22
|
+
}) {
|
|
23
|
+
const exitDeferred = Deferred.makeUnsafe();
|
|
24
|
+
const thing = "postMessage" in worker ? {
|
|
25
|
+
postMessage(msg, t) {
|
|
26
|
+
worker.postMessage(msg, t);
|
|
27
|
+
},
|
|
28
|
+
kill: () => worker.terminate(),
|
|
29
|
+
worker
|
|
30
|
+
} : {
|
|
31
|
+
postMessage(msg, _) {
|
|
32
|
+
worker.send(msg);
|
|
33
|
+
},
|
|
34
|
+
kill: () => worker.kill("SIGKILL"),
|
|
35
|
+
worker
|
|
36
|
+
};
|
|
37
|
+
worker.on("exit", () => {
|
|
38
|
+
Deferred.doneUnsafe(exitDeferred, Exit.void);
|
|
39
|
+
});
|
|
40
|
+
return Effect.as(Scope.addFinalizer(scope, Effect.suspend(() => {
|
|
41
|
+
thing.postMessage([1]);
|
|
42
|
+
return Deferred.await(exitDeferred);
|
|
43
|
+
}).pipe(Effect.timeout(5e3), Effect.catchCause(() => Effect.promise(() => Promise.resolve(thing.kill()))))), thing);
|
|
44
|
+
},
|
|
45
|
+
listen({
|
|
46
|
+
deferred,
|
|
47
|
+
emit,
|
|
48
|
+
port
|
|
49
|
+
}) {
|
|
50
|
+
port.worker.on("message", (message) => {
|
|
51
|
+
emit(message);
|
|
52
|
+
});
|
|
53
|
+
port.worker.on("messageerror", (cause) => {
|
|
54
|
+
Deferred.doneUnsafe(deferred, new WorkerError({
|
|
55
|
+
reason: new WorkerReceiveError({
|
|
56
|
+
message: "An messageerror event was emitted",
|
|
57
|
+
cause
|
|
58
|
+
})
|
|
59
|
+
}));
|
|
60
|
+
});
|
|
61
|
+
port.worker.on("error", (cause) => {
|
|
62
|
+
Deferred.doneUnsafe(deferred, new WorkerError({
|
|
63
|
+
reason: new WorkerReceiveError({
|
|
64
|
+
message: "An error event was emitted",
|
|
65
|
+
cause
|
|
66
|
+
})
|
|
67
|
+
}));
|
|
68
|
+
});
|
|
69
|
+
port.worker.on("exit", (code) => {
|
|
70
|
+
Deferred.doneUnsafe(deferred, new WorkerError({
|
|
71
|
+
reason: new WorkerReceiveError({
|
|
72
|
+
message: "The worker has exited with code: " + code
|
|
73
|
+
})
|
|
74
|
+
}));
|
|
75
|
+
});
|
|
76
|
+
return Effect.void;
|
|
77
|
+
}
|
|
78
|
+
}));
|
|
79
|
+
var layer = (spawn) => Layer.merge(Worker.layerSpawner(spawn), layerPlatform);
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
layerPlatform,
|
|
83
|
+
layer,
|
|
84
|
+
NodeWorker_exports
|
|
85
|
+
};
|
|
@@ -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-node@4.0.5_effect@4.0.5_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeCrypto.js
|
|
9
|
+
var NodeCrypto_exports = {};
|
|
10
|
+
__export(NodeCrypto_exports, {
|
|
11
|
+
layer: () => layer2
|
|
12
|
+
});
|
|
13
|
+
var layer2 = layer;
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
layer2 as layer,
|
|
17
|
+
NodeCrypto_exports
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bun implementation of Effect's `AddressResolver` service.
|
|
3
|
+
*
|
|
4
|
+
* IPv6 literals with a named zone such as `fe80::1%eth0` get their scope ID
|
|
5
|
+
* from `os.networkInterfaces()`, listed each time a named zone is resolved.
|
|
6
|
+
*
|
|
7
|
+
* @stability experimental
|
|
8
|
+
* @since 4.0.0
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @stability experimental
|
|
12
|
+
* @since 4.0.0
|
|
13
|
+
*/
|
|
14
|
+
export * from "../node-shared/NodeAddressResolver.js";
|
|
15
|
+
//# sourceMappingURL=BunAddressResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../bun/BunAddressResolver.js")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../bun/BunChildProcessSpawner.js")
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as MessageStorage from "effect/cluster/MessageStorage";
|
|
2
|
+
import * as Runners from "effect/cluster/Runners";
|
|
3
|
+
import * as RunnerStorage from "effect/cluster/RunnerStorage";
|
|
4
|
+
import type { Sharding } from "effect/cluster/Sharding";
|
|
5
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig";
|
|
6
|
+
import type * as Config from "effect/Config";
|
|
7
|
+
import type * as Etag from "effect/http/Etag";
|
|
8
|
+
import type { HttpPlatform } from "effect/http/HttpPlatform";
|
|
9
|
+
import type { HttpServer } from "effect/http/HttpServer";
|
|
10
|
+
import type { ServeError } from "effect/http/HttpServerError";
|
|
11
|
+
import * as Layer from "effect/Layer";
|
|
12
|
+
import type { SqlClient } from "effect/sql/SqlClient";
|
|
13
|
+
import { layerK8sHttpClient } from "./BunClusterSocket.ts";
|
|
14
|
+
import type { BunServices } from "./BunServices.ts";
|
|
15
|
+
export {
|
|
16
|
+
/**
|
|
17
|
+
* Layer that provides a Kubernetes HTTP client for runner health checks.
|
|
18
|
+
*
|
|
19
|
+
* @stability unstable
|
|
20
|
+
* @category re-exports
|
|
21
|
+
* @since 4.0.0
|
|
22
|
+
*/
|
|
23
|
+
layerK8sHttpClient };
|
|
24
|
+
/**
|
|
25
|
+
* Layer that provides a Bun HTTP server for cluster runners.
|
|
26
|
+
*
|
|
27
|
+
* @stability unstable
|
|
28
|
+
* @category layers
|
|
29
|
+
* @since 4.0.0
|
|
30
|
+
*/
|
|
31
|
+
export declare const layerHttpServer: Layer.Layer<HttpPlatform | Etag.Generator | BunServices | HttpServer, ServeError, ShardingConfig.ShardingConfig>;
|
|
32
|
+
/**
|
|
33
|
+
* Creates Bun cluster layers for HTTP or WebSocket transport, configuring serialization, storage, runner health, and optional client-only mode.
|
|
34
|
+
*
|
|
35
|
+
* **When to use**
|
|
36
|
+
*
|
|
37
|
+
* Use to install the complete Bun HTTP or WebSocket cluster layer, including
|
|
38
|
+
* client-only cluster access when a process should connect without serving
|
|
39
|
+
* runner RPCs.
|
|
40
|
+
*
|
|
41
|
+
* **Details**
|
|
42
|
+
*
|
|
43
|
+
* `serialization` defaults to SchemaBinary, `runnerHealth` defaults to ping
|
|
44
|
+
* checks, SQL-backed storage is used by default, and `shardingConfig` is
|
|
45
|
+
* overlaid on environment-loaded sharding configuration. `local` storage uses
|
|
46
|
+
* no-op message storage plus in-memory runner storage, while `byo` leaves both
|
|
47
|
+
* message and runner storage for the caller to provide.
|
|
48
|
+
*
|
|
49
|
+
* **Gotchas**
|
|
50
|
+
*
|
|
51
|
+
* `clientOnly` does not start the HTTP server or receive shard assignments.
|
|
52
|
+
* Non-client-only mode listens with `runnerListenAddress` when present, falling
|
|
53
|
+
* back to `runnerAddress`. HTTP and WebSocket runner RPCs use the default
|
|
54
|
+
* `HttpRunner` route.
|
|
55
|
+
*
|
|
56
|
+
* @see {@link layerHttpServer} for the server layer used by non-client-only transports
|
|
57
|
+
* @see {@link layerK8sHttpClient} for Kubernetes runner health support
|
|
58
|
+
*
|
|
59
|
+
* @stability unstable
|
|
60
|
+
* @category layers
|
|
61
|
+
* @since 4.0.0
|
|
62
|
+
*/
|
|
63
|
+
export declare const layer: <const ClientOnly extends boolean = false, const Storage extends "local" | "sql" | "byo" = never>(options: {
|
|
64
|
+
readonly transport: "http" | "websocket";
|
|
65
|
+
readonly serialization?: "binary" | "ndjson" | undefined;
|
|
66
|
+
readonly serializationMaxBufferSize?: number | "unbounded" | undefined;
|
|
67
|
+
readonly clientOnly?: ClientOnly | undefined;
|
|
68
|
+
readonly storage?: Storage | undefined;
|
|
69
|
+
readonly runnerHealth?: "ping" | "k8s" | undefined;
|
|
70
|
+
readonly runnerHealthK8s?: {
|
|
71
|
+
readonly namespace?: string | undefined;
|
|
72
|
+
readonly labelSelector?: string | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
readonly shardingConfig?: Partial<ShardingConfig.ShardingConfig["Service"]> | undefined;
|
|
75
|
+
}) => 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 | MessageStorage.MessageStorage, ServeError | Config.ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient>;
|
|
76
|
+
//# sourceMappingURL=BunClusterHttp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../bun/BunClusterHttp.js")
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bun 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
|
+
* `layerK8sHttpClient` for Kubernetes runner health checks.
|
|
9
|
+
*
|
|
10
|
+
* @stability unstable
|
|
11
|
+
* @since 4.0.0
|
|
12
|
+
*/
|
|
13
|
+
import { layerClientProtocol, layerSocketServer } from "../node-shared/NodeClusterSocket.js";
|
|
14
|
+
import * as K8sHttpClient from "effect/cluster/K8sHttpClient";
|
|
15
|
+
import * as MessageStorage from "effect/cluster/MessageStorage";
|
|
16
|
+
import * as Runners from "effect/cluster/Runners";
|
|
17
|
+
import * as RunnerStorage from "effect/cluster/RunnerStorage";
|
|
18
|
+
import type { Sharding } from "effect/cluster/Sharding";
|
|
19
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig";
|
|
20
|
+
import type * as Config from "effect/Config";
|
|
21
|
+
import * as Layer from "effect/Layer";
|
|
22
|
+
import type * as SocketServer from "effect/socket/SocketServer";
|
|
23
|
+
import type { SqlClient } from "effect/sql/SqlClient";
|
|
24
|
+
export {
|
|
25
|
+
/**
|
|
26
|
+
* Provides the cluster `RpcClientProtocol` using the shared socket client
|
|
27
|
+
* implementation.
|
|
28
|
+
*
|
|
29
|
+
* @stability unstable
|
|
30
|
+
* @category re-exports
|
|
31
|
+
* @since 4.0.0
|
|
32
|
+
*/
|
|
33
|
+
layerClientProtocol,
|
|
34
|
+
/**
|
|
35
|
+
* Provides the socket server used by Bun cluster runners through the shared
|
|
36
|
+
* socket server implementation.
|
|
37
|
+
*
|
|
38
|
+
* @stability unstable
|
|
39
|
+
* @category re-exports
|
|
40
|
+
* @since 4.0.0
|
|
41
|
+
*/
|
|
42
|
+
layerSocketServer };
|
|
43
|
+
/**
|
|
44
|
+
* Creates Bun socket cluster layers, configuring serialization, storage, runner health, and optional client-only mode.
|
|
45
|
+
*
|
|
46
|
+
* @stability unstable
|
|
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), 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), SocketServer.SocketServerError | Config.ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient>;
|
|
62
|
+
/**
|
|
63
|
+
* Layer that provides `K8sHttpClient`, using the Kubernetes service-account CA certificate when it is available.
|
|
64
|
+
*
|
|
65
|
+
* @stability unstable
|
|
66
|
+
* @category layers
|
|
67
|
+
* @since 4.0.0
|
|
68
|
+
*/
|
|
69
|
+
export declare const layerK8sHttpClient: Layer.Layer<K8sHttpClient.K8sHttpClient>;
|
|
70
|
+
//# sourceMappingURL=BunClusterSocket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../bun/BunClusterSocket.js")
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Crypto from "effect/Crypto";
|
|
2
|
+
import type * as Layer from "effect/Layer";
|
|
3
|
+
/**
|
|
4
|
+
* Layer that provides the Bun Crypto service implementation.
|
|
5
|
+
*
|
|
6
|
+
* @stability unstable
|
|
7
|
+
* @category layers
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
*/
|
|
10
|
+
export declare const layer: Layer.Layer<Crypto.Crypto>;
|
|
11
|
+
//# sourceMappingURL=BunCrypto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../bun/BunCrypto.js")
|