@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,1886 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The gateway's own remote procedures: the served read path, and the one
|
|
3
|
+
* composite mutation a product client cannot assemble safely on its own.
|
|
4
|
+
*
|
|
5
|
+
* Control mutations are not re-declared here. `@smthrs/control` `ControlRpcs`
|
|
6
|
+
* is the mutation contract and the gateway mounts it unchanged at `/rpc`, so
|
|
7
|
+
* there is exactly one wire definition of `Plan`, `Run`, `Approve`, `Deny`,
|
|
8
|
+
* `Cancel`, `Signal`, `Steer`, `Resume`, `List`, and `Watch`.
|
|
9
|
+
*
|
|
10
|
+
* The group shares `ControlRpcs.ControlAuth`, so one bearer credential
|
|
11
|
+
* authenticates both mounts and one server-stamped principal is recorded for
|
|
12
|
+
* whatever it authorizes.
|
|
13
|
+
*
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
import { ControlError, ControlRpcs } from "@smthrs/control";
|
|
17
|
+
import { Schema } from "effect";
|
|
18
|
+
import { Rpc, RpcGroup } from "effect/unstable/rpc";
|
|
19
|
+
import { GatewayError } from "./GatewayError.ts";
|
|
20
|
+
import * as RunHistory from "./RunHistory.ts";
|
|
21
|
+
/**
|
|
22
|
+
* The decision a client submits for one approval.
|
|
23
|
+
*
|
|
24
|
+
* @since 1.0.0
|
|
25
|
+
* @category models
|
|
26
|
+
*/
|
|
27
|
+
export declare const Decision: Schema.Literals<readonly ["approve", "deny"]>;
|
|
28
|
+
/**
|
|
29
|
+
* The decision a client submits for one approval.
|
|
30
|
+
*
|
|
31
|
+
* @since 1.0.0
|
|
32
|
+
* @category models
|
|
33
|
+
*/
|
|
34
|
+
export type Decision = typeof Decision.Type;
|
|
35
|
+
/**
|
|
36
|
+
* One approval decision, submitted with the exact payload the run published.
|
|
37
|
+
*
|
|
38
|
+
* @since 1.0.0
|
|
39
|
+
* @category models
|
|
40
|
+
*/
|
|
41
|
+
export declare const SubmitApprovalInput: Schema.Struct<{
|
|
42
|
+
readonly decision: Schema.Literals<readonly ["approve", "deny"]>;
|
|
43
|
+
/**
|
|
44
|
+
* The answer to a question, for a gate that asks one.
|
|
45
|
+
*
|
|
46
|
+
* Most gates are a grant: approve or deny, and the decision IS the payload.
|
|
47
|
+
* A `HumanTask` gate asks for a value — prose, a choice, a JSON object — and
|
|
48
|
+
* the decision alone answers nothing. Present exactly when the row being
|
|
49
|
+
* submitted is one of those, in which case `target.requestId` names the wait
|
|
50
|
+
* point and this is what is delivered to it. A denial carries no answer: the
|
|
51
|
+
* question is refused, not answered.
|
|
52
|
+
*
|
|
53
|
+
* Additive on purpose: a client that never asks a person anything submits
|
|
54
|
+
* exactly what it submitted before.
|
|
55
|
+
*/
|
|
56
|
+
readonly answer: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
57
|
+
readonly target: Schema.Union<readonly [Schema.TaggedStruct<"Plan", {
|
|
58
|
+
readonly planId: Schema.String;
|
|
59
|
+
readonly digest: Schema.String;
|
|
60
|
+
readonly envelope: Schema.Struct<{
|
|
61
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
62
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
63
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
64
|
+
readonly budget: Schema.Struct<{
|
|
65
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
66
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
67
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
68
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
69
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
70
|
+
}>;
|
|
71
|
+
readonly host: Schema.optional<Schema.String>;
|
|
72
|
+
}>;
|
|
73
|
+
}>, Schema.TaggedStruct<"Node", {
|
|
74
|
+
readonly runId: Schema.String;
|
|
75
|
+
readonly requestId: Schema.String;
|
|
76
|
+
readonly digest: Schema.String;
|
|
77
|
+
readonly envelope: Schema.Struct<{
|
|
78
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
79
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
80
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
81
|
+
readonly budget: Schema.Struct<{
|
|
82
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
83
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
84
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
85
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
86
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
87
|
+
}>;
|
|
88
|
+
readonly host: Schema.optional<Schema.String>;
|
|
89
|
+
}>;
|
|
90
|
+
}>]>;
|
|
91
|
+
readonly scope: Schema.Literals<readonly ["once", "run", "remembered"]>;
|
|
92
|
+
readonly idempotencyKey: Schema.String;
|
|
93
|
+
}>;
|
|
94
|
+
/**
|
|
95
|
+
* One approval decision, submitted with the exact payload the run published.
|
|
96
|
+
*
|
|
97
|
+
* @since 1.0.0
|
|
98
|
+
* @category models
|
|
99
|
+
*/
|
|
100
|
+
export type SubmitApprovalInput = typeof SubmitApprovalInput.Type;
|
|
101
|
+
/**
|
|
102
|
+
* What submitting an approval did.
|
|
103
|
+
*
|
|
104
|
+
* `decision` is the receipt for the grant or refusal. Control owns the
|
|
105
|
+
* decision and its durable resume delegation as one domain command.
|
|
106
|
+
*
|
|
107
|
+
* @since 1.0.0
|
|
108
|
+
* @category models
|
|
109
|
+
*/
|
|
110
|
+
export declare const SubmitApprovalOutput: Schema.Struct<{
|
|
111
|
+
readonly decision: Schema.Union<readonly [Schema.TaggedStruct<"Accepted", {
|
|
112
|
+
readonly inputConsumed: Schema.optional<Schema.Boolean>;
|
|
113
|
+
readonly inputBody: Schema.optional<Schema.String>;
|
|
114
|
+
readonly receiptId: Schema.String;
|
|
115
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
116
|
+
readonly handedTo: Schema.optional<Schema.Struct<{
|
|
117
|
+
readonly hostId: Schema.String;
|
|
118
|
+
readonly pid: Schema.Number;
|
|
119
|
+
}>>;
|
|
120
|
+
}>, Schema.TaggedStruct<"AlreadyApplied", {
|
|
121
|
+
readonly receiptId: Schema.String;
|
|
122
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
123
|
+
readonly inputConsumed: Schema.optional<Schema.Boolean>;
|
|
124
|
+
readonly inputBody: Schema.optional<Schema.String>;
|
|
125
|
+
}>, Schema.TaggedStruct<"Parked", {
|
|
126
|
+
readonly receiptId: Schema.String;
|
|
127
|
+
readonly planId: Schema.String;
|
|
128
|
+
readonly status: Schema.Literal<"waiting-approval">;
|
|
129
|
+
}>, Schema.TaggedStruct<"Conflict", {
|
|
130
|
+
readonly message: Schema.String;
|
|
131
|
+
}>, Schema.TaggedStruct<"Terminal", {
|
|
132
|
+
readonly runId: Schema.String;
|
|
133
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
134
|
+
}>]>;
|
|
135
|
+
}>;
|
|
136
|
+
/**
|
|
137
|
+
* What submitting an approval did.
|
|
138
|
+
*
|
|
139
|
+
* @since 1.0.0
|
|
140
|
+
* @category models
|
|
141
|
+
*/
|
|
142
|
+
export type SubmitApprovalOutput = typeof SubmitApprovalOutput.Type;
|
|
143
|
+
/**
|
|
144
|
+
* The gateway read path, the composite approval mutation, and the run
|
|
145
|
+
* history procedures.
|
|
146
|
+
*
|
|
147
|
+
* `Approval.Submit` is the transport form of Control's single decision
|
|
148
|
+
* command. Control records the decision and durable resume delegation; the
|
|
149
|
+
* gateway never composes a second mutation.
|
|
150
|
+
*
|
|
151
|
+
* @since 1.0.0
|
|
152
|
+
* @category groups
|
|
153
|
+
*/
|
|
154
|
+
export declare const GatewayRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Projection.Snapshot", Schema.Struct<{
|
|
155
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
156
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
157
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
158
|
+
readonly runId: Schema.String;
|
|
159
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
160
|
+
readonly runId: Schema.String;
|
|
161
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
162
|
+
readonly runId: Schema.String;
|
|
163
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
164
|
+
readonly runId: Schema.String;
|
|
165
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
166
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
167
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
168
|
+
readonly runId: Schema.String;
|
|
169
|
+
readonly nodeId: Schema.String;
|
|
170
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
171
|
+
readonly flowId: Schema.String;
|
|
172
|
+
}>]>;
|
|
173
|
+
readonly after: Schema.optional<Schema.Struct<{
|
|
174
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
175
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
176
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
177
|
+
readonly runId: Schema.String;
|
|
178
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
179
|
+
readonly runId: Schema.String;
|
|
180
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
181
|
+
readonly runId: Schema.String;
|
|
182
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
183
|
+
readonly runId: Schema.String;
|
|
184
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
185
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
186
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
187
|
+
readonly runId: Schema.String;
|
|
188
|
+
readonly nodeId: Schema.String;
|
|
189
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
190
|
+
readonly flowId: Schema.String;
|
|
191
|
+
}>]>;
|
|
192
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
193
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
194
|
+
readonly value: Schema.Int;
|
|
195
|
+
readonly offset: Schema.Int;
|
|
196
|
+
}>>;
|
|
197
|
+
}>, Schema.Union<readonly [Schema.Struct<{
|
|
198
|
+
readonly selector: Schema.TaggedStruct<"workspace-runs", {
|
|
199
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
200
|
+
}>;
|
|
201
|
+
readonly cursor: Schema.Struct<{
|
|
202
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
203
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
204
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
205
|
+
readonly runId: Schema.String;
|
|
206
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
207
|
+
readonly runId: Schema.String;
|
|
208
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
209
|
+
readonly runId: Schema.String;
|
|
210
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
211
|
+
readonly runId: Schema.String;
|
|
212
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
213
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
214
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
215
|
+
readonly runId: Schema.String;
|
|
216
|
+
readonly nodeId: Schema.String;
|
|
217
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
218
|
+
readonly flowId: Schema.String;
|
|
219
|
+
}>]>;
|
|
220
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
221
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
222
|
+
readonly value: Schema.Int;
|
|
223
|
+
readonly offset: Schema.Int;
|
|
224
|
+
}>;
|
|
225
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
226
|
+
readonly runId: Schema.String;
|
|
227
|
+
readonly flowId: Schema.String;
|
|
228
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
229
|
+
readonly subjectId: Schema.String;
|
|
230
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
231
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
232
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
233
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
234
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
235
|
+
readonly reason: Schema.optional<Schema.Literals<readonly ["ok", "no-progress", "awaiting-reply", "prompt-detected", "quota-wait", "timer-wait", "event-wait", "released", "unreachable", "probe-timeout", "probe-error", "owner-changed"]>>;
|
|
236
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
237
|
+
readonly checkerId: Schema.String;
|
|
238
|
+
readonly monitorId: Schema.String;
|
|
239
|
+
readonly observedAt: Schema.Int;
|
|
240
|
+
readonly expiresAt: Schema.Int;
|
|
241
|
+
readonly evidenceSeq: Schema.Int;
|
|
242
|
+
readonly incarnation: Schema.String;
|
|
243
|
+
readonly version: Schema.Int;
|
|
244
|
+
}>>;
|
|
245
|
+
readonly updatedAt: Schema.Int;
|
|
246
|
+
}>>;
|
|
247
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
248
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
249
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
250
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
251
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
252
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
253
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
254
|
+
}>>;
|
|
255
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
256
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
257
|
+
readonly rootExecutionId: Schema.String;
|
|
258
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
259
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
260
|
+
readonly executionId: Schema.String;
|
|
261
|
+
readonly generation: Schema.Number;
|
|
262
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
263
|
+
readonly fromSequence: Schema.Number;
|
|
264
|
+
readonly throughSequence: Schema.Number;
|
|
265
|
+
}>>>;
|
|
266
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
267
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
268
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
269
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
270
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
271
|
+
}>>;
|
|
272
|
+
readonly createdAt: Schema.Number;
|
|
273
|
+
readonly updatedAt: Schema.Number;
|
|
274
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
275
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
276
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
277
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
278
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
279
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
280
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
281
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
282
|
+
readonly requestedAt: Schema.Number;
|
|
283
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
284
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
285
|
+
readonly id: Schema.String;
|
|
286
|
+
readonly kind: Schema.String;
|
|
287
|
+
readonly stampedAt: Schema.Number;
|
|
288
|
+
}>>;
|
|
289
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
290
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
291
|
+
}>>;
|
|
292
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
293
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
294
|
+
readonly turns: Schema.Number;
|
|
295
|
+
readonly calls: Schema.Number;
|
|
296
|
+
readonly callsFailed: Schema.Number;
|
|
297
|
+
readonly editsAttempted: Schema.Number;
|
|
298
|
+
readonly editsSucceeded: Schema.Number;
|
|
299
|
+
readonly inputTokens: Schema.Number;
|
|
300
|
+
readonly outputTokens: Schema.Number;
|
|
301
|
+
readonly verdict: Schema.String;
|
|
302
|
+
readonly diagnosis: Schema.String;
|
|
303
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
304
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
305
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
306
|
+
}>>;
|
|
307
|
+
}>, Schema.Struct<{
|
|
308
|
+
readonly selector: Schema.TaggedStruct<"run-summary", {
|
|
309
|
+
readonly runId: Schema.String;
|
|
310
|
+
}>;
|
|
311
|
+
readonly cursor: Schema.Struct<{
|
|
312
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
313
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
314
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
315
|
+
readonly runId: Schema.String;
|
|
316
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
317
|
+
readonly runId: Schema.String;
|
|
318
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
319
|
+
readonly runId: Schema.String;
|
|
320
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
321
|
+
readonly runId: Schema.String;
|
|
322
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
323
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
324
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
325
|
+
readonly runId: Schema.String;
|
|
326
|
+
readonly nodeId: Schema.String;
|
|
327
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
328
|
+
readonly flowId: Schema.String;
|
|
329
|
+
}>]>;
|
|
330
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
331
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
332
|
+
readonly value: Schema.Int;
|
|
333
|
+
readonly offset: Schema.Int;
|
|
334
|
+
}>;
|
|
335
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
336
|
+
readonly runId: Schema.String;
|
|
337
|
+
readonly flowId: Schema.String;
|
|
338
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
339
|
+
readonly subjectId: Schema.String;
|
|
340
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
341
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
342
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
343
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
344
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
345
|
+
readonly reason: Schema.optional<Schema.Literals<readonly ["ok", "no-progress", "awaiting-reply", "prompt-detected", "quota-wait", "timer-wait", "event-wait", "released", "unreachable", "probe-timeout", "probe-error", "owner-changed"]>>;
|
|
346
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
347
|
+
readonly checkerId: Schema.String;
|
|
348
|
+
readonly monitorId: Schema.String;
|
|
349
|
+
readonly observedAt: Schema.Int;
|
|
350
|
+
readonly expiresAt: Schema.Int;
|
|
351
|
+
readonly evidenceSeq: Schema.Int;
|
|
352
|
+
readonly incarnation: Schema.String;
|
|
353
|
+
readonly version: Schema.Int;
|
|
354
|
+
}>>;
|
|
355
|
+
readonly updatedAt: Schema.Int;
|
|
356
|
+
}>>;
|
|
357
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
358
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
359
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
360
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
361
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
362
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
363
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
364
|
+
}>>;
|
|
365
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
366
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
367
|
+
readonly rootExecutionId: Schema.String;
|
|
368
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
369
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
370
|
+
readonly executionId: Schema.String;
|
|
371
|
+
readonly generation: Schema.Number;
|
|
372
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
373
|
+
readonly fromSequence: Schema.Number;
|
|
374
|
+
readonly throughSequence: Schema.Number;
|
|
375
|
+
}>>>;
|
|
376
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
377
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
378
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
379
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
380
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
381
|
+
}>>;
|
|
382
|
+
readonly createdAt: Schema.Number;
|
|
383
|
+
readonly updatedAt: Schema.Number;
|
|
384
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
385
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
386
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
387
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
388
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
389
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
390
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
391
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
392
|
+
readonly requestedAt: Schema.Number;
|
|
393
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
394
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
395
|
+
readonly id: Schema.String;
|
|
396
|
+
readonly kind: Schema.String;
|
|
397
|
+
readonly stampedAt: Schema.Number;
|
|
398
|
+
}>>;
|
|
399
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
400
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
401
|
+
}>>;
|
|
402
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
403
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
404
|
+
readonly turns: Schema.Number;
|
|
405
|
+
readonly calls: Schema.Number;
|
|
406
|
+
readonly callsFailed: Schema.Number;
|
|
407
|
+
readonly editsAttempted: Schema.Number;
|
|
408
|
+
readonly editsSucceeded: Schema.Number;
|
|
409
|
+
readonly inputTokens: Schema.Number;
|
|
410
|
+
readonly outputTokens: Schema.Number;
|
|
411
|
+
readonly verdict: Schema.String;
|
|
412
|
+
readonly diagnosis: Schema.String;
|
|
413
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
414
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
415
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
416
|
+
}>>;
|
|
417
|
+
}>, Schema.Struct<{
|
|
418
|
+
readonly selector: Schema.TaggedStruct<"run-events", {
|
|
419
|
+
readonly runId: Schema.String;
|
|
420
|
+
}>;
|
|
421
|
+
readonly cursor: Schema.Struct<{
|
|
422
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
423
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
424
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
425
|
+
readonly runId: Schema.String;
|
|
426
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
427
|
+
readonly runId: Schema.String;
|
|
428
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
429
|
+
readonly runId: Schema.String;
|
|
430
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
431
|
+
readonly runId: Schema.String;
|
|
432
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
433
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
434
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
435
|
+
readonly runId: Schema.String;
|
|
436
|
+
readonly nodeId: Schema.String;
|
|
437
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
438
|
+
readonly flowId: Schema.String;
|
|
439
|
+
}>]>;
|
|
440
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
441
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
442
|
+
readonly value: Schema.Int;
|
|
443
|
+
readonly offset: Schema.Int;
|
|
444
|
+
}>;
|
|
445
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
446
|
+
readonly cursor: Schema.optional<Schema.Struct<{
|
|
447
|
+
readonly sequence: Schema.Int;
|
|
448
|
+
readonly offset: Schema.optional<Schema.Int>;
|
|
449
|
+
}>>;
|
|
450
|
+
readonly sequence: Schema.Number;
|
|
451
|
+
readonly kind: Schema.String;
|
|
452
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
453
|
+
readonly occurredAt: Schema.Number;
|
|
454
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
455
|
+
}>>;
|
|
456
|
+
}>, Schema.Struct<{
|
|
457
|
+
readonly selector: Schema.TaggedStruct<"transcript", {
|
|
458
|
+
readonly runId: Schema.String;
|
|
459
|
+
}>;
|
|
460
|
+
readonly cursor: Schema.Struct<{
|
|
461
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
462
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
463
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
464
|
+
readonly runId: Schema.String;
|
|
465
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
466
|
+
readonly runId: Schema.String;
|
|
467
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
468
|
+
readonly runId: Schema.String;
|
|
469
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
470
|
+
readonly runId: Schema.String;
|
|
471
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
472
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
473
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
474
|
+
readonly runId: Schema.String;
|
|
475
|
+
readonly nodeId: Schema.String;
|
|
476
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
477
|
+
readonly flowId: Schema.String;
|
|
478
|
+
}>]>;
|
|
479
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
480
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
481
|
+
readonly value: Schema.Int;
|
|
482
|
+
readonly offset: Schema.Int;
|
|
483
|
+
}>;
|
|
484
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
485
|
+
readonly runId: Schema.String;
|
|
486
|
+
readonly sequence: Schema.Number;
|
|
487
|
+
readonly turn: Schema.Number;
|
|
488
|
+
readonly at: Schema.Number;
|
|
489
|
+
readonly kind: Schema.String;
|
|
490
|
+
readonly callId: Schema.optional<Schema.String>;
|
|
491
|
+
readonly text: Schema.String;
|
|
492
|
+
}>>;
|
|
493
|
+
}>, Schema.Struct<{
|
|
494
|
+
readonly selector: Schema.TaggedStruct<"run-tree", {
|
|
495
|
+
readonly runId: Schema.String;
|
|
496
|
+
}>;
|
|
497
|
+
readonly cursor: Schema.Struct<{
|
|
498
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
499
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
500
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
501
|
+
readonly runId: Schema.String;
|
|
502
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
503
|
+
readonly runId: Schema.String;
|
|
504
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
505
|
+
readonly runId: Schema.String;
|
|
506
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
507
|
+
readonly runId: Schema.String;
|
|
508
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
509
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
510
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
511
|
+
readonly runId: Schema.String;
|
|
512
|
+
readonly nodeId: Schema.String;
|
|
513
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
514
|
+
readonly flowId: Schema.String;
|
|
515
|
+
}>]>;
|
|
516
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
517
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
518
|
+
readonly value: Schema.Int;
|
|
519
|
+
readonly offset: Schema.Int;
|
|
520
|
+
}>;
|
|
521
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
522
|
+
readonly runId: Schema.String;
|
|
523
|
+
readonly nodeId: Schema.String;
|
|
524
|
+
readonly label: Schema.String;
|
|
525
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "failed"]>;
|
|
526
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
527
|
+
readonly startedAt: Schema.Number;
|
|
528
|
+
readonly endedAt: Schema.optional<Schema.Number>;
|
|
529
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
530
|
+
}>>;
|
|
531
|
+
}>, Schema.Struct<{
|
|
532
|
+
readonly selector: Schema.TaggedStruct<"approvals", {
|
|
533
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
534
|
+
}>;
|
|
535
|
+
readonly cursor: Schema.Struct<{
|
|
536
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
537
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
538
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
539
|
+
readonly runId: Schema.String;
|
|
540
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
541
|
+
readonly runId: Schema.String;
|
|
542
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
543
|
+
readonly runId: Schema.String;
|
|
544
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
545
|
+
readonly runId: Schema.String;
|
|
546
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
547
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
548
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
549
|
+
readonly runId: Schema.String;
|
|
550
|
+
readonly nodeId: Schema.String;
|
|
551
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
552
|
+
readonly flowId: Schema.String;
|
|
553
|
+
}>]>;
|
|
554
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
555
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
556
|
+
readonly value: Schema.Int;
|
|
557
|
+
readonly offset: Schema.Int;
|
|
558
|
+
}>;
|
|
559
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
560
|
+
readonly runId: Schema.String;
|
|
561
|
+
readonly waitRunId: Schema.optional<Schema.String>;
|
|
562
|
+
readonly questionProvenance: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
563
|
+
readonly requestId: Schema.String;
|
|
564
|
+
readonly title: Schema.String;
|
|
565
|
+
readonly request: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
566
|
+
readonly payload: Schema.Struct<{
|
|
567
|
+
readonly target: Schema.Union<readonly [Schema.TaggedStruct<"Plan", {
|
|
568
|
+
readonly planId: Schema.String;
|
|
569
|
+
readonly digest: Schema.String;
|
|
570
|
+
readonly envelope: Schema.Struct<{
|
|
571
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
572
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
573
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
574
|
+
readonly budget: Schema.Struct<{
|
|
575
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
576
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
577
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
578
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
579
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
580
|
+
}>;
|
|
581
|
+
readonly host: Schema.optional<Schema.String>;
|
|
582
|
+
}>;
|
|
583
|
+
}>, Schema.TaggedStruct<"Node", {
|
|
584
|
+
readonly runId: Schema.String;
|
|
585
|
+
readonly requestId: Schema.String;
|
|
586
|
+
readonly digest: Schema.String;
|
|
587
|
+
readonly envelope: Schema.Struct<{
|
|
588
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
589
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
590
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
591
|
+
readonly budget: Schema.Struct<{
|
|
592
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
593
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
594
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
595
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
596
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
597
|
+
}>;
|
|
598
|
+
readonly host: Schema.optional<Schema.String>;
|
|
599
|
+
}>;
|
|
600
|
+
}>]>;
|
|
601
|
+
readonly scope: Schema.Literals<readonly ["once", "run", "remembered"]>;
|
|
602
|
+
readonly idempotencyKey: Schema.String;
|
|
603
|
+
}>;
|
|
604
|
+
readonly requestedAt: Schema.Number;
|
|
605
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
606
|
+
}>>;
|
|
607
|
+
}>, Schema.Struct<{
|
|
608
|
+
readonly selector: Schema.TaggedStruct<"node-output", {
|
|
609
|
+
readonly runId: Schema.String;
|
|
610
|
+
readonly nodeId: Schema.String;
|
|
611
|
+
}>;
|
|
612
|
+
readonly cursor: Schema.Struct<{
|
|
613
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
614
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
615
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
616
|
+
readonly runId: Schema.String;
|
|
617
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
618
|
+
readonly runId: Schema.String;
|
|
619
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
620
|
+
readonly runId: Schema.String;
|
|
621
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
622
|
+
readonly runId: Schema.String;
|
|
623
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
624
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
625
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
626
|
+
readonly runId: Schema.String;
|
|
627
|
+
readonly nodeId: Schema.String;
|
|
628
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
629
|
+
readonly flowId: Schema.String;
|
|
630
|
+
}>]>;
|
|
631
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
632
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
633
|
+
readonly value: Schema.Int;
|
|
634
|
+
readonly offset: Schema.Int;
|
|
635
|
+
}>;
|
|
636
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
637
|
+
readonly runId: Schema.String;
|
|
638
|
+
readonly nodeId: Schema.String;
|
|
639
|
+
readonly outcome: Schema.Literals<readonly ["success", "failure"]>;
|
|
640
|
+
readonly output: Schema.String;
|
|
641
|
+
readonly settledAt: Schema.Number;
|
|
642
|
+
}>>;
|
|
643
|
+
}>, Schema.Struct<{
|
|
644
|
+
readonly selector: Schema.TaggedStruct<"flow-durations", {
|
|
645
|
+
readonly flowId: Schema.String;
|
|
646
|
+
}>;
|
|
647
|
+
readonly cursor: Schema.Struct<{
|
|
648
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
649
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
650
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
651
|
+
readonly runId: Schema.String;
|
|
652
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
653
|
+
readonly runId: Schema.String;
|
|
654
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
655
|
+
readonly runId: Schema.String;
|
|
656
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
657
|
+
readonly runId: Schema.String;
|
|
658
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
659
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
660
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
661
|
+
readonly runId: Schema.String;
|
|
662
|
+
readonly nodeId: Schema.String;
|
|
663
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
664
|
+
readonly flowId: Schema.String;
|
|
665
|
+
}>]>;
|
|
666
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
667
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
668
|
+
readonly value: Schema.Int;
|
|
669
|
+
readonly offset: Schema.Int;
|
|
670
|
+
}>;
|
|
671
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
672
|
+
readonly flowId: Schema.String;
|
|
673
|
+
readonly actionTag: Schema.String;
|
|
674
|
+
readonly samples: Schema.Number;
|
|
675
|
+
readonly p50Ms: Schema.Number;
|
|
676
|
+
readonly p90Ms: Schema.Number;
|
|
677
|
+
}>>;
|
|
678
|
+
}>]>, typeof GatewayError, typeof ControlRpcs.ControlAuth, never> | Rpc.Rpc<"Projection.Subscribe", Schema.Struct<{
|
|
679
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
680
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
681
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
682
|
+
readonly runId: Schema.String;
|
|
683
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
684
|
+
readonly runId: Schema.String;
|
|
685
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
686
|
+
readonly runId: Schema.String;
|
|
687
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
688
|
+
readonly runId: Schema.String;
|
|
689
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
690
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
691
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
692
|
+
readonly runId: Schema.String;
|
|
693
|
+
readonly nodeId: Schema.String;
|
|
694
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
695
|
+
readonly flowId: Schema.String;
|
|
696
|
+
}>]>;
|
|
697
|
+
readonly after: Schema.optional<Schema.Struct<{
|
|
698
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
699
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
700
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
701
|
+
readonly runId: Schema.String;
|
|
702
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
703
|
+
readonly runId: Schema.String;
|
|
704
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
705
|
+
readonly runId: Schema.String;
|
|
706
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
707
|
+
readonly runId: Schema.String;
|
|
708
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
709
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
710
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
711
|
+
readonly runId: Schema.String;
|
|
712
|
+
readonly nodeId: Schema.String;
|
|
713
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
714
|
+
readonly flowId: Schema.String;
|
|
715
|
+
}>]>;
|
|
716
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
717
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
718
|
+
readonly value: Schema.Int;
|
|
719
|
+
readonly offset: Schema.Int;
|
|
720
|
+
}>>;
|
|
721
|
+
}>, import("effect/unstable/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.TaggedStruct<"snapshot-start", {
|
|
722
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
723
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
724
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
725
|
+
readonly runId: Schema.String;
|
|
726
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
727
|
+
readonly runId: Schema.String;
|
|
728
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
729
|
+
readonly runId: Schema.String;
|
|
730
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
731
|
+
readonly runId: Schema.String;
|
|
732
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
733
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
734
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
735
|
+
readonly runId: Schema.String;
|
|
736
|
+
readonly nodeId: Schema.String;
|
|
737
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
738
|
+
readonly flowId: Schema.String;
|
|
739
|
+
}>]>;
|
|
740
|
+
readonly cursor: Schema.Struct<{
|
|
741
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
742
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
743
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
744
|
+
readonly runId: Schema.String;
|
|
745
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
746
|
+
readonly runId: Schema.String;
|
|
747
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
748
|
+
readonly runId: Schema.String;
|
|
749
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
750
|
+
readonly runId: Schema.String;
|
|
751
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
752
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
753
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
754
|
+
readonly runId: Schema.String;
|
|
755
|
+
readonly nodeId: Schema.String;
|
|
756
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
757
|
+
readonly flowId: Schema.String;
|
|
758
|
+
}>]>;
|
|
759
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
760
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
761
|
+
readonly value: Schema.Int;
|
|
762
|
+
readonly offset: Schema.Int;
|
|
763
|
+
}>;
|
|
764
|
+
}>, Schema.TaggedStruct<"row", {
|
|
765
|
+
readonly selector: Schema.TaggedStruct<"workspace-runs", {
|
|
766
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
767
|
+
}>;
|
|
768
|
+
readonly cursor: Schema.Struct<{
|
|
769
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
770
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
771
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
772
|
+
readonly runId: Schema.String;
|
|
773
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
774
|
+
readonly runId: Schema.String;
|
|
775
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
776
|
+
readonly runId: Schema.String;
|
|
777
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
778
|
+
readonly runId: Schema.String;
|
|
779
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
780
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
781
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
782
|
+
readonly runId: Schema.String;
|
|
783
|
+
readonly nodeId: Schema.String;
|
|
784
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
785
|
+
readonly flowId: Schema.String;
|
|
786
|
+
}>]>;
|
|
787
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
788
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
789
|
+
readonly value: Schema.Int;
|
|
790
|
+
readonly offset: Schema.Int;
|
|
791
|
+
}>;
|
|
792
|
+
readonly row: Schema.Struct<{
|
|
793
|
+
readonly runId: Schema.String;
|
|
794
|
+
readonly flowId: Schema.String;
|
|
795
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
796
|
+
readonly subjectId: Schema.String;
|
|
797
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
798
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
799
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
800
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
801
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
802
|
+
readonly reason: Schema.optional<Schema.Literals<readonly ["ok", "no-progress", "awaiting-reply", "prompt-detected", "quota-wait", "timer-wait", "event-wait", "released", "unreachable", "probe-timeout", "probe-error", "owner-changed"]>>;
|
|
803
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
804
|
+
readonly checkerId: Schema.String;
|
|
805
|
+
readonly monitorId: Schema.String;
|
|
806
|
+
readonly observedAt: Schema.Int;
|
|
807
|
+
readonly expiresAt: Schema.Int;
|
|
808
|
+
readonly evidenceSeq: Schema.Int;
|
|
809
|
+
readonly incarnation: Schema.String;
|
|
810
|
+
readonly version: Schema.Int;
|
|
811
|
+
}>>;
|
|
812
|
+
readonly updatedAt: Schema.Int;
|
|
813
|
+
}>>;
|
|
814
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
815
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
816
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
817
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
818
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
819
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
820
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
821
|
+
}>>;
|
|
822
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
823
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
824
|
+
readonly rootExecutionId: Schema.String;
|
|
825
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
826
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
827
|
+
readonly executionId: Schema.String;
|
|
828
|
+
readonly generation: Schema.Number;
|
|
829
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
830
|
+
readonly fromSequence: Schema.Number;
|
|
831
|
+
readonly throughSequence: Schema.Number;
|
|
832
|
+
}>>>;
|
|
833
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
834
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
835
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
836
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
837
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
838
|
+
}>>;
|
|
839
|
+
readonly createdAt: Schema.Number;
|
|
840
|
+
readonly updatedAt: Schema.Number;
|
|
841
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
842
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
843
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
844
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
845
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
846
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
847
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
848
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
849
|
+
readonly requestedAt: Schema.Number;
|
|
850
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
851
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
852
|
+
readonly id: Schema.String;
|
|
853
|
+
readonly kind: Schema.String;
|
|
854
|
+
readonly stampedAt: Schema.Number;
|
|
855
|
+
}>>;
|
|
856
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
857
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
858
|
+
}>>;
|
|
859
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
860
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
861
|
+
readonly turns: Schema.Number;
|
|
862
|
+
readonly calls: Schema.Number;
|
|
863
|
+
readonly callsFailed: Schema.Number;
|
|
864
|
+
readonly editsAttempted: Schema.Number;
|
|
865
|
+
readonly editsSucceeded: Schema.Number;
|
|
866
|
+
readonly inputTokens: Schema.Number;
|
|
867
|
+
readonly outputTokens: Schema.Number;
|
|
868
|
+
readonly verdict: Schema.String;
|
|
869
|
+
readonly diagnosis: Schema.String;
|
|
870
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
871
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
872
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
873
|
+
}>;
|
|
874
|
+
}>, Schema.TaggedStruct<"row", {
|
|
875
|
+
readonly selector: Schema.TaggedStruct<"run-summary", {
|
|
876
|
+
readonly runId: Schema.String;
|
|
877
|
+
}>;
|
|
878
|
+
readonly cursor: Schema.Struct<{
|
|
879
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
880
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
881
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
882
|
+
readonly runId: Schema.String;
|
|
883
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
884
|
+
readonly runId: Schema.String;
|
|
885
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
886
|
+
readonly runId: Schema.String;
|
|
887
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
888
|
+
readonly runId: Schema.String;
|
|
889
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
890
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
891
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
892
|
+
readonly runId: Schema.String;
|
|
893
|
+
readonly nodeId: Schema.String;
|
|
894
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
895
|
+
readonly flowId: Schema.String;
|
|
896
|
+
}>]>;
|
|
897
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
898
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
899
|
+
readonly value: Schema.Int;
|
|
900
|
+
readonly offset: Schema.Int;
|
|
901
|
+
}>;
|
|
902
|
+
readonly row: Schema.Struct<{
|
|
903
|
+
readonly runId: Schema.String;
|
|
904
|
+
readonly flowId: Schema.String;
|
|
905
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
906
|
+
readonly subjectId: Schema.String;
|
|
907
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
908
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
909
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
910
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
911
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
912
|
+
readonly reason: Schema.optional<Schema.Literals<readonly ["ok", "no-progress", "awaiting-reply", "prompt-detected", "quota-wait", "timer-wait", "event-wait", "released", "unreachable", "probe-timeout", "probe-error", "owner-changed"]>>;
|
|
913
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
914
|
+
readonly checkerId: Schema.String;
|
|
915
|
+
readonly monitorId: Schema.String;
|
|
916
|
+
readonly observedAt: Schema.Int;
|
|
917
|
+
readonly expiresAt: Schema.Int;
|
|
918
|
+
readonly evidenceSeq: Schema.Int;
|
|
919
|
+
readonly incarnation: Schema.String;
|
|
920
|
+
readonly version: Schema.Int;
|
|
921
|
+
}>>;
|
|
922
|
+
readonly updatedAt: Schema.Int;
|
|
923
|
+
}>>;
|
|
924
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
925
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
926
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
927
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
928
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
929
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
930
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
931
|
+
}>>;
|
|
932
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
933
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
934
|
+
readonly rootExecutionId: Schema.String;
|
|
935
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
936
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
937
|
+
readonly executionId: Schema.String;
|
|
938
|
+
readonly generation: Schema.Number;
|
|
939
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
940
|
+
readonly fromSequence: Schema.Number;
|
|
941
|
+
readonly throughSequence: Schema.Number;
|
|
942
|
+
}>>>;
|
|
943
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
944
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
945
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
946
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
947
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
948
|
+
}>>;
|
|
949
|
+
readonly createdAt: Schema.Number;
|
|
950
|
+
readonly updatedAt: Schema.Number;
|
|
951
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
952
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
953
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
954
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
955
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
956
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
957
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
958
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
959
|
+
readonly requestedAt: Schema.Number;
|
|
960
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
961
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
962
|
+
readonly id: Schema.String;
|
|
963
|
+
readonly kind: Schema.String;
|
|
964
|
+
readonly stampedAt: Schema.Number;
|
|
965
|
+
}>>;
|
|
966
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
967
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
968
|
+
}>>;
|
|
969
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
970
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
971
|
+
readonly turns: Schema.Number;
|
|
972
|
+
readonly calls: Schema.Number;
|
|
973
|
+
readonly callsFailed: Schema.Number;
|
|
974
|
+
readonly editsAttempted: Schema.Number;
|
|
975
|
+
readonly editsSucceeded: Schema.Number;
|
|
976
|
+
readonly inputTokens: Schema.Number;
|
|
977
|
+
readonly outputTokens: Schema.Number;
|
|
978
|
+
readonly verdict: Schema.String;
|
|
979
|
+
readonly diagnosis: Schema.String;
|
|
980
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
981
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
982
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
983
|
+
}>;
|
|
984
|
+
}>, Schema.TaggedStruct<"row", {
|
|
985
|
+
readonly selector: Schema.TaggedStruct<"run-events", {
|
|
986
|
+
readonly runId: Schema.String;
|
|
987
|
+
}>;
|
|
988
|
+
readonly cursor: Schema.Struct<{
|
|
989
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
990
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
991
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
992
|
+
readonly runId: Schema.String;
|
|
993
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
994
|
+
readonly runId: Schema.String;
|
|
995
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
996
|
+
readonly runId: Schema.String;
|
|
997
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
998
|
+
readonly runId: Schema.String;
|
|
999
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1000
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1001
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1002
|
+
readonly runId: Schema.String;
|
|
1003
|
+
readonly nodeId: Schema.String;
|
|
1004
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1005
|
+
readonly flowId: Schema.String;
|
|
1006
|
+
}>]>;
|
|
1007
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1008
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1009
|
+
readonly value: Schema.Int;
|
|
1010
|
+
readonly offset: Schema.Int;
|
|
1011
|
+
}>;
|
|
1012
|
+
readonly row: Schema.Struct<{
|
|
1013
|
+
readonly cursor: Schema.optional<Schema.Struct<{
|
|
1014
|
+
readonly sequence: Schema.Int;
|
|
1015
|
+
readonly offset: Schema.optional<Schema.Int>;
|
|
1016
|
+
}>>;
|
|
1017
|
+
readonly sequence: Schema.Number;
|
|
1018
|
+
readonly kind: Schema.String;
|
|
1019
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1020
|
+
readonly occurredAt: Schema.Number;
|
|
1021
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1022
|
+
}>;
|
|
1023
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1024
|
+
readonly selector: Schema.TaggedStruct<"transcript", {
|
|
1025
|
+
readonly runId: Schema.String;
|
|
1026
|
+
}>;
|
|
1027
|
+
readonly cursor: Schema.Struct<{
|
|
1028
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1029
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1030
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1031
|
+
readonly runId: Schema.String;
|
|
1032
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1033
|
+
readonly runId: Schema.String;
|
|
1034
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1035
|
+
readonly runId: Schema.String;
|
|
1036
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1037
|
+
readonly runId: Schema.String;
|
|
1038
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1039
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1040
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1041
|
+
readonly runId: Schema.String;
|
|
1042
|
+
readonly nodeId: Schema.String;
|
|
1043
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1044
|
+
readonly flowId: Schema.String;
|
|
1045
|
+
}>]>;
|
|
1046
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1047
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1048
|
+
readonly value: Schema.Int;
|
|
1049
|
+
readonly offset: Schema.Int;
|
|
1050
|
+
}>;
|
|
1051
|
+
readonly row: Schema.Struct<{
|
|
1052
|
+
readonly runId: Schema.String;
|
|
1053
|
+
readonly sequence: Schema.Number;
|
|
1054
|
+
readonly turn: Schema.Number;
|
|
1055
|
+
readonly at: Schema.Number;
|
|
1056
|
+
readonly kind: Schema.String;
|
|
1057
|
+
readonly callId: Schema.optional<Schema.String>;
|
|
1058
|
+
readonly text: Schema.String;
|
|
1059
|
+
}>;
|
|
1060
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1061
|
+
readonly selector: Schema.TaggedStruct<"run-tree", {
|
|
1062
|
+
readonly runId: Schema.String;
|
|
1063
|
+
}>;
|
|
1064
|
+
readonly cursor: Schema.Struct<{
|
|
1065
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1066
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1067
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1068
|
+
readonly runId: Schema.String;
|
|
1069
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1070
|
+
readonly runId: Schema.String;
|
|
1071
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1072
|
+
readonly runId: Schema.String;
|
|
1073
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1074
|
+
readonly runId: Schema.String;
|
|
1075
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1076
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1077
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1078
|
+
readonly runId: Schema.String;
|
|
1079
|
+
readonly nodeId: Schema.String;
|
|
1080
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1081
|
+
readonly flowId: Schema.String;
|
|
1082
|
+
}>]>;
|
|
1083
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1084
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1085
|
+
readonly value: Schema.Int;
|
|
1086
|
+
readonly offset: Schema.Int;
|
|
1087
|
+
}>;
|
|
1088
|
+
readonly row: Schema.Struct<{
|
|
1089
|
+
readonly runId: Schema.String;
|
|
1090
|
+
readonly nodeId: Schema.String;
|
|
1091
|
+
readonly label: Schema.String;
|
|
1092
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "failed"]>;
|
|
1093
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
1094
|
+
readonly startedAt: Schema.Number;
|
|
1095
|
+
readonly endedAt: Schema.optional<Schema.Number>;
|
|
1096
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
1097
|
+
}>;
|
|
1098
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1099
|
+
readonly selector: Schema.TaggedStruct<"approvals", {
|
|
1100
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1101
|
+
}>;
|
|
1102
|
+
readonly cursor: Schema.Struct<{
|
|
1103
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1104
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1105
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1106
|
+
readonly runId: Schema.String;
|
|
1107
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1108
|
+
readonly runId: Schema.String;
|
|
1109
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1110
|
+
readonly runId: Schema.String;
|
|
1111
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1112
|
+
readonly runId: Schema.String;
|
|
1113
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1114
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1115
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1116
|
+
readonly runId: Schema.String;
|
|
1117
|
+
readonly nodeId: Schema.String;
|
|
1118
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1119
|
+
readonly flowId: Schema.String;
|
|
1120
|
+
}>]>;
|
|
1121
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1122
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1123
|
+
readonly value: Schema.Int;
|
|
1124
|
+
readonly offset: Schema.Int;
|
|
1125
|
+
}>;
|
|
1126
|
+
readonly row: Schema.Struct<{
|
|
1127
|
+
readonly runId: Schema.String;
|
|
1128
|
+
readonly waitRunId: Schema.optional<Schema.String>;
|
|
1129
|
+
readonly questionProvenance: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
1130
|
+
readonly requestId: Schema.String;
|
|
1131
|
+
readonly title: Schema.String;
|
|
1132
|
+
readonly request: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1133
|
+
readonly payload: Schema.Struct<{
|
|
1134
|
+
readonly target: Schema.Union<readonly [Schema.TaggedStruct<"Plan", {
|
|
1135
|
+
readonly planId: Schema.String;
|
|
1136
|
+
readonly digest: Schema.String;
|
|
1137
|
+
readonly envelope: Schema.Struct<{
|
|
1138
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
1139
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1140
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
1141
|
+
readonly budget: Schema.Struct<{
|
|
1142
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
1143
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
1144
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
1145
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
1146
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
1147
|
+
}>;
|
|
1148
|
+
readonly host: Schema.optional<Schema.String>;
|
|
1149
|
+
}>;
|
|
1150
|
+
}>, Schema.TaggedStruct<"Node", {
|
|
1151
|
+
readonly runId: Schema.String;
|
|
1152
|
+
readonly requestId: Schema.String;
|
|
1153
|
+
readonly digest: Schema.String;
|
|
1154
|
+
readonly envelope: Schema.Struct<{
|
|
1155
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
1156
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1157
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
1158
|
+
readonly budget: Schema.Struct<{
|
|
1159
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
1160
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
1161
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
1162
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
1163
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
1164
|
+
}>;
|
|
1165
|
+
readonly host: Schema.optional<Schema.String>;
|
|
1166
|
+
}>;
|
|
1167
|
+
}>]>;
|
|
1168
|
+
readonly scope: Schema.Literals<readonly ["once", "run", "remembered"]>;
|
|
1169
|
+
readonly idempotencyKey: Schema.String;
|
|
1170
|
+
}>;
|
|
1171
|
+
readonly requestedAt: Schema.Number;
|
|
1172
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
1173
|
+
}>;
|
|
1174
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1175
|
+
readonly selector: Schema.TaggedStruct<"node-output", {
|
|
1176
|
+
readonly runId: Schema.String;
|
|
1177
|
+
readonly nodeId: Schema.String;
|
|
1178
|
+
}>;
|
|
1179
|
+
readonly cursor: Schema.Struct<{
|
|
1180
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1181
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1182
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1183
|
+
readonly runId: Schema.String;
|
|
1184
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1185
|
+
readonly runId: Schema.String;
|
|
1186
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1187
|
+
readonly runId: Schema.String;
|
|
1188
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1189
|
+
readonly runId: Schema.String;
|
|
1190
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1191
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1192
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1193
|
+
readonly runId: Schema.String;
|
|
1194
|
+
readonly nodeId: Schema.String;
|
|
1195
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1196
|
+
readonly flowId: Schema.String;
|
|
1197
|
+
}>]>;
|
|
1198
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1199
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1200
|
+
readonly value: Schema.Int;
|
|
1201
|
+
readonly offset: Schema.Int;
|
|
1202
|
+
}>;
|
|
1203
|
+
readonly row: Schema.Struct<{
|
|
1204
|
+
readonly runId: Schema.String;
|
|
1205
|
+
readonly nodeId: Schema.String;
|
|
1206
|
+
readonly outcome: Schema.Literals<readonly ["success", "failure"]>;
|
|
1207
|
+
readonly output: Schema.String;
|
|
1208
|
+
readonly settledAt: Schema.Number;
|
|
1209
|
+
}>;
|
|
1210
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1211
|
+
readonly selector: Schema.TaggedStruct<"flow-durations", {
|
|
1212
|
+
readonly flowId: Schema.String;
|
|
1213
|
+
}>;
|
|
1214
|
+
readonly cursor: Schema.Struct<{
|
|
1215
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1216
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1217
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1218
|
+
readonly runId: Schema.String;
|
|
1219
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1220
|
+
readonly runId: Schema.String;
|
|
1221
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1222
|
+
readonly runId: Schema.String;
|
|
1223
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1224
|
+
readonly runId: Schema.String;
|
|
1225
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1226
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1227
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1228
|
+
readonly runId: Schema.String;
|
|
1229
|
+
readonly nodeId: Schema.String;
|
|
1230
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1231
|
+
readonly flowId: Schema.String;
|
|
1232
|
+
}>]>;
|
|
1233
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1234
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1235
|
+
readonly value: Schema.Int;
|
|
1236
|
+
readonly offset: Schema.Int;
|
|
1237
|
+
}>;
|
|
1238
|
+
readonly row: Schema.Struct<{
|
|
1239
|
+
readonly flowId: Schema.String;
|
|
1240
|
+
readonly actionTag: Schema.String;
|
|
1241
|
+
readonly samples: Schema.Number;
|
|
1242
|
+
readonly p50Ms: Schema.Number;
|
|
1243
|
+
readonly p90Ms: Schema.Number;
|
|
1244
|
+
}>;
|
|
1245
|
+
}>, Schema.TaggedStruct<"snapshot-end", {
|
|
1246
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1247
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1248
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1249
|
+
readonly runId: Schema.String;
|
|
1250
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1251
|
+
readonly runId: Schema.String;
|
|
1252
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1253
|
+
readonly runId: Schema.String;
|
|
1254
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1255
|
+
readonly runId: Schema.String;
|
|
1256
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1257
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1258
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1259
|
+
readonly runId: Schema.String;
|
|
1260
|
+
readonly nodeId: Schema.String;
|
|
1261
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1262
|
+
readonly flowId: Schema.String;
|
|
1263
|
+
}>]>;
|
|
1264
|
+
readonly cursor: Schema.Struct<{
|
|
1265
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1266
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1267
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1268
|
+
readonly runId: Schema.String;
|
|
1269
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1270
|
+
readonly runId: Schema.String;
|
|
1271
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1272
|
+
readonly runId: Schema.String;
|
|
1273
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1274
|
+
readonly runId: Schema.String;
|
|
1275
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1276
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1277
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1278
|
+
readonly runId: Schema.String;
|
|
1279
|
+
readonly nodeId: Schema.String;
|
|
1280
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1281
|
+
readonly flowId: Schema.String;
|
|
1282
|
+
}>]>;
|
|
1283
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1284
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1285
|
+
readonly value: Schema.Int;
|
|
1286
|
+
readonly offset: Schema.Int;
|
|
1287
|
+
}>;
|
|
1288
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1289
|
+
readonly selector: Schema.TaggedStruct<"workspace-runs", {
|
|
1290
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1291
|
+
}>;
|
|
1292
|
+
readonly cursor: Schema.Struct<{
|
|
1293
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1294
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1295
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1296
|
+
readonly runId: Schema.String;
|
|
1297
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1298
|
+
readonly runId: Schema.String;
|
|
1299
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1300
|
+
readonly runId: Schema.String;
|
|
1301
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1302
|
+
readonly runId: Schema.String;
|
|
1303
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1304
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1305
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1306
|
+
readonly runId: Schema.String;
|
|
1307
|
+
readonly nodeId: Schema.String;
|
|
1308
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1309
|
+
readonly flowId: Schema.String;
|
|
1310
|
+
}>]>;
|
|
1311
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1312
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1313
|
+
readonly value: Schema.Int;
|
|
1314
|
+
readonly offset: Schema.Int;
|
|
1315
|
+
}>;
|
|
1316
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1317
|
+
readonly runId: Schema.String;
|
|
1318
|
+
readonly flowId: Schema.String;
|
|
1319
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
1320
|
+
readonly subjectId: Schema.String;
|
|
1321
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
1322
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
1323
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
1324
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
1325
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
1326
|
+
readonly reason: Schema.optional<Schema.Literals<readonly ["ok", "no-progress", "awaiting-reply", "prompt-detected", "quota-wait", "timer-wait", "event-wait", "released", "unreachable", "probe-timeout", "probe-error", "owner-changed"]>>;
|
|
1327
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
1328
|
+
readonly checkerId: Schema.String;
|
|
1329
|
+
readonly monitorId: Schema.String;
|
|
1330
|
+
readonly observedAt: Schema.Int;
|
|
1331
|
+
readonly expiresAt: Schema.Int;
|
|
1332
|
+
readonly evidenceSeq: Schema.Int;
|
|
1333
|
+
readonly incarnation: Schema.String;
|
|
1334
|
+
readonly version: Schema.Int;
|
|
1335
|
+
}>>;
|
|
1336
|
+
readonly updatedAt: Schema.Int;
|
|
1337
|
+
}>>;
|
|
1338
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
1339
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
1340
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
1341
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
1342
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1343
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1344
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1345
|
+
}>>;
|
|
1346
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
1347
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
1348
|
+
readonly rootExecutionId: Schema.String;
|
|
1349
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
1350
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1351
|
+
readonly executionId: Schema.String;
|
|
1352
|
+
readonly generation: Schema.Number;
|
|
1353
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
1354
|
+
readonly fromSequence: Schema.Number;
|
|
1355
|
+
readonly throughSequence: Schema.Number;
|
|
1356
|
+
}>>>;
|
|
1357
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
1358
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
1359
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1360
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1361
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1362
|
+
}>>;
|
|
1363
|
+
readonly createdAt: Schema.Number;
|
|
1364
|
+
readonly updatedAt: Schema.Number;
|
|
1365
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
1366
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
1367
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
1368
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
1369
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
1370
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
1371
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
1372
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
1373
|
+
readonly requestedAt: Schema.Number;
|
|
1374
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
1375
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
1376
|
+
readonly id: Schema.String;
|
|
1377
|
+
readonly kind: Schema.String;
|
|
1378
|
+
readonly stampedAt: Schema.Number;
|
|
1379
|
+
}>>;
|
|
1380
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1381
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
1382
|
+
}>>;
|
|
1383
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
1384
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
1385
|
+
readonly turns: Schema.Number;
|
|
1386
|
+
readonly calls: Schema.Number;
|
|
1387
|
+
readonly callsFailed: Schema.Number;
|
|
1388
|
+
readonly editsAttempted: Schema.Number;
|
|
1389
|
+
readonly editsSucceeded: Schema.Number;
|
|
1390
|
+
readonly inputTokens: Schema.Number;
|
|
1391
|
+
readonly outputTokens: Schema.Number;
|
|
1392
|
+
readonly verdict: Schema.String;
|
|
1393
|
+
readonly diagnosis: Schema.String;
|
|
1394
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
1395
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
1396
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
1397
|
+
}>>;
|
|
1398
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1399
|
+
readonly selector: Schema.TaggedStruct<"run-summary", {
|
|
1400
|
+
readonly runId: Schema.String;
|
|
1401
|
+
}>;
|
|
1402
|
+
readonly cursor: Schema.Struct<{
|
|
1403
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1404
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1405
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1406
|
+
readonly runId: Schema.String;
|
|
1407
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1408
|
+
readonly runId: Schema.String;
|
|
1409
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1410
|
+
readonly runId: Schema.String;
|
|
1411
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1412
|
+
readonly runId: Schema.String;
|
|
1413
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1414
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1415
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1416
|
+
readonly runId: Schema.String;
|
|
1417
|
+
readonly nodeId: Schema.String;
|
|
1418
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1419
|
+
readonly flowId: Schema.String;
|
|
1420
|
+
}>]>;
|
|
1421
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1422
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1423
|
+
readonly value: Schema.Int;
|
|
1424
|
+
readonly offset: Schema.Int;
|
|
1425
|
+
}>;
|
|
1426
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1427
|
+
readonly runId: Schema.String;
|
|
1428
|
+
readonly flowId: Schema.String;
|
|
1429
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
1430
|
+
readonly subjectId: Schema.String;
|
|
1431
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
1432
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
1433
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
1434
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
1435
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
1436
|
+
readonly reason: Schema.optional<Schema.Literals<readonly ["ok", "no-progress", "awaiting-reply", "prompt-detected", "quota-wait", "timer-wait", "event-wait", "released", "unreachable", "probe-timeout", "probe-error", "owner-changed"]>>;
|
|
1437
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
1438
|
+
readonly checkerId: Schema.String;
|
|
1439
|
+
readonly monitorId: Schema.String;
|
|
1440
|
+
readonly observedAt: Schema.Int;
|
|
1441
|
+
readonly expiresAt: Schema.Int;
|
|
1442
|
+
readonly evidenceSeq: Schema.Int;
|
|
1443
|
+
readonly incarnation: Schema.String;
|
|
1444
|
+
readonly version: Schema.Int;
|
|
1445
|
+
}>>;
|
|
1446
|
+
readonly updatedAt: Schema.Int;
|
|
1447
|
+
}>>;
|
|
1448
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
1449
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
1450
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
1451
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
1452
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1453
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1454
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1455
|
+
}>>;
|
|
1456
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
1457
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
1458
|
+
readonly rootExecutionId: Schema.String;
|
|
1459
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
1460
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1461
|
+
readonly executionId: Schema.String;
|
|
1462
|
+
readonly generation: Schema.Number;
|
|
1463
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
1464
|
+
readonly fromSequence: Schema.Number;
|
|
1465
|
+
readonly throughSequence: Schema.Number;
|
|
1466
|
+
}>>>;
|
|
1467
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
1468
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
1469
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1470
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1471
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1472
|
+
}>>;
|
|
1473
|
+
readonly createdAt: Schema.Number;
|
|
1474
|
+
readonly updatedAt: Schema.Number;
|
|
1475
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
1476
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
1477
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
1478
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
1479
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
1480
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
1481
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
1482
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
1483
|
+
readonly requestedAt: Schema.Number;
|
|
1484
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
1485
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
1486
|
+
readonly id: Schema.String;
|
|
1487
|
+
readonly kind: Schema.String;
|
|
1488
|
+
readonly stampedAt: Schema.Number;
|
|
1489
|
+
}>>;
|
|
1490
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1491
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
1492
|
+
}>>;
|
|
1493
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
1494
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
1495
|
+
readonly turns: Schema.Number;
|
|
1496
|
+
readonly calls: Schema.Number;
|
|
1497
|
+
readonly callsFailed: Schema.Number;
|
|
1498
|
+
readonly editsAttempted: Schema.Number;
|
|
1499
|
+
readonly editsSucceeded: Schema.Number;
|
|
1500
|
+
readonly inputTokens: Schema.Number;
|
|
1501
|
+
readonly outputTokens: Schema.Number;
|
|
1502
|
+
readonly verdict: Schema.String;
|
|
1503
|
+
readonly diagnosis: Schema.String;
|
|
1504
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
1505
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
1506
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
1507
|
+
}>>;
|
|
1508
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1509
|
+
readonly selector: Schema.TaggedStruct<"run-events", {
|
|
1510
|
+
readonly runId: Schema.String;
|
|
1511
|
+
}>;
|
|
1512
|
+
readonly cursor: Schema.Struct<{
|
|
1513
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1514
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1515
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1516
|
+
readonly runId: Schema.String;
|
|
1517
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1518
|
+
readonly runId: Schema.String;
|
|
1519
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1520
|
+
readonly runId: Schema.String;
|
|
1521
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1522
|
+
readonly runId: Schema.String;
|
|
1523
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1524
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1525
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1526
|
+
readonly runId: Schema.String;
|
|
1527
|
+
readonly nodeId: Schema.String;
|
|
1528
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1529
|
+
readonly flowId: Schema.String;
|
|
1530
|
+
}>]>;
|
|
1531
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1532
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1533
|
+
readonly value: Schema.Int;
|
|
1534
|
+
readonly offset: Schema.Int;
|
|
1535
|
+
}>;
|
|
1536
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1537
|
+
readonly cursor: Schema.optional<Schema.Struct<{
|
|
1538
|
+
readonly sequence: Schema.Int;
|
|
1539
|
+
readonly offset: Schema.optional<Schema.Int>;
|
|
1540
|
+
}>>;
|
|
1541
|
+
readonly sequence: Schema.Number;
|
|
1542
|
+
readonly kind: Schema.String;
|
|
1543
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1544
|
+
readonly occurredAt: Schema.Number;
|
|
1545
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1546
|
+
}>>;
|
|
1547
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1548
|
+
readonly selector: Schema.TaggedStruct<"transcript", {
|
|
1549
|
+
readonly runId: Schema.String;
|
|
1550
|
+
}>;
|
|
1551
|
+
readonly cursor: Schema.Struct<{
|
|
1552
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1553
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1554
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1555
|
+
readonly runId: Schema.String;
|
|
1556
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1557
|
+
readonly runId: Schema.String;
|
|
1558
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1559
|
+
readonly runId: Schema.String;
|
|
1560
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1561
|
+
readonly runId: Schema.String;
|
|
1562
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1563
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1564
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1565
|
+
readonly runId: Schema.String;
|
|
1566
|
+
readonly nodeId: Schema.String;
|
|
1567
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1568
|
+
readonly flowId: Schema.String;
|
|
1569
|
+
}>]>;
|
|
1570
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1571
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1572
|
+
readonly value: Schema.Int;
|
|
1573
|
+
readonly offset: Schema.Int;
|
|
1574
|
+
}>;
|
|
1575
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1576
|
+
readonly runId: Schema.String;
|
|
1577
|
+
readonly sequence: Schema.Number;
|
|
1578
|
+
readonly turn: Schema.Number;
|
|
1579
|
+
readonly at: Schema.Number;
|
|
1580
|
+
readonly kind: Schema.String;
|
|
1581
|
+
readonly callId: Schema.optional<Schema.String>;
|
|
1582
|
+
readonly text: Schema.String;
|
|
1583
|
+
}>>;
|
|
1584
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1585
|
+
readonly selector: Schema.TaggedStruct<"run-tree", {
|
|
1586
|
+
readonly runId: Schema.String;
|
|
1587
|
+
}>;
|
|
1588
|
+
readonly cursor: Schema.Struct<{
|
|
1589
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1590
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1591
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1592
|
+
readonly runId: Schema.String;
|
|
1593
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1594
|
+
readonly runId: Schema.String;
|
|
1595
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1596
|
+
readonly runId: Schema.String;
|
|
1597
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1598
|
+
readonly runId: Schema.String;
|
|
1599
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1600
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1601
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1602
|
+
readonly runId: Schema.String;
|
|
1603
|
+
readonly nodeId: Schema.String;
|
|
1604
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1605
|
+
readonly flowId: Schema.String;
|
|
1606
|
+
}>]>;
|
|
1607
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1608
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1609
|
+
readonly value: Schema.Int;
|
|
1610
|
+
readonly offset: Schema.Int;
|
|
1611
|
+
}>;
|
|
1612
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1613
|
+
readonly runId: Schema.String;
|
|
1614
|
+
readonly nodeId: Schema.String;
|
|
1615
|
+
readonly label: Schema.String;
|
|
1616
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "failed"]>;
|
|
1617
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
1618
|
+
readonly startedAt: Schema.Number;
|
|
1619
|
+
readonly endedAt: Schema.optional<Schema.Number>;
|
|
1620
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
1621
|
+
}>>;
|
|
1622
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1623
|
+
readonly selector: Schema.TaggedStruct<"approvals", {
|
|
1624
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1625
|
+
}>;
|
|
1626
|
+
readonly cursor: Schema.Struct<{
|
|
1627
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1628
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1629
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1630
|
+
readonly runId: Schema.String;
|
|
1631
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1632
|
+
readonly runId: Schema.String;
|
|
1633
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1634
|
+
readonly runId: Schema.String;
|
|
1635
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1636
|
+
readonly runId: Schema.String;
|
|
1637
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1638
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1639
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1640
|
+
readonly runId: Schema.String;
|
|
1641
|
+
readonly nodeId: Schema.String;
|
|
1642
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1643
|
+
readonly flowId: Schema.String;
|
|
1644
|
+
}>]>;
|
|
1645
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1646
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1647
|
+
readonly value: Schema.Int;
|
|
1648
|
+
readonly offset: Schema.Int;
|
|
1649
|
+
}>;
|
|
1650
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1651
|
+
readonly runId: Schema.String;
|
|
1652
|
+
readonly waitRunId: Schema.optional<Schema.String>;
|
|
1653
|
+
readonly questionProvenance: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
1654
|
+
readonly requestId: Schema.String;
|
|
1655
|
+
readonly title: Schema.String;
|
|
1656
|
+
readonly request: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1657
|
+
readonly payload: Schema.Struct<{
|
|
1658
|
+
readonly target: Schema.Union<readonly [Schema.TaggedStruct<"Plan", {
|
|
1659
|
+
readonly planId: Schema.String;
|
|
1660
|
+
readonly digest: Schema.String;
|
|
1661
|
+
readonly envelope: Schema.Struct<{
|
|
1662
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
1663
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1664
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
1665
|
+
readonly budget: Schema.Struct<{
|
|
1666
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
1667
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
1668
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
1669
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
1670
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
1671
|
+
}>;
|
|
1672
|
+
readonly host: Schema.optional<Schema.String>;
|
|
1673
|
+
}>;
|
|
1674
|
+
}>, Schema.TaggedStruct<"Node", {
|
|
1675
|
+
readonly runId: Schema.String;
|
|
1676
|
+
readonly requestId: Schema.String;
|
|
1677
|
+
readonly digest: Schema.String;
|
|
1678
|
+
readonly envelope: Schema.Struct<{
|
|
1679
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
1680
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1681
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
1682
|
+
readonly budget: Schema.Struct<{
|
|
1683
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
1684
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
1685
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
1686
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
1687
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
1688
|
+
}>;
|
|
1689
|
+
readonly host: Schema.optional<Schema.String>;
|
|
1690
|
+
}>;
|
|
1691
|
+
}>]>;
|
|
1692
|
+
readonly scope: Schema.Literals<readonly ["once", "run", "remembered"]>;
|
|
1693
|
+
readonly idempotencyKey: Schema.String;
|
|
1694
|
+
}>;
|
|
1695
|
+
readonly requestedAt: Schema.Number;
|
|
1696
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
1697
|
+
}>>;
|
|
1698
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1699
|
+
readonly selector: Schema.TaggedStruct<"node-output", {
|
|
1700
|
+
readonly runId: Schema.String;
|
|
1701
|
+
readonly nodeId: Schema.String;
|
|
1702
|
+
}>;
|
|
1703
|
+
readonly cursor: Schema.Struct<{
|
|
1704
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1705
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1706
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1707
|
+
readonly runId: Schema.String;
|
|
1708
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1709
|
+
readonly runId: Schema.String;
|
|
1710
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1711
|
+
readonly runId: Schema.String;
|
|
1712
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1713
|
+
readonly runId: Schema.String;
|
|
1714
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1715
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1716
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1717
|
+
readonly runId: Schema.String;
|
|
1718
|
+
readonly nodeId: Schema.String;
|
|
1719
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1720
|
+
readonly flowId: Schema.String;
|
|
1721
|
+
}>]>;
|
|
1722
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1723
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1724
|
+
readonly value: Schema.Int;
|
|
1725
|
+
readonly offset: Schema.Int;
|
|
1726
|
+
}>;
|
|
1727
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1728
|
+
readonly runId: Schema.String;
|
|
1729
|
+
readonly nodeId: Schema.String;
|
|
1730
|
+
readonly outcome: Schema.Literals<readonly ["success", "failure"]>;
|
|
1731
|
+
readonly output: Schema.String;
|
|
1732
|
+
readonly settledAt: Schema.Number;
|
|
1733
|
+
}>>;
|
|
1734
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1735
|
+
readonly selector: Schema.TaggedStruct<"flow-durations", {
|
|
1736
|
+
readonly flowId: Schema.String;
|
|
1737
|
+
}>;
|
|
1738
|
+
readonly cursor: Schema.Struct<{
|
|
1739
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1740
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1741
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1742
|
+
readonly runId: Schema.String;
|
|
1743
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1744
|
+
readonly runId: Schema.String;
|
|
1745
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1746
|
+
readonly runId: Schema.String;
|
|
1747
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1748
|
+
readonly runId: Schema.String;
|
|
1749
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1750
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1751
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1752
|
+
readonly runId: Schema.String;
|
|
1753
|
+
readonly nodeId: Schema.String;
|
|
1754
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1755
|
+
readonly flowId: Schema.String;
|
|
1756
|
+
}>]>;
|
|
1757
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1758
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1759
|
+
readonly value: Schema.Int;
|
|
1760
|
+
readonly offset: Schema.Int;
|
|
1761
|
+
}>;
|
|
1762
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1763
|
+
readonly flowId: Schema.String;
|
|
1764
|
+
readonly actionTag: Schema.String;
|
|
1765
|
+
readonly samples: Schema.Number;
|
|
1766
|
+
readonly p50Ms: Schema.Number;
|
|
1767
|
+
readonly p90Ms: Schema.Number;
|
|
1768
|
+
}>>;
|
|
1769
|
+
}>, Schema.TaggedStruct<"heartbeat", {
|
|
1770
|
+
readonly atMs: Schema.Number;
|
|
1771
|
+
}>]>, typeof GatewayError>, Schema.Never, typeof ControlRpcs.ControlAuth, never> | Rpc.Rpc<"Approval.Submit", Schema.Struct<{
|
|
1772
|
+
readonly decision: Schema.Literals<readonly ["approve", "deny"]>;
|
|
1773
|
+
/**
|
|
1774
|
+
* The answer to a question, for a gate that asks one.
|
|
1775
|
+
*
|
|
1776
|
+
* Most gates are a grant: approve or deny, and the decision IS the payload.
|
|
1777
|
+
* A `HumanTask` gate asks for a value — prose, a choice, a JSON object — and
|
|
1778
|
+
* the decision alone answers nothing. Present exactly when the row being
|
|
1779
|
+
* submitted is one of those, in which case `target.requestId` names the wait
|
|
1780
|
+
* point and this is what is delivered to it. A denial carries no answer: the
|
|
1781
|
+
* question is refused, not answered.
|
|
1782
|
+
*
|
|
1783
|
+
* Additive on purpose: a client that never asks a person anything submits
|
|
1784
|
+
* exactly what it submitted before.
|
|
1785
|
+
*/
|
|
1786
|
+
readonly answer: Schema.optional<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1787
|
+
readonly target: Schema.Union<readonly [Schema.TaggedStruct<"Plan", {
|
|
1788
|
+
readonly planId: Schema.String;
|
|
1789
|
+
readonly digest: Schema.String;
|
|
1790
|
+
readonly envelope: Schema.Struct<{
|
|
1791
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
1792
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1793
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
1794
|
+
readonly budget: Schema.Struct<{
|
|
1795
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
1796
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
1797
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
1798
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
1799
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
1800
|
+
}>;
|
|
1801
|
+
readonly host: Schema.optional<Schema.String>;
|
|
1802
|
+
}>;
|
|
1803
|
+
}>, Schema.TaggedStruct<"Node", {
|
|
1804
|
+
readonly runId: Schema.String;
|
|
1805
|
+
readonly requestId: Schema.String;
|
|
1806
|
+
readonly digest: Schema.String;
|
|
1807
|
+
readonly envelope: Schema.Struct<{
|
|
1808
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
1809
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1810
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
1811
|
+
readonly budget: Schema.Struct<{
|
|
1812
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
1813
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
1814
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
1815
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
1816
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
1817
|
+
}>;
|
|
1818
|
+
readonly host: Schema.optional<Schema.String>;
|
|
1819
|
+
}>;
|
|
1820
|
+
}>]>;
|
|
1821
|
+
readonly scope: Schema.Literals<readonly ["once", "run", "remembered"]>;
|
|
1822
|
+
readonly idempotencyKey: Schema.String;
|
|
1823
|
+
}>, Schema.Struct<{
|
|
1824
|
+
readonly decision: Schema.Union<readonly [Schema.TaggedStruct<"Accepted", {
|
|
1825
|
+
readonly inputConsumed: Schema.optional<Schema.Boolean>;
|
|
1826
|
+
readonly inputBody: Schema.optional<Schema.String>;
|
|
1827
|
+
readonly receiptId: Schema.String;
|
|
1828
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1829
|
+
readonly handedTo: Schema.optional<Schema.Struct<{
|
|
1830
|
+
readonly hostId: Schema.String;
|
|
1831
|
+
readonly pid: Schema.Number;
|
|
1832
|
+
}>>;
|
|
1833
|
+
}>, Schema.TaggedStruct<"AlreadyApplied", {
|
|
1834
|
+
readonly receiptId: Schema.String;
|
|
1835
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1836
|
+
readonly inputConsumed: Schema.optional<Schema.Boolean>;
|
|
1837
|
+
readonly inputBody: Schema.optional<Schema.String>;
|
|
1838
|
+
}>, Schema.TaggedStruct<"Parked", {
|
|
1839
|
+
readonly receiptId: Schema.String;
|
|
1840
|
+
readonly planId: Schema.String;
|
|
1841
|
+
readonly status: Schema.Literal<"waiting-approval">;
|
|
1842
|
+
}>, Schema.TaggedStruct<"Conflict", {
|
|
1843
|
+
readonly message: Schema.String;
|
|
1844
|
+
}>, Schema.TaggedStruct<"Terminal", {
|
|
1845
|
+
readonly runId: Schema.String;
|
|
1846
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
1847
|
+
}>]>;
|
|
1848
|
+
}>, Schema.Union<readonly [typeof ControlError.NoMatchingWait, typeof ControlError.CodeDrift, typeof ControlError.PlanDigestMismatch, typeof ControlError.EnvelopeMismatch, typeof ControlError.AlreadyResolved, typeof ControlError.PlanNotFound, typeof ControlError.RunNotFound, typeof ControlError.InvalidInput, typeof ControlError.Unauthorized, typeof ControlError.PersistenceError, typeof ControlError.Unavailable, typeof ControlError.TransportError]>, typeof ControlRpcs.ControlAuth, never> | Rpc.Rpc<"Run.Fork", Schema.Struct<{
|
|
1849
|
+
readonly runId: Schema.NonEmptyString;
|
|
1850
|
+
readonly at: Schema.Int;
|
|
1851
|
+
readonly lineage: Schema.optional<Schema.NonEmptyString>;
|
|
1852
|
+
readonly step: Schema.optional<Schema.Struct<{
|
|
1853
|
+
readonly stepKeyDigest: Schema.NonEmptyString;
|
|
1854
|
+
readonly result: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1855
|
+
}>>;
|
|
1856
|
+
}>, Schema.Struct<{
|
|
1857
|
+
readonly runId: Schema.String;
|
|
1858
|
+
readonly parentRunId: Schema.String;
|
|
1859
|
+
readonly status: Schema.Literal<"parked">;
|
|
1860
|
+
}>, Schema.Union<readonly [typeof RunHistory.HistoryRefused, typeof ControlError.Unauthorized, typeof ControlError.Unavailable]>, typeof ControlRpcs.ControlAuth, never> | Rpc.Rpc<"Run.Verify", Schema.Struct<{
|
|
1861
|
+
readonly runId: Schema.NonEmptyString;
|
|
1862
|
+
}>, Schema.Struct<{
|
|
1863
|
+
readonly runId: Schema.String;
|
|
1864
|
+
readonly verdict: Schema.Literals<readonly ["consistent", "divergent"]>;
|
|
1865
|
+
readonly replayed: Schema.$Array<Schema.Struct<{
|
|
1866
|
+
readonly stepKeyDigest: Schema.String;
|
|
1867
|
+
readonly action: Schema.optional<Schema.String>;
|
|
1868
|
+
readonly node: Schema.optional<Schema.String>;
|
|
1869
|
+
}>>;
|
|
1870
|
+
readonly resumes: Schema.optional<Schema.Struct<{
|
|
1871
|
+
readonly stepKeyDigest: Schema.String;
|
|
1872
|
+
readonly action: Schema.optional<Schema.String>;
|
|
1873
|
+
readonly node: Schema.optional<Schema.String>;
|
|
1874
|
+
}>>;
|
|
1875
|
+
readonly executes: Schema.optional<Schema.Struct<{
|
|
1876
|
+
readonly stepKeyDigest: Schema.String;
|
|
1877
|
+
readonly action: Schema.optional<Schema.String>;
|
|
1878
|
+
readonly node: Schema.optional<Schema.String>;
|
|
1879
|
+
}>>;
|
|
1880
|
+
readonly notReplayed: Schema.$Array<Schema.Struct<{
|
|
1881
|
+
readonly stepKeyDigest: Schema.String;
|
|
1882
|
+
readonly action: Schema.optional<Schema.String>;
|
|
1883
|
+
readonly node: Schema.optional<Schema.String>;
|
|
1884
|
+
}>>;
|
|
1885
|
+
}>, Schema.Union<readonly [typeof RunHistory.HistoryRefused, typeof ControlError.Unauthorized, typeof ControlError.Unavailable]>, typeof ControlRpcs.ControlAuth, never>>;
|
|
1886
|
+
//# sourceMappingURL=GatewayRpcs.d.ts.map
|