@smthrs/gateway 0.35.0 → 1.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +509 -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 +471 -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 +19 -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 +1595 -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 +12 -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 +13 -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 +557 -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 +799 -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 +19 -0
- package/dist/esm/HostBranchPresence.d.ts.map +1 -0
- package/dist/esm/HostBranchPresence.js +57 -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 +2106 -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 +12 -0
- package/dist/esm/internal/actionRenderings.d.ts.map +1 -0
- package/dist/esm/internal/actionRenderings.js +212 -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 +13 -0
- package/dist/esm/internal/inspectLabels.d.ts.map +1 -0
- package/dist/esm/internal/inspectLabels.js +17 -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 +627 -0
- package/src/GatewayError.ts +71 -0
- package/src/GatewayProjection.ts +959 -0
- package/src/GatewayRpcs.ts +179 -0
- package/src/GatewaySchema.ts +516 -0
- package/src/GatewayServer.ts +932 -0
- package/src/HostBranchPresence.ts +76 -0
- package/src/Projections.ts +1735 -0
- package/src/RunDevTools.ts +394 -0
- package/src/RunHistory.ts +174 -0
- package/src/RunTrace.ts +2796 -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 +212 -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 +18 -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,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var NativeGateway_exports = {};
|
|
30
|
+
__export(NativeGateway_exports, {
|
|
31
|
+
bearerPrincipal: () => bearerPrincipal,
|
|
32
|
+
bindRefusal: () => bindRefusal,
|
|
33
|
+
defaultServerOptions: () => defaultServerOptions,
|
|
34
|
+
ingressOptions: () => ingressOptions,
|
|
35
|
+
isLoopbackHost: () => isLoopbackHost,
|
|
36
|
+
layerAuth: () => layerAuth,
|
|
37
|
+
listenOptions: () => listenOptions,
|
|
38
|
+
makeLayer: () => makeLayer,
|
|
39
|
+
scopedPrincipal: () => scopedPrincipal,
|
|
40
|
+
scopedTokenPaths: () => scopedTokenPaths
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(NativeGateway_exports);
|
|
43
|
+
var import_control = require("@smthrs/control");
|
|
44
|
+
var import_effect = require("effect");
|
|
45
|
+
var import_http = require("effect/unstable/http");
|
|
46
|
+
var import_rpc = require("effect/unstable/rpc");
|
|
47
|
+
var import_GatewayError = require("../GatewayError.js");
|
|
48
|
+
var GatewayServer = __toESM(require("../GatewayServer.js"), 1);
|
|
49
|
+
const defaultServerOptions = { host: "127.0.0.1", port: 7331 };
|
|
50
|
+
const isLoopbackHost = (host) => GatewayServer.loopbackHostNames.includes(host);
|
|
51
|
+
const bindRefusal = (options) => {
|
|
52
|
+
const setting = (0, import_GatewayError.settingRefusal)("The gateway keepalive cadence", options.heartbeatMillis) ?? (0, import_GatewayError.settingRefusal)("The gateway request body limit", options.maxRequestBodyBytes);
|
|
53
|
+
if (setting !== void 0) return setting;
|
|
54
|
+
if (options.runtimeBridge !== void 0 && (options.credential === void 0 || options.credential === "")) {
|
|
55
|
+
return new import_GatewayError.GatewayError({
|
|
56
|
+
code: "bind_failed",
|
|
57
|
+
message: "Refusing to enable the runtime bridge without a bearer credential"
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
const host = options.host ?? "127.0.0.1";
|
|
61
|
+
if (isLoopbackHost(host)) return void 0;
|
|
62
|
+
if (options.listen !== true) {
|
|
63
|
+
return new import_GatewayError.GatewayError({
|
|
64
|
+
code: "bind_failed",
|
|
65
|
+
message: `Refusing non-loopback gateway bind ${host} without an explicit --listen opt-in`
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (options.credential === void 0 || options.credential === "") {
|
|
69
|
+
return new import_GatewayError.GatewayError({
|
|
70
|
+
code: "bind_failed",
|
|
71
|
+
message: `Refusing non-loopback gateway bind ${host} without a bearer credential`
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return void 0;
|
|
75
|
+
};
|
|
76
|
+
const listenOptions = (options) => import_effect.Effect.suspend(() => {
|
|
77
|
+
const refusal = bindRefusal(options);
|
|
78
|
+
if (refusal !== void 0) return import_effect.Effect.fail(refusal);
|
|
79
|
+
const {
|
|
80
|
+
allowedHosts: _allowedHosts,
|
|
81
|
+
credential: _credential,
|
|
82
|
+
heartbeatMillis: _cadence,
|
|
83
|
+
listen: _listen,
|
|
84
|
+
maxRequestBodyBytes: _maxBody,
|
|
85
|
+
runtimeBridge: _runtimeBridge,
|
|
86
|
+
...node
|
|
87
|
+
} = options;
|
|
88
|
+
return import_effect.Effect.succeed({ ...node, host: node.host ?? "127.0.0.1" });
|
|
89
|
+
});
|
|
90
|
+
const layerAuth = (options) => options.credential === void 0 || options.credential === "" ? import_control.ControlRpcs.layerAuth({
|
|
91
|
+
authenticate: (headers) => {
|
|
92
|
+
const token = options.operatorToken;
|
|
93
|
+
if (token === void 0 || token === "") {
|
|
94
|
+
return import_effect.Effect.succeed({ id: "loopback", kind: "anonymous", stampedAt: 0 });
|
|
95
|
+
}
|
|
96
|
+
return import_control.ControlRpcs.bearerAuthenticator({
|
|
97
|
+
token,
|
|
98
|
+
principal: { id: "local", kind: "operator" }
|
|
99
|
+
}).authenticate(headers).pipe(
|
|
100
|
+
import_effect.Effect.catchTag(
|
|
101
|
+
"/control/Unauthorized",
|
|
102
|
+
() => import_effect.Effect.succeed({ id: "loopback", kind: "anonymous", stampedAt: 0 })
|
|
103
|
+
)
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
}, gatewayRunVisibility) : import_control.ControlRpcs.layerAuth(credentialAuthenticator(options.credential), gatewayRunVisibility);
|
|
107
|
+
const gatewayRunVisibility = { seesAllRuns: () => true };
|
|
108
|
+
const credentialAuthenticator = (credential) => import_control.ControlRpcs.anyAuthenticator([
|
|
109
|
+
import_control.ControlRpcs.bearerAuthenticator({ token: credential, principal: bearerPrincipal }),
|
|
110
|
+
import_control.ScopedToken.authenticator({ key: credential, principal: scopedPrincipal })
|
|
111
|
+
]);
|
|
112
|
+
const bearerPrincipal = Object.freeze({ id: "gateway", kind: "bearer" });
|
|
113
|
+
const scopedTokenPaths = [
|
|
114
|
+
"/rpc",
|
|
115
|
+
"/rpc/ws",
|
|
116
|
+
"/projections",
|
|
117
|
+
"/projections/ws",
|
|
118
|
+
"/auth/ticket"
|
|
119
|
+
];
|
|
120
|
+
const scopedPrincipal = Object.freeze({ id: "gateway", kind: "scoped" });
|
|
121
|
+
const ingressOptions = (options) => {
|
|
122
|
+
const maxRequestBodyBytes = options.maxRequestBodyBytes;
|
|
123
|
+
const host = options.host ?? "127.0.0.1";
|
|
124
|
+
const allowedHosts = [...GatewayServer.loopbackHostHeaderNames, ...options.allowedHosts ?? []];
|
|
125
|
+
const bindAuthority = URL.parse(`http://${host.includes(":") ? `[${host}]` : host}`);
|
|
126
|
+
if (host !== "0.0.0.0" && host !== "::" && bindAuthority !== null && !allowedHosts.includes(bindAuthority.hostname)) {
|
|
127
|
+
allowedHosts.push(bindAuthority.hostname);
|
|
128
|
+
}
|
|
129
|
+
if (options.credential === void 0 || options.credential === "") {
|
|
130
|
+
return {
|
|
131
|
+
loopbackOnly: true,
|
|
132
|
+
...maxRequestBodyBytes === void 0 ? {} : { maxRequestBodyBytes },
|
|
133
|
+
allowedHosts
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
const bearer = import_control.ControlRpcs.bearerAuthenticator({ token: options.credential, principal: bearerPrincipal });
|
|
137
|
+
const scoped = credentialAuthenticator(options.credential);
|
|
138
|
+
return {
|
|
139
|
+
allowedHosts,
|
|
140
|
+
...maxRequestBodyBytes === void 0 ? {} : { maxRequestBodyBytes },
|
|
141
|
+
authorize: (headers, path) => (scopedTokenPaths.includes(path) ? scoped : bearer).authenticate(headers).pipe(
|
|
142
|
+
import_effect.Effect.match({ onFailure: () => false, onSuccess: () => true })
|
|
143
|
+
)
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
const bindFailure = (failure) => new import_GatewayError.GatewayError({
|
|
147
|
+
code: "bind_failed",
|
|
148
|
+
message: "The gateway socket could not be bound",
|
|
149
|
+
cause: { _tag: failure._tag }
|
|
150
|
+
});
|
|
151
|
+
const mapServeError = (bind, server) => server.pipe(
|
|
152
|
+
import_effect.Layer.catch(
|
|
153
|
+
(failure) => import_effect.Layer.effectContext(
|
|
154
|
+
import_effect.Effect.logError({
|
|
155
|
+
message: "The gateway socket could not be bound",
|
|
156
|
+
host: bind.host,
|
|
157
|
+
port: bind.port,
|
|
158
|
+
cause: failure
|
|
159
|
+
}).pipe(import_effect.Effect.andThen(import_effect.Effect.fail(bindFailure(failure))))
|
|
160
|
+
)
|
|
161
|
+
)
|
|
162
|
+
);
|
|
163
|
+
const makeLayer = (server) => (health, options = defaultServerOptions) => import_effect.Layer.unwrap(
|
|
164
|
+
import_effect.Effect.map(listenOptions(options), (nodeOptions) => import_http.HttpRouter.serve(
|
|
165
|
+
GatewayServer.layer(health, {
|
|
166
|
+
...options.heartbeatMillis === void 0 ? {} : { heartbeatMillis: options.heartbeatMillis },
|
|
167
|
+
ingress: ingressOptions(options),
|
|
168
|
+
...options.runtimeBridge === void 0 ? {} : {
|
|
169
|
+
runtimeBridge: {
|
|
170
|
+
...options.runtimeBridge,
|
|
171
|
+
authenticate: import_control.ControlRpcs.bearerAuthenticator({
|
|
172
|
+
// listenOptions rejects a runtime bridge without a credential.
|
|
173
|
+
token: options.credential,
|
|
174
|
+
principal: bearerPrincipal
|
|
175
|
+
}).authenticate
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}).pipe(
|
|
179
|
+
import_effect.Layer.provide(layerAuth(options)),
|
|
180
|
+
import_effect.Layer.provide(import_rpc.RpcSerialization.layerNdjson)
|
|
181
|
+
),
|
|
182
|
+
{ disableListenLog: true, disableLogger: true }
|
|
183
|
+
).pipe(
|
|
184
|
+
import_effect.Layer.provideMerge(mapServeError(nodeOptions, server(nodeOptions)))
|
|
185
|
+
))
|
|
186
|
+
);
|
|
187
|
+
//# sourceMappingURL=NativeGateway.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/internal/NativeGateway.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Shared native gateway bind policy, credential policy,\n * and the one composition a `smithers serve` verb hosts.\n *\n * Two rules decide whether a bind is allowed, and both fail closed:\n *\n * 1. A non-loopback host requires an explicit `listen` opt-in. Binding\n * `0.0.0.0` because a port was free is how a workspace gateway ends up on\n * a shared network by accident.\n * 2. A non-loopback bind requires a bearer credential. The control plane can\n * launch runs, cancel them, and approve capability grants; reachable from\n * another machine, an unauthenticated one is a remote execution service.\n *\n * A loopback bind with no network credential allows anonymous reads; approval\n * decisions require the session operator token. Ingress still checks Host and\n * Origin so a web page cannot exercise the loopback endpoint.\n *\n * @since 1.0.0\n */\n\nimport { ControlRpcs, ScopedToken } from \"@smthrs/control\"\nimport { Effect, Layer } from \"effect\"\nimport { HttpRouter } from \"effect/unstable/http\"\nimport type { HttpServer } from \"effect/unstable/http/HttpServer\"\nimport type { ServeError } from \"effect/unstable/http/HttpServerError\"\nimport { RpcSerialization } from \"effect/unstable/rpc\"\nimport type { ListenOptions } from \"node:net\"\nimport { GatewayError, settingRefusal } from \"../GatewayError.ts\"\nimport * as GatewayServer from \"../GatewayServer.ts\"\nimport type * as RuntimeBridge from \"../RuntimeBridge.ts\"\n\n/**\n * Where the gateway binds, and whether a non-loopback bind was asked for.\n *\n * @since 1.0.0\n * @category models\n */\nexport interface ServerOptions extends ListenOptions {\n /** Additional accepted Host header names (without ports), for network or proxy access. */\n readonly allowedHosts?: ReadonlyArray<string> | undefined\n /** The `--listen` opt-in required for a non-loopback host. */\n readonly listen?: boolean | undefined\n /** The shared bearer credential, required for a non-loopback bind. */\n readonly credential?: string | undefined\n /** Per-session approval token on credential-free loopback. Read calls remain anonymous. */\n readonly operatorToken?: string | undefined\n /**\n * How often an idle followed `Watch` on `/rpc/ws` and an idle followed\n * `Projection.Subscribe` on `/projections/ws` emit a keepalive frame. Unset,\n * both run at `Projections.heartbeatIntervalMillis` unless the supplied\n * `Projections` service was built with its own cadence. A relay with an idle\n * cut shorter than that one needs a shorter cadence here.\n */\n readonly heartbeatMillis?: number | undefined\n /** Maximum bytes accepted on one HTTP RPC request. Default one MiB. */\n readonly maxRequestBodyBytes?: number | undefined\n /** Immutable identity of an opt-in packaged Flow runtime bridge. */\n readonly runtimeBridge?: Omit<RuntimeBridge.Config, \"authenticate\"> | undefined\n}\n\n/**\n * The default bind: loopback, port 7331, no credential.\n *\n * @since 1.0.0\n * @category models\n */\nexport const defaultServerOptions: ServerOptions = { host: \"127.0.0.1\", port: 7331 }\n\n/**\n * Whether a host names this machine only.\n *\n * @param host the host to classify\n * @since 1.0.0\n * @category predicates\n */\nexport const isLoopbackHost = (host: string): boolean => GatewayServer.loopbackHostNames.includes(host)\n\n/**\n * The typed refusal a requested bind earns, or `undefined` when it is allowed.\n *\n * Every start-time rule this module enforces answers here as a `bind_failed`\n * `GatewayError`, so a host that wants to report a refusal rather than crash on\n * one asks this before it composes a layer. {@link listenOptions} and\n * {@link layer} fail with exactly what this returns.\n *\n * @param options the requested bind\n * @since 1.0.0\n * @category constructors\n */\nexport const bindRefusal = (options: ServerOptions): GatewayError | undefined => {\n const setting = settingRefusal(\"The gateway keepalive cadence\", options.heartbeatMillis) ??\n settingRefusal(\"The gateway request body limit\", options.maxRequestBodyBytes)\n if (setting !== undefined) return setting\n // The bridge authenticates only with the bearer credential, even on\n // loopback, so a bridge without one would answer 401 to every request.\n if (options.runtimeBridge !== undefined && (options.credential === undefined || options.credential === \"\")) {\n return new GatewayError({\n code: \"bind_failed\",\n message: \"Refusing to enable the runtime bridge without a bearer credential\"\n })\n }\n const host = options.host ?? \"127.0.0.1\"\n if (isLoopbackHost(host)) return undefined\n if (options.listen !== true) {\n return new GatewayError({\n code: \"bind_failed\",\n message: `Refusing non-loopback gateway bind ${host} without an explicit --listen opt-in`\n })\n }\n if (options.credential === undefined || options.credential === \"\") {\n return new GatewayError({\n code: \"bind_failed\",\n message: `Refusing non-loopback gateway bind ${host} without a bearer credential`\n })\n }\n return undefined\n}\n\n/**\n * Applies the bind policy, returning the admitted Node options or a typed\n * `bind_failed` refusal.\n *\n * @param options the requested bind\n * @since 1.0.0\n * @category constructors\n */\nexport const listenOptions = (options: ServerOptions): Effect.Effect<ListenOptions, GatewayError> =>\n Effect.suspend(() => {\n const refusal = bindRefusal(options)\n if (refusal !== undefined) return Effect.fail(refusal)\n // `credential`, `listen`, and the keepalive cadence are this module's, not\n // `node:net`'s: they are named here so the rest is exactly a bind.\n const {\n allowedHosts: _allowedHosts,\n credential: _credential,\n heartbeatMillis: _cadence,\n listen: _listen,\n maxRequestBodyBytes: _maxBody,\n runtimeBridge: _runtimeBridge,\n ...node\n } = options\n return Effect.succeed({ ...node, host: node.host ?? \"127.0.0.1\" })\n })\n\n/**\n * The authentication both RPC mounts run under.\n *\n * A configured credential authenticates every request that presents it and\n * stamps the same server-owned principal. A scoped token minted under that\n * credential (`@smthrs/control` `ScopedToken`) authenticates only the\n * procedures, run, or flow it names, until it expires, and stamps\n * {@link scopedPrincipal}. With no credential the composition is\n * loopback-only (see {@link listenOptions}) and every request runs as the\n * anonymous read principal. A session operator token alone stamps the local\n * operator for approval decisions; without it approvals are unauthorized.\n *\n * @param options the requested bind\n * @since 1.0.0\n * @category layers\n */\nexport const layerAuth = (options: ServerOptions): Layer.Layer<ControlRpcs.ControlAuth> =>\n options.credential === undefined || options.credential === \"\"\n ? ControlRpcs.layerAuth({\n authenticate: (headers) => {\n const token = options.operatorToken\n if (token === undefined || token === \"\") {\n return Effect.succeed({ id: \"loopback\", kind: \"anonymous\", stampedAt: 0 })\n }\n return ControlRpcs.bearerAuthenticator({\n token,\n principal: { id: \"local\", kind: \"operator\" }\n }).authenticate(headers).pipe(\n Effect.catchTag(\n \"/control/Unauthorized\",\n () => Effect.succeed({ id: \"loopback\", kind: \"anonymous\", stampedAt: 0 })\n )\n )\n }\n }, gatewayRunVisibility)\n : ControlRpcs.layerAuth(credentialAuthenticator(options.credential), gatewayRunVisibility)\n\n/**\n * Every identity this gateway stamps reads every run. They all stand for the\n * one operator who holds the gateway's credential, or the machine's loopback\n * user when there is none; a scoped token is that operator's grant, confined\n * by the procedures, run, or flow it names rather than by who launched a run.\n */\nconst gatewayRunVisibility: ControlRpcs.AuthOptions = { seesAllRuns: () => true }\n\n/**\n * The bearer credential itself, or a scoped token minted under it.\n *\n * The runtime bridge deliberately does not use this: it accepts the bearer\n * alone, because a scoped token names control procedures and the bridge's\n * versioned commands are not those.\n */\nconst credentialAuthenticator = (credential: string): ControlRpcs.Authenticator =>\n ControlRpcs.anyAuthenticator([\n ControlRpcs.bearerAuthenticator({ token: credential, principal: bearerPrincipal }),\n ScopedToken.authenticator({ key: credential, principal: scopedPrincipal })\n ])\n\n/**\n * The identity stamped only after this gateway verifies its configured token.\n * Hosts may explicitly delegate operator decisions to this exact identity.\n * @category constants\n * @since 1.0.0\n */\nexport const bearerPrincipal = Object.freeze({ id: \"gateway\", kind: \"bearer\" })\n\n/**\n * The protected mounts a scoped token may reach: those guarded in band by\n * `ControlAuth`, which checks each frame's procedure against the token, and\n * the ticket exchange that opens their sockets.\n * @category constants\n * @since 1.0.0\n */\nexport const scopedTokenPaths: ReadonlyArray<string> = [\n \"/rpc\",\n \"/rpc/ws\",\n \"/projections\",\n \"/projections/ws\",\n \"/auth/ticket\"\n]\n\n/**\n * The identity stamped after this gateway verifies a scoped token minted\n * under its configured credential. It is its own kind so that delegating\n * approval to {@link bearerPrincipal} does not delegate it to every token\n * minted from the bearer; a host that wants a scoped `approve:runs` token to\n * decide delegates to this identity explicitly.\n * @category constants\n * @since 1.0.0\n */\nexport const scopedPrincipal = Object.freeze({ id: \"gateway\", kind: \"scoped\" })\n\n/**\n * The ingress policy a requested bind runs behind.\n *\n * The accepted Host names are the loopback names, the operator's\n * `allowedHosts`, and the concrete bind host itself, so `--host 192.168.1.10`\n * is reachable at that address without naming it twice. A wildcard bind\n * (`0.0.0.0` or `::`) adds nothing: every interface is not a Host name, and\n * the operator names the reachable ones. Protected paths are authenticated\n * before any request body is read.\n *\n * @param options the requested bind\n * @since 1.0.0\n * @category constructors\n */\nexport const ingressOptions = (options: ServerOptions): GatewayServer.IngressOptions => {\n const maxRequestBodyBytes = options.maxRequestBodyBytes\n const host = options.host ?? \"127.0.0.1\"\n const allowedHosts = [...GatewayServer.loopbackHostHeaderNames, ...options.allowedHosts ?? []]\n const bindAuthority = URL.parse(`http://${host.includes(\":\") ? `[${host}]` : host}`)\n if (host !== \"0.0.0.0\" && host !== \"::\" && bindAuthority !== null && !allowedHosts.includes(bindAuthority.hostname)) {\n allowedHosts.push(bindAuthority.hostname)\n }\n if (options.credential === undefined || options.credential === \"\") {\n return {\n loopbackOnly: true,\n ...(maxRequestBodyBytes === undefined ? {} : { maxRequestBodyBytes }),\n allowedHosts\n }\n }\n // The edge knows no call, so a scoped token passes here on its signature\n // and expiry, and only toward the mounts whose every frame `ControlAuth`\n // judges in band; journal sync and the runtime bridge take the bearer alone.\n const bearer = ControlRpcs.bearerAuthenticator({ token: options.credential, principal: bearerPrincipal })\n const scoped = credentialAuthenticator(options.credential)\n return {\n allowedHosts,\n ...(maxRequestBodyBytes === undefined ? {} : { maxRequestBodyBytes }),\n authorize: (headers, path) =>\n (scopedTokenPaths.includes(path) ? scoped : bearer).authenticate(headers).pipe(\n Effect.match({ onFailure: () => false, onSuccess: () => true })\n )\n }\n}\n\nconst bindFailure = (failure: ServeError | GatewayError): GatewayError =>\n new GatewayError({\n code: \"bind_failed\",\n message: \"The gateway socket could not be bound\",\n cause: { _tag: failure._tag }\n })\n\n/**\n * Fails the layer with the sanitized refusal every bearer holder may see, after\n * logging the operator's copy: the requested authority and the operating-system\n * cause (`EADDRINUSE`, `EACCES`, `EADDRNOTAVAIL`), which the wire error omits.\n */\nconst mapServeError = <A, R>(\n bind: ListenOptions,\n server: Layer.Layer<A, ServeError | GatewayError, R>\n): Layer.Layer<A, GatewayError, R> =>\n server.pipe(\n Layer.catch((failure) =>\n Layer.effectContext<A, GatewayError, never>(\n Effect.logError({\n message: \"The gateway socket could not be bound\",\n host: bind.host,\n port: bind.port,\n cause: failure\n }).pipe(Effect.andThen(Effect.fail(bindFailure(failure))))\n )\n )\n )\n\n/**\n * Hosts the assembled gateway on an injected native HTTP server.\n *\n * Supplies the bind policy, the shared-credential authentication both RPC\n * mounts run under, and newline-delimited JSON as the wire serialization. The\n * caller supplies what the mounts read through: `Control`, `Projections`,\n * `SyncServer`, and the `SyncAuth` middleware.\n *\n * The returned layer retains the concrete `HttpServer` service, so a caller\n * that bound port 0 can read the ephemeral address it got.\n *\n * Policy refusals and operating-system listen failures both fail the layer as\n * sanitized `bind_failed` `GatewayError` values.\n *\n * @param health the identity `GET /health` answers with\n * @param options the requested bind\n * @since 1.0.0\n * @category layers\n */\nexport const makeLayer = (\n server: (options: ListenOptions) => Layer.Layer<HttpServer, ServeError | GatewayError>\n) =>\n(\n health: GatewayServer.Health,\n options: ServerOptions = defaultServerOptions\n) =>\n Layer.unwrap(\n Effect.map(listenOptions(options), (nodeOptions) =>\n HttpRouter.serve(\n GatewayServer.layer(health, {\n ...(options.heartbeatMillis === undefined ? {} : { heartbeatMillis: options.heartbeatMillis }),\n ingress: ingressOptions(options),\n ...(options.runtimeBridge === undefined ? {} : {\n runtimeBridge: {\n ...options.runtimeBridge,\n authenticate: ControlRpcs.bearerAuthenticator({\n // listenOptions rejects a runtime bridge without a credential.\n token: options.credential!,\n principal: bearerPrincipal\n }).authenticate\n }\n })\n }).pipe(\n Layer.provide(layerAuth(options)),\n Layer.provide(RpcSerialization.layerNdjson)\n ),\n { disableListenLog: true, disableLogger: true }\n ).pipe(\n Layer.provideMerge(mapServeError(nodeOptions, server(nodeOptions)))\n ))\n )\n"],
|
|
5
|
+
"mappings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S;AAAA,QACT,MAAM,KAAK;AAAA,QACX,MAAM,KAAK;AAAA,QACX,OAAO;AAAA,MACT,CAAC,EAAE,KAAK,qBAAO,QAAQ,qBAAO,KAAK,YAAY,OAAO,CAAC,CAAC,CAAC;AAAA,IAC3D;AAAA,EACF;AACF;AAqBK,MAAM,YAAY,CACvB,WAEF,CACE,QACA,UAAyB,yBAEzB,oBAAM;AAAA,EACJ,qBAAO,IAAI,cAAc,OAAO,GAAG,CAAC,gBAClC,uBAAW;AAAA,IACT,cAAc,MAAM,QAAQ;AAAA,MAC1B,GAAI,QAAQ,oBAAoB,SAAY,CAAC,IAAI,EAAE,iBAAiB,QAAQ,gBAAgB;AAAA,MAC5F,SAAS,eAAe,OAAO;AAAA,MAC/B,GAAI,QAAQ,kBAAkB,SAAY,CAAC,IAAI;AAAA,QAC7C,eAAe;AAAA,UACb,GAAG,QAAQ;AAAA,UACX,cAAc,2BAAY,oBAAoB;AAAA;AAAA,YAE5C,OAAO,QAAQ;AAAA,YACf,WAAW;AAAA,UACb,CAAC,EAAE;AAAA,QACL;AAAA,MACF;AAAA,IACF,CAAC,EAAE;AAAA,MACD,oBAAM,QAAQ,UAAU,OAAO,CAAC;AAAA,MAChC,oBAAM,QAAQ,4BAAiB,WAAW;AAAA,IAC5C;AAAA,IACA,EAAE,kBAAkB,MAAM,eAAe,KAAK;AAAA,EAChD,EAAE;AAAA,IACA,oBAAM,aAAa,cAAc,aAAa,OAAO,WAAW,CAAC,CAAC;AAAA,EACpE,CAAC;AACL;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The deterministic Inspect label of each kept action in .specs/product/actions.md
|
|
3
|
+
* Appendix C, keyed by action id; null marks an action whose Inspect shows no label.
|
|
4
|
+
*
|
|
5
|
+
* @since 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
export declare const ACTION_RENDERINGS: Readonly<Record<string, string | null>>;
|
|
12
|
+
//# sourceMappingURL=actionRenderings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionRenderings.d.ts","sourceRoot":"","sources":["../../../src/internal/actionRenderings.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAuMrE,CAAA"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var actionRenderings_exports = {};
|
|
20
|
+
__export(actionRenderings_exports, {
|
|
21
|
+
ACTION_RENDERINGS: () => ACTION_RENDERINGS
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(actionRenderings_exports);
|
|
24
|
+
const ACTION_RENDERINGS = {
|
|
25
|
+
"<boundary:name>": null,
|
|
26
|
+
"<park>/parked": null,
|
|
27
|
+
"<quota-park>/<session>": null,
|
|
28
|
+
"<seal-step>": null,
|
|
29
|
+
"<structured-output-count>/<name>": null,
|
|
30
|
+
"agent/capacity/<seat>/cool/<n>": "Waiting for a model",
|
|
31
|
+
"agent/opening-instructions": "Read the instructions",
|
|
32
|
+
"agent/opening-memory": "Loaded context",
|
|
33
|
+
"agent/route-seat": "Chose a model",
|
|
34
|
+
"agent/run": "Worked a turn",
|
|
35
|
+
"agent/send (stamp)": null,
|
|
36
|
+
"agent/trace/checkpoint": null,
|
|
37
|
+
"apply_patch": "An attributed edit in the File and Diff cards",
|
|
38
|
+
"ask": "Needs you",
|
|
39
|
+
"bash": "Terminal card (agent session). Missing: no terminal today",
|
|
40
|
+
"checks/lint": "Linted the change",
|
|
41
|
+
"checks/review": "Reviewed the change",
|
|
42
|
+
"checks/security": "Reviewed security",
|
|
43
|
+
"checks/wiki": "Checked the wiki",
|
|
44
|
+
"coding/AdmitVibe": "Opened the change for landing",
|
|
45
|
+
"coding/ApplyNative": "Applied the changes",
|
|
46
|
+
"coding/CleanVibeHistory": "Tidied the history",
|
|
47
|
+
"coding/CommandCheck": "Ran checks",
|
|
48
|
+
"coding/CoordinateRequest": "Worked the TODO",
|
|
49
|
+
"coding/CorrectPlan": "Fixed review findings",
|
|
50
|
+
"coding/CorrectionRound": "Fixed review findings",
|
|
51
|
+
"coding/DescribeFinalAtom": "Wrote the commit message",
|
|
52
|
+
"coding/Dispatch": "Ran an agent turn",
|
|
53
|
+
"coding/FlowLoad": "Validated the flows",
|
|
54
|
+
"coding/ImplementAtom": "Implemented one step",
|
|
55
|
+
"coding/ImplementAtoms": "Implemented the plan",
|
|
56
|
+
"coding/ImplementPlan": "Implemented the plan",
|
|
57
|
+
"coding/JevCheck": "Checked rules",
|
|
58
|
+
"coding/LandVibe": "Landed the change",
|
|
59
|
+
"coding/ObservePlan": "Tracked progress",
|
|
60
|
+
"coding/Poc": "Drafted a prototype",
|
|
61
|
+
"coding/PreparePlan": "Planned the change",
|
|
62
|
+
"coding/PrepareRequest": "Prepared the request",
|
|
63
|
+
"coding/ProposeFinalHistory": "Reviewed the history",
|
|
64
|
+
"coding/Prototype": "Drafted a prototype",
|
|
65
|
+
"coding/PublishVibeSource": "Published the change",
|
|
66
|
+
"coding/ReadNative": "Read the changes",
|
|
67
|
+
"coding/RecheckCorrected": "Re-checked the fix",
|
|
68
|
+
"coding/RecheckFinalHistory": "Re-checked the history",
|
|
69
|
+
"coding/RefreshWiki": "Refreshed wiki pages",
|
|
70
|
+
"coding/RepairPass": "Repaired the change",
|
|
71
|
+
"coding/ReviewCapturedChange": "Reviewed the change",
|
|
72
|
+
"coding/ReviewCapturedWiki": "Checked the wiki",
|
|
73
|
+
"coding/ReviewCheck": "Reviewed the change",
|
|
74
|
+
"coding/RewriteFinalHistory": "Tidied the history",
|
|
75
|
+
"coding/SecurityAudit": "Audited security",
|
|
76
|
+
"coding/SecurityReviewCheck": "Reviewed security",
|
|
77
|
+
"coding/VerifyVibe": "Verified before landing",
|
|
78
|
+
"coding/Wiki": "Refreshed the wiki",
|
|
79
|
+
"coding/WikiCheck": "Checked the wiki",
|
|
80
|
+
"coding/admit-retained-source": "Opened the source",
|
|
81
|
+
"coding/admit-verify-source": "Opened the candidate",
|
|
82
|
+
"coding/assess": "Assessed the change",
|
|
83
|
+
"coding/audit-security": "Audited security",
|
|
84
|
+
"coding/begin-correction": "Started a fix round",
|
|
85
|
+
"coding/capture-poc-source": "Captured the source",
|
|
86
|
+
"coding/capture-review-check": "Captured the change",
|
|
87
|
+
"coding/capture-wiki-check": "Captured the wiki",
|
|
88
|
+
"coding/check": "Ran checks",
|
|
89
|
+
"coding/check-command": "Ran checks",
|
|
90
|
+
"coding/check-jev-rules": "Checked rules",
|
|
91
|
+
"coding/configure-planning-wiki": "Chose wiki pages",
|
|
92
|
+
"coding/confirm-final-description": "Confirmed the commit message",
|
|
93
|
+
"coding/create-stack-base": "Created the stack base",
|
|
94
|
+
"coding/create-vibe-landing": "Added to the stack",
|
|
95
|
+
"coding/decline-request": "Declined the request",
|
|
96
|
+
"coding/dispatch-turn": "Worked a turn",
|
|
97
|
+
"coding/draft-plan": "Drafted the plan",
|
|
98
|
+
"coding/draft-poc": "Drafted a prototype",
|
|
99
|
+
"coding/edit-atom": "Edited the files",
|
|
100
|
+
"coding/fast-forward-vibe": "Moved the branch forward",
|
|
101
|
+
"coding/fast-gate": "Ran quick checks",
|
|
102
|
+
"coding/fence-vibe-source": "Pinned the change",
|
|
103
|
+
"coding/finalize-plan": "Finalized the plan",
|
|
104
|
+
"coding/find-planning-wiki-review": "Found wiki notes",
|
|
105
|
+
"coding/finish-correction": "Finished the fix round",
|
|
106
|
+
"coding/finish-final-history": "Finished the history",
|
|
107
|
+
"coding/finish-review-check": "Collected review findings",
|
|
108
|
+
"coding/finish-wiki-check": "Checked the wiki",
|
|
109
|
+
"coding/gather-planning-context": "Gathered context",
|
|
110
|
+
"coding/implement-change": "Implemented the change",
|
|
111
|
+
"coding/import-dependency-docs": "Imported dependency docs",
|
|
112
|
+
"coding/install-dependency-pages": "Added dependency pages",
|
|
113
|
+
"coding/load-flows": "Validated the flows",
|
|
114
|
+
"coding/materialize-poc": "Applied the prototype",
|
|
115
|
+
"coding/merge-request-feedback": "Took in your steer",
|
|
116
|
+
"coding/merge-vibe-local-pull": "Merged the change",
|
|
117
|
+
"coding/observe-atom": "Saved the edit",
|
|
118
|
+
"coding/observe-dispatch": "Saved the turn",
|
|
119
|
+
"coding/observe-vibe-append": "Added to the stack",
|
|
120
|
+
"coding/observe-vibe-pull-checks": "Watched PR checks",
|
|
121
|
+
"coding/open-vibe-local-pull": "Opened the pull request",
|
|
122
|
+
"coding/open-vibe-pull": "Opened the pull request",
|
|
123
|
+
"coding/prepare-atom": "Opened the working copy",
|
|
124
|
+
"coding/prepare-atom-mutation": "Prepared to edit",
|
|
125
|
+
"coding/prepare-final-description": "Drafted the commit message",
|
|
126
|
+
"coding/prepare-owner-repair": "Prepared the repair",
|
|
127
|
+
"coding/prepare-repair-context": "Gathered repair context",
|
|
128
|
+
"coding/prepare-return-mythical-tip": "Returned to the stack tip",
|
|
129
|
+
"coding/prepare-stack-base": "Prepared the stack",
|
|
130
|
+
"coding/prepare-vibe-append": "Prepared to add to the stack",
|
|
131
|
+
"coding/prepare-vibe-candidate": "Prepared the change",
|
|
132
|
+
"coding/publish-vibe-source": "Published the change",
|
|
133
|
+
"coding/queue-vibe-append": "Queued for the stack",
|
|
134
|
+
"coding/read-correction-history": "Read earlier fixes",
|
|
135
|
+
"coding/read-feedback-cancellation": "Read your steer",
|
|
136
|
+
"coding/read-published-wiki": "Read the wiki",
|
|
137
|
+
"coding/read-vibe-delivery": "Read delivery status",
|
|
138
|
+
"coding/read-vibe-lander": "Read landing state",
|
|
139
|
+
"coding/read-vibe-request": "Read the request",
|
|
140
|
+
"coding/read-vibe-stack": "Read the stack",
|
|
141
|
+
"coding/receive-request-feedback": "Waited for your steer",
|
|
142
|
+
"coding/record-fast-gated-progress": "Recorded progress",
|
|
143
|
+
"coding/record-learning": "Saved a lesson",
|
|
144
|
+
"coding/record-slow-feedback": "Recorded feedback",
|
|
145
|
+
"coding/refresh-final-history": "Refreshed the history",
|
|
146
|
+
"coding/refresh-planning-wiki": "Refreshed wiki pages",
|
|
147
|
+
"coding/refresh-restacked-evidence": "Refreshed evidence",
|
|
148
|
+
"coding/refuse-plan-approval": "Refused a plan approval",
|
|
149
|
+
"coding/repair-final-history": "Corrected the history",
|
|
150
|
+
"coding/retain-poc": "Saved the prototype",
|
|
151
|
+
"coding/review-final-history": "Reviewed the history",
|
|
152
|
+
"coding/review-lens": "Reviewed through one lens",
|
|
153
|
+
"coding/review-poc": "Reviewed the prototype",
|
|
154
|
+
"coding/review-request": "Reviewed the request",
|
|
155
|
+
"coding/review-security": "Reviewed security",
|
|
156
|
+
"coding/run-correction-round": "Fixed review findings",
|
|
157
|
+
"coding/select-owner-repair": "Chose what to fix",
|
|
158
|
+
"coding/submit-vibe-lane": "Queued the change",
|
|
159
|
+
"coding/todo-boundary": null,
|
|
160
|
+
"coding/todo-delivery": "Prepared the delivery",
|
|
161
|
+
"coding/todo-pause-requested": null,
|
|
162
|
+
"coding/todo-resume": null,
|
|
163
|
+
"coding/todo-review": null,
|
|
164
|
+
"coding/todo-review-input": null,
|
|
165
|
+
"coding/validate-final-history": "Checked the history",
|
|
166
|
+
"coding/validate-plan": "Checked the plan",
|
|
167
|
+
"coding/verify-planning-context": "Checked the context",
|
|
168
|
+
"coding/verify-vibe-landed": "Confirmed it landed",
|
|
169
|
+
"create-flow": "Created a flow",
|
|
170
|
+
"create-flow/clarify": "Asked what the flow should do",
|
|
171
|
+
"create-flow/design": "Designed the flow",
|
|
172
|
+
"create-flow/document": "Documented the flow",
|
|
173
|
+
"create-flow/fix": "Fixed the flow",
|
|
174
|
+
"create-flow/provision": "Set up the flow",
|
|
175
|
+
"create-flow/scaffold": "Wrote the flow",
|
|
176
|
+
"edit": "An attributed edit in the File and Diff cards",
|
|
177
|
+
"factory/Todo": "Routed the TODO",
|
|
178
|
+
"factory/route-todo": "Chose how to start",
|
|
179
|
+
"factory/stamp-route": "Declined the TODO",
|
|
180
|
+
"glob": 'A "read" line in branch activity, opening the File card',
|
|
181
|
+
"grep": 'A "read" line in branch activity, opening the File card',
|
|
182
|
+
"jev": 'Inspect only: "Decided <question>"',
|
|
183
|
+
"ls": 'A "read" line in branch activity, opening the File card',
|
|
184
|
+
"memory": 'The "Context" line and the preflight cell in Inspect',
|
|
185
|
+
"memory/mine": "Saved lessons",
|
|
186
|
+
"memory/mine/run": "Saved lessons",
|
|
187
|
+
"read": 'A "read" line in branch activity, opening the File card',
|
|
188
|
+
"recall": 'The "Context" line and the preflight cell in Inspect',
|
|
189
|
+
"recall (namespaced)": 'The "Context" line and the preflight cell in Inspect',
|
|
190
|
+
"remember": "Learning receipt",
|
|
191
|
+
"review": "Reviewed the change",
|
|
192
|
+
"smithers-review/ApplyVerdicts": "Settled findings",
|
|
193
|
+
"smithers-review/FinalizeReview": "Finished the review",
|
|
194
|
+
"smithers-review/MergeFileBatch": "Collected findings",
|
|
195
|
+
"smithers-review/NarrateChanges": "Wrote the walkthrough",
|
|
196
|
+
"smithers-review/NarrateReview": "Wrote the walkthrough",
|
|
197
|
+
"smithers-review/PrepareReview": "Prepared the review",
|
|
198
|
+
"smithers-review/RenderWalkthrough": "Rendered the walkthrough",
|
|
199
|
+
"smithers-review/ReviewFile": "Reviewed one file",
|
|
200
|
+
"smithers-review/ReviewFiles": "Reviewed the files",
|
|
201
|
+
"smithers-review/VerifyFindings": "Verified findings",
|
|
202
|
+
"smithers-review/VerifyReview": "Verified findings",
|
|
203
|
+
"smithers/IncrementalWiki": "Refreshed the wiki",
|
|
204
|
+
"smithers/Wiki": "Refreshed the wiki",
|
|
205
|
+
"stack.candidate": "Saved the candidate",
|
|
206
|
+
"stack.propose": "Proposed the candidate",
|
|
207
|
+
"system/human-task": "Waited for your answer",
|
|
208
|
+
"system/sleep": null,
|
|
209
|
+
"system/wait-for": null,
|
|
210
|
+
"test": "Terminal card plus checks. Missing: needs SMITHERS_TEST_COMMAND",
|
|
211
|
+
"wait": "Waited",
|
|
212
|
+
"wiki/assess-review": "Assessed a wiki page",
|
|
213
|
+
"wiki/bind-review-provenance": "Linked a review to its source",
|
|
214
|
+
"wiki/check-citations": "Checked citations",
|
|
215
|
+
"wiki/collect-page": "Collected sources for a page",
|
|
216
|
+
"wiki/load-recorded-reviews": "Found earlier reviews",
|
|
217
|
+
"wiki/publish-recorded-reviews": "Saved wiki pages",
|
|
218
|
+
"wiki/review-page": "Reviewed a wiki page",
|
|
219
|
+
"wiki/select-recorded-review": "Reused a review",
|
|
220
|
+
"wiki/validate-review": "Checked a wiki page",
|
|
221
|
+
"wiki/write-snapshot": "Saved wiki pages",
|
|
222
|
+
"write": "An attributed edit in the File and Diff cards"
|
|
223
|
+
};
|
|
224
|
+
//# sourceMappingURL=actionRenderings.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/internal/actionRenderings.ts"],
|
|
4
|
+
"sourcesContent": ["// Generated by scripts/catalog-mvp.ts from Appendix C; do not edit.\n/**\n * The deterministic Inspect label of each kept action in .specs/product/actions.md\n * Appendix C, keyed by action id; null marks an action whose Inspect shows no label.\n *\n * @since 1.0.0\n */\n\n/**\n * @since 1.0.0\n * @private\n */\nexport const ACTION_RENDERINGS: Readonly<Record<string, string | null>> = {\n \"<boundary:name>\": null,\n \"<park>/parked\": null,\n \"<quota-park>/<session>\": null,\n \"<seal-step>\": null,\n \"<structured-output-count>/<name>\": null,\n \"agent/capacity/<seat>/cool/<n>\": \"Waiting for a model\",\n \"agent/opening-instructions\": \"Read the instructions\",\n \"agent/opening-memory\": \"Loaded context\",\n \"agent/route-seat\": \"Chose a model\",\n \"agent/run\": \"Worked a turn\",\n \"agent/send (stamp)\": null,\n \"agent/trace/checkpoint\": null,\n \"apply_patch\": \"An attributed edit in the File and Diff cards\",\n \"ask\": \"Needs you\",\n \"bash\": \"Terminal card (agent session). Missing: no terminal today\",\n \"checks/lint\": \"Linted the change\",\n \"checks/review\": \"Reviewed the change\",\n \"checks/security\": \"Reviewed security\",\n \"checks/wiki\": \"Checked the wiki\",\n \"coding/AdmitVibe\": \"Opened the change for landing\",\n \"coding/ApplyNative\": \"Applied the changes\",\n \"coding/CleanVibeHistory\": \"Tidied the history\",\n \"coding/CommandCheck\": \"Ran checks\",\n \"coding/CoordinateRequest\": \"Worked the TODO\",\n \"coding/CorrectPlan\": \"Fixed review findings\",\n \"coding/CorrectionRound\": \"Fixed review findings\",\n \"coding/DescribeFinalAtom\": \"Wrote the commit message\",\n \"coding/Dispatch\": \"Ran an agent turn\",\n \"coding/FlowLoad\": \"Validated the flows\",\n \"coding/ImplementAtom\": \"Implemented one step\",\n \"coding/ImplementAtoms\": \"Implemented the plan\",\n \"coding/ImplementPlan\": \"Implemented the plan\",\n \"coding/JevCheck\": \"Checked rules\",\n \"coding/LandVibe\": \"Landed the change\",\n \"coding/ObservePlan\": \"Tracked progress\",\n \"coding/Poc\": \"Drafted a prototype\",\n \"coding/PreparePlan\": \"Planned the change\",\n \"coding/PrepareRequest\": \"Prepared the request\",\n \"coding/ProposeFinalHistory\": \"Reviewed the history\",\n \"coding/Prototype\": \"Drafted a prototype\",\n \"coding/PublishVibeSource\": \"Published the change\",\n \"coding/ReadNative\": \"Read the changes\",\n \"coding/RecheckCorrected\": \"Re-checked the fix\",\n \"coding/RecheckFinalHistory\": \"Re-checked the history\",\n \"coding/RefreshWiki\": \"Refreshed wiki pages\",\n \"coding/RepairPass\": \"Repaired the change\",\n \"coding/ReviewCapturedChange\": \"Reviewed the change\",\n \"coding/ReviewCapturedWiki\": \"Checked the wiki\",\n \"coding/ReviewCheck\": \"Reviewed the change\",\n \"coding/RewriteFinalHistory\": \"Tidied the history\",\n \"coding/SecurityAudit\": \"Audited security\",\n \"coding/SecurityReviewCheck\": \"Reviewed security\",\n \"coding/VerifyVibe\": \"Verified before landing\",\n \"coding/Wiki\": \"Refreshed the wiki\",\n \"coding/WikiCheck\": \"Checked the wiki\",\n \"coding/admit-retained-source\": \"Opened the source\",\n \"coding/admit-verify-source\": \"Opened the candidate\",\n \"coding/assess\": \"Assessed the change\",\n \"coding/audit-security\": \"Audited security\",\n \"coding/begin-correction\": \"Started a fix round\",\n \"coding/capture-poc-source\": \"Captured the source\",\n \"coding/capture-review-check\": \"Captured the change\",\n \"coding/capture-wiki-check\": \"Captured the wiki\",\n \"coding/check\": \"Ran checks\",\n \"coding/check-command\": \"Ran checks\",\n \"coding/check-jev-rules\": \"Checked rules\",\n \"coding/configure-planning-wiki\": \"Chose wiki pages\",\n \"coding/confirm-final-description\": \"Confirmed the commit message\",\n \"coding/create-stack-base\": \"Created the stack base\",\n \"coding/create-vibe-landing\": \"Added to the stack\",\n \"coding/decline-request\": \"Declined the request\",\n \"coding/dispatch-turn\": \"Worked a turn\",\n \"coding/draft-plan\": \"Drafted the plan\",\n \"coding/draft-poc\": \"Drafted a prototype\",\n \"coding/edit-atom\": \"Edited the files\",\n \"coding/fast-forward-vibe\": \"Moved the branch forward\",\n \"coding/fast-gate\": \"Ran quick checks\",\n \"coding/fence-vibe-source\": \"Pinned the change\",\n \"coding/finalize-plan\": \"Finalized the plan\",\n \"coding/find-planning-wiki-review\": \"Found wiki notes\",\n \"coding/finish-correction\": \"Finished the fix round\",\n \"coding/finish-final-history\": \"Finished the history\",\n \"coding/finish-review-check\": \"Collected review findings\",\n \"coding/finish-wiki-check\": \"Checked the wiki\",\n \"coding/gather-planning-context\": \"Gathered context\",\n \"coding/implement-change\": \"Implemented the change\",\n \"coding/import-dependency-docs\": \"Imported dependency docs\",\n \"coding/install-dependency-pages\": \"Added dependency pages\",\n \"coding/load-flows\": \"Validated the flows\",\n \"coding/materialize-poc\": \"Applied the prototype\",\n \"coding/merge-request-feedback\": \"Took in your steer\",\n \"coding/merge-vibe-local-pull\": \"Merged the change\",\n \"coding/observe-atom\": \"Saved the edit\",\n \"coding/observe-dispatch\": \"Saved the turn\",\n \"coding/observe-vibe-append\": \"Added to the stack\",\n \"coding/observe-vibe-pull-checks\": \"Watched PR checks\",\n \"coding/open-vibe-local-pull\": \"Opened the pull request\",\n \"coding/open-vibe-pull\": \"Opened the pull request\",\n \"coding/prepare-atom\": \"Opened the working copy\",\n \"coding/prepare-atom-mutation\": \"Prepared to edit\",\n \"coding/prepare-final-description\": \"Drafted the commit message\",\n \"coding/prepare-owner-repair\": \"Prepared the repair\",\n \"coding/prepare-repair-context\": \"Gathered repair context\",\n \"coding/prepare-return-mythical-tip\": \"Returned to the stack tip\",\n \"coding/prepare-stack-base\": \"Prepared the stack\",\n \"coding/prepare-vibe-append\": \"Prepared to add to the stack\",\n \"coding/prepare-vibe-candidate\": \"Prepared the change\",\n \"coding/publish-vibe-source\": \"Published the change\",\n \"coding/queue-vibe-append\": \"Queued for the stack\",\n \"coding/read-correction-history\": \"Read earlier fixes\",\n \"coding/read-feedback-cancellation\": \"Read your steer\",\n \"coding/read-published-wiki\": \"Read the wiki\",\n \"coding/read-vibe-delivery\": \"Read delivery status\",\n \"coding/read-vibe-lander\": \"Read landing state\",\n \"coding/read-vibe-request\": \"Read the request\",\n \"coding/read-vibe-stack\": \"Read the stack\",\n \"coding/receive-request-feedback\": \"Waited for your steer\",\n \"coding/record-fast-gated-progress\": \"Recorded progress\",\n \"coding/record-learning\": \"Saved a lesson\",\n \"coding/record-slow-feedback\": \"Recorded feedback\",\n \"coding/refresh-final-history\": \"Refreshed the history\",\n \"coding/refresh-planning-wiki\": \"Refreshed wiki pages\",\n \"coding/refresh-restacked-evidence\": \"Refreshed evidence\",\n \"coding/refuse-plan-approval\": \"Refused a plan approval\",\n \"coding/repair-final-history\": \"Corrected the history\",\n \"coding/retain-poc\": \"Saved the prototype\",\n \"coding/review-final-history\": \"Reviewed the history\",\n \"coding/review-lens\": \"Reviewed through one lens\",\n \"coding/review-poc\": \"Reviewed the prototype\",\n \"coding/review-request\": \"Reviewed the request\",\n \"coding/review-security\": \"Reviewed security\",\n \"coding/run-correction-round\": \"Fixed review findings\",\n \"coding/select-owner-repair\": \"Chose what to fix\",\n \"coding/submit-vibe-lane\": \"Queued the change\",\n \"coding/todo-boundary\": null,\n \"coding/todo-delivery\": \"Prepared the delivery\",\n \"coding/todo-pause-requested\": null,\n \"coding/todo-resume\": null,\n \"coding/todo-review\": null,\n \"coding/todo-review-input\": null,\n \"coding/validate-final-history\": \"Checked the history\",\n \"coding/validate-plan\": \"Checked the plan\",\n \"coding/verify-planning-context\": \"Checked the context\",\n \"coding/verify-vibe-landed\": \"Confirmed it landed\",\n \"create-flow\": \"Created a flow\",\n \"create-flow/clarify\": \"Asked what the flow should do\",\n \"create-flow/design\": \"Designed the flow\",\n \"create-flow/document\": \"Documented the flow\",\n \"create-flow/fix\": \"Fixed the flow\",\n \"create-flow/provision\": \"Set up the flow\",\n \"create-flow/scaffold\": \"Wrote the flow\",\n \"edit\": \"An attributed edit in the File and Diff cards\",\n \"factory/Todo\": \"Routed the TODO\",\n \"factory/route-todo\": \"Chose how to start\",\n \"factory/stamp-route\": \"Declined the TODO\",\n \"glob\": \"A \\\"read\\\" line in branch activity, opening the File card\",\n \"grep\": \"A \\\"read\\\" line in branch activity, opening the File card\",\n \"jev\": \"Inspect only: \\\"Decided <question>\\\"\",\n \"ls\": \"A \\\"read\\\" line in branch activity, opening the File card\",\n \"memory\": \"The \\\"Context\\\" line and the preflight cell in Inspect\",\n \"memory/mine\": \"Saved lessons\",\n \"memory/mine/run\": \"Saved lessons\",\n \"read\": \"A \\\"read\\\" line in branch activity, opening the File card\",\n \"recall\": \"The \\\"Context\\\" line and the preflight cell in Inspect\",\n \"recall (namespaced)\": \"The \\\"Context\\\" line and the preflight cell in Inspect\",\n \"remember\": \"Learning receipt\",\n \"review\": \"Reviewed the change\",\n \"smithers-review/ApplyVerdicts\": \"Settled findings\",\n \"smithers-review/FinalizeReview\": \"Finished the review\",\n \"smithers-review/MergeFileBatch\": \"Collected findings\",\n \"smithers-review/NarrateChanges\": \"Wrote the walkthrough\",\n \"smithers-review/NarrateReview\": \"Wrote the walkthrough\",\n \"smithers-review/PrepareReview\": \"Prepared the review\",\n \"smithers-review/RenderWalkthrough\": \"Rendered the walkthrough\",\n \"smithers-review/ReviewFile\": \"Reviewed one file\",\n \"smithers-review/ReviewFiles\": \"Reviewed the files\",\n \"smithers-review/VerifyFindings\": \"Verified findings\",\n \"smithers-review/VerifyReview\": \"Verified findings\",\n \"smithers/IncrementalWiki\": \"Refreshed the wiki\",\n \"smithers/Wiki\": \"Refreshed the wiki\",\n \"stack.candidate\": \"Saved the candidate\",\n \"stack.propose\": \"Proposed the candidate\",\n \"system/human-task\": \"Waited for your answer\",\n \"system/sleep\": null,\n \"system/wait-for\": null,\n \"test\": \"Terminal card plus checks. Missing: needs SMITHERS_TEST_COMMAND\",\n \"wait\": \"Waited\",\n \"wiki/assess-review\": \"Assessed a wiki page\",\n \"wiki/bind-review-provenance\": \"Linked a review to its source\",\n \"wiki/check-citations\": \"Checked citations\",\n \"wiki/collect-page\": \"Collected sources for a page\",\n \"wiki/load-recorded-reviews\": \"Found earlier reviews\",\n \"wiki/publish-recorded-reviews\": \"Saved wiki pages\",\n \"wiki/review-page\": \"Reviewed a wiki page\",\n \"wiki/select-recorded-review\": \"Reused a review\",\n \"wiki/validate-review\": \"Checked a wiki page\",\n \"wiki/write-snapshot\": \"Saved wiki pages\",\n \"write\": \"An attributed edit in the File and Diff cards\"\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,oBAA6D;AAAA,EACxE,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,0BAA0B;AAAA,EAC1B,eAAe;AAAA,EACf,oCAAoC;AAAA,EACpC,kCAAkC;AAAA,EAClC,8BAA8B;AAAA,EAC9B,wBAAwB;AAAA,EACxB,oBAAoB;AAAA,EACpB,aAAa;AAAA,EACb,sBAAsB;AAAA,EACtB,0BAA0B;AAAA,EAC1B,eAAe;AAAA,EACf,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,eAAe;AAAA,EACf,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,2BAA2B;AAAA,EAC3B,uBAAuB;AAAA,EACvB,4BAA4B;AAAA,EAC5B,sBAAsB;AAAA,EACtB,0BAA0B;AAAA,EAC1B,4BAA4B;AAAA,EAC5B,mBAAmB;AAAA,EACnB,mBAAmB;AAAA,EACnB,wBAAwB;AAAA,EACxB,yBAAyB;AAAA,EACzB,wBAAwB;AAAA,EACxB,mBAAmB;AAAA,EACnB,mBAAmB;AAAA,EACnB,sBAAsB;AAAA,EACtB,cAAc;AAAA,EACd,sBAAsB;AAAA,EACtB,yBAAyB;AAAA,EACzB,8BAA8B;AAAA,EAC9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O;AAAA,EACP,MAAM;AAAA,EACN,UAAU;AAAA,EACV,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,uBAAuB;AAAA,EACvB,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,iCAAiC;AAAA,EACjC,kCAAkC;AAAA,EAClC,kCAAkC;AAAA,EAClC,kCAAkC;AAAA,EAClC,iCAAiC;AAAA,EACjC,iCAAiC;AAAA,EACjC,qCAAqC;AAAA,EACrC,8BAA8B;AAAA,EAC9B,+BAA+B;AAAA,EAC/B,kCAAkC;AAAA,EAClC,gCAAgC;AAAA,EAChC,4BAA4B;AAAA,EAC5B,iBAAiB;AAAA,EACjB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,sBAAsB;AAAA,EACtB,+BAA+B;AAAA,EAC/B,wBAAwB;AAAA,EACxB,qBAAqB;AAAA,EACrB,8BAA8B;AAAA,EAC9B,iCAAiC;AAAA,EACjC,oBAAoB;AAAA,EACpB,+BAA+B;AAAA,EAC/B,wBAAwB;AAAA,EACxB,uBAAuB;AAAA,EACvB,SAAS;AACX;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared call lifecycle identity rules for full and incremental projections.
|
|
3
|
+
*
|
|
4
|
+
* @since 1.0.0
|
|
5
|
+
*/
|
|
6
|
+
/** A sparse historical observation is readable without inventing missing fields.
|
|
7
|
+
* @category models
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
*/
|
|
10
|
+
export interface CallObservation {
|
|
11
|
+
readonly kind?: string | undefined;
|
|
12
|
+
readonly runId?: string | undefined;
|
|
13
|
+
readonly sequence?: number | undefined;
|
|
14
|
+
readonly payload?: unknown;
|
|
15
|
+
}
|
|
16
|
+
/** Interpret only the native producer's versioned, run-scoped outbox facts.
|
|
17
|
+
* @category projections
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export declare const nativeCallEvent: <Event extends CallObservation>(event: Event) => Event | undefined;
|
|
21
|
+
/** Normalize a checkpoint only within its recorded execution and source.
|
|
22
|
+
* Replayed prefixes retain the generation that first recorded the work.
|
|
23
|
+
* @category projections
|
|
24
|
+
* @since 1.0.0
|
|
25
|
+
*/
|
|
26
|
+
export declare const nativeStepEvent: <Event extends CallObservation>(event: Event) => Event | undefined;
|
|
27
|
+
/** Scope call matching to the recorded invocation, including its generation.
|
|
28
|
+
* @category projections
|
|
29
|
+
* @since 1.0.0
|
|
30
|
+
*/
|
|
31
|
+
export declare const callScope: (event: CallObservation) => string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Identity first; the upgrade fallback can consume only unidentified starts.
|
|
34
|
+
*
|
|
35
|
+
* @category projections
|
|
36
|
+
* @since 1.0.0
|
|
37
|
+
*/
|
|
38
|
+
export declare const openCallIndex: (open: ReadonlyArray<{
|
|
39
|
+
readonly flowName: string;
|
|
40
|
+
readonly callId?: string | undefined;
|
|
41
|
+
readonly scope?: string | undefined;
|
|
42
|
+
}>, callId: string | undefined, flowName: string | undefined, scope?: string) => number;
|
|
43
|
+
/**
|
|
44
|
+
* Deduplicate identified call lifecycles and committed checkpoint observations.
|
|
45
|
+
*
|
|
46
|
+
* @category projections
|
|
47
|
+
* @since 1.0.0
|
|
48
|
+
*/
|
|
49
|
+
export declare const callEventKey: (event: CallObservation) => string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Native facts supersede identified telemetry while retaining its display
|
|
52
|
+
* position. Unidentified history cannot acquire an invented identity.
|
|
53
|
+
*
|
|
54
|
+
* @category projections
|
|
55
|
+
* @since 1.0.0
|
|
56
|
+
*/
|
|
57
|
+
export declare const uniqueCallEvents: <Event extends CallObservation>(events: ReadonlyArray<Event>) => ReadonlyArray<Event>;
|
|
58
|
+
/**
|
|
59
|
+
* What {@link CallEventFilter} did with one event.
|
|
60
|
+
*
|
|
61
|
+
* `rewrite` means the event superseded one the filter already kept: the batch
|
|
62
|
+
* rule replaces the earlier event in place, so a reader holding the earlier
|
|
63
|
+
* output must refold from the whole journal.
|
|
64
|
+
*
|
|
65
|
+
* @category projections
|
|
66
|
+
* @since 1.0.0
|
|
67
|
+
*/
|
|
68
|
+
export type CallEventVerdict<Event> = {
|
|
69
|
+
readonly _tag: "keep";
|
|
70
|
+
readonly event: Event;
|
|
71
|
+
} | {
|
|
72
|
+
readonly _tag: "drop";
|
|
73
|
+
} | {
|
|
74
|
+
readonly _tag: "rewrite";
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* {@link uniqueCallEvents} one event at a time, for a journal read in order.
|
|
78
|
+
*
|
|
79
|
+
* The sets are exactly the ones the batch builds, so a filter fed a whole
|
|
80
|
+
* journal holds the state the batch ended with. Only one case cannot be
|
|
81
|
+
* answered in order: a native fact whose key an earlier telemetry event
|
|
82
|
+
* already claimed. That verdict is `rewrite`.
|
|
83
|
+
*
|
|
84
|
+
* @category projections
|
|
85
|
+
* @since 1.0.0
|
|
86
|
+
*/
|
|
87
|
+
export interface CallEventFilter<Event extends CallObservation> {
|
|
88
|
+
readonly push: (event: Event) => CallEventVerdict<Event>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Builds an empty {@link CallEventFilter}.
|
|
92
|
+
*
|
|
93
|
+
* @category projections
|
|
94
|
+
* @since 1.0.0
|
|
95
|
+
*/
|
|
96
|
+
export declare const callEventFilter: <Event extends CallObservation>() => CallEventFilter<Event>;
|
|
97
|
+
//# sourceMappingURL=callEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callEvents.d.ts","sourceRoot":"","sources":["../../../src/internal/callEvents.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,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