@smthrs/platform-bun 0.0.0-stage → 1.0.0-rc.12
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-2ZAGBWTH.js +40 -0
- package/dist/vendor/chunk-3SL3HKQA.js +118 -0
- package/dist/vendor/chunk-3WUGYBFU.js +0 -0
- package/dist/vendor/chunk-4WIQ2XN7.js +28 -0
- package/dist/vendor/chunk-5ET7NHI7.js +15 -0
- package/dist/vendor/chunk-6FSJ2PMW.js +53 -0
- package/dist/vendor/chunk-6L2NJEOV.js +62 -0
- package/dist/vendor/chunk-72X6VEVD.js +62 -0
- package/dist/vendor/chunk-7NMJM44J.js +26 -0
- package/dist/vendor/chunk-A7AY2JP7.js +71 -0
- package/dist/vendor/chunk-A7UXCEJA.js +81 -0
- package/dist/vendor/chunk-ADP5LRUF.js +274 -0
- package/dist/vendor/chunk-ASGOJ3XA.js +0 -0
- package/dist/vendor/chunk-AWNTTSHL.js +34 -0
- package/dist/vendor/chunk-BUKVIAEM.js +20 -0
- package/dist/vendor/chunk-BY3SDXID.js +501 -0
- package/dist/vendor/chunk-C3PGUWW5.js +414 -0
- package/dist/vendor/chunk-CL4EIDIY.js +7 -0
- package/dist/vendor/chunk-D2ZL4PLZ.js +93 -0
- package/dist/vendor/chunk-D4HEMNGU.js +22 -0
- package/dist/vendor/chunk-F4V5TRY7.js +85 -0
- package/dist/vendor/chunk-F772LLZ5.js +31 -0
- package/dist/vendor/chunk-FFD6R5JZ.js +104 -0
- package/dist/vendor/chunk-G4HOH7GK.js +65 -0
- package/dist/vendor/chunk-GJN7MEBF.js +18 -0
- package/dist/vendor/chunk-HDV6VIRM.js +48 -0
- package/dist/vendor/chunk-IHV7Z4SW.js +34 -0
- package/dist/vendor/chunk-IWSDM4CG.js +16 -0
- package/dist/vendor/chunk-JOQDB2HC.js +26 -0
- package/dist/vendor/chunk-KABHKTVG.js +18 -0
- package/dist/vendor/chunk-KFDBU6RR.js +60 -0
- package/dist/vendor/chunk-KHPN5DWT.js +20 -0
- package/dist/vendor/chunk-LNWGIDIG.js +20 -0
- package/dist/vendor/chunk-MLKGABMK.js +9 -0
- package/dist/vendor/chunk-MUEED3C3.js +144 -0
- package/dist/vendor/chunk-N6TK35N5.js +18 -0
- package/dist/vendor/chunk-NQO6V4KI.js +580 -0
- package/dist/vendor/chunk-NUJQMLJP.js +325 -0
- package/dist/vendor/chunk-OF3N2FN4.js +61 -0
- package/dist/vendor/chunk-OGZJACUS.js +57 -0
- package/dist/vendor/chunk-PCEVZYXO.js +63 -0
- package/dist/vendor/chunk-PECOFLCU.js +85 -0
- package/dist/vendor/chunk-PU7QVYND.js +18 -0
- package/dist/vendor/chunk-QGPZPULA.js +51 -0
- package/dist/vendor/chunk-QHR2RC5M.js +109 -0
- package/dist/vendor/chunk-R2YON4A6.js +28 -0
- package/dist/vendor/chunk-R327POEZ.js +18 -0
- package/dist/vendor/chunk-REFJNBQR.js +18 -0
- package/dist/vendor/chunk-RHJ6LV32.js +43 -0
- package/dist/vendor/chunk-RKVXYKHJ.js +29 -0
- package/dist/vendor/chunk-RP3EWS4C.js +0 -0
- package/dist/vendor/chunk-RQH5DSBA.js +249 -0
- package/dist/vendor/chunk-RQQ5TSCD.js +374 -0
- package/dist/vendor/chunk-S6QUQLBV.js +229 -0
- package/dist/vendor/chunk-SCXQLSNW.js +34 -0
- package/dist/vendor/chunk-SD4X5NGU.js +515 -0
- package/dist/vendor/chunk-T332WJRS.js +128 -0
- package/dist/vendor/chunk-T5FQGISI.js +18 -0
- package/dist/vendor/chunk-TBPDCAMH.js +70 -0
- package/dist/vendor/chunk-UFWLKG4I.js +16 -0
- package/dist/vendor/chunk-UPIQ52FQ.js +426 -0
- package/dist/vendor/chunk-UUQXJRMK.js +14 -0
- package/dist/vendor/chunk-UUYTTEDH.js +36 -0
- package/dist/vendor/chunk-V2EB7FHY.js +129 -0
- package/dist/vendor/chunk-VIWU4EBF.js +18 -0
- package/dist/vendor/chunk-WPZDL2D7.js +21 -0
- package/dist/vendor/chunk-X4YPHWAE.js +22 -0
- package/dist/vendor/chunk-XACFQJY7.js +93 -0
- package/dist/vendor/chunk-Y7V6ISZS.js +418 -0
- package/dist/vendor/chunk-YDY5P7GL.js +20 -0
- package/dist/vendor/chunk-ZNKZXDUD.js +18 -0
- package/dist/vendor/chunk-ZS3VW5QR.js +63 -0
- package/dist/vendor/chunk-ZUUCLHBP.js +18 -0
- package/dist/vendor/chunk-ZVJCBTJG.js +131 -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 +198 -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 +198 -0
- package/dist/vendor/node/NodeHttpClient.js +46 -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,104 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.4_effect@4.0.4_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeWorkerRunner.js
|
|
6
|
+
var NodeWorkerRunner_exports = {};
|
|
7
|
+
__export(NodeWorkerRunner_exports, {
|
|
8
|
+
layer: () => layer
|
|
9
|
+
});
|
|
10
|
+
import * as Cause from "effect/Cause";
|
|
11
|
+
import * as Deferred from "effect/Deferred";
|
|
12
|
+
import * as Effect from "effect/Effect";
|
|
13
|
+
import * as Exit from "effect/Exit";
|
|
14
|
+
import * as Fiber from "effect/Fiber";
|
|
15
|
+
import * as Layer from "effect/Layer";
|
|
16
|
+
import * as Scope from "effect/Scope";
|
|
17
|
+
import { WorkerError, WorkerReceiveError, WorkerSpawnError } from "effect/workers/WorkerError";
|
|
18
|
+
import * as WorkerRunner from "effect/workers/WorkerRunner";
|
|
19
|
+
import * as WorkerThreads from "node:worker_threads";
|
|
20
|
+
var layer = /* @__PURE__ */ Layer.succeed(WorkerRunner.WorkerRunnerPlatform)({
|
|
21
|
+
start() {
|
|
22
|
+
return Effect.gen(function* () {
|
|
23
|
+
if (!WorkerThreads.parentPort && !process.send) {
|
|
24
|
+
return yield* new WorkerError({
|
|
25
|
+
reason: new WorkerSpawnError({
|
|
26
|
+
message: "not in a worker"
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
const sendRaw = WorkerThreads.parentPort ? (_portId, message, transfers) => WorkerThreads.parentPort.postMessage(message, transfers) : (_portId, message, _transfers) => process.send(message);
|
|
31
|
+
const sendUnsafe = (_portId, message, transfers) => sendRaw(_portId, [1, message], transfers);
|
|
32
|
+
const send = (_portId, message, transfers) => Effect.sync(() => sendUnsafe(_portId, message, transfers));
|
|
33
|
+
const run = (handler) => Effect.scopedWith(Effect.fnUntraced(function* (scope) {
|
|
34
|
+
const closeLatch = Deferred.makeUnsafe();
|
|
35
|
+
const trackFiber = Fiber.runIn(scope);
|
|
36
|
+
const services = yield* Effect.context();
|
|
37
|
+
const runFork = Effect.runForkWith(services);
|
|
38
|
+
const onExit = (exit) => {
|
|
39
|
+
if (exit._tag === "Failure" && !Cause.hasInterruptsOnly(exit.cause)) {
|
|
40
|
+
runFork(Effect.logError("unhandled error in worker", exit.cause));
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const port = WorkerThreads.parentPort ?? process;
|
|
44
|
+
function onMessage(message) {
|
|
45
|
+
if (message[0] === 0) {
|
|
46
|
+
const result = handler(0, message[1]);
|
|
47
|
+
if (Effect.isEffect(result)) {
|
|
48
|
+
const fiber = runFork(result);
|
|
49
|
+
fiber.addObserver(onExit);
|
|
50
|
+
trackFiber(fiber);
|
|
51
|
+
}
|
|
52
|
+
} else {
|
|
53
|
+
if (WorkerThreads.parentPort) {
|
|
54
|
+
WorkerThreads.parentPort.close();
|
|
55
|
+
} else {
|
|
56
|
+
process.channel?.unref();
|
|
57
|
+
}
|
|
58
|
+
Deferred.doneUnsafe(closeLatch, Exit.void);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
port.on("message", onMessage);
|
|
62
|
+
function onMessageError(cause) {
|
|
63
|
+
Deferred.doneUnsafe(closeLatch, new WorkerError({
|
|
64
|
+
reason: new WorkerReceiveError({
|
|
65
|
+
message: "received messageerror event",
|
|
66
|
+
cause
|
|
67
|
+
})
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
function onError(cause) {
|
|
71
|
+
Deferred.doneUnsafe(closeLatch, new WorkerError({
|
|
72
|
+
reason: new WorkerReceiveError({
|
|
73
|
+
message: "received error event",
|
|
74
|
+
cause
|
|
75
|
+
})
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
if (WorkerThreads.parentPort) {
|
|
79
|
+
WorkerThreads.parentPort.on("messageerror", onMessageError);
|
|
80
|
+
WorkerThreads.parentPort.on("error", onError);
|
|
81
|
+
}
|
|
82
|
+
yield* Scope.addFinalizer(scope, Effect.sync(() => {
|
|
83
|
+
port.off("message", onMessage);
|
|
84
|
+
if (WorkerThreads.parentPort) {
|
|
85
|
+
WorkerThreads.parentPort.off("messageerror", onMessageError);
|
|
86
|
+
WorkerThreads.parentPort.off("error", onError);
|
|
87
|
+
}
|
|
88
|
+
}));
|
|
89
|
+
sendRaw(0, [0]);
|
|
90
|
+
return yield* Deferred.await(closeLatch);
|
|
91
|
+
}));
|
|
92
|
+
return {
|
|
93
|
+
run,
|
|
94
|
+
send,
|
|
95
|
+
sendUnsafe
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export {
|
|
102
|
+
layer,
|
|
103
|
+
NodeWorkerRunner_exports
|
|
104
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layerWebSocketConstructor
|
|
3
|
+
} from "./chunk-QGPZPULA.js";
|
|
4
|
+
import {
|
|
5
|
+
layer as layer3
|
|
6
|
+
} from "./chunk-SD4X5NGU.js";
|
|
7
|
+
import {
|
|
8
|
+
layerK8sHttpClient
|
|
9
|
+
} from "./chunk-PCEVZYXO.js";
|
|
10
|
+
import {
|
|
11
|
+
layer
|
|
12
|
+
} from "./chunk-GJN7MEBF.js";
|
|
13
|
+
import {
|
|
14
|
+
layer as layer2
|
|
15
|
+
} from "./chunk-ZNKZXDUD.js";
|
|
16
|
+
import {
|
|
17
|
+
__export
|
|
18
|
+
} from "./chunk-MLKGABMK.js";
|
|
19
|
+
|
|
20
|
+
// ../../../../node_modules/.pnpm/@effect+platform-bun@4.0.4_effect@4.0.4/node_modules/@effect/platform-bun/dist/BunClusterHttp.js
|
|
21
|
+
var BunClusterHttp_exports = {};
|
|
22
|
+
__export(BunClusterHttp_exports, {
|
|
23
|
+
layer: () => layer7,
|
|
24
|
+
layerHttpServer: () => layerHttpServer,
|
|
25
|
+
layerK8sHttpClient: () => layerK8sHttpClient
|
|
26
|
+
});
|
|
27
|
+
import * as HttpRunner from "effect/cluster/HttpRunner";
|
|
28
|
+
import * as MessageStorage from "effect/cluster/MessageStorage";
|
|
29
|
+
import * as RunnerHealth from "effect/cluster/RunnerHealth";
|
|
30
|
+
import * as Runners from "effect/cluster/Runners";
|
|
31
|
+
import * as RunnerStorage from "effect/cluster/RunnerStorage";
|
|
32
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig";
|
|
33
|
+
import * as SqlMessageStorage from "effect/cluster/SqlMessageStorage";
|
|
34
|
+
import * as SqlRunnerStorage from "effect/cluster/SqlRunnerStorage";
|
|
35
|
+
import * as Effect from "effect/Effect";
|
|
36
|
+
import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
37
|
+
import * as Layer from "effect/Layer";
|
|
38
|
+
import * as Option from "effect/Option";
|
|
39
|
+
import * as RpcSerialization from "effect/rpc/RpcSerialization";
|
|
40
|
+
var layerHttpServer = /* @__PURE__ */ Effect.gen(function* () {
|
|
41
|
+
const config = yield* ShardingConfig.ShardingConfig;
|
|
42
|
+
const listenAddress = Option.orElse(config.runnerListenAddress, () => config.runnerAddress);
|
|
43
|
+
if (Option.isNone(listenAddress)) {
|
|
44
|
+
return yield* Effect.die("BunClusterHttp.layerHttpServer: ShardingConfig.runnerAddress is None");
|
|
45
|
+
}
|
|
46
|
+
return layer3({
|
|
47
|
+
hostname: listenAddress.value.host,
|
|
48
|
+
port: listenAddress.value.port
|
|
49
|
+
});
|
|
50
|
+
}).pipe(Layer.unwrap);
|
|
51
|
+
var layer7 = (options) => {
|
|
52
|
+
const layer8 = options.clientOnly ? options.transport === "http" ? Layer.provide(HttpRunner.layerHttpClientOnly, FetchHttpClient.layer) : Layer.provide(HttpRunner.layerWebsocketClientOnly, layerWebSocketConstructor) : options.transport === "http" ? Layer.provide(HttpRunner.layerHttp, [layerHttpServer, FetchHttpClient.layer]) : Layer.provide(HttpRunner.layerWebsocket, [layerHttpServer, layerWebSocketConstructor]);
|
|
53
|
+
const runnerHealth = options?.clientOnly ? Layer.empty : options?.runnerHealth === "k8s" ? RunnerHealth.layerK8s(options.runnerHealthK8s).pipe(Layer.provide([layer2, layerK8sHttpClient])) : RunnerHealth.layerPing.pipe(Layer.provide(Runners.layerRpc), Layer.provide(options.transport === "http" ? HttpRunner.layerClientProtocolHttpDefault.pipe(Layer.provide(FetchHttpClient.layer)) : HttpRunner.layerClientProtocolWebsocketDefault.pipe(Layer.provide(layerWebSocketConstructor))));
|
|
54
|
+
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({
|
|
55
|
+
maxBufferSize: options.serializationMaxBufferSize
|
|
56
|
+
}) : RpcSerialization.layerSchemaBinary({
|
|
57
|
+
maxFrameSize: options.serializationMaxBufferSize
|
|
58
|
+
})));
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
layerHttpServer,
|
|
63
|
+
layer7 as layer,
|
|
64
|
+
BunClusterHttp_exports
|
|
65
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer
|
|
3
|
+
} from "./chunk-HDV6VIRM.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./chunk-MLKGABMK.js";
|
|
7
|
+
|
|
8
|
+
// ../../../../node_modules/.pnpm/@effect+platform-bun@4.0.4_effect@4.0.4/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,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/node_modules/@effect/platform-node-shared/dist/NodeCrypto.js
|
|
6
|
+
var NodeCrypto_exports = {};
|
|
7
|
+
__export(NodeCrypto_exports, {
|
|
8
|
+
layer: () => layer,
|
|
9
|
+
make: () => make2
|
|
10
|
+
});
|
|
11
|
+
import * as EffectCrypto from "effect/Crypto";
|
|
12
|
+
import * as Effect from "effect/Effect";
|
|
13
|
+
import * as Layer from "effect/Layer";
|
|
14
|
+
import * as PlatformError from "effect/PlatformError";
|
|
15
|
+
import * as NodeCrypto from "node:crypto";
|
|
16
|
+
var toHashAlgorithm = (algorithm) => {
|
|
17
|
+
switch (algorithm) {
|
|
18
|
+
case "SHA-1":
|
|
19
|
+
return "sha1";
|
|
20
|
+
case "SHA-256":
|
|
21
|
+
return "sha256";
|
|
22
|
+
case "SHA-384":
|
|
23
|
+
return "sha384";
|
|
24
|
+
case "SHA-512":
|
|
25
|
+
return "sha512";
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var digest = (algorithm, data) => Effect.try({
|
|
29
|
+
try: () => Uint8Array.from(NodeCrypto.createHash(toHashAlgorithm(algorithm)).update(data).digest()),
|
|
30
|
+
catch: (cause) => PlatformError.systemError({
|
|
31
|
+
module: "Crypto",
|
|
32
|
+
method: "digest",
|
|
33
|
+
_tag: "Unknown",
|
|
34
|
+
description: "Could not compute digest",
|
|
35
|
+
cause
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
var make2 = /* @__PURE__ */ EffectCrypto.make({
|
|
39
|
+
randomBytes: NodeCrypto.randomBytes,
|
|
40
|
+
digest
|
|
41
|
+
});
|
|
42
|
+
var layer = /* @__PURE__ */ Layer.succeed(EffectCrypto.Crypto, make2);
|
|
43
|
+
|
|
44
|
+
export {
|
|
45
|
+
make2 as make,
|
|
46
|
+
layer,
|
|
47
|
+
NodeCrypto_exports
|
|
48
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer as layer5
|
|
3
|
+
} from "./chunk-ZUUCLHBP.js";
|
|
4
|
+
import {
|
|
5
|
+
layer as layer6
|
|
6
|
+
} from "./chunk-X4YPHWAE.js";
|
|
7
|
+
import {
|
|
8
|
+
layer as layer4
|
|
9
|
+
} from "./chunk-JOQDB2HC.js";
|
|
10
|
+
import {
|
|
11
|
+
layer
|
|
12
|
+
} from "./chunk-NQO6V4KI.js";
|
|
13
|
+
import {
|
|
14
|
+
layer as layer2
|
|
15
|
+
} from "./chunk-GJN7MEBF.js";
|
|
16
|
+
import {
|
|
17
|
+
layer as layer3
|
|
18
|
+
} from "./chunk-ZNKZXDUD.js";
|
|
19
|
+
import {
|
|
20
|
+
__export
|
|
21
|
+
} from "./chunk-MLKGABMK.js";
|
|
22
|
+
|
|
23
|
+
// ../../../../node_modules/.pnpm/@effect+platform-bun@4.0.4_effect@4.0.4/node_modules/@effect/platform-bun/dist/BunServices.js
|
|
24
|
+
var BunServices_exports = {};
|
|
25
|
+
__export(BunServices_exports, {
|
|
26
|
+
layer: () => layer7
|
|
27
|
+
});
|
|
28
|
+
import * as Layer from "effect/Layer";
|
|
29
|
+
var layer7 = /* @__PURE__ */ layer.pipe(/* @__PURE__ */ Layer.provideMerge(/* @__PURE__ */ Layer.mergeAll(layer3, layer2, layer4, layer5, layer6)));
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
layer7 as layer,
|
|
33
|
+
BunServices_exports
|
|
34
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer
|
|
3
|
+
} from "./chunk-RKVXYKHJ.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./chunk-MLKGABMK.js";
|
|
7
|
+
|
|
8
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.4_effect@4.0.4_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeAddressResolver.js
|
|
9
|
+
var NodeAddressResolver_exports = {};
|
|
10
|
+
__export(NodeAddressResolver_exports, {
|
|
11
|
+
layer: () => layer
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
NodeAddressResolver_exports
|
|
16
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer,
|
|
3
|
+
layerPosix,
|
|
4
|
+
layerWin32
|
|
5
|
+
} from "./chunk-OF3N2FN4.js";
|
|
6
|
+
import {
|
|
7
|
+
__export
|
|
8
|
+
} from "./chunk-MLKGABMK.js";
|
|
9
|
+
|
|
10
|
+
// ../../../../node_modules/.pnpm/@effect+platform-bun@4.0.4_effect@4.0.4/node_modules/@effect/platform-bun/dist/BunPath.js
|
|
11
|
+
var BunPath_exports = {};
|
|
12
|
+
__export(BunPath_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
|
+
BunPath_exports
|
|
26
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer
|
|
3
|
+
} from "./chunk-KFDBU6RR.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./chunk-MLKGABMK.js";
|
|
7
|
+
|
|
8
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.4_effect@4.0.4_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
9
|
+
var NodeStdio_exports = {};
|
|
10
|
+
__export(NodeStdio_exports, {
|
|
11
|
+
layer: () => layer2
|
|
12
|
+
});
|
|
13
|
+
var layer2 = layer;
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
layer2 as layer,
|
|
17
|
+
NodeStdio_exports
|
|
18
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fromReadable
|
|
3
|
+
} from "./chunk-RQH5DSBA.js";
|
|
4
|
+
import {
|
|
5
|
+
fromWritable
|
|
6
|
+
} from "./chunk-A7UXCEJA.js";
|
|
7
|
+
import {
|
|
8
|
+
__export
|
|
9
|
+
} from "./chunk-MLKGABMK.js";
|
|
10
|
+
|
|
11
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/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,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fromWritable,
|
|
3
|
+
fromWritableChannel,
|
|
4
|
+
pullIntoWritable
|
|
5
|
+
} from "./chunk-A7UXCEJA.js";
|
|
6
|
+
import {
|
|
7
|
+
__export
|
|
8
|
+
} from "./chunk-MLKGABMK.js";
|
|
9
|
+
|
|
10
|
+
// ../../../../node_modules/.pnpm/@effect+platform-bun@4.0.4_effect@4.0.4/node_modules/@effect/platform-bun/dist/BunSink.js
|
|
11
|
+
var BunSink_exports = {};
|
|
12
|
+
__export(BunSink_exports, {
|
|
13
|
+
fromWritable: () => fromWritable,
|
|
14
|
+
fromWritableChannel: () => fromWritableChannel,
|
|
15
|
+
pullIntoWritable: () => pullIntoWritable
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
BunSink_exports
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fromSocket,
|
|
3
|
+
layer,
|
|
4
|
+
make
|
|
5
|
+
} from "./chunk-NUJQMLJP.js";
|
|
6
|
+
import {
|
|
7
|
+
__export
|
|
8
|
+
} from "./chunk-MLKGABMK.js";
|
|
9
|
+
|
|
10
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.4_effect@4.0.4_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeDatagramSocket.js
|
|
11
|
+
var NodeDatagramSocket_exports = {};
|
|
12
|
+
__export(NodeDatagramSocket_exports, {
|
|
13
|
+
fromSocket: () => fromSocket,
|
|
14
|
+
layer: () => layer,
|
|
15
|
+
make: () => make
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
NodeDatagramSocket_exports
|
|
20
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node-shared@4.0.4_effect@4.0.4/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
|
|
6
|
+
var NodeTerminal_exports = {};
|
|
7
|
+
__export(NodeTerminal_exports, {
|
|
8
|
+
layer: () => layer,
|
|
9
|
+
make: () => make4
|
|
10
|
+
});
|
|
11
|
+
import * as Effect from "effect/Effect";
|
|
12
|
+
import * as Layer from "effect/Layer";
|
|
13
|
+
import * as Option from "effect/Option";
|
|
14
|
+
import { badArgument } from "effect/PlatformError";
|
|
15
|
+
import * as Predicate from "effect/Predicate";
|
|
16
|
+
import * as Queue from "effect/Queue";
|
|
17
|
+
import * as RcRef from "effect/RcRef";
|
|
18
|
+
import * as Terminal from "effect/Terminal";
|
|
19
|
+
import * as readline from "node:readline";
|
|
20
|
+
var make4 = /* @__PURE__ */ Effect.fnUntraced(function* (shouldQuit = defaultShouldQuit) {
|
|
21
|
+
const stdin = process.stdin;
|
|
22
|
+
const stdout = process.stdout;
|
|
23
|
+
const lines = yield* Queue.make();
|
|
24
|
+
let inputEnded = stdin.readableEnded;
|
|
25
|
+
let readlineActive = false;
|
|
26
|
+
const onStdinEnd = () => {
|
|
27
|
+
inputEnded = true;
|
|
28
|
+
if (!readlineActive) {
|
|
29
|
+
Queue.endUnsafe(lines);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
stdin.once("end", onStdinEnd);
|
|
33
|
+
yield* Effect.addFinalizer(() => Effect.sync(() => stdin.off("end", onStdinEnd)));
|
|
34
|
+
const rlRef = yield* RcRef.make({
|
|
35
|
+
acquire: Effect.acquireRelease(Effect.sync(() => {
|
|
36
|
+
const rl = readline.createInterface({
|
|
37
|
+
input: stdin,
|
|
38
|
+
escapeCodeTimeout: 50
|
|
39
|
+
});
|
|
40
|
+
const onLine = (line) => Queue.offerUnsafe(lines, line);
|
|
41
|
+
const onClose = () => {
|
|
42
|
+
readlineActive = false;
|
|
43
|
+
Queue.endUnsafe(lines);
|
|
44
|
+
};
|
|
45
|
+
readlineActive = true;
|
|
46
|
+
readline.emitKeypressEvents(stdin, rl);
|
|
47
|
+
rl.on("line", onLine);
|
|
48
|
+
rl.once("close", onClose);
|
|
49
|
+
if (stdin.isTTY) {
|
|
50
|
+
stdin.setRawMode(true);
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
rl,
|
|
54
|
+
onClose,
|
|
55
|
+
onLine
|
|
56
|
+
};
|
|
57
|
+
}), ({
|
|
58
|
+
rl,
|
|
59
|
+
onClose,
|
|
60
|
+
onLine
|
|
61
|
+
}) => Effect.sync(() => {
|
|
62
|
+
readlineActive = false;
|
|
63
|
+
rl.off("line", onLine);
|
|
64
|
+
rl.off("close", onClose);
|
|
65
|
+
if (stdin.isTTY) {
|
|
66
|
+
stdin.setRawMode(false);
|
|
67
|
+
}
|
|
68
|
+
rl.close();
|
|
69
|
+
if (inputEnded) {
|
|
70
|
+
Queue.endUnsafe(lines);
|
|
71
|
+
}
|
|
72
|
+
})),
|
|
73
|
+
idleTimeToLive: "10 millis"
|
|
74
|
+
});
|
|
75
|
+
const columns = Effect.sync(() => stdout.columns ?? 0);
|
|
76
|
+
const rows = Effect.sync(() => stdout.rows ?? 0);
|
|
77
|
+
const readInput = Effect.gen(function* () {
|
|
78
|
+
const queue = yield* Queue.make();
|
|
79
|
+
const handleKeypress = (s, k) => {
|
|
80
|
+
const userInput = {
|
|
81
|
+
input: Option.fromUndefinedOr(s),
|
|
82
|
+
key: {
|
|
83
|
+
name: k.name ?? "",
|
|
84
|
+
ctrl: !!k.ctrl,
|
|
85
|
+
meta: !!k.meta,
|
|
86
|
+
shift: !!k.shift
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
Queue.offerUnsafe(queue, userInput);
|
|
90
|
+
if (shouldQuit(userInput)) {
|
|
91
|
+
Queue.endUnsafe(queue);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const keepAlive = setInterval(() => {
|
|
95
|
+
}, 2147483647);
|
|
96
|
+
const handleEnd = () => {
|
|
97
|
+
clearInterval(keepAlive);
|
|
98
|
+
Queue.endUnsafe(queue);
|
|
99
|
+
};
|
|
100
|
+
yield* Effect.addFinalizer(() => Effect.sync(() => {
|
|
101
|
+
clearInterval(keepAlive);
|
|
102
|
+
stdin.off("keypress", handleKeypress);
|
|
103
|
+
stdin.off("end", handleEnd);
|
|
104
|
+
}));
|
|
105
|
+
stdin.on("keypress", handleKeypress);
|
|
106
|
+
if (inputEnded) {
|
|
107
|
+
handleEnd();
|
|
108
|
+
} else {
|
|
109
|
+
yield* RcRef.get(rlRef);
|
|
110
|
+
stdin.once("end", handleEnd);
|
|
111
|
+
}
|
|
112
|
+
return queue;
|
|
113
|
+
});
|
|
114
|
+
const readLine = Effect.suspend(() => Queue.poll(lines).pipe(Effect.flatMap(Option.match({
|
|
115
|
+
onNone: () => Effect.scoped(Effect.andThen(RcRef.get(rlRef), Queue.take(lines))),
|
|
116
|
+
onSome: Effect.succeed
|
|
117
|
+
})), Effect.mapError(() => new Terminal.QuitError({}))));
|
|
118
|
+
const display = (prompt) => Effect.uninterruptible(Effect.callback((resume) => {
|
|
119
|
+
stdout.write(prompt, (err) => Predicate.isNullish(err) ? resume(Effect.void) : resume(Effect.fail(badArgument({
|
|
120
|
+
module: "Terminal",
|
|
121
|
+
method: "display",
|
|
122
|
+
description: "Failed to write prompt to stdout",
|
|
123
|
+
cause: err
|
|
124
|
+
}))));
|
|
125
|
+
}));
|
|
126
|
+
return Terminal.make({
|
|
127
|
+
columns,
|
|
128
|
+
rows,
|
|
129
|
+
readInput,
|
|
130
|
+
readLine,
|
|
131
|
+
display
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
var layer = /* @__PURE__ */ Layer.effect(Terminal.Terminal, /* @__PURE__ */ make4(defaultShouldQuit));
|
|
135
|
+
function defaultShouldQuit(input) {
|
|
136
|
+
const key = input.key;
|
|
137
|
+
return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export {
|
|
141
|
+
make4 as make,
|
|
142
|
+
layer,
|
|
143
|
+
NodeTerminal_exports
|
|
144
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runMain
|
|
3
|
+
} from "./chunk-UUYTTEDH.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./chunk-MLKGABMK.js";
|
|
7
|
+
|
|
8
|
+
// ../../../../node_modules/.pnpm/@effect+platform-node@4.0.4_effect@4.0.4_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
9
|
+
var NodeRuntime_exports = {};
|
|
10
|
+
__export(NodeRuntime_exports, {
|
|
11
|
+
runMain: () => runMain2
|
|
12
|
+
});
|
|
13
|
+
var runMain2 = runMain;
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
runMain2 as runMain,
|
|
17
|
+
NodeRuntime_exports
|
|
18
|
+
};
|