@smthrs/gateway 0.35.0 → 1.0.0-rc.3
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 +198 -0
- package/LICENSE +1 -1
- package/README.md +92 -0
- package/dist/cjs/Diagnosis.d.ts +275 -0
- package/dist/cjs/Diagnosis.d.ts.map +1 -0
- package/dist/cjs/Diagnosis.js +476 -0
- package/dist/cjs/Diagnosis.js.map +7 -0
- package/dist/cjs/EngineTrace.d.ts +76 -0
- package/dist/cjs/EngineTrace.d.ts.map +1 -0
- package/dist/cjs/EngineTrace.js +501 -0
- package/dist/cjs/EngineTrace.js.map +7 -0
- package/dist/cjs/GatewayError.d.ts +54 -0
- package/dist/cjs/GatewayError.d.ts.map +1 -0
- package/dist/cjs/GatewayError.js +51 -0
- package/dist/cjs/GatewayError.js.map +7 -0
- package/dist/cjs/GatewayProjection.d.ts +480 -0
- package/dist/cjs/GatewayProjection.d.ts.map +1 -0
- package/dist/cjs/GatewayProjection.js +462 -0
- package/dist/cjs/GatewayProjection.js.map +7 -0
- package/dist/cjs/GatewayRpcs.d.ts +1886 -0
- package/dist/cjs/GatewayRpcs.d.ts.map +1 -0
- package/dist/cjs/GatewayRpcs.js +121 -0
- package/dist/cjs/GatewayRpcs.js.map +7 -0
- package/dist/cjs/GatewaySchema.d.ts +3274 -0
- package/dist/cjs/GatewaySchema.d.ts.map +1 -0
- package/dist/cjs/GatewaySchema.js +141 -0
- package/dist/cjs/GatewaySchema.js.map +7 -0
- package/dist/cjs/GatewayServer.d.ts +427 -0
- package/dist/cjs/GatewayServer.d.ts.map +1 -0
- package/dist/cjs/GatewayServer.js +428 -0
- package/dist/cjs/GatewayServer.js.map +7 -0
- package/dist/cjs/HostBranchPresence.d.ts +12 -0
- package/dist/cjs/HostBranchPresence.d.ts.map +1 -0
- package/dist/cjs/HostBranchPresence.js +82 -0
- package/dist/cjs/HostBranchPresence.js.map +7 -0
- package/dist/cjs/Projections.d.ts +209 -0
- package/dist/cjs/Projections.d.ts.map +1 -0
- package/dist/cjs/Projections.js +906 -0
- package/dist/cjs/Projections.js.map +7 -0
- package/dist/cjs/RunDevTools.d.ts +181 -0
- package/dist/cjs/RunDevTools.d.ts.map +1 -0
- package/dist/cjs/RunDevTools.js +195 -0
- package/dist/cjs/RunDevTools.js.map +7 -0
- package/dist/cjs/RunHistory.d.ts +185 -0
- package/dist/cjs/RunHistory.d.ts.map +1 -0
- package/dist/cjs/RunHistory.js +68 -0
- package/dist/cjs/RunHistory.js.map +7 -0
- package/dist/cjs/RunTrace.d.ts +753 -0
- package/dist/cjs/RunTrace.d.ts.map +1 -0
- package/dist/cjs/RunTrace.js +1593 -0
- package/dist/cjs/RunTrace.js.map +7 -0
- package/dist/cjs/RuntimeBridge.d.ts +1386 -0
- package/dist/cjs/RuntimeBridge.d.ts.map +1 -0
- package/dist/cjs/RuntimeBridge.js +598 -0
- package/dist/cjs/RuntimeBridge.js.map +7 -0
- package/dist/cjs/bun/BunGateway.d.ts +20 -0
- package/dist/cjs/bun/BunGateway.d.ts.map +1 -0
- package/dist/cjs/bun/BunGateway.js +62 -0
- package/dist/cjs/bun/BunGateway.js.map +7 -0
- package/dist/cjs/index.d.ts +65 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +59 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/internal/NativeGateway.d.ts +176 -0
- package/dist/cjs/internal/NativeGateway.d.ts.map +1 -0
- package/dist/cjs/internal/NativeGateway.js +187 -0
- package/dist/cjs/internal/NativeGateway.js.map +7 -0
- package/dist/cjs/internal/actionRenderings.d.ts +2 -0
- package/dist/cjs/internal/actionRenderings.d.ts.map +1 -0
- package/dist/cjs/internal/actionRenderings.js +224 -0
- package/dist/cjs/internal/actionRenderings.js.map +7 -0
- package/dist/cjs/internal/callEvents.d.ts +97 -0
- package/dist/cjs/internal/callEvents.d.ts.map +1 -0
- package/dist/cjs/internal/callEvents.js +169 -0
- package/dist/cjs/internal/callEvents.js.map +7 -0
- package/dist/cjs/internal/digestIndex.d.ts +31 -0
- package/dist/cjs/internal/digestIndex.d.ts.map +1 -0
- package/dist/cjs/internal/digestIndex.js +105 -0
- package/dist/cjs/internal/digestIndex.js.map +7 -0
- package/dist/cjs/internal/digestMemory.d.ts +19 -0
- package/dist/cjs/internal/digestMemory.d.ts.map +1 -0
- package/dist/cjs/internal/digestMemory.js +33 -0
- package/dist/cjs/internal/digestMemory.js.map +7 -0
- package/dist/cjs/internal/inspectLabels.d.ts +8 -0
- package/dist/cjs/internal/inspectLabels.d.ts.map +1 -0
- package/dist/cjs/internal/inspectLabels.js +29 -0
- package/dist/cjs/internal/inspectLabels.js.map +7 -0
- package/dist/cjs/internal/nativeResolution.d.ts +41 -0
- package/dist/cjs/internal/nativeResolution.d.ts.map +1 -0
- package/dist/cjs/internal/nativeResolution.js +62 -0
- package/dist/cjs/internal/nativeResolution.js.map +7 -0
- package/dist/cjs/internal/nodeEvents.d.ts +47 -0
- package/dist/cjs/internal/nodeEvents.d.ts.map +1 -0
- package/dist/cjs/internal/nodeEvents.js +60 -0
- package/dist/cjs/internal/nodeEvents.js.map +7 -0
- package/dist/cjs/node/NodeGateway.d.ts +16 -0
- package/dist/cjs/node/NodeGateway.d.ts.map +1 -0
- package/dist/cjs/node/NodeGateway.js +48 -0
- package/dist/cjs/node/NodeGateway.js.map +7 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/Diagnosis.d.ts +275 -0
- package/dist/esm/Diagnosis.d.ts.map +1 -0
- package/dist/esm/Diagnosis.js +697 -0
- package/dist/esm/Diagnosis.js.map +1 -0
- package/dist/esm/EngineTrace.d.ts +76 -0
- package/dist/esm/EngineTrace.d.ts.map +1 -0
- package/dist/esm/EngineTrace.js +548 -0
- package/dist/esm/EngineTrace.js.map +1 -0
- package/dist/esm/GatewayError.d.ts +54 -0
- package/dist/esm/GatewayError.d.ts.map +1 -0
- package/dist/esm/GatewayError.js +60 -0
- package/dist/esm/GatewayError.js.map +1 -0
- package/dist/esm/GatewayProjection.d.ts +480 -0
- package/dist/esm/GatewayProjection.d.ts.map +1 -0
- package/dist/esm/GatewayProjection.js +792 -0
- package/dist/esm/GatewayProjection.js.map +1 -0
- package/dist/esm/GatewayRpcs.d.ts +1886 -0
- package/dist/esm/GatewayRpcs.d.ts.map +1 -0
- package/dist/esm/GatewayRpcs.js +145 -0
- package/dist/esm/GatewayRpcs.js.map +1 -0
- package/dist/esm/GatewaySchema.d.ts +3274 -0
- package/dist/esm/GatewaySchema.d.ts.map +1 -0
- package/dist/esm/GatewaySchema.js +244 -0
- package/dist/esm/GatewaySchema.js.map +1 -0
- package/dist/esm/GatewayServer.d.ts +427 -0
- package/dist/esm/GatewayServer.d.ts.map +1 -0
- package/dist/esm/GatewayServer.js +725 -0
- package/dist/esm/GatewayServer.js.map +1 -0
- package/dist/esm/HostBranchPresence.d.ts +12 -0
- package/dist/esm/HostBranchPresence.d.ts.map +1 -0
- package/dist/esm/HostBranchPresence.js +54 -0
- package/dist/esm/HostBranchPresence.js.map +1 -0
- package/dist/esm/Projections.d.ts +209 -0
- package/dist/esm/Projections.d.ts.map +1 -0
- package/dist/esm/Projections.js +1254 -0
- package/dist/esm/Projections.js.map +1 -0
- package/dist/esm/RunDevTools.d.ts +181 -0
- package/dist/esm/RunDevTools.d.ts.map +1 -0
- package/dist/esm/RunDevTools.js +281 -0
- package/dist/esm/RunDevTools.js.map +1 -0
- package/dist/esm/RunHistory.d.ts +185 -0
- package/dist/esm/RunHistory.d.ts.map +1 -0
- package/dist/esm/RunHistory.js +109 -0
- package/dist/esm/RunHistory.js.map +1 -0
- package/dist/esm/RunTrace.d.ts +753 -0
- package/dist/esm/RunTrace.d.ts.map +1 -0
- package/dist/esm/RunTrace.js +2105 -0
- package/dist/esm/RunTrace.js.map +1 -0
- package/dist/esm/RuntimeBridge.d.ts +1386 -0
- package/dist/esm/RuntimeBridge.d.ts.map +1 -0
- package/dist/esm/RuntimeBridge.js +659 -0
- package/dist/esm/RuntimeBridge.js.map +1 -0
- package/dist/esm/bun/BunGateway.d.ts +20 -0
- package/dist/esm/bun/BunGateway.d.ts.map +1 -0
- package/dist/esm/bun/BunGateway.js +32 -0
- package/dist/esm/bun/BunGateway.js.map +1 -0
- package/dist/esm/index.d.ts +65 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +65 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/internal/NativeGateway.d.ts +176 -0
- package/dist/esm/internal/NativeGateway.d.ts.map +1 -0
- package/dist/esm/internal/NativeGateway.js +268 -0
- package/dist/esm/internal/NativeGateway.js.map +1 -0
- package/dist/esm/internal/actionRenderings.d.ts +2 -0
- package/dist/esm/internal/actionRenderings.d.ts.map +1 -0
- package/dist/esm/internal/actionRenderings.js +202 -0
- package/dist/esm/internal/actionRenderings.js.map +1 -0
- package/dist/esm/internal/callEvents.d.ts +97 -0
- package/dist/esm/internal/callEvents.d.ts.map +1 -0
- package/dist/esm/internal/callEvents.js +206 -0
- package/dist/esm/internal/callEvents.js.map +1 -0
- package/dist/esm/internal/digestIndex.d.ts +31 -0
- package/dist/esm/internal/digestIndex.d.ts.map +1 -0
- package/dist/esm/internal/digestIndex.js +87 -0
- package/dist/esm/internal/digestIndex.js.map +1 -0
- package/dist/esm/internal/digestMemory.d.ts +19 -0
- package/dist/esm/internal/digestMemory.d.ts.map +1 -0
- package/dist/esm/internal/digestMemory.js +23 -0
- package/dist/esm/internal/digestMemory.js.map +1 -0
- package/dist/esm/internal/inspectLabels.d.ts +8 -0
- package/dist/esm/internal/inspectLabels.d.ts.map +1 -0
- package/dist/esm/internal/inspectLabels.js +12 -0
- package/dist/esm/internal/inspectLabels.js.map +1 -0
- package/dist/esm/internal/nativeResolution.d.ts +41 -0
- package/dist/esm/internal/nativeResolution.d.ts.map +1 -0
- package/dist/esm/internal/nativeResolution.js +78 -0
- package/dist/esm/internal/nativeResolution.js.map +1 -0
- package/dist/esm/internal/nodeEvents.d.ts +47 -0
- package/dist/esm/internal/nodeEvents.d.ts.map +1 -0
- package/dist/esm/internal/nodeEvents.js +60 -0
- package/dist/esm/internal/nodeEvents.js.map +1 -0
- package/dist/esm/node/NodeGateway.d.ts +16 -0
- package/dist/esm/node/NodeGateway.d.ts.map +1 -0
- package/dist/esm/node/NodeGateway.js +13 -0
- package/dist/esm/node/NodeGateway.js.map +1 -0
- package/dist/vendor/adapters.json +2707 -0
- package/dist/vendor/bun/BunChildProcessSpawner.d.ts +7 -0
- package/dist/vendor/bun/BunChildProcessSpawner.js +14 -0
- package/dist/vendor/bun/BunClusterHttp.d.ts +83 -0
- package/dist/vendor/bun/BunClusterHttp.js +39 -0
- package/dist/vendor/bun/BunClusterSocket.d.ts +65 -0
- package/dist/vendor/bun/BunClusterSocket.js +22 -0
- package/dist/vendor/bun/BunCrypto.d.ts +10 -0
- package/dist/vendor/bun/BunCrypto.js +8 -0
- package/dist/vendor/bun/BunFileSystem.d.ts +10 -0
- package/dist/vendor/bun/BunFileSystem.js +9 -0
- package/dist/vendor/bun/BunHttpClient.d.ts +9 -0
- package/dist/vendor/bun/BunHttpClient.js +1 -0
- package/dist/vendor/bun/BunHttpPlatform.d.ts +10 -0
- package/dist/vendor/bun/BunHttpPlatform.js +11 -0
- package/dist/vendor/bun/BunHttpServer.d.ts +142 -0
- package/dist/vendor/bun/BunHttpServer.js +38 -0
- package/dist/vendor/bun/BunHttpServerRequest.d.ts +18 -0
- package/dist/vendor/bun/BunHttpServerRequest.js +7 -0
- package/dist/vendor/bun/BunMultipart.d.ts +31 -0
- package/dist/vendor/bun/BunMultipart.js +12 -0
- package/dist/vendor/bun/BunPath.d.ts +24 -0
- package/dist/vendor/bun/BunPath.js +12 -0
- package/dist/vendor/bun/BunRedis.d.ts +49 -0
- package/dist/vendor/bun/BunRedis.js +11 -0
- package/dist/vendor/bun/BunRuntime.d.ts +85 -0
- package/dist/vendor/bun/BunRuntime.js +8 -0
- package/dist/vendor/bun/BunServices.d.ts +34 -0
- package/dist/vendor/bun/BunServices.js +23 -0
- package/dist/vendor/bun/BunSink.d.ts +8 -0
- package/dist/vendor/bun/BunSink.js +12 -0
- package/dist/vendor/bun/BunSocket.d.ts +40 -0
- package/dist/vendor/bun/BunSocket.js +29 -0
- package/dist/vendor/bun/BunSocketServer.d.ts +8 -0
- package/dist/vendor/bun/BunSocketServer.js +21 -0
- package/dist/vendor/bun/BunStdio.d.ts +11 -0
- package/dist/vendor/bun/BunStdio.js +10 -0
- package/dist/vendor/bun/BunStream.d.ts +19 -0
- package/dist/vendor/bun/BunStream.js +30 -0
- package/dist/vendor/bun/BunTerminal.d.ts +21 -0
- package/dist/vendor/bun/BunTerminal.js +10 -0
- package/dist/vendor/bun/BunWorker.d.ts +20 -0
- package/dist/vendor/bun/BunWorker.js +9 -0
- package/dist/vendor/bun/BunWorkerRunner.d.ts +12 -0
- package/dist/vendor/bun/BunWorkerRunner.js +7 -0
- package/dist/vendor/bun/LICENSE +21 -0
- package/dist/vendor/bun/index.d.ts +92 -0
- package/dist/vendor/bun/index.js +107 -0
- package/dist/vendor/chunk-2GCOZTTW.js +48 -0
- package/dist/vendor/chunk-37CUR3PO.js +81 -0
- package/dist/vendor/chunk-3ARKKENZ.js +45 -0
- package/dist/vendor/chunk-3NV2UDBI.js +7 -0
- package/dist/vendor/chunk-3OSW7CT7.js +143 -0
- package/dist/vendor/chunk-62R63L74.js +62 -0
- package/dist/vendor/chunk-6AQLBC2I.js +118 -0
- package/dist/vendor/chunk-6C5H7S6B.js +18 -0
- package/dist/vendor/chunk-6DY5RBZD.js +85 -0
- package/dist/vendor/chunk-6UPBD47P.js +53 -0
- package/dist/vendor/chunk-AVVVN75Z.js +96 -0
- package/dist/vendor/chunk-B4DHEMBB.js +14 -0
- package/dist/vendor/chunk-BCK3NJOX.js +15 -0
- package/dist/vendor/chunk-BFBIHJ6X.js +0 -0
- package/dist/vendor/chunk-CES4OUM4.js +63 -0
- package/dist/vendor/chunk-D64L6YND.js +59 -0
- package/dist/vendor/chunk-DS2R6WOM.js +18 -0
- package/dist/vendor/chunk-DX4Z23DM.js +65 -0
- package/dist/vendor/chunk-DZ2VOUDP.js +564 -0
- package/dist/vendor/chunk-FOXN6JPJ.js +61 -0
- package/dist/vendor/chunk-FPQF7CR5.js +55 -0
- package/dist/vendor/chunk-FUTCTCEG.js +20 -0
- package/dist/vendor/chunk-GUPAV2YZ.js +18 -0
- package/dist/vendor/chunk-H2Z2Y4QH.js +70 -0
- package/dist/vendor/chunk-HAEDVSSM.js +129 -0
- package/dist/vendor/chunk-HY7BBL3K.js +93 -0
- package/dist/vendor/chunk-IFTTT6D5.js +31 -0
- package/dist/vendor/chunk-KQDSNB7M.js +26 -0
- package/dist/vendor/chunk-LIHLXXGQ.js +26 -0
- package/dist/vendor/chunk-LKCGQEE5.js +28 -0
- package/dist/vendor/chunk-MH2J3BYB.js +0 -0
- package/dist/vendor/chunk-ML2NAFH2.js +131 -0
- package/dist/vendor/chunk-MLFIZ5O2.js +0 -0
- package/dist/vendor/chunk-MLKGABMK.js +9 -0
- package/dist/vendor/chunk-MSCLEMYX.js +71 -0
- package/dist/vendor/chunk-OBWXQKVP.js +57 -0
- package/dist/vendor/chunk-QR557K66.js +20 -0
- package/dist/vendor/chunk-R4QUY7DH.js +18 -0
- package/dist/vendor/chunk-RGECXXJS.js +18 -0
- package/dist/vendor/chunk-TFY7W6D4.js +36 -0
- package/dist/vendor/chunk-TGPIVY4A.js +104 -0
- package/dist/vendor/chunk-TGXCX6W3.js +398 -0
- package/dist/vendor/chunk-TOHSFXMV.js +437 -0
- package/dist/vendor/chunk-UHIDPUFF.js +34 -0
- package/dist/vendor/chunk-ULT6CWUI.js +109 -0
- package/dist/vendor/chunk-UXBGYQR3.js +18 -0
- package/dist/vendor/chunk-V6LUGQ7O.js +21 -0
- package/dist/vendor/chunk-W4OASVX6.js +92 -0
- package/dist/vendor/chunk-WAII54GA.js +18 -0
- package/dist/vendor/chunk-WECQDT36.js +426 -0
- package/dist/vendor/chunk-WHKMOC7Z.js +28 -0
- package/dist/vendor/chunk-WVFOZ2UL.js +40 -0
- package/dist/vendor/chunk-X73E2UPI.js +18 -0
- package/dist/vendor/chunk-XCYARUII.js +63 -0
- package/dist/vendor/chunk-XFEVTDVD.js +34 -0
- package/dist/vendor/chunk-XFZZYSJ4.js +22 -0
- package/dist/vendor/chunk-XJWJXLXJ.js +18 -0
- package/dist/vendor/chunk-XY3Q62EO.js +18 -0
- package/dist/vendor/chunk-YDASSC75.js +394 -0
- package/dist/vendor/chunk-Z6C7SO5Z.js +507 -0
- package/dist/vendor/chunk-Z7QNPJEB.js +229 -0
- package/dist/vendor/chunk-Z7QPP4YH.js +249 -0
- package/dist/vendor/chunk-ZCHYLHJH.js +86 -0
- package/dist/vendor/chunk-ZIQVYVMA.js +22 -0
- package/dist/vendor/chunk-ZPIG2CUA.js +34 -0
- package/dist/vendor/cjs/bun/BunChildProcessSpawner.d.ts +7 -0
- package/dist/vendor/cjs/bun/BunChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/bun/BunClusterHttp.d.ts +83 -0
- package/dist/vendor/cjs/bun/BunClusterHttp.js +1 -0
- package/dist/vendor/cjs/bun/BunClusterSocket.d.ts +65 -0
- package/dist/vendor/cjs/bun/BunClusterSocket.js +1 -0
- package/dist/vendor/cjs/bun/BunCrypto.d.ts +10 -0
- package/dist/vendor/cjs/bun/BunCrypto.js +1 -0
- package/dist/vendor/cjs/bun/BunFileSystem.d.ts +10 -0
- package/dist/vendor/cjs/bun/BunFileSystem.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpClient.d.ts +9 -0
- package/dist/vendor/cjs/bun/BunHttpClient.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpPlatform.d.ts +10 -0
- package/dist/vendor/cjs/bun/BunHttpPlatform.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpServer.d.ts +142 -0
- package/dist/vendor/cjs/bun/BunHttpServer.js +1 -0
- package/dist/vendor/cjs/bun/BunHttpServerRequest.d.ts +18 -0
- package/dist/vendor/cjs/bun/BunHttpServerRequest.js +1 -0
- package/dist/vendor/cjs/bun/BunMultipart.d.ts +31 -0
- package/dist/vendor/cjs/bun/BunMultipart.js +1 -0
- package/dist/vendor/cjs/bun/BunPath.d.ts +24 -0
- package/dist/vendor/cjs/bun/BunPath.js +1 -0
- package/dist/vendor/cjs/bun/BunRedis.d.ts +49 -0
- package/dist/vendor/cjs/bun/BunRedis.js +1 -0
- package/dist/vendor/cjs/bun/BunRuntime.d.ts +85 -0
- package/dist/vendor/cjs/bun/BunRuntime.js +1 -0
- package/dist/vendor/cjs/bun/BunServices.d.ts +34 -0
- package/dist/vendor/cjs/bun/BunServices.js +1 -0
- package/dist/vendor/cjs/bun/BunSink.d.ts +8 -0
- package/dist/vendor/cjs/bun/BunSink.js +1 -0
- package/dist/vendor/cjs/bun/BunSocket.d.ts +40 -0
- package/dist/vendor/cjs/bun/BunSocket.js +1 -0
- package/dist/vendor/cjs/bun/BunSocketServer.d.ts +8 -0
- package/dist/vendor/cjs/bun/BunSocketServer.js +1 -0
- package/dist/vendor/cjs/bun/BunStdio.d.ts +11 -0
- package/dist/vendor/cjs/bun/BunStdio.js +1 -0
- package/dist/vendor/cjs/bun/BunStream.d.ts +19 -0
- package/dist/vendor/cjs/bun/BunStream.js +1 -0
- package/dist/vendor/cjs/bun/BunTerminal.d.ts +21 -0
- package/dist/vendor/cjs/bun/BunTerminal.js +1 -0
- package/dist/vendor/cjs/bun/BunWorker.d.ts +20 -0
- package/dist/vendor/cjs/bun/BunWorker.js +1 -0
- package/dist/vendor/cjs/bun/BunWorkerRunner.d.ts +12 -0
- package/dist/vendor/cjs/bun/BunWorkerRunner.js +1 -0
- package/dist/vendor/cjs/bun/index.d.ts +92 -0
- package/dist/vendor/cjs/bun/index.js +1 -0
- package/dist/vendor/cjs/node/NodeChildProcessSpawner.d.ts +7 -0
- package/dist/vendor/cjs/node/NodeChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/node/NodeClusterHttp.d.ts +63 -0
- package/dist/vendor/cjs/node/NodeClusterHttp.js +1 -0
- package/dist/vendor/cjs/node/NodeClusterSocket.d.ts +79 -0
- package/dist/vendor/cjs/node/NodeClusterSocket.js +1 -0
- package/dist/vendor/cjs/node/NodeCrypto.d.ts +10 -0
- package/dist/vendor/cjs/node/NodeCrypto.js +1 -0
- package/dist/vendor/cjs/node/NodeFileSystem.d.ts +10 -0
- package/dist/vendor/cjs/node/NodeFileSystem.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpClient.d.ts +179 -0
- package/dist/vendor/cjs/node/NodeHttpClient.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpIncomingMessage.d.ts +62 -0
- package/dist/vendor/cjs/node/NodeHttpIncomingMessage.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpPlatform.d.ts +36 -0
- package/dist/vendor/cjs/node/NodeHttpPlatform.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpServer.d.ts +120 -0
- package/dist/vendor/cjs/node/NodeHttpServer.js +1 -0
- package/dist/vendor/cjs/node/NodeHttpServerRequest.d.ts +29 -0
- package/dist/vendor/cjs/node/NodeHttpServerRequest.js +1 -0
- package/dist/vendor/cjs/node/NodeMultipart.d.ts +46 -0
- package/dist/vendor/cjs/node/NodeMultipart.js +1 -0
- package/dist/vendor/cjs/node/NodeMultipartParser.d.ts +97 -0
- package/dist/vendor/cjs/node/NodeMultipartParser.js +1 -0
- package/dist/vendor/cjs/node/NodePath.d.ts +27 -0
- package/dist/vendor/cjs/node/NodePath.js +1 -0
- package/dist/vendor/cjs/node/NodeRedis.d.ts +74 -0
- package/dist/vendor/cjs/node/NodeRedis.js +1 -0
- package/dist/vendor/cjs/node/NodeRuntime.d.ts +85 -0
- package/dist/vendor/cjs/node/NodeRuntime.js +1 -0
- package/dist/vendor/cjs/node/NodeServices.d.ts +34 -0
- package/dist/vendor/cjs/node/NodeServices.js +1 -0
- package/dist/vendor/cjs/node/NodeSink.d.ts +8 -0
- package/dist/vendor/cjs/node/NodeSink.js +1 -0
- package/dist/vendor/cjs/node/NodeSocket.d.ts +38 -0
- package/dist/vendor/cjs/node/NodeSocket.js +1 -0
- package/dist/vendor/cjs/node/NodeSocketServer.d.ts +8 -0
- package/dist/vendor/cjs/node/NodeSocketServer.js +1 -0
- package/dist/vendor/cjs/node/NodeStdio.d.ts +11 -0
- package/dist/vendor/cjs/node/NodeStdio.js +1 -0
- package/dist/vendor/cjs/node/NodeStream.d.ts +8 -0
- package/dist/vendor/cjs/node/NodeStream.js +1 -0
- package/dist/vendor/cjs/node/NodeTerminal.d.ts +21 -0
- package/dist/vendor/cjs/node/NodeTerminal.js +1 -0
- package/dist/vendor/cjs/node/NodeWorker.d.ts +22 -0
- package/dist/vendor/cjs/node/NodeWorker.js +1 -0
- package/dist/vendor/cjs/node/NodeWorkerRunner.d.ts +12 -0
- package/dist/vendor/cjs/node/NodeWorkerRunner.js +1 -0
- package/dist/vendor/cjs/node/Undici.d.ts +28 -0
- package/dist/vendor/cjs/node/Undici.js +1 -0
- package/dist/vendor/cjs/node/index.d.ts +100 -0
- package/dist/vendor/cjs/node/index.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.d.ts +57 -0
- package/dist/vendor/cjs/node-shared/NodeChildProcessSpawner.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeClusterSocket.d.ts +22 -0
- package/dist/vendor/cjs/node-shared/NodeClusterSocket.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeCrypto.d.ts +27 -0
- package/dist/vendor/cjs/node-shared/NodeCrypto.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeFileSystem.d.ts +11 -0
- package/dist/vendor/cjs/node-shared/NodeFileSystem.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeHttpCompression.d.ts +36 -0
- package/dist/vendor/cjs/node-shared/NodeHttpCompression.js +1 -0
- package/dist/vendor/cjs/node-shared/NodePath.d.ts +27 -0
- package/dist/vendor/cjs/node-shared/NodePath.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeRuntime.d.ts +47 -0
- package/dist/vendor/cjs/node-shared/NodeRuntime.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSink.d.ts +69 -0
- package/dist/vendor/cjs/node-shared/NodeSink.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSocket.d.ts +134 -0
- package/dist/vendor/cjs/node-shared/NodeSocket.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeSocketServer.d.ts +80 -0
- package/dist/vendor/cjs/node-shared/NodeSocketServer.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeStdio.d.ts +12 -0
- package/dist/vendor/cjs/node-shared/NodeStdio.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeStream.d.ts +179 -0
- package/dist/vendor/cjs/node-shared/NodeStream.js +1 -0
- package/dist/vendor/cjs/node-shared/NodeTerminal.d.ts +22 -0
- package/dist/vendor/cjs/node-shared/NodeTerminal.js +1 -0
- package/dist/vendor/cjs/node-shared/index.d.ts +56 -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 +92 -0
- package/dist/vendor/cjs/platform-bun.js +1 -0
- package/dist/vendor/cjs/platform-node-shared.d.ts +56 -0
- package/dist/vendor/cjs/platform-node-shared.js +1 -0
- package/dist/vendor/cjs/platform-node.d.ts +100 -0
- package/dist/vendor/cjs/platform-node.js +1 -0
- package/dist/vendor/node/LICENSE +21 -0
- package/dist/vendor/node/NodeChildProcessSpawner.d.ts +7 -0
- package/dist/vendor/node/NodeChildProcessSpawner.js +14 -0
- package/dist/vendor/node/NodeClusterHttp.d.ts +63 -0
- package/dist/vendor/node/NodeClusterHttp.js +43 -0
- package/dist/vendor/node/NodeClusterSocket.d.ts +79 -0
- package/dist/vendor/node/NodeClusterSocket.js +30 -0
- package/dist/vendor/node/NodeCrypto.d.ts +10 -0
- package/dist/vendor/node/NodeCrypto.js +8 -0
- package/dist/vendor/node/NodeFileSystem.d.ts +10 -0
- package/dist/vendor/node/NodeFileSystem.js +9 -0
- package/dist/vendor/node/NodeHttpClient.d.ts +179 -0
- package/dist/vendor/node/NodeHttpClient.js +46 -0
- package/dist/vendor/node/NodeHttpIncomingMessage.d.ts +62 -0
- package/dist/vendor/node/NodeHttpIncomingMessage.js +10 -0
- package/dist/vendor/node/NodeHttpPlatform.d.ts +36 -0
- package/dist/vendor/node/NodeHttpPlatform.js +16 -0
- package/dist/vendor/node/NodeHttpServer.d.ts +120 -0
- package/dist/vendor/node/NodeHttpServer.js +46 -0
- package/dist/vendor/node/NodeHttpServerRequest.d.ts +29 -0
- package/dist/vendor/node/NodeHttpServerRequest.js +9 -0
- package/dist/vendor/node/NodeMultipart.d.ts +46 -0
- package/dist/vendor/node/NodeMultipart.js +15 -0
- package/dist/vendor/node/NodeMultipartParser.d.ts +97 -0
- package/dist/vendor/node/NodeMultipartParser.js +11 -0
- package/dist/vendor/node/NodePath.d.ts +27 -0
- package/dist/vendor/node/NodePath.js +12 -0
- package/dist/vendor/node/NodeRedis.d.ts +74 -0
- package/dist/vendor/node/NodeRedis.js +11 -0
- package/dist/vendor/node/NodeRuntime.d.ts +85 -0
- package/dist/vendor/node/NodeRuntime.js +8 -0
- package/dist/vendor/node/NodeServices.d.ts +34 -0
- package/dist/vendor/node/NodeServices.js +23 -0
- package/dist/vendor/node/NodeSink.d.ts +8 -0
- package/dist/vendor/node/NodeSink.js +12 -0
- package/dist/vendor/node/NodeSocket.d.ts +38 -0
- package/dist/vendor/node/NodeSocket.js +31 -0
- package/dist/vendor/node/NodeSocketServer.d.ts +8 -0
- package/dist/vendor/node/NodeSocketServer.js +21 -0
- package/dist/vendor/node/NodeStdio.d.ts +11 -0
- package/dist/vendor/node/NodeStdio.js +10 -0
- package/dist/vendor/node/NodeStream.d.ts +8 -0
- package/dist/vendor/node/NodeStream.js +27 -0
- package/dist/vendor/node/NodeTerminal.d.ts +21 -0
- package/dist/vendor/node/NodeTerminal.js +10 -0
- package/dist/vendor/node/NodeWorker.d.ts +22 -0
- package/dist/vendor/node/NodeWorker.js +9 -0
- package/dist/vendor/node/NodeWorkerRunner.d.ts +12 -0
- package/dist/vendor/node/NodeWorkerRunner.js +7 -0
- package/dist/vendor/node/Undici.d.ts +28 -0
- package/dist/vendor/node/Undici.js +9 -0
- package/dist/vendor/node/index.d.ts +100 -0
- package/dist/vendor/node/index.js +115 -0
- package/dist/vendor/node-shared/LICENSE +21 -0
- package/dist/vendor/node-shared/NodeChildProcessSpawner.d.ts +57 -0
- package/dist/vendor/node-shared/NodeChildProcessSpawner.js +13 -0
- package/dist/vendor/node-shared/NodeClusterSocket.d.ts +22 -0
- package/dist/vendor/node-shared/NodeClusterSocket.js +11 -0
- package/dist/vendor/node-shared/NodeCrypto.d.ts +27 -0
- package/dist/vendor/node-shared/NodeCrypto.js +9 -0
- package/dist/vendor/node-shared/NodeFileSystem.d.ts +11 -0
- package/dist/vendor/node-shared/NodeFileSystem.js +8 -0
- package/dist/vendor/node-shared/NodeHttpCompression.d.ts +36 -0
- package/dist/vendor/node-shared/NodeHttpCompression.js +13 -0
- package/dist/vendor/node-shared/NodePath.d.ts +27 -0
- package/dist/vendor/node-shared/NodePath.js +11 -0
- package/dist/vendor/node-shared/NodeRuntime.d.ts +47 -0
- package/dist/vendor/node-shared/NodeRuntime.js +7 -0
- package/dist/vendor/node-shared/NodeSink.d.ts +69 -0
- package/dist/vendor/node-shared/NodeSink.js +11 -0
- package/dist/vendor/node-shared/NodeSocket.d.ts +134 -0
- package/dist/vendor/node-shared/NodeSocket.js +23 -0
- package/dist/vendor/node-shared/NodeSocketServer.d.ts +80 -0
- package/dist/vendor/node-shared/NodeSocketServer.js +20 -0
- package/dist/vendor/node-shared/NodeStdio.d.ts +12 -0
- package/dist/vendor/node-shared/NodeStdio.js +9 -0
- package/dist/vendor/node-shared/NodeStream.d.ts +179 -0
- package/dist/vendor/node-shared/NodeStream.js +26 -0
- package/dist/vendor/node-shared/NodeTerminal.d.ts +22 -0
- package/dist/vendor/node-shared/NodeTerminal.js +9 -0
- package/dist/vendor/node-shared/index.d.ts +56 -0
- package/dist/vendor/node-shared/index.js +58 -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 +92 -0
- package/dist/vendor/platform-bun.js +107 -0
- package/dist/vendor/platform-node-shared.d.ts +56 -0
- package/dist/vendor/platform-node-shared.js +58 -0
- package/dist/vendor/platform-node.d.ts +100 -0
- package/dist/vendor/platform-node.js +115 -0
- package/docs/README.md +158 -0
- package/docs/api.md +601 -0
- package/docs/concepts/projections.md +250 -0
- package/docs/concepts/subscriptions.md +204 -0
- package/docs/concepts/trust-boundary.md +256 -0
- package/docs/guides/diagnose-a-run.md +115 -0
- package/docs/guides/follow-a-run.md +150 -0
- package/docs/guides/host-the-gateway.md +153 -0
- package/docs/guides/read-a-projection.md +138 -0
- package/docs/guides/serve-beyond-loopback.md +166 -0
- package/docs/guides/submit-an-approval.md +187 -0
- package/docs/guides/testing.md +148 -0
- package/docs/installation.md +89 -0
- package/docs/quickstart.md +200 -0
- package/docs/troubleshooting.md +355 -0
- package/package.json +264 -32
- package/src/Diagnosis.ts +892 -0
- package/src/EngineTrace.ts +605 -0
- package/src/GatewayError.ts +71 -0
- package/src/GatewayProjection.ts +948 -0
- package/src/GatewayRpcs.ts +179 -0
- package/src/GatewaySchema.ts +516 -0
- package/src/GatewayServer.ts +932 -0
- package/src/HostBranchPresence.ts +72 -0
- package/src/Projections.ts +1735 -0
- package/src/RunDevTools.ts +394 -0
- package/src/RunHistory.ts +174 -0
- package/src/RunTrace.ts +2793 -0
- package/src/RuntimeBridge.ts +835 -0
- package/src/bun/BunGateway.ts +52 -0
- package/src/index.ts +77 -0
- package/src/internal/NativeGateway.ts +360 -0
- package/src/internal/actionRenderings.ts +201 -0
- package/src/internal/callEvents.ts +257 -0
- package/src/internal/digestIndex.ts +134 -0
- package/src/internal/digestMemory.ts +27 -0
- package/src/internal/inspectLabels.ts +13 -0
- package/src/internal/nativeResolution.ts +103 -0
- package/src/internal/nodeEvents.ts +100 -0
- package/src/node/NodeGateway.ts +30 -0
- package/openapi.yaml +0 -29945
- package/src/README.md +0 -39
- package/src/api/README.md +0 -23
- package/src/api/apiCollectionNames.js +0 -10
- package/src/api/index.d.ts +0 -126
- package/src/api/index.js +0 -14
- package/src/api/normalizeApiRow.js +0 -36
- package/src/api/serializeAccountRow.js +0 -10
- package/src/api/serializeApprovalRow.js +0 -53
- package/src/api/serializeComparisonScoreRow.js +0 -18
- package/src/api/serializeCronRow.js +0 -30
- package/src/api/serializeDocRow.js +0 -20
- package/src/api/serializeMemoryFactRow.js +0 -21
- package/src/api/serializePromptRow.js +0 -10
- package/src/api/serializeRunEventRow.js +0 -28
- package/src/api/serializeRunRow.js +0 -93
- package/src/api/serializeScoreDetailRow.js +0 -25
- package/src/api/serializeScoreRow.js +0 -26
- package/src/api/serializeTicketRow.js +0 -20
- package/src/api/serializeWorkflowRow.js +0 -10
- package/src/auth/scopes.d.ts +0 -19
- package/src/auth/scopes.js +0 -164
- package/src/index.d.ts +0 -316
- package/src/index.js +0 -108
- package/src/rpc/gatewayRpcTypes.ts +0 -186
- package/src/rpc/index.d.ts +0 -223
- package/src/rpc/index.js +0 -2527
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer
|
|
3
|
+
} from "./chunk-D64L6YND.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./chunk-MLKGABMK.js";
|
|
7
|
+
|
|
8
|
+
// ../../../node_modules/.pnpm/@effect+platform-bun@4.0.0-rc.115_effect@4.0.0-rc.115/node_modules/@effect/platform-bun/dist/BunStdio.js
|
|
9
|
+
var BunStdio_exports = {};
|
|
10
|
+
__export(BunStdio_exports, {
|
|
11
|
+
layer: () => layer2
|
|
12
|
+
});
|
|
13
|
+
var layer2 = layer;
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
layer2 as layer,
|
|
17
|
+
BunStdio_exports
|
|
18
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fromDuplex,
|
|
3
|
+
fromReadable,
|
|
4
|
+
fromReadableChannel,
|
|
5
|
+
pipeThroughDuplex,
|
|
6
|
+
pipeThroughSimple,
|
|
7
|
+
toArrayBuffer,
|
|
8
|
+
toReadable,
|
|
9
|
+
toReadableNever,
|
|
10
|
+
toString,
|
|
11
|
+
toUint8Array
|
|
12
|
+
} from "./chunk-Z7QPP4YH.js";
|
|
13
|
+
import {
|
|
14
|
+
__export
|
|
15
|
+
} from "./chunk-MLKGABMK.js";
|
|
16
|
+
|
|
17
|
+
// ../../../node_modules/.pnpm/@effect+platform-bun@4.0.0-rc.115_effect@4.0.0-rc.115/node_modules/@effect/platform-bun/dist/BunStream.js
|
|
18
|
+
var BunStream_exports = {};
|
|
19
|
+
__export(BunStream_exports, {
|
|
20
|
+
fromDuplex: () => fromDuplex,
|
|
21
|
+
fromReadable: () => fromReadable,
|
|
22
|
+
fromReadableChannel: () => fromReadableChannel,
|
|
23
|
+
fromReadableStream: () => fromReadableStream,
|
|
24
|
+
pipeThroughDuplex: () => pipeThroughDuplex,
|
|
25
|
+
pipeThroughSimple: () => pipeThroughSimple,
|
|
26
|
+
toArrayBuffer: () => toArrayBuffer,
|
|
27
|
+
toReadable: () => toReadable,
|
|
28
|
+
toReadableNever: () => toReadableNever,
|
|
29
|
+
toString: () => toString,
|
|
30
|
+
toUint8Array: () => toUint8Array
|
|
31
|
+
});
|
|
32
|
+
import * as Arr from "effect/Array";
|
|
33
|
+
import * as Cause from "effect/Cause";
|
|
34
|
+
import * as Channel from "effect/Channel";
|
|
35
|
+
import * as Effect from "effect/Effect";
|
|
36
|
+
import { constVoid } from "effect/Function";
|
|
37
|
+
import * as Scope from "effect/Scope";
|
|
38
|
+
import * as Stream from "effect/Stream";
|
|
39
|
+
var fromReadableStream = (options) => Stream.fromChannel(Channel.fromTransform(Effect.fnUntraced(function* (_, scope) {
|
|
40
|
+
const reader = options.evaluate().getReader();
|
|
41
|
+
yield* Scope.addFinalizer(scope, options.releaseLockOnEnd ? Effect.sync(() => reader.releaseLock()) : Effect.promise(() => reader.cancel().catch(constVoid)));
|
|
42
|
+
function readMany() {
|
|
43
|
+
let result;
|
|
44
|
+
try {
|
|
45
|
+
result = reader.readMany();
|
|
46
|
+
} catch (error) {
|
|
47
|
+
return Effect.fail(options.onError(error));
|
|
48
|
+
}
|
|
49
|
+
if ("then" in result) {
|
|
50
|
+
return Effect.callback((resume) => {
|
|
51
|
+
result.then((_2) => resume(handleResult(_2)), (e) => resume(Effect.fail(options.onError(e))));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return handleResult(result);
|
|
55
|
+
}
|
|
56
|
+
function handleResult(result) {
|
|
57
|
+
if (result.done) {
|
|
58
|
+
return Cause.done();
|
|
59
|
+
} else if (!Arr.isReadonlyArrayNonEmpty(result.value)) {
|
|
60
|
+
return readMany();
|
|
61
|
+
}
|
|
62
|
+
return Effect.succeed(result.value);
|
|
63
|
+
}
|
|
64
|
+
return Effect.suspend(readMany);
|
|
65
|
+
})));
|
|
66
|
+
|
|
67
|
+
export {
|
|
68
|
+
fromReadableStream,
|
|
69
|
+
BunStream_exports
|
|
70
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.115_effect@4.0.0-rc.115_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/unstable/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,93 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-MLKGABMK.js";
|
|
4
|
+
|
|
5
|
+
// ../../../node_modules/.pnpm/@effect+platform-bun@4.0.0-rc.115_effect@4.0.0-rc.115/node_modules/@effect/platform-bun/dist/BunRedis.js
|
|
6
|
+
var BunRedis_exports = {};
|
|
7
|
+
__export(BunRedis_exports, {
|
|
8
|
+
BunRedis: () => BunRedis,
|
|
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 Scope from "effect/Scope";
|
|
19
|
+
import * as Redis from "effect/unstable/persistence/Redis";
|
|
20
|
+
var BunRedis = class extends (/* @__PURE__ */ Context.Service()("@effect/platform-bun/BunRedis")) {
|
|
21
|
+
};
|
|
22
|
+
var make4 = /* @__PURE__ */ Effect.fnUntraced(function* (options) {
|
|
23
|
+
const {
|
|
24
|
+
RedisClient
|
|
25
|
+
} = yield* Effect.promise(() => import("bun"));
|
|
26
|
+
const scope2 = yield* Effect.scope;
|
|
27
|
+
yield* Scope.addFinalizer(scope2, Effect.sync(() => client.close()));
|
|
28
|
+
const client = new RedisClient(options?.url, options);
|
|
29
|
+
const use = (f) => Effect.tryPromise({
|
|
30
|
+
try: () => f(client),
|
|
31
|
+
catch: (cause) => new Redis.RedisError({
|
|
32
|
+
cause
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
const redis = yield* Redis.make({
|
|
36
|
+
send: (command, ...args) => Effect.tryPromise({
|
|
37
|
+
try: () => client.send(command, args),
|
|
38
|
+
catch: (cause) => new Redis.RedisError({
|
|
39
|
+
cause
|
|
40
|
+
})
|
|
41
|
+
}),
|
|
42
|
+
subscribe: (channel, onMessage) => Effect.gen(function* () {
|
|
43
|
+
const terminal = yield* Deferred.make();
|
|
44
|
+
yield* Effect.acquireRelease(Effect.tryPromise({
|
|
45
|
+
try: async () => {
|
|
46
|
+
const subscriber = new RedisClient(options?.url, {
|
|
47
|
+
...options,
|
|
48
|
+
autoReconnect: false
|
|
49
|
+
});
|
|
50
|
+
subscriber.onclose = (cause) => {
|
|
51
|
+
Deferred.doneUnsafe(terminal, new Redis.RedisError({
|
|
52
|
+
cause
|
|
53
|
+
}));
|
|
54
|
+
};
|
|
55
|
+
try {
|
|
56
|
+
await subscriber.subscribe(channel, (message, channel2) => {
|
|
57
|
+
onMessage({
|
|
58
|
+
channel: channel2,
|
|
59
|
+
message
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
return subscriber;
|
|
63
|
+
} catch (cause) {
|
|
64
|
+
subscriber.onclose = null;
|
|
65
|
+
subscriber.close();
|
|
66
|
+
throw cause;
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
catch: (cause) => new Redis.RedisError({
|
|
70
|
+
cause
|
|
71
|
+
})
|
|
72
|
+
}), (subscriber) => Effect.sync(() => {
|
|
73
|
+
subscriber.onclose = null;
|
|
74
|
+
subscriber.close();
|
|
75
|
+
}));
|
|
76
|
+
return Deferred.await(terminal);
|
|
77
|
+
})
|
|
78
|
+
});
|
|
79
|
+
const bunRedis = Fn.identity({
|
|
80
|
+
client,
|
|
81
|
+
use
|
|
82
|
+
});
|
|
83
|
+
return Context.make(BunRedis, bunRedis).pipe(Context.add(Redis.Redis, redis));
|
|
84
|
+
});
|
|
85
|
+
var layer = (options) => Layer.effectContext(make4(options));
|
|
86
|
+
var layerConfig = (options) => Layer.effectContext(Config.unwrap(options).pipe(Effect.flatMap(make4)));
|
|
87
|
+
|
|
88
|
+
export {
|
|
89
|
+
BunRedis,
|
|
90
|
+
layer,
|
|
91
|
+
layerConfig,
|
|
92
|
+
BunRedis_exports
|
|
93
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fromReadableStream
|
|
3
|
+
} from "./chunk-H2Z2Y4QH.js";
|
|
4
|
+
import {
|
|
5
|
+
__export
|
|
6
|
+
} from "./chunk-MLKGABMK.js";
|
|
7
|
+
|
|
8
|
+
// ../../../node_modules/.pnpm/@effect+platform-bun@4.0.0-rc.115_effect@4.0.0-rc.115/node_modules/@effect/platform-bun/dist/BunMultipart.js
|
|
9
|
+
var BunMultipart_exports = {};
|
|
10
|
+
__export(BunMultipart_exports, {
|
|
11
|
+
persisted: () => persisted,
|
|
12
|
+
stream: () => stream
|
|
13
|
+
});
|
|
14
|
+
import * as Stream from "effect/Stream";
|
|
15
|
+
import * as Multipart from "effect/unstable/http/Multipart";
|
|
16
|
+
var stream = (source) => fromReadableStream({
|
|
17
|
+
evaluate: () => source.body ?? new ReadableStream({
|
|
18
|
+
start(controller) {
|
|
19
|
+
controller.enqueue(new Uint8Array());
|
|
20
|
+
controller.close();
|
|
21
|
+
}
|
|
22
|
+
}),
|
|
23
|
+
onError: (cause) => Multipart.MultipartError.fromReason("InternalError", cause)
|
|
24
|
+
}).pipe(Stream.pipeThroughChannel(Multipart.makeChannel(Object.fromEntries(source.headers))));
|
|
25
|
+
var persisted = (source) => Multipart.toPersisted(stream(source));
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
stream,
|
|
29
|
+
persisted,
|
|
30
|
+
BunMultipart_exports
|
|
31
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer,
|
|
3
|
+
layerPosix,
|
|
4
|
+
layerWin32
|
|
5
|
+
} from "./chunk-FOXN6JPJ.js";
|
|
6
|
+
import {
|
|
7
|
+
__export
|
|
8
|
+
} from "./chunk-MLKGABMK.js";
|
|
9
|
+
|
|
10
|
+
// ../../../node_modules/.pnpm/@effect+platform-bun@4.0.0-rc.115_effect@4.0.0-rc.115/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,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer,
|
|
3
|
+
layerPosix,
|
|
4
|
+
layerWin32
|
|
5
|
+
} from "./chunk-FOXN6JPJ.js";
|
|
6
|
+
import {
|
|
7
|
+
__export
|
|
8
|
+
} from "./chunk-MLKGABMK.js";
|
|
9
|
+
|
|
10
|
+
// ../../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.115_effect@4.0.0-rc.115_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
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IncomingMessage,
|
|
3
|
+
layer,
|
|
4
|
+
layerTls,
|
|
5
|
+
layerWebSocket,
|
|
6
|
+
make,
|
|
7
|
+
makeTls,
|
|
8
|
+
makeWebSocket
|
|
9
|
+
} from "./chunk-Z7QNPJEB.js";
|
|
10
|
+
import {
|
|
11
|
+
__export
|
|
12
|
+
} from "./chunk-MLKGABMK.js";
|
|
13
|
+
|
|
14
|
+
// ../../../node_modules/.pnpm/@effect+platform-bun@4.0.0-rc.115_effect@4.0.0-rc.115/node_modules/@effect/platform-bun/dist/BunSocketServer.js
|
|
15
|
+
var BunSocketServer_exports = {};
|
|
16
|
+
__export(BunSocketServer_exports, {
|
|
17
|
+
IncomingMessage: () => IncomingMessage,
|
|
18
|
+
layer: () => layer,
|
|
19
|
+
layerTls: () => layerTls,
|
|
20
|
+
layerWebSocket: () => layerWebSocket,
|
|
21
|
+
make: () => make,
|
|
22
|
+
makeTls: () => makeTls,
|
|
23
|
+
makeWebSocket: () => makeWebSocket
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
BunSocketServer_exports
|
|
28
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import {
|
|
2
|
+
make
|
|
3
|
+
} from "./chunk-ULT6CWUI.js";
|
|
4
|
+
import {
|
|
5
|
+
fromReadable,
|
|
6
|
+
toUint8Array
|
|
7
|
+
} from "./chunk-Z7QPP4YH.js";
|
|
8
|
+
import {
|
|
9
|
+
__export
|
|
10
|
+
} from "./chunk-MLKGABMK.js";
|
|
11
|
+
|
|
12
|
+
// ../../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.115_effect@4.0.0-rc.115_redis@6.2.1_@opentelemetry+api@1.9.1_/node_modules/@effect/platform-node/dist/NodeMultipart.js
|
|
13
|
+
var NodeMultipart_exports = {};
|
|
14
|
+
__export(NodeMultipart_exports, {
|
|
15
|
+
fileToReadable: () => fileToReadable,
|
|
16
|
+
persisted: () => persisted,
|
|
17
|
+
stream: () => stream
|
|
18
|
+
});
|
|
19
|
+
import * as Effect from "effect/Effect";
|
|
20
|
+
import * as Inspectable from "effect/Inspectable";
|
|
21
|
+
import * as Stream from "effect/Stream";
|
|
22
|
+
import * as Multipart from "effect/unstable/http/Multipart";
|
|
23
|
+
import * as MultipartParser from "effect/unstable/http/MultipartParser";
|
|
24
|
+
import * as NFS from "node:fs";
|
|
25
|
+
import * as NodeStreamP from "node:stream/promises";
|
|
26
|
+
var stream = (source, headers) => Multipart.makeConfig(headers).pipe(Effect.map((config) => fromReadable({
|
|
27
|
+
evaluate() {
|
|
28
|
+
const parser = make(config);
|
|
29
|
+
source.pipe(parser);
|
|
30
|
+
return parser;
|
|
31
|
+
},
|
|
32
|
+
onError: (error) => convertError(error)
|
|
33
|
+
})), Stream.unwrap, Stream.map(convertPart));
|
|
34
|
+
var persisted = (source, headers) => Multipart.toPersisted(stream(source, headers), (path, file) => Effect.tryPromise({
|
|
35
|
+
try: (signal) => NodeStreamP.pipeline(file.file, NFS.createWriteStream(path), {
|
|
36
|
+
signal
|
|
37
|
+
}),
|
|
38
|
+
catch: (cause) => Multipart.MultipartError.fromReason("InternalError", cause)
|
|
39
|
+
}));
|
|
40
|
+
var fileToReadable = (file) => file.file;
|
|
41
|
+
var convertPart = (part) => part._tag === "Field" ? new FieldImpl(part.info, part.value) : new FileImpl(part);
|
|
42
|
+
var PartBase = class extends Inspectable.Class {
|
|
43
|
+
[Multipart.TypeId];
|
|
44
|
+
constructor() {
|
|
45
|
+
super();
|
|
46
|
+
this[Multipart.TypeId] = Multipart.TypeId;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var FieldImpl = class extends PartBase {
|
|
50
|
+
_tag = "Field";
|
|
51
|
+
key;
|
|
52
|
+
contentType;
|
|
53
|
+
value;
|
|
54
|
+
constructor(info, value) {
|
|
55
|
+
super();
|
|
56
|
+
this.key = info.name;
|
|
57
|
+
this.contentType = info.contentType;
|
|
58
|
+
this.value = MultipartParser.decodeField(info, value);
|
|
59
|
+
}
|
|
60
|
+
toJSON() {
|
|
61
|
+
return {
|
|
62
|
+
_id: "@effect/platform/Multipart/Part",
|
|
63
|
+
_tag: "Field",
|
|
64
|
+
key: this.key,
|
|
65
|
+
value: this.value,
|
|
66
|
+
contentType: this.contentType
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
var FileImpl = class extends PartBase {
|
|
71
|
+
_tag = "File";
|
|
72
|
+
key;
|
|
73
|
+
name;
|
|
74
|
+
contentType;
|
|
75
|
+
content;
|
|
76
|
+
contentEffect;
|
|
77
|
+
file;
|
|
78
|
+
constructor(file) {
|
|
79
|
+
super();
|
|
80
|
+
this.file = file;
|
|
81
|
+
this.key = file.info.name;
|
|
82
|
+
this.name = file.filename ?? file.info.name;
|
|
83
|
+
this.contentType = file.info.contentType;
|
|
84
|
+
this.content = fromReadable({
|
|
85
|
+
evaluate: () => file,
|
|
86
|
+
onError: (cause) => Multipart.MultipartError.fromReason("InternalError", cause)
|
|
87
|
+
});
|
|
88
|
+
this.contentEffect = toUint8Array(() => file, {
|
|
89
|
+
onError: (cause) => Multipart.MultipartError.fromReason("InternalError", cause)
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
toJSON() {
|
|
93
|
+
return {
|
|
94
|
+
_id: "@effect/platform/Multipart/Part",
|
|
95
|
+
_tag: "File",
|
|
96
|
+
key: this.key,
|
|
97
|
+
name: this.name,
|
|
98
|
+
contentType: this.contentType
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
function convertError(cause) {
|
|
103
|
+
switch (cause._tag) {
|
|
104
|
+
case "ReachedLimit": {
|
|
105
|
+
switch (cause.limit) {
|
|
106
|
+
case "MaxParts": {
|
|
107
|
+
return Multipart.MultipartError.fromReason("TooManyParts", cause);
|
|
108
|
+
}
|
|
109
|
+
case "MaxFieldSize": {
|
|
110
|
+
return Multipart.MultipartError.fromReason("FieldTooLarge", cause);
|
|
111
|
+
}
|
|
112
|
+
case "MaxPartSize": {
|
|
113
|
+
return Multipart.MultipartError.fromReason("FileTooLarge", cause);
|
|
114
|
+
}
|
|
115
|
+
case "MaxTotalSize": {
|
|
116
|
+
return Multipart.MultipartError.fromReason("BodyTooLarge", cause);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
default: {
|
|
121
|
+
return Multipart.MultipartError.fromReason("Parse", cause);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export {
|
|
127
|
+
stream,
|
|
128
|
+
persisted,
|
|
129
|
+
fileToReadable,
|
|
130
|
+
NodeMultipart_exports
|
|
131
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layer
|
|
3
|
+
} from "./chunk-DS2R6WOM.js";
|
|
4
|
+
import {
|
|
5
|
+
Dispatcher,
|
|
6
|
+
layerUndiciNoDispatcher,
|
|
7
|
+
makeDispatcher
|
|
8
|
+
} from "./chunk-WECQDT36.js";
|
|
9
|
+
import {
|
|
10
|
+
layer as layer2
|
|
11
|
+
} from "./chunk-XY3Q62EO.js";
|
|
12
|
+
import {
|
|
13
|
+
layerClientProtocol,
|
|
14
|
+
layerSocketServer
|
|
15
|
+
} from "./chunk-6UPBD47P.js";
|
|
16
|
+
import {
|
|
17
|
+
__export
|
|
18
|
+
} from "./chunk-MLKGABMK.js";
|
|
19
|
+
|
|
20
|
+
// ../../../node_modules/.pnpm/@effect+platform-node@4.0.0-rc.115_effect@4.0.0-rc.115_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 Effect from "effect/Effect";
|
|
30
|
+
import * as FileSystem from "effect/FileSystem";
|
|
31
|
+
import * as Layer from "effect/Layer";
|
|
32
|
+
import * as K8sHttpClient from "effect/unstable/cluster/K8sHttpClient";
|
|
33
|
+
import * as MessageStorage from "effect/unstable/cluster/MessageStorage";
|
|
34
|
+
import * as RunnerHealth from "effect/unstable/cluster/RunnerHealth";
|
|
35
|
+
import * as Runners from "effect/unstable/cluster/Runners";
|
|
36
|
+
import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
|
|
37
|
+
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
|
|
38
|
+
import * as SocketRunner from "effect/unstable/cluster/SocketRunner";
|
|
39
|
+
import * as SqlMessageStorage from "effect/unstable/cluster/SqlMessageStorage";
|
|
40
|
+
import * as SqlRunnerStorage from "effect/unstable/cluster/SqlRunnerStorage";
|
|
41
|
+
import * as RpcSerialization from "effect/unstable/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
|
+
};
|